Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
adf1a565
Commit
adf1a565
authored
Sep 15, 2020
by
Patrick
Browse files
update text
parent
5268a11c
Changes
3
Hide whitespace changes
Inline
Side-by-side
server.js
View file @
adf1a565
...
...
@@ -33,6 +33,6 @@ const httpsServer = https.createServer(credentials, app);
// });
httpsServer
.
listen
(
8083
,
()
=>
{
console
.
log
(
'
HTTPS Server running on port
44
3
'
);
console
.
log
(
'
HTTPS Server running on port
808
3
'
);
});
server
test
.js
→
server
SimS
.js
View file @
adf1a565
File moved
serveralternative.js
0 → 100644
View file @
adf1a565
const
http
=
require
(
'
http
'
);
const
fs
=
require
(
'
fs
'
);
const
express
=
require
(
'
express
'
)
const
app
=
express
();
const
bodyParser
=
require
(
'
body-parser
'
)
const
soap
=
require
(
'
soap
'
);
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
false
}))
app
.
use
(
bodyParser
.
json
())
const
request
=
require
(
'
ajax-request
'
);
app
.
use
(
express
.
static
(
'
vcm
'
));
app
.
listen
(
process
.
env
.
PORT
||
8083
);
console
.
log
(
"
on 8080
"
);
// name of the file
var
filename
=
'
vcm/config.json
'
;
var
contentSync
=
fs
.
readFileSync
(
filename
);
console
.
log
(
'
Content of the file :
'
+
contentSync
);
console
.
log
(
contentSync
.
includes
(
'
"balloonTypes":
'
));
// var newtext = contentSync.replace("balloonTypes","this is a test")
// "balloonTypes": [
// {adfafas
// "template": [
// "<div class='balloon' id='myBalloon'>",
// " <h1 class='balloon-title'><%= obj.title %></h1>",
// " <div class='balloon-content'>",
// " <%= obj.description %>",
// " </div>",
// " <div class='balloon-close-col'>",
// " <button class='close-balloon'><i class='fa fa-times fa-lg'></i></button>",
// " </div>",
// " <div class='dialog-image-balloon'></div>",
// " <div class='balloon-left-edge'></div>",
// "</div>"
// ],
// "minTop": "balloonHeight + 70",
// "minLeft": "70",
// "layerNames": [],
// "layerTypes": [
// "vcs.vcm.layer.Vector"
// ]
// },
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment