Browse Source

add manifest; add assets folder

modals-to-spa
stingl 4 years ago
parent
commit
08d592a8d8
  1. 8
      .idea/.gitignore
  2. 8
      .idea/modules.xml
  3. 8
      .idea/timetrack.iml
  4. 6
      .idea/vcs.xml
  5. 0
      assets/img/favicon.ico
  6. 0
      assets/img/logo.png
  7. BIN
      img/google.webp
  8. BIN
      img/redmine.png
  9. BIN
      img/search.png
  10. BIN
      img/stackoverflow.png
  11. 5
      index.html
  12. 6
      js/app.js
  13. 16
      js/manifest.json

8
.idea/.gitignore vendored

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

8
.idea/modules.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/timetrack.iml" filepath="$PROJECT_DIR$/.idea/timetrack.iml" />
</modules>
</component>
</project>

8
.idea/timetrack.iml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/vcs.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

0
img/favicon.ico → assets/img/favicon.ico

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
img/logo.png → assets/img/logo.png

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
img/google.webp

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

BIN
img/redmine.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

BIN
img/search.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

BIN
img/stackoverflow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

5
index.html

@ -5,8 +5,9 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>vDash</title> <title>Timetrack</title>
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico"> <link rel="manifest" href="js/manifest.json">
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico">
</head> </head>
<body oncontextmenu="return false;"> <body oncontextmenu="return false;">

6
js/app.js

@ -3,7 +3,7 @@ const TimeTrack = {
return { return {
theme: 'quartz', theme: 'quartz',
themes: null, themes: null,
dashboardLogo: 'img/logo.png', dashboardLogo: 'assets/img/logo.png',
ticketSystemUrl: '', ticketSystemUrl: '',
showPT: true, showPT: true,
linkTarget: '_blank', linkTarget: '_blank',
@ -175,9 +175,9 @@ const TimeTrack = {
}, },
deleteTicket(index, archive = false) { deleteTicket(index, archive = false) {
if (archive) { if (archive) {
this.archive.splice(index, 1); this.archive.splice(index, 1);
} else { } else {
this.tickets.splice(index, 1); this.tickets.splice(index, 1);
} }
this.updateStorage(); this.updateStorage();

16
js/manifest.json

@ -0,0 +1,16 @@
{
"short_name": "Timetrack",
"name": "Timetrack",
"icons": [
{
"src": "/timetrack/assets/img/favicon.ico",
"type": "image/png",
"sizes": "16x16"
}
],
"start_url": "/timetrack",
"background_color": "#3a3939",
"display": "standalone",
"scope": "/timetrack",
"theme_color": "#3a3939"
}