Commit Graph

599 Commits

Author SHA1 Message Date
Eragon b93415819b
editor: Fix image link `!` position 2022-12-18 00:36:33 +01:00
Darks 3848b3dedd
Add 'update-all' capability to master script 2022-12-18 00:32:14 +01:00
Darks 28ac88f5bd Merge pull request 'Remplacer simpleMDE par un éditeur maison' (#110) from new_editor into dev
Reviewed-on: https://gitea.planet-casio.com/devs/PCv5/pulls/110
2022-12-18 00:08:45 +01:00
Darks 6fe04b0a6c
Improved the editor 2022-12-17 23:28:06 +01:00
Darks 8cd862078b
Rebase new_editor from dev 2022-12-17 22:58:22 +01:00
Darks 2089398773
Update to follow Pillow evolution 2022-12-17 22:11:36 +01:00
Eragon 112d06e3d6
program: Fix submission, login required and file upload 2022-12-15 19:04:30 +01:00
Eragon f3b89716b7
editor: remove unwanted console.log 2022-12-15 18:49:51 +01:00
Eragon 5e368ac08b
editor: Add support for type= custom extension on media 2022-12-15 14:07:18 +01:00
Eragon 546b32c22b
editor: Multiples bugfixes from Lephe's review
Refresh preview 3 sec after last keypress
Refresh preview on button usage
Move cursor after the --- line when using the button
Replace margin for padding in the preview css
Add a slight background shade on the preview
2022-12-15 12:05:58 +01:00
Eragon 2da20720bb
editor: Dirty CSS hack for small screen devices 2022-12-14 11:22:14 +01:00
Eragon e2283b7675
editor: CSS and JS cleaning 2022-12-14 11:22:14 +01:00
Eragon 5eaf1cc207
editor: Link and Images buttons works, still need some CSS and cleaning 2022-12-14 11:22:14 +01:00
Eragon 95166b2da3
editor: WIP: Add modal to add links 2022-12-14 11:22:14 +01:00
Eragon b132eed1c7
editor: Insert table (Same as easy-mde) 2022-12-14 11:22:13 +01:00
Eragon cd84ccf4e6
editor: Insert separator on a new line 2022-12-14 11:22:13 +01:00
Eragon 28935b2ae8
editor: The numbered list button have the same usage as the old one 2022-12-14 11:22:13 +01:00
Eragon 6799f7477b
editor: I promise, this is progress 2022-12-14 11:22:13 +01:00
Eragon fcf42d4bb5
editor: Add title to all buttons 2022-12-14 11:22:13 +01:00
Eragon b062d9fa64
editor: Fix bullet list creation if the line is empty 2022-12-14 11:22:13 +01:00
Eragon 371dee1f7a
editor: Completely remove title using the title dec button 2022-12-14 11:22:13 +01:00
Eragon 1f1a06b02d
editor: Bullet list, using tabs (mixing tabs and space doesn't work) 2022-12-14 11:22:13 +01:00
Eragon 46106d69c9
Editor: Add border to preview 2022-12-14 11:22:12 +01:00
Eragon 0d00b4dfb6
Editor: Add inline code and quotes 2022-12-14 11:22:12 +01:00
Eragon bcbab7033d
editor: Add preview 2022-12-14 11:22:12 +01:00
Lephe 07bd7075d6
editor: add placeholder help link 2022-12-14 11:22:12 +01:00
Lephe d6a3faa161
markdown: make header slugs unique in every thread 2022-12-14 11:22:12 +01:00
Lephe 786f940f21
editor: adjust button spacing for small screens 2022-12-14 11:22:12 +01:00
Lephe 4322790ca1
editor: implement heading insertion and level changes 2022-12-14 11:22:12 +01:00
Lephe 896e799b97
editor: smaller icons 2022-12-14 11:22:12 +01:00
Lephe e54b01efe0
editor: basic markup insertion around selection 2022-12-14 11:22:11 +01:00
Lephe 15ce72b72d
editor: fix variable shadowing in let causing use before declaration 2022-12-14 11:22:11 +01:00
Lephe 02520f6b2d
editor: improve layout and style of buttons 2022-12-14 11:22:11 +01:00
Eragon 8bec7120c5
editor: Set textarea minimum height 2022-12-14 11:22:11 +01:00
Eragon 0a0ad4d558
editor: Add input type button to fix HTML problems 2022-12-14 11:22:11 +01:00
Eragon 490ab2714c
Start to add editor script 2022-12-14 11:22:09 +01:00
Eragon a01b74f3e8
Change themes for better contrast on buttons 2022-12-14 11:21:17 +01:00
Eragon 5bb581f4f3
Delete scripts 2022-12-14 11:21:17 +01:00
Eragon 5fb06732ff
Remove old & add buttons for new editor 2022-12-14 11:21:14 +01:00
Eragon 277ec535e7
templates: Add slash at end of hardcoded urls 2022-11-15 16:19:32 +01:00
Eragon d0126e7aba
meta: Update REQUIREMENTS.md according to package updates in AUR 2022-11-15 16:10:53 +01:00
Lephe 2b9ab64f6e
routes: fix constant 404s due to new werkzeug handling of / 2022-11-15 11:03:36 +01:00
Lephe 760c2f20b2
programs: a reasonable start for the program page (#93) 2022-06-16 17:37:39 +01:00
Lephe 417fc05d29
program: add metadata and a basic model for events (#114)
This commit adds most of the optional metadata for programs. The event
related to the program's publication is an actual relationship to an
Event model. The idea is to expand on that model in the future to
include:

- A link to the event's main topic
- List of programs published in the event
- Possibly, a list of all related topics (announcement, start, results,
  etc) all sharing a common 1-line header so they are linked together
- This would be used for event-related trophies
- And possibly for an event calendar
2022-06-16 17:00:59 +01:00
Lephe 8ff21c615d
program: add infrastructure for the progrank job (#114)
* Add an automatic job every day at 4 AM to recompute the progrank of
  every program. Currently everyone gets progrank 0.

[MIGRATION] This commit contains a new version of the schema.

[SETUP]
* Install flask-crontab (with pip)
* Run `flask crontab add` to register the jobs
2022-06-15 11:27:29 +01:00
Lephe db0e42d285
programs: add tag input and display (#114)
* Add a TagListField which automatically validates its input against the
  TagInformation database, and has a richer .selected_tags() method
* Add a dynamic tag input widget, available through a macro (*import
  with context*), that supports both JS and non-JS input
* Add a TagInformation.all_tags() function
* Add colored tag display to all themes
* Fix a bug causing programs to have no names
* Add tags: games.action, games.narrative, courses.informatics

[MASTER] Run the 'update-tags' command of master.py.
2022-06-14 23:19:41 +01:00
Lephe c74abf3fcc
post: add a tagging system, with a common base set of tags
Adds the tagging system, with 3 types of tags:
* Calculator models grouped by compatibility classes
* Programming languages
* Game, tools, and course categories

[MIGRATION] This commit contains a new version of the schema.
[BREAKS] This commit breaks existing tag assignments.
[MASTER] Run the 'update-tags' command of master.py.
2022-06-12 18:26:47 +01:00
Lephe f4b9110ce2
master: fix group update 2022-05-26 23:01:02 +01:00
Lephe 85323e896d
forum: fix edit timestamp recording + display
On the preproduction server there are messages that have an edit
timestamp some 20 ns after their creation, for some reason.
2022-05-26 21:24:50 +01:00
Lephe c26861527b
admin: remove trophy edition interface (#82)
It was decided to keep using the master script to update them.
2022-05-26 20:16:29 +01:00