Commit Graph

90 Commits

Author SHA1 Message Date
Marcin Kulik
21ba8ce13c Don't keep default theme name as empty string 2017-02-15 12:04:35 +00:00
Marcin Kulik
b373963497 Use new player via <asciinema-player> tag 2016-10-01 19:31:11 +02:00
Marcin Kulik
56cea2fb39 Serve uploads from outside of public dir 2016-04-10 12:29:16 +00:00
Marcin Kulik
442181efe9 Use actual asciicast width and height in example player usage 2016-01-11 16:14:46 +01:00
Marcin Kulik
b8f90166c1 Support downloading asciicast JSON file as "attachment" 2016-01-10 18:42:13 +00:00
Marcin Kulik
e3c04e1461 Play v1 format by default if available 2015-12-22 22:09:20 +00:00
Marcin Kulik
ffe31c5258 Show recent featured asciicasts on homepage 2015-07-20 12:27:30 +00:00
Marcin Kulik
2e3fd29287 "Recency" is a weird word... 2015-07-20 12:05:38 +00:00
Marcin Kulik
6530152356 Don't accept asciicasts of 0 width or 0 height 2015-05-18 16:06:14 +00:00
Marcin Kulik
49cfe584ba Use policy scope to decide which asciicasts should be listed 2015-05-15 19:13:37 +00:00
Marcin Kulik
8bb68ad53e Serve original asciicast files from /a/:id.json 2015-05-13 13:46:25 +00:00
Marcin Kulik
3fe980f209 Validate max values of terminal width and height 2015-05-08 09:52:42 +00:00
Marcin Kulik
3f32ee0ef6 No "self" needed here 2015-04-26 13:54:23 +00:00
Marcin Kulik
2c7d549778 Require private asciicasts to be requested via secret token 2015-04-26 13:30:42 +00:00
Marcin Kulik
6bc2fd1048 Pad secret token correctly
After converting base 16 (hex) string of length 16 to integer and then to
base 36 we can end up with a shorter string due to implicit zeroes on
leading positions in the intermediate integer. This ensures
"00000000000000000000000000000000", "ffffffffffffffffffffffffffffffff"
and everything in between result in a string of length 25 after converting to
base 36.
2015-04-25 10:15:29 +00:00
Marcin Kulik
2c0bfee0cd Filter out private asciicasts on homepage 2015-04-25 10:15:28 +00:00
Marcin Kulik
5dbe2c84c0 UI for toggling asciicasts private/public 2015-04-25 10:15:28 +00:00
Marcin Kulik
a30ee0d082 Allow making asciicasts "private" 2015-04-25 10:15:28 +00:00
Marcin Kulik
ade94029d6 Fail fast when invalid order given 2015-04-24 11:40:28 +00:00
Marcin Kulik
94c39b6441 Limit title/command to 255 chars 2015-04-20 10:43:37 +00:00
Marcin Kulik
3ced30b4f0 Null user should be used only for display purposes 2015-04-04 17:38:39 +00:00
Marcin Kulik
7a321bf2cc Use "display" width in HTML image links 2015-03-27 17:33:50 +00:00
Marcin Kulik
2852248989 Add PNG generation (https://asciinema.org/a/17654.png) 2015-03-27 11:42:14 +00:00
Marcin Kulik
3078b85d71 New concept! Foreign key constraints. On database! 2015-03-11 10:55:54 +01:00
Marcin Kulik
f45ff47737 Read asciicast directly from URL 2015-03-02 10:53:56 +00:00
Marcin Kulik
dad5f40c17 Expose stdout of old and new format asciicasts via Asciicast#stdout 2015-02-28 17:39:31 +00:00
Marcin Kulik
c6cc9fbdbc Accept version 1 asciicasts 2015-02-27 14:01:12 +00:00
Marcin Kulik
c9ccc1b066 Add ability to set custom thumbnail frame time 2014-11-27 12:30:08 +00:00
Marcin Kulik
e06e72676e Drop "dummy" from users, replace it with temporary_username 2014-10-05 17:47:42 +02:00
Marcin Kulik
130948ae3f Upgrate to Rails 4.1.5 2014-08-30 20:10:49 +02:00
Marcin Kulik
560e11f24e Introduce admin 2014-07-05 14:59:42 +02:00
Marcin Kulik
6bb5f39f8b Add theme changing for whole user profile and single asciicast 2014-07-01 21:33:50 +02:00
Marcin Kulik
83df37f48b Refactor Asciicast#user 2014-02-12 21:33:42 +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
5db7506823 Make "default legacy" asciicast user a dummy one 2014-02-12 17:46:09 +01:00
Marcin Kulik
d571be2bbd Introduce AsciicastListPresenter 2014-01-17 17:21:22 +01:00
Marcin Kulik
e2e117ce84 Refactor profile link helpers and decorators 2013-12-01 00:55:31 +01:00
Marcin Kulik
9b80151511 Randomize "featured" and "other by user" lists 2013-11-28 23:17:02 +01:00
Marcin Kulik
2dbc811caf Fix the condition for displaying edit/delete links 2013-11-22 22:33:14 +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
d71da5b369 Move asciicast attributes preparation to AsciicastAttributes 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
ee636bf958 Update the player to use backend-generated JSON frames 2013-09-21 13:05:13 +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
26801d207f Make Asciicast use BufferedStdout instead of Stdout 2013-08-28 16:56:40 +02:00
Marcin Kulik
a53c8de5b9 Pass paths to decompressed stdout files to Stdout 2013-08-15 20:58:41 +02:00