Artyom
a8090e8cc6
Minor
2017-08-20 21:33:07 +03:00
Artyom
fe01b1be38
[ #124 ] Refactor
2017-08-20 21:33:07 +03:00
Artyom
1e19a6a948
Add JSON utils
2017-08-20 21:32:51 +03:00
vrom911
ae026a8470
[ #124 ] Replace tuples with data types in admin/links
2017-08-20 21:32:51 +03:00
vrom911
fee7a6d1bd
[ #124 ] Add button 'Save to Archive.org'
2017-08-20 21:32:51 +03:00
vrom911
554dce8a83
[ #124 ] Add links' date of the latest capture at archive.org
2017-08-20 21:32:51 +03:00
Artyom Kazak
30f0c24e40
Merge pull request #188 from aelve/new-fmt-version
...
Use fmt-0.4.0 with renewed operators +| |+
2017-08-13 21:13:05 +03:00
Artyom
a98c3eb757
Roll back some overzealous route fixing
...
Not all routes need /haskell/
2017-08-13 20:10:51 +03:00
Artyom
4b070105b4
Fix all routes because they all were broken
2017-08-13 15:40:32 +03:00
vrom911
fba73d6531
Fix auth page
2017-08-12 18:09:17 +03:00
vrom911
11e8e92301
Use fmt-0.4.0 with renewed operators +| |+
2017-08-12 12:56:41 +03:00
Jens Krause
7f8ebb4cad
Fix warnings about shadowed variables ( #181 )
2017-07-30 12:31:35 +02:00
Jens Krause
b1d76d194a
Fix Spock.subcomponents
warnings ( #181 )
2017-07-30 11:46:31 +02:00
Artyom
b894850b10
Remove the subtitle
...
No reason to prohibit posting on Reddit, really.
2017-07-30 03:49:45 +03:00
vrom911
8ad08996d4
[ #178 ] Replace fmt operators
2017-07-29 14:42:29 +03:00
Artyom
29794ac4ea
[ #124 ] Use Uniplate for finding links
2017-07-23 02:31:54 +03:00
Artyom
b02ffe3dde
[ #124 ] Show link statuses more concisely
2017-07-23 01:37:32 +03:00
Artyom
3b829ce447
[ #124 ] Don't check duplicate links
2017-07-23 01:36:58 +03:00
Artyom
bf287005f5
[ #124 ] Minor changes
2017-07-23 01:36:26 +03:00
vrom911
16e41e5e39
[ #124 ] Split links into 3 tables
2017-07-21 04:05:27 +03:00
vrom911
df63c7a57f
[ #124 ] Add admin/links with broken links
2017-07-19 23:45:20 +03:00
Juan Bono
abce5536b4
Merge pull request #171 from aelve/referrers
...
Show referrers better
2017-07-09 19:30:48 -03:00
Artyom
929befb081
Make life easier by treating no referrer keyword as empty keyword
2017-07-10 01:23:38 +03:00
Artyom
5956158a73
Make code that shows visitors a bit better
2017-07-10 01:23:38 +03:00
Artyom
2998f9def8
Don't use 'fromJust' in 'toReferrerView'
...
There's no reason not to keep on the safer side here
2017-07-10 01:23:38 +03:00
Artyom
ba8b772b22
Fix 'extractKeyword' to not concatenate keywords
...
Before:
> extractKeyword "https://google.com?q=foo&p=bar "
Just "foobar"
After:
> extractKeyword "https://google.com?q=foo&p=bar "
Just "foo"
2017-07-10 01:23:38 +03:00
Artyom
0c5e8c874b
Use newer text-all with bytestring encoding/decoding
2017-07-10 01:23:37 +03:00
Artyom
7d10645ce2
Add some comments
2017-07-09 23:15:29 +03:00
Juan Bono
4130f887de
remove eqKeyOrUrl function and replace it with (==)
2017-07-09 13:41:17 -03:00
Juan Bono
7e8af946e0
change ReferrerView's Ord instance
2017-07-09 12:55:58 -03:00
Juan Bono
421ef0f986
use encodeUtf8 instead of C8.pack
2017-07-08 21:38:07 -03:00
Juan Bono
7fb70a0f0d
fix query parsing
2017-07-07 04:17:32 -03:00
Juan Bono
d9e44e670c
referrers: add a function to group similar referrers
2017-07-02 06:38:06 -03:00
Artyom
f987c7e6ea
Move safecopy utils to a separate package (safecopy-migrate)
2017-07-02 00:03:50 +03:00
Juan Bono
f77ac60620
add ReferrerView type and some helper functions
2017-06-30 03:51:01 -03:00
Artyom
68d7ea2072
Return showing all edits on the /admin page
2017-06-11 13:01:25 +02:00
Artyom
9cd6e2afd5
Speed up diffs again and make them better
2017-06-11 13:01:11 +02:00
Artyom
9e07bc3b08
Speed up diffs
2017-06-11 11:43:42 +02:00
Artyom
0a48a8e2be
Show insertion/deletion places in diffs
2017-06-10 21:06:38 +02:00
Artyom
1c5512cd68
Add diffing of edits in /admin
2017-06-10 20:45:32 +02:00
Artyom
9be1db3b50
Simplify/fix #29 handling
2017-06-01 20:29:12 +03:00
Artyom
f40299acf4
Merge branch 'catlink'
2017-06-01 19:25:45 +03:00
Artyom
ffddc9b720
Merge branch 'master' into sessions
2017-05-23 21:30:53 +03:00
Sasa Bogicevic
5a7500ad76
Add category link
2017-05-22 21:41:21 +02:00
Artyom
d9b32e76ef
[ #158 ] Bump LTS version to 8.13
2017-05-22 13:09:39 +03:00
Artyom
3e85850ceb
Fix the login form
2017-05-14 03:06:53 +03:00
Artyom
6a5f42543d
Create an admin user automatically
2017-05-14 03:01:05 +03:00
Artyom
98eabcb03b
Unindented branches of ifs break haskell-mode too
2017-05-13 03:46:41 +03:00
Artyom
2b97fb853d
Importing NeatInterpolation qualified breaks haskell-mode
2017-05-13 03:44:26 +03:00
Artyom
2187096d7b
[GD-3] Add a login/logout link
2017-05-13 01:37:48 +03:00
Artyom
763f4a0105
Fix the “guidejs is not defined” error
2017-05-12 21:51:38 +03:00
Artyom
4c4ecea2c5
[GD-7] Rename Guide.Server to Guide.Main
2017-05-03 04:28:16 +03:00
Artyom
d2c816f798
[GD-2] Style the login form
2017-04-30 01:00:54 +03:00
Artyom
e097dc9254
Fix the dumpSplices function
2017-04-27 02:33:25 +03:00
Artyom
9d4d5a0c21
Write comments for Guide.ServerStuff
2017-04-26 22:28:03 +03:00
Artyom
b67bebff5f
Write comments for Guide.Config
2017-04-26 22:15:58 +03:00
Artyom
1e6ae6ec50
Switch to fmt-0.2
2017-04-26 21:56:46 +03:00
Artyom
2dae6df953
Only add http:// in sanitiseUri if it didn't have *any* scheme
2017-04-26 21:33:03 +03:00
Artyom
e0ebf3da64
Rename 'insertGuaranteed' to 'insertOrAppend'
2017-04-26 21:32:41 +03:00
Artyom
7a6abc0315
Write comments for Guide.Types.Core
2017-04-26 00:22:15 +03:00
Artyom
6d93cbd770
Write comments for Guide.Utils
2017-04-25 17:22:39 +03:00
Artyom
dc9de413d7
Rename MarkdownBlockWithTOC to MarkdownTree
2017-04-25 14:30:30 +03:00
Artyom
27c1edc91a
[GD-10] Rename 'extractFirstParagraph' and change its type
2017-04-25 14:18:59 +03:00
Juan Bono
49180082c2
[GD-10] improve extractFirstParagraph function
2017-04-25 07:40:13 -03:00
Artyom
a1f3bab81b
Improve search
2017-04-05 03:59:03 +02:00
Aaron Friel
917273ab58
Implement client-side JS build, automatic CSRF protection.
2017-03-17 15:02:51 -05:00
Aaron Friel
e8903ebac3
Move protectForm to Guide.Views.Utils
...
Needed to be able to CSRF protect more forms.
2017-03-17 15:02:51 -05:00
Aaron Friel
4c10adfc87
Add AuthM and AuthAction types.
2017-03-17 15:02:51 -05:00
Aaron Friel
9bd1272cad
Add user login and logout
2017-03-17 15:02:51 -05:00
Aaron Friel
66f05b2a56
Remove "| Register" from page header.
2017-03-17 15:02:51 -05:00
Aaron Friel
8c4eabc3c1
Rename signinAction to signupAction
2017-03-17 15:02:51 -05:00
Aaron Friel
65c30a1276
Implement user sessions and type-safe admin routing
2017-03-17 15:02:51 -05:00
Aaron Friel
cdf936b57f
Add session types
2017-03-17 15:02:09 -05:00
Artyom
6963e1141b
Add comments to Guide.Cache
2017-03-04 23:54:48 +01:00
Artyom
4ff43808ee
Switch to the fmt library for formatting
2017-03-04 19:57:59 +03:00
Artyom
3acd358438
Use atomic createCheckpointAndClose because atomic = good
2017-02-25 16:39:09 +03:00
Artyom
4530cc6249
Catch Ctrl-C and SIGTERM and shutdown gracefully
...
Fixes #145
2017-02-19 17:30:59 +03:00
Artyom
e71ec4715a
Don't use </> for building URLs
...
Fixes #147
2017-02-19 15:26:38 +03:00
Artyom
9511810b3d
Merge category{ProsCons|Ecosystem|Notes}Enabled fields
...
Changing 'Edit' is annoying, so maybe now we'll have to do it less often
2017-02-18 13:52:23 +03:00
Artyom
d94a2ccc99
Add descriptions to all modules
2017-02-17 02:52:54 +03:00
Artyom
19f9d271b5
Move category status banner into category-info
2017-02-05 14:56:59 +03:00
Artyom
4511fe68dc
Get rid of Guide.View + create Guide.Views.Category
2017-02-05 14:30:30 +03:00
Artyom
8f11f49f2b
Remove 'Message' module/type since the chatapp won't be written
2017-02-05 14:01:53 +03:00
Artyom
186d650396
Split item renderers into Guide.Views.Item
2017-02-05 14:00:16 +03:00
Artyom
5947c71750
Remove warnings in Guide.Views.Auth.*
2017-02-05 13:59:27 +03:00
Artyom
e0318d5b78
Rename 'Page' lenses to avoid clashes with lenses for core types
2017-02-05 13:58:31 +03:00
Artyom
dfe8ec6fe7
Add an export list to Guide.Views.Utils
2017-02-05 13:56:59 +03:00
Artyom
f95cf6a9e5
Whitespace fixes
2017-02-05 13:56:43 +03:00
Aaron Friel
3fa5c4a4f0
Address comments on prior commit.
...
* (&) exported in `Imports.hs` from `microlens` instead of `prelude`
* `Page` record has comments on constructor and fields.
* Default `content` set to empty element.
* Reorganized headTag, header, and footer into fields of `Page` record.
2017-02-02 18:33:28 -06:00
Aaron Friel
f08f6cc23c
Initial commit (very prelim) with Views hierarchy, Page renderer
2017-02-02 15:46:04 -06:00
Aaron Friel
d50598ca2d
Add user, message types
2017-02-01 23:55:33 -06:00
Artyom
bedc5f3b8f
Don't highlight the header (“Aelve Guide | Haskell”) as a link
...
It's not particularly useful since people are already used to headers being
links.
2017-02-01 02:48:07 +03:00
Artyom
7b4b3c0a9d
Add comments to View.hs
2017-02-01 01:59:08 +03:00
Artyom
c04adb3239
Fix a silly bug with SafeCopy
2017-01-31 03:10:09 +03:00
Artyom
26b2d80520
Get rid of a SafeCopy warning about Uid
2017-01-31 00:53:55 +03:00
Artyom
5a1defbaf0
Get rid of old 'Uid'
...
Nobody is going to do any migrations anyway
2017-01-31 00:49:18 +03:00
Artyom
076feaf37f
Split handlers out of Guide.Server
2017-01-31 00:33:13 +03:00
Artyom
4ad0f0f8f9
Move 'getDetails' to Guide.Utils
2017-01-30 03:37:48 +03:00
Artyom
eb5e896e33
Add section separators to Guide.Utils
2017-01-30 03:31:48 +03:00
Artyom
08090b5075
Break Guide.Types into submodules; separate acid methods out
2017-01-30 03:22:34 +03:00