@cerema/cadriciel 1.4.18 → 1.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@
5
5
  <meta charset="UTF-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <title>Cadriciel</title>
8
- <link rel="stylesheet" type="text/css" href="http://127.0.0.1:4200/index.css">
8
+ <link rel="stylesheet" type="text/css" href="/index.css">
9
9
  </link>
10
10
  </head>
11
11
 
@@ -16,13 +16,13 @@
16
16
 
17
17
 
18
18
  <div style="position:absolute;bottom:0px;right:0px;">
19
- <img src="http://127.0.0.1:4200/nono.png" width="300px" height="300px">
19
+ <img src="/nono.png" width="300px" height="300px">
20
20
  </div>
21
21
  <div
22
- style="position:absolute;top:30px;left:0px;background-image:url(http://127.0.0.1:4200/cerema.jpeg);background-position:center;background-repeat:no-repeat;background-size:contain;width:100%;height:150px">
22
+ style="position:absolute;top:30px;left:0px;background-image:url(/cerema.jpeg);background-position:center;background-repeat:no-repeat;background-size:contain;width:100%;height:150px">
23
23
  </div>
24
24
  <div
25
- style="position:absolute;top:150px;left:30px;background-image:url(http://127.0.0.1:4200/logo.png);background-position:center;background-repeat:no-repeat;background-size:contain;width:100%;height:100px">
25
+ style="position:absolute;top:150px;left:30px;background-image:url(/logo.png);background-position:center;background-repeat:no-repeat;background-size:contain;width:100%;height:100px">
26
26
  </div>
27
27
  </body>
28
28
 
@@ -4,24 +4,6 @@ module.exports = (args) => {
4
4
  const os = require('os');
5
5
  const fs = require('fs');
6
6
  const { spawn } = require('child_process');
7
- const HOSTS_PATH = '/etc/hosts';
8
- const MAPPING_ENTRY = '127.0.0.1 keycloak';
9
-
10
- function addMapping() {
11
- try {
12
- const hostsContent = fs.readFileSync(HOSTS_PATH, 'utf8');
13
- if (!hostsContent.includes(MAPPING_ENTRY)) {
14
- fs.appendFileSync(HOSTS_PATH, os.EOL + MAPPING_ENTRY);
15
- }
16
- } catch (e) {
17
- console.error(
18
- chalk.red.bold(
19
- "\nVous devez lancer la commande en tant qu'administrateur.\n"
20
- )
21
- );
22
- return process.exit(0);
23
- }
24
- }
25
7
 
26
8
  const checkIfCommandExists = (command, callback) => {
27
9
  const proc = spawn('which', [command], { shell: true });
@@ -94,7 +76,6 @@ module.exports = (args) => {
94
76
  description: 'Installation des images Docker',
95
77
  },
96
78
  start: () => {
97
- addMapping();
98
79
  const dockerImagesToInstall = [
99
80
  'postgis/postgis',
100
81
  'dpage/pgadmin4',
@@ -20,9 +20,6 @@ module.exports = (args) => {
20
20
  const PORT = 14211;
21
21
  const CLIENT_ID = 'cadriciel_login';
22
22
 
23
- //const KEYCLOAK_SERVER = 'https://orion-recette.cerema.fr';
24
- //const PORT = 4200;
25
- //const CLIENT_ID = 'marep_dev';
26
23
  const REDIRECT_URI = 'http://localhost:' + PORT + '/login';
27
24
 
28
25
  const INDEX_HTML = fs.readFileSync(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerema/cadriciel",
3
- "version": "1.4.18",
3
+ "version": "1.4.19",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "npm": ">=8.0.0",