mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-04-23 23:22:38 +00:00
Compare commits
5 Commits
4cccd00a12
...
7f08b86247
Author | SHA1 | Date | |
---|---|---|---|
|
7f08b86247 | ||
|
a208a4fa25 | ||
|
4799b2c52d | ||
|
6c63c6417c | ||
|
4563b2b640 |
14
README.md
14
README.md
@ -58,7 +58,13 @@ Bien que cela permette de créer une instance sur toutes les distributions,
|
|||||||
(env)$ ./manage.py createsuperuser # Création d'un⋅e utilisateur⋅rice initial
|
(env)$ ./manage.py createsuperuser # Création d'un⋅e utilisateur⋅rice initial
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Enjoy :
|
6. (Optionnel) **Création d'une clé privée OpenID Connect**
|
||||||
|
|
||||||
|
Pour activer le support d'OpenID Connect, il faut générer une clé privée, par
|
||||||
|
exemple avec openssl (`openssl genrsa -out oidc.key 4096`), et renseigner son
|
||||||
|
emplacement dans `OIDC_RSA_PRIVATE_KEY` (par défaut `/var/secrets/oidc.key`).
|
||||||
|
|
||||||
|
7. Enjoy :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
(env)$ ./manage.py runserver 0.0.0.0:8000
|
(env)$ ./manage.py runserver 0.0.0.0:8000
|
||||||
@ -228,6 +234,12 @@ Sinon vous pouvez suivre les étapes décrites ci-dessous.
|
|||||||
(env)$ ./manage.py check # pas de bêtise qui traine
|
(env)$ ./manage.py check # pas de bêtise qui traine
|
||||||
(env)$ ./manage.py migrate
|
(env)$ ./manage.py migrate
|
||||||
|
|
||||||
|
7. **Création d'une clé privée OpenID Connect**
|
||||||
|
|
||||||
|
Pour activer le support d'OpenID Connect, il faut générer une clé privée, par
|
||||||
|
exemple avec openssl (`openssl genrsa -out oidc.key 4096`), et renseigner son
|
||||||
|
emplacement dans `OIDC_RSA_PRIVATE_KEY` (par défaut `/var/secrets/oidc.key`).
|
||||||
|
|
||||||
7. *Enjoy \o/*
|
7. *Enjoy \o/*
|
||||||
|
|
||||||
### Installation avec Docker
|
### Installation avec Docker
|
||||||
|
@ -294,3 +294,10 @@ searchbar.addEventListener("keyup", function (e) {
|
|||||||
if (firstMatch && e.key === "Enter")
|
if (firstMatch && e.key === "Enter")
|
||||||
firstMatch.click()
|
firstMatch.click()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function createshiny() {
|
||||||
|
const list_btn = document.querySelectorAll('.btn-outline-dark')
|
||||||
|
const shiny_class = list_btn[Math.floor(Math.random() * list_btn.length)].classList
|
||||||
|
shiny_class.replace('btn-outline-dark', 'btn-outline-dark-shiny')
|
||||||
|
}
|
||||||
|
createshiny()
|
||||||
|
@ -268,6 +268,10 @@ OAUTH2_PROVIDER = {
|
|||||||
'OAUTH2_VALIDATOR_CLASS': "permission.scopes.PermissionOAuth2Validator",
|
'OAUTH2_VALIDATOR_CLASS': "permission.scopes.PermissionOAuth2Validator",
|
||||||
'REFRESH_TOKEN_EXPIRE_SECONDS': timedelta(days=14),
|
'REFRESH_TOKEN_EXPIRE_SECONDS': timedelta(days=14),
|
||||||
'PKCE_REQUIRED': False, # PKCE (fix a breaking change of django-oauth-toolkit 2.0.0)
|
'PKCE_REQUIRED': False, # PKCE (fix a breaking change of django-oauth-toolkit 2.0.0)
|
||||||
|
'OIDC_ENABLED': True,
|
||||||
|
'OIDC_RSA_PRIVATE_KEY':
|
||||||
|
os.getenv('OIDC_RSA_PRIVATE_KEY', '/var/secrets/oidc.key'),
|
||||||
|
'SCOPES': { 'openid': "OpenID Connect scope" },
|
||||||
}
|
}
|
||||||
|
|
||||||
# Take control on how widget templates are sourced
|
# Take control on how widget templates are sourced
|
||||||
|
@ -74,7 +74,7 @@ mark {
|
|||||||
/* MODE VIEUXCON=ON */
|
/* MODE VIEUXCON=ON */
|
||||||
/* background-color: rgb(166, 0, 2) !important; */
|
/* background-color: rgb(166, 0, 2) !important; */
|
||||||
background-color: rgb(0, 0, 0);
|
background-color: rgb(0, 0, 0);
|
||||||
background-image: url('/static/wrapped/img/1/bg.png');
|
background-image: url('/static/img/rp_bg.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@ -136,33 +136,32 @@ body {
|
|||||||
border-color: rgb(255, 0, 101);
|
border-color: rgb(255, 0, 101);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-outline-dark:nth-child(even) {
|
.btn-outline-dark-shiny {
|
||||||
color: rgba(255, 203, 32, 75%);
|
background-color: #222;
|
||||||
}
|
border-color: #61605b;
|
||||||
|
|
||||||
.btn-outline-dark:nth-child(odd) {
|
|
||||||
color: rgba(255, 0, 101, 75%);
|
color: rgba(255, 0, 101, 75%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-outline-dark {
|
.btn-outline-dark-shiny:hover,
|
||||||
background-color: #222;
|
.btn-outline-dark-shiny:not(:disabled):not(.disabled).active,
|
||||||
border-color: #61605b;
|
.btn-outline-dark-shiny:not(:disabled):not(.disabled):active {
|
||||||
}
|
|
||||||
|
|
||||||
.btn-outline-dark:hover:nth-child(even),
|
|
||||||
.btn-outline-dark:not(:disabled):not(.disabled).active,
|
|
||||||
.btn-outline-dark:not(:disabled):not(.disabled):active {
|
|
||||||
color: rgb(0, 0, 0);
|
color: rgb(0, 0, 0);
|
||||||
background-color: rgb(255, 203, 32);
|
background-color: rgb(255, 203, 32);
|
||||||
border-color: rgb(255, 0, 101);
|
border-color: rgb(255, 0, 101);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-outline-dark:hover:nth-child(odd),
|
.btn-outline-dark {
|
||||||
|
background-color: #222;
|
||||||
|
border-color: #61605b;
|
||||||
|
color: rgba(255, 203, 32, 75%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-dark:hover,
|
||||||
.btn-outline-dark:not(:disabled):not(.disabled).active,
|
.btn-outline-dark:not(:disabled):not(.disabled).active,
|
||||||
.btn-outline-dark:not(:disabled):not(.disabled):active {
|
.btn-outline-dark:not(:disabled):not(.disabled):active {
|
||||||
color: rgb(0, 0, 0);
|
color: rgb(0, 0, 0);
|
||||||
background-color: rgb(255, 203, 32);
|
background-color: rgb(255, 0, 101);
|
||||||
border-color: rgb(255, 0, 101);
|
border-color: rgb(255, 203, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
BIN
note_kfet/static/img/rp_bg.png
Normal file
BIN
note_kfet/static/img/rp_bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 82 KiB |
@ -26,7 +26,7 @@ function afterKonami () {
|
|||||||
})
|
})
|
||||||
rythm.addRythm('d-flex', 'color', 50, 50, {
|
rythm.addRythm('d-flex', 'color', 50, 50, {
|
||||||
from: [64, 64, 64],
|
from: [64, 64, 64],
|
||||||
to: [128, 64, 128]
|
to: [255, 0, 101]
|
||||||
})
|
})
|
||||||
rythm.addRythm('nav-link', 'jump', 150, 50, {
|
rythm.addRythm('nav-link', 'jump', 150, 50, {
|
||||||
min: 0,
|
min: 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user