Commit Graph

325 Commits

Author SHA1 Message Date
Tim Van Baak 07e62b9665 Add factory.try_user for non-exception user lookup 2020-04-24 10:54:11 -07:00
Tim Van Baak 9252e524ae Unnecessary to pass both root and model factory 2020-04-24 10:53:19 -07:00
Tim Van Baak 6d0aa3eb34 Add load_all_users 2020-04-24 10:52:13 -07:00
Tim Van Baak 46f7b54556 Add get_all_lexicons 2020-04-24 10:40:14 -07:00
Tim Van Baak 081a54c9c3 Add character add checker 2020-04-24 00:53:39 -07:00
Tim Van Baak 7d633f5201 Move publish functions to lexicon.gameloop 2020-04-24 00:35:28 -07:00
Tim Van Baak cae12b960d Update lexicon-char cli commands 2020-04-24 00:00:06 -07:00
Tim Van Baak 8b069132a9 Update lexicon-player cli commands 2020-04-23 23:30:32 -07:00
Tim Van Baak afb49a86db Move player join code to lexicon.setup 2020-04-23 23:24:05 -07:00
Tim Van Baak 97ac9bf7e3 Update remaining lexicon CRUD commands 2020-04-23 23:04:13 -07:00
Tim Van Baak 668feadda9 Update lexicon-create cli 2020-04-23 22:49:06 -07:00
Tim Van Baak a58761d7a5 Reorganize lexicon module 2020-04-23 22:48:54 -07:00
Tim Van Baak 4886e27e5d Fix LexiconModel.title 2020-04-23 22:47:15 -07:00
Tim Van Baak 7a17b48a4d Move lexicon status strings to class constants 2020-04-23 21:35:29 -07:00
Tim Van Baak dcf039c9de Update user cli commands 2020-04-23 21:07:07 -07:00
Tim Van Baak 773e6a23e0 Fix two missed method renames 2020-04-23 20:46:04 -07:00
Tim Van Baak 1dd87fc6f0 Move user creation code to new submodule 2020-04-23 20:42:08 -07:00
Tim Van Baak 50216281b2 Separate config read and edit to distinguish return types 2020-04-23 20:35:55 -07:00
Tim Van Baak 1f24f4f9b1 Fix logger default log levels 2020-04-23 20:03:56 -07:00
Tim Van Baak f7611bb79b CLean up server cli commands 2020-04-23 20:02:44 -07:00
Tim Van Baak 850d07b171 Remove obsolete functions 2020-04-23 20:02:17 -07:00
Tim Van Baak da34711974 Fix a bunch of config-related imports 2020-04-23 19:41:52 -07:00
Tim Van Baak ab25d5174a Refactor config module to encapsulate 2020-04-23 19:27:28 -07:00
Tim Van Baak 28c1ef2dd5 Remove logging config from global.json 2020-04-23 17:47:34 -07:00
Tim Van Baak fdff9e5374 Convert main to new logging and model modules 2020-04-23 17:47:22 -07:00
Tim Van Baak bfe065583a Add alternative logging module 2020-04-23 10:17:40 -07:00
Tim Van Baak d8a18854cb Refactor the auth component init a bit 2020-04-22 22:47:51 -07:00
Tim Van Baak 96db62fb35 Experiment with using the new model in a few places 2020-04-22 22:30:38 -07:00
Tim Van Baak 23873f7a52 Add new lexicon model to request context 2020-04-22 22:18:28 -07:00
Tim Van Baak 4b33f17169 Add models module to replace current models later 2020-04-22 15:47:54 -07:00
Tim Van Baak 9e4144eccf Refactor and annotate parser submodule 2020-04-21 12:52:02 -07:00
Tim Van Baak d0f57c85ce Fix article folder not being created 2020-04-21 08:56:36 -07:00
Tim Van Baak 44bb51f0a1 Add cited-by links 2020-04-19 20:09:17 -07:00
Tim Van Baak 2705764a6a Refactor info lookup into preview renderer ctor 2020-04-19 19:57:08 -07:00
Tim Van Baak 317fc07a45 Add partial citeblock and real links 2020-04-19 14:52:41 -07:00
Tim Van Baak 5f89baf449 Fixing tokenizing logic when tags are opened and not closed 2020-04-18 21:55:57 -07:00
Tim Van Baak f9162addf8 Add info cache, get phantom coloring working in editor previews 2020-04-18 21:35:11 -07:00
Tim Van Baak 99622bbb3d Add basic article publishing 2020-04-18 20:10:13 -07:00
Tim Van Baak 49ed06fcb0 Refactor title normalization 2020-04-11 20:45:16 -07:00
Tim Van Baak 3832a18d63 Add review status to editor listing 2020-04-11 20:34:10 -07:00
Tim Van Baak 751b0cf485 Refactor visitors 2020-04-11 11:45:21 -07:00
Tim Van Baak a9a025094a Normalize parsed cite targets 2020-04-11 11:45:08 -07:00
Tim Van Baak a3ccb537ca Add buttons for later 2020-04-10 21:28:48 -07:00
Tim Van Baak fd3ef7fbdc Make approved articles viewable 2020-04-10 21:28:29 -07:00
Tim Van Baak c9f1f9a44f Add review workflow 2020-04-10 15:10:09 -07:00
Tim Van Baak a4dc2e496f Add rudimentary preview link coloring 2020-04-10 15:06:56 -07:00
Tim Van Baak aa4b94d0c1 Add submit button 2020-03-30 23:58:05 -07:00
Tim Van Baak e19a2a5b26 Change editor client/server comm structure 2020-03-30 21:34:43 -07:00
Tim Van Baak 74c4c7dbbf Fix error args 2020-03-30 21:33:24 -07:00
Tim Van Baak 288e3dacd6 Remove link on character name in editor 2020-03-30 20:13:07 -07:00
Tim Van Baak 4bb35b67ca Refactor cdc config file method into mixin 2020-03-21 09:11:31 -07:00
Tim Van Baak 5444a45d90 Move parser.text to parser.tokenizer 2020-03-21 09:01:36 -07:00
Tim Van Baak b47085ff6a Allow None render hooks 2020-03-21 08:59:33 -07:00
Tim Van Baak 7780d2b1f1 Add word count 2020-03-05 22:37:21 -08:00
Tim Van Baak a7f2a56345 Move word counter to analyze submodule 2020-03-05 22:03:13 -08:00
Tim Van Baak e08fcefb5f Add word count visitor 2020-03-05 21:08:36 -08:00
Tim Van Baak f684695836 Fix pair tag formatting 2020-03-05 20:42:16 -08:00
Tim Van Baak 2a71d4733a Load preview on page load faster 2020-03-05 20:41:33 -08:00
Tim Van Baak 26a0e38154 Make the recursion nicer 2020-03-04 23:29:50 -08:00
Tim Van Baak b5efe8c361 Use ama.parser to create draft previews 2020-03-04 23:03:01 -08:00
Tim Van Baak 626dfc523c Add ctrl+s instant update 2020-03-04 23:02:37 -08:00
Tim Van Baak f7688429a8 Add parser module 2020-03-04 22:28:09 -08:00
Tim Van Baak b22df32f04 Spread CDC around forms a bit 2020-03-03 18:44:43 -08:00
Tim Van Baak 3a5a8557e0 Add basic, no-validation autosave 2020-02-23 20:08:21 -08:00
Tim Van Baak dc340a1d5e Expand reach of cdc in user model 2020-02-23 20:07:35 -08:00
Tim Van Baak 1bd0f1e0c1 Refactor config access in server through cdc 2020-02-22 10:55:03 -08:00
Tim Van Baak 0b5488a642 Link lexicon cdc from model 2020-02-22 10:54:44 -08:00
Tim Van Baak 468336e894 Minor fixes 2020-02-22 10:53:57 -08:00
Tim Van Baak e4042f3a11 Hook CDC into ama.config 2020-02-22 10:46:24 -08:00
Tim Van Baak e22982e6ce Add ConfigDirectoryContext framework 2020-02-22 10:46:02 -08:00
Tim Van Baak 1e152851d0 Strip down editor a bit and add basic article creation 2020-02-22 08:54:24 -08:00
Tim Van Baak c6cfe25e6d Add draft and src folders to lexicon folder 2020-02-21 07:08:51 -08:00
Tim Van Baak ef9fe5c0e2 Shadow lexicon title with fallback to name 2020-02-21 07:08:14 -08:00
Tim Van Baak 7785d7cbf5 Fix lp cli commands 2020-02-18 12:29:51 -08:00
Tim Van Baak c0c69805e3 Add framework for editor live preview warnings 2020-02-14 14:22:38 -08:00
Tim Van Baak 40e7a0c030 Add basic editor with preview 2020-02-06 13:05:11 -08:00
Tim Van Baak c47208e384 Make deadline inconsistent with asap 2020-01-31 16:52:14 -08:00
Tim Van Baak 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
Tim Van Baak 6c244b084c Display public games on /home/ 2020-01-31 13:59:14 -08:00
Tim Van Baak 81c18b5c7c Simplify player membership checks 2020-01-31 13:58:39 -08:00
Tim Van Baak f6947271a1 Style join and settings forms 2020-01-31 13:53:00 -08:00
Tim Van Baak d819308639 Placeholder text 2020-01-31 13:52:31 -08:00
Tim Van Baak 8a052feb3c Dissociate default character from editor 2020-01-31 13:51:58 -08:00
Tim Van Baak bc62063ed0 Add create character UI 2020-01-31 11:56:06 -08:00
Tim Van Baak c6bbccb6c3 Add chars_per_player setting 2020-01-30 23:28:57 -08:00
Tim Van Baak 92e12ae83c Fix CLI character creation 2020-01-30 23:21:16 -08:00
Tim Van Baak eb5c52ea85 Alias lexicon commands 2020-01-30 22:31:44 -08:00
Tim Van Baak 9e53e1bb61 Touch up lexicon-player-* 2020-01-30 22:29:21 -08:00
Tim Van Baak 0fd744537c Give settings page a real form-based UI 2020-01-30 22:06:22 -08:00
Tim Van Baak 3c2458ae58 Remove turn.start, no point in values other than 1 2020-01-30 13:32:55 -08:00
Tim Van Baak 41bf7b4bd0 Add player capacity to non-anonymous lexicon view 2020-01-30 13:32:13 -08:00
Tim Van Baak 9f1ec44786 Rename log() to add_log() to avoid name conflict 2020-01-30 13:31:39 -08:00
Tim Van Baak 540be5ff02 Implement game joins and respect join.public 2020-01-29 23:23:30 -08:00
Tim Van Baak 2c63556548 Add anonymous mode for lexicon dashboard 2020-01-29 23:19:17 -08:00
Tim Van Baak a0e13329a4 Human-readable dates in admin dashboard 2020-01-29 23:18:33 -08:00
Tim Van Baak 478213f77b Make games private by default 2020-01-29 23:16:16 -08:00
Tim Van Baak 1431dab8f8 Remove dependency of .user on .lexicon 2020-01-29 23:16:00 -08:00
Tim Van Baak 7a2e1905ca Update lexicon CRUD for new @requires semantics 2020-01-29 17:15:07 -08:00
Tim Van Baak 4a49433cde Fix delete_lexicon 2020-01-29 17:13:32 -08:00
Tim Van Baak 027933b645 str/repr changes 2020-01-29 14:35:19 -08:00
Tim Van Baak e9142a7f56 Update user-list 2020-01-29 08:22:51 -08:00
Tim Van Baak 22d140480d Add high-level catching and rename error type 2020-01-29 08:22:34 -08:00
Tim Van Baak 02e7065b21 Only validate email if it was provided 2020-01-29 01:03:59 -08:00
Tim Van Baak 1b1332a42d Forbid guids as usernames 2020-01-29 01:03:20 -08:00
Tim Van Baak 1068dacade Add str and repr to user model 2020-01-29 01:02:37 -08:00
Tim Van Baak a5dda4098c Linting pass 2020-01-28 13:29:32 -08:00
Tim Van Baak cdfe3037b8 Fix ternary 2020-01-28 13:26:32 -08:00
Tim Van Baak 1e70b95548 Refactor lexicon loading into wrapper 2020-01-28 13:24:01 -08:00
Tim Van Baak fe65ec2696 Remove obsolete tl_user check 2020-01-28 13:14:57 -08:00
Tim Van Baak 5aae0f8326 Add command aliases 2020-01-28 13:05:53 -08:00
Tim Van Baak 272ec492f8 Refactor user loading into req_user wrapper 2020-01-28 13:05:13 -08:00
Tim Van Baak 298352caed Fix header css 2020-01-28 00:59:30 -08:00
Tim Van Baak fce6e7145b Connect create form to internal call 2020-01-27 18:11:20 -08:00
Tim Van Baak b69b6155b3 Add linting 2020-01-27 12:30:40 -08:00
Tim Van Baak 8730e0974f Expand documentation 2020-01-27 09:55:54 -08:00
Tim Van Baak aa1667d795 Refactor extant forms into form submodule 2020-01-26 23:27:47 -08:00
Tim Van Baak d7557784bd Refactor textarea css 2020-01-26 23:17:21 -08:00
Tim Van Baak 6f326f91bd Add lexicon create page shell 2020-01-26 23:15:52 -08:00
Tim Van Baak aaac4b6568 Add user list to dashboard lexicon display 2020-01-26 22:18:52 -08:00
Tim Van Baak 817e74f6d7 Add player_requires 2020-01-24 13:30:21 -08:00
Tim Van Baak 45b7e43df4 Move session_edit to settings 2020-01-24 13:14:04 -08:00
Tim Van Baak 9004f60a0c Admin dashboard improvements 2020-01-24 13:11:50 -08:00
Tim Van Baak f7aa7f2471 Config updates 2020-01-24 10:53:18 -08:00
Tim Van Baak 246b9c22ae Fix lexicon logs being overwritten by duplicate rw contexts 2020-01-24 10:53:18 -08:00
Tim Van Baak a73f7b6cdc Allow setting password via CLI for scripting 2020-01-24 10:53:18 -08:00
Tim Van Baak 8ac48a0305 Add debug flag to run command 2020-01-24 10:53:02 -08:00
Tim Van Baak 9be848e5e2 Fix namespaces 2020-01-24 10:53:02 -08:00
Tim Van Baak f0cdcb8d8c Allow require wrappers to check and load models 2020-01-22 17:21:25 -08:00
Tim Van Baak 4661b232c2 Add whitespace trim 2020-01-22 17:15:39 -08:00
Tim Van Baak 9c41b3863e Highlight current page in lexicon sidebar 2020-01-22 12:44:33 -08:00
Tim Van Baak cace76ff0d Move login info to the header 2020-01-22 08:07:55 -08:00
Tim Van Baak 0c45af3a56 Fix missing g. in templates 2020-01-20 22:51:17 -08:00
Tim Van Baak 1e66e0dc73 Add Ersatz Scrivener to new lexicons 2020-01-20 22:51:01 -08:00
Tim Van Baak 563865f7ea Handle lexicon loading in a wrapper 2020-01-20 22:21:25 -08:00
Tim Van Baak 5e25c433ee Implement char-list as config-get for now 2020-01-20 19:59:41 -08:00
Tim Van Baak ccc027d5ef Expand char-add, implement char-delete 2020-01-20 19:57:13 -08:00
Tim Van Baak 2608a992fe Basic character add command 2020-01-20 17:30:43 -08:00
Tim Van Baak 8c70067076 Add .new() for adding keys to rw configs 2020-01-20 17:24:01 -08:00
Tim Van Baak 085ac63da8 Fix user-delete 2020-01-20 17:23:48 -08:00
Tim Van Baak 51a5f7e9ad Use getattr in user creation 2020-01-20 17:23:40 -08:00
Tim Van Baak c982364041 Add /session/edit/ 2020-01-20 13:14:00 -08:00
Tim Van Baak 79016265d9 Fix status() 2020-01-20 13:13:06 -08:00
Tim Van Baak 0d5fbbc842 Add prompt to lexicon page header 2020-01-20 12:29:55 -08:00
Tim Van Baak 871b81ee90 Fix mobile styling 2020-01-20 12:29:40 -08:00
Tim Van Baak ef5459070c Add skeletons for all lexicon general pages 2020-01-20 12:22:41 -08:00
Tim Van Baak 43345c4bf0 Add the editor on lexicon creation 2020-01-20 12:22:13 -08:00
Tim Van Baak 6cd33689bc Fix error message 2020-01-20 12:21:28 -08:00
Tim Van Baak 14eee2e8b0 Add versions to config templates 2020-01-20 11:57:15 -08:00
Tim Van Baak 221790b00e Add skeleton for lexicon pages 2020-01-20 08:55:28 -08:00
Tim Van Baak 5c244855eb Add lexicon listings to home page 2020-01-20 07:52:41 -08:00