-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.lisp
64 lines (61 loc) · 2.71 KB
/
index.lisp
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
;;;; index.lisp
(in-package #:todolist)
(defun version ()
"Get version of this project"
(slot-value (asdf:find-system 'todolist) 'asdf:version))
(defun index-page ()
"Generate index page html"
(spinneret:with-html-string
(:doctype)
(:html
(:head
(:title "todolist")
(:link :rel "stylesheet" :href "./static/style.css")
(:link :rel "stylesheet" :href "./static/libs/jquery-ui.css")
(:link :rel "stylesheet" :href "./static/libs/liner-bar.css")
(:link :rel "stylesheet" :href "./static/libs/quill.snow.min.css")
(:link :rel "icon" :type "image/x-icon" :href "./static/images/favicon.ico")
(:script :src "./static/libs/jquery.min.js")
(:script :src "./static/libs/jquery-ui.min.js")
(:script :src "./static/libs/quill.min.js")
(:script :src "./static/libs/liner-bar.js"))
(:body
(:div :class "todolist-wrapper"
(:div :class "todolist-header"
(:div :class "todolist-logo"
(:a :href "https://github.com/KikyTokamuro/todolist-cl" :target "_blank"
(:span :class "todolist-logo-text" "todolist-cl")
(version)))
(:div :class "todolist-tools"
(:a :id "generate-csv" :href "/api/generate/csv"
(:img :src "./static/images/csv.svg"))
(:div :id "statistics"
(:img :src "./static/images/stats.svg"))))
(:div :class "todolist-groups-wrapper"
(:div :class "todolist-group-button" :group "all"
(:span "all")))
(:div :class "todolist-search-wrapper"
(:input :type "text" :id "search-input" :placeholder "Insert search filter"))
(:div :class "todolist-body"
(dolist (status (mito:retrieve-dao 'statuses))
(:div :class "todolist-column"
(:div :class "todolist-column-title" (statuses-name status))
(:div :class "column todolist-column-body" :status (mito:object-id status)))))
(:div :class "todolist-create-button"
(:img :src "./static/images/pencil.svg")))
(:div :class "todolist-create-task-modal" :style "display:none" :title "New task"
(:div :class "todolist-task-editor")
(:div :class "todolist-input-wrapper"
(:input :type "text" :id "task-group" :placeholder "Insert task group")
(:div :class "send-task-button"
(:img :src "./static/images/send.svg")
"Create")))
(:div :class "todolist-edit-task-modal" :style "display:none" :title "Edit task"
(:div :class "todolist-task-editor")
(:div :class "edit-task-button"
(:img :src "./static/images/save.svg")
"Save changes"))
(:div :class "todolist-statistics-modal" :style "display:none" :title "Statistics")
(:div :class "todolist-error-modal" :style "display:none" :title "Error"
(:div :class "todolist-error-text"))
(:script :type "module" :src "./static/app.js")))))