Lephe
1d38f906ee
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. |
||
---|---|---|
app | ||
assets | ||
migrations | ||
scripts | ||
.env | ||
.gitignore | ||
README.md | ||
REQUIREMENTS.md | ||
V5.py | ||
config.py | ||
local_config.py.default | ||
master.py |
README.md
Planète Casio v5
Code de conduite
Don't be an asshole.
Style de code
- On respecte la PEP8. Je sais c'est relou d'indenter avec des espaces, mais au moins le reste est consistant.
- La seule exception concerne la longueur des lignes. Merci d'essayer de respecter les 79 colonnes, mais dans certains cas c'est plus crade de revenir à la ligne, donc blc.
- Je conseille d'utiliser Flake8 qui permet de vérifier les erreurs de syntaxe, de style, etc. en live.