PCv5/app/static/scripts
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
..
contact.js Django est mort, vive Flask ! 2018-02-23 23:34:06 +01:00
editor.js Retrait du gitignore des dossiers scripts 2019-12-04 22:47:55 +01:00
entropy.js passwords: enhances passwords rules 2020-07-25 18:06:49 +02:00
filter.js admin/members: add a dynamic regex/logic filter for the member list 2020-11-02 14:38:28 +01:00
pc-utils.js app: send cookies with Secure and SameSite=Lax (#60) 2020-10-30 14:06:33 +01:00
simplemde.min.js Utilisation de https://github.com/sparksuite/simplemde-markdown-editor comme éditeur 2020-09-17 22:41:32 +02:00
smartphone_patch.js Django est mort, vive Flask ! 2018-02-23 23:34:06 +01:00
trigger_menu.js Minor changes 2019-11-29 21:37:05 +01:00