Commit Graph

396 Commits

Author SHA1 Message Date
Marcin Kulik
ade244e5d0 Fix rendering of snapshot in the player 2013-08-06 00:37:37 +02:00
Marcin Kulik
62be399455 Refactor player styles and use them for snapshots 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
feec862f99 Display embed link on the asciicast's page 2013-06-13 11:45:00 +02:00
Marcin Kulik
20cf58e89b Make the render expose its width and height 2013-06-12 23:58:24 +02:00
Marcin Kulik
f0b66b6399 Center overlays according to viewport/container width 2013-06-12 23:50:31 +02:00
Marcin Kulik
f22837f4e9 Add "embed" css/js bundles 2013-06-12 21:52:15 +02:00
Marcin Kulik
d1dcd08861 Initial version of iframe-based embedding 2013-06-12 21:33:30 +02:00
Marcin Kulik
7a3bc80340 Prevent progress bar to span more than 1 line 2013-06-12 11:27:41 +02:00
Marcin Kulik
22ae493513 Fix terminal's line-height even more! 2013-06-12 11:07:54 +02:00
Marcin Kulik
1e57bee513 Fix terminal line's line-height 2013-06-11 17:41:24 +02:00
Marcin Kulik
597eb5174b Use old-sass syntax for stylesheets 2013-06-01 19:30:26 +02:00
Marcin Kulik
50f84295af More space between asciicast description and thumbnails 2012-12-10 23:40:09 +01:00
Marcin Kulik
816e09703a Cleanup author/profile links 2012-12-08 22:29:21 +01:00
Marcin Kulik
09a9d86254 Fix play button position in thumbnails 2012-12-01 16:40:16 +01:00
Marcin Kulik
ea3cfbb65a Limit function calls number between AnsiInterpreter and VT 2012-12-01 15:50:27 +01:00
Marcin Kulik
70b1f27234 "Reverse video" support 2012-11-29 18:44:42 +01:00
Marcin Kulik
51fc7a0db1 Fix typo 2012-11-29 18:44:42 +01:00
Marcin Kulik
f86409500c More semantic name for insertCharacters 2012-11-29 18:44:41 +01:00
Marcin Kulik
d95da9635a Update AnsiInterpreter specs to handle new implementation 2012-11-29 18:44:41 +01:00
Marcin Kulik
42897a3d47 Satisfy Brush specs 2012-11-29 18:44:41 +01:00
Marcin Kulik
d5831f163d Use eraseScreen instead of clearScreen 2012-11-29 18:44:41 +01:00
Marcin Kulik
f3775cdf3a "Plural, not singular" 2012-11-29 18:44:41 +01:00
Marcin Kulik
7e3120a4dd No () 2012-11-29 18:44:41 +01:00
Marcin Kulik
dc90d24f4f Remove comment 2012-11-29 18:44:41 +01:00
Marcin Kulik
3ddf5e5dce Don't rely on underscore too much 2012-11-29 18:44:41 +01:00
Marcin Kulik
0b01d98db2 Bring back brush caching 2012-11-29 18:44:41 +01:00
Marcin Kulik
cce80b07ca Fix brush creation in canvas renderer 2012-11-29 18:44:40 +01:00
Marcin Kulik
b87649aec2 Bring back color support 2012-11-29 18:44:40 +01:00
Marcin Kulik
1185e3a4d9 Buffer non-processed data in VT instead of AnsiInterpreter 2012-11-29 18:44:40 +01:00
Marcin Kulik
7b1be025d6 Simplify handlePrivateEscSeq 2012-11-29 18:44:40 +01:00
Marcin Kulik
9e61d3d179 Extract AnsiInterpreter from VT 2012-11-29 18:44:40 +01:00
Marcin Kulik
ec05e8eaa8 Asciicast preview styles don't belong to base 2012-11-22 00:36:12 +01:00
Marcin Kulik
05909ae22b Margin for player should be set in base.css 2012-11-20 17:53:04 +01:00
Marcin Kulik
1754656578 Raw page with player only 2012-11-19 23:10:21 +01:00
Marcin Kulik
1fc49727b2 More meaningfull name for overpass font css file 2012-11-19 20:32:28 +01:00
Marcin Kulik
dbcbe42613 Move vendor CSS to vendor/assets 2012-11-19 20:29:23 +01:00
Marcin Kulik
12c500b57d Move vendor JS to vendor/assets 2012-11-19 20:25:40 +01:00
Marcin Kulik
2f2c30ea0f Make the font of pre element a little smaller 2012-10-13 01:22:59 +02:00
Marcin Kulik
0ff6721530 Update online docs 2012-10-13 00:28:13 +02:00
Marcin Kulik
772aa32f0e Remove obsolete comment view and template 2012-10-12 21:59:39 +02:00
Marcin Kulik
58b619a7cf handlebars_assets is not used anymore 2012-10-12 21:52:16 +02:00
Marcin Kulik
1410fd390f Update bzip2.js to latest version by @gbarco 2012-08-25 15:33:07 +02:00
Marcin Kulik
afa03974a2 Calculate relative time in JS (b/c of caching) 2012-08-25 14:24:53 +02:00
Marcin Kulik
d4da1b2202 Revert "Handle both bzipped and non-bzipped data in DataUnpacker"
This reverts commit 05d3970e39.
2012-08-25 13:50:48 +02:00
Marcin Kulik
cbce088f05 Revert "Call the callback, really"
This reverts commit fe3af22bf2.
2012-08-25 13:50:33 +02:00
Marcin Kulik
fe3af22bf2 Call the callback, really 2012-08-23 22:16:35 +02:00
Marcin Kulik
05d3970e39 Handle both bzipped and non-bzipped data in DataUnpacker 2012-08-23 20:25:25 +02:00
Marcin Kulik
b1567e75f2 Fix cellHeight calculation 2012-08-03 00:54:54 +02:00
Marcin Kulik
e41681bcd8 Require colors for canvas renderer 2012-08-02 00:17:06 +02:00
Marcin Kulik
4b26edfd49 Support for both new worker-based player and old one 2012-08-01 22:53:10 +02:00
Marcin Kulik
1672176335 Refactor PlayerView and introduce Player 2012-08-01 22:12:55 +02:00
Marcin Kulik
1f260e95aa DataUnpacker with fallback 2012-07-31 00:59:28 +02:00
Marcin Kulik
87f42d7874 Don't pass cursor blinking through VT 2012-07-31 00:17:05 +02:00
Marcin Kulik
a429248cc3 We don't need no stinkin' play-button image 2012-07-30 23:50:01 +02:00
Marcin Kulik
84f2b9a5c6 Use requestAnimationFrame shim by Paul Irish 2012-07-30 23:45:18 +02:00
Marcin Kulik
c55b77488d Use screenfull.js for fullscreen support 2012-07-30 23:45:18 +02:00
Marcin Kulik
2c02297792 Newer es5-shim 2012-07-30 23:45:18 +02:00
Marcin Kulik
8df492b2b4 Cleanup in assets 2012-07-30 23:45:18 +02:00
Marcin Kulik
510960dd00 requestAnimationFrame shim 2012-07-30 23:45:18 +02:00
Marcin Kulik
3b11713903 Render in webkitRequestAnimationFrame callback 2012-07-30 23:45:17 +02:00
Marcin Kulik
d99cd115fc Improved naming 2012-07-30 23:40:54 +02:00
Marcin Kulik
8b7f733606 Wrap WebWorker with AsciiIo.Worker 2012-07-30 23:40:24 +02:00
Marcin Kulik
9d15c931b4 Directory structure reorganization 2012-07-30 23:39:21 +02:00
Marcin Kulik
2383d50d1c Move common css props to mixin 2012-07-30 23:39:21 +02:00
Marcin Kulik
1fd37f0e62 Add 'playing' / 'paused' class to player element 2012-07-30 23:36:23 +02:00
Marcin Kulik
8c68dbf574 Remove old commented code 2012-07-30 23:32:32 +02:00
Marcin Kulik
cf55c2db87 Create worker earlier 2012-07-30 23:32:32 +02:00
Marcin Kulik
908ee1fb25 Improve rendering speed on high volume stdout 2012-07-30 23:30:18 +02:00
Marcin Kulik
8506e60b3f Include helper in worker bundle 2012-07-30 23:30:18 +02:00
Marcin Kulik
59567921db Working Web Worker version :) 2012-07-30 23:30:17 +02:00
Marcin Kulik
a02fdd7777 Fix 0-based SGR codes parsing 2012-07-29 19:00:49 +02:00
Marcin Kulik
87ee87f4b7 Improve error message display 2012-07-28 21:26:58 +02:00
Marcin Kulik
b1ecbc16c0 Option to disable HUD 2012-07-28 20:59:38 +02:00
Marcin Kulik
06da0da8cb Nicely looking auth buttons 2012-07-26 23:15:20 +02:00
Marcin Kulik
333e063161 Pimp My Docs 2012-07-25 23:00:31 +02:00
Marcin Kulik
785273707b Proper design, finally! 2012-07-25 20:24:20 +02:00
Marcin Kulik
f3b6acf00a Move benchmarking code to player view 2012-07-09 19:54:32 +02:00
Marcin Kulik
789aa3a230 Less frequent time reporter 2012-07-09 19:20:07 +02:00
Marcin Kulik
dd3341921d SRP for Movie 2012-07-08 18:15:06 +02:00
Marcin Kulik
e001676f21 Normalized event naming 2012-07-08 17:29:57 +02:00
Marcin Kulik
d581d4ede1 No prefix for HudView events 2012-07-08 17:26:16 +02:00
Marcin Kulik
a58efccd6c No parenthesis 2012-07-08 17:25:24 +02:00
Marcin Kulik
f092ad87d2 Decouple all the things 2012-07-08 17:23:48 +02:00
Marcin Kulik
58d5ce3fa5 Fix handling of incomplete OSC codes 2012-06-17 20:41:33 +02:00
Marcin Kulik
cdbdb73c14 Make loading/play-prompt overlays semi-transparent 2012-06-10 21:08:59 +02:00
Marcin Kulik
af44b0c0d1 Get rid of twitter-bootstrap-rails, yay! 2012-06-09 22:32:39 +02:00
Marcin Kulik
50428b9c66 Unicorn with girl_friday on Heroku 2012-06-09 15:25:43 +02:00
Marcin Kulik
69817d16f9 Multi-interpreter, part 1 2012-06-08 09:08:30 +02:00
Marcin Kulik
ea11733882 Handle wider range of printable unicode characters 2012-06-07 21:57:40 +02:00
Marcin Kulik
7b33c31c70 Display snapshot for not started movie 2012-05-29 22:49:30 +02:00
Marcin Kulik
45d6683cd5 Line height in pixels is more stable 2012-05-29 21:28:25 +02:00
Marcin Kulik
458ca6e78b Use height + vertical margin instead of outerHeight for cellHeight 2012-05-29 20:59:57 +02:00
Marcin Kulik
bd96a8d722 A little smaller line height should be better though 2012-05-29 00:09:47 +02:00
Marcin Kulik
e67ec07562 Larger line-height 2012-05-28 22:10:31 +02:00
Marcin Kulik
6b39eac33f Fix word wrap for terminal pre element 2012-05-27 13:59:55 +02:00
Marcin Kulik
4bb69abdc7 Set proper player width in base renderer 2012-05-27 12:10:58 +02:00
Marcin Kulik
0e9287ea85 Improved setting of player width (fixes hud size) 2012-05-27 11:34:29 +02:00
Marcin Kulik
2814f92074 Fix escaping of HTML entities like &, < and > 2012-05-27 11:19:54 +02:00
Marcin Kulik
d57f264f17 Properly set player width
Conflicts:

	app/assets/javascripts/player/renderers/pre.js.coffee
2012-05-27 10:27:03 +02:00
Marcin Kulik
49b7c39aac Handle aixterm color codes (90-97, 100-107) 2012-05-08 15:19:56 +02:00
Marcin Kulik
fc8677114d Again, better handling of UTF8 printing 2012-04-28 19:49:46 +02:00
Marcin Kulik
3c86965427 Improve regex for catching printable characters 2012-04-27 23:12:41 +02:00
Marcin Kulik
0d77b843d3 adjustFrameWaitTime in Movie#stop 2012-04-15 21:11:25 +02:00
Marcin Kulik
07eeb1e81b Don't start TimeReporter once again when restarting movie 2012-04-15 20:21:01 +02:00
Marcin Kulik
a78678407f Reset terminal when restarting movie 2012-04-15 20:18:17 +02:00
Marcin Kulik
6626f6cefc Updated comment 2012-04-15 20:16:16 +02:00
Marcin Kulik
6b8d45f2b8 Refactor movie loading 2012-04-15 20:14:41 +02:00
Marcin Kulik
4252386501 Separate method for preparing self view in PlayerView 2012-04-15 20:08:17 +02:00
Marcin Kulik
1ccaa5ca31 Structure for PlayerView constructor 2012-04-15 20:07:16 +02:00
Marcin Kulik
5159029aff Don't involve PlayerView in cursor blinking stuff 2012-04-15 19:55:58 +02:00
Marcin Kulik
bbdb9b15e5 Whitespace 2012-04-15 19:42:39 +02:00
Marcin Kulik
643926ade3 Same for adding "not-started" class 2012-04-15 19:42:25 +02:00
Marcin Kulik
736c3c87dc showLoadingIndicator directly in constructor 2012-04-15 19:38:37 +02:00
Marcin Kulik
097a3653dd Remove "not-started" class from element when movie "really" starts 2012-04-15 19:37:23 +02:00
Marcin Kulik
b15804ef0c PlayerView#createChildViews -> #appendChildViews 2012-04-15 19:22:37 +02:00
Marcin Kulik
a8136ee18d Create HudView instance directly in constructor 2012-04-15 19:20:44 +02:00
Marcin Kulik
005400a7ce PlayerView doesn't need VT 2012-04-15 19:17:28 +02:00
Marcin Kulik
9a3d4c20dc No need to pass movie-frame through PlayerView 2012-04-15 19:14:06 +02:00
Marcin Kulik
d2da307936 No need for setProgress(100) after movie finished 2012-04-15 18:55:19 +02:00
Marcin Kulik
6b8a80c823 Merge branch 'seeking'
* seeking:
  Progress arrow with proper length
  Hacky version of "seeking"
  Seeking prototype
2012-04-15 17:14:21 +02:00
Marcin Kulik
6b2abebbf6 Progress arrow with proper length 2012-04-15 16:43:27 +02:00
Marcin Kulik
46e14dcbae Hacky version of "seeking" 2012-04-15 16:03:31 +02:00
Marcin Kulik
a6664dc97f Add fallback base64 codec for crippled browsers 2012-04-15 01:34:35 +02:00
Marcin Kulik
6fda6e4913 WebWorker via Sprockets 2012-04-15 01:11:26 +02:00
Marcin Kulik
ccf5576ed9 Seeking prototype 2012-04-15 00:32:29 +02:00
Marcin Kulik
7687449273 Largely improved pausing 2012-04-14 23:15:51 +02:00
Marcin Kulik
17dd692989 Use Math.floor instead of toFixed 2012-04-14 18:39:41 +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
4138deffd6 Process up to 100 frames without a break 2012-04-11 21:48:27 +02:00
Marcin Kulik
0a09204525 Consistent "time ago" display for asciicasts and comments 2012-04-09 17:21:46 +02:00
Marcin Kulik
4daedc7235 Fix handling of OSC seq terminated by ESC\ 2012-04-09 12:55:07 +02:00
Marcin Kulik
4bf95a1383 Fix handling of DCS sequences 2012-04-09 12:50:25 +02:00
Marcin Kulik
6334dfde06 Get rid of jquery-linkify.js 2012-04-07 00:06:00 +02:00
Marcin Kulik
2a71c08e5f Show info about github flavored md under comment box 2012-04-07 00:01:34 +02:00
Marcin Kulik
936dac6baa Markdown in comments 2012-04-06 23:46:44 +02:00
Marcin Kulik
06fcbf65c4 Clean up comments_index 2012-04-06 23:08:36 +02:00
Marcin Kulik
4ff8ab30f8 Example thumbnail view 2012-04-06 22:20:28 +02:00
Marcin Kulik
bd85ecda47 Add console-shim for crippled browsers 2012-04-06 13:33:43 +02:00
Marcin Kulik
e26dd20385 Improved scroll region handling 2012-04-06 13:14:37 +02:00
Marcin Kulik
778f2281c8 Handle incorrect values when setting cursor position 2012-04-06 13:14:02 +02:00
Marcin Kulik
1e2e8bfcc3 Display some environment info 2012-04-04 18:41:17 +02:00
Marcin Kulik
5cccd7c24b Hyperlink URLs in title and description 2012-04-04 16:52:05 +02:00
Marcin Kulik
dd6eeb36ee Merge pull request #62 from sickill/webworker
Use Web Worker for bz2 decoding
2012-04-04 01:17:45 -07:00
Marcin Kulik
1409c58cff Fix Brush#fgColor/bgColor (fixes text color in canvas renderer) 2012-04-03 22:44:36 +02:00
Marcin Kulik
e28aa23e68 Edit title/desc links 2012-04-03 20:20:48 +02:00
Micha Wrobel
eb9251327f Use Web Worker for bz2 decoding if possible 2012-04-03 18:21:27 +02:00
Marcin Kulik
5314d6baa5 Use color 0 as default fg color 2012-04-02 21:25:24 +02:00