66 Commits

Author SHA1 Message Date
Fabien O'Carroll
f08501d005 add noop 2014-04-28 11:05:16 +01:00
Remy Sharp
3688a8a336 Initial vanity homepage support
- set & get methods in place, but untested
- redirect tested and working
2014-03-31 22:38:12 +01:00
Giulia Alfonsi
037b331b3d Fixed sqlite error and css active line for jsbin theme 2014-03-25 17:04:36 +00:00
Fabien O'Carroll
3ff28bf9e9 Add noops for missing methods 2014-03-21 16:02:36 +00:00
Fabien O'Carroll
79735a36e9 Change rev to revision 2014-02-26 13:34:19 +00:00
Fabien O'Carroll
4b1807f1da Move into same #map 2014-02-26 13:06:50 +00:00
Fabien O'Carroll
11e22d555e Apply updates to sqlite 2014-02-26 12:57:17 +00:00
Remy Sharp
e0911e6c0e Update comment to explain why archive=-1 2014-02-25 22:06:52 +00:00
Fabien O'Carroll
11d3153254 Add updateUserSettings method
closes #1178
2014-02-24 11:16:39 +00:00
Remy Sharp
88be040ff6 Missed one of the damn handlers for url length 2014-02-16 18:25:09 +00:00
Remy Sharp
763083f888 Logged in users get 3 chr urls, logged out: 8 2014-02-16 11:29:13 +00:00
Remy Sharp
4487c926bd Merge branch 'master' of github.com:jsbin/jsbin into feature/hover-card
Conflicts:
	lib/features.js
	views/index.html
2014-02-14 13:08:32 +00:00
Remy Sharp
4b4a533881 anon -> anonymous 2014-02-11 12:42:54 +00:00
Kevin Mitchell
69b3265fd4 Removing commented code in applyBinDefaults 2014-02-07 14:33:09 -05:00
Kevin Mitchell
4dc2bcd77d Making getBinMetadata always return a single result object, rather than an array. Removing cast to boolean for bin.active in sqlite applyBinDefaults 2014-02-07 14:33:09 -05:00
Kevin Mitchell
0ec20f814c Adding visibility column to sqlite setBinOwner SQL call 2014-02-07 14:33:09 -05:00
Remy Sharp
beca76389c Removed some stray console.logs 2014-01-23 12:07:13 +00:00
Remy Sharp
abeb5a49ff Get enough data from DB to ensure we're working with deleted bin 2014-01-23 11:44:16 +00:00
Remy Sharp
4b02d19573 Initial delete bin feature working.
Currently behind "delete" feature available to teamjsbin for testing.
2014-01-19 23:37:00 +00:00
Fabien O'Carroll
7895e6287e Updating sqlite adaptor setBinVisibility 2014-01-16 13:14:15 +00:00
Fabien O'Carroll
1e041e7d33 check that user owns bin when setting visibility 2014-01-16 12:11:03 +00:00
Fabien O'Carroll
ad223e0398 Removing getVisibility references 2014-01-16 11:04:08 +00:00
Fabien O'Carroll
aa0ccaf7a3 Adding getVisibility to sqlite 2014-01-16 10:50:21 +00:00
Fabien O'Carroll
2891cdd4e0 Adding methods for sqlite 2014-01-14 18:20:44 +00:00
Fabien O'Carroll
5f6ac9f0d7 Adding setProAccountMethod to sqlite db interface 2014-01-03 16:13:43 +00:00
Remy Sharp
131d75968c Extended /<user>/last support to /<user>/last-n
So /rem/last still works, but also /rem/last-1 gives me the penulimate bin I worked on.
2013-11-02 15:38:23 +00:00
Vivek Verma
bbbb493fe0 when archive or unarchive is clicked on Bins under "my Bins",
node crashes and throws a error that 'results are not defined'.

This happens because of silly spelling mistake
in archiveBin in file lib/db/sqlite.js, see commit.

.
2013-08-12 22:10:12 +05:30
Vivek Verma
90ece2e20b wrong order of values in setUser query prevents creating new user
Sql query parameters as defined in lib/db/sql_template.json has github token and id at as last parameter. But, in lib/db/sqlite.json github_token is assigned where there should datetime value in last_login. Thus, resulting is error like "SQLITE CONSTRAINTS: ownership.last_login cannot be null" on console if github authentication is not used for login.
This commit attempts to fix that error and enable registering new users again.
2013-08-06 13:53:40 +05:30
Tom Ashworth
d54d4d3735 Redo github logic to fix incorrect linking. 2013-07-04 13:20:02 +01:00
Remy Sharp
0f1b36d0a6 Merge branch 'master' into fix/avatar-as-menu-655
Conflicts:
	lib/handlers/bin.js
	lib/models/user.js
2013-07-04 11:25:44 +01:00
Remy Sharp
9c9846becd add getUserBinCount to db adapters 2013-06-28 15:59:39 +01:00
Tom Ashworth
482a3daa84 Hook Github to existing user. 2013-06-24 11:14:13 +01:00
Tom Ashworth
2d5195bbc9 Support creating a new user with gihub, but sessions are broken. 2013-06-18 13:44:55 +01:00
Matthew O'Riordan
a234941cf3 API can require an API key for a user (disallow anonymous) 2013-05-20 07:18:57 +02:00
Matthew O'Riordan
666ab20a2e Remove annoying console output from SQLite driver 2013-05-19 15:57:19 +02:00
Tom Ashworth
6c2b145478 Support creating of bins with file-db. 2013-05-16 14:49:27 +01:00
Remy Sharp
6861fd7bac removed logging, and fixed sqlite module - was using completely the wrong method 2013-04-06 10:41:13 +01:00
Remy Sharp
be56fa0db8 If logged-in user created first revision of a bin, then they "own" the bin url - and other users will only be able to clone the url 2013-04-05 22:09:12 +01:00
Remy Sharp
3a18cc3446 put archiveBin back in to sqlite module 2013-03-16 07:01:16 -04:00
Tom Ashworth
06cb5b9182 Fix SQLite errors & bring up to speed with MySQL driver, address #353. 2013-01-11 10:40:27 +00:00
Tom Ashworth
0cc499a7d3 add support to the owners table for panels with content, and unified the setBinOwner, setBinForUser, assignBin, et al 2013-01-09 16:50:33 +00:00
Jon Linklater-Johnson
cfa3aa3b6d Flag abuse was missing 5626d3942ad99acaa810e426557239ec8dc2495a - so I cherry-picked it back in and resolved the conflict 2012-08-25 19:36:20 +01:00
Jon Linklater-Johnson
2ac195c5bf Fix issue with SQLite store 2012-08-25 11:47:33 +02:00
Remy Sharp
a4eb247ad4 Support log in using email as well as username. Fixes #314 2012-08-21 23:16:06 +01:00
Remy Sharp
40137a170c Create revision correctly updates "last_updated" making it set to /[user]/last/ 2012-08-21 13:59:27 +01:00
Aron Carroll
d9c2cd4a83 Lint the node source 2012-08-03 13:04:48 +01:00
Remy Sharp
df907c28ae Fixed sqlite corruption of panel.settings in the database 2012-07-27 16:44:10 +01:00
Aron Carroll
17f176a324 Add Store#upgradeUserKey() method 2012-07-23 23:02:18 +01:00
Aron Carroll
8cd8867583 Pass template params in correct order in Store#touchLogin()
Was preventing the last_login column from being updated correctly.
2012-07-23 23:02:18 +01:00
Remy Sharp
9260c890c8 Fixed restoring panel processors - hopefully for the last time! 2012-07-22 23:54:29 +01:00