run prettier as pre-commit hook (#3264)

This commit is contained in:
Kjeld Schouten-Lebbing
2022-07-22 20:23:01 +02:00
committed by GitHub
parent c41dda9d32
commit ded5a3c0e6
711 changed files with 35800 additions and 32229 deletions
+17 -17
View File
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: "1.5.1"
kubeVersion: '>=1.16.0-0'
kubeVersion: ">=1.16.0-0"
version: 4.0.20
name: spotweb
description: Spotweb is a decentralized usenet community based on the Spotnet protocol.
@@ -8,25 +8,25 @@ type: application
home: https://github.com/truecharts/apps/tree/master/charts/stable/spotweb
icon: https://truecharts.org/img/chart-icons/spotweb.png
keywords:
- usenet
- spotweb
- spotnet
- usenet
- spotweb
- spotnet
sources:
- https://github.com/spotweb/spotweb
- https://hub.docker.com/r/jbaten/spotweb
- https://github.com/joachimbaten/spotweb-docker
- https://github.com/spotweb/spotweb
- https://hub.docker.com/r/jbaten/spotweb
- https://github.com/joachimbaten/spotweb-docker
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 10.4.4
- condition: postgresql.enabled
name: postgresql
repository: https://charts.truecharts.org/
version: 8.0.30
- name: common
repository: https://library-charts.truecharts.org
version: 10.4.4
- condition: postgresql.enabled
name: postgresql
repository: https://charts.truecharts.org/
version: 8.0.30
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
annotations:
truecharts.org/catagories: |
- media
+25 -24
View File
@@ -4,39 +4,40 @@
Usernames for an administrator in spotweb have some restrictions.
* Following words are not allowed:
* god
* mod
* spot
* admin
* drazix
* superuser
* supervisor
* root
* anonymous
* Following characters are not allowed:
* <
* \>
* Regex used to validate the username (you can try live [here](https://regex101.com/r/LA4Io7/1)):
`^((?!god|mod|spot|admin|drazix|superuser|supervisor|root|anonymous)[^<>])*$`
- Following words are not allowed:
- god
- mod
- spot
- admin
- drazix
- superuser
- supervisor
- root
- anonymous
- Following characters are not allowed:
- <
- \>
- Regex used to validate the username (you can try live [here](https://regex101.com/r/LA4Io7/1)):
`^((?!god|mod|spot|admin|drazix|superuser|supervisor|root|anonymous)[^<>])*$`
## Admin Firstname and Lastname
The firstname and lastname in spotweb have some restrictions.
The firstname and lastname in spotweb have some restrictions.
* Following characters are not allowed:
* <
* \>
* Minimum lenght of 2 characters is enforced
* Regex used to validate the firstname and lastname (you can try live [here](https://regex101.com/r/x2KGnU/1)):
`^([^<>]{2})([^<>]*)$`
- Following characters are not allowed:
- <
- \>
- Minimum lenght of 2 characters is enforced
- Regex used to validate the firstname and lastname (you can try live [here](https://regex101.com/r/x2KGnU/1)):
`^([^<>]{2})([^<>]*)$`
## Admin Email
The email addres is validated in spotweb using the built-in `_FILTER_VALIDATE_EMAIL`.
* Regex used to validate the email (you can try live [here](https://regex101.com/r/yEmCoL/1)):
```^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$```
- Regex used to validate the email (you can try live [here](https://regex101.com/r/yEmCoL/1)):
`` ^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$ ``
---
If you find a field that you think it needs validation, please open an issue on github