use sample files
This commit is contained in:
		
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -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
 | 
			
		||||
							
								
								
									
										9
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
									
									
									
									
								
							@ -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
 | 
			
		||||
@ -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
									
								
							
							
						
						
									
										3
									
								
								src/config.sample.pug
									
									
									
									
									
										Normal 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'
 | 
			
		||||
@ -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")
 | 
			
		||||
@ -7,5 +7,4 @@
 | 
			
		||||
  "automaticSilentRenew": true,
 | 
			
		||||
  "silent_redirect_uri": "https://staging-app.happy-dev.fr",
 | 
			
		||||
  "loadUserInfo": true
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										10
									
								
								www/oidc-client-config.sample.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								www/oidc-client-config.sample.json
									
									
									
									
									
										Normal 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
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user