-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.html
More file actions
149 lines (136 loc) · 6.51 KB
/
dashboard.html
File metadata and controls
149 lines (136 loc) · 6.51 KB
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
145
146
147
148
149
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TaskNote Dashboard</title>
<link rel="stylesheet" href="dashboard.css">
</head>
<body>
<div class="sidebar">
<div class="brand">TaskNote</div>
<div class="nav-links">
<button class="nav-item active" data-target="tasks-view">Tasks</button>
<button class="nav-item" data-target="notes-view">Notes</button>
<button class="nav-item" data-target="settings-view">Settings</button>
</div>
<div style="flex-grow: 1;"></div>
<div class="sidebar-footer">
<div class="credits">
<p>Created by <span class="dev-name">Rasindu Gimhan</span></p>
<div class="credit-links">
<a href="#" class="credit-link github-link" data-url="https://github.com/rasindugimhan">GitHub</a>
<a href="#" class="credit-link telegram-link" data-url="https://t.me/rasindugimhan">Telegram</a>
</div>
</div>
<button id="open-widget-btn" class="action-btn">Open Sticky Widget</button>
</div>
</div>
<div class="main-content">
<!-- Tasks View -->
<div id="tasks-view" class="view active">
<div class="header-row">
<h2>Tasks</h2>
<div>
<select id="group-tasks" style="margin-right: 10px;">
<option value="none">No Grouping</option>
<option value="date">Group by Date</option>
<option value="status">Group by Status</option>
<option value="category">Group by Category</option>
</select>
<select id="sort-tasks">
<option value="expire">Sort by Expiring Date</option>
<option value="time">Sort by Time Added</option>
<option value="alpha">Sort by A-Z</option>
</select>
<button id="add-task-btn" class="btn-primary" style="margin-left:10px;">+ New Task</button>
</div>
</div>
<!-- Task list -->
<ul id="task-list" class="task-list"></ul>
</div>
<!-- Notes View -->
<div id="notes-view" class="view">
<div class="header-row">
<h2>Notes</h2>
<div>
<select id="sort-notes">
<option value="alpha">Sort by A-Z</option>
<option value="created">Sort by Date Created</option>
<option value="edited">Sort by Recently Edited</option>
</select>
<button id="add-note-btn" class="btn-primary" style="margin-left:10px;">+ New Note</button>
</div>
</div>
<div id="notes-grid" class="notes-grid"></div>
</div>
<!-- Note Editor View -->
<div id="note-editor" class="view" style="display: none;">
<div class="header-row">
<button id="back-to-notes" class="btn-secondary">← Back to Notes</button>
<button id="del-note" class="btn-danger">Delete Note</button>
</div>
<input type="text" id="note-editor-title" placeholder="Note Title...">
<div class="format-toolbar">
<button type="button" class="format-btn" data-cmd="bold"><b>B</b></button>
<button type="button" class="format-btn" data-cmd="italic" style="font-style:italic; font-family:serif;">I</button>
<button type="button" class="format-btn" data-cmd="underline"><u>U</u></button>
<button type="button" class="format-btn" data-cmd="strikeThrough" style="text-decoration:line-through;">ab</button>
<button type="button" class="format-btn" data-cmd="insertUnorderedList">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>
</button>
<button type="button" class="format-btn" id="format-image-btn">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>
</button>
<input type="file" id="format-image-input" accept="image/*" style="display:none;">
</div>
<div id="note-editor-body" contenteditable="true" placeholder="Write your note here..."></div>
</div>
<!-- Settings View -->
<div id="settings-view" class="view">
<div class="header-row">
<h2>Settings</h2>
</div>
<div class="settings-card">
<div class="setting-row">
<span>Theme</span>
<select id="setting-theme">
<option value="system">System</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</div>
<div class="setting-row">
<span>Auto Start on PC Boot</span>
<input type="checkbox" id="setting-autolaunch">
</div>
</div>
<div class="settings-card" style="margin-top: 20px;">
<h3>Manage Task Groups</h3>
<div class="setting-row" style="flex-direction: column; align-items: flex-start; gap: 10px;">
<div style="display: flex; gap: 10px; width: 100%;">
<input type="text" id="new-category-name" placeholder="New Group Name..." style="flex-grow: 1; padding: 8px; border-radius: 4px; border: 1px solid var(--border-color); background: var(--body-bg); color: var(--text-color);">
<button id="add-category-btn" class="btn-primary">Add Group</button>
</div>
<ul id="category-list" style="width: 100%; list-style: none; margin-top: 10px; max-height: 200px; overflow-y: auto;"></ul>
</div>
</div>
<div class="settings-card developer-card">
<h3>Developer & Support</h3>
<p>If you enjoy using TaskNote or have any suggestions, feel free to reach out!</p>
<div class="dev-links">
<div class="dev-link-item github-link" data-url="https://github.com/rasindugimhan">
<span class="link-label">GitHub:</span>
<span class="link-value">@rasindugimhan</span>
</div>
<div class="dev-link-item telegram-link" data-url="https://t.me/rasindugimhan">
<span class="link-label">Telegram:</span>
<span class="link-value">@rasindugimhan</span>
</div>
</div>
</div>
</div>
</div>
<script src="dashboard.js"></script>
</body>
</html>