Commit Graph

356 Commits

Author SHA1 Message Date
f7611bb79b CLean up server cli commands 2020-04-23 20:02:44 -07:00
850d07b171 Remove obsolete functions 2020-04-23 20:02:17 -07:00
da34711974 Fix a bunch of config-related imports 2020-04-23 19:41:52 -07:00
ab25d5174a Refactor config module to encapsulate 2020-04-23 19:27:28 -07:00
28c1ef2dd5 Remove logging config from global.json 2020-04-23 17:47:34 -07:00
fdff9e5374 Convert main to new logging and model modules 2020-04-23 17:47:22 -07:00
bfe065583a Add alternative logging module 2020-04-23 10:17:40 -07:00
d8a18854cb Refactor the auth component init a bit 2020-04-22 22:47:51 -07:00
96db62fb35 Experiment with using the new model in a few places 2020-04-22 22:30:38 -07:00
23873f7a52 Add new lexicon model to request context 2020-04-22 22:18:28 -07:00
4b33f17169 Add models module to replace current models later 2020-04-22 15:47:54 -07:00
9e4144eccf Refactor and annotate parser submodule 2020-04-21 12:52:02 -07:00
d0f57c85ce Fix article folder not being created 2020-04-21 08:56:36 -07:00
44bb51f0a1 Add cited-by links 2020-04-19 20:09:17 -07:00
2705764a6a Refactor info lookup into preview renderer ctor 2020-04-19 19:57:08 -07:00
317fc07a45 Add partial citeblock and real links 2020-04-19 14:52:41 -07:00
5f89baf449 Fixing tokenizing logic when tags are opened and not closed 2020-04-18 21:55:57 -07:00
f9162addf8 Add info cache, get phantom coloring working in editor previews 2020-04-18 21:35:11 -07:00
99622bbb3d Add basic article publishing 2020-04-18 20:10:13 -07:00
49ed06fcb0 Refactor title normalization 2020-04-11 20:45:16 -07:00
3832a18d63 Add review status to editor listing 2020-04-11 20:34:10 -07:00
751b0cf485 Refactor visitors 2020-04-11 11:45:21 -07:00
a9a025094a Normalize parsed cite targets 2020-04-11 11:45:08 -07:00
a3ccb537ca Add buttons for later 2020-04-10 21:28:48 -07:00
fd3ef7fbdc Make approved articles viewable 2020-04-10 21:28:29 -07:00
c9f1f9a44f Add review workflow 2020-04-10 15:10:09 -07:00
a4dc2e496f Add rudimentary preview link coloring 2020-04-10 15:06:56 -07:00
aa4b94d0c1 Add submit button 2020-03-30 23:58:05 -07:00
e19a2a5b26 Change editor client/server comm structure 2020-03-30 21:34:43 -07:00
74c4c7dbbf Fix error args 2020-03-30 21:33:24 -07:00
288e3dacd6 Remove link on character name in editor 2020-03-30 20:13:07 -07:00
4bb35b67ca Refactor cdc config file method into mixin 2020-03-21 09:11:31 -07:00
5444a45d90 Move parser.text to parser.tokenizer 2020-03-21 09:01:36 -07:00
b47085ff6a Allow None render hooks 2020-03-21 08:59:33 -07:00
7780d2b1f1 Add word count 2020-03-05 22:37:21 -08:00
a7f2a56345 Move word counter to analyze submodule 2020-03-05 22:03:13 -08:00
e08fcefb5f Add word count visitor 2020-03-05 21:08:36 -08:00
f684695836 Fix pair tag formatting 2020-03-05 20:42:16 -08:00
2a71d4733a Load preview on page load faster 2020-03-05 20:41:33 -08:00
26a0e38154 Make the recursion nicer 2020-03-04 23:29:50 -08:00
b5efe8c361 Use ama.parser to create draft previews 2020-03-04 23:03:01 -08:00
626dfc523c Add ctrl+s instant update 2020-03-04 23:02:37 -08:00
f7688429a8 Add parser module 2020-03-04 22:28:09 -08:00
b22df32f04 Spread CDC around forms a bit 2020-03-03 18:44:43 -08:00
3a5a8557e0 Add basic, no-validation autosave 2020-02-23 20:08:21 -08:00
dc340a1d5e Expand reach of cdc in user model 2020-02-23 20:07:35 -08:00
1bd0f1e0c1 Refactor config access in server through cdc 2020-02-22 10:55:03 -08:00
0b5488a642 Link lexicon cdc from model 2020-02-22 10:54:44 -08:00
468336e894 Minor fixes 2020-02-22 10:53:57 -08:00
e4042f3a11 Hook CDC into ama.config 2020-02-22 10:46:24 -08:00
e22982e6ce Add ConfigDirectoryContext framework 2020-02-22 10:46:02 -08:00
1e152851d0 Strip down editor a bit and add basic article creation 2020-02-22 08:54:24 -08:00
c6cfe25e6d Add draft and src folders to lexicon folder 2020-02-21 07:08:51 -08:00
ef9fe5c0e2 Shadow lexicon title with fallback to name 2020-02-21 07:08:14 -08:00
7785d7cbf5 Fix lp cli commands 2020-02-18 12:29:51 -08:00
c0c69805e3 Add framework for editor live preview warnings 2020-02-14 14:22:38 -08:00
40e7a0c030 Add basic editor with preview 2020-02-06 13:05:11 -08:00
c47208e384 Make deadline inconsistent with asap 2020-01-31 16:52:14 -08:00
19263040a9 Allow editor to edit any character
In particular, this allows th editor to edit the default character
2020-01-31 14:02:08 -08:00
6c244b084c Display public games on /home/ 2020-01-31 13:59:14 -08:00
81c18b5c7c Simplify player membership checks 2020-01-31 13:58:39 -08:00
f6947271a1 Style join and settings forms 2020-01-31 13:53:00 -08:00
d819308639 Placeholder text 2020-01-31 13:52:31 -08:00
8a052feb3c Dissociate default character from editor 2020-01-31 13:51:58 -08:00
bc62063ed0 Add create character UI 2020-01-31 11:56:06 -08:00
c6bbccb6c3 Add chars_per_player setting 2020-01-30 23:28:57 -08:00
92e12ae83c Fix CLI character creation 2020-01-30 23:21:16 -08:00
eb5c52ea85 Alias lexicon commands 2020-01-30 22:31:44 -08:00
9e53e1bb61 Touch up lexicon-player-* 2020-01-30 22:29:21 -08:00
0fd744537c Give settings page a real form-based UI 2020-01-30 22:06:22 -08:00
3c2458ae58 Remove turn.start, no point in values other than 1 2020-01-30 13:32:55 -08:00
41bf7b4bd0 Add player capacity to non-anonymous lexicon view 2020-01-30 13:32:13 -08:00
9f1ec44786 Rename log() to add_log() to avoid name conflict 2020-01-30 13:31:39 -08:00
540be5ff02 Implement game joins and respect join.public 2020-01-29 23:23:30 -08:00
2c63556548 Add anonymous mode for lexicon dashboard 2020-01-29 23:19:17 -08:00
a0e13329a4 Human-readable dates in admin dashboard 2020-01-29 23:18:33 -08:00
478213f77b Make games private by default 2020-01-29 23:16:16 -08:00
1431dab8f8 Remove dependency of .user on .lexicon 2020-01-29 23:16:00 -08:00
7a2e1905ca Update lexicon CRUD for new @requires semantics 2020-01-29 17:15:07 -08:00
4a49433cde Fix delete_lexicon 2020-01-29 17:13:32 -08:00
027933b645 str/repr changes 2020-01-29 14:35:19 -08:00
e9142a7f56 Update user-list 2020-01-29 08:22:51 -08:00
22d140480d Add high-level catching and rename error type 2020-01-29 08:22:34 -08:00
02e7065b21 Only validate email if it was provided 2020-01-29 01:03:59 -08:00
1b1332a42d Forbid guids as usernames 2020-01-29 01:03:20 -08:00
1068dacade Add str and repr to user model 2020-01-29 01:02:37 -08:00
a5dda4098c Linting pass 2020-01-28 13:29:32 -08:00
cdfe3037b8 Fix ternary 2020-01-28 13:26:32 -08:00
1e70b95548 Refactor lexicon loading into wrapper 2020-01-28 13:24:01 -08:00
fe65ec2696 Remove obsolete tl_user check 2020-01-28 13:14:57 -08:00
5aae0f8326 Add command aliases 2020-01-28 13:05:53 -08:00
272ec492f8 Refactor user loading into req_user wrapper 2020-01-28 13:05:13 -08:00
298352caed Fix header css 2020-01-28 00:59:30 -08:00
fce6e7145b Connect create form to internal call 2020-01-27 18:11:20 -08:00
b69b6155b3 Add linting 2020-01-27 12:30:40 -08:00
8730e0974f Expand documentation 2020-01-27 09:55:54 -08:00
aa1667d795 Refactor extant forms into form submodule 2020-01-26 23:27:47 -08:00
d7557784bd Refactor textarea css 2020-01-26 23:17:21 -08:00
6f326f91bd Add lexicon create page shell 2020-01-26 23:15:52 -08:00
aaac4b6568 Add user list to dashboard lexicon display 2020-01-26 22:18:52 -08:00
817e74f6d7 Add player_requires 2020-01-24 13:30:21 -08:00
45b7e43df4 Move session_edit to settings 2020-01-24 13:14:04 -08:00
9004f60a0c Admin dashboard improvements 2020-01-24 13:11:50 -08:00
f7aa7f2471 Config updates 2020-01-24 10:53:18 -08:00
246b9c22ae Fix lexicon logs being overwritten by duplicate rw contexts 2020-01-24 10:53:18 -08:00
a73f7b6cdc Allow setting password via CLI for scripting 2020-01-24 10:53:18 -08:00
8ac48a0305 Add debug flag to run command 2020-01-24 10:53:02 -08:00
9be848e5e2 Fix namespaces 2020-01-24 10:53:02 -08:00
f0cdcb8d8c Allow require wrappers to check and load models 2020-01-22 17:21:25 -08:00
4661b232c2 Add whitespace trim 2020-01-22 17:15:39 -08:00
9c41b3863e Highlight current page in lexicon sidebar 2020-01-22 12:44:33 -08:00
cace76ff0d Move login info to the header 2020-01-22 08:07:55 -08:00
0c45af3a56 Fix missing g. in templates 2020-01-20 22:51:17 -08:00
1e66e0dc73 Add Ersatz Scrivener to new lexicons 2020-01-20 22:51:01 -08:00
563865f7ea Handle lexicon loading in a wrapper 2020-01-20 22:21:25 -08:00
5e25c433ee Implement char-list as config-get for now 2020-01-20 19:59:41 -08:00
ccc027d5ef Expand char-add, implement char-delete 2020-01-20 19:57:13 -08:00
2608a992fe Basic character add command 2020-01-20 17:30:43 -08:00
8c70067076 Add .new() for adding keys to rw configs 2020-01-20 17:24:01 -08:00
085ac63da8 Fix user-delete 2020-01-20 17:23:48 -08:00
51a5f7e9ad Use getattr in user creation 2020-01-20 17:23:40 -08:00
c982364041 Add /session/edit/ 2020-01-20 13:14:00 -08:00
79016265d9 Fix status() 2020-01-20 13:13:06 -08:00
0d5fbbc842 Add prompt to lexicon page header 2020-01-20 12:29:55 -08:00
871b81ee90 Fix mobile styling 2020-01-20 12:29:40 -08:00
ef5459070c Add skeletons for all lexicon general pages 2020-01-20 12:22:41 -08:00
43345c4bf0 Add the editor on lexicon creation 2020-01-20 12:22:13 -08:00
6cd33689bc Fix error message 2020-01-20 12:21:28 -08:00
14eee2e8b0 Add versions to config templates 2020-01-20 11:57:15 -08:00
221790b00e Add skeleton for lexicon pages 2020-01-20 08:55:28 -08:00
5c244855eb Add lexicon listings to home page 2020-01-20 07:52:41 -08:00
aa987a5b4b Fix repl 2020-01-20 02:31:19 -08:00
3c62acc975 Implement lexicon-player-list 2020-01-19 07:43:41 -08:00
851f08b5f3 Add output to config --set 2020-01-19 00:09:36 -08:00
5e8a761675 Implement player add/remove 2020-01-19 00:03:23 -08:00
e8b209e231 Lexicon config template update for player joins 2020-01-18 23:53:26 -08:00
16c2f19ec5 Allow getattr in loaded json configs 2020-01-18 23:35:26 -08:00
d65eec12fe Update arguments for unimplemented lexicon commands 2020-01-18 17:32:19 -08:00
3a161b026c Fix imports 2020-01-18 17:20:16 -08:00
49fe15995b Add article json template 2020-01-18 17:15:56 -08:00
0b8af9f034 Minor changes 2020-01-18 17:15:38 -08:00
6c5111a067 Implement lexicon delete and list 2020-01-18 17:15:25 -08:00
45f2cbd344 Add LexiconModel.by() 2020-01-18 17:14:51 -08:00
f79e5bfd87 Make init --refresh clean up indexes 2020-01-18 17:13:41 -08:00
8e99788fcd Rname User to UserModel, revamp factory function 2020-01-18 12:39:54 -08:00
5972a309f1 Add documentation to custom errors 2020-01-18 12:19:42 -08:00
51b2bfe875 Simplify @requires 2020-01-18 11:51:54 -08:00
2a314da910 Add basis for admin lexicon config web editor 2020-01-18 01:18:54 -08:00
69524d03d7 Refactor admin check into a wrapper 2020-01-17 16:05:06 -08:00
157e1b2480 Add prompt setting 2020-01-17 15:59:10 -08:00
3122379da1 Implement lexicon-create 2020-01-17 14:43:15 -08:00
01c5df1e5d Add LexiconModel 2020-01-17 14:43:05 -08:00
34d3a08416 Move config dir init logic to config.init 2020-01-17 14:01:52 -08:00
d60340e9e9 Add index assignment settings 2020-01-17 13:22:17 -08:00
b041d5d784 Implement user-config 2020-01-17 06:58:11 -08:00
759d7d77f9 Refactor config --get/set to cli.helpers 2020-01-17 01:23:48 -08:00
3abc07eb39 Remove uneeded override 2020-01-16 23:53:55 -08:00
58911a2da4 Bring user creation entirely under user module 2020-01-16 23:49:37 -08:00
4c41407d69 Unify path argument behavior across config helpers 2020-01-16 23:27:47 -08:00
11d231aba8 Create lexicon module with publish workflow spec 2020-01-16 16:00:19 -08:00
383bc7a0eb Fix resource access 2020-01-16 11:20:22 -08:00
2c2e87209c Add default configs for lexicon and user 2020-01-16 10:53:59 -08:00
28610f6baf Add configs for future email integration 2020-01-16 06:44:53 -08:00
69eb28208e Fix css on the half-baked admin dashboard 2020-01-15 22:20:25 -08:00
67c802c67f Switch to using user getattr for configs 2020-01-15 22:12:52 -08:00
594e6f6a9e Add stubs for initial command set 2020-01-15 22:06:30 -08:00
7b6e9e644e Add @requires command wrapper 2020-01-15 21:53:45 -08:00
6429bf7d6b Enable multiline command descriptions 2020-01-15 20:36:46 -08:00
18b4f12823 Replace dump command with config get/set 2020-01-15 20:04:01 -08:00
173b306c5b Refactor cli command loading 2020-01-15 19:30:03 -08:00
db83c99b95 Split cli package into topical files 2020-01-15 18:11:09 -08:00
51d8c1a378 Make cli into a module 2020-01-15 17:40:34 -08:00
2c5a211c16 Add user-delete 2020-01-15 17:16:19 -08:00
f59716e096 Add user getattr to make config access easier 2020-01-15 17:16:09 -08:00
634c00ae53 Add admin dashboard skeleton 2020-01-15 17:15:51 -08:00
d1fcba082f Flesh out login flow with password checks 2020-01-14 19:08:54 -08:00
5031a7a5e7 Fix import in user-passwd 2020-01-14 19:07:18 -08:00
ede475f910 Add real page templates and home and logout pages 2020-01-14 16:37:51 -08:00
fcaa68850e Wire up basic user login 2020-01-13 13:06:15 -08:00
65049d8202 Dump args on verbose log 2020-01-13 12:40:43 -08:00
5d042326e9 Fix duplicate verbose logging 2020-01-13 11:48:52 -08:00
02871798a6 Minor fixes to user-add 2020-01-11 22:36:39 -08:00
02ca885599 Add user-passwd 2020-01-09 13:28:15 -08:00
9b97768438 Fill out user-add and add user-list 2020-01-08 22:48:00 -08:00
4bd7330229 Rename app package to server 2020-01-08 21:44:08 -08:00
872e055a3f Fix app pathing 2020-01-08 21:42:21 -08:00
fe0967d625 Missed adding config package to source control 2020-01-08 21:41:38 -08:00
a4fa72b072 Start submodule for server app code 2020-01-04 11:53:53 -08:00
04cb0cb696 Add basic user creation command 2020-01-03 17:07:28 -08:00
5ed084147d Make command names easier to type 2020-01-03 17:06:45 -08:00
0501b62c8b Load secret key in app 2020-01-03 17:06:18 -08:00
ed106cf787 Add secret key config and generate_secret command 2020-01-03 17:05:36 -08:00
3629f91bf4 Add --update to init 2020-01-03 09:00:08 -08:00
d614893692 Fix some names 2020-01-03 07:21:29 -08:00
7340699784 Delete obsolete file 2020-01-03 07:20:40 -08:00
81ec200928 Add skeleton run command 2020-01-02 08:17:58 -08:00
eb0ca027a9 Fix having more than one add_argument decorator 2020-01-02 08:16:58 -08:00
6e22a92b78 Rename file 2020-01-02 08:16:17 -08:00
bf27d2bdaf Add config init command 2020-01-01 18:38:22 -08:00
7a85604ece Add config init flow from a file in a config directory 2020-01-01 18:11:37 -08:00