Commit Graph

61 Commits

Author SHA1 Message Date
Eragon 1fa5dd8085
Nevermind we don't need the button as a source of the events anyway
Closes #134
2024-03-09 13:59:55 +01:00
Eragon 5283d45c36
Two editors on one page works, but hotkeys no longer work 2024-03-09 13:59:53 +01:00
Eragon cf21b4ee56
feat: Add CalcDB to the tools
see #143
2024-03-09 13:58:21 +01:00
Eragon 39ec4c3c4a
chore: Use PCv5-extra releases instead of submodules 2024-03-09 13:58:21 +01:00
Lephe cddd4baa8a
shoutbox: update chat and show it on homepage 2024-03-09 13:58:21 +01:00
Lephe 4e80932588
shoutbox: update shoutbox to 8bda9f96a
Keep the submodule approach until we can deploy it properly on
PCv5-extra.
2024-03-09 13:58:17 +01:00
Lephe 6a34a42081
shoutbox: add standalone shoutbox at /chat 2024-03-09 13:58:15 +01:00
Eragon e5dafb68e5
submodule: Add emoji picker build command to Makefile 2023-06-13 10:52:53 +02:00
Eragon 5a6d000be6
submodule: Move picker element to submodule 2023-06-12 15:12:14 +02:00
Eragon 7aa93f15ea
editor: Count lines for numbered list 2023-06-06 21:00:59 +02:00
Eragon 57644c4378
editor: fix modal not closing when openning an other one 2023-06-06 20:57:05 +02:00
Eragon 6cc066b4d6
editor: Self-host the emoji-picker custom element. 2023-05-17 09:56:22 +02:00
Eragon 168b77c8de
scripts: Fix variable declaration 2023-05-16 23:09:30 +02:00
Eragon 8fbec9ed87
editor: Fix input being cleared on click in link modal 2023-05-16 22:23:08 +02:00
Eragon 44609f2f96
editor: Toggle automatic preview and add manual preview button 2023-05-16 13:50:47 +02:00
Eragon f15186d4f8
editor: Prevent default browser action for keybinds when textarea is foccused 2023-05-15 16:17:28 +02:00
Eragon ed1a534aa6
editor: Add keybinds 2023-05-15 16:17:28 +02:00
Eragon 2b5485677e
editor: tests with emoji-picker-element for emoji picker
Note: we will need to self-host it if we keep it moving forward. This is
just a test, this commit should be reverted if not used in the end.
2023-05-15 16:17:28 +02:00
Darks 228f613f09
Added more french special chars to list 2023-05-15 15:17:03 +02:00
Eragon b93415819b
editor: Fix image link `!` position 2022-12-18 00:36:33 +01:00
Darks 6fe04b0a6c
Improved the editor 2022-12-17 23:28:06 +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 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 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 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 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 4322790ca1
editor: implement heading insertion and level changes 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
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 5fb06732ff
Remove old & add buttons for new editor 2022-12-14 11:21:14 +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
Darks 3e399fb4c4
gallery: second prototype, evolving into a beta 2022-04-26 01:38:33 +02:00
Darks 7b66e1ec20
gallery: rebase from dev 2022-04-26 00:29:07 +02:00
Darks fe8e2f0265
gallery: second prototype
Don't look for the first one, it's trapped in a parallel universe.
2022-04-26 00:27:43 +02:00
Darks 09c7f63b55
menu.js: fixed bad design 2022-04-24 14:06:44 +02:00
Lephe b533f8a161 forum: replace comment action links with contextual menu
The menu works with HTML/CSS only, and JS support will also allow
closing it by clicking outside of it (instead of closing allow when
clicking on the menu icon again).
2021-07-12 18:37:06 +02:00
Lephe 1d38f906ee
admin/members: add a dynamic regex/logic filter for the member list
This commit introduces a client-side table filter that supports regexes
and propositional logic to filter table rows.

A table can be filtered if it has the [filter-target] class and its
first row has <th> tags with a [data-filter] attribute specifying column
names.

The filter itself is a div with the [form] and [filter] classes, and a
[data-target] attribute pointing to the table to filter. The filter
contains a text <input> which is passed to filter_update() when the
filter expression is validated.

The client-side filter code runs the expression through a basic lexer
and parser, then matches the result for every row in the target table.
The [textContent] of each cell is used for string and regex matching.
2020-11-02 14:38:28 +01:00
Lephe a95a88f3b1
app: send cookies with Secure and SameSite=Lax (#60)
Sending cookies without Secure and without SameSite causes Firefox to
ignore or invalidate them, which disconnects accounts seemingly randomly.
2020-10-30 14:06:33 +01:00
Eragon 227087ebbc
Issue #76 Refactoriser les messages flash
Javascript :
Supression du javascript inutile, l'entièreté du bloc du flash.

CSS :
Alignement plus correct des notifications flash, fini le fixed, 15%
place au margin auto.
Ajout d'une marge pour éviter l'effet «bloc».
Héritage des propriétés de couleur du texte et du fond de la classe supèrieure.

Modification des templates :
Les messages sont désormais chargés avant le contenu et après le header.
2020-10-01 22:16:15 +02:00