use sample files

This commit is contained in:
Clément 2018-10-05 13:07:14 +02:00
parent 3fa8602e2c
commit c1456a5b63
7 changed files with 26 additions and 8 deletions

2
.gitignore vendored
View File

@ -1,8 +1,10 @@
/node_modules
/src/config.pug
/www/index.html
/www/styles/
/www/scripts/
/www/lib/
/www/oidc-client-config.json
!/www/lib/sib-core
!/www/lib/sib-router
!/www/lib/sib-chat

View File

@ -10,7 +10,7 @@ clean:
git clean -fXd
install: node_modules copy_lib submodules
install: node_modules copy_lib copy_samples submodules
submodules:
git submodule init
@ -37,6 +37,11 @@ node_modules:
copy_lib:
@node copy_lib.js
# sample
copy_samples:
@cp -n src/config.sample.pug src/config.pug
@cp -n www/oidc-client-config.sample.json www/oidc-client-config.json
# pug
$(DIST_DIR)/index.html: src/index.pug $(wildcard src/*.pug src/*/*.pug)
@echo pug: $< ➜ $@
@ -56,4 +61,4 @@ $(DIST_DIR)/%.js: src/%.js
sync:
rsync -rv www/* staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/
.PHONY: default install submodules copy_lib build watch serve clean
.PHONY: default install submodules copy_lib copy_samples build watch serve clean

View File

@ -1,3 +1,3 @@
//- var sdn = process.env.SDN || 'http://127.0.0.1:8000'
- var sdn = process.env.SDN || 'https://test-paris.happy-dev.fr'
- var sdn = process.env.SDN || '127.0.0.1:8000'
- var cdn = process.env.CDN || 'https://cdn.happy-dev.fr'

3
src/config.sample.pug Normal file
View File

@ -0,0 +1,3 @@
//- var sdn = process.env.SDN || 'http://127.0.0.1:8000'
- var sdn = process.env.SDN || '127.0.0.1:8000'
- var cdn = process.env.CDN || 'https://cdn.happy-dev.fr'

View File

@ -1,10 +1,9 @@
// Scripts
//- script(src="https://unpkg.com/@webcomponents/webcomponentsjs@1.2.7/webcomponents-loader.js")
script(src="/lib/webcomponentsjs/webcomponents-loader.js")
//- script(src="lib/html-imports.js")
//- script(src="https://unpkg.com/@webcomponents/webcomponentsjs@1.2.7/webcomponents-loader.js")
script(src='/lib/sib-chat/3rdparty/sib-oidc-client.js')
script(src="/scripts/index.js")
// Stylesheets
@ -26,4 +25,4 @@ link(rel='import', href='/lib/sib-chat/sib-chat.html')
//- cdn
link(rel='import', href="https://cdn.happy-dev.fr/sib-core/sib-display.html")
link(rel='import', href="https://cdn.happy-dev.fr/sib-router/sib-router.html")
//- link(rel='import', href="https://cdn.happy-dev.fr/sib-chat/sib-chat.html")
link(rel='import', href="https://cdn.happy-dev.fr/sib-chat/sib-chat.html")

View File

@ -8,4 +8,3 @@
"silent_redirect_uri": "https://staging-app.happy-dev.fr",
"loadUserInfo": true
}

View File

@ -0,0 +1,10 @@
{
"authority": "https://test-paris.happy-dev.fr/openid/",
"client_id": "125356",
"redirect_uri": "http://127.0.0.1:3000",
"response_type": "id_token token",
"scope": "openid profile email",
"automaticSilentRenew": true,
"silent_redirect_uri": "http://127.0.0.1:3000",
"loadUserInfo": true
}