diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..73f69e0
--- /dev/null
+++ b/.idea/.gitignore
@@ -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/
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..ba3826d
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/timetrack.iml b/.idea/timetrack.iml
new file mode 100644
index 0000000..c956989
--- /dev/null
+++ b/.idea/timetrack.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/img/favicon.ico b/assets/img/favicon.ico
similarity index 100%
rename from img/favicon.ico
rename to assets/img/favicon.ico
diff --git a/img/logo.png b/assets/img/logo.png
similarity index 100%
rename from img/logo.png
rename to assets/img/logo.png
diff --git a/img/google.webp b/img/google.webp
deleted file mode 100644
index 1ca2abf..0000000
Binary files a/img/google.webp and /dev/null differ
diff --git a/img/redmine.png b/img/redmine.png
deleted file mode 100644
index 330931f..0000000
Binary files a/img/redmine.png and /dev/null differ
diff --git a/img/search.png b/img/search.png
deleted file mode 100644
index fb11611..0000000
Binary files a/img/search.png and /dev/null differ
diff --git a/img/stackoverflow.png b/img/stackoverflow.png
deleted file mode 100644
index 46cb8d4..0000000
Binary files a/img/stackoverflow.png and /dev/null differ
diff --git a/index.html b/index.html
index 6cfb8f3..7796857 100644
--- a/index.html
+++ b/index.html
@@ -5,8 +5,9 @@
-
vDash
-
+ Timetrack
+
+
diff --git a/js/app.js b/js/app.js
index 83ad199..883ba3a 100644
--- a/js/app.js
+++ b/js/app.js
@@ -3,7 +3,7 @@ const TimeTrack = {
return {
theme: 'quartz',
themes: null,
- dashboardLogo: 'img/logo.png',
+ dashboardLogo: 'assets/img/logo.png',
ticketSystemUrl: '',
showPT: true,
linkTarget: '_blank',
@@ -175,11 +175,11 @@ const TimeTrack = {
},
deleteTicket(index, archive = false) {
if (archive) {
- this.archive.splice(index, 1);
+ this.archive.splice(index, 1);
} else {
- this.tickets.splice(index, 1);
+ this.tickets.splice(index, 1);
}
-
+
this.updateStorage();
},
archiveTicket(index) {
@@ -224,7 +224,7 @@ const TimeTrack = {
this.tickets = json.tickets;
this.archive = json.archive ?? [];
}
-
+
this.ticketSystemUrl = json.redmineUrl ?? json.ticketSystemUrl;
this.showPT = json.showPT;
this.theme = json.theme;
@@ -240,7 +240,7 @@ const TimeTrack = {
extractTickets(ticketCollection, forArchive = false) {
let tickets = [];
let archive = [];
-
+
ticketCollection.forEach((ticket) => {
if (ticket.archived || (ticket.active && ticket.active === false)) {
archive.push(ticket);
@@ -248,7 +248,7 @@ const TimeTrack = {
tickets.push(ticket)
}
});
-
+
return forArchive ? archive : tickets;
},
copy2Clipboard() {
diff --git a/js/manifest.json b/js/manifest.json
new file mode 100644
index 0000000..0a59b6a
--- /dev/null
+++ b/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"
+}
\ No newline at end of file