Commit Graph

56 Commits

Author SHA1 Message Date
Marcin Kulik
ee636bf958 Update the player to use backend-generated JSON frames 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
82fa03863d Adjust Snapshot#crop to work on already optimized lines 2013-09-21 13:05:12 +02:00
Marcin Kulik
e862acedb7 Animation frames generation on the backend 2013-09-10 21:29:17 +02:00
Marcin Kulik
b47fa27968 Refactor Snapshot to use Grid under the hood 2013-08-27 20:31:31 +02:00
Marcin Kulik
c775bc8b06 Use less spans for thumbnail rendering 2013-08-26 11:02:32 +02:00
Marcin Kulik
31a880b7aa Simplify Snapshot and its presenter 2013-08-25 20:49:23 +02:00
Marcin Kulik
13119b2987 Display asciicast length on thumbnails 2013-08-14 20:40:24 +02:00
Marcin Kulik
2e9b0a4718 Remove boring empty trailing lines from thumbnails 2013-08-14 17:24:36 +02:00
Marcin Kulik
9086aae060 Remove unused code 2013-08-14 16:38:33 +02:00
Marcin Kulik
6acea6da70 Use tilde prefix for nickname only in profile url 2013-08-14 16:30:49 +02:00
Marcin Kulik
6db65b2a6c Serve asciicast as JSON in chunks 2013-08-13 19:52:54 +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
7d5a544650 Generate thumbnails from JSON snapshot via Snapshot/SnaphotPresenter 2013-08-06 00:37:36 +02:00
Marcin Kulik
86a4662fe5 Abstract stdout_data and stdout_timing as a single value object 2013-08-06 00:37:34 +02:00
Marcin Kulik
d93ac84c21 Refactor AsciicastDecorator#thumbnail to render colorful thumbnail 2013-08-06 00:37:33 +02:00
Marcin Kulik
2d6b60e027 Fix AsciicastDecorator#embed_script 2013-06-13 22:58:47 +02:00
Marcin Kulik
8a52605266 Add spec for AsciicastDecorator#embed_script 2013-06-13 22:39:34 +02:00
Marcin Kulik
feec862f99 Display embed link on the asciicast's page 2013-06-13 11:45:00 +02:00
Marcin Kulik
078b04e3a1 Fix asciicast page when its author has other asciicasts 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
5f53c66639 Update decorators to use new Draper API 2013-05-28 11:13:00 +02:00
Marcin Kulik
2e8fc48473 Set MAX_DELAY constant on model, not decorator 2012-12-18 21:38:49 +01:00
Marcin Kulik
11bab12afb Extract AsciicastJSONDecorator from AsciicastDecorator 2012-12-09 21:23:37 +01:00
Marcin Kulik
1e07fafb2e When terminal_type is empty also return '?' 2012-12-09 16:14:26 +01:00
Marcin Kulik
816e09703a Cleanup author/profile links 2012-12-08 22:29:21 +01:00
Marcin Kulik
3b2dc7f998 Simplify author_profile_link 2012-12-08 20:51:20 +01:00
Marcin Kulik
a1fad7ccb7 Decorate User#nickname 2012-12-08 20:51:20 +01:00
Marcin Kulik
3f53f2ad50 Use decorates_association instead of custom method 2012-12-08 20:51:19 +01:00
Marcin Kulik
c1e576e5dd "Other asciicasts by this user" 2012-12-08 20:51:19 +01:00
Marcin Kulik
2c006d5fdf Improve AsciicastDecorator#description 2012-12-08 18:21:24 +01:00
Marcin Kulik
646ca6858a AsciicastDecorator#user 2012-11-19 23:14:34 +01:00
Marcin Kulik
33025e00f7 AsciicastDecorator#terminal_type 2012-11-19 22:29:46 +01:00
Marcin Kulik
44e23bf003 Just decorate. 2012-11-19 22:12:57 +01:00
Marcin Kulik
db4c4a397c Return 'unknown' as os when uname is empty 2012-11-18 22:12:37 +01:00
Marcin Kulik
c172df390e Remove old helper for created_at 2012-08-25 15:15:00 +02:00
Marcin Kulik
afa03974a2 Calculate relative time in JS (b/c of caching) 2012-08-25 14:24:53 +02:00
Marcin Kulik
62236504cf Revert "Handle non-bzipped data also in AsciicastDecorator"
This reverts commit 9d08c17087.
2012-08-25 13:50:44 +02:00
Marcin Kulik
9d08c17087 Handle non-bzipped data also in AsciicastDecorator 2012-08-23 20:35:27 +02:00
Marcin Kulik
668f382a69 Fix specs 2012-07-29 19:43:03 +02:00
Marcin Kulik
657ddab1de Improve situation with markdown parsing 2012-07-25 23:01:01 +02:00
Marcin Kulik
785273707b Proper design, finally! 2012-07-25 20:24:20 +02:00
Marcin Kulik
00d2a6fcc6 Shell out to bzip2 instead of using bzip2-ruby 2012-06-05 00:29:24 +02:00
Marcin Kulik
ba97246db8 Time compression 2012-05-04 21:49:08 +02:00
Marcin Kulik
4d1afcf01a Use Base64 for encoding asciicast data during transfer 2012-04-14 00:45:25 +02:00
Marcin Kulik
cbc845a2ef Revert "Decompress stdout data on server side"
This reverts commit dda0d56fb7.
2012-04-14 00:29:59 +02:00
Marcin Kulik
dda0d56fb7 Decompress stdout data on server side 2012-04-13 22:46:11 +02:00
Marcin Kulik
e5ea6488fd Move asciicast presentation to its decorator 2012-04-09 19:47:19 +02:00
Marcin Kulik
9ddd44abb5 Move comment specs as comment decorator specs 2012-04-09 18:22:46 +02:00
Marcin Kulik
0a09204525 Consistent "time ago" display for asciicasts and comments 2012-04-09 17:21:46 +02:00