Marcin Kulik
9dad3840fa
Use yajl for parsing terminal snapshots
11 years ago
Marcin Kulik
e3678da97a
Remove Oj - it leaks like a little puppy
11 years ago
Marcin Kulik
ee636bf958
Update the player to use backend-generated JSON frames
11 years ago
Marcin Kulik
a1cd6ca2ae
Bring on the terminal.c!
11 years ago
Marcin Kulik
82ff7148a9
Make sure the preview snapshot always has requested height
11 years ago
Marcin Kulik
f15f2e11a5
Avoid making a copy of feed data string
11 years ago
Marcin Kulik
b3da1c0656
Don't crash when stdout data is shorter than expected
11 years ago
Marcin Kulik
79f8eaf2ed
Fix display of reversed characters in the thumbnails and the preview
11 years ago
Marcin Kulik
82fa03863d
Adjust Snapshot#crop to work on already optimized lines
11 years ago
Marcin Kulik
ff153fff1a
Make Terminal return already optimized snapshot
11 years ago
Marcin Kulik
0e2c1784c6
Use terminal binary as a base for Terminal
11 years ago
Marcin Kulik
e537c1b78a
Only release terminal if it is not nil
11 years ago
Marcin Kulik
e862acedb7
Animation frames generation on the backend
11 years ago
Marcin Kulik
bc6e1ddc3d
Make implementation of Stdout more readable
11 years ago
Marcin Kulik
9e152c3172
Sanitize all characters coming from TSM::Screen#draw
...
It happens that libtsm's screen_draw returns a character that can't be
properly encoded as utf-8. As what we get is only meant to be displayed
and not interpreted we can replace these invalid characters with a
questio mark, which is a common practice for printing invalid chars.
11 years ago
Marcin Kulik
26801d207f
Make Asciicast use BufferedStdout instead of Stdout
11 years ago
Marcin Kulik
c3fc452b91
Make Grid#crop easier to read
11 years ago
Marcin Kulik
731fb11e8b
Simplify Grid#trailing_empty_lines implementation
11 years ago
Marcin Kulik
b47fa27968
Refactor Snapshot to use Grid under the hood
11 years ago
Marcin Kulik
d324200b01
Add BufferedStdout class whose #each yields at 60 hz tops
11 years ago
Marcin Kulik
c775bc8b06
Use less spans for thumbnail rendering
11 years ago
Marcin Kulik
31a880b7aa
Simplify Snapshot and its presenter
11 years ago
Marcin Kulik
34b39d0db3
Simplify the structure returned by Terminal#snapshot
...
Each screen character is in its own, separate cell now. In addition the char
attributes don't include attributes that are "falsy".
11 years ago
Marcin Kulik
065e2cbc30
Split AsciicastStreamer#attributes_for_streaming into smaller methods
11 years ago
Marcin Kulik
731751650c
Keep the lines shorther than 80 chars
11 years ago
Marcin Kulik
cdc2f01753
Find or build user from omniauth hash in the middleware
11 years ago
Marcin Kulik
40856933aa
Support "blink" attribute in the thumbnails
11 years ago
Marcin Kulik
a53c8de5b9
Pass paths to decompressed stdout files to Stdout
11 years ago
Marcin Kulik
cf3e812e8e
Move duration info below the thumbnail
11 years ago
Marcin Kulik
bae9bfdbc7
Use correct singular/plural form for asciicast count
11 years ago
Marcin Kulik
13119b2987
Display asciicast length on thumbnails
11 years ago
Marcin Kulik
44a7b0788e
Convert asciicasts#_preview to slim
11 years ago
Marcin Kulik
49a2abe32b
Make the "when by whom" font smaller
11 years ago
Marcin Kulik
abe0b77bcd
Convert asciicast#index to slim
11 years ago
Marcin Kulik
562cd0ef0b
Add "Show more" link on the homepage
11 years ago
Marcin Kulik
5c141003a1
Use "asciicast" over "Asciicast" in UI
11 years ago
Marcin Kulik
2e9b0a4718
Remove boring empty trailing lines from thumbnails
11 years ago
Marcin Kulik
9086aae060
Remove unused code
11 years ago
Marcin Kulik
6acea6da70
Use tilde prefix for nickname only in profile url
11 years ago
Marcin Kulik
4bb61b614f
Prevent bots from following Edit links
11 years ago
Marcin Kulik
452f5869cf
Fix Bzip2Uploader#decompressed_path for S3 storage
11 years ago
Marcin Kulik
869ca9d896
Adjust JS player to new asciicast JSON representation
11 years ago
Marcin Kulik
6db65b2a6c
Serve asciicast as JSON in chunks
11 years ago
Marcin Kulik
7e1b41dfef
Code reformating in TimingParser
11 years ago
Marcin Kulik
d21be98a5c
Adjust SnapshotCreator to the latest API changes in Terminal and Stdout
11 years ago
Marcin Kulik
0c3494d174
Require explicit call to Terminal#snapshot for getting the snapshot
11 years ago
Marcin Kulik
6c8dbf4173
Make Stdout provide data in chunks
11 years ago
Marcin Kulik
fa4c5e4664
Replace Bzip2Uploader#decompressed with #decompressed_path
11 years ago
Marcin Kulik
40da1823d6
Do not send X-Frame-Options header in embeddable widget action
11 years ago
Marcin Kulik
c22cb1cdcc
Get rid of the asciicast comments that are not used anymore
11 years ago
Marcin Kulik
20645271a1
Update models and helpers to use new Rails 4 syntax
11 years ago
Marcin Kulik
3f879e79da
Ensure terminal gets released even in case of an exception
11 years ago
Marcin Kulik
0a8cc6ff8a
One more attempt to fix the memory leak
11 years ago
Marcin Kulik
4767442875
Make Snapshot#crop return the snapshot of exact requested height
11 years ago
Marcin Kulik
7c9a9842af
Adjust color of the play prompt triangle to match color thumbnails better
11 years ago
Marcin Kulik
ade244e5d0
Fix rendering of snapshot in the player
11 years ago
Marcin Kulik
62be399455
Refactor player styles and use them for snapshots
11 years ago
Marcin Kulik
5ecf209a53
Add some TODO comments
11 years ago
Marcin Kulik
7d5a544650
Generate thumbnails from JSON snapshot via Snapshot/SnaphotPresenter
11 years ago
Marcin Kulik
ddf0e57b39
Update SnapshotWorker to generate colorful snapshots
11 years ago
Marcin Kulik
c8d574b243
Serialize asciicast snapshot just as JSON
11 years ago
Marcin Kulik
59e31baa1b
Process incoming asciicast with AsciicastCreator
11 years ago
Marcin Kulik
86a4662fe5
Abstract stdout_data and stdout_timing as a single value object
11 years ago
Marcin Kulik
caa6c52759
Rename stdout to stdout_data, stdin to stdin_data
11 years ago
Marcin Kulik
55fe325ec4
Add Bzip2Uploader for uploading, retrieving and decompressing bzip2 files
11 years ago
Marcin Kulik
1aefeb4d6b
Introduce BaseUploader with common store_dir for all uploaders
11 years ago
Marcin Kulik
56a2bb2378
Fix Snapshot#crop to not burn when height > line count
11 years ago
Marcin Kulik
d93ac84c21
Refactor AsciicastDecorator#thumbnail to render colorful thumbnail
11 years ago
Marcin Kulik
86f728364c
Add Brush model
11 years ago
Marcin Kulik
e947524533
Add a simple model representing a terminal snapshot
11 years ago
Marcin Kulik
8daf2d0f7f
Serialize Snapshot with Snapshot::Serializer
11 years ago
Marcin Kulik
a10a447c53
Make the snapshots the hashes
11 years ago
Marcin Kulik
49df9e9082
Make SnapshotWorker a Sidekiq based worker
11 years ago
Marcin Kulik
5087533126
Do the snapshotting in the service object
11 years ago
Marcin Kulik
e85104179e
Fix unbzipping of stdout files
11 years ago
Marcin Kulik
a81d9dadb3
Use tsm gem for snapshot generation
11 years ago
Marcin Kulik
4e1f01dc99
Add logging to SnapshotWorker
11 years ago
Marcin Kulik
2d6b60e027
Fix AsciicastDecorator#embed_script
11 years ago
Marcin Kulik
df6bed3541
Merge branch 'master' into embed
11 years ago
Marcin Kulik
8a52605266
Add spec for AsciicastDecorator#embed_script
11 years ago
Marcin Kulik
013eade63c
Count view only once in the same browser
11 years ago
Marcin Kulik
feec862f99
Display embed link on the asciicast's page
11 years ago
Marcin Kulik
20cf58e89b
Make the render expose its width and height
11 years ago
Marcin Kulik
f0b66b6399
Center overlays according to viewport/container width
11 years ago
Marcin Kulik
e182cce8ee
Don't use document.write to insert the player into the DOM
11 years ago
Marcin Kulik
f22837f4e9
Add "embed" css/js bundles
11 years ago
Marcin Kulik
d1dcd08861
Initial version of iframe-based embedding
11 years ago
Marcin Kulik
7a3bc80340
Prevent progress bar to span more than 1 line
11 years ago
Marcin Kulik
22ae493513
Fix terminal's line-height even more!
11 years ago
Marcin Kulik
1e57bee513
Fix terminal line's line-height
11 years ago
Marcin Kulik
49be5d6fe2
Convert layout to slim
11 years ago
Marcin Kulik
597eb5174b
Use old-sass syntax for stylesheets
11 years ago
Marcin Kulik
127f68a778
Fix Api::CommentsController#index
11 years ago
Marcin Kulik
87128c0873
Remove commented out code
11 years ago
Marcin Kulik
078b04e3a1
Fix asciicast page when its author has other asciicasts
11 years ago
Marcin Kulik
4c5c0c7d0e
Fix logging in after draper upgrade
11 years ago
Marcin Kulik
7659fe722e
Fix UsersController#show
11 years ago
Marcin Kulik
a6bbdf7a39
Load homepage asciicast in before_filter
11 years ago
Marcin Kulik
3e2bc439a0
Make sure docs pages are fine
11 years ago
Marcin Kulik
62a3ffed92
Don't check for webkit anymore when enabling WebWorker player
11 years ago