Commit Graph

284 Commits

Author SHA1 Message Date
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
Marcin Kulik
87b8f93e48 New, "old-school" hud 2012-04-02 21:04:11 +02:00
Marcin Kulik
e2eb708d06 Allow selecting (and copying) text in terminal view 2012-04-02 19:25:13 +02:00
Marcin Kulik
6c73f63037 Wrap featured asciicast in dedicated div 2012-04-02 19:11:51 +02:00
Marcin Kulik
1d9bded8ef Move player overlays one level up 2012-03-22 21:27:05 +01:00
Marcin Kulik
8f23d94eaa Remove logging 2012-03-17 21:35:01 +01:00
Marcin Kulik
ade4219458 Proper cursor blinking in canvas renderer 2012-03-17 21:31:25 +01:00
Marcin Kulik
38a68daa0f Greatly improved cancas renderer 2012-03-17 20:33:01 +01:00
Marcin Kulik
850944cece Fix cursor display in "pre" renderer 2012-03-16 21:14:20 +01:00
Marcin Kulik
1b2897573e Merge branch 'bm'
* bm:
  speed and benchmark options for movie
2012-03-16 20:47:45 +01:00
Marcin Kulik
1b49dceab9 speed and benchmark options for movie 2012-03-16 20:43:32 +01:00
Marcin Kulik
282511b60e Move changed fragments detection to ScreenBuffer 2012-03-16 20:18:15 +01:00
Marcin Kulik
1e4864e51e Use proper textBaseline in canvas renderer 2012-03-15 21:37:48 +01:00
Marcin Kulik
501c989c8a Experimental canvas renderer 2012-03-15 09:53:26 +01:00
Marcin Kulik
b7d9547cdf Fix setting of scroll region 2012-03-13 23:29:42 +01:00
Marcin Kulik
ca38cc20e7 Bind to events after movie is loaded 2012-03-13 21:36:35 +01:00
Marcin Kulik
7f019e6918 es5-shim for crippled browsers 2012-03-13 20:41:42 +01:00
Marcin Kulik
fddd33b37d Italicize proper thing 2012-03-11 16:16:08 +01:00
Marcin Kulik
2bf3030755 Improved look of asciicast previews 2012-03-11 16:12:49 +01:00
Marcin Kulik
5ef241afff More info in preview 2012-03-11 16:06:01 +01:00
Marcin Kulik
cb0a605bfe Homepage improvements 2012-03-11 15:38:12 +01:00
Marcin Kulik
60d32ca2d3 Use goToNextRowFirstColumn instead of manually changing cursor pos 2012-03-11 14:23:01 +01:00
Marcin Kulik
ba5acf4012 Update all changed lines in ScreenBuffer#print 2012-03-11 13:35:33 +01:00
Marcin Kulik
3c9d6a8062 Fix Movie#isPaused 2012-03-11 10:39:20 +01:00
Marcin Kulik
306c1619ab Pr0 play button 2012-03-11 10:30:21 +01:00
Marcin Kulik
81b06178fd Display asciicast example on homepage 2012-03-10 17:57:35 +01:00
Marcin Kulik
085a678479 overflow: hidden for terminal element 2012-03-10 17:24:40 +01:00
Marcin Kulik
2e678714d4 Get brush with #getBrush 2012-03-10 14:55:57 +01:00
Marcin Kulik
6037903f1c Use twitter bootstrap 2012-03-10 14:55:37 +01:00
Marcin Kulik
c976c567d7 Loading indicator 2012-03-05 22:52:14 +01:00
Marcin Kulik
830c39d2fb Fix path for asciicasts json data 2012-03-05 22:51:48 +01:00
Marcin Kulik
6660efe8a7 collection is not needed in CommentEntry view 2012-03-04 23:09:06 +01:00
Marcin Kulik
51dfa8474f Profile paths: ~sickill 2012-03-04 23:07:45 +01:00
Marcin Kulik
35af4cf9e7 Home and installation pages 2012-03-04 22:44:04 +01:00
Marcin Kulik
c4f40322ed Merge branch 'master' into comments
* master:
  Display asciicast author and creation time
  Claiming asciicasts
  User#add_user_token
  Asciicast.assign_user
  User tokens for assigning asciicasts to users
  Better styles + pagination

Conflicts:
	app/models/asciicast.rb
	db/schema.rb
	spec/factories/asciicasts.rb
	spec/factories/users.rb
2012-03-04 21:14:35 +01:00
Marcin Kulik
66db199aab Display asciicast author and creation time 2012-03-04 20:59:53 +01:00
Micha Wrobel
a2d1b1a15f Simplify comments_index.js 2012-03-04 16:13:01 +01:00
Marcin Kulik
b7807c3f0d Better styles + pagination 2012-03-04 15:18:09 +01:00
Micha Wrobel
e7567848d3 Url is defined after initialization 2012-03-04 13:54:42 +01:00
Micha Wrobel
706460e71b Show time ago in comments 2012-03-04 13:50:57 +01:00
Micha Wrobel
e7f5f57424 Some refactoring, and make possible to remove own comments 2012-03-04 13:50:56 +01:00
Micha Wrobel
9a190cf474 Don't show comment form if user not logged in 2012-03-04 13:50:56 +01:00
Micha Wrobel
5201b3f768 Initial implementation of comments - in progress 2012-03-04 13:50:56 +01:00
Marcin Kulik
f3c80398cb Clicking on term view toggles playback 2012-03-04 00:10:14 +01:00
Marcin Kulik
755efc09d1 Format time as mm:ss 2012-03-03 23:58:45 +01:00
Marcin Kulik
aa3c28701d Pausing + time display 2012-03-03 23:50:18 +01:00
Marcin Kulik
5e05b0d1cb Fix carriageReturn use 2012-03-03 19:45:52 +01:00
Marcin Kulik
1062aa3d01 Decompress bzip data in the browser 2012-03-03 19:43:38 +01:00
Marcin Kulik
b3e8fbb7df Load asciicast data via ajax 2012-03-03 18:38:11 +01:00
Marcin Kulik
a16c10009a Initially set brush with setBrush 2012-03-03 15:42:21 +01:00
Marcin Kulik
dec4d3dc31 Handle more standard esc sequences 2012-03-03 15:36:18 +01:00
Marcin Kulik
5a54654dc5 Handle special charset setting 2012-03-03 15:33:50 +01:00
Marcin Kulik
22b4da210c Charsets support 2012-03-03 15:15:38 +01:00
Marcin Kulik
9480d9c1bb Improve top nav 2012-03-03 08:53:14 +01:00
Marcin Kulik
7ffbe50c74 Fix saveTerminalState and restoreTerminalState 2012-03-02 22:08:40 +01:00
Marcin Kulik
76a5c46bfb Fix reverseIndex, verticalTab 2012-03-02 22:05:52 +01:00
Marcin Kulik
8005613c95 Use single parent element for faster innerHTML 2012-03-02 21:38:34 +01:00
Marcin Kulik
2c58e449a5 Even more faster renderLine 2012-03-02 21:30:13 +01:00
Marcin Kulik
8ef0b63029 A little faster renderLine 2012-03-02 21:28:21 +01:00
Marcin Kulik
c6d6f9c851 Remove old commented out implementation of parser 2012-03-02 21:12:32 +01:00
Marcin Kulik
a9afb35b82 Don't log too much 2012-03-02 21:05:49 +01:00
Marcin Kulik
766fe57bf1 New parser 2012-03-02 20:54:43 +01:00
Marcin Kulik
6eeafdf699 Extract SGR codes interpretation to separate class 2012-02-29 09:08:16 +01:00
Marcin Kulik
0979a6706b VT#renderer -> VT#view 2012-02-26 18:44:30 +01:00
Marcin Kulik
f23cbbb79d Move char attrs back to VT 2012-02-24 23:26:05 +01:00
Marcin Kulik
69c1dcbf9c Another TODO 2012-02-24 23:20:27 +01:00
Marcin Kulik
3eb0b40d32 TODO 2012-02-24 23:20:03 +01:00
Marcin Kulik
9edbcbac4e Remove wrong handlers 2012-02-24 23:19:38 +01:00
Marcin Kulik
260d7c6956 Comment 2012-02-24 23:19:04 +01:00
Marcin Kulik
49c583d500 Rename handleCSI to handleCS 2012-02-24 23:18:33 +01:00
Marcin Kulik
b4322fa5a0 Extract responsibilities 2012-02-24 23:18:12 +01:00
Marcin Kulik
961ee90836 Handle reverse/normal video attr 2012-02-22 18:11:06 +01:00
Marcin Kulik
9af87da790 Handle ESC[^ - reserved 2012-02-22 18:11:06 +01:00
Marcin Kulik
efff8e765d Ignore 2 more esc sequences 2012-02-20 21:16:13 +01:00
Marcin Kulik
fe349c9394 Blink attribute support 2012-02-20 21:15:26 +01:00
Marcin Kulik
5fdd43306d Close span only if there was at least one brush used 2012-02-19 19:47:04 +01:00
Marcin Kulik
5f65e4d3fa Set fixed with and height of terminal view. Fixes #22 2012-02-19 19:40:31 +01:00
Marcin Kulik
a0482edb14 Fix _cursorRight when on right edge of screen 2012-02-19 17:06:07 +01:00
Marcin Kulik
ee6298d515 Italic style support 2012-02-19 16:54:44 +01:00
Marcin Kulik
bf115d99be Fix VT#deleteCharacters for good 2012-02-19 15:48:23 +01:00
Marcin Kulik
47998cc1a0 Improved VT#deleteCharacters 2012-02-19 15:13:12 +01:00
Marcin Kulik
c3f3da1318 Tab stop support 2012-02-19 15:12:56 +01:00
Marcin Kulik
dd737d4134 Fix bright attribute support 2012-02-13 22:43:43 +01:00
Marcin Kulik
bbd34c7e7c Escape & and < in span before inserting them into DOM 2012-02-13 22:20:29 +01:00
Marcin Kulik
b6ccd8bf88 restartCursorBlink on movie-awake event 2012-02-13 18:43:54 +01:00
Marcin Kulik
ee7a051172 Cache generated brush spans 2012-02-12 22:48:04 +01:00
Marcin Kulik
df1c1f5a4a Orders of magnitude faster rendering 2012-02-12 22:36:52 +01:00
Marcin Kulik
f4848c8b4b Update only changed lines instead of whole screen 2012-02-12 22:02:57 +01:00
Marcin Kulik
6819f75070 Simplify dirty line tracking 2012-02-12 21:53:00 +01:00
Marcin Kulik
a9e0e261dc Extract line initialization and removal to separate methods 2012-02-12 21:49:46 +01:00
Marcin Kulik
f0c599892e Fix insert/deleteLine 2012-02-12 21:41:24 +01:00
Marcin Kulik
1adb15a533 Scroll region support 2012-02-12 19:54:49 +01:00
Marcin Kulik
a194067ab5 Lots of good stuff \m/ 2012-02-12 19:41:56 +01:00
Marcin Kulik
2d4bc140a1 Fix cursorDown/Up 2012-02-12 16:45:08 +01:00
Marcin Kulik
d6a0211cb9 VT *is* interpreter + screen buffer as one 2012-02-12 16:39:16 +01:00
Marcin Kulik
fd16702938 Render cursor in visible state for update lines 2012-02-12 14:05:29 +01:00
Marcin Kulik
6ecb2e7fdc Improved cursor behavior 2012-02-12 14:02:25 +01:00
Marcin Kulik
9c5201905c Data buffering in VT 2012-02-12 13:35:41 +01:00
Marcin Kulik
4e5240e24f Switched to jasminrice for coffee specs 2012-02-11 15:37:49 +01:00
Marcin Kulik
5d6ba15b19 VT = Ansi interpreter + (embedded) screen buffer 2012-02-11 13:50:06 +01:00
Marcin Kulik
a378358abf Improvements to interpreter and screen buffer 2012-02-09 22:31:14 +01:00
Marcin Kulik
a591423e3b Moah refactoringz, moah specs 2012-02-07 10:42:57 +01:00
Marcin Kulik
ed6d1146da Brush with spec 2012-02-05 14:21:10 +01:00
Marcin Kulik
10ebba7755 Remove empty file 2012-02-05 14:20:54 +01:00
Marcin Kulik
2c4796ed70 All js specs passing 2012-02-04 23:54:43 +01:00
Marcin Kulik
145e66ca18 Refactoring time!! 2012-02-04 20:09:44 +01:00
Marcin Kulik
5ca0a2965d CSI M handler 2012-01-20 21:41:40 +01:00
Marcin Kulik
8f770a28bf Use recommended color cube values for 216 rgb colors / 24 shades of grey 2012-01-20 21:14:33 +01:00
Marcin Kulik
e508aadfa1 VPA - Vertical Position Absolute 2012-01-19 22:44:40 +01:00
Marcin Kulik
f4bc758936 CHA – Cursor Horizontal Absolute 2012-01-19 22:43:43 +01:00
Marcin Kulik
73221c8d14 NOOP for "Autowrap mode" 2012-01-19 22:42:51 +01:00
Marcin Kulik
e1b1bc56da NOOP for "Move to next tab stop" 2012-01-19 22:41:55 +01:00
Marcin Kulik
68703136cb Cleanup after js2coffee 2012-01-19 00:01:37 +01:00