Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
duniter-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
modules
duniter-ui
Commits
e78c0e31
Commit
e78c0e31
authored
8 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Better configure Cesium
parent
b317b70e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cesium.js
+3
-24
3 additions, 24 deletions
cesium.js
misc/cesium.js
+0
-31
0 additions, 31 deletions
misc/cesium.js
with
3 additions
and
55 deletions
cesium.js
+
3
−
24
View file @
e78c0e31
...
...
@@ -31,31 +31,10 @@ outputStream.on('close', () => {
// Configure Cesium
const
cesiumConfigFile
=
path
.
join
(
__dirname
,
'
public
'
,
'
cesium
'
,
'
config.js
'
);
const
config
=
`/*** CONTENT GENERATED BY DUNITER-UI ***/
angular.module("cesium.config", [])
.constant("csConfig", {
"timeout": 4000,
"cacheTimeMs": 60000,
"useRelative": true,
"timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000,
"useLocalStorage": false,
"rememberMe": false,
"showUDHistory": false,
"node": {
"host": "test-net.duniter.fr",
"port": "9201"
},
"plugins": {
},
"version": "0.3.5",
"build": "2016-09-23T22:46:36.427Z",
"newIssueUrl": "https://github.com/duniter/cesium/issues/new?labels=bug"
});
`
;
let
config
=
fs
.
readFileSync
(
cesiumConfigFile
,
'
utf8
'
);
config
=
config
.
replace
(
/"plugins"
(\n
|.
)
*"version"/
,
'
"plugins
\
": {},
\n\t
"version"
'
);
fs
.
writeFileSync
(
cesiumConfigFile
,
config
);
process
.
exit
(
0
);
});
...
...
This diff is collapsed.
Click to expand it.
misc/cesium.js
deleted
100644 → 0
+
0
−
31
View file @
b317b70e
/******
* !! WARNING: This is a generated file !!
*
* PLEASE DO NOT MODIFY DIRECTLY
*
* => Changes should be done on file 'app/config.json'.
******/
angular
.
module
(
"
cesium.config
"
,
[])
.
constant
(
"
csConfig
"
,
{
"
timeout
"
:
4000
,
"
cacheTimeMs
"
:
60000
,
"
useRelative
"
:
true
,
"
timeWarningExpireMembership
"
:
5184000
,
"
timeWarningExpire
"
:
7776000
,
"
useLocalStorage
"
:
false
,
"
rememberMe
"
:
false
,
"
showUDHistory
"
:
false
,
"
node
"
:
{
"
host
"
:
"
test-net.duniter.fr
"
,
"
port
"
:
"
9201
"
},
"
plugins
"
:
{
},
"
version
"
:
"
0.3.5
"
,
"
build
"
:
"
2016-09-23T22:46:36.427Z
"
,
"
newIssueUrl
"
:
"
https://github.com/duniter/cesium/issues/new?labels=bug
"
})
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment