Commit Graph

205 Commits (041fb81c7eb80c55361fbbad4b9ae2ea855c041e)

Author SHA1 Message Date
Marcin Kulik 3809191a7c Remove duplicated association defs 10 years ago
Marcin Kulik c9ccc1b066 Add ability to set custom thumbnail frame time 10 years ago
Marcin Kulik e9f4ed1f61 Accept api token as http basic auth password 10 years ago
Marcin Kulik 0cd4559f5a Log in by email without Persona 10 years ago
Marcin Kulik bf54046836 Link to anonymous users profiles 10 years ago
Marcin Kulik 9064a37e24 Validate email format 10 years ago
Marcin Kulik ca156564f5 Don't use "dummy" anywhere 10 years ago
Marcin Kulik c4a4961553 Introduce ExpiringToken, a base for future authentication 10 years ago
Marcin Kulik e06e72676e Drop "dummy" from users, replace it with temporary_username 10 years ago
Marcin Kulik 956975db38 Fix User.for_email to never return dummy users without email 10 years ago
Marcin Kulik 130948ae3f Upgrate to Rails 4.1.5 10 years ago
Marcin Kulik 26cb260b41 Add "loop" option for embedded player 10 years ago
Marcin Kulik 560e11f24e Introduce admin 10 years ago
Marcin Kulik 6bb5f39f8b Add theme changing for whole user profile and single asciicast 10 years ago
Marcin Kulik 14648f11b7 Add ability to override theme via url param 10 years ago
Marcin Kulik b6a23222d7 Integrate new React.js-based player 10 years ago
Marcin Kulik ace357187c Well, 2 letter usernames are fine too 11 years ago
Marcin Kulik a6bb7bf5ba Allow capital letters in usernames 11 years ago
Marcin Kulik 698767ad82 Validate username format 11 years ago
Marcin Kulik fe5907e96f Don't use AR API outside of AR classes 11 years ago
Marcin Kulik 28e0926fd6 Split User.for_api_token into separate lookup and create methods 11 years ago
Marcin Kulik 83df37f48b Refactor Asciicast#user 11 years ago
Marcin Kulik 94817be1b3 Rename nickname to username 11 years ago
Marcin Kulik 81c8340bc1 Drop unused columns from asciicasts table 11 years ago
Marcin Kulik 24bad5e628 Use strong_parameters instead of protected_attributes 11 years ago
Marcin Kulik 9b32e2dc37 Prevent shadowing real user profiles by dummy ones 11 years ago
Marcin Kulik 5db7506823 Make "default legacy" asciicast user a dummy one 11 years ago
Marcin Kulik 1be5538e5c Merge dummy users into real ones when assigning api tokens 11 years ago
Marcin Kulik 2ceea32cc4 Create dummy users for new api tokens 11 years ago
Marcin Kulik 74d7bb0156 Make AsciicastCreator unaware of API subtleties 11 years ago
Marcin Kulik 0a47fd441f Remove unused recorded_at column 11 years ago
Marcin Kulik 9530c9d870 Ignore "recorded_at" from client 11 years ago
Marcin Kulik 633f514de8 Use Virtus for AsciicastParams 11 years ago
Marcin Kulik cc28d6efad Use ruby 1.9 hash syntax 11 years ago
Marcin Kulik 13544d9d04 Rename user_token to api_token 11 years ago
Marcin Kulik 463f18c207 Refactor user page to use a presenter object 11 years ago
Marcin Kulik a9913a966d Rename "font_size" playback option to "size" 11 years ago
Marcin Kulik 57bcab04c9 Use proper PlaybackOptions object for passing options to JS player 11 years ago
Marcin Kulik 86f6af3d78 Introduce AsciicastPresenter 11 years ago
Marcin Kulik d571be2bbd Introduce AsciicastListPresenter 11 years ago
Marcin Kulik e2e117ce84 Refactor profile link helpers and decorators 11 years ago
Marcin Kulik 9b80151511 Randomize "featured" and "other by user" lists 11 years ago
Marcin Kulik 2dbc811caf Fix the condition for displaying edit/delete links 11 years ago
Marcin Kulik 38cde2d172 Avoid AR chains outside of AR models 11 years ago
Marcin Kulik 100273f5bf Update browse page to new layout and add sorting 11 years ago
Marcin Kulik c0473dc217 Redesign homepage (and layout in general) 11 years ago
Marcin Kulik 431fd87002 Use auth token for permanent sessions 11 years ago
Marcin Kulik 3e1feff84e Auto-strip whitespace from email and nickname 11 years ago
Marcin Kulik 5bd8b05a93 Validate presence and uniqueness of both nickname and email 11 years ago
Marcin Kulik 4b5c02477b Don't override error message for user's nickname uniqueness 11 years ago
Marcin Kulik a2b0a637fa Refactor User.for_credentials/for_email into class methods 11 years ago
Marcin Kulik d4cbc3e504 Make Persona the only login option (with the ability to access old accounts) 11 years ago
Marcin Kulik 7e5af6ed56 Favor uname over user_agent when accepting upload 11 years ago
Marcin Kulik d74ead2263 Store client's user agent on Asciicast record 11 years ago
Marcin Kulik d71da5b369 Move asciicast attributes preparation to AsciicastAttributes 11 years ago
Marcin Kulik 32a2f44eb6 Move user token creation/assignment to a service object 11 years ago
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 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 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 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 2e9b0a4718 Remove boring empty trailing lines from thumbnails 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 20645271a1 Update models and helpers to use new Rails 4 syntax 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 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 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