Commit Graph

536 Commits

Author SHA1 Message Date
Darks 9de0f9f823
Merge branch 'preprod' into 'master' 2022-04-26 23:49:11 +02: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
Lephe db5e613f7e
model: use methods to access a user's typed posts (#104) 2022-04-25 17:05:17 +01:00
Lephe 8098642d4b
model: add an index on Post.type
This is useful to quickly browse a list of polymorphic Posts for topics,
programs, etc. The main application is from Member.posts, since
polymorphic collection seems both difficult and edgy.

[MIGRATION] This commit contains a new version of the schema.
2022-04-25 17:04:08 +01:00
Darks 8eee0ad236
pclinks: fixed a typo 2022-04-24 23:33:18 +02:00
Darks 13b1d29e42
theme: add support for download widget to FK's dark theme 2022-04-24 22:55:11 +02:00
Darks 17f5e82a2a
pclinks: switched to <> as delimiters (#108)
And some other enhancements
2022-04-24 17:50:46 +02:00
Darks 2119329997
widgets: add '[[f: 123]]' pclink widget 2022-04-24 17:24:47 +02:00
Darks 09c7f63b55
menu.js: fixed bad design 2022-04-24 14:06:44 +02:00
Lephe f53032fc88
markdown: add an extension for image/video galleries
This will be used on program pages. Currently there is no check that
list elements are images and videos.
2022-04-21 22:07:49 +01:00
Lephe 610fe6f1fd
markdown: allow videos with size and positioning
Same options as for images, except for [pixelated]. Supported sources
are standard videos and YouTube, and there is basic auto-detection which
avoids the need to set the [video] attribute.
2022-04-21 20:43:50 +01:00
Lephe 48d6c1c03c
markdown: allow positioning attributes on images
New attributes
  * left, center, right: Exactly what you expect
  * float-left, float-right: Also just what you expect

Currently there is no way to force a clear.
2022-04-21 20:03:22 +01:00
Lephe e9c1f04f42
markdown: add a MediaExtension that allows attributes on images
Supported attributes:
  * size=<WIDTH>x<HEIGHT>, both being optional
  * pixelated

In the near future it will also support audio files and videos.
2022-04-21 19:31:18 +01:00
Lephe 39748667ee
model: add a number of missing indexes
See #107.

[MIGRATION] This commit contains a new version of the schema.
2022-04-21 17:58:59 +01:00
Lephe 19d90c6845
meta: actually useful diagram 2022-04-14 21:07:21 +01:00
Lephe df07c905ab
meta: update model diagram 2022-04-14 20:12:04 +01:00
Darks dda7cce5d5
Updated WTForms imports 2022-04-14 20:01:45 +02:00
Eragon 2b2a5cc0d1
Small typo fix 2021-12-16 10:24:06 +01:00
Lephe d964641e1f
forum: fix antibot field being visible (#51) 2021-10-03 17:34:30 +02:00
Lephe 9c78aca5ad
(minor improvement on threads' div.info) 2021-10-03 17:34:30 +02:00
Lephe 19586f9087
fix incorrect date display omitting years 2021-10-03 17:34:30 +02:00
Eragon 875524ccb6
#98 New readme with pictures and better description 2021-10-02 11:57:20 +02:00
Louis Gatin bf03862439 requirements: updated requirements 2021-07-23 23:05:24 +02:00
Louis Gatin 48d2b3333b master.py: added help command 2021-07-23 23:05:24 +02:00
Darks 94c0f3be70 Merge pull request 'css : update Tituya's V43 theme' (#103) from Tituya/PCv5:dev into dev
Reviewed-on: https://gitea.planet-casio.com/devs/PCv5/pulls/103
2021-07-23 23:02:53 +02:00
Tituya fba53699ad css : update Tituya's V43 theme 2021-07-18 00:01:22 +02:00
Darks a5ca1a252c
less: switched to lesscpy as Less compiler
*Lephe entering god mode*
2021-07-15 15:23:20 +02:00
Darks c6ef83d32c
post: add move to another thread operation (#79)
Currently only support forum
2021-07-14 19:55:16 +02:00
Darks d4ceeb2cd1
menu: filter the last topics viewable by user (fix #101) 2021-07-14 17:08:32 +02:00
Darks fbc500e833 Merge pull request 'Switch to LessCSS' (#102) from lesscss into dev
Reviewed-on: https://gitea.planet-casio.com/devs/PCv5/pulls/102
2021-07-14 16:42:06 +02:00
Darks 87d795959f
less (#97): first shot to Less
Quick switch, still may need some refacto and delete unused code
2021-07-14 16:30:45 +02:00
Darks 1112decbd0
less (#97): created makefile 2021-07-14 13:22:23 +02:00
Lephe b9abfcfde7
forum: properly redirect topic after changing forum
The URL changes so using the referrer is not much of an option.
2021-07-12 22:33:17 +02:00
Lephe 3551103c88
forum: allow users to move topics to wherever they can write 2021-07-12 21:33:03 +02:00
Lephe be644a6e18
forum: update trophies/xp of deleted topics' contributors 2021-07-12 20:39:44 +02:00
Lephe 76f03be60f
forum: do not delete threads of promoted topics
Threads of promoted topics belong to the programs they were promoted
into, so they shouldn't be deleted.
2021-07-12 20:39:19 +02:00
Lephe a6689312cf
master.py: enforce non-antialised upscaling of trophy icons
Either the default changed in PIL, the mode of the source image was
affected, or something else.
2021-07-12 20:11:44 +02:00
Lephe 306f1bab64
forum: balance XP of topic creation and deletion 2021-07-12 20:05:32 +02:00
Lephe 9f0cbc810b
forum: enable topic modification
This works only after a top comment has been selected (but topics
without top comments are an anomaly of databases initialized before it
was added, so we don't care).
2021-07-12 19:08:31 +02:00
Lephe b8ed0bba99 forum: enable topic deletion
Topic modification does not work in this snapshot, this is normal.
2021-07-12 18:37:06 +02:00
Lephe 9727c2a986 forum: add an action to change the top comment of a topic
This also prepares the thread_leader macro for top comments of
topics, programs, etc. which have extra stuff to render and more
specific actions.
2021-07-12 18:37:06 +02:00
Lephe 7423e522c3 forum: minor improvements to thread display 2021-07-12 18:37:06 +02:00
Lephe d10f9b3b48 forum: decrease XP when deleting posts (+penalty) 2021-07-12 18:37:06 +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
Darks 44d2a59cbe
requirements: add python-email-validator as flask-wtf now requires it 2021-07-12 18:35:23 +02:00
Lephe b1ca1c4bbc
model: fix a bug in Guest.__repr__ 2021-07-12 17:47:45 +02:00
Lephe 2d6007ead4
improve rendering and overflow of code blocks 2021-07-11 10:09:08 +02:00
Lephe 7fc4424812
forum: use a more readable date format 2021-07-10 17:54:07 +02:00