1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-28 08:03:07 +03:00
Commit Graph

465 Commits

Author SHA1 Message Date
Artyom
025491beba Include scripts locally
This should actually be faster because then the browser wouldn't have to
additionally resolve CDNJS (and also now the site can be tested without
internet connection).
2016-04-06 01:51:50 +03:00
Artyom
4e0169bf4d Minor 2016-04-06 01:36:55 +03:00
Artyom
1de64e1a6e Keep track of edits 2016-04-03 23:57:01 +03:00
Artyom
c408b8b08d Add a note about acid-state 2016-03-28 23:52:51 +03:00
Artyom
e4555d0da3 Write a note about show/hide 2016-03-27 02:34:29 +03:00
Artyom
ee6ba3e6d6 Don't do anything if the item itself doesn't exist 2016-03-25 00:26:10 +03:00
Artyom
3d46a83c02 Fix stupid bug (forgot to delete lines) 2016-03-25 00:25:21 +03:00
Artyom
59c8640d69 Remove character counting
It was useless really.
2016-03-24 22:20:25 +03:00
Artyom
58914a822b Add fields for deleted pros and cons 2016-03-24 21:16:14 +03:00
Artyom
b8d64fde61 Delete old ItemKind migration 2016-03-24 21:11:56 +03:00
Artyom
0b0e88044d Add a field for deleted items 2016-03-24 20:55:17 +03:00
Artyom
f3a88fd695 Add a field for deleted categories 2016-03-24 20:32:42 +03:00
Artyom
29646d580e Allow setting text editor to monospace 2016-03-24 03:02:09 +03:00
Artyom
96eea1265d Use wrapPage everywhere + sticky footer 2016-03-23 18:53:34 +03:00
Artyom
99150cae13 Catch Javascript errors 2016-03-23 12:22:14 +03:00
Artyom
652e28e585 Add an admin page (no content yet) 2016-03-23 01:54:59 +03:00
Artyom
93b3398c3b Update config after reading it 2016-03-22 23:09:05 +03:00
Artyom
e8f6d26d9f Minor 2016-03-22 22:39:04 +03:00
Artyom
e48d13d2a8 Add captions to images 2016-03-22 20:20:34 +03:00
Artyom
df3c55e823 Add feed icons 2016-03-22 20:19:05 +03:00
Artyom
72ad74a431 Use config instead of environment variables 2016-03-22 01:17:53 +03:00
Artyom
9b778967a4 Minor 2016-03-21 02:12:03 +03:00
Artyom
d8fe43b2c7 Blink when things are removed/moved 2016-03-20 16:41:32 +03:00
Artyom
406ae18116 Remove some TODOs 2016-03-20 15:44:33 +03:00
Artyom
e21e58aede Add help to category pages 2016-03-20 14:11:42 +03:00
Artyom
8d68933137 Add another “hide help” link 2016-03-20 14:08:26 +03:00
Artyom
aa6efe9d9a Add the “unwritten rules” page 2016-03-20 13:50:23 +03:00
Artyom
7cb7a79660 Add anchor links to items 2016-03-20 13:30:10 +03:00
Artyom
c81fa12305 Add a link to the main page on category pages 2016-03-20 03:15:55 +03:00
Artyom
eb0e13b94e Move everything to the “/haskell” subpath 2016-03-20 02:36:16 +03:00
Artyom
7d2f3594b6 Add feeds for items in categories 2016-03-19 21:36:21 +03:00
Artyom
f01c360b83 Move Lucid/Spock integration into another package 2016-03-19 18:29:58 +03:00
Artyom
8e294895ac Reverse the order in the title 2016-03-19 14:34:53 +03:00
Artyom
53025ef9ad Set a 1MB limit on requests 2016-03-19 14:34:53 +03:00
Artyom
5cff313a2e Fix ugliness in Chrome
Now there's different ugliness!

Ref. #9
2016-03-19 03:55:31 +03:00
Artyom
e1e74d23e4 Add a method to set global state 2016-03-19 02:52:44 +03:00
Artyom
c8b177b127 Add pages for categories 2016-03-19 02:40:00 +03:00
Artyom
7400bfa819 Generate alphanumeric Uids 2016-03-19 00:08:08 +03:00
Artyom
c268d91927 Don't generate small Uids 2016-03-18 23:45:18 +03:00
Artyom
95d710eaee Record creation time of items/categories 2016-03-18 21:32:33 +03:00
Artyom
96a4d59b29 Add “hk” as a synonym for “hackage” 2016-03-17 18:05:38 +03:00
Artyom
caa2af17f8 Allow Markdown blocks in the ecosystem field 2016-03-17 15:29:45 +03:00
Artyom
de88d2686c Put ecosystem before notes 2016-03-17 14:58:44 +03:00
Artyom
6f6a161abc Don't say “write something here” for ecosystem 2016-03-17 14:52:32 +03:00
Artyom
f116663b29 Recolor items in a less ugly way 2016-03-17 03:35:56 +03:00
Artyom
9b38dc68c0 Rename the thing 2016-03-17 03:22:46 +03:00
Artyom
def6c4db0a Change the style of pros/cons a bit 2016-03-17 03:02:51 +03:00
Artyom
43c3214d54 Add an “ecosystem” field 2016-03-17 03:02:11 +03:00
Artyom
f1cdd51536 Move the donations page to a file in static/ 2016-03-17 01:02:56 +03:00
Artyom
84454d2666 Add an environment variable to enable tracking 2016-03-16 23:47:59 +03:00
Artyom
efbd7716bb Don't use the tracking image at all 2016-03-16 15:52:58 +03:00
Artyom
5bee1ad9e8 HTML validity fix: don't use thisNode inside <ul> 2016-03-16 15:46:29 +03:00
Artyom
46c02b7ef2 Fix text length counting 2016-03-16 02:56:09 +03:00
Artyom
74be29738e Prerender Markdown
Makes page rendering about twice as fast
2016-03-16 02:17:08 +03:00
Artyom
ad95f9d94c Get rid of sample state 2016-03-16 02:10:58 +03:00
Artyom
63c707fc5b Minor 2016-03-16 00:59:00 +03:00
Artyom
61be3b5a2e Minor 2016-03-16 00:14:22 +03:00
Artyom
2504b6c969 Switch the order of “edit notes” and “hide notes” 2016-03-15 15:41:09 +03:00
Artyom
9a1dfec816 Split rendering into its own module 2016-03-15 15:35:35 +03:00
Artyom
6c94fc5231 Move blazeToHtml into another package 2016-03-15 14:20:06 +03:00
Artyom
993e33d154 Move JQuerySelector into JS.hs 2016-03-15 13:10:47 +03:00
Artyom
46ace5f57a Kill the EKG server thread upon exit 2016-03-15 13:03:05 +03:00
Artyom
401329d851 Write about Markdown in help 2016-03-15 03:29:18 +03:00
Artyom
da90a3f270 Add highlighting for the “repl” class
As well as fix the overflow thing that was adding extra space at the top
of every code block.
2016-03-15 03:11:46 +03:00
Artyom
32c3083eb9 Get rid of a renundant (now) dependency 2016-03-15 02:50:45 +03:00
Artyom
7b588e7c6e Move highlighting into a separate library 2016-03-15 02:48:30 +03:00
Artyom
1392ecd785 Add code highlighting 2016-03-15 00:09:39 +03:00
Artyom
0a2788059c Only collect stats every minute 2016-03-14 23:30:06 +03:00
Artyom
ddb4182603 Write about the status page 2016-03-14 22:13:57 +03:00
Artyom
4d579832a3 Add monitoring 2016-03-14 21:51:34 +03:00
Artyom
414a3b150b Allow the name and the Hackage name to differ 2016-03-14 17:09:05 +03:00
Artyom
e9e2a6ed1f Finally fix the bug Firefox has with saving fields
It's not It's All Text!'s fault, it's Firefox's fault – it saves input
values, and in our case it does it wrong sometimes, so you could start
editing details of item A and the “name” field would be from item B.
2016-03-14 16:32:17 +03:00
Artyom
67fbb610c2 Let kind be edited 2016-03-14 16:13:38 +03:00
Artyom
5882205c8e Create a kind for tools 2016-03-14 13:58:45 +03:00
Artyom
49b522c337 Render links without “(site)” for non-libraries 2016-03-13 20:28:51 +03:00
Artyom
35561aaae8 Guess whether new items are libraries or not 2016-03-13 20:21:50 +03:00
Artyom
63e808155e Implement search properly (with page-reload) 2016-03-13 02:35:50 +03:00
Artyom
506881e2e1 It's All Text! strikes again
Have to use scripts with all textareas to avoid It's All Text! filling
them with outdated data.
2016-03-13 01:29:02 +03:00
Artyom
09957c4c39 Simplify deletion confirmation dialogs 2016-03-12 20:06:24 +03:00
Artyom
915e5d6d89 Javascript string escaping ≠ Haskell escaping
In particular, Unicode characters are escaped as “\u0123” in Javascript,
but `show` uses the “\0123” format (and also decimals instead of hex)
2016-03-12 18:03:15 +03:00
Artyom
75a5a4b89b Refactor textarea code, deal with It's All Text! 2016-03-12 01:59:47 +03:00
Artyom
5ae1510d52 Stupid bug: forgot to repeat checkpoint creation 2016-03-12 00:08:55 +03:00
Artyom
0f1577252b Add a template for item notes 2016-03-12 00:06:14 +03:00
Artyom
17255b3fa0 Don't have 2 form elements in one <label> 2016-03-11 19:57:29 +03:00
Artyom
2cf47a0ec7 Add alt-text to images 2016-03-11 19:51:11 +03:00
Artyom
76e28a502e Minor 2016-03-11 19:14:29 +03:00
Artyom
184f96bd4d Backups 2016-03-11 18:40:34 +03:00
Artyom
c8573bd10a Add tags to TODOs 2016-03-11 17:37:55 +03:00
Artyom
d5b2ec3f9c Style textareas 2016-03-11 17:08:04 +03:00
Artyom
86ddd78ee7 Apparently “12” is right and “12px” is invalid 2016-03-11 16:37:11 +03:00
Artyom
eb473ed310 Add <title> 2016-03-11 16:36:37 +03:00
Artyom
674552dfae Add doctype 2016-03-11 16:31:40 +03:00
Artyom
77e797617e Add <head> and <body> tags to generated pages 2016-03-11 16:17:24 +03:00
Artyom
f30423c0fe Break things into more modules 2016-03-11 16:07:22 +03:00
Artyom
cd26bfcfe8 Serve js.js with correct MIME type 2016-03-11 15:02:53 +03:00
Artyom
e8c94ced39 Use shortcut-links 2016-03-11 14:58:11 +03:00
Artyom
086737789e Make text areas automatically grow 2016-03-11 13:28:08 +03:00
Artyom
bb588ca49c Move item controls into the header 2016-03-11 01:44:07 +03:00
Artyom
3f88eae40e Add item descriptions 2016-03-11 00:22:28 +03:00
Artyom
f60fdab1d1 Change the name to “A guide to ...” 2016-03-10 23:37:17 +03:00
Artyom
101158eeee Minor 2016-03-10 21:46:38 +03:00
Artyom
eea945f7ee Have “edit/hide notes” at the bottom as well 2016-03-10 11:23:57 +03:00
Artyom
9cbfc749c2 Minor 2016-03-10 00:28:24 +03:00
Artyom
8e6b12fbcb Make pro/con editing textareas wider 2016-03-09 22:27:52 +03:00
Artyom
cb9735d27b Add Piwik tracking 2016-03-09 02:24:02 +03:00
Artyom
7cb1c6351d Remove emptyState 2016-03-08 16:55:40 +03:00
Artyom
03311f0abd Use # instead of javascript:void(0) for buttons
It's faster in Firefox
2016-03-08 16:51:51 +03:00
Artyom
626c01b703 Rendering change: traits, and no Editable now 2016-03-08 16:43:04 +03:00
Artyom
a65a3efb5a Rendering change: item notes 2016-03-08 13:32:56 +03:00
Artyom
febfc1137d Rendering change: item info 2016-03-08 01:43:33 +03:00
Artyom
51d217dc9e Rendering change: category titles 2016-03-07 23:12:30 +03:00
Artyom
e5b386787c Rendering change: category notes 2016-03-07 23:07:14 +03:00
Artyom
54ccb40b7e Show/hide help without querying the server 2016-03-07 22:20:32 +03:00
Artyom
cf8763923e Add a “show/hide notes” button 2016-03-05 01:34:49 +03:00
Artyom
b01a9ac542 Add a note about disabled Javascript 2016-03-05 01:18:54 +03:00
Artyom
6126d1e426 Add item notes 2016-03-05 00:40:51 +03:00
Artyom
c5cdcbaebf License content under CC BY-SA 3.0 2016-03-04 23:20:17 +03:00
Artyom
549b5fd704 Add a footer and a donations page 2016-03-04 23:16:08 +03:00
Artyom
c5579353be Move help into a separate file 2016-03-04 20:24:32 +03:00
Artyom
22524060e1 Minor 2016-03-04 19:52:21 +03:00
Artyom
06a3344cf1 Create the checkpoint right before closing DB 2016-03-04 19:42:48 +03:00
Artyom
b8fe27c612 Minor 2016-03-04 19:18:19 +03:00
Artyom
0bbde9c689 Make textareas fullwidth 2016-03-04 19:07:26 +03:00
Artyom
aa0e0286a9 Use textarea instead of input for “addPro/Con” 2016-03-04 19:03:31 +03:00
Artyom
f8dab71443 Don't let the Enter pass thru in onEnter 2016-03-04 19:02:47 +03:00
Artyom
40142da2a5 Add CSS for blocks of code 2016-03-04 18:51:00 +03:00
Artyom
c5cb273556 Add functions for constructing jQuery selectors 2016-03-04 18:38:39 +03:00
Artyom
5e1f5bf5e7 Close acid-state db upon exit or Ctrl-C 2016-03-04 18:22:29 +03:00
Artyom
597bbe1779 Make changes permanent with acid-state 2016-03-04 18:19:11 +03:00
Artyom
a0308d093c Serve Javascript as a pseudo-file 2016-03-04 15:05:03 +03:00
Artyom
aaf8af5de5 Move trait editing icons on a new line 2016-03-04 14:38:41 +03:00
Artyom
ddcbc2bd16 Use a textarea for pros/cons 2016-03-04 14:27:14 +03:00
Artyom
16021a3d26 Delete the group when the item is deleted 2016-03-04 13:42:55 +03:00
Artyom
9cf876acf1 Make Uid a Text newtype 2016-03-04 13:33:51 +03:00
Artyom
bcb2d2dc66 Add groups 2016-03-04 12:42:48 +03:00
Artyom
6e5f9ad620 Remove “:”s from edit form labels 2016-02-26 22:24:23 +03:00
Artyom
5e7c92e0a7 Add move/delete item 2016-02-26 20:45:28 +03:00
Artyom
03e5e9a733 Add show/hide for help 2016-02-26 16:08:57 +03:00
Artyom
36c8ac3705 More TODOs 2016-02-26 14:07:03 +03:00
Artyom
bd2a6ee11b Minor 2016-02-26 13:50:53 +03:00
Artyom
0f10762d8c Minor addition to rules 2016-02-26 13:48:15 +03:00
Artyom
aedc3b2594 Make sample content longer 2016-02-26 13:47:50 +03:00
Artyom
ed62f187eb Add TODOs 2016-02-26 01:49:08 +03:00
Artyom
e155c98f9e More styling 2016-02-26 01:31:24 +03:00
Artyom
b44f0274f8 Minor (edit some words) 2016-02-25 23:06:09 +03:00
Artyom
e8f357cd94 Use multiline input for category descriptions 2016-02-25 21:14:46 +03:00
Artyom
675078990c Change the way text buttons are styled 2016-02-25 18:46:22 +03:00
Artyom
3962755c9d Minor 2016-02-25 18:12:55 +03:00
Artyom
4211e3c4fc Put new categories at the beginning of the list 2016-02-25 17:49:17 +03:00
Artyom
253150c213 Make new items editable by default 2016-02-25 17:39:41 +03:00
Artyom
501efae542 Various small improvements (CSS, etc) 2016-02-25 17:26:30 +03:00
Artyom
0d1bf6b53a Use slightly more flexible input handlers
Now we can decide to clear input in all cases but not clear input when
doing searching.
2016-02-25 15:57:50 +03:00
Artyom
059718e9b3 Add search 2016-02-25 15:40:07 +03:00
Artyom
75067a7748 Add deletion confirmation 2016-02-24 21:08:45 +03:00
Artyom
85a09e4a22 Use correct mode names for renderItemInfo 2016-02-24 19:43:37 +03:00
Artyom
86daa422af Minor 2016-02-24 19:35:24 +03:00
Artyom
171b03dad4 Break into modules 2016-02-24 19:32:25 +03:00
Artyom
29c84cfc0b Rename descriptions to notes 2016-02-22 21:57:40 +03:00
Artyom
1e2f13df01 Add help text 2016-02-21 16:54:10 +03:00
Artyom
49ac371d85 Render traits and descriptions as Markdown 2016-02-21 15:51:42 +03:00
Artyom
01558b86b0 Add an “on Hackage” checkbox to the item edit form 2016-02-21 15:07:40 +03:00
Artyom
4cecaeeabe Break methods into separate procedures 2016-02-21 14:43:08 +03:00
Artyom
41a5b0986d Allow deleting traits 2016-02-21 14:37:17 +03:00
Artyom
344b61ddec Make JS a newtype 2016-02-21 14:37:17 +03:00
Artyom
55b07d8bf3 Minor 2016-02-21 14:37:17 +03:00
Artyom
183de20fec Don't duplicate JS function names 2016-02-21 14:37:17 +03:00
Artyom
78c66f4fe7 Add buttons to move traits up and down 2016-02-21 14:37:17 +03:00
Artyom
9ab9e947ef Minor 2016-02-20 22:40:29 +03:00
Artyom
f7cc7b0f8a Minor 2016-02-20 18:31:26 +03:00
Artyom
fc9c6e0e6e Add an editing form for item info 2016-02-20 18:28:55 +03:00
Artyom
dd47e83637 Rename pros/cons to traits 2016-02-20 16:12:45 +03:00
Artyom
88ad776ae4 Split items into info and pros/cons 2016-02-20 16:03:08 +03:00
Artyom
c515bd6a53 Add anchor links 2016-02-20 15:47:24 +03:00
Artyom
0d3000ebde Don't assign ids to divs, they're useless now 2016-02-20 15:38:29 +03:00
Artyom
02eab2f5f5 Minor 2016-02-20 15:34:29 +03:00
Artyom
13413c1489 Fix 2016-02-20 15:24:22 +03:00
Artyom
305b3b6d52 Combine more methods 2016-02-20 15:22:16 +03:00
Artyom
b3013dae6f Combine (enable|disable)ItemEdit, use JSParams 2016-02-20 15:16:10 +03:00
Artyom
1b69540f5e Handle Hackage/extra links differently 2016-02-20 15:02:59 +03:00
Artyom
2a13b7b680 Minor 2016-02-20 14:41:32 +03:00
Artyom
453f247359 S → GlobalState 2016-02-20 14:36:48 +03:00
Artyom
3d52f5f358 Change paths again 2016-02-20 14:18:51 +03:00
Artyom
8e2c9cddf1 Minor 2016-02-20 13:50:46 +03:00
Artyom
7cdf015afc Don't use js_this_value 2016-02-20 13:39:16 +03:00
Artyom
6e6ff6d9cf Add category descriptions 2016-02-20 13:39:02 +03:00
Artyom
329150449e Use Editable everywhere 2016-02-20 12:52:55 +03:00
Artyom
e4c0f8ecda Minor 2016-02-20 12:49:02 +03:00
Artyom
5a64c14b9d Use makeFields instead of makeLenses 2016-02-20 11:22:46 +03:00
Artyom
4846483188 Add 2 utility functions 2016-02-20 10:51:36 +03:00
Artyom
131cb476b0 Pros/cons → pro/con 2016-02-20 10:39:15 +03:00
Artyom
da3ad95ae0 Don't re-render whole item when a pro/con is added 2016-02-20 10:36:50 +03:00
Artyom
c372cc48ca Allow editing of pro/con text 2016-02-20 10:31:14 +03:00
Artyom
187ce0abe6 Add a JS type synonym 2016-02-20 02:30:04 +03:00
Artyom
62dca86948 “edit” buttons for items 2016-02-20 02:28:18 +03:00
Artyom
b7fcfca0e8 Never use explicit selectors 2016-02-20 01:51:33 +03:00
Artyom
ba6d22461d Use IO everywhere for random IDs; make IDs simpler
No more cat34525 and item45235, HTML 5 permits fully numeric IDs.
2016-02-20 01:28:49 +03:00
Artyom
0311d756e1 Use a better way to update DOM 2016-02-20 01:03:52 +03:00
Artyom
d421a1f3dd thisValue → this_value 2016-02-20 00:13:20 +03:00
Artyom
28cf201a06 Style text buttons differently 2016-02-20 00:09:49 +03:00
Artyom
c45d3bc18e Add comments and rename some functions 2016-02-19 22:38:07 +03:00
Artyom
34dbe3e640 Change method names 2016-02-19 22:27:27 +03:00
Artyom
c598160143 Move Javascript into Haskell 2016-02-19 22:12:23 +03:00
Artyom
0d21649f81 Use lenses instead of 0-or-1 traversals
If they fail, Spock will catch the errors anyway
2016-02-17 22:47:52 +03:00
Artyom
0d51bb67d4 Add category heading editing 2016-02-17 19:43:35 +03:00
Artyom
eb89d3230d The ability to add pros and cons 2016-02-14 15:19:36 +03:00
Artyom
1ea52350e5 Minor 2016-02-14 14:23:01 +03:00
Artyom
3e82ff2ea3 Add some space between pros/cons 2016-02-14 14:20:19 +03:00
Artyom
ace79738f5 Add a sample state 2016-02-14 14:10:54 +03:00
Artyom
274ebf1bcf Too lazy to write the commit message 2016-02-14 14:03:56 +03:00
Artyom
126e91c38e Make -added things- libraries, create links 2016-02-02 21:09:56 +03:00
Artyom
59128a9bca Replace buttons with inputs 2016-02-02 20:14:02 +03:00
Artyom
36b75e8da3 Render new categories on the server side 2016-02-02 19:42:39 +03:00
Artyom
51bc877d8f Another simple application with a bunch of lists 2016-02-02 19:29:23 +03:00
Artyom
2cc514a85f Very simple form persisting application 2016-02-02 15:13:53 +03:00
Artyom
cab27e77ab Create the project 2016-02-02 12:36:07 +03:00