Updated icons
@@ -1,5 +1,7 @@
|
|||||||
# Worktime
|
# Worktime
|
||||||
|
|
||||||
|
[](https://github.com/anatolykopyl/worktime/actions/workflows/blank.yml)
|
||||||
|
|
||||||
An app to track your time
|
An app to track your time
|
||||||
|
|
||||||
Works offline ✈
|
Works offline ✈
|
||||||
@@ -1 +0,0 @@
|
|||||||
<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⏲</text></svg>
|
|
||||||
|
Before Width: | Height: | Size: 124 B |
BIN
public/img/icons/android-144x144.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/img/icons/android-192x192.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/img/icons/android-36x36.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/img/icons/android-48x48.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
public/img/icons/android-72x72.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
public/img/icons/android-96x96.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 799 B After Width: | Height: | Size: 788 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 2.2 KiB |
1
public/img/icons/favicon.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">⏲</text></svg>
|
||||||
|
After Width: | Height: | Size: 108 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 14 KiB |
@@ -1,3 +0,0 @@
|
|||||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M8.00251 14.9297L0 1.07422H6.14651L8.00251 4.27503L9.84583 1.07422H16L8.00251 14.9297Z" fill="black"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 215 B |
@@ -4,8 +4,9 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.svg">
|
<link rel="icon" href="<%= BASE_URL %>img/icons/favicon.svg">
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<link rel="apple-touch-icon" href="<%= BASE_URL %>img/icons/apple-touch-icon.png"/>
|
||||||
|
<title>Worktime</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>
|
<noscript>
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default createStore({
|
|||||||
state: {
|
state: {
|
||||||
categories: [],
|
categories: [],
|
||||||
tasks: [],
|
tasks: [],
|
||||||
|
midnightReset: false,
|
||||||
|
darkTheme: true,
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
addCategory(state, category) {
|
addCategory(state, category) {
|
||||||
@@ -24,6 +26,15 @@ export default createStore({
|
|||||||
return newTask;
|
return newTask;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
assignCategory(state, { name, category }) {
|
||||||
|
state.tasks = state.tasks.map((task) => {
|
||||||
|
const newTask = task;
|
||||||
|
if (newTask.name === name) {
|
||||||
|
newTask.category = category;
|
||||||
|
}
|
||||||
|
return newTask;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
addTask(state, name) {
|
addTask(state, name) {
|
||||||
if (name) {
|
if (name) {
|
||||||
@@ -66,14 +77,8 @@ export default createStore({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
assignCategory(state, { name, category }) {
|
setMidnightReset(state, value) {
|
||||||
state.tasks = state.tasks.map((task) => {
|
state.midnightReset = !!value;
|
||||||
const newTask = task;
|
|
||||||
if (newTask.name === name) {
|
|
||||||
newTask.category = category;
|
|
||||||
}
|
|
||||||
return newTask;
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [vuexLocal.plugin],
|
plugins: [vuexLocal.plugin],
|
||||||
|
|||||||
@@ -27,10 +27,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-else class="select-category" @click="$refs.categorySelect.open">
|
<div v-else class="select-category" @click="$refs.categorySelect.open">
|
||||||
Assign Category
|
Assign Category
|
||||||
<!-- <CategoryDropdown
|
|
||||||
class="dropdown"
|
|
||||||
@selected="assignCategory"
|
|
||||||
/> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||