Commit Graph

196 Commits

Author SHA1 Message Date
Marcin Kulik
6bb5f39f8b Add theme changing for whole user profile and single asciicast 2014-07-01 21:33:50 +02:00
Marcin Kulik
dec2765522 Fix pagination on profile page 2014-06-25 17:35:13 +02:00
Marcin Kulik
6ad2a40ab8 Fix opening of currently processed asciicasts 2014-06-22 11:44:40 +02:00
Marcin Kulik
c7e9974f47 Update a separate instance of current user 2014-04-12 12:39:59 +02:00
Marcin Kulik
82c6c034c5 Improve test coverage of UsersController 2014-03-16 18:34:37 +01:00
Marcin Kulik
56b99f11e3 Clean up test auth helpers 2014-03-16 16:03:33 +01:00
Marcin Kulik
72248d7b83 Add a (pending) test for X-Frame-Options removal 2014-03-16 11:34:25 +01:00
Marcin Kulik
06c19adaab Move emedded player related endpoints to API 2014-03-05 10:05:45 +01:00
Marcin Kulik
933c5d9801 Namespace the existing API as v0 2014-02-25 18:35:03 +01:00
Marcin Kulik
f55ec05ae1 Use Warden for authentication 2014-02-20 23:31:48 +01:00
Marcin Kulik
28e0926fd6 Split User.for_api_token into separate lookup and create methods 2014-02-20 21:11:09 +01:00
Marcin Kulik
94817be1b3 Rename nickname to username 2014-02-12 20:51:01 +01:00
Marcin Kulik
24bad5e628 Use strong_parameters instead of protected_attributes 2014-02-12 20:22:20 +01:00
Marcin Kulik
9b32e2dc37 Prevent shadowing real user profiles by dummy ones 2014-02-12 19:51:25 +01:00
Marcin Kulik
1be5538e5c Merge dummy users into real ones when assigning api tokens 2014-02-12 17:41:06 +01:00
Marcin Kulik
74d7bb0156 Make AsciicastCreator unaware of API subtleties 2014-02-10 17:39:37 +01:00
Marcin Kulik
13544d9d04 Rename user_token to api_token 2014-02-09 14:44:09 +01:00
Marcin Kulik
4908599204 Fix style violations 2014-02-01 10:29:49 +01:00
Marcin Kulik
105d11bfe7 Change naming convention for presenter objects 2014-02-01 01:26:58 +01:00
Marcin Kulik
463f18c207 Refactor user page to use a presenter object 2014-02-01 01:16:28 +01:00
Marcin Kulik
d06801487c Set defaults for AsciicastListPresenter in .build 2014-02-01 01:10:54 +01:00
Marcin Kulik
edca76233d It's rather "bare" than "raw" 2014-01-18 14:57:35 +01:00
Marcin Kulik
585167089d Rename container_width option to max_width 2014-01-18 14:53:15 +01:00
Marcin Kulik
57bcab04c9 Use proper PlaybackOptions object for passing options to JS player 2014-01-18 14:12:10 +01:00
Marcin Kulik
2191dfe32a Use .decorate instead of manually creating decorator instances 2014-01-18 12:24:40 +01:00
Marcin Kulik
86f6af3d78 Introduce AsciicastPresenter 2014-01-18 11:44:13 +01:00
Marcin Kulik
d571be2bbd Introduce AsciicastListPresenter 2014-01-17 17:21:22 +01:00
Marcin Kulik
f6ad790a09 Introduce HomePresenter 2014-01-17 14:52:37 +01:00
Marcin Kulik
f7d2b97a6c Use the "method" API of CFG object everywhere 2013-12-09 23:55:12 +01:00
Marcin Kulik
9b80151511 Randomize "featured" and "other by user" lists 2013-11-28 23:17:02 +01:00
Marcin Kulik
4b9c33f228 Add fake host pages with an embedded asciicast 2013-11-22 21:45:45 +01:00
Marcin Kulik
b6f53c66b8 Set page <title> in templates 2013-11-20 21:33:27 +01:00
Marcin Kulik
af02d5e0b2 Dasherize how-it-works and getting-started doc paths 2013-11-20 21:33:26 +01:00
Marcin Kulik
100273f5bf Update browse page to new layout and add sorting 2013-11-20 21:33:26 +01:00
Marcin Kulik
c0473dc217 Redesign homepage (and layout in general) 2013-11-20 21:33:22 +01:00
Marcin Kulik
88e2e54477 Add privacy policy 2013-10-25 20:01:56 +02:00
Marcin Kulik
6ee6f20405 Improve the account settings page 2013-10-23 21:17:04 +02:00
Marcin Kulik
431fd87002 Use auth token for permanent sessions 2013-10-22 19:16:18 +02:00
Marcin Kulik
a194d361d0 Redirect to "getting started" page after sign up 2013-10-22 17:42:32 +02:00
Marcin Kulik
352fb6ede6 Improve wording 2013-10-22 17:42:32 +02:00
Marcin Kulik
d4cbc3e504 Make Persona the only login option (with the ability to access old accounts) 2013-10-20 18:58:11 +02:00
Marcin Kulik
8c43aaf081 Add login via Mozilla Persona 2013-10-20 18:07:03 +02:00
Marcin Kulik
d74ead2263 Store client's user agent on Asciicast record 2013-10-11 20:44:49 +02:00
Marcin Kulik
32a2f44eb6 Move user token creation/assignment to a service object 2013-09-25 21:42:59 +02:00
Marcin Kulik
b08ffd48b4 Make the ViewCounter a controller dependency in the form of a private method 2013-09-25 21:42:40 +02:00
Marcin Kulik
ee636bf958 Update the player to use backend-generated JSON frames 2013-09-21 13:05:13 +02:00
Marcin Kulik
731751650c Keep the lines shorther than 80 chars 2013-08-25 16:34:02 +02:00
Marcin Kulik
cdc2f01753 Find or build user from omniauth hash in the middleware 2013-08-19 17:08:13 +02:00
Marcin Kulik
5c141003a1 Use "asciicast" over "Asciicast" in UI 2013-08-14 17:32:03 +02:00
Marcin Kulik
6db65b2a6c Serve asciicast as JSON in chunks 2013-08-13 19:52:54 +02:00
Marcin Kulik
40da1823d6 Do not send X-Frame-Options header in embeddable widget action 2013-08-09 08:54:09 +02:00
Marcin Kulik
c22cb1cdcc Get rid of the asciicast comments that are not used anymore 2013-08-08 15:25:27 +02:00
Marcin Kulik
59e31baa1b Process incoming asciicast with AsciicastCreator 2013-08-06 00:37:35 +02:00
Marcin Kulik
49df9e9082 Make SnapshotWorker a Sidekiq based worker 2013-07-05 14:09:43 +02:00
Marcin Kulik
df6bed3541 Merge branch 'master' into embed 2013-06-13 22:40:17 +02:00
Marcin Kulik
013eade63c Count view only once in the same browser 2013-06-13 22:26:27 +02:00
Marcin Kulik
d1dcd08861 Initial version of iframe-based embedding 2013-06-12 21:33:30 +02:00
Marcin Kulik
127f68a778 Fix Api::CommentsController#index 2013-05-28 11:13:01 +02:00
Marcin Kulik
4c5c0c7d0e Fix logging in after draper upgrade 2013-05-28 11:13:01 +02:00
Marcin Kulik
7659fe722e Fix UsersController#show 2013-05-28 11:13:01 +02:00
Marcin Kulik
a6bbdf7a39 Load homepage asciicast in before_filter 2013-05-28 11:13:01 +02:00
Marcin Kulik
f5a91c680b Fix draper vs kaminari issue 2013-05-28 11:13:00 +02:00
Marcin Kulik
9977e69ace Fix ensure_owner 2012-12-11 12:22:25 +01:00
Marcin Kulik
b284781620 Cover all scenatios in asciicasts controller specs 2012-12-09 21:25:45 +01:00
Marcin Kulik
11bab12afb Extract AsciicastJSONDecorator from AsciicastDecorator 2012-12-09 21:23:37 +01:00
Marcin Kulik
9ac2c49180 Custom scopes for paginated lists 2012-12-09 21:22:12 +01:00
Marcin Kulik
80619928a8 Decorate current_user 2012-12-08 20:51:19 +01:00
Marcin Kulik
ce6a47e815 Fix :location for unsaved records 2012-12-01 20:50:44 +01:00
Marcin Kulik
646ca6858a AsciicastDecorator#user 2012-11-19 23:14:34 +01:00
Marcin Kulik
1754656578 Raw page with player only 2012-11-19 23:10:21 +01:00
Marcin Kulik
44e23bf003 Just decorate. 2012-11-19 22:12:57 +01:00
Marcin Kulik
ddd0cd9f74 HTTP caching for asciicast json data 2012-08-22 20:26:20 +02:00
Marcin Kulik
75961f3f22 Scopes 2012-08-22 20:13:31 +02:00
Marcin Kulik
7d6ac6ddc9 Include all the things!! 2012-08-21 20:25:50 +02:00
Marcin Kulik
5c395fccb6 Set title for homepage 2012-08-02 09:21:23 +02:00
Marcin Kulik
668f382a69 Fix specs 2012-07-29 19:43:03 +02:00
Marcin Kulik
264b296e0b /connect improvements 2012-07-26 23:22:34 +02:00
Marcin Kulik
da53e64585 Get id of asciicast displayed on homepage from CFG 2012-07-25 22:59:18 +02:00
Marcin Kulik
785273707b Proper design, finally! 2012-07-25 20:24:20 +02:00
Marcin Kulik
a57d05597e Don't crash on comment for asciicast without user 2012-06-10 14:11:45 +02:00
Marcin Kulik
adf2b30d8a Make pg happy 2012-06-10 00:11:27 +02:00
Marcin Kulik
50428b9c66 Unicorn with girl_friday on Heroku 2012-06-09 15:25:43 +02:00
Marcin Kulik
31b82ad512 Use girl_friday for bg jobs 2012-06-07 17:35:43 +02:00
Marcin Kulik
5afa98bb11 Better handling of 404s 2012-04-29 10:47:33 +02:00
Marcin Kulik
3a7f462b13 Send email to asciicast author when someone comments 2012-04-12 15:49:20 +02:00
Marcin Kulik
0bb3e75fb6 No need for instance variables in CommentsController#create 2012-04-12 14:47:53 +02:00
Marcin Kulik
648cf1140b Move all 404 handling to application_controller 2012-04-09 22:56:26 +02:00
Marcin Kulik
e5ea6488fd Move asciicast presentation to its decorator 2012-04-09 19:47:19 +02:00
Marcin Kulik
f4856407c1 Comment#destroy instead of #delete 2012-04-09 16:33:29 +02:00
Marcin Kulik
dccca52c26 Update specs 2012-04-09 15:56:26 +02:00
Marcin Kulik
4a6186f523 Account settings 2012-04-09 15:47:33 +02:00
Marcin Kulik
98d80ae1fd More specs for home controller 2012-04-07 11:13:43 +02:00
Marcin Kulik
936dac6baa Markdown in comments 2012-04-06 23:46:44 +02:00
Marcin Kulik
7d762b045d Use decorator also for user's asciicasts collection 2012-04-06 23:01:38 +02:00
Marcin Kulik
4cc0cb31a6 Use decorator for asciicast on homepage 2012-04-06 22:36:08 +02:00
Marcin Kulik
e84f1eb349 Don't need recent casts any more on homepage 2012-04-06 22:35:09 +02:00
Marcin Kulik
49c0d9f324 Move presentation to decorator 2012-04-06 21:51:05 +02:00
Marcin Kulik
70a44f5ba3 Fix fetching cast data via ajax 2012-04-06 21:10:59 +02:00
Marcin Kulik
27219f48b7 Thumbnail generation in Sidekiq worker 2012-04-06 20:53:04 +02:00
Marcin Kulik
8b504d8fea Use asciicast title in page title 2012-04-05 21:35:21 +02:00