Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
iCity
EnergyDashboard
Commits
b4e7d527
Commit
b4e7d527
authored
Oct 28, 2021
by
Pithon Kabiro
Browse files
Add HFT favicon
parent
c742fe1d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
index.js
View file @
b4e7d527
const
express
=
require
(
"
express
"
);
const
favicon
=
require
(
"
express-favicon
"
);
const
app
=
express
();
const
port
=
process
.
env
.
PORT
||
3000
;
app
.
use
(
express
.
static
(
"
public
"
));
app
.
use
(
favicon
(
__dirname
+
"
/public/favicon.ico
"
));
app
.
get
(
"
/
"
,
(
req
,
res
)
=>
{
res
.
sendFile
(
__dirname
+
"
/index.html
"
);
});
...
...
package-lock.json
View file @
b4e7d527
This diff is collapsed.
Click to expand it.
package.json
View file @
b4e7d527
...
...
@@ -13,7 +13,11 @@
"author"
:
""
,
"license"
:
"
ISC
"
,
"dependencies"
:
{
"
express
"
:
"
^4.17.1
"
"
express
"
:
"
^4.17.1
"
,
"
express-favicon
"
:
"
^2.0.1
"
},
"devDependencies"
:
{
"
nodemon
"
:
"
^2.0.13
"
},
"repository"
:
{
"type"
:
"git"
,
...
...
public/favicon.ico
0 → 100644
View file @
b4e7d527
318 Bytes
public/index.html
View file @
b4e7d527
...
...
@@ -69,6 +69,10 @@
Custom JS -->
<script
defer
type=
"module"
src=
"./js/appCesium.js"
></script>
<script
defer
type=
"module"
src=
"./js/appChart.js"
></script>
<!--
Favicon -->
<link
rel=
"icon"
href=
"/public/favicon.ico"
/>
</head>
<body
class=
"sb-nav-fixed"
>
<nav
class=
"sb-topnav navbar navbar-expand navbar-dark bg-dark"
>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment