-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
144 lines (134 loc) · 4.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<html>
<head>
<title>Shuffle Do - Multitask like a pro</title>
<meta name="theme-color" content="#011219">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="description" content="A to do list app inspired by the UX of a music player">
<meta property="og:title" content="Shuffle Do - Multitask like a pro"/>
<meta property="og:url" content="https://shuffledo.wiosdesigns.xyz/"/>
<meta property="og:description" content="A to do list app inspired by the UX of a music player">
<meta property="og:image" content="/assets/ogicon.png">
<meta property="og:type" content="website" />
<meta name="twitter:card" content="app"></meta>
<meta property="twitter:image" content="/assets/ogbg.png">
<link rel="shortcut icon" type="image/png" href="/assets/icon.png"/>
<link rel="stylesheet" type="text/css" href="/css/main.css"/>
<link rel="manifest" href="manifest.json">
<script src="/js/vue.min.js"></script>
<script src="/js/dexie.js"></script>
<script src="/js/db.js"></script>
<script src="/js/main.js"></script>
</head>
<body onload="init()">
<svg viewBox="0 0 100 100" style="display: none;">
<symbol id="del">
<path
style="fill: none; stroke: var(--error); stroke-width: 10; stroke-linejoin: round; stroke-linecap: round;"
d="M10 10 L90 90">
</path>
<path
style="fill: none; stroke: var(--error); stroke-width: 10; stroke-linejoin: round; stroke-linecap: round;"
d="M10 90 L90 10">
</path>
</symbol>
<symbol id="queued">
<circle
style="fill: var(--theme); stroke: var(--theme); stroke-width: 10; stroke-linejoin: round; stroke-linecap: round;"
cx="50" cy="50" r="40"
/>
</symbol>
<symbol id="notqueued">
<circle
style="fill: none; stroke: var(--theme); stroke-width: 10; stroke-linejoin: round; stroke-linecap: round;"
cx="50" cy="50" r="40"
/>
</symbol>
</svg>
<div id="app">
<nav>
<h2>
<img src="/assets/icon.png" style="vertical-align: -0.25rem; height: 1.5rem; width: auto;">
Shuffle Do
</h2>
<p v-bind:class="{active:screen=='session'}" v-on:click="screen='session'">Now Playing</p>
<p v-bind:class="{active:screen=='projects'}" v-on:click="screen='projects'">Projects</p>
<p v-bind:class="{active:screen=='tasks'}" v-on:click="screen='tasks'">Tasks</p>
</nav>
<div id="screen-session" v-if="screen=='session'">
<div>
<div v-for="task in session" class="session-task">
<p>
<span>{{task.project}}</span>
<br>
<span class="taskName">{{task.name}}</span>
</p>
<button v-on:click="removeFromSession(task.id)">Finished</button>
<button v-on:click="next" class="red">Snooze</button>
</div>
</div>
</div>
<div id="screen-projects" v-if="screen=='projects'">
<div>
<p v-for="project in projects" class="projectcard">
{{project}}
</p>
</div>
<form action="javascript:app.addProject()">
<h3>Add a Project</h3>
<input type="text" v-model="newProjectName" placeholder="(New Project Name)">
<input type="submit" value="Add">
</form>
</div>
<div id="screen-tasks" v-if="screen=='tasks'">
<div>
<label>
<span>Project:</span>
<select v-model="filterProject">
<option value="">All</option>
<option v-for="project in projects" v-bind:value="project">
{{project}}
</option>
</select>
</label>
<label>
<span>Show Closed Tasks</span>
<input type="checkbox" v-model="showClosedTasks">
</label>
<div v-for="task in tasks" class="taskcard" v-bind:class="{closed:!task.isOpen}">
<svg
v-if="sessionTaskIds.includes(task.id)"
v-on:click="removeFromSession(task.id)"
viewBox="0 0 100 100">
<use xlink:href="#queued"></use>
</svg>
<svg
v-else
v-on:click="addToSession(task)"
viewBox="0 0 100 100">
<use xlink:href="#notqueued"></use>
</svg>
<span>{{task.project}}</span>
<span>{{task.name}}</span>
<button v-if="task.isOpen" class="red" v-on:click="closeTask(task.id)">
Close
</button>
<button v-else v-on:click="openTask(task.id)">Open</button>
<svg viewBox="0 0 100 100" v-on:click="deleteTask(task.id)">
<use xlink:href="#del"></use>
</svg>
</div>
</div>
<form action="javascript:app.addTask()">
<h3>Add a Task</h3>
<input type="text" v-model="newTaskName" placeholder="(New Task Name)" required>
<select v-model="newTaskProject" required>
<option v-for="project in projects" v-bind:value="project">
{{project}}
</option>
</select>
<input type="submit" value="Add">
</form>
</div>
</body>
</html>