Commit Graph

924 Commits

Author SHA1 Message Date
Marcin Kulik
83df37f48b Refactor Asciicast#user 2014-02-12 21:33:42 +01:00
Marcin Kulik
fb3d5dec7a Revert "Add "Today We Fight Back" banner"
This reverts commit 37399f2bc6.
2014-02-12 21:01:36 +01:00
Marcin Kulik
86182e6a38 Promote featured asciicasts a bit more 2014-02-12 20:59:58 +01:00
Marcin Kulik
94817be1b3 Rename nickname to username 2014-02-12 20:51:01 +01:00
Marcin Kulik
81c8340bc1 Drop unused columns from asciicasts table 2014-02-12 20:36:51 +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
5db7506823 Make "default legacy" asciicast user a dummy one 2014-02-12 17:46:09 +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
2ceea32cc4 Create dummy users for new api tokens 2014-02-11 17:49:22 +01:00
Marcin Kulik
74d7bb0156 Make AsciicastCreator unaware of API subtleties 2014-02-10 17:39:37 +01:00
Marcin Kulik
0a47fd441f Remove unused recorded_at column 2014-02-10 16:42:50 +01:00
Marcin Kulik
9530c9d870 Ignore "recorded_at" from client 2014-02-09 19:35:30 +01:00
Marcin Kulik
633f514de8 Use Virtus for AsciicastParams 2014-02-09 19:12:15 +01:00
Marcin Kulik
37399f2bc6 Add "Today We Fight Back" banner 2014-02-09 18:10:00 +01:00
Marcin Kulik
6db51d138d Make Persona login background matching new design 2014-02-09 17:54:22 +01:00
Marcin Kulik
df2ebb91b6 Make notice message's background matching design a bit more 2014-02-09 17:41:15 +01:00
Marcin Kulik
cc28d6efad Use ruby 1.9 hash syntax 2014-02-09 14:58:17 +01:00
Marcin Kulik
13544d9d04 Rename user_token to api_token 2014-02-09 14:44:09 +01:00
Marcin Kulik
33dabc56b2 Mention Fedora package in installation docs 2014-02-06 16:29:34 +01:00
Marcin Kulik
d1b912f1d2 Remove unused helpers 2014-02-01 11:25:47 +01:00
Marcin Kulik
f1c6c890c2 Remove unused template 2014-02-01 11:21:36 +01:00
Marcin Kulik
3fc1c0ec21 Remove redundant as_json from ApplicationDecorator 2014-02-01 11:18:10 +01:00
Marcin Kulik
9c224ce894 Remove unused mailer 2014-02-01 11:17:12 +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
5dc857ed9e Rename AsciicastPresenter#user to #current_user 2014-02-01 01:14:37 +01:00
Marcin Kulik
7fb6c0354c Cache items on AsciicastListPresenter 2014-02-01 01:12:19 +01:00
Marcin Kulik
d06801487c Set defaults for AsciicastListPresenter in .build 2014-02-01 01:10:54 +01:00
Marcin Kulik
9589df952f Make the view count cookie names shorter 2014-01-29 16:10:18 +01:00
Marcin Kulik
fee207e012 Add Gentoo installation instructions to docs 2014-01-21 10:49:48 +01:00
Marcin Kulik
219d8f1c3f Fix embedded player iframe resizing under https 2014-01-18 15:35:24 +01:00
Marcin Kulik
9e5a7c8d22 Add "autoplay" option to embedded player 2014-01-18 15:17:12 +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
2d93333cb5 Allow passing container width on example embed page 2014-01-18 14:35:05 +01:00
Marcin Kulik
0e85e9ac28 Pass the asciicast with the options object to player partial 2014-01-18 14:28:01 +01:00
Marcin Kulik
a9913a966d Rename "font_size" playback option to "size" 2014-01-18 14:19:23 +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
ef8519b035 No need for making embedded player's container 100% width 2013-12-14 14:58:57 +01:00
Marcin Kulik
070b99ed51 Display "Powered by" below the embedded player 2013-12-14 14:54:01 +01:00
Marcin Kulik
57e976ff64 Use jpg background instead of a png on the homepage 2013-12-10 12:22:16 +01:00
Marcin Kulik
fe30c0282f It's "OS X", not "OSX".
(via @solnic)
2013-12-10 12:00:17 +01:00
Marcin Kulik
f7d2b97a6c Use the "method" API of CFG object everywhere 2013-12-09 23:55:12 +01:00
Marcin Kulik
ec2004713e Set test specific carrierwave storage dir prefix in spec_helper 2013-12-09 20:26:08 +01:00
Marcin Kulik
4e3c9a5d28 Add config setting for using local persona js file 2013-12-09 20:09:17 +01:00
Marcin Kulik
11bfe3b0f9 Remove unused path helper 2013-12-09 18:57:10 +01:00
Marcin Kulik
5887d2e4f6 Words 2013-12-07 16:32:00 +01:00
Marcin Kulik
f17a7ffdd0 Spell gittip as Gittip, always 2013-12-03 22:20:36 +01:00
Marcin Kulik
3a62c31d18 Make the thumbnails 100 columns long to fit into widest single column layout 2013-12-03 21:51:49 +01:00
Marcin Kulik
6ee6274751 Add "Follow on Twitter" to footer 2013-12-03 21:37:11 +01:00
Marcin Kulik
c4719ffd24 Put link to "Contributing" page in a footer 2013-12-03 21:22:21 +01:00
Marcin Kulik
18e5f19e16 Update installation docs 2013-12-03 21:00:04 +01:00
Marcin Kulik
d8de171f66 Add "Contributing" page 2013-12-03 20:11:47 +01:00
Marcin Kulik
e2e117ce84 Refactor profile link helpers and decorators 2013-12-01 00:55:31 +01:00
Marcin Kulik
df8da8d6d0 Remove unused partial 2013-12-01 00:54:14 +01:00
Marcin Kulik
b6126167a3 Prefer gravatar over old omniauth provided avatar 2013-11-30 11:15:41 +01:00
Marcin Kulik
9b80151511 Randomize "featured" and "other by user" lists 2013-11-28 23:17:02 +01:00
Marcin Kulik
2962fb8c5f Prepare for https 2013-11-27 23:46:42 +01:00
Marcin Kulik
7f8dc4ac88 Update installation docs 2013-11-25 22:07:58 +01:00
Marcin Kulik
4601272f80 Make sure title and share buttons are on the same line even on small screens 2013-11-24 10:49:29 +01:00
Marcin Kulik
3b63d69bc6 Fix asciicast author info width when title is short 2013-11-23 20:43:17 +01:00
Marcin Kulik
b02927172c Prevent long, single word title flowing out of the preview box 2013-11-23 19:27:50 +01:00
Marcin Kulik
05f535e1f9 Make sure meta bar columns don't stack on smaller screens 2013-11-23 19:15:15 +01:00
Marcin Kulik
4d36ee0c39 Make sure footer columns don't stack on smaller screen sizes 2013-11-23 19:13:08 +01:00
Marcin Kulik
055b552775 Improve home page cinema margins for single column layout 2013-11-23 19:03:11 +01:00
Marcin Kulik
abc926bd67 Add missing style overrides for navbar (collapsed) 2013-11-23 18:52:53 +01:00
Marcin Kulik
50299ca250 Add some caching 2013-11-22 23:31:18 +01:00
Marcin Kulik
f2e462e1cb Avoid empty section when no more by asciicasts by the user 2013-11-22 22:38:40 +01:00
Marcin Kulik
2dbc811caf Fix the condition for displaying edit/delete links 2013-11-22 22:33:14 +01:00
Marcin Kulik
5c6f0e80d6 Fix iframe size of embedded player 2013-11-22 21:53:18 +01:00
Marcin Kulik
4b9c33f228 Add fake host pages with an embedded asciicast 2013-11-22 21:45:45 +01:00
Marcin Kulik
a6a925edd3 Load app js bundle before persona 2013-11-22 13:47:02 +01:00
Marcin Kulik
7e75e0db7c Move glyphicons from vendor/assets/fonts to app/assets/fonts 2013-11-22 12:46:42 +01:00
Marcin Kulik
92feaef715 Use ' instead of " for font urls 2013-11-22 12:40:50 +01:00
Marcin Kulik
61b42a9813 Make the background color of player wrapper on homepage black 2013-11-22 12:33:43 +01:00
Marcin Kulik
1696dad7d0 Fix the font references 2013-11-22 12:31:05 +01:00
Marcin Kulik
6c326fb222 Add missing logo image 2013-11-21 21:43:19 +01:00
Marcin Kulik
f5e91a3946 Add subtle text shadow for home headlines 2013-11-21 21:41:12 +01:00
Marcin Kulik
0767bdf581 Fix a typo 2013-11-21 21:33:42 +01:00
Marcin Kulik
79f95252e5 Small font for home page asciicast must do for now 2013-11-21 21:27:55 +01:00
Marcin Kulik
2ec2fc401a Require bootstrap stylesheet in "embed" bundle (for play icon) 2013-11-21 21:14:46 +01:00
Marcin Kulik
83d3c7d1ae Improve styling of embed box input 2013-11-21 21:14:22 +01:00
Marcin Kulik
d3ebb5af61 Change default (guest) avatar image 2013-11-21 20:50:40 +01:00
Marcin Kulik
cf2ed7b27d Remove the "Record" button from the header 2013-11-21 20:32:00 +01:00
Marcin Kulik
85196a35a4 Use "OMG" background image provided by @rezaali 2013-11-21 20:16:40 +01:00
Marcin Kulik
13a0b5a2e7 Make the shadow under a terminal on the homepage a bit softer 2013-11-20 21:52:54 +01:00
Marcin Kulik
94bc3317b1 Use thicker border for player on homepage 2013-11-20 21:40:29 +01:00
Marcin Kulik
bad75768d2 Style dropdown in header 2013-11-20 21:33:32 +01:00
Marcin Kulik
434f8bd47d Fix path to bootstrap's glyphicons font 2013-11-20 21:33:31 +01:00
Marcin Kulik
38cde2d172 Avoid AR chains outside of AR models 2013-11-20 21:33:30 +01:00
Marcin Kulik
dd9488d56f Add fullname_and_nickname to UserDecorator 2013-11-20 21:33:29 +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
81ea04c81a Make the form controls a bit shorter 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
249117f80a Allow size to be passed to player helper in options 2013-11-20 21:33:25 +01:00
Marcin Kulik
3041a646e2 Update asciicast edit page to new layout 2013-11-20 21:33:25 +01:00
Marcin Kulik
e5809d2213 Fetch avatars of higher res 2013-11-20 21:33:25 +01:00
Marcin Kulik
08d17f28e3 Redesign asciicast page 2013-11-20 21:33:25 +01:00
Marcin Kulik
78700f59c1 Update user settings page to new layout 2013-11-20 21:33:24 +01:00
Marcin Kulik
f9717f1aa5 Update profile page to new layout 2013-11-20 21:33:24 +01:00
Marcin Kulik
59eb527ae9 Update log in pages to new layout 2013-11-20 21:33:23 +01:00
Marcin Kulik
4579951c2a Update token error page to new layout 2013-11-20 21:33:22 +01:00
Marcin Kulik
30da684934 Update 404 page for new layout 2013-11-20 21:33:22 +01:00
Marcin Kulik
35b3326987 Pimp up the repviews (thumbnails) a bit 2013-11-20 21:33:22 +01:00
Marcin Kulik
3362da04dc Update information on "About" page 2013-11-20 21:33:22 +01:00
Marcin Kulik
76ddc94561 Update docs pages for new layout 2013-11-20 21:33:22 +01:00
Marcin Kulik
cf78f0dfe0 Update the player to new design 2013-11-20 21:33:22 +01:00
Marcin Kulik
c0473dc217 Redesign homepage (and layout in general) 2013-11-20 21:33:22 +01:00
Marcin Kulik
7c83852945 Remove old ugly styles 2013-11-20 21:33:11 +01:00
Marcin Kulik
6009250a36 Display "asciicast:<id>" as a title for title-less asciicasts 2013-11-20 21:29:43 +01:00
Marcin Kulik
e01a9e23f5 Specify URLs for ToS and Privacy Policy for Persona 2013-10-26 23:57:07 +02:00
Marcin Kulik
d5ea271393 Use protocol-relative avatar URLs 2013-10-26 23:48:35 +02:00
Marcin Kulik
eb13fd2f83 Add terms of service page 2013-10-26 22:50:54 +02:00
Marcin Kulik
641b71d964 Fix the "Start recording" links on home page 2013-10-26 00:01:27 +02:00
Marcin Kulik
88e2e54477 Add privacy policy 2013-10-25 20:01:56 +02:00
Marcin Kulik
7a9a394121 Merge pull request #141 from sickill/persona
Sign in with an email (Persona)
2013-10-23 13:24:06 -07:00
Marcin Kulik
5674b488ae Fix the path to getting started page 2013-10-23 22:16:21 +02:00
Marcin Kulik
64585404e6 Make logo an actual image 2013-10-23 22:10:15 +02:00
Marcin Kulik
8728b47417 Use local copy of persona's include.js in dev environment 2013-10-23 22:00:02 +02:00
Marcin Kulik
888f3b7c80 Don't take current user's email from current profile page's user 2013-10-23 21:54:11 +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
3e1feff84e Auto-strip whitespace from email and nickname 2013-10-22 17:58:15 +02:00
Marcin Kulik
5bd8b05a93 Validate presence and uniqueness of both nickname and email 2013-10-22 17:52:04 +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
cf822f9d5e Improvements to the new sign in flow 2013-10-22 17:08:12 +02:00
Marcin Kulik
4b5c02477b Don't override error message for user's nickname uniqueness 2013-10-20 19:08:41 +02:00
Marcin Kulik
8dba31ce71 Auto-focus nickname field on new user form 2013-10-20 19:07:40 +02:00
Marcin Kulik
a2b0a637fa Refactor User.for_credentials/for_email into class methods 2013-10-20 18:58:31 +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
bc2b91f5a2 Extract base js assets bundle 2013-10-20 18:07:03 +02:00
Marcin Kulik
8c43aaf081 Add login via Mozilla Persona 2013-10-20 18:07:03 +02:00
Marcin Kulik
769acb6593 OmniAuthHelper is better name than OauthHelper
Conflicts:
	app/models/user.rb
	spec/models/user_spec.rb
2013-10-20 18:06:13 +02:00
Marcin Kulik
ac64d04a51 Remove old unused backbone code 2013-10-20 18:04:09 +02:00
Marcin Kulik
f05b787ac3 Remove debug console.log statement 2013-10-20 17:32:46 +02:00
Marcin Kulik
ef8449b44c Keep the sane line length 2013-10-20 17:29:19 +02:00
Marcin Kulik
4bc0982c78 Keep test uploads in a separate dir but still under public/ 2013-10-20 16:45:34 +02:00
Marcin Kulik
a2baeb91ea Add a default value for headers in AsciicastCreator 2013-10-20 16:41:37 +02:00
Marcin Kulik
a31cae3548 Fix a typo 2013-10-17 23:18:08 +02:00
Marcin Kulik
791f6ea6a5 Missing dot. 2013-10-14 21:24:45 +02:00
Marcin Kulik
d324fcd714 Add the "medium" font size for the embedded player 2013-10-14 21:10:18 +02:00
Marcin Kulik
b61a321299 Adjust user_agent parsing to take python implementation into an account 2013-10-14 21:10:17 +02:00
Marcin Kulik
fa9db48620 Words 2013-10-14 21:10:17 +02:00
Marcin Kulik
3ecf1ff936 Put installation instructions on a separate docs page 2013-10-14 21:10:17 +02:00
Marcin Kulik
0740174224 Update getting started docs 2013-10-14 21:10:16 +02:00
Marcin Kulik
6e8e204aaa Words 2013-10-14 21:10:16 +02:00
Marcin Kulik
0620b685bf Add the embedding docs 2013-10-14 21:10:12 +02:00
Marcin Kulik
7e5af6ed56 Favor uname over user_agent when accepting upload 2013-10-13 12:29:30 +02:00
Marcin Kulik
f86734bf50 Revert "Favor uname over user_agent"
This reverts commit 97931ceaed.
2013-10-13 12:28:58 +02:00
Marcin Kulik
97931ceaed Favor uname over user_agent 2013-10-13 11:51:41 +02:00
Marcin Kulik
012736304e Add support to the embed script for specifying the playback speed 2013-10-13 11:40:15 +02:00
Marcin Kulik
39ea1778dd Fix shape of the play button in embedded widget under FF 2013-10-12 19:02:24 +02:00
Marcin Kulik
90954c03b6 Add support to embed script for making the terminal font 2x bigger 2013-10-12 16:34:31 +02:00
Marcin Kulik
f689595446 Fix origin check for hosts with non 80 port 2013-10-12 16:26:23 +02:00
Marcin Kulik
8c9b580367 Remove unneeded sass imports 2013-10-12 14:53:46 +02:00
Marcin Kulik
2913c04570 Add ability to start playback in widget via postMessage 2013-10-12 13:24:48 +02:00
Marcin Kulik
01d6026dd1 Add FAQ page 2013-10-12 00:20:42 +02:00
Marcin Kulik
8eb0c910e7 Update "options" page 2013-10-11 20:48:11 +02:00
Marcin Kulik
d74ead2263 Store client's user agent on Asciicast record 2013-10-11 20:44:49 +02:00
Marcin Kulik
e4cb9c0657 New installation instructions 2013-10-06 13:50:17 +02:00
Marcin Kulik
bb9e492390 Words 2013-10-06 13:02:37 +02:00
Marcin Kulik
d1b4d6eabd Make sure progress indicator value is never larger than 100 2013-10-04 18:45:52 +02:00
Marcin Kulik
a43311aeba Update installation instructions for OSX 2013-10-04 12:10:08 +02:00
Marcin Kulik
405e2a7a9d Update installation instructions 2013-10-03 19:22:36 +02:00
Marcin Kulik
d71da5b369 Move asciicast attributes preparation to AsciicastAttributes 2013-09-25 21:42:59 +02:00
Marcin Kulik
f3ecd376d7 Update updated_at on all claimed asciicasts 2013-09-25 21:42:59 +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
f02daa9069 BrushPresenter -> BrushDecorator 2013-09-24 12:31:18 +02:00
Marcin Kulik
681558074a Update brew install URL to the working one 2013-09-24 11:08:15 +02:00
Marcin Kulik
0350f908a9 Move TimingParser to services 2013-09-23 21:21:07 +02:00
Marcin Kulik
438e962a5a Convert docs to slim 2013-09-23 21:05:33 +02:00
Marcin Kulik
8efb95252e Remove unused template for FAQ page 2013-09-23 19:24:41 +02:00
Marcin Kulik
83a8976746 Remove unused assets 2013-09-23 19:13:06 +02:00
Marcin Kulik
0634f52c99 Change all occurrences of old project name to the new one 2013-09-23 19:05:36 +02:00
Marcin Kulik
5c80bf21f1 Don't display cursor when it's invisible... obviously 2013-09-23 11:27:27 +02:00
Marcin Kulik
e15828b56a Bring back cursor blinking 2013-09-23 11:09:25 +02:00
Marcin Kulik
3c4ac3666e Update copy & code to use the new name 2013-09-22 14:07:42 +02:00
Marcin Kulik
9dad3840fa Use yajl for parsing terminal snapshots 2013-09-22 12:25:34 +02:00
Marcin Kulik
e3678da97a Remove Oj - it leaks like a little puppy 2013-09-22 11:18:49 +02:00
Marcin Kulik
ee636bf958 Update the player to use backend-generated JSON frames 2013-09-21 13:05:13 +02:00
Marcin Kulik
a1cd6ca2ae Bring on the terminal.c! 2013-09-21 13:05:13 +02:00
Marcin Kulik
82ff7148a9 Make sure the preview snapshot always has requested height 2013-09-21 13:05:12 +02:00
Marcin Kulik
f15f2e11a5 Avoid making a copy of feed data string 2013-09-21 13:05:12 +02:00
Marcin Kulik
b3da1c0656 Don't crash when stdout data is shorter than expected 2013-09-21 13:05:12 +02:00
Marcin Kulik
79f8eaf2ed Fix display of reversed characters in the thumbnails and the preview 2013-09-21 13:05:12 +02:00
Marcin Kulik
82fa03863d Adjust Snapshot#crop to work on already optimized lines 2013-09-21 13:05:12 +02:00
Marcin Kulik
ff153fff1a Make Terminal return already optimized snapshot 2013-09-20 23:05:34 +02:00
Marcin Kulik
0e2c1784c6 Use terminal binary as a base for Terminal 2013-09-20 23:05:33 +02:00
Marcin Kulik
e537c1b78a Only release terminal if it is not nil 2013-09-14 13:13:58 +02:00
Marcin Kulik
e862acedb7 Animation frames generation on the backend 2013-09-10 21:29:17 +02:00
Marcin Kulik
bc6e1ddc3d Make implementation of Stdout more readable 2013-09-02 21:54:19 +02:00