Commit Graph

1059 Commits

Author SHA1 Message Date
Marcin Kulik
680d4bf96c Make player creation code more intention revealing 2015-05-16 09:39:16 +00:00
Marcin Kulik
c070430135 Move JS code to .js file 2015-05-16 09:31:03 +00:00
Marcin Kulik
49cfe584ba Use policy scope to decide which asciicasts should be listed 2015-05-15 19:13:37 +00:00
Marcin Kulik
6f0d55b22a Mark private and featured asciicasts 2015-05-15 17:36:12 +00:00
Marcin Kulik
8bb68ad53e Serve original asciicast files from /a/:id.json 2015-05-13 13:46:25 +00:00
Marcin Kulik
86c25b117d Move private API endpoint to less representative path 2015-05-13 13:10:03 +00:00
Marcin Kulik
1cb47a4e16 It's lowercase "asciinema" 2015-05-13 10:49:36 +00:00
Marcin Kulik
9da6892a9c Fix "processing" page for private asciicasts 2015-05-13 10:43:49 +00:00
Marcin Kulik
09a4364ce8 There's no real need for Backbone here 2015-05-13 10:39:03 +00:00
Marcin Kulik
e9c8f1a18f Tweak user profile message 2015-05-11 13:43:03 +00:00
Marcin Kulik
b80d5fa6c4 Link to player repo from "how it works" page 2015-05-10 19:35:04 +00:00
Marcin Kulik
e7e71644d4 Make it clear listed asciicasts are public 2015-05-10 19:15:43 +00:00
Marcin Kulik
26be8c5227 Display "untitled" for untitled private asciicasts 2015-05-10 17:03:36 +00:00
Marcin Kulik
7156130d90 Allow everyone to have private asciicasts 2015-05-10 16:40:39 +00:00
Marcin Kulik
bffc76faa9 Use "null" user in policies 2015-05-08 10:19:52 +00:00
Marcin Kulik
2d4a0fbaa1 Log more details about terminal process death 2015-05-08 10:14:19 +00:00
Marcin Kulik
3fe980f209 Validate max values of terminal width and height 2015-05-08 09:52:42 +00:00
Marcin Kulik
c671a9ca8d Add ability to change default asciicast visibility (public/private) 2015-04-28 13:11:19 +00:00
Marcin Kulik
453d5c75a8 Full name doesn't have to be real 2015-04-28 11:18:11 +00:00
Marcin Kulik
69eb52f061 Allow supporters to change asciicast visibility 2015-04-28 11:00:23 +00:00
Marcin Kulik
bd4240587c Allow admin to change asciicast's visibility 2015-04-27 13:10:41 +00:00
Marcin Kulik
84acecfdc0 Use to_param for tmp title when no real title is set 2015-04-27 11:21:36 +00:00
Marcin Kulik
3772da7f63 Ask browsers to not send referrer for external links 2015-04-26 15:55:38 +00:00
Marcin Kulik
dd23c87e09 Fix sending of size message from an iframe 2015-04-26 15:55:33 +00:00
Marcin Kulik
ae95697a9a Add meta tags for hiding referrer on private asciicast pages 2015-04-26 15:09:30 +00:00
Marcin Kulik
3f32ee0ef6 No "self" needed here 2015-04-26 13:54:23 +00:00
Marcin Kulik
2c7d549778 Require private asciicasts to be requested via secret token 2015-04-26 13:30:42 +00:00
Marcin Kulik
6aeb8810ad Refactor AsciicastPolicy 2015-04-25 18:47:52 +00:00
Marcin Kulik
6bc2fd1048 Pad secret token correctly
After converting base 16 (hex) string of length 16 to integer and then to
base 36 we can end up with a shorter string due to implicit zeroes on
leading positions in the intermediate integer. This ensures
"00000000000000000000000000000000", "ffffffffffffffffffffffffffffffff"
and everything in between result in a string of length 25 after converting to
base 36.
2015-04-25 10:15:29 +00:00
Marcin Kulik
2c0bfee0cd Filter out private asciicasts on homepage 2015-04-25 10:15:28 +00:00
Marcin Kulik
5dbe2c84c0 UI for toggling asciicasts private/public 2015-04-25 10:15:28 +00:00
Marcin Kulik
a30ee0d082 Allow making asciicasts "private" 2015-04-25 10:15:28 +00:00
Marcin Kulik
ade94029d6 Fail fast when invalid order given 2015-04-24 11:40:28 +00:00
Marcin Kulik
318654ef21 Use new player and its new API 2015-04-22 18:55:53 +00:00
Marcin Kulik
c34af6de4c Fix borders, paddings and margins on asciicast page 2015-04-22 15:49:45 +00:00
Marcin Kulik
3097292bd5 Move modal from :last-item position to fix double border at the bottom 2015-04-22 15:22:20 +00:00
Marcin Kulik
06cab0b59f Remove unused CSS 2015-04-22 15:16:20 +00:00
Marcin Kulik
94c39b6441 Limit title/command to 255 chars 2015-04-20 10:43:37 +00:00
Marcin Kulik
bf925c566d Add proper Contact page 2015-04-18 14:02:45 +00:00
Marcin Kulik
e8e4805431 Add contact info to footer 2015-04-16 11:09:49 +00:00
Marcin Kulik
14cbfa432c Use button group instead of dropdown for sorting 2015-04-16 10:41:27 +00:00
Marcin Kulik
fd6f9f2ee9 Activate ApiTokenRegistrator for asciicast upload only 2015-04-16 10:24:29 +00:00
Marcin Kulik
67d21b9692 Prevent asciicast upload for revoked tokens 2015-04-04 17:59:58 +00:00
Marcin Kulik
fc9e8a47de Validate client generated tokens - they should be UUID 2015-04-04 17:57:34 +00:00
Marcin Kulik
c0b000b4df Always require authentication for asciicast upload 2015-04-04 17:48:01 +00:00
Marcin Kulik
448f0eb899 Use warden scopes 2015-04-04 17:46:55 +00:00
Marcin Kulik
3ced30b4f0 Null user should be used only for display purposes 2015-04-04 17:38:39 +00:00
Marcin Kulik
e05fbd574f Add ability to revoke recorder tokens 2015-04-03 17:07:38 +00:00
Marcin Kulik
fd03554e2e Don not auto-register Warden strategies on require 2015-04-03 16:58:40 +00:00
Marcin Kulik
47578b63b1 Refactor handling of auth token for pre 0.9.9 clients 2015-04-03 16:48:37 +00:00
Marcin Kulik
a719251745 Fix snapshot HTML escaping 2015-04-03 16:04:00 +00:00
Marcin Kulik
8c50e7d1b1 Words 2015-04-01 15:00:13 +00:00
Marcin Kulik
d5ff67c4f5 Fix typo 2015-04-01 14:55:44 +00:00
Marcin Kulik
65349d60cc Be more clear about first login 2015-04-01 14:54:19 +00:00
Marcin Kulik
a80e9a72f0 Link to login form for user's convenience 2015-04-01 09:52:03 +00:00
Marcin Kulik
4747091764 Open image link in new tab
The screenshot has "play button" which tricks people to start playback.
In most cases they don't want to leave the current page, so opening
asciicast link in a new tab seems like the best solution.
2015-03-31 15:39:34 +00:00
Marcin Kulik
875112caac Words 2015-03-31 17:36:33 +02:00
Marcin Kulik
d6ddcf029d Update "Embedding" docs 2015-03-31 14:36:03 +00:00
Marcin Kulik
f9da63be3b Make docs templates the real markdown files 2015-03-31 13:07:22 +02:00
Marcin Kulik
689255edf1 Add Twitter card meta tags 2015-03-30 20:08:15 +00:00
Marcin Kulik
537846e372 Use text-only description in Open Graph tags 2015-03-30 17:54:43 +00:00
Marcin Kulik
724b79c371 Refactor image size part of screenshot generator 2015-03-30 16:41:45 +00:00
Marcin Kulik
7765c157c3 Use pre-redirect URL for thumbnail 2015-03-30 16:26:22 +00:00
Marcin Kulik
77ea5809f5 Add Open Graph meta tags 2015-03-30 16:23:58 +00:00
Marcin Kulik
04004c490d Ensure thumbnail image size is known before generating oEmbed response 2015-03-30 10:33:45 +00:00
Marcin Kulik
871745cc6c "Generator" is a better name here 2015-03-30 10:27:59 +00:00
Marcin Kulik
08749dd32d Move html rendering to image updater 2015-03-30 10:23:58 +00:00
Marcin Kulik
7d199ad416 Make routes AsciicastPagePresenter's dependency 2015-03-30 10:02:21 +00:00
Marcin Kulik
86559fad20 Add oEmbed discovery tags to asciicast page 2015-03-29 18:48:35 +00:00
Marcin Kulik
0930e5fa23 Add oEmbed endpoint 2015-03-29 18:19:18 +00:00
Marcin Kulik
aa923c734a Use Google Analytics script only in production 2015-03-29 18:07:13 +00:00
Marcin Kulik
b619302e3e Refactor PNG generation 2015-03-29 14:15:05 +00:00
Marcin Kulik
fc873a8371 Fix alt attribute of embed screenshot image 2015-03-28 17:04:33 +00:00
Marcin Kulik
43b6cb5b51 Add screenshot width attr only when it's available 2015-03-27 17:42:25 +00:00
Marcin Kulik
7a321bf2cc Use "display" width in HTML image links 2015-03-27 17:33:50 +00:00
Marcin Kulik
bb622d670e Enable embedding with image links 2015-03-27 17:10:03 +00:00
Marcin Kulik
2852248989 Add PNG generation (https://asciinema.org/a/17654.png) 2015-03-27 11:42:14 +00:00
Marcin Kulik
ca09a61b52 Handle invalid asciicast upload 2015-03-23 17:40:11 +01:00
Marcin Kulik
2efaa643b2 Use new logo in header 2015-03-13 16:15:34 +01:00
Marcin Kulik
5826490f0b Address asciicast editing in FAQ 2015-03-12 17:19:27 +01:00
Marcin Kulik
13c114b8fa Update usage docs 2015-03-12 17:06:00 +01:00
Marcin Kulik
3078b85d71 New concept! Foreign key constraints. On database! 2015-03-11 10:55:54 +01:00
Marcin Kulik
da16853121 Be more clear about private instance in FAQ 2015-03-09 10:27:28 +01:00
Marcin Kulik
ef5ab0dcf1 Update paths to reflect new repo location 2015-03-06 10:37:43 +00:00
muescha
4f389be88f add link to custom codebase 2015-03-06 00:12:18 +01:00
Marcin Kulik
8264105ca3 Return meaningful error message for 422 2015-03-02 19:41:25 +00:00
Marcin Kulik
f45ff47737 Read asciicast directly from URL 2015-03-02 10:53:56 +00:00
Marcin Kulik
dad5f40c17 Expose stdout of old and new format asciicasts via Asciicast#stdout 2015-02-28 17:39:31 +00:00
Marcin Kulik
47c222c945 Refuse to accept json file with version != 1 2015-02-27 15:44:15 +00:00
Marcin Kulik
531a2de60f Handle all asciicast attribute building outside of the controller 2015-02-27 14:40:12 +00:00
Marcin Kulik
c6cc9fbdbc Accept version 1 asciicasts 2015-02-27 14:01:12 +00:00
Marcin Kulik
78a2ba9ea9 Lookup asciicast creator on controller level 2015-02-26 16:17:11 +00:00
Marcin Kulik
3809191a7c Remove duplicated association defs 2015-02-26 13:11:22 +00:00
Marcin Kulik
2c0397dd97 "forEach" is simpler than old school "for" 2015-02-18 12:20:20 +00:00
Marcin Kulik
2a8795f40a Simplify query params formatting 2015-02-18 11:28:15 +00:00
Marcin Kulik
b82882a5f1 Improve IE compatibility 2015-02-18 09:58:23 +00:00
Marcin Kulik
527abc03b5 Allow embedding the same asciicast multiple times on a single page 2014-12-23 17:27:33 +00:00
Marcin Kulik
bf01b7f3a3 Add homebrew installation info 2014-12-19 11:06:45 +00:00
Marcin Kulik
9cc64e3fd9 Fix "easy install" command - handle redirects 2014-12-17 16:20:46 +00:00
Marcin Kulik
dfaea4594d Use <kbd> for key combo 2014-12-17 15:53:27 +00:00
Marcin Kulik
5480879f1e Update git URLs on "Contributing" page 2014-12-17 15:50:31 +00:00
Marcin Kulik
a7aab637fe Always use lowercase "asciinema". Also fix git repositories' URLs 2014-12-17 15:46:03 +00:00
Marcin Kulik
b1f12711bf Add better "Usage" doc page 2014-12-17 15:10:41 +00:00
Marcin Kulik
8dc6db023e Update installation instructions 2014-12-16 20:20:47 +00:00
Marcin Kulik
03f9d1b1d3 Don't use command as title when command == shell 2014-12-15 16:33:17 +00:00
Marcin Kulik
e75a39a48f Revert "Support ind.ie"
This reverts commit cc8e220bb5.
2014-12-13 19:11:24 +01:00
Marcin Kulik
976e20a2a6 Use new logo for favicon 2014-12-08 23:03:11 +01:00
Marcin Kulik
cc8e220bb5 Support ind.ie 2014-12-05 23:44:04 +00:00
Marcin Kulik
9d6a01fa41 Differentiate avatar between unconfirmed users with the same tmp username 2014-11-29 12:26:11 +00:00
Marcin Kulik
45d1d6c18b Use retro gravatars for default avatars 2014-11-29 12:17:03 +00:00
Marcin Kulik
1c3597fac0 Use <kbd> for displaying key sequences 2014-11-29 12:40:41 +01:00
Marcin Kulik
c9ccc1b066 Add ability to set custom thumbnail frame time 2014-11-27 12:30:08 +00:00
Marcin Kulik
8d496bd418 Make snapshot generation aware of custom snapshot time on asciicast 2014-11-27 11:48:41 +00:00
Marcin Kulik
1e9423bc89 Fix flash padding 2014-11-15 18:31:45 +00:00
Marcin Kulik
3207c4a65f Update OS detection for 0.9.9 client's User-Agent format 2014-11-05 16:27:05 +00:00
Larry Gilbert
df789b014e Change "Gittip" -> "Gratipay" and update widget accordingly 2014-10-29 12:04:13 -07:00
Marcin Kulik
a714f19176 Accept (temporary_)username as http basic auth username 2014-10-25 20:53:12 +02:00
Marcin Kulik
e9f4ed1f61 Accept api token as http basic auth password 2014-10-25 20:53:12 +02:00
Marcin Kulik
f461f24326 No need for before_action 2014-10-25 20:53:12 +02:00
Marcin Kulik
c06b4b3871 Make top navbar fixed 2014-10-18 11:05:04 +02:00
Marcin Kulik
d8845cb80e Make login error message more clear 2014-10-18 10:16:41 +02:00
Marcin Kulik
427c19638c Prompt for username after login 2014-10-17 20:24:23 +02:00
Marcin Kulik
5cb64f0fda Prefer Menlo to Monaco on Mac, make <pre> border lighter 2014-10-17 20:24:23 +02:00
Marcin Kulik
504db3f605 Improve copy 2014-10-17 20:24:23 +02:00
Marcin Kulik
70e20c84ef Improve profile page 2014-10-17 20:24:23 +02:00
Marcin Kulik
4909d83f9f Display email in session info area when user has no username 2014-10-17 20:24:23 +02:00
Marcin Kulik
feb9703620 Remove old authentication code (browser-id, github, twitter) 2014-10-17 20:24:23 +02:00
Marcin Kulik
7397e14a57 Remove old user sign up code 2014-10-17 20:24:23 +02:00
Marcin Kulik
0cd4559f5a Log in by email without Persona 2014-10-17 20:24:22 +02:00
Marcin Kulik
53c2598c48 Only display flash notifications for :alert and :notice keys 2014-10-17 20:24:09 +02:00
Marcin Kulik
bf54046836 Link to anonymous users profiles 2014-10-05 19:53:00 +02:00
Marcin Kulik
9064a37e24 Validate email format 2014-10-05 18:26:30 +02:00
Marcin Kulik
ca156564f5 Don't use "dummy" anywhere 2014-10-05 18:25:49 +02:00
Marcin Kulik
c4a4961553 Introduce ExpiringToken, a base for future authentication 2014-10-05 17:58:05 +02:00
Marcin Kulik
e06e72676e Drop "dummy" from users, replace it with temporary_username 2014-10-05 17:47:42 +02:00
Marcin Kulik
408042ca29 Don't use redundant "-k" option for gzip/bzip2 2014-09-23 19:26:12 +02:00
Marcin Kulik
956975db38 Fix User.for_email to never return dummy users without email 2014-09-23 19:05:14 +02:00
Marcin Kulik
0beacb326e Support gzip compressed data files (to be used by new version of cli) 2014-09-15 20:34:35 +02:00
Marcin Kulik
130948ae3f Upgrate to Rails 4.1.5 2014-08-30 20:10:49 +02:00
Marcin Kulik
1ca942bd66 Update credits list 2014-08-27 21:49:36 +02:00
Marcin Kulik
0ab620b5bf Stop advertising FreeBSD compatibility 2014-08-09 15:41:25 +02:00
Marcin Kulik
884e91354a Update embedding docs 2014-08-09 13:40:44 +02:00
Marcin Kulik
26cb260b41 Add "loop" option for embedded player 2014-08-09 13:10:07 +02:00
Marcin Kulik
a06d1b716a Remove references to js worker 2014-08-09 12:55:57 +02:00
Marcin Kulik
0714453ff9 Keep "Powerline symbols" font definition in "player" bundle 2014-07-30 09:43:18 +02:00
Richard Gray
62f09a63fb Enable Powerline symbols in embedded player.
Include the font-face CSS at-rule in embed.css to enable use of
powerline symbols in the embedded player.
2014-07-29 20:45:22 +01:00
Marcin Kulik
402529c60e Fix 404 handling on docs pages 2014-07-05 20:16:57 +02:00
Marcin Kulik
7921f5e729 Make "Browse all" links buttons 2014-07-05 19:37:49 +02:00
Marcin Kulik
ba387bbb20 Display 6 featured and 6 latest asciicasts on landing page 2014-07-05 19:37:21 +02:00
Marcin Kulik
560e11f24e Introduce admin 2014-07-05 14:59:42 +02:00