forked from zackthoutt/vue-trello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzello.html
226 lines (208 loc) · 8.68 KB
/
zello.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!doctype html>
<html lang="en">
<head>
<link rel="apple-touch-icon" sizes="72x72" href="public/images/logo.png">
<link rel="apple-touch-icon" sizes="114x114" href="public/images/logo.png">
<link rel="apple-touch-icon" sizes="144x144" href="public/images/logo.png">
<link rel="shortcut icon" type="image/png" href="public/images/logo.png">
<title>Zello</title>
<meta name="author" content="Zack Thoutt">
<meta charset="UTF-8">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:600' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="public/css/trello.css">
</head>
<template id="trello-board">
<div class="Background Background-blue">
<div class="Background_spacer"></div>
<div class="Board">
<div
class="Overlay"
v-on:click.self="showTaskModule = !showTaskModule"
v-show="showTaskModule"
>
<div class="TaskModule">
<div class="TaskModule_exit">
<svg
class="Cancel"
v-on:click="showTaskModule = !showTaskModule"
>
<line x1="0" y1="0" x2="15" y2="15"/>
<line x1="0" y1="15" x2="15" y2="0"/>
</svg>
</div>
<input
class="Input TaskModule_title"
v-model="selectedTask.title"
type="text"
></input>
<h5 class="TaskModule_list">in list <strong>{{ selectedListTitle }}</strong></h5>
<h6 class="TaskModule_descriptionTitle">Description</h6>
<p
class="TaskModule_description"
v-if="selectedTask.description.length > 0"
v-show="!editTaskDescription"
v-on:click="editTaskDescription = !editTaskDescription"
>
{{ selectedTask.description }}
</p>
<p
class="TaskModule_description"
v-else
v-on:click="editTaskDescription = !editTaskDescription"
v-show="!editTaskDescription"
>
Add a description...
</p>
<textarea
class="TextArea"
v-model="inProgressTaskDescription"
v-show="editTaskDescription"
type="text"
v-focus="editTaskDescription"
v-on:keyup.enter.prevent="saveNewTaskDescription"
></textarea>
<div
class="TaskModule_options"
v-show="editTaskDescription"
>
<button
class="Button"
v-on:click="saveNewTaskDescription"
>
Save
</button>
<svg
class="Cancel"
v-on:click="editTaskDescription = !editTaskDescription"
>
<line x1="0" y1="0" x2="15" y2="15"/>
<line x1="0" y1="15" x2="15" y2="0"/>
</svg>
</div>
</div>
</div>
<div class="Board_info">
<input class="Board_title" v-model="name"></input>
</div>
<div class="ListContainer">
<div class="List" v-for="(list_id, list) in lists" id="{{ list_id }}" data-drag-type="list"
v-drag-and-drop
drag-start="pickupList"
drag-enter="changeListTarget"
drop="placeListInTarget"
drag-type="list"
>
<input class="Input" v-model="list.title"></input>
<div class="List_tasks">
<div class="Task" v-for="(task_id, task) in list.tasks" track-by=$index id="{{ list_id }}-{{ task_id }}" data-drag-type="task"
v-drag-and-drop
drag-start="pickupTask"
drag-enter="changeTaskTarget"
drag-end="placeTaskInTarget"
drag-type="task"
v-on:click="editTask(list_id, task_id)"
v-show="!task.placeholder"
>
<h3 class="Task_title">{{task.title}}</h3>
</div>
</div>
<h5
class="List_addTask"
v-show="!list.addTask"
v-on:click.stop.prevent="list.addTask = !list.addTask"
>
Add a card...
</h5>
<textarea class="TextArea" v-model="list.newItem" type="text" v-on:keyup.enter.prevent="addTask(list_id)" v-show="list.addTask" v-el:new-task v-focus="list.addTask"></textarea>
<div v-show="list.addTask" class="List_newTaskOptions">
<button class="Button" v-on:click="addTask(list_id)">Add</button>
<svg class="Cancel" v-on:click="cancelNewTask(list_id)">
<line x1="0" y1="0" x2="15" y2="15"/>
<line x1="0" y1="15" x2="15" y2="0"/>
</svg>
</div>
</div>
<div class="CreateList" v-bind:class="{ 'CreateList-active': newList }">
<h3 class="CreateList_title" v-show="!newList" v-on:click="newList = !newList">Add a list...</h3>
<input class="CreateList_input" v-model="newListTitle" type="text" placeholder="Add a list..." v-on:keyup.enter="addList" v-focus="newList" v-show="newList"></input>
<div class="CreateList_options" v-show="newList">
<button class="Button" v-on:click="addList">Save</button>
<svg class="Cancel" v-on:click="cancelNewList">
<line x1="0" y1="0" x2="15" y2="15"/>
<line x1="0" y1="15" x2="15" y2="0"/>
</svg>
</div>
</div>
</div>
</div>
</div>
</template>
<template id="trello-board-collection">
<div class="Background Background-white">
<div class="Background_spacer"></div>
<hr class="pad20">
<div class="Background_container">
<h1 class="Background_title">My Starred</h1>
<div class="Collection">
<div class="Collection_item" v-for="(board_id, board) in boards | starred" v-link="{ path: '/board/' + board_id }">
<h1 class="Collection_title">{{ board.name }}</h1>
<svg version="1.1" class="Star" x="0px" y="0px"
viewBox="0 0 297 297" v-on:click.stop="updateBoardStarred(board_id)">
<path d="M296.519,114.329c-1.142-3.512-4.15-6.088-7.795-6.674l-89.94-14.441l-41.528-81.074c-1.684-3.287-5.064-5.352-8.755-5.352
c-3.691,0-7.071,2.064-8.755,5.352L98.217,93.214l-89.94,14.441c-3.645,0.586-6.653,3.162-7.795,6.674
c-1.141,3.51-0.22,7.363,2.385,9.979l64.272,64.55l-14.056,90.001c-0.569,3.648,0.95,7.306,3.937,9.476
c2.986,2.17,6.937,2.485,10.229,0.816l81.252-41.18l81.252,41.18c1.405,0.713,2.929,1.063,4.446,1.063
c2.04,0,4.069-0.635,5.782-1.879c2.986-2.17,4.506-5.827,3.937-9.476l-14.056-89.999l64.273-64.552
C296.739,121.692,297.659,117.839,296.519,114.329z M212.404,178.509c-2.211,2.221-3.232,5.362-2.748,8.459l11.862,75.954
l-68.571-34.753c-2.795-1.416-6.098-1.416-8.893,0l-68.571,34.753l11.862-75.956c0.484-3.097-0.537-6.238-2.748-8.459l-54.24-54.474
l75.902-12.188c3.095-0.497,5.767-2.438,7.195-5.228L148.5,38.198l35.046,68.421c1.429,2.79,4.101,4.731,7.195,5.228l75.902,12.188
L212.404,178.509z"/>
</svg>
</div>
</div>
<h1 class="Background_title">My Boards</h1>
<div class="Collection">
<div class="Collection_item" v-for="(board_id, board) in boards" v-link="{ path: '/board/' + board_id }">
<h1 class="Collection_title">{{ board.name }}</h1>
<svg version="1.1" class="Star" x="0px" y="0px"
viewBox="0 0 297 297" v-on:click.stop="updateBoardStarred(board_id)">
<path d="M296.519,114.329c-1.142-3.512-4.15-6.088-7.795-6.674l-89.94-14.441l-41.528-81.074c-1.684-3.287-5.064-5.352-8.755-5.352
c-3.691,0-7.071,2.064-8.755,5.352L98.217,93.214l-89.94,14.441c-3.645,0.586-6.653,3.162-7.795,6.674
c-1.141,3.51-0.22,7.363,2.385,9.979l64.272,64.55l-14.056,90.001c-0.569,3.648,0.95,7.306,3.937,9.476
c2.986,2.17,6.937,2.485,10.229,0.816l81.252-41.18l81.252,41.18c1.405,0.713,2.929,1.063,4.446,1.063
c2.04,0,4.069-0.635,5.782-1.879c2.986-2.17,4.506-5.827,3.937-9.476l-14.056-89.999l64.273-64.552
C296.739,121.692,297.659,117.839,296.519,114.329z M212.404,178.509c-2.211,2.221-3.232,5.362-2.748,8.459l11.862,75.954
l-68.571-34.753c-2.795-1.416-6.098-1.416-8.893,0l-68.571,34.753l11.862-75.956c0.484-3.097-0.537-6.238-2.748-8.459l-54.24-54.474
l75.902-12.188c3.095-0.497,5.767-2.438,7.195-5.228L148.5,38.198l35.046,68.421c1.429,2.79,4.101,4.731,7.195,5.228l75.902,12.188
L212.404,178.509z"/>
</svg>
</div>
<div class="Collection_newItem" v-bind:class="{ 'Collection_newItem-active': newBoard }" v-on:click="activateNewBoard()">
<h1 class="Collection_title" v-show="!newBoard">Create a board...</h1>
<input class="Collection_addBoard" v-model="newBoardTitle" v-on:keyup.enter.prevent="createNewBoard()" placeholder="Create a board..." v-show="newBoard" v-focus="newBoard"></input>
<div class="Collection_options" v-show="newBoard">
<button class="Button" v-on:click.stop="createNewBoard()">Save</button>
<svg class="Cancel" v-on:click.stop="newBoard = !newBoard">
<line x1="0" y1="0" x2="15" y2="15"/>
<line x1="0" y1="15" x2="15" y2="0"/>
</svg>
</div>
</div>
</div>
</div>
</div>
</template>
<body>
<div id="trello-app">
<nav class="Nav">
<div class="Nav_boards Nav_button" v-link="{ path: '/' }">
Boards
</div>
<img class="Nav_logo" src="public/images/logo-title-inverse.svg">
<div class="Nav_user Nav_button">Zack</div>
</nav>
<router-view></router-view>
</div>
<script type="text/javascript" src="public/js/zello.js"></script>
</body>
</html>