Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd430d3405 | ||
|
|
0ce4171d33 | ||
|
|
7df5679c0c | ||
|
|
1616dd1b74 | ||
|
|
081c1fdf83 | ||
|
|
9444624f19 | ||
|
|
abd1d322f2 | ||
|
|
d19083bb89 | ||
|
|
7ddaa12520 | ||
|
|
3b8c76a32e | ||
|
|
7f4401f3a2 | ||
|
|
188341cf50 | ||
|
|
af119ff7c0 | ||
|
|
7b04f14e3c | ||
|
|
a14f4ffee2 | ||
|
|
2d7d9b5d9f | ||
|
|
ecb8c88233 | ||
|
|
91e738bd32 | ||
|
|
ec0bbe9e14 | ||
|
|
6e25ef73b0 | ||
|
|
d2ce41694f | ||
|
|
b2c9d47b0f | ||
|
|
52aa22f36a | ||
|
|
bc6217854a | ||
|
|
d79bb1a81c | ||
|
|
fb220fe918 | ||
|
|
89ccef84be | ||
|
|
6622dbb56b | ||
|
|
7963171058 | ||
|
|
ee2a43dd5b | ||
|
|
690a5b9703 | ||
|
|
f33be3e243 | ||
|
|
4eaf92d17e | ||
|
|
1baa4b2fa4 | ||
|
|
6210c00f95 | ||
|
|
8b6a2eade3 | ||
|
|
f7ef629dba | ||
|
|
0f0a93cabf | ||
|
|
e5193870fc | ||
|
|
428465d361 | ||
|
|
37b2771a9d | ||
|
|
ccb14beb83 | ||
|
|
17bb464107 | ||
|
|
cd4062c9f1 | ||
|
|
22158b4941 | ||
|
|
bdf252b6e2 | ||
|
|
2347fbae17 | ||
|
|
9e3e63f494 | ||
|
|
ba2d9b89dc | ||
|
|
62d000cd67 | ||
|
|
0c15048bdd | ||
|
|
74877fd10d | ||
|
|
c3e67510c8 | ||
|
|
4fad48e7ac | ||
|
|
0f567a8e9c | ||
|
|
0d976aaf0f | ||
|
|
f115e33f66 | ||
|
|
6e8a84eaa7 | ||
|
|
eb9d417a27 | ||
|
|
8dd6255ebf | ||
|
|
7a943f99e3 | ||
|
|
415fafe7f6 | ||
|
|
462b8023eb | ||
|
|
8f2bebeeef | ||
|
|
e08f9686d8 | ||
|
|
bd127af916 | ||
|
|
d235a00b11 | ||
|
|
8dc9856ed8 | ||
|
|
ca1da1adc2 | ||
|
|
4c0b262c7b | ||
|
|
4ac9048d80 | ||
|
|
fb83a5164d | ||
|
|
a05292bd91 | ||
|
|
f4e0d92296 | ||
|
|
9e0142b885 | ||
|
|
5f30c6ecca | ||
|
|
7214e4bb2f | ||
|
|
fd7a140429 | ||
|
|
07954c0f6d | ||
|
|
a282a38ecd | ||
|
|
1f830cc5e3 | ||
|
|
96b560eb00 | ||
|
|
6ce5ea9ca5 | ||
|
|
9ed730284d | ||
|
|
10427a9beb | ||
|
|
ddcdcb6e08 | ||
|
|
7afea1809f | ||
|
|
1790b99fe0 | ||
|
|
d5d661b131 | ||
|
|
8a28e988e9 | ||
|
|
d1d8e0b935 | ||
|
|
84d60b5908 | ||
|
|
245d262705 | ||
|
|
c686cadfef | ||
|
|
26405c011f | ||
|
|
ba9e163dd5 | ||
|
|
7c403053e3 | ||
|
|
c52233cacf | ||
|
|
d6a5cb534d | ||
|
|
e2f768c6a0 | ||
|
|
4c5eda0ae5 | ||
|
|
670cc99b8f | ||
|
|
847843e51d | ||
|
|
9261371c51 | ||
|
|
233554a3d6 | ||
|
|
fa281e3f5f | ||
|
|
fcf7c02c69 | ||
|
|
3a391d5539 | ||
|
|
22e369804b | ||
|
|
3dc326db6a | ||
|
|
b3eab212ae | ||
|
|
6d9d183674 | ||
|
|
54036fd7a3 | ||
|
|
c72792e4ed | ||
|
|
c3e2ee1db8 | ||
|
|
5d8462ca11 | ||
|
|
7e4b42e9b3 | ||
|
|
c609096700 | ||
|
|
79fa5f89f3 | ||
|
|
f224934ae0 | ||
|
|
c31d7455f7 | ||
|
|
596dd87862 | ||
|
|
c048ce89f1 | ||
|
|
44559b52a6 | ||
|
|
162b15c0cd | ||
|
|
3756b7b0fc | ||
|
|
332f12ce28 | ||
|
|
d31d5fd47a | ||
|
|
83efd5b872 | ||
|
|
c2fd03e113 | ||
|
|
dffe3d5ade | ||
|
|
d7cefc0042 | ||
|
|
33b7622897 | ||
|
|
eb8083097f | ||
|
|
80c0c80a6a | ||
|
|
e28f3692ca | ||
|
|
6bcc1cfc62 | ||
|
|
990003ee0f | ||
|
|
60929fb200 | ||
|
|
45c78a05e2 | ||
|
|
cf045e3c34 | ||
|
|
6575312e74 | ||
|
|
ee22364354 | ||
|
|
a64dbc4a9b | ||
|
|
ebff813f99 | ||
|
|
674d45a81c | ||
|
|
b03c9b9879 | ||
|
|
7f8f6bf3db | ||
|
|
4ffe9438e0 | ||
|
|
fbf97d31a0 | ||
|
|
0c5d6c2ade | ||
|
|
00737fa015 | ||
|
|
0c9343ad88 | ||
|
|
f31d007177 | ||
|
|
932a273ba0 | ||
|
|
9ea35b7188 | ||
|
|
d76387aed2 | ||
|
|
77a4341621 | ||
|
|
e162fe3c0f | ||
|
|
f3e7646cfa | ||
|
|
552fa32b87 | ||
|
|
8a4f5ed6e3 | ||
|
|
c8cef7551f | ||
|
|
9c46c6c962 | ||
|
|
01818a99b9 | ||
|
|
70fb1c4650 | ||
|
|
5c743f12a1 | ||
|
|
5b9e8cce14 | ||
|
|
06afa1ae35 | ||
|
|
a84db59898 | ||
|
|
9441fb29c9 | ||
|
|
7dae37eeac | ||
|
|
90fd3286a8 | ||
|
|
996fdc2bda | ||
|
|
6dba4ccd4d | ||
|
|
b592e8ad14 | ||
|
|
d38071457c | ||
|
|
eec3c301bc | ||
|
|
dfd0b21947 | ||
|
|
6d93e9ffb0 | ||
|
|
99be745f02 | ||
|
|
62e43c0832 | ||
|
|
eceaac7998 | ||
|
|
c01335ee29 | ||
|
|
9353d785ea | ||
|
|
0ea96fca3f | ||
|
|
75c5eeb046 | ||
|
|
9f30eeae61 | ||
|
|
6fc992e6d7 | ||
|
|
622292e40e | ||
|
|
22e43e6591 | ||
|
|
13d8e75c05 | ||
|
|
8ae9cb97f7 | ||
|
|
b4c3e02b75 | ||
|
|
ffb8b72b69 | ||
|
|
309c1d08ff | ||
|
|
ce4f158976 | ||
|
|
5a37ba0d9f | ||
|
|
59f4daf91e | ||
|
|
fa1d8cd5ef | ||
|
|
e3b7f85cc3 | ||
|
|
3bead1bf78 | ||
|
|
1f6545e411 | ||
|
|
29d54f46aa | ||
|
|
2d12a4f404 | ||
|
|
ba3c3f8289 | ||
|
|
6eef4043ca | ||
|
|
999cdb2bb9 | ||
|
|
cc5435c780 | ||
|
|
e015e4245e | ||
|
|
c17f26f6ba | ||
|
|
fdd1aad80d | ||
|
|
8bf3f300ad | ||
|
|
99455b2728 | ||
|
|
1a232c7bbb | ||
|
|
d3d73e9cdd | ||
|
|
0c34cb97a7 | ||
|
|
0df3e7a3c0 | ||
|
|
29a08e5568 | ||
|
|
09808840cd | ||
|
|
c5e36d9160 | ||
|
|
aa1646ad45 | ||
|
|
c2173e073e | ||
|
|
81d00a9471 | ||
|
|
e8cfed1f7b | ||
|
|
28c78fdfef | ||
|
|
d48043c7ee | ||
|
|
dd1a8ade5e | ||
|
|
d9705a0ec4 | ||
|
|
58fbe8e6f2 | ||
|
|
5c1ace7293 | ||
|
|
0321d9770c | ||
|
|
6a2b6ef3c0 | ||
|
|
01507576b1 | ||
|
|
94a6d9ae2f | ||
|
|
64fe808a4a | ||
|
|
a493c314db | ||
|
|
d1670ee4c1 | ||
|
|
2edced5467 | ||
|
|
509b640588 | ||
|
|
624c5aa9b2 | ||
|
|
c5540ddcbd | ||
|
|
b105f0e2e7 | ||
|
|
99703035d7 | ||
|
|
b92cde23aa | ||
|
|
21f76bcacc | ||
|
|
0d7c1501ce | ||
|
|
97a23011da | ||
|
|
93d8a3f88a | ||
|
|
624719974e | ||
|
|
c290d63048 | ||
|
|
b55756216e | ||
|
|
77d23df87f | ||
|
|
3ab33ed826 | ||
|
|
8f1f7a1d56 | ||
|
|
4eccfb6c25 | ||
|
|
a5daf5dc29 | ||
|
|
6a89914873 | ||
|
|
5532a0071a | ||
|
|
46d7a33575 | ||
|
|
2f0609db64 | ||
|
|
f16687fa94 | ||
|
|
dc82582391 | ||
|
|
ff7b001b00 | ||
|
|
33cea11393 | ||
|
|
10cb2db94f | ||
|
|
c346743234 | ||
|
|
6ba1fc5ba1 | ||
|
|
de2acaec68 | ||
|
|
fb060ed2c5 | ||
|
|
c84187bdad | ||
|
|
ad607c1291 | ||
|
|
b9be17360f | ||
|
|
23ff08382a | ||
|
|
b34c62bbc7 | ||
|
|
e85d6d6c5e | ||
|
|
8daa5b4848 | ||
|
|
273784b9e4 | ||
|
|
f77da76c68 | ||
|
|
214fe6a61f | ||
|
|
38d1a424d0 | ||
|
|
e4c08f6933 | ||
|
|
3bee5ad7fe | ||
|
|
296520f9ac | ||
|
|
c865bfe497 | ||
|
|
089dbf0cf6 | ||
|
|
527c430307 | ||
|
|
de4ae2dc74 | ||
|
|
bab02bf8fa | ||
|
|
23a9ba0ef6 | ||
|
|
c3804dc0fa | ||
|
|
08bab70dbe | ||
|
|
ed4c749cea | ||
|
|
d6ef4a8266 | ||
|
|
1d3e2ffadd | ||
|
|
0074317bd3 | ||
|
|
26aa9a4ac4 | ||
|
|
e587964e82 | ||
|
|
61dce8e65d | ||
|
|
c18ded23a3 | ||
|
|
ff5e88fca3 | ||
|
|
8df9e681ed | ||
|
|
443c3a7ac6 | ||
|
|
c8cbb7697d | ||
|
|
d213d37dab | ||
|
|
a003161fa7 | ||
|
|
51fd053119 | ||
|
|
740c705748 | ||
|
|
a1d0672739 | ||
|
|
7d3fed56ae | ||
|
|
a0cccb736c | ||
|
|
6ec14ee52b | ||
|
|
4b995e88ba | ||
|
|
2ae0dc315f | ||
|
|
a88ac6113e | ||
|
|
42ca385a36 | ||
|
|
e6a866cb9e | ||
|
|
8680d7727b | ||
|
|
d8169138e5 | ||
|
|
6bb2302f81 | ||
|
|
90d904e10d | ||
|
|
9e075fb2da | ||
|
|
222c071925 | ||
|
|
0e3620c776 | ||
|
|
de1ca1d12a | ||
|
|
196f959f1d | ||
|
|
a918d36533 | ||
|
|
e03f2102de | ||
|
|
4a20208d95 | ||
|
|
0e43a5561b | ||
|
|
c9c650664f | ||
|
|
aa1876f94c | ||
|
|
109cd08151 | ||
|
|
9940d635b4 | ||
|
|
dcd4a2f1e3 | ||
|
|
75f15f1be2 | ||
|
|
bbe37cfad8 | ||
|
|
f883757552 | ||
|
|
eb945f26a3 | ||
|
|
a62c8eb5a0 | ||
|
|
f0b7f34928 | ||
|
|
c4fd729b34 | ||
|
|
ee94735922 | ||
|
|
deef0855d5 | ||
|
|
61ee107c27 | ||
|
|
fb79c8786a | ||
|
|
b503ba1144 | ||
|
|
860ae6f38d | ||
|
|
415343bbd0 | ||
|
|
1dd66fdac2 | ||
|
|
d4d20d2a43 | ||
|
|
f7a1c4896b | ||
|
|
cb4a679050 | ||
|
|
6addc3c217 | ||
|
|
d0d2406186 | ||
|
|
2c8876aa2e | ||
|
|
d974311d9b | ||
|
|
802dc94363 | ||
|
|
3fa969eb26 | ||
|
|
c3cccfc66e | ||
|
|
28eca2a11f | ||
|
|
6e5d9f9bb6 | ||
|
|
57d6180a7a | ||
|
|
5f697eac05 | ||
|
|
e97c2c7bf0 | ||
|
|
20ba743f9b | ||
|
|
6921452a7d | ||
|
|
43a58c92ac | ||
|
|
b8ddef1a23 | ||
|
|
fdf25a274f | ||
|
|
0bbfa632f7 | ||
|
|
f98d640e1e | ||
|
|
fcdc1637fc | ||
|
|
cf8e1da383 | ||
|
|
eb55b978aa | ||
|
|
a410dc50bb | ||
|
|
2f69e65dc0 | ||
|
|
5ef24437a3 | ||
|
|
7a6babe878 | ||
|
|
f9245727a6 | ||
|
|
9bfdc1932f | ||
|
|
59a76ed144 | ||
|
|
68897a77dc | ||
|
|
b7c7b93640 | ||
|
|
1442fd637a | ||
|
|
f2ca520a69 | ||
|
|
f3f845dde8 | ||
|
|
a9ca17426b | ||
|
|
3bb8431827 | ||
|
|
fb8330353c | ||
|
|
1ee11e1cfd | ||
|
|
ce98c86fb3 | ||
|
|
95c11415e2 | ||
|
|
5aa3b405fa | ||
|
|
3a1859eb31 | ||
|
|
a38b4c6a83 | ||
|
|
7c16e07f7d | ||
|
|
5d12423b9d | ||
|
|
a3d4a94890 | ||
|
|
eb9b809175 | ||
|
|
17cf8ded07 | ||
|
|
181af6f250 | ||
|
|
2e845a5134 | ||
|
|
255df20da0 | ||
|
|
bc4ea6fd9a | ||
|
|
6ff0cf91e2 | ||
|
|
d4537af3b4 | ||
|
|
e3d2d6b292 | ||
|
|
e041f55254 | ||
|
|
ba9f4fa7b7 | ||
|
|
01bbc089da | ||
|
|
491a352792 | ||
|
|
8d37a0418a | ||
|
|
1048718f0b | ||
|
|
4ad4c6ea22 | ||
|
|
ad09630d4e | ||
|
|
a579125a1f | ||
|
|
ee938c0423 | ||
|
|
5bc95511e5 | ||
|
|
f566022aa4 | ||
|
|
ddc21046b9 | ||
|
|
51206cb108 | ||
|
|
200d49d369 | ||
|
|
55023171af | ||
|
|
decb31ffa4 | ||
|
|
ecb4863c39 | ||
|
|
31c7ada591 | ||
|
|
b4ec609fe0 | ||
|
|
d55c952289 | ||
|
|
afc002d81a | ||
|
|
06644d9c71 | ||
|
|
a4dfdd4fd1 | ||
|
|
e21b3e6bb2 | ||
|
|
777b65b1f7 | ||
|
|
80a13be3e2 | ||
|
|
27340ec8f7 | ||
|
|
84d40bd3e3 | ||
|
|
fe5ea60847 | ||
|
|
4d4c127b99 | ||
|
|
c99a950979 | ||
|
|
a2d7e2cb74 | ||
|
|
1b40c42cab | ||
|
|
2740f8c31e | ||
|
|
7d52a29620 | ||
|
|
93f08eb9c7 | ||
|
|
1cc104e07e | ||
|
|
36b642be09 | ||
|
|
0554d576d5 | ||
|
|
f1488436b8 | ||
|
|
5665c755cb | ||
|
|
061d91ae7c | ||
|
|
a96ece2c11 | ||
|
|
1e7e9d2715 | ||
|
|
783dfc7495 | ||
|
|
c31f2d6a6c | ||
|
|
41bb5d51ab | ||
|
|
f3467dab4a | ||
|
|
4586be46f7 | ||
|
|
1f5d806a65 | ||
|
|
723d9b4eae | ||
|
|
719c5404f3 | ||
|
|
cb4f3ce52c | ||
|
|
2bd971a9b1 | ||
|
|
7a0467c8c5 | ||
|
|
6f5bbaf871 | ||
|
|
6a10257fd7 | ||
|
|
57219df16a | ||
|
|
06fdfd98b0 | ||
|
|
6a7d7d04b1 | ||
|
|
6b99d28768 | ||
|
|
6d90c03225 | ||
|
|
800b8bb6bd | ||
|
|
8ad704ca0a | ||
|
|
dca36b59a2 | ||
|
|
e407eb9a8b | ||
|
|
3085230b13 | ||
|
|
d7c8f5242f | ||
|
|
417bce5a01 | ||
|
|
c0f67eb99b | ||
|
|
7e0bcacf91 | ||
|
|
d85dc181d6 | ||
|
|
7984890cab | ||
|
|
a9d4538d53 | ||
|
|
bda15daa78 | ||
|
|
f521b7949a | ||
|
|
f9f529e53f | ||
|
|
979a2025ef | ||
|
|
b24212d70a | ||
|
|
a56e0b6d4a | ||
|
|
7c9b194bb6 | ||
|
|
28cce312a8 | ||
|
|
1a5fe93500 | ||
|
|
5d24d3de2a | ||
|
|
66da6362c8 | ||
|
|
b0487e4dbc | ||
|
|
2b9bc5d046 | ||
|
|
01928bfe5a | ||
|
|
0b0ceb4c0e | ||
|
|
5c1662a7c1 | ||
|
|
96c79f78cc | ||
|
|
82d553721c | ||
|
|
fe2163a546 | ||
|
|
7b4970a8d9 | ||
|
|
74f5628622 | ||
|
|
1eaada0feb | ||
|
|
d2b1a837e6 | ||
|
|
f34ef01de9 | ||
|
|
567aa89bd2 | ||
|
|
4fdcc144d5 | ||
|
|
dc547c38d1 | ||
|
|
048f7e0566 | ||
|
|
0e33c44831 | ||
|
|
b0657ae5f5 | ||
|
|
f96a6b2286 | ||
|
|
d2d0ef2889 | ||
|
|
c02988c515 | ||
|
|
b5836ab0ff | ||
|
|
698e773e3a | ||
|
|
604146b294 | ||
|
|
e48198353f | ||
|
|
12ec92a0b5 | ||
|
|
25ce99958c | ||
|
|
3140067330 | ||
|
|
b0dea10a38 | ||
|
|
2267dd0fd7 | ||
|
|
57f9c1df69 | ||
|
|
f3f15f83b0 | ||
|
|
aed3e64972 | ||
|
|
e2ee005a5f | ||
|
|
bea876efd8 | ||
|
|
0b72eeaf9d | ||
|
|
81e0d4e382 | ||
|
|
52619ef622 | ||
|
|
6357d2fa8b | ||
|
|
67f5a1326b | ||
|
|
8bd71a4cc1 | ||
|
|
3d4a7512f1 | ||
|
|
2302453b36 | ||
|
|
753cc2e1e2 | ||
|
|
7f8a334e12 | ||
|
|
9513053816 | ||
|
|
4ab2c0d815 | ||
|
|
e1176f1e30 | ||
|
|
069ca6df5e | ||
|
|
6e4a082411 | ||
|
|
992f9b70fe | ||
|
|
55cbf7d4de | ||
|
|
769bab6582 | ||
|
|
6b5a610d01 | ||
|
|
04fb2ae52c | ||
|
|
2778c336bf | ||
|
|
eb83a9fb62 | ||
|
|
f6a70a28cb | ||
|
|
a21892b84f | ||
|
|
246f1dd3ac | ||
|
|
710eb75f3e | ||
|
|
afa5ec360f | ||
|
|
c649c87d16 | ||
|
|
c26317eddf | ||
|
|
510708d0e1 | ||
|
|
19a71c0d92 | ||
|
|
6fe4f00c44 | ||
|
|
2d595da6a6 | ||
|
|
8f075ec1a2 | ||
|
|
1aea465a23 | ||
|
|
b25436e1bf | ||
|
|
f89c37c1fd | ||
|
|
c7b53becf3 | ||
|
|
0e6cfdbb2a | ||
|
|
0d5e829c56 | ||
|
|
e66c99499f | ||
|
|
429e2f9992 | ||
|
|
bcd42ad958 | ||
|
|
24290b66a3 | ||
|
|
d31b4cd2d9 | ||
|
|
3f4c285551 | ||
|
|
cbcf10a02b | ||
|
|
cac82e4330 | ||
|
|
61b2c91ffe | ||
|
|
d461580749 | ||
|
|
b5197fa673 | ||
|
|
13d7378dc5 | ||
|
|
e9ad9b5be2 | ||
|
|
c5b83c04c1 | ||
|
|
2c94254ec3 | ||
|
|
4159aa0929 | ||
|
|
0e5a6a9e9e | ||
|
|
29f65be1e0 | ||
|
|
cbbdf8442d | ||
|
|
a26db7f3c8 | ||
|
|
99d6bd4415 | ||
|
|
9ccffe5342 | ||
|
|
6ec217a5e2 | ||
|
|
160205f139 | ||
|
|
afc30226ac | ||
|
|
e8a661e0ea | ||
|
|
2c1509686d | ||
|
|
95f1772280 | ||
|
|
3a99eb9c9f | ||
|
|
1e52523505 | ||
|
|
592d0d8e4e | ||
|
|
b0367491b9 | ||
|
|
f682de9690 | ||
|
|
5854805bdc | ||
|
|
e03c69ab8f | ||
|
|
1ba0f912f1 | ||
|
|
0fe247070a | ||
|
|
aca2692214 | ||
|
|
a538c14976 | ||
|
|
60495e4765 | ||
|
|
0f5dba14cb | ||
|
|
5c42394279 | ||
|
|
02a841b468 | ||
|
|
e7a58c764d | ||
|
|
c5381d30ed | ||
|
|
b94083e43f | ||
|
|
ef0c729b27 | ||
|
|
8937f18423 | ||
|
|
f2a8a5d910 | ||
|
|
2356ad8fec | ||
|
|
1f80f96735 | ||
|
|
974825bbcf | ||
|
|
6c9725a8c9 | ||
|
|
db9fc3cde1 | ||
|
|
06bcb7adaa | ||
|
|
7d4015e043 | ||
|
|
2c4daae051 | ||
|
|
01f907897a | ||
|
|
9787ab4d51 | ||
|
|
868587c409 | ||
|
|
741a7887bd | ||
|
|
aff4655134 | ||
|
|
9d74a76ca2 | ||
|
|
a8c578ac35 | ||
|
|
015d0fa12d | ||
|
|
cc7475573c | ||
|
|
3c0df2dd64 | ||
|
|
f0f27d1b95 | ||
|
|
5ef594a7d3 | ||
|
|
289eaf5ad2 | ||
|
|
d94848e4e1 | ||
|
|
865bb9063a | ||
|
|
8e3b287c41 | ||
|
|
793a62048b | ||
|
|
834ffc7811 | ||
|
|
594b908c26 | ||
|
|
6df910f2ea | ||
|
|
b0e67bc961 | ||
|
|
86e2744c24 | ||
|
|
e560a0bc9d | ||
|
|
728535a0e9 | ||
|
|
ba0b91f141 | ||
|
|
3e7517e29d | ||
|
|
8b6b065462 | ||
|
|
04577cfdf3 | ||
|
|
9ae03f3056 | ||
|
|
32d9c3d714 | ||
|
|
de98230db3 | ||
|
|
060f11758d | ||
|
|
974fca2171 | ||
|
|
b858b7d341 | ||
|
|
848d3e076e | ||
|
|
59b8d35386 | ||
|
|
70233865d7 | ||
|
|
37effd8324 | ||
|
|
82d289e899 | ||
|
|
732914c71f | ||
|
|
d934401379 | ||
|
|
d8cc8167de | ||
|
|
beb59414c7 | ||
|
|
e796f6d195 | ||
|
|
f2b4ccd043 | ||
|
|
3ed496cef6 | ||
|
|
aa459f0142 | ||
|
|
47a0fe1d03 | ||
|
|
c9c6682299 | ||
|
|
b61034048f | ||
|
|
ebb7d38a6a | ||
|
|
80d73b9910 | ||
|
|
b98411a441 | ||
|
|
2522398233 | ||
|
|
183142a8b4 | ||
|
|
9b9b208169 | ||
|
|
a9dde296bf | ||
|
|
cdddf42847 | ||
|
|
b08dccf7d4 | ||
|
|
9b64215b64 | ||
|
|
19ddf42859 | ||
|
|
83d14b910c | ||
|
|
b5c22e2a8a | ||
|
|
012ee672d3 | ||
|
|
ed22866231 | ||
|
|
d0d28749f1 | ||
|
|
f4b4c6d1ee | ||
|
|
9b5c283892 | ||
|
|
58b0be8211 | ||
|
|
fb1b61eda6 | ||
|
|
19cb92bd88 | ||
|
|
3d45c9610f | ||
|
|
76f6f8caa4 | ||
|
|
9481264283 | ||
|
|
54f3cf9429 | ||
|
|
9a6b4278d3 | ||
|
|
8ade0988eb | ||
|
|
c3505d13bd | ||
|
|
060278f9b8 | ||
|
|
a1c0401cb4 | ||
|
|
f0cc185a47 | ||
|
|
bee9bf2226 | ||
|
|
3b6c1baff3 | ||
|
|
89537700e3 | ||
|
|
59c3cd3956 | ||
|
|
fc9c27d150 | ||
|
|
e33156dcc4 | ||
|
|
15b428893f | ||
|
|
de5589a987 | ||
|
|
5b0da6cb3a | ||
|
|
390830cba5 | ||
|
|
9ed806a86c | ||
|
|
28c348342d | ||
|
|
6877836ad6 | ||
|
|
132a348486 | ||
|
|
3507eed620 | ||
|
|
371a2dc84d | ||
|
|
200cc1d97a | ||
|
|
dda8ff9796 | ||
|
|
0333d4b75b | ||
|
|
1ed7756d6c | ||
|
|
8de6461cf7 | ||
|
|
fe94ab0dde | ||
|
|
0092a73e86 | ||
|
|
0e7c79bd1a | ||
|
|
e3fab53806 | ||
|
|
058aabff68 | ||
|
|
4ff906bd7b | ||
|
|
25b26657da | ||
|
|
c59891d44b | ||
|
|
cb99fc582e | ||
|
|
066593f9c3 | ||
|
|
1e8d9f02f3 | ||
|
|
95e2025ff9 | ||
|
|
ef6f2e8d62 | ||
|
|
1bdc28bf9c | ||
|
|
452901d3b1 | ||
|
|
158f19b67c | ||
|
|
fa928956c2 | ||
|
|
609a8894ec | ||
|
|
adc6a45185 | ||
|
|
a472986d0e | ||
|
|
5be30a2cd8 | ||
|
|
6147bfac82 | ||
|
|
0cf0f20f9d | ||
|
|
e285632d9e | ||
|
|
89e36ab9aa | ||
|
|
ada9478ed7 | ||
|
|
70ca6fdec9 | ||
|
|
ffd704b0cf | ||
|
|
1c3551201a | ||
|
|
c0ddc89f21 | ||
|
|
b5271e5346 | ||
|
|
548172949a | ||
|
|
d9c0825d5f | ||
|
|
8267b5a01c | ||
|
|
bdb2057504 | ||
|
|
69768dc334 | ||
|
|
5831715bca | ||
|
|
fd6d93a5c9 | ||
|
|
40072cd136 | ||
|
|
f88d68a9c3 | ||
|
|
dd898f4033 | ||
|
|
961f8ae3fb | ||
|
|
c4e2f79ddf | ||
|
|
4e27e975be | ||
|
|
4cad6c7607 | ||
|
|
3287d15380 | ||
|
|
1aefe0ce61 | ||
|
|
f7ca3846f0 | ||
|
|
357808ff8a | ||
|
|
3e98e8c9fb | ||
|
|
5752383d3c | ||
|
|
6c26dad562 | ||
|
|
219ed89f62 | ||
|
|
96ddb9bfb2 | ||
|
|
c5a738ba0a | ||
|
|
6d45836b4d | ||
|
|
3154e8729b | ||
|
|
c4835847c0 | ||
|
|
4818199da7 | ||
|
|
162f8ab361 | ||
|
|
72d1d74869 | ||
|
|
4178ead186 | ||
|
|
19783cd757 | ||
|
|
96fbb832bb | ||
|
|
71b951a75b | ||
|
|
e2628dea93 | ||
|
|
f8cd29ea24 | ||
|
|
fc113852d3 | ||
|
|
0319bcf7bb | ||
|
|
a99218e2c7 | ||
|
|
7a94824084 | ||
|
|
0110e933a5 | ||
|
|
caee8826d6 | ||
|
|
79a9170fa3 | ||
|
|
5c429816c1 | ||
|
|
dc8c59dcbe | ||
|
|
44f3596b9e | ||
|
|
6095002faf | ||
|
|
8f55122306 | ||
|
|
1d126d20f7 | ||
|
|
e25ea28ba0 | ||
|
|
ecfb838644 | ||
|
|
dbb290f154 | ||
|
|
34089b1222 | ||
|
|
00a357cd70 | ||
|
|
22aa6efa32 | ||
|
|
165e2cc8ff | ||
|
|
41bec75886 | ||
|
|
4ecc16617c | ||
|
|
b54f24d218 | ||
|
|
c9bd695a84 | ||
|
|
9122b7d310 | ||
|
|
e2fe80e352 | ||
|
|
2ef0f5297a | ||
|
|
3dd8e63ec4 | ||
|
|
2df9e1ba1a | ||
|
|
2b176aeac1 | ||
|
|
2bb5a4cd26 | ||
|
|
0c8cfe2e0b | ||
|
|
1b5a5bba1d | ||
|
|
31ce8bb1bf | ||
|
|
14208dca1d | ||
|
|
65ba52b177 | ||
|
|
b21534a6c4 | ||
|
|
4f5c5a952e | ||
|
|
b9a5de2d88 | ||
|
|
81c14fabb5 | ||
|
|
e606438c33 | ||
|
|
2f10a8f7eb | ||
|
|
11b91ae00d | ||
|
|
6cbf046aed | ||
|
|
e6986e138d | ||
|
|
6ff548b1c7 | ||
|
|
8e595c41e7 | ||
|
|
510fbf0635 | ||
|
|
3c91a1750f | ||
|
|
88d3f38d53 | ||
|
|
a314d608a2 | ||
|
|
40197ed981 | ||
|
|
6443ea160c | ||
|
|
377380d15f | ||
|
|
4e7f56ac74 | ||
|
|
31afd2b6a3 | ||
|
|
369d5c4332 | ||
|
|
fd2057e107 | ||
|
|
5166395af1 | ||
|
|
0afe007d78 | ||
|
|
30fde1a406 | ||
|
|
6db86489ab | ||
|
|
656e7e6172 | ||
|
|
b242f49d7c | ||
|
|
11bf182b50 | ||
|
|
dd40bcf233 | ||
|
|
28a1dd677c | ||
|
|
c42c81b60a | ||
|
|
90c53807b4 | ||
|
|
ac196c89c4 | ||
|
|
97f0f96743 | ||
|
|
12d4ed9171 | ||
|
|
1218e114be | ||
|
|
c58cb9eddf | ||
|
|
1fa9fe372b | ||
|
|
5bf43319c9 | ||
|
|
dfeeec308a | ||
|
|
823aea497b | ||
|
|
45de749c6a | ||
|
|
ab66475a2c | ||
|
|
69d7c0102e | ||
|
|
af72f2d4fb | ||
|
|
2f054234da | ||
|
|
f9fe4a1c0b | ||
|
|
e3aa65b96e | ||
|
|
db2c381c00 | ||
|
|
ebe42b4358 | ||
|
|
ee6aa7a6b2 | ||
|
|
5bfa8b6502 | ||
|
|
ee06948074 | ||
|
|
3ce4615975 | ||
|
|
9d95a7ed4d | ||
|
|
e9bc5eaac5 | ||
|
|
4d4bc55991 | ||
|
|
c1609fb760 | ||
|
|
61b520617a | ||
|
|
8045167b6d | ||
|
|
578619d409 | ||
|
|
0c36f5f4c2 | ||
|
|
b3cd2f2125 | ||
|
|
3ccc61957c | ||
|
|
0c11096a57 | ||
|
|
b691d4935c | ||
|
|
5db786e2dd | ||
|
|
8612b05f52 | ||
|
|
ca7be3a162 | ||
|
|
c197cabd98 | ||
|
|
6a57d6d2d0 | ||
|
|
b54e0c8b4f | ||
|
|
8b14221061 | ||
|
|
6c884d35db | ||
|
|
5bde740351 | ||
|
|
41c314638e | ||
|
|
664824c931 | ||
|
|
f82941550a | ||
|
|
feafc46bb5 | ||
|
|
6ecbbc07bd | ||
|
|
24e3e92d3e | ||
|
|
9cb80d9273 | ||
|
|
71103d72e8 | ||
|
|
d60cd71e64 | ||
|
|
16366db2a5 | ||
|
|
2031d107c4 | ||
|
|
a9059201a7 | ||
|
|
cfc2175765 | ||
|
|
e088159c2f | ||
|
|
0586593caa | ||
|
|
c7f9651236 | ||
|
|
92a34ba6a7 | ||
|
|
167e873e13 | ||
|
|
cd01f84de6 | ||
|
|
9b2e039da2 | ||
|
|
a00eb436ff | ||
|
|
eaa09ea341 | ||
|
|
e7fddc2bcb | ||
|
|
3fbce6dfd2 | ||
|
|
0472b98aa4 | ||
|
|
561448df64 | ||
|
|
de10be6a21 | ||
|
|
ec9498fa62 | ||
|
|
cf85c9c6cd | ||
|
|
383daf6f64 | ||
|
|
e6276271b1 | ||
|
|
4a0474dfc3 | ||
|
|
402a2b8f93 | ||
|
|
7130bfa98a | ||
|
|
593510ac6a | ||
|
|
862ce27eb9 | ||
|
|
42bdc0e101 | ||
|
|
d4c2b9c882 | ||
|
|
6b1b452c4a | ||
|
|
de396e6c6b | ||
|
|
72c3651be4 | ||
|
|
a64e9af1d3 | ||
|
|
e3f4bd60d2 | ||
|
|
96a54f9384 | ||
|
|
53a7ab0496 | ||
|
|
bc9e093e07 | ||
|
|
4414582a35 | ||
|
|
c775da8ccc | ||
|
|
c829440bc2 | ||
|
|
3f4be5e9fa | ||
|
|
44dbe43ac4 | ||
|
|
cbc3c8224f | ||
|
|
7c9a30d8fe | ||
|
|
7b68f1901e | ||
|
|
d61e609977 | ||
|
|
ad6471d3bd | ||
|
|
fd9357a495 | ||
|
|
ba73d31123 | ||
|
|
b18cc761ca | ||
|
|
2c5bf2756d | ||
|
|
5105c34305 | ||
|
|
4c62b32605 | ||
|
|
39f2837838 | ||
|
|
48728bf745 | ||
|
|
7f978ea677 | ||
|
|
e3c3cc0d8d | ||
|
|
e441e751d5 | ||
|
|
06699007c4 | ||
|
|
1dfb6ef477 | ||
|
|
29fdfb9c88 | ||
|
|
d45a197695 | ||
|
|
3658016435 | ||
|
|
b185b5ef8e | ||
|
|
b4fd6b7004 | ||
|
|
6ca832c02b | ||
|
|
cd6317cedb | ||
|
|
b2e950540f | ||
|
|
02e381f694 | ||
|
|
ac07646749 | ||
|
|
cd70076af2 | ||
|
|
330aa24995 | ||
|
|
af820e0eb3 | ||
|
|
af76b78458 | ||
|
|
756c423060 | ||
|
|
2f8a6828f0 | ||
|
|
816d2bd013 | ||
|
|
811cc84bfb | ||
|
|
a370e6aca3 | ||
|
|
c8b7e14835 | ||
|
|
acf5c496be | ||
|
|
ad374f3886 | ||
|
|
97039cbafd | ||
|
|
9fbce31beb | ||
|
|
902027215f | ||
|
|
4c1eb027c1 | ||
|
|
66718b846c | ||
|
|
5b3db2dd17 | ||
|
|
82b7ab312a | ||
|
|
30e246386b | ||
|
|
a6b8001f36 | ||
|
|
bb3cb66d83 | ||
|
|
2c479eabd7 | ||
|
|
eb7b15a12c | ||
|
|
46d19af6d9 | ||
|
|
7393818fc0 | ||
|
|
be9adfaad4 | ||
|
|
81de7bceec | ||
|
|
e603362067 | ||
|
|
8f61e498ff | ||
|
|
b62e648379 | ||
|
|
3737cb30dd | ||
|
|
2b606499b8 | ||
|
|
0768bd6e32 | ||
|
|
d6028b90cd | ||
|
|
ef3ae31bdd | ||
|
|
c7f30c96fc | ||
|
|
0b1b6e2c4b | ||
|
|
7f77351157 | ||
|
|
4b7f6b2b8e | ||
|
|
dcad6bd550 | ||
|
|
1e5fd0539f | ||
|
|
4b7b5e9796 | ||
|
|
0065ca3ad6 | ||
|
|
1f7d1f023f | ||
|
|
01137b48e3 | ||
|
|
9a584091c0 | ||
|
|
977763107c | ||
|
|
fc9d6e302f | ||
|
|
6900ad3f02 | ||
|
|
17309f6039 | ||
|
|
01372ab5cc | ||
|
|
752f84363f | ||
|
|
064f609fd7 | ||
|
|
7c009c69f1 | ||
|
|
d5d4ccada1 | ||
|
|
8c090344d4 | ||
|
|
44564b9fa6 | ||
|
|
425129eb16 | ||
|
|
5e30dcde49 | ||
|
|
3c3b744d16 | ||
|
|
7102e91f50 | ||
|
|
a3a26342f7 | ||
|
|
52131b956b | ||
|
|
1e5553b004 | ||
|
|
14d3c373c4 | ||
|
|
e0e0a6b945 | ||
|
|
ac6ae7607e | ||
|
|
490e15e2c0 | ||
|
|
09c22eaa55 | ||
|
|
3e2883b9df | ||
|
|
b8f555ab22 | ||
|
|
52a2ed0cdc | ||
|
|
8bd7d624da | ||
|
|
40594485d8 | ||
|
|
335b91f0a4 | ||
|
|
1cf9b1be4e | ||
|
|
70f92c6e0e | ||
|
|
ff0af9c9c9 | ||
|
|
46a5b6374c | ||
|
|
3a574901bb | ||
|
|
9909e72727 | ||
|
|
271ab687d8 | ||
|
|
22b5b9819d | ||
|
|
3f7919e0b3 | ||
|
|
1ec25c2a52 | ||
|
|
5b393756ef | ||
|
|
739715b619 | ||
|
|
e2e3e65d2f | ||
|
|
671dbdcb96 | ||
|
|
308bd53049 | ||
|
|
59731af139 | ||
|
|
38c143b8bf | ||
|
|
8ba08988ee | ||
|
|
eda2d67924 | ||
|
|
e9efc9205d | ||
|
|
5ff23de8f5 | ||
|
|
8efcc5e6c2 | ||
|
|
b88b710f09 | ||
|
|
00af9fc0e4 | ||
|
|
5b58b0b40c | ||
|
|
23cb98bb82 | ||
|
|
edd69ac0f7 | ||
|
|
85354c995b | ||
|
|
0daad1a256 | ||
|
|
ca1641ff69 | ||
|
|
fd2d6efe4a | ||
|
|
14873f3b28 | ||
|
|
4947272871 | ||
|
|
3d377d8efa | ||
|
|
7304028420 | ||
|
|
353f71fe0f | ||
|
|
67d0036f62 | ||
|
|
8644d3c5f3 | ||
|
|
3a028f89b6 | ||
|
|
c2d2fee256 | ||
|
|
250650f46a | ||
|
|
692f5fb10c | ||
|
|
d619921d9c | ||
|
|
a4328bd309 | ||
|
|
0c4e332aa8 | ||
|
|
1169c0d7dc | ||
|
|
f7f5f4a35d | ||
|
|
5eda2c80f8 | ||
|
|
a7aa7e9318 | ||
|
|
64e36d4827 | ||
|
|
bdd88f486e | ||
|
|
89959753cd | ||
|
|
2ee7f1383c | ||
|
|
be3995716c | ||
|
|
fd18ca314a | ||
|
|
22b54d3f08 | ||
|
|
08ec85e394 | ||
|
|
51002bed74 | ||
|
|
8050c7c6c6 | ||
|
|
2fd010b04d | ||
|
|
b75e5ef4c4 | ||
|
|
4bbc6d8a7d | ||
|
|
b6cac06d48 | ||
|
|
aa97867b36 | ||
|
|
e41eeae09f | ||
|
|
56139e3307 | ||
|
|
fd6c54b2a7 | ||
|
|
b540eef855 | ||
|
|
96e5e8d058 | ||
|
|
35778d2673 | ||
|
|
606dbbbbf2 | ||
|
|
6090ede8c9 | ||
|
|
cacaa0ee8c | ||
|
|
de3be14d01 | ||
|
|
33b74a465e | ||
|
|
6064393ad3 | ||
|
|
aa5ed6e484 | ||
|
|
5dd554b999 | ||
|
|
80b93ce711 | ||
|
|
be47357cd4 | ||
|
|
7b5d08afd1 | ||
|
|
d4497d7aeb | ||
|
|
182c9af123 | ||
|
|
89df0bda9b | ||
|
|
1ad4107201 | ||
|
|
693f615136 | ||
|
|
532a3bbb49 | ||
|
|
4359f66ece | ||
|
|
8290dcb249 | ||
|
|
828d34b70e | ||
|
|
69fbd31abc | ||
|
|
584ab26aee | ||
|
|
f71d2538fa | ||
|
|
d11f069b60 | ||
|
|
94cdcff79f | ||
|
|
33913cf1ce | ||
|
|
2d3bc356c0 | ||
|
|
b89a0e2d4d | ||
|
|
a635ac9818 | ||
|
|
1ec72ba189 | ||
|
|
4d3a40bf4f | ||
|
|
d2646a5820 | ||
|
|
0ba272b22c | ||
|
|
3ce7958231 | ||
|
|
7e3173caea | ||
|
|
fa6267cf44 | ||
|
|
0733fd64ee | ||
|
|
4b248151c3 | ||
|
|
f56c55e75c | ||
|
|
1c206d0d36 | ||
|
|
afca7ce6da | ||
|
|
6930535555 | ||
|
|
74e41e420f | ||
|
|
5657b6f8c7 | ||
|
|
2f234953f6 | ||
|
|
4dc0ec07b8 | ||
|
|
7ad74eb1b5 | ||
|
|
5968792ad2 | ||
|
|
5a23c962d2 | ||
|
|
48cf28282d | ||
|
|
300b40ed87 | ||
|
|
00216f18ac | ||
|
|
89eb156529 | ||
|
|
f11873e44a | ||
|
|
33cfee8d5f | ||
|
|
4d41e70e12 | ||
|
|
43c180c247 | ||
|
|
349cdd4bf9 | ||
|
|
4d6ab3094c | ||
|
|
95680ef43a | ||
|
|
1ad44de8c6 | ||
|
|
9f4300d38b | ||
|
|
0f62fe0c6e | ||
|
|
87ce042c63 | ||
|
|
91f9cf12b7 | ||
|
|
eb618c891f | ||
|
|
d874ce70f7 | ||
|
|
8bbcbea235 | ||
|
|
b159e9b3d1 | ||
|
|
253c482b9c | ||
|
|
ed5a4be4f4 | ||
|
|
1a3a878778 | ||
|
|
9f3cbcbcb0 | ||
|
|
2151252601 | ||
|
|
82a5da61df | ||
|
|
2ae6a009f0 | ||
|
|
e564e94c94 | ||
|
|
b90d668fbc | ||
|
|
4013184801 | ||
|
|
7b0e57380a | ||
|
|
ce4fcbfae4 | ||
|
|
301210c87b | ||
|
|
dd95f0b002 | ||
|
|
77069a36cd | ||
|
|
3643bd4996 | ||
|
|
4d0e4cea91 | ||
|
|
8dc35d638b | ||
|
|
79cc3556f5 | ||
|
|
3ecdeb6796 | ||
|
|
c8705a0fdc | ||
|
|
1f3015bd2c | ||
|
|
3bc28b5e8a | ||
|
|
27a58c18ee | ||
|
|
9595ef0199 | ||
|
|
98997cc47d | ||
|
|
8d555707f2 | ||
|
|
3ed00f3db7 | ||
|
|
9d3271b731 | ||
|
|
bda1df5ada | ||
|
|
b96a60c9bb | ||
|
|
43f3a2f3d5 | ||
|
|
952c2e1ae2 | ||
|
|
9792193e60 | ||
|
|
81a35be856 | ||
|
|
35c6b51a3f | ||
|
|
4f5cecf738 | ||
|
|
855f56c61a | ||
|
|
36f17a5717 | ||
|
|
3f12e3e96f | ||
|
|
c7e457e63f | ||
|
|
e521fe617e | ||
|
|
ae2c1fb77f | ||
|
|
b9883a8e24 | ||
|
|
18b1573b25 | ||
|
|
a2888250f4 | ||
|
|
ecf050ba54 | ||
|
|
8fd4c17628 | ||
|
|
a6bcd5bd1c | ||
|
|
29e7aeff5d | ||
|
|
c9e24ade24 | ||
|
|
14e2b3c15f | ||
|
|
5916ff3c1b | ||
|
|
fad5150ada | ||
|
|
081b09207f | ||
|
|
7513520a9b | ||
|
|
0587158b6b | ||
|
|
b24ee67bbb | ||
|
|
abc58e7482 | ||
|
|
3a0a9fa009 | ||
|
|
90428e7ba1 | ||
|
|
cfbc8eed68 | ||
|
|
e1d01e1652 | ||
|
|
90601eacae | ||
|
|
c05029d403 | ||
|
|
dc05b01ee1 | ||
|
|
b8aefedcc3 | ||
|
|
8ab39f0baf | ||
|
|
c30ea6afbb | ||
|
|
6f2724fb90 | ||
|
|
b490acf9fb | ||
|
|
b5ebbd2bf9 | ||
|
|
a13fad749e | ||
|
|
67e7b6a139 | ||
|
|
f68112be38 | ||
|
|
cf7fd53130 | ||
|
|
470832e798 | ||
|
|
1e8368dea5 | ||
|
|
39e1cc0237 | ||
|
|
61e6e71f29 | ||
|
|
9bbdacc79a | ||
|
|
701262a439 | ||
|
|
9ef8ebaf09 | ||
|
|
ac6491ea12 | ||
|
|
46747b01fb | ||
|
|
8c01d51577 | ||
|
|
45c542cec3 | ||
|
|
7357d28fea | ||
|
|
272f67f0c6 | ||
|
|
847780760a | ||
|
|
8b5fd09ff3 | ||
|
|
0cdcccf1f6 | ||
|
|
9fa2917634 | ||
|
|
23ca733afd | ||
|
|
9c013d3233 | ||
|
|
5495829f11 | ||
|
|
0587223489 | ||
|
|
15e692a7d2 | ||
|
|
d9b74131ae | ||
|
|
f6c01161a0 | ||
|
|
46bf6ef803 | ||
|
|
0833a22742 | ||
|
|
6dc7404f23 | ||
|
|
592aa6d576 | ||
|
|
d9bc56896d | ||
|
|
55bd26dc9c | ||
|
|
cf6139d9e3 | ||
|
|
c69f993013 | ||
|
|
d6ba734fa9 |
No files matched your search
@@ -1,135 +0,0 @@
|
||||
ecmaFeatures:
|
||||
experimentalObjectRestSpread: true
|
||||
|
||||
plugins:
|
||||
- meteor
|
||||
|
||||
parser: babel-eslint
|
||||
|
||||
rules:
|
||||
strict: 0
|
||||
no-undef: 2
|
||||
accessor-pairs: 2
|
||||
comma-dangle: [2, 'always-multiline']
|
||||
consistent-return: 2
|
||||
dot-notation: 2
|
||||
eqeqeq: 2
|
||||
indent: [2, 2]
|
||||
no-cond-assign: 2
|
||||
no-constant-condition: 2
|
||||
no-eval: 2
|
||||
no-inner-declarations: [0]
|
||||
no-unneeded-ternary: 2
|
||||
radix: 2
|
||||
semi: [2, always]
|
||||
|
||||
# Stylistic Issues
|
||||
camelcase: 2
|
||||
comma-spacing: 2
|
||||
comma-style: 2
|
||||
linebreak-style: [2, unix]
|
||||
new-parens: 2
|
||||
no-lonely-if: 2
|
||||
no-multiple-empty-lines: 2
|
||||
no-nested-ternary: 2
|
||||
no-spaced-func: 2
|
||||
operator-linebreak: 2
|
||||
quotes: [2, single]
|
||||
semi-spacing: 2
|
||||
space-unary-ops: 2
|
||||
spaced-comment: [2, always, markers: ['/']]
|
||||
|
||||
# ECMAScript 6
|
||||
arrow-parens: 2
|
||||
arrow-spacing: 2
|
||||
no-class-assign: 2
|
||||
no-dupe-class-members: 2
|
||||
no-var: 2
|
||||
object-shorthand: 2
|
||||
prefer-const: 2
|
||||
prefer-spread: 2
|
||||
prefer-template: 2
|
||||
|
||||
# eslint-plugin-meteor
|
||||
## Meteor API
|
||||
meteor/globals: 2
|
||||
meteor/core: 2
|
||||
meteor/pubsub: 2
|
||||
meteor/methods: 2
|
||||
meteor/check: 2
|
||||
meteor/connections: 2
|
||||
meteor/collections: 2
|
||||
meteor/session: [2, 'no-equal']
|
||||
|
||||
## Best practices
|
||||
meteor/no-session: 0
|
||||
meteor/no-zero-timeout: 2
|
||||
meteor/no-blaze-lifecycle-assignment: 2
|
||||
|
||||
settings:
|
||||
meteor:
|
||||
|
||||
# Our collections
|
||||
collections:
|
||||
- AccountsTemplates
|
||||
- Activities
|
||||
- Attachments
|
||||
- Boards
|
||||
- CardComments
|
||||
- Cards
|
||||
- Lists
|
||||
- UnsavedEditCollection
|
||||
- Users
|
||||
|
||||
globals:
|
||||
# Exported by packages we use
|
||||
autosize: false
|
||||
Avatar: true
|
||||
Avatars: true
|
||||
BlazeComponent: false
|
||||
BlazeLayout: false
|
||||
DocHead: false
|
||||
ESSearchResults: false
|
||||
FastRender: false
|
||||
FlowRouter: false
|
||||
FS: false
|
||||
getSlug: false
|
||||
Migrations: false
|
||||
moment: false
|
||||
Mousetrap: false
|
||||
Picker: false
|
||||
Presence: true
|
||||
presences: true
|
||||
Ps: true
|
||||
ReactiveTabs: false
|
||||
Restivus: false
|
||||
SimpleSchema: false
|
||||
SubsManager: false
|
||||
T9n: false
|
||||
TAPi18n: false
|
||||
|
||||
# Our objects
|
||||
CSSEvents: true
|
||||
EscapeActions: true
|
||||
Filter: true
|
||||
Filter: true
|
||||
Mixins: true
|
||||
Modal: true
|
||||
MultiSelection: true
|
||||
Popup: true
|
||||
Sidebar: true
|
||||
Utils: true
|
||||
InlinedForm: true
|
||||
UnsavedEdits: true
|
||||
|
||||
# XXX Temp, we should remove these
|
||||
allowIsBoardAdmin: true
|
||||
allowIsBoardMember: true
|
||||
Emoji: true
|
||||
|
||||
env:
|
||||
es6: true
|
||||
node: true
|
||||
browser: true
|
||||
|
||||
extends: 'eslint:recommended'
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"extends": "eslint:recommended",
|
||||
"env": {
|
||||
"es6": true,
|
||||
"node": true,
|
||||
"browser": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 6,
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
"experimentalObjectRestSpread": true
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"strict": 0,
|
||||
"no-undef": 2,
|
||||
"accessor-pairs": 2,
|
||||
"comma-dangle": [2, "always-multiline"],
|
||||
"consistent-return": 2,
|
||||
"dot-notation": 2,
|
||||
"eqeqeq": 2,
|
||||
"indent": [2, 2],
|
||||
"no-cond-assign": 2,
|
||||
"no-constant-condition": 2,
|
||||
"no-eval": 2,
|
||||
"no-inner-declarations": [0],
|
||||
"no-unneeded-ternary": 2,
|
||||
"radix": 2,
|
||||
"semi": [2, "always"],
|
||||
"camelcase": [2, {"properties": "never"}],
|
||||
"comma-spacing": 2,
|
||||
"comma-style": 2,
|
||||
"eol-last": 2,
|
||||
"linebreak-style": [2, "unix"],
|
||||
"new-parens": 2,
|
||||
"no-lonely-if": 2,
|
||||
"no-multiple-empty-lines": 2,
|
||||
"no-nested-ternary": 2,
|
||||
"no-spaced-func": 2,
|
||||
"no-trailing-spaces": 2,
|
||||
"operator-linebreak": 2,
|
||||
"quotes": [2, "single"],
|
||||
"semi-spacing": 2,
|
||||
"space-unary-ops": 2,
|
||||
"arrow-parens": 2,
|
||||
"arrow-spacing": 2,
|
||||
"no-class-assign": 2,
|
||||
"no-dupe-class-members": 2,
|
||||
"no-var": 2,
|
||||
"object-shorthand": 2,
|
||||
"prefer-const": 2,
|
||||
"prefer-spread": 2,
|
||||
"prefer-template": 2,
|
||||
"no-unused-vars" : "warn"
|
||||
},
|
||||
"globals": {
|
||||
"Meteor": false,
|
||||
"Session": false,
|
||||
"HTML": false,
|
||||
"check": false,
|
||||
"Tracker": false,
|
||||
"Blaze": false,
|
||||
"Accounts": false,
|
||||
"Match": false,
|
||||
"Mongo": false,
|
||||
"Random": false,
|
||||
"ReactiveVar": false,
|
||||
"Email": false,
|
||||
"Template": false,
|
||||
"$": false,
|
||||
"_": false,
|
||||
"autosize": false,
|
||||
"Avatar": true,
|
||||
"Avatars": true,
|
||||
"BlazeComponent": false,
|
||||
"BlazeLayout": false,
|
||||
"CollectionHooks": false,
|
||||
"DocHead": false,
|
||||
"ESSearchResults": false,
|
||||
"FastRender": false,
|
||||
"FlowRouter": false,
|
||||
"FS": false,
|
||||
"getSlug": false,
|
||||
"Migrations": false,
|
||||
"moment": false,
|
||||
"Mousetrap": false,
|
||||
"Picker": false,
|
||||
"Presence": true,
|
||||
"presences": true,
|
||||
"Ps": true,
|
||||
"ReactiveTabs": false,
|
||||
"Restivus": false,
|
||||
"SimpleSchema": false,
|
||||
"SubsManager": false,
|
||||
"T9n": false,
|
||||
"TAPi18n": false,
|
||||
"AccountsTemplates": true,
|
||||
"Activities": true,
|
||||
"Attachments": true,
|
||||
"Boards": true,
|
||||
"CardComments": true,
|
||||
"Cards": true,
|
||||
"Lists": true,
|
||||
"UnsavedEditCollection": true,
|
||||
"Users": true,
|
||||
"CSSEvents": true,
|
||||
"EscapeActions": true,
|
||||
"Filter": true,
|
||||
"Mixins": true,
|
||||
"Modal": true,
|
||||
"MultiSelection": true,
|
||||
"Popup": true,
|
||||
"Sidebar": true,
|
||||
"Utils": true,
|
||||
"InlinedForm": true,
|
||||
"UnsavedEdits": true,
|
||||
"Notifications": true,
|
||||
"allowIsBoardAdmin": true,
|
||||
"allowIsBoardMember": true,
|
||||
"allowIsBoardMemberByCard": true,
|
||||
"allowIsBoardMemberNonComment": true,
|
||||
"Emoji": true,
|
||||
"Checklists": true,
|
||||
"Settings": true,
|
||||
"InvitationCodes": true,
|
||||
"JsonRoutes": true,
|
||||
"Authentication": true,
|
||||
"Integrations": true,
|
||||
"HTTP": true,
|
||||
"AccountSettings": true,
|
||||
"Announcements": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
## Issue
|
||||
**Impacted version**: xxxx
|
||||
|
||||
**Server Setup Information**:
|
||||
|
||||
* Operating System:
|
||||
* Deployment Method(tar/sandstorm/snap/docker/etc /http frontend (nginx, httpd, ...)):
|
||||
* Node Version:
|
||||
* MongoDB Version:
|
||||
* ROOT_URL environment variable (Is there a subfolder?):
|
||||
|
||||
**Problem description**:
|
||||
- *be as explicit has you can*
|
||||
- *describe the problem and its symptoms*
|
||||
- *explain how to reproduce*
|
||||
- *attach whatever information that can help understanding the context (screen capture, log files)*
|
||||
+10
-1
@@ -1,7 +1,16 @@
|
||||
*~
|
||||
*.swp
|
||||
.meteor-spk
|
||||
.tx/
|
||||
*.sublime-workspace
|
||||
tmp/
|
||||
node_modules/
|
||||
.vscode/
|
||||
.idea/
|
||||
.build/*
|
||||
packages/kadira-flow-router/
|
||||
packages/meteor-useraccounts-core/
|
||||
package-lock.json
|
||||
**/parts/
|
||||
**/stage
|
||||
**/prime
|
||||
**/*.snap
|
||||
@@ -10,3 +10,9 @@ notices-for-facebook-graph-api-2
|
||||
1.2.0-meteor-platform-split
|
||||
1.2.0-cordova-changes
|
||||
1.2.0-breaking-changes
|
||||
1.3.0-split-minifiers-package
|
||||
1.3.5-remove-old-dev-bundle-link
|
||||
1.4.0-remove-old-dev-bundle-link
|
||||
1.4.1-add-shell-server-package
|
||||
1.4.3-split-account-service-packages
|
||||
1.5-add-dynamic-import-package
|
||||
@@ -1 +1,2 @@
|
||||
dev_bundle
|
||||
local
|
||||
+32
-23
@@ -3,54 +3,49 @@
|
||||
# 'meteor add' and 'meteor remove' will edit this file for you,
|
||||
# but you can also edit it by hand.
|
||||
|
||||
meteor-base
|
||||
meteor-base@1.2.0
|
||||
|
||||
# Build system
|
||||
ecmascript
|
||||
standard-minifiers
|
||||
ecmascript@0.9.0
|
||||
stylus@2.513.13
|
||||
standard-minifier-css@1.3.5
|
||||
standard-minifier-js@2.2.0
|
||||
mquandalle:jade
|
||||
mquandalle:stylus
|
||||
|
||||
# Polyfills
|
||||
es5-shim
|
||||
es5-shim@4.6.15
|
||||
|
||||
# Collections
|
||||
aldeed:collection2
|
||||
cfs:gridfs
|
||||
cfs:standard-packages
|
||||
cottz:publish-relations
|
||||
dburles:collection-helpers
|
||||
idmontie:migrations
|
||||
matb33:collection-hooks
|
||||
matteodem:easy-search
|
||||
mongo
|
||||
mongo@1.3.1
|
||||
mquandalle:collection-mutations
|
||||
|
||||
# Account system
|
||||
accounts-password
|
||||
kenton:accounts-sandstorm
|
||||
service-configuration
|
||||
useraccounts:core
|
||||
service-configuration@1.0.11
|
||||
useraccounts:unstyled
|
||||
useraccounts:flow-routing
|
||||
email
|
||||
|
||||
# Utilities
|
||||
check
|
||||
jquery
|
||||
random
|
||||
reactive-dict
|
||||
session
|
||||
tracker
|
||||
underscore
|
||||
check@1.2.5
|
||||
jquery@1.11.10
|
||||
random@1.0.10
|
||||
reactive-dict@1.2.0
|
||||
session@1.1.7
|
||||
tracker@1.1.3
|
||||
underscore@1.0.10
|
||||
3stack:presence
|
||||
alethes:pages
|
||||
arillo:flow-router-helpers
|
||||
audit-argument-checks
|
||||
audit-argument-checks@1.0.7
|
||||
kadira:blaze-layout
|
||||
kadira:dochead
|
||||
kadira:flow-router
|
||||
meteorhacks:fast-render
|
||||
meteorhacks:picker
|
||||
meteorhacks:subs-manager
|
||||
mquandalle:autofocus
|
||||
@@ -58,19 +53,33 @@ mquandalle:moment
|
||||
ongoworks:speakingurl
|
||||
raix:handlebar-helpers
|
||||
tap:i18n
|
||||
http@1.3.0
|
||||
|
||||
# UI components
|
||||
blaze
|
||||
reactive-var
|
||||
reactive-var@1.0.11
|
||||
fortawesome:fontawesome
|
||||
mousetrap:mousetrap
|
||||
mquandalle:jquery-textcomplete
|
||||
mquandalle:jquery-ui-drag-drop-sort
|
||||
mquandalle:mousetrap-bindglobal
|
||||
mquandalle:perfect-scrollbar
|
||||
peerlibrary:blaze-components
|
||||
peerlibrary:blaze-components@=0.15.1
|
||||
perak:markdown
|
||||
seriousm:emoji-continued
|
||||
templates:tabs
|
||||
verron:autosize
|
||||
simple:json-routes
|
||||
rajit:bootstrap3-datepicker
|
||||
shell-server@0.3.0
|
||||
simple:rest-accounts-password
|
||||
useraccounts:core
|
||||
email@1.2.3
|
||||
horka:swipebox
|
||||
dynamic-import@0.2.0
|
||||
staringatlights:fast-render
|
||||
staringatlights:flow-router
|
||||
|
||||
mixmax:smart-disconnect
|
||||
accounts-password@1.5.0
|
||||
cfs:gridfs
|
||||
+1
-1
@@ -1 +1 @@
|
||||
METEOR@1.2.1
|
||||
METEOR@1.6.0.1
|
||||
+133
-108
@@ -1,31 +1,34 @@
|
||||
3stack:presence@1.0.5
|
||||
accounts-base@1.2.2
|
||||
accounts-password@1.1.4
|
||||
aldeed:collection2@2.5.0
|
||||
aldeed:simple-schema@1.3.3
|
||||
alethes:pages@1.8.4
|
||||
arillo:flow-router-helpers@0.4.7
|
||||
audit-argument-checks@1.0.4
|
||||
autoupdate@1.2.4
|
||||
babel-compiler@5.8.24_1
|
||||
babel-runtime@0.1.4
|
||||
base64@1.0.4
|
||||
binary-heap@1.0.4
|
||||
blaze@2.1.3
|
||||
blaze-html-templates@1.0.1
|
||||
blaze-tools@1.0.4
|
||||
boilerplate-generator@1.0.4
|
||||
caching-compiler@1.0.0
|
||||
caching-html-compiler@1.0.2
|
||||
callback-hook@1.0.4
|
||||
3stack:presence@1.1.2
|
||||
accounts-base@1.4.0
|
||||
accounts-password@1.5.0
|
||||
aldeed:collection2@2.10.0
|
||||
aldeed:collection2-core@1.2.0
|
||||
aldeed:schema-deny@1.1.0
|
||||
aldeed:schema-index@1.1.1
|
||||
aldeed:simple-schema@1.5.3
|
||||
alethes:pages@1.8.6
|
||||
allow-deny@1.1.0
|
||||
arillo:flow-router-helpers@0.5.2
|
||||
audit-argument-checks@1.0.7
|
||||
autoupdate@1.3.12
|
||||
babel-compiler@6.24.7
|
||||
babel-runtime@1.1.1
|
||||
base64@1.0.10
|
||||
binary-heap@1.0.10
|
||||
blaze@2.3.2
|
||||
blaze-tools@1.0.10
|
||||
boilerplate-generator@1.3.1
|
||||
caching-compiler@1.1.9
|
||||
caching-html-compiler@1.1.2
|
||||
callback-hook@1.0.10
|
||||
cfs:access-point@0.1.49
|
||||
cfs:base-package@0.0.30
|
||||
cfs:collection@0.5.5
|
||||
cfs:collection-filters@0.2.4
|
||||
cfs:data-man@0.0.6
|
||||
cfs:file@0.1.17
|
||||
cfs:gridfs@0.0.33
|
||||
cfs:http-methods@0.0.30
|
||||
cfs:gridfs@0.0.34
|
||||
cfs:http-methods@0.0.32
|
||||
cfs:http-publish@0.0.13
|
||||
cfs:power-queue@0.9.11
|
||||
cfs:reactive-list@0.0.9
|
||||
@@ -35,114 +38,136 @@ cfs:storage-adapter@0.2.3
|
||||
cfs:tempstore@0.1.5
|
||||
cfs:upload-http@0.0.20
|
||||
cfs:worker@0.1.4
|
||||
check@1.1.0
|
||||
check@1.2.5
|
||||
chuangbo:cookie@1.1.0
|
||||
coffeescript@1.0.11
|
||||
cosmos:browserify@0.9.2
|
||||
cottz:publish-relations@2.0.0
|
||||
dburles:collection-helpers@1.0.4
|
||||
ddp@1.2.2
|
||||
ddp-client@1.2.1
|
||||
ddp-common@1.2.2
|
||||
ddp-rate-limiter@1.0.0
|
||||
ddp-server@1.2.2
|
||||
deps@1.0.9
|
||||
diff-sequence@1.0.1
|
||||
ecmascript@0.1.6
|
||||
ecmascript-runtime@0.2.6
|
||||
ejson@1.0.7
|
||||
email@1.0.8
|
||||
es5-shim@4.1.14
|
||||
fastclick@1.0.7
|
||||
fortawesome:fontawesome@4.5.0
|
||||
geojson-utils@1.0.4
|
||||
hot-code-push@1.0.0
|
||||
html-tools@1.0.5
|
||||
htmljs@1.0.5
|
||||
http@1.1.1
|
||||
id-map@1.0.4
|
||||
idmontie:migrations@1.0.1
|
||||
jquery@1.11.4
|
||||
coffeescript@1.12.7_3
|
||||
coffeescript-compiler@1.12.7_3
|
||||
cottz:publish-relations@2.0.8
|
||||
dburles:collection-helpers@1.1.0
|
||||
ddp@1.4.0
|
||||
ddp-client@2.2.0
|
||||
ddp-common@1.3.0
|
||||
ddp-rate-limiter@1.0.7
|
||||
ddp-server@2.1.1
|
||||
deps@1.0.12
|
||||
diff-sequence@1.0.7
|
||||
dynamic-import@0.2.1
|
||||
ecmascript@0.9.0
|
||||
ecmascript-runtime@0.5.0
|
||||
ecmascript-runtime-client@0.5.0
|
||||
ecmascript-runtime-server@0.5.0
|
||||
ejson@1.1.0
|
||||
email@1.2.3
|
||||
es5-shim@4.6.15
|
||||
fastclick@1.0.13
|
||||
fortawesome:fontawesome@4.7.0
|
||||
geojson-utils@1.0.10
|
||||
horka:swipebox@1.0.2
|
||||
hot-code-push@1.0.4
|
||||
html-tools@1.0.11
|
||||
htmljs@1.0.11
|
||||
http@1.3.0
|
||||
id-map@1.0.9
|
||||
idmontie:migrations@1.0.3
|
||||
jquery@1.11.10
|
||||
kadira:blaze-layout@2.3.0
|
||||
kadira:dochead@1.4.0
|
||||
kadira:flow-router@2.10.0
|
||||
kenton:accounts-sandstorm@0.1.8
|
||||
launch-screen@1.0.4
|
||||
livedata@1.0.15
|
||||
localstorage@1.0.5
|
||||
logging@1.0.8
|
||||
matb33:collection-hooks@0.8.1
|
||||
kadira:dochead@1.5.0
|
||||
kadira:flow-router@2.12.1
|
||||
kenton:accounts-sandstorm@0.7.0
|
||||
launch-screen@1.1.1
|
||||
livedata@1.0.18
|
||||
localstorage@1.2.0
|
||||
logging@1.1.19
|
||||
matb33:collection-hooks@0.8.4
|
||||
matteodem:easy-search@1.6.4
|
||||
meteor@1.1.10
|
||||
meteor-base@1.0.1
|
||||
meteor-platform@1.2.3
|
||||
mdg:validation-error@0.5.1
|
||||
meteor@1.8.2
|
||||
meteor-base@1.2.0
|
||||
meteor-platform@1.2.6
|
||||
meteorhacks:aggregate@1.3.0
|
||||
meteorhacks:collection-utils@1.2.0
|
||||
meteorhacks:fast-render@2.11.0
|
||||
meteorhacks:inject-data@1.4.1
|
||||
meteorhacks:meteorx@1.4.1
|
||||
meteorhacks:picker@1.0.3
|
||||
meteorhacks:subs-manager@1.6.2
|
||||
meteorhacks:subs-manager@1.6.4
|
||||
meteorspark:util@0.2.0
|
||||
minifiers@1.1.7
|
||||
minimongo@1.0.10
|
||||
mobile-status-bar@1.0.6
|
||||
mongo@1.1.3
|
||||
mongo-id@1.0.1
|
||||
mongo-livedata@1.0.9
|
||||
minifier-css@1.2.16
|
||||
minifier-js@2.2.2
|
||||
minifiers@1.1.8-faster-rebuild.0
|
||||
minimongo@1.4.3
|
||||
mixmax:smart-disconnect@0.0.4
|
||||
mobile-status-bar@1.0.14
|
||||
modules@0.11.0
|
||||
modules-runtime@0.9.1
|
||||
mongo@1.3.1
|
||||
mongo-dev-server@1.1.0
|
||||
mongo-id@1.0.6
|
||||
mongo-livedata@1.0.12
|
||||
mousetrap:mousetrap@1.4.6_1
|
||||
mquandalle:autofocus@1.0.0
|
||||
mquandalle:collection-mutations@0.1.0
|
||||
mquandalle:jade@0.4.5
|
||||
mquandalle:jade@0.4.9
|
||||
mquandalle:jade-compiler@0.4.5
|
||||
mquandalle:jquery-textcomplete@0.8.0_1
|
||||
mquandalle:jquery-ui-drag-drop-sort@0.2.0
|
||||
mquandalle:moment@1.0.1
|
||||
mquandalle:mousetrap-bindglobal@0.0.1
|
||||
mquandalle:perfect-scrollbar@0.6.5_2
|
||||
mquandalle:stylus@1.1.1
|
||||
npm-bcrypt@0.7.8_2
|
||||
npm-mongo@1.4.39_1
|
||||
observe-sequence@1.0.7
|
||||
npm-bcrypt@0.9.3
|
||||
npm-mongo@2.2.33
|
||||
observe-sequence@1.0.16
|
||||
ongoworks:speakingurl@1.1.0
|
||||
ordered-dict@1.0.4
|
||||
ordered-dict@1.0.9
|
||||
peerlibrary:assert@0.2.5
|
||||
peerlibrary:base-component@0.14.0
|
||||
peerlibrary:base-component@0.16.0
|
||||
peerlibrary:blaze-components@0.15.1
|
||||
peerlibrary:computed-field@0.3.1
|
||||
peerlibrary:reactive-field@0.1.0
|
||||
peerlibrary:computed-field@0.7.0
|
||||
peerlibrary:reactive-field@0.3.0
|
||||
perak:markdown@1.0.5
|
||||
promise@0.5.1
|
||||
promise@0.10.0
|
||||
raix:eventemitter@0.1.3
|
||||
raix:handlebar-helpers@0.2.5
|
||||
random@1.0.5
|
||||
rate-limit@1.0.0
|
||||
reactive-dict@1.1.3
|
||||
reactive-var@1.0.6
|
||||
reload@1.1.4
|
||||
retry@1.0.4
|
||||
routepolicy@1.0.6
|
||||
rajit:bootstrap3-datepicker@1.7.1
|
||||
random@1.0.10
|
||||
rate-limit@1.0.8
|
||||
reactive-dict@1.2.0
|
||||
reactive-var@1.0.11
|
||||
reload@1.1.11
|
||||
retry@1.0.9
|
||||
routepolicy@1.0.12
|
||||
seriousm:emoji-continued@1.4.0
|
||||
service-configuration@1.0.5
|
||||
session@1.1.1
|
||||
sha@1.0.4
|
||||
simple:json-routes@1.0.4
|
||||
softwarerero:accounts-t9n@1.1.7
|
||||
spacebars@1.0.7
|
||||
spacebars-compiler@1.0.7
|
||||
srp@1.0.4
|
||||
standard-minifiers@1.0.2
|
||||
tap:i18n@1.7.0
|
||||
templates:tabs@2.2.0
|
||||
templating@1.1.5
|
||||
templating-tools@1.0.0
|
||||
tracker@1.0.9
|
||||
ui@1.0.8
|
||||
underscore@1.0.4
|
||||
url@1.0.5
|
||||
useraccounts:core@1.13.0
|
||||
useraccounts:flow-routing@1.13.0
|
||||
useraccounts:unstyled@1.13.0
|
||||
service-configuration@1.0.11
|
||||
session@1.1.7
|
||||
sha@1.0.9
|
||||
shell-server@0.3.1
|
||||
simple:authenticate-user-by-token@1.0.1
|
||||
simple:json-routes@2.1.0
|
||||
simple:rest-accounts-password@1.1.2
|
||||
simple:rest-bearer-token-parser@1.0.1
|
||||
simple:rest-json-error-handler@1.0.1
|
||||
softwarerero:accounts-t9n@1.3.11
|
||||
spacebars@1.0.15
|
||||
spacebars-compiler@1.1.3
|
||||
srp@1.0.10
|
||||
standard-minifier-css@1.3.5
|
||||
standard-minifier-js@2.2.3
|
||||
staringatlights:fast-render@2.16.5
|
||||
staringatlights:flow-router@2.12.2
|
||||
staringatlights:inject-data@2.0.5
|
||||
stylus@2.513.13
|
||||
tap:i18n@1.8.2
|
||||
templates:tabs@2.3.0
|
||||
templating@1.3.2
|
||||
templating-compiler@1.3.3
|
||||
templating-runtime@1.3.2
|
||||
templating-tools@1.1.2
|
||||
tracker@1.1.3
|
||||
ui@1.0.13
|
||||
underscore@1.0.10
|
||||
url@1.1.0
|
||||
useraccounts:core@1.14.2
|
||||
useraccounts:flow-routing@1.14.2
|
||||
useraccounts:unstyled@1.14.2
|
||||
verron:autosize@3.0.8
|
||||
webapp@1.2.3
|
||||
webapp-hashing@1.0.5
|
||||
webapp@1.4.0
|
||||
webapp-hashing@1.0.9
|
||||
zimme:active-route@2.3.2
|
||||
+26
-2
@@ -1,8 +1,32 @@
|
||||
sudo: false
|
||||
dist: trusty
|
||||
sudo: required
|
||||
|
||||
env:
|
||||
TRAVIS_DOCKER_COMPOSE_VERSION: 1.17.0
|
||||
TRAVIS_NODE_VERSION: 8.9.3
|
||||
TRAVIS_NPM_VERSION: 5.5.1
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update -y
|
||||
- npm install -g npm@${TRAVIS_NPM_VERSION}
|
||||
- sudo curl -fsSL https://get.docker.com/ | sh
|
||||
- if [ -e /usr/local/bin/docker-compose ]; then sudo rm /usr/local/bin/docker-compose; fi
|
||||
- sudo curl -L https://github.com/docker/compose/releases/download/${TRAVIS_DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
|
||||
- sudo chmod +x docker-compose
|
||||
- sudo mv docker-compose /usr/local/bin
|
||||
- sudo docker-compose build --no-cache --force-rm
|
||||
- sudo docker-compose up -d wekandb
|
||||
- sudo docker-compose up -d wekan
|
||||
# ^^ Note - need to come up with some way of checking the output from docker run
|
||||
# that it was a success... perhaps the nodejs server can output a success message?
|
||||
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
- "0.10.40"
|
||||
- "${TRAVIS_NODE_VERSION}"
|
||||
|
||||
install:
|
||||
- "npm install"
|
||||
|
||||
script:
|
||||
- "npm test"
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
# This is the configuration of the Transifex tool that we use to manage the
|
||||
# translations on Wekan. Documentation at: http://docs.transifex.com/client.
|
||||
#
|
||||
# Push
|
||||
# ====
|
||||
#
|
||||
# It is recommended that contributors use the Transifex web UI to create and
|
||||
# edit translated strings. However in case a contributor has directly jumped
|
||||
# into the code and made its translations in the corresponding i18n.json file
|
||||
# we can push it using
|
||||
#
|
||||
# > tx push -t -l ar
|
||||
#
|
||||
# Where `ar` is the language identifier. In addition, the project maintainer
|
||||
# should push the English source file to Transifex at least before each release
|
||||
# candidate using:
|
||||
#
|
||||
# > tx push -s
|
||||
#
|
||||
# Pull
|
||||
# ====
|
||||
#
|
||||
# The set of accepted language is directly managed in Transifex, the only
|
||||
# restriction we define to bundle a new language in the application, is that its
|
||||
# completion is at least at 75%.
|
||||
#
|
||||
# We use:
|
||||
#
|
||||
# > tx pull
|
||||
#
|
||||
# to download new versions of existing translations, and
|
||||
#
|
||||
# > tx pull -a --minimum-perc=75
|
||||
#
|
||||
# to download new sufficiently advanced translations.
|
||||
|
||||
[main]
|
||||
host = https://www.transifex.com
|
||||
# tap:i18n requires us to use `-` separator in the language identifiers whereas
|
||||
# Transifex uses a `_` separator, without an option to customize it on one side
|
||||
# or the other, so we need to do a Manual mapping.
|
||||
lang_map = en_GB:en-GB, es_AR:es-AR, el_GR:el, fa_IR:fa, fi_FI:fi, ig:ibo, hu_HU:hu, id_ID:id, mn_MN:mn, no:nb, lv_LV:lv, pt_BR:pt-BR, ro_RO:ro, zh_CN:zh-CN, zh_TW:zh-TW
|
||||
|
||||
[wekan.application]
|
||||
file_filter = i18n/<lang>.i18n.json
|
||||
source_lang = en
|
||||
type = KEYVALUEJSON
|
||||
|
||||
# We might have a dedicated second resource later to translate the “Welcome
|
||||
# Board” data.
|
||||
#
|
||||
# [wekan.welcomeBoard]
|
||||
# file_filter = private/welcomeBoard/<lang>.json
|
||||
# source_lang = en
|
||||
# type = KEYVALUEJSON
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"editor.tabSize": 2,
|
||||
"editor.rulers": [80],
|
||||
"files.trimTrailingWhitespace": true,
|
||||
"files.insertFinalNewline": true,
|
||||
"files.exclude": {
|
||||
"**/.git": true,
|
||||
"**/.DS_Store": true,
|
||||
"node_modules": true,
|
||||
".meteor/local": true
|
||||
}
|
||||
}
|
||||
+906
-9
@@ -1,15 +1,912 @@
|
||||
# v0.10
|
||||
# v0.66 2018-01-28 Wekan release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* [Fix Dockerfile for Debian](https://github.com/wekan/wekan/pull/1439).
|
||||
|
||||
Thanks to GitHub user soohwa for contributions.
|
||||
|
||||
# v0.65 2018-01-28 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Swimlanes, part 1](https://github.com/wekan/wekan/issues/955);
|
||||
* Added new language: Igbo.
|
||||
|
||||
Thanks to GitHub user andresmanelli for contributions.
|
||||
|
||||
# v0.64 2018-01-22 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Different icons for start and due date](https://github.com/wekan/wekan/pull/1420).
|
||||
* Added new languages: Mongolian and Portuguese;
|
||||
* Upgraded to Meteor 1.6.0.1, Node 8.9.3, NPM 5.5.1 and fibers 2.0.0.
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Fix for dragging into scrolled-down list](https://github.com/wekan/wekan/pull/1424).
|
||||
* [Fix double slash bug on snap](https://github.com/wekan/wekan/issues/962#issuecomment-357785748).
|
||||
|
||||
Thanks to GitHub users dpoznyak, mmarschall and xet7 for their contributions.
|
||||
|
||||
# v0.63 2017-12-20 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Auto update card cover with new image uploaded via drag&drop](https://github.com/wekan/wekan/pull/1401);
|
||||
* Update to Node 4.8.7.
|
||||
|
||||
Thanks to GitHub users thuanpq and xet7 for their contributions.
|
||||
|
||||
# v0.62 2017-12-12 Wekan release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* Added missing packages to build script.
|
||||
|
||||
Thanks to GitHub user xet7 for contributions.
|
||||
|
||||
# v0.61 2017-12-12 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Change password of any user in Standalone Wekan Admin Panel](https://github.com/wekan/wekan/pull/1372);
|
||||
* [Performance optimization: Move more global subscriptions to template subscription](https://github.com/wekan/wekan/pull/1373);
|
||||
* [Auto update card cover with latest uploaded image attachment](https://github.com/wekan/wekan/pull/1387);
|
||||
* [Always display attachment section for uploading file quickly](https://github.com/wekan/wekan/pull/1391);
|
||||
* [Make it easier to see the Add Card button at top of list](https://github.com/wekan/wekan/pull/1392);
|
||||
* [Add mixmax:smart-disconnect to lower CPU usage when browser tab is not selected](https://github.com/wekan/wekan-mongodb/issues/2);
|
||||
* Update tranlations. Add Latvian language;
|
||||
* Update to Node 4.8.6 and MongoDB 3.2.18.
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Bug on not being able to see Admin Panel if not having access to Board List](https://github.com/wekan/wekan/pull/1371);
|
||||
* [Bug on not able to see member avatar on sidebar activity](https://github.com/wekan/wekan/pull/1380);
|
||||
* [Don't open swipebox on update card cover / download file / delete file](https://github.com/wekan/wekan/pull/1386);
|
||||
* [Boards subscription should be placed at header for all other component can be used](https://github.com/wekan/wekan/pull/1381);
|
||||
* [Bug on long url of attachment in card activity log](https://github.com/wekan/wekan/pull/1388).
|
||||
|
||||
Thanks to GitHub users mfshiu, thuanpq and xet7 for their contributions.
|
||||
Thanks to translators for their translations.
|
||||
|
||||
# v0.60 2017-11-29 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Add SMTP test email button to Standalone Wekan Admin Panel](https://github.com/wekan/wekan/pull/1359);
|
||||
* [Optimize for mobile web, show single list per page with navigate bar](https://github.com/wekan/wekan/pull/1365).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [User with comment only permissions can remove another user from a card](https://github.com/wekan/wekan/pull/1352);
|
||||
* [Frequent Subscriptions problem that make Excessive CPU usage](https://github.com/wekan/wekan/pull/1363).
|
||||
|
||||
Thanks to GitHub users floatinghotpot, mfshiu and nztqa for their contributions.
|
||||
|
||||
# v0.59 2017-11-23 Wekan release.
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* [Remove incomplete logger fix](https://github.com/wekan/wekan/pull/1352).
|
||||
|
||||
Thanks to GitHub user pierreozoux for contributions.
|
||||
|
||||
# v0.58 2017-11-23 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* Updated translations.
|
||||
|
||||
Thanks to all translators.
|
||||
|
||||
# v0.57 2017-11-23 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Gogs Integration](https://github.com/wekan/wekan-gogs) as separate project. Please test and submit issues and pull requests to that project.
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Fix Winston logger](https://github.com/wekan/wekan/pull/1350).
|
||||
|
||||
Thanks to GitHub users andresmanelli and pierreozoux for their contributions.
|
||||
|
||||
# v0.56 2017-11-21 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Copy/Move cards to other board in Standalone Wekan](https://github.com/wekan/wekan/pull/1330);
|
||||
* [Spent time/Overtime on card](https://github.com/wekan/wekan/pull/1344);
|
||||
* New translation: Greek.
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Board list with long-description boards not visible](https://github.com/wekan/wekan/pull/1346);
|
||||
* [Remove erroneous minicard title whitespace](https://github.com/wekan/wekan/pull/1347);
|
||||
* [Fix title editing with shift key at card details](https://github.com/wekan/wekan/pull/1348).
|
||||
|
||||
Thanks to GitHub users couscous3, GhassenRjab, thuanpq and xet7 for their contributions.
|
||||
|
||||
# v0.55 2017-11-19 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Markdown in card/minicard/checlist titles and checklist items. Next line: Shift+Enter. Submit: Enter.](https://github.com/wekan/wekan/pull/1334);
|
||||
* [User Admin to Admin Panel: List users. Change: is user admin, name, fullname, email address, is user active. Not changing password yet.](https://github.com/wekan/wekan/pull/1325);
|
||||
* [REST API better error output](https://github.com/wekan/wekan/pull/1323).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Emoji detection breaks MAC addresses](https://github.com/wekan/wekan/issues/1248); - this has not yet fixed all cases.
|
||||
* [Codeblocks should not be scanned for emoji](https://github.com/wekan/wekan/issues/643);
|
||||
* [Whitespace trimming breaks Markdown code block indentation](https://github.com/wekan/wekan/issues/1288):
|
||||
* [Helper to list boards for user](https://github.com/wekan/wekan/pull/1327);
|
||||
* [Error after sending invitation and joining board: Exception while invoking method 'login' TypeError: Cannot read property 'loginDisabled' of undefined](https://github.com/wekan/wekan/issues/1331);
|
||||
* [Invitation /sign-up page did not show input for invitation code](https://github.com/wekan/wekan/commit/99be745f0299b32a8a7b30204b43bff7fd5ba638).
|
||||
|
||||
Thanks to Github users brooksbecton, milesibastos, nztqa, soohwa, thuanpq and xet7 for their contributions.
|
||||
|
||||
# v0.54 2017-11-02 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Soft WIP Limit](https://github.com/wekan/wekan/pull/1319).
|
||||
|
||||
Thanks to GitHub users amadilsons and xet7 for their contributions.
|
||||
|
||||
# v0.53 2017-11-02 Wekan release
|
||||
|
||||
(This was canceled, it had some missing version numbers).
|
||||
|
||||
# v0.52 2017-10-31 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Permit editing WIP limit](https://github.com/wekan/wekan/pull/1312);
|
||||
* [Image attachment resize on smaller screens and swipebox](https://github.com/wekan/wekan/pull/1315);
|
||||
* [Add iPhone favicon for Wekan](https://github.com/wekan/wekan/issues/1317).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Members do not get included on board import from Wekan](https://github.com/wekan/wekan/pull/1316).
|
||||
|
||||
Thanks to GitHub users brooksbecton, guillaumebriday, nztqa, ocdtrekkie and Tentoe for their contributions.
|
||||
|
||||
# v0.51 2017-10-25 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [REST API: Disable and enable user login. Take ownership boards of a user. List boards of user.](https://github.com/wekan/wekan/pull/1296);
|
||||
* [Add translation: Spanish of Argentina](https://github.com/wekan/wekan/commit/b105f0e2e72c49a2f1ba3f6c87532a5418192386);
|
||||
* [Add more languages to Roboto font](https://github.com/wekan/wekan/issues/1299).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Segfault on Alpine Linux](https://github.com/wekan/wekan/issues/1303);
|
||||
* [Change invitation link from sign-in to sign-up](https://github.com/wekan/wekan/issues/1300);
|
||||
* [User with comment only permission can add cards](https://github.com/wekan/wekan/issues/1301).
|
||||
|
||||
Thanks to GitHub users chromas-cro, soohwa, wenerme and xet7 for their contributions.
|
||||
|
||||
# v0.50 2017-10-10 Wekan release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* [Fix and update translations](https://github.com/wekan/wekan/issues/1286).
|
||||
|
||||
Thanks to GitHub user xet7 for contributions.
|
||||
|
||||
# v0.49 2017-10-09 Wekan release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* [When WIP limit in use, hide also add card + button at top of list](https://github.com/wekan/wekan/commit/a5daf5dc29278b82e133fbe4db09a91ffc0c0d3b).
|
||||
|
||||
Thanks to GitHub user xet7 for contributions.
|
||||
|
||||
# v0.48 2017-10-09 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [WIP Limits](https://github.com/wekan/wekan/pull/1278);
|
||||
* [REST API: Create user despite disabling registration](https://github.com/wekan/wekan/issues/1232);
|
||||
* [User can leave board on Standalone Wekan](https://github.com/wekan/wekan/pull/1283).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Admin announcement can be viewed without signing in](https://github.com/wekan/wekan/issues/1281).
|
||||
|
||||
Thanks to GitHub users amadilsons, nztqa and soohwa for their contributions.
|
||||
|
||||
# v0.47 2017-10-04 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Use theme color for Slider for Comments only](https://github.com/wekan/wekan/pull/1275).
|
||||
|
||||
Thanks to GitHub user nztqa for contributions.
|
||||
|
||||
# v0.46 2017-10-03 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Webhook parameters and response order](https://github.com/wekan/wekan/pull/1263).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* SECURITY FIX: [Meteor allow/deny](https://blog.meteor.com/meteor-allow-deny-vulnerability-disclosure-baf398f47b25) fixed
|
||||
[here](https://github.com/wekan/wekan/commit/c3804dc0fad0817285460d86dc1b3bdc96361f49);
|
||||
* [Fix: Slider for Comments only does not work correctly with over 21 activities](https://github.com/wekan/wekan/pull/1247).
|
||||
|
||||
Thanks to GitHub users andresmanelli and nztqa for their contributions.
|
||||
|
||||
# v0.45 2017-10-01 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Slider for Comments only in activity feed](https://github.com/wekan/wekan/issues/1247);
|
||||
* [Site Wide Announcement](https://github.com/wekan/wekan/pull/1260).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Data inconsistency when copying card](https://github.com/wekan/wekan/pull/1246). Note: There is no feature for copying card attachment yet;
|
||||
* [Hide create label from normal users, because only board admin can create labels](https://github.com/wekan/wekan/pull/1261).
|
||||
|
||||
Thanks to GitHub user nztqa for contributions.
|
||||
|
||||
# v0.44 2017-09-30 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Confirm popup appears before Checklist Delete](https://github.com/wekan/wekan/pull/1257).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Fix errors when importing from Trello](https://github.com/wekan/wekan/pull/1259).
|
||||
|
||||
Thanks to GitHub users amadilsons and GhassenRjab for their contributions.
|
||||
|
||||
# v0.43 2017-09-25 Wekan release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* [Add emojis back, because removing them broke local dev Sandstorm](https://github.com/wekan/wekan/issues/1248).
|
||||
|
||||
Thanks to GitHub user xet7 for contributions.
|
||||
|
||||
# v0.42 2017-09-25 Wekan release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* [Remove emoji support, because it breaks MAC addresses, urls, code etc](https://github.com/wekan/wekan/issues/1248).
|
||||
|
||||
Thanks to GitHub user xet7 for contributions.
|
||||
|
||||
# v0.41 2017-09-25 Wekan release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* [Can't create user and login after install. Reverting REST API: Create user despite disabling registration](https://github.com/wekan/wekan/issues/1249).
|
||||
|
||||
Thanks to GitHub user xet7 for contributions.
|
||||
|
||||
# v0.40 2017-09-25 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Add translations (en/de/fi) for email notifications regarding checklists and checklist
|
||||
items](https://github.com/wekan/wekan/pull/1238);
|
||||
* [Added plus button to add card on top of the list](https://github.com/wekan/wekan/pull/1244);
|
||||
* [REST API: Create user despite disabling registration](https://github.com/wekan/wekan/issues/1232).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Checklist items are lost when moving items to another checklist](https://github.com/wekan/wekan/pull/1240);
|
||||
* [Keep state of checklist items when moved to another checklist](https://github.com/wekan/wekan/pull/1242).
|
||||
|
||||
Thanks to GitHub users GhassenRjab, mario-orlicky, soohwa, umbertooo and xet7 for their contributions.
|
||||
|
||||
# v0.39 2017-09-18 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Import checklist sort attributes from Wekan and Trello](https://github.com/wekan/wekan/pull/1226).
|
||||
|
||||
Thanks to GitHub user GhassenRjab for contributions.
|
||||
|
||||
# v0.38 2017-09-14 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Reorder checklists. Move checklist item to another checklist.](https://github.com/wekan/wekan/pull/1215);
|
||||
* [Card title is now pre-filled in copy card dialog](https://github.com/wekan/wekan/pull/1214).
|
||||
|
||||
Thanks to GitHub user frmwrk123 for contributions.
|
||||
|
||||
# v0.37 2017-09-09 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Copy card within one board](https://github.com/wekan/wekan/pull/1204).
|
||||
|
||||
Thanks to GitHub user frmwrk123 for contributions.
|
||||
|
||||
# v0.36 2017-09-02 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Import attachments related activities from Wekan and
|
||||
Trello](https://github.com/wekan/wekan/pull/1202).
|
||||
|
||||
Thanks to GitHub user GhassenRjab for contributions.
|
||||
|
||||
# v0.35 2017-09-02 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Add more than one Outgoing Webhook](https://github.com/wekan/wekan/pull/1199).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Fix errors caused by checklist items activities](https://github.com/wekan/wekan/pull/1200).
|
||||
|
||||
Thanks to GitHub users andresmanelli, GhassenRjab and nztqa for contributions.
|
||||
|
||||
# v0.34 2017-08-30 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Import Trello and Wekan board times of creation of activities](https://github.com/wekan/wekan/pull/1187);
|
||||
* Newest Wekan is available at Sandstorm App Market.
|
||||
|
||||
Known issues:
|
||||
|
||||
* [Attachment creation times are not imported to Trello and Wekan](https://github.com/wekan/wekan/issues/1157).
|
||||
- This is fixed in v0.36.
|
||||
|
||||
Thanks to GitHub user GhassenRjab for contributions.
|
||||
|
||||
# v0.33 2017-08-29 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Add Bounties and Commercial Support to wiki](https://github.com/wekan/wekan/wiki);
|
||||
* [Add display Wekan version number and runtime
|
||||
environment to Admin Panel](https://github.com/wekan/wekan/pull/1156);
|
||||
* [Change Email address](https://github.com/wekan/wekan/pull/1161);
|
||||
* [Ubuntu snap: Use version scriptlet](https://github.com/wekan/wekan/pull/1164);
|
||||
* [Gogs integration part 1](https://github.com/wekan/wekan/pull/1189);
|
||||
* [Add web manifest so Wekan can be used like standalone app on Desktop
|
||||
with Chrome or Firefox](https://github.com/wekan/wekan/pull/1184);
|
||||
* [Copy card link to clipboard](https://github.com/wekan/wekan/issues/1188);
|
||||
* [Usernames can now include dots (.)](https://github.com/wekan/wekan/pull/1194).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Fix Squeezed tickbox in Card](https://github.com/wekan/wekan/pull/1171);
|
||||
* [Percent-encode SMTP password to prevent URI malformed
|
||||
errors](https://github.com/wekan/wekan/pull/1190);
|
||||
* [Fix Wekan Import Export on Standalone and Sandstorm](https://github.com/wekan/wekan/pull/1197).
|
||||
|
||||
Thanks to GitHub users andresmanelli, danhawkes, GhassenRjab, jonasob, kubiko, nztqa,
|
||||
pkuhner and xet7 for their contributions.
|
||||
|
||||
# v0.32 2017-07-30 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Add dwrensha's Sandstorm patch to Wekan so it does not need to be maintained
|
||||
separately](https://github.com/wekan/wekan/commit/bda15daa78556223117a5846941aafd1212f14d3).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [FIX SECURITY ISSUE Files accessible without authentication](https://github.com/wekan/wekan/issues/1105);
|
||||
* [Fix showing card activity history in IE11](https://github.com/wekan/wekan/pull/1152).
|
||||
|
||||
Thanks to GitHub users dwrensha, GhassenRjab and nztqa for their contributions.
|
||||
|
||||
# v0.31 2017-07-30 Wekan release
|
||||
|
||||
* This was broken, having lint errors.
|
||||
|
||||
# v0.30 2017-07-27 Wekan release
|
||||
|
||||
SECURITY ISSUE [Files accessible without authentication](https://github.com/wekan/wekan/issues/1105)
|
||||
IS NOT FIXED YET.
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [More screenshots at Features page](https://github.com/wekan/wekan/wiki/Features);
|
||||
* [Export and import boards in Sandstorm](https://github.com/wekan/wekan/pull/1144);
|
||||
* [GitHub Issue template](https://github.com/wekan/wekan/pull/1146);
|
||||
* [Add checklist items to activity log](https://github.com/wekan/wekan/pull/1148).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Double shashes on ROOT_URL](https://github.com/wekan/wekan/issues/962).
|
||||
|
||||
Thanks to GitHub users GhassenRjab, nztqa and xet7 for their contributions.
|
||||
|
||||
# v0.29 2017-07-21 Wekan release
|
||||
|
||||
SECURITY ISSUE [Files accessible without authentication](https://github.com/wekan/wekan/issues/1105)
|
||||
IS NOT FIXED YET.
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Export and import attachments as base64 encoded files](https://github.com/wekan/wekan/pull/1134);
|
||||
* [Export and import checklists](https://github.com/wekan/wekan/pull/1140).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Activity user messed up when creating a card using the REST-API](https://github.com/wekan/wekan/pull/1116).
|
||||
|
||||
Thanks to GitHub users GhassenRjab and zarnifoulette for their contributions.
|
||||
|
||||
# v0.28 2017-07-15 Wekan release
|
||||
|
||||
SECURITY ISSUE [Files accessible without authentication](https://github.com/wekan/wekan/issues/1105)
|
||||
IS NOT FIXED YET.
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [REST API: Add PUT method to update a card](https://github.com/wekan/wekan/pull/1095) and
|
||||
[related fix](https://github.com/wekan/wekan/pull/1097);
|
||||
* [When finished input of checklist item, open new checklist
|
||||
item](https://github.com/wekan/wekan/pull/1099);
|
||||
* [Improve UI design of checklist items](https://github.com/wekan/wekan/pull/1108);
|
||||
* [Import Wekan board](https://github.com/wekan/wekan/pull/1117);
|
||||
* [Outgoing Webhooks](https://github.com/wekan/wekan/pull/1119);
|
||||
* [Wekan wiki now has menu with categories](https://github.com/wekan/wekan/wiki).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [SECURITY: Upgrade Node.js, MongoDB and Debian on Docker and Ubuntu snap edge](https://github.com/wekan/wekan/pull/1132);
|
||||
* [Possible to add empty item to checklist](https://github.com/wekan/wekan/pull/1107);
|
||||
* [Double-slash issue](https://github.com/wekan/wekan/pull/1114);
|
||||
* [Node.js crash when adding new user to board](https://github.com/wekan/wekan/issues/1131).
|
||||
|
||||
Thanks to GitHub users GhassenRjab, johnleeming, jtickle, nztqa, xet7 and zarnifoulette
|
||||
for their contributions.
|
||||
|
||||
# v0.27 2017-06-28 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Snapcraft build support from source](https://github.com/wekan/wekan/pull/1091).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Fix incorrect attachment link with subfolder in the url](https://github.com/wekan/wekan/pull/1086);
|
||||
* [Fix link to card](https://github.com/wekan/wekan/pull/1087);
|
||||
* [Fix duplicate id generation](https://github.com/wekan/wekan/pull/1093).
|
||||
|
||||
Thanks to GitHub users kubiko and nztqa for their contributions.
|
||||
|
||||
# v0.26 2017-06-26 Wekan release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* [Fix admin panel route for subfolder](https://github.com/wekan/wekan/pull/1084);
|
||||
* [Fix i18n route for subfolder](https://github.com/wekan/wekan/pull/1085).
|
||||
|
||||
Thanks to GitHub user nztqa for contributions.
|
||||
|
||||
# v0.25 2017-06-24 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Import due date from Trello](https://github.com/wekan/wekan/pull/1082).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Fix importing Trello board: Attribute correct members to their
|
||||
comments](https://github.com/wekan/wekan/pull/1080);
|
||||
* [Fix Case-sensitive email handling](https://github.com/wekan/wekan/issues/675);
|
||||
* [Use fibers 1.0.15 because 2.0.0 is broken](https://github.com/wekan/wekan/commit/86e2744c24149c0eacf725b68a186d0bcfae5100);
|
||||
* [Remove git submodules, so that git clone of Wekan repo works now on Windows](https://github.com/wekan/wekan/issues/977).
|
||||
|
||||
Thanks to GitHub users GhassenRjab, nztqa and xet7 for their contributions.
|
||||
|
||||
# v0.24 2017-06-21 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Change the way to delete a list (card-like)](https://github.com/wekan/wekan/pull/1050), fixes
|
||||
[missing undo button](https://github.com/wekan/wekan/issues/1023);
|
||||
* [When deleting list, delete list's cards too](https://github.com/wekan/wekan/pull/1054);
|
||||
* [Re-enable Export Wekan Board](https://github.com/wekan/wekan/pull/1059);
|
||||
* [Sort languages by their translated names](https://github.com/wekan/wekan/pull/1070);
|
||||
* [Add Breton language name](https://github.com/wekan/wekan/pull/1071).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [Fix Admin Panel link available to all users, only link is hidden](https://github.com/wekan/wekan/pull/1076);
|
||||
* [Fix IE 11 drag board to scroll](https://github.com/wekan/wekan/pull/1052);
|
||||
* [Fix Export Wekan board](https://github.com/wekan/wekan/pull/1067);
|
||||
* [Fix "W" shortcut binding](https://github.com/wekan/wekan/pull/1066);
|
||||
* [Fix login url in invitation email](https://github.com/wekan/wekan/issues/993);
|
||||
* [Edit card description with invalid markdown](https://github.com/wekan/wekan/pull/1073);
|
||||
* [Fix filter reset on moving between starred boards](https://github.com/wekan/wekan/pull/1074).
|
||||
|
||||
Thanks to GitHub users BaobabCoder, GhassenRjab, nebulade, nztqa and xet7
|
||||
for their contributions.
|
||||
|
||||
# v0.23 2017-05-21 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [Add checklist and card comment to REST API](https://github.com/wekan/wekan/pull/1033);
|
||||
* [Add token authentication to REST API](https://github.com/wekan/wekan/pull/1033), this fixes
|
||||
[Security flaws introduced by REST API](https://github.com/wekan/wekan/issues/1032);
|
||||
* [Authorization improvements etc to REST API](https://github.com/wekan/wekan/pull/1041);
|
||||
* [IE 11 support in unicode filename downloads](https://github.com/wekan/wekan/issues/1031).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* [When Wekan starts, there's "here1 false" messages in
|
||||
console](https://github.com/wekan/wekan/issues/1028);
|
||||
* [IE11 problem when closing cards, sidebar etc](https://github.com/wekan/wekan/pull/1042).
|
||||
|
||||
Thanks to GitHub users huneau, mayjs and nztqa for their contributions.
|
||||
|
||||
# v0.22 2017-05-07 Wekan release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* [Download file(unicode filename) cause crash with exception](https://github.com/wekan/wekan/issues/784)
|
||||
|
||||
Thanks to GitHub user yatusiter for contributions.
|
||||
|
||||
# v0.21 2017-05-07 Wekan release
|
||||
|
||||
Known bugs:
|
||||
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* Update release version number to package.json.
|
||||
|
||||
Thanks to GitHub user xet7 for contributions.
|
||||
|
||||
# v0.20 2017-05-07 Wekan release
|
||||
|
||||
Known bugs:
|
||||
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* Docker images missing latest Debian updates.
|
||||
|
||||
Thanks to GitHub user xet7 for contributions.
|
||||
|
||||
# v0.19 2017-05-06 Wekan release
|
||||
|
||||
Known bugs:
|
||||
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* Set first user as admin, it there is no existing
|
||||
users and Wekan is not running at Sandstorm;
|
||||
* New Docker Compose [Wekan-MongoDB](https://github.com/wekan/wekan-mongodb)
|
||||
and [Wekan-PostgreSQL](https://github.com/wekan/wekan-postgresql)
|
||||
that use Meteor v1.4 and Node v4 based Wekan's meteor-1.4 branch;
|
||||
* [Console, file, and zulip logger on database changes](https://github.com/wekan/wekan/pull/1010);
|
||||
* [REST API first step](https://github.com/wekan/wekan/pull/1003);
|
||||
* [Install from source](https://github.com/wekan/wekan/wiki/Install-and-Update#install-manually-from-source)
|
||||
has been updated to new meteor 1.4 version;
|
||||
* meteor-1.4 branch has been merged to devel and master branches,
|
||||
where development continues from now on. Previous code has been moved to
|
||||
meteor-1.3-2017-04-27 branch;
|
||||
* [VirtualBox image updated](https://wekan.xet7.org).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* isCommentOnly false fix for Trello import;
|
||||
* Node version to 4.8.1 to solve 100% CPU issue;
|
||||
* Fix bson error on Docker and install from source;
|
||||
* Try other key servers on Dockerfile if ha.pool.sks-keyservers.net is unreachable.
|
||||
|
||||
Thanks to GitHub users brylie, huneau, johnniesong, rhelsing, stephenmoloney,
|
||||
xet7 and Zokormazo for contributions.
|
||||
|
||||
# v0.18 2017-04-02 Wekan release
|
||||
|
||||
Known bugs:
|
||||
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* Add TLS toggle option to smtp configuration;
|
||||
* [Comment permissions](https://github.com/wekan/wekan/issues/870);
|
||||
* Add bigger screenshots for Sandstorm.
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* Fix email settings loading:
|
||||
MAIL_URL was overriden with database info all the time.
|
||||
Now if MAIL_URL exists is not overwritten and if neither MAIL_URL nor
|
||||
exists valid admin panel data MAIL_URL is not set.
|
||||
MAIL_FROM was ignored. Same behaviour, env variable has bigger priority
|
||||
than database configuration.
|
||||
On both cases, althought environment variable is set, updating admin-panel
|
||||
mail settings will load new info and ignore the environment variable;
|
||||
* Dockerfile fix for local packages;
|
||||
* Don't send emails if missing smtp host;
|
||||
* Remove invitation code if email sending failed;
|
||||
* Show customized error msg while invitation code is wrong during registration;
|
||||
* Fix "internal error" while registration is done;
|
||||
* Fix "cannot access disableRegistration of undefined" error;
|
||||
* Add high available server for getting the gpg keys - suppose it should lead
|
||||
to fewer failures on getting the gpg keys leading to some rare build failures;
|
||||
* Add a docker build to the .travis.yml - this will help determine if pull
|
||||
requests need further review before merging into devel;
|
||||
* Use navigator language by default instead of English.
|
||||
|
||||
Thanks to GitHub users JamborJan, lkisme, rhelsing, Serubin, stephenmoloney,
|
||||
umbertooo and Zokormazo for their contributions.
|
||||
|
||||
# v0.17 2017-03-25 Wekan release
|
||||
|
||||
Known bugs:
|
||||
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
* Double slash problem on card pop-ups;
|
||||
* No need for Array.prototype if using rest operator;
|
||||
* Fix default font so Chinese is shown correctly.
|
||||
Still looking for better solution for #914 although
|
||||
commit had wrong number #707.
|
||||
|
||||
Thanks to GitHub users mo-han, Serubin and vuxor for
|
||||
their contributions.
|
||||
|
||||
# v0.16 2017-03-15 Wekan release
|
||||
|
||||
Added missing changelog updates.
|
||||
|
||||
# v0.15 2017-03-15 Wekan release
|
||||
|
||||
Updated translations.
|
||||
|
||||
# v0.14 2017-03-15 Wekan release
|
||||
|
||||
Known bugs:
|
||||
|
||||
* https://github.com/wekan/wekan/issues/785
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release fixes the following bug:
|
||||
|
||||
* Set IE compatibility mode to Edge to so that
|
||||
Wekan board loads correctly.
|
||||
|
||||
Thanks to GitHub users immertroll and REJack for
|
||||
their contributions.
|
||||
|
||||
# v0.13 2017-03-12 Wekan release
|
||||
|
||||
Known bugs:
|
||||
|
||||
* https://github.com/wekan/wekan/issues/785
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release fixes the following bug:
|
||||
|
||||
* Admin Panel: Set mail-from to environment immediately after changed,
|
||||
allow user set a blank username and password pair in SMTP setting.
|
||||
|
||||
Thanks to GitHub user lkisme for contributions.
|
||||
|
||||
# v0.12 2017-03-05 Wekan release
|
||||
|
||||
Known bugs:
|
||||
|
||||
* https://github.com/wekan/wekan/issues/785
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* Import Checklists from Trello;
|
||||
* Simplified release numbers of Wekan.
|
||||
|
||||
Thanks to GitHub users whodafly and xet7 for
|
||||
their contributions.
|
||||
|
||||
# v0.11.1-rc2 2017-03-05 Wekan prerelease
|
||||
|
||||
Known bugs:
|
||||
|
||||
* https://github.com/wekan/wekan/issues/785
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release adds the following supported platforms:
|
||||
|
||||
* [Docker environment for Wekan development](https://github.com/wekan/wekan-dev);
|
||||
* [Wekan <=> MongoDB <=> ToroDB => PostgreSQL read-only
|
||||
mirroring](https://github.com/wekan/wekan-postgresql)
|
||||
for SQL access with any programming language
|
||||
or Office package that has PostgreSQL support, like
|
||||
newest LibreOffice 3.5;
|
||||
* [Install from source on
|
||||
Windows](https://github.com/wekan/wekan/wiki/Install-Wekan-from-source-on-Windows).
|
||||
|
||||
and adds the following new features:
|
||||
|
||||
* Admin Panel:
|
||||
```
|
||||
1) Disable Self-Registration and invite users
|
||||
2) SMTP settings.
|
||||
|
||||
Adding Admin user in mongo cli:
|
||||
1) Use database that has wekan data, for example:
|
||||
use admin;
|
||||
2) Add Admin rights to some Wekan username:
|
||||
db.users.update({username:'admin-username-here'},{$set:{isAdmin:true}})
|
||||
Hiding Admin panel by removing Admin rights:
|
||||
use admin;
|
||||
db.settings.remove({});
|
||||
```
|
||||
* Make Due Date layout nicer on minicard;
|
||||
* Added tooltip for board menu and sidebar buttons;
|
||||
* [Wekan database cleanup script](https://github.com/wekan/wekan-cleanup);
|
||||
* [Daily export script of Wekan changes as JSON to Logstash and
|
||||
ElasticSearch / Kibana (ELK)](https://github.com/wekan/wekan-logstash);
|
||||
* [Wekan stats script](https://github.com/wekan/wekan-stats).
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* Dockerfile was missing EXPOSE $PORT;
|
||||
* Bug when removing user from board that generate activity for
|
||||
all cards of the board. Add check before user is one owner
|
||||
of the card before adding activity;
|
||||
* All new boards are automatically starred. Fixed to
|
||||
only star header-bar new-boards;
|
||||
* Orphan documents were created when cards were deleted;
|
||||
* Improve Wekan performance by adding indexes to MongoDB;
|
||||
* Invite user with lower case email;
|
||||
* Typos.
|
||||
|
||||
Thanks to GitHub users eemeli, entrptaher, fmonthel, jLouzado, lkisme,
|
||||
maulal, pra85, vuxor, whittssg2 and xet7 for their contributions.
|
||||
|
||||
# v0.11.1-rc1 2017-02-10 Wekan prerelease
|
||||
|
||||
2017-01-29 mquandalle gave Wekan access to xet7,
|
||||
so at 2017-01-31 xet7 started merging Wefork back to Wekan.
|
||||
At 2017-02-03 all Wefork code and pull requests are now
|
||||
merged back to Wekan.
|
||||
|
||||
Known bugs:
|
||||
* https://github.com/wekan/wekan/issues/785
|
||||
* https://github.com/wekan/wekan/issues/784
|
||||
|
||||
This release adds the following supported platforms:
|
||||
|
||||
* Docker;
|
||||
* Docker on SLES12SP1;
|
||||
* Install from source.
|
||||
|
||||
and adds the following new features:
|
||||
|
||||
* Checklists;
|
||||
* Remove a list;
|
||||
* Admin of board can leave board if he/she
|
||||
is not last admin in the board;
|
||||
* Shortcuts popup, link to it on
|
||||
bottom right corner;
|
||||
* Links are now underlined and change
|
||||
link color on hover;
|
||||
* Added YuGothic and Meiryo fonts to show
|
||||
non-English text correctly.
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* Update xss to v0.3.3;
|
||||
* Typos in boards.js and boardHeader.js;
|
||||
* Build warning in jade template;
|
||||
* New MongoDB version breaks uploading files
|
||||
and avatars, so using older version;
|
||||
* Tweaked .gitignore to exclude .build/*;
|
||||
* Fix executeUpTo label when dragging cards,
|
||||
popup was not in the predefined hierarchy.
|
||||
|
||||
and adds the following new documentation:
|
||||
|
||||
* Developer Documentation;
|
||||
* Docker;
|
||||
* and others.
|
||||
|
||||
Thanks to GitHub users AlexanderR, BaobabCoder, jLouzado, kamijin-fanta,
|
||||
lkisme, mario-orlicky, martingabelmann, mquandalle, stephenmoloney,
|
||||
umbertooo, xet7 and qge for their contributions.
|
||||
|
||||
# v0.11.0 2016-12-16 Wekan fork first release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* Start- and Duedate for cards;
|
||||
* Allow IE 11 to work;
|
||||
* Option to hide system messages in the card;
|
||||
* Option to setup minimum limit to show cards count
|
||||
for each list in board;
|
||||
* Option 'filter by empty' to filter by cards by 'no member'
|
||||
and 'no label' properties;
|
||||
* Speedup: Added MongoDB index on CardId into Comments collection.
|
||||
* Translation updates
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* Sandstorm: username handling, restore identity, eslint regressions,
|
||||
board not found;
|
||||
* Failure to load when navigator.language is Chinese or Finnish;
|
||||
* Hover background for labels in filter sidebar. Now correctly
|
||||
centered;
|
||||
* Display message when user wants to choose existing username;
|
||||
* Client sometimes fails to receive current user's profile;
|
||||
* Old users could see broken presence indicators on new users.
|
||||
|
||||
Thanks to GitHub users dwrencha, fmonthel, mario-orlicky, pierreozoux,
|
||||
shoetten, and xet7 for their contributions.
|
||||
|
||||
# v0.11.0-rc2 2016-07-21
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* Notification system with email notifications of the changes in a board,
|
||||
a list or on a card;
|
||||
* Show the exact time when hovering the activity time;
|
||||
* Allow to edit more easily longer card titles by resizing the input box;
|
||||
* Add shortcuts to move cards to the top or the bottom of a list;
|
||||
* Add a warning indicator when the application is offline;
|
||||
* A new log-in button on the public board view to sign in, even if the board
|
||||
is published;
|
||||
* New link to the keyboard shortcuts in the board sidebar;
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
* Fix the syntax of the `docker-compose.yml`;
|
||||
* Use the correct pluralization of emoji;
|
||||
* Only publish required user data and keep the hashed passwords confidential;
|
||||
* Fix the generation and alignment of the initials avatars;
|
||||
* Fix the “welcome board” feature;
|
||||
* Only display the buttons in the board header, if the data is available
|
||||
and the user is able to use it;
|
||||
* Fix the scaling of cover images;
|
||||
* Fix bugs on Internet Explorer v11 that blocked card creation and activity feed
|
||||
visualization.
|
||||
|
||||
Thanks to GitHub users alayek, AlexanderS, choclin, floatinghotpot, ForNeVeR,
|
||||
PeterDaveHello, seschwar, and TheElf for their contributions.
|
||||
|
||||
# v0.10.1 2015-12-30
|
||||
|
||||
This patch release fixes two bugs on Sandstorm:
|
||||
|
||||
* Drag and drop was broken;
|
||||
* Avatars weren’t working.
|
||||
|
||||
# v0.10 2015-12-22
|
||||
|
||||
This release features:
|
||||
|
||||
* Trello boards and cards importation, including card history, assigned members,
|
||||
labels, comments, and attachments;
|
||||
* Invite new users to a board using a email address;
|
||||
* Trello boards importation, including card history, assigned members, labels,
|
||||
comments, and attachments;
|
||||
* Invite new users to a board using an email address;
|
||||
* Autocompletion in the minicard editor. Start with <kbd>@</kbd> to start a
|
||||
board member autocompletion, or <kbd>#</kbd> for a label;
|
||||
* Improve the user interface on small screens so that Wekan could be used on the
|
||||
mobile web;
|
||||
* Accelerate the initial page rendering by sending the data on the intial HTTP
|
||||
* Accelerate the initial page rendering by sending the data on the initial HTTP
|
||||
response instead of waiting for the DDP connection to open;
|
||||
* Support images attachments copy pasting;
|
||||
* On Sandstorm, expose the Wekan grain title and URL to the Sandstorm shell;
|
||||
@@ -20,7 +917,7 @@ New languages supported: Arabic, Catalan, Italian, and Russian.
|
||||
Thanks to GitHub users AlexanderS, fisle, floatinghotpot, FuzzyWuzzie, mnutt,
|
||||
ndarilek, SirCmpwn, and xavierpriour for their contributions.
|
||||
|
||||
# v0.9
|
||||
# v0.9 2015-09-10
|
||||
|
||||
This release is a large re-write of the previous code base. This release marks
|
||||
the beginning of our new user interface and continues to improve the overall
|
||||
@@ -30,7 +927,7 @@ performance and security. It also features the following improvements:
|
||||
password, to change the password, or to enable email confirmation (all of
|
||||
which were previously impossible);
|
||||
* Avatar customization, including the possibility to upload images and to choose
|
||||
one from Gravatar or the user initials (on Sandstrom we use the avatar exposed
|
||||
one from Gravatar or the user initials (on Sandstorm we use the avatar exposed
|
||||
by Sandstorm);
|
||||
* Cards multi-selection to facilitate batch actions such as moving all the cards
|
||||
of selection, or attaching a label or a member to them;
|
||||
@@ -91,8 +988,8 @@ the popover was new). New features includes:
|
||||
* Assign and unassign members to cards;
|
||||
* Archive cards (though restoration is not yet possible);
|
||||
* Board stars;
|
||||
* Markdown and emojies support in comments and card description;
|
||||
* Emojies auto-completion in the text editor;
|
||||
* Markdown and emoji support in comments and card description;
|
||||
* Emoji auto-completion in the text editor;
|
||||
* Some keyboard shortcuts (eg `Ctrl`+`Enter` to submit a multi-line input).
|
||||
|
||||
We also introduced basic support for the [Sandstorm](https://sandstorm.io)
|
||||
|
||||
+2
-59
@@ -1,62 +1,5 @@
|
||||
# Contributing
|
||||
|
||||
We’re glad you’re interested in helping the Wekan project! We welcome bug
|
||||
reports, enhancement ideas, and pull requests, in our GitHub bug tracker. Before
|
||||
opening a new thread please verify that your issue hasn’t already been reported.
|
||||
Please see wiki for all documentation:
|
||||
|
||||
<https://github.com/wekan/wekan>
|
||||
|
||||
## Security Disclosure
|
||||
|
||||
Security is very important to us. If discover any issue regarding security,
|
||||
please disclose the information responsibly by sending an email to
|
||||
security@wekan.io and not by creating a GitHub issue.
|
||||
|
||||
## Translations
|
||||
|
||||
You are encouraged to translate (or improve the translation of) Wekan in your
|
||||
locale language. For that purpose we rely on
|
||||
[Transifex](https://www.transifex.com/projects/p/wekan). So the first step is to
|
||||
create a Transifex account if you don’t have one already. You can then send a
|
||||
request to join one of the translation teams. If there we will create a new one.
|
||||
|
||||
Once you are in a team you can start translating the application. Please take a
|
||||
look at the glossary so you can agree with other (present and future)
|
||||
contributors on words to use to translate key concepts in the application like
|
||||
“boards” and “cards”.
|
||||
|
||||
The original application is written in English, and if you want to contribute to
|
||||
the application itself, you are asked to fill the `i18n/en.i18n.json` file. When
|
||||
you do that the new strings of text to translate automatically appears on
|
||||
Transifex to be translated (the refresh may take a few hours).
|
||||
|
||||
We pull all translations from Transifex before every new Wekan release
|
||||
candidate, ask the translators to review the app, and pull all translations
|
||||
again for the final release.
|
||||
|
||||
## Installation
|
||||
|
||||
Wekan is made with [Meteor](https://www.meteor.com). Thus the easiest way to
|
||||
start hacking is by installing the framework, cloning the git repository, and
|
||||
launching the application:
|
||||
|
||||
```bash
|
||||
$ curl https://install.meteor.com/ | sh # On Mac or Linux
|
||||
$ git clone https://github.com/wekan/wekan.git
|
||||
$ cd wekan
|
||||
$ meteor
|
||||
```
|
||||
|
||||
As for any Meteor application, Wekan is automatically refreshed when you change
|
||||
any file of the source code, just play with it to see how it behaves!
|
||||
|
||||
## Style guide
|
||||
|
||||
We follow the
|
||||
[meteor style guide](https://github.com/meteor/meteor/wiki/Meteor-Style-Guide).
|
||||
|
||||
Please read the meteor style guide before making any significant contribution.
|
||||
|
||||
## Code organisation
|
||||
|
||||
TODO
|
||||
<https://github.com/wekan/wekan/wiki>
|
||||
+133
-6
@@ -1,7 +1,134 @@
|
||||
FROM meteorhacks/meteord:onbuild
|
||||
MAINTAINER Maxime Quandalle <maxime@quandalle.com>
|
||||
FROM debian:buster-slim
|
||||
MAINTAINER wekan
|
||||
|
||||
# Run as you wish!
|
||||
# docker run -d --name wekan-db mongo
|
||||
# docker run -d --link "wekan-db:db" -e "MONGO_URL=mongodb://db" \
|
||||
# -e "ROOT_URL=http://example.com" -p 8080:80 mquandalle/wekan
|
||||
# Declare Arguments
|
||||
ARG NODE_VERSION
|
||||
ARG METEOR_RELEASE
|
||||
ARG METEOR_EDGE
|
||||
ARG USE_EDGE
|
||||
ARG NPM_VERSION
|
||||
ARG FIBERS_VERSION
|
||||
ARG ARCHITECTURE
|
||||
ARG SRC_PATH
|
||||
|
||||
# Set the environment variables (defaults where required)
|
||||
# paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303
|
||||
ENV BUILD_DEPS="apt-utils gnupg gosu wget curl bzip2 build-essential python git ca-certificates gcc-7 paxctl"
|
||||
ENV NODE_VERSION ${NODE_VERSION:-v8.9.3}
|
||||
ENV METEOR_RELEASE ${METEOR_RELEASE:-1.6.0.1}
|
||||
ENV USE_EDGE ${USE_EDGE:-false}
|
||||
ENV METEOR_EDGE ${METEOR_EDGE:-1.5-beta.17}
|
||||
ENV NPM_VERSION ${NPM_VERSION:-5.5.1}
|
||||
ENV FIBERS_VERSION ${FIBERS_VERSION:-2.0.0}
|
||||
ENV ARCHITECTURE ${ARCHITECTURE:-linux-x64}
|
||||
ENV SRC_PATH ${SRC_PATH:-./}
|
||||
|
||||
# Copy the app to the image
|
||||
COPY ${SRC_PATH} /home/wekan/app
|
||||
|
||||
RUN \
|
||||
# Add non-root user wekan
|
||||
useradd --user-group --system --home-dir /home/wekan wekan && \
|
||||
\
|
||||
# OS dependencies
|
||||
apt-get update -y && apt-get install -y --no-install-recommends ${BUILD_DEPS} && \
|
||||
\
|
||||
# Download nodejs
|
||||
wget https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && \
|
||||
wget https://nodejs.org/dist/${NODE_VERSION}/SHASUMS256.txt.asc && \
|
||||
\
|
||||
# Verify nodejs authenticity
|
||||
grep ${NODE_VERSION}-${ARCHITECTURE}.tar.gz SHASUMS256.txt.asc | shasum -a 256 -c - && \
|
||||
export GNUPGHOME="$(mktemp -d)" && \
|
||||
\
|
||||
# Try other key servers if ha.pool.sks-keyservers.net is unreachable
|
||||
# Code from https://github.com/chorrell/docker-node/commit/2b673e17547c34f17f24553db02beefbac98d23c
|
||||
# gpg keys listed at https://github.com/nodejs/node#release-team
|
||||
# and keys listed here from previous version of this Dockerfile
|
||||
for key in \
|
||||
9554F04D7259F04124DE6B476D5A82AC7E37093B \
|
||||
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
|
||||
FD3A5288F042B6850C66B31F09FE44734EB7990E \
|
||||
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
|
||||
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
|
||||
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
|
||||
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
|
||||
; do \
|
||||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" || \
|
||||
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
|
||||
gpg --keyserver keyserver.pgp.com --recv-keys "$key" ; \
|
||||
done && \
|
||||
gpg --verify SHASUMS256.txt.asc && \
|
||||
# Ignore socket files then delete files then delete directories
|
||||
find "$GNUPGHOME" -type f | xargs rm -f && \
|
||||
find "$GNUPGHOME" -type d | xargs rm -fR && \
|
||||
rm -f SHASUMS256.txt.asc && \
|
||||
\
|
||||
# Install Node
|
||||
tar xvzf node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && \
|
||||
rm node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && \
|
||||
mv node-${NODE_VERSION}-${ARCHITECTURE} /opt/nodejs && \
|
||||
ln -s /opt/nodejs/bin/node /usr/bin/node && \
|
||||
ln -s /opt/nodejs/bin/npm /usr/bin/npm && \
|
||||
\
|
||||
# paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303
|
||||
paxctl -mC `which node` && \
|
||||
\
|
||||
# Install Node dependencies
|
||||
npm install -g npm@${NPM_VERSION} && \
|
||||
npm install -g node-gyp && \
|
||||
npm install -g fibers@${FIBERS_VERSION} && \
|
||||
\
|
||||
# Change user to wekan and install meteor
|
||||
cd /home/wekan/ && \
|
||||
chown wekan:wekan --recursive /home/wekan && \
|
||||
curl https://install.meteor.com -o /home/wekan/install_meteor.sh && \
|
||||
sed -i "s|RELEASE=.*|RELEASE=${METEOR_RELEASE}\"\"|g" ./install_meteor.sh && \
|
||||
echo "Starting meteor ${METEOR_RELEASE} installation... \n" && \
|
||||
chown wekan:wekan /home/wekan/install_meteor.sh && \
|
||||
\
|
||||
# Check if opting for a release candidate instead of major release
|
||||
if [ "$USE_EDGE" = false ]; then \
|
||||
gosu wekan:wekan sh /home/wekan/install_meteor.sh; \
|
||||
else \
|
||||
gosu wekan:wekan git clone --recursive --depth 1 -b release/METEOR@${METEOR_EDGE} git://github.com/meteor/meteor.git /home/wekan/.meteor; \
|
||||
fi; \
|
||||
\
|
||||
# Get additional packages
|
||||
mkdir -p /home/wekan/app/packages && \
|
||||
chown wekan:wekan --recursive /home/wekan && \
|
||||
cd /home/wekan/app/packages && \
|
||||
gosu wekan:wekan git clone --depth 1 -b master git://github.com/wekan/flow-router.git kadira-flow-router && \
|
||||
gosu wekan:wekan git clone --depth 1 -b master git://github.com/meteor-useraccounts/core.git meteor-useraccounts-core && \
|
||||
sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' /home/wekan/app/packages/meteor-useraccounts-core/package.js && \
|
||||
cd /home/wekan/.meteor && \
|
||||
gosu wekan:wekan /home/wekan/.meteor/meteor -- help; \
|
||||
\
|
||||
# Build app
|
||||
cd /home/wekan/app && \
|
||||
gosu wekan:wekan /home/wekan/.meteor/meteor add standard-minifier-js && \
|
||||
gosu wekan:wekan /home/wekan/.meteor/meteor npm install && \
|
||||
gosu wekan:wekan /home/wekan/.meteor/meteor build --directory /home/wekan/app_build && \
|
||||
cp /home/wekan/app/fix-download-unicode/cfs_access-point.txt /home/wekan/app_build/bundle/programs/server/packages/cfs_access-point.js && \
|
||||
chown wekan:wekan /home/wekan/app_build/bundle/programs/server/packages/cfs_access-point.js && \
|
||||
cd /home/wekan/app_build/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt && \
|
||||
gosu wekan:wekan rm -rf node_modules/bcrypt && \
|
||||
gosu wekan:wekan npm install bcrypt && \
|
||||
cd /home/wekan/app_build/bundle/programs/server/ && \
|
||||
gosu wekan:wekan npm install && \
|
||||
gosu wekan:wekan npm install bcrypt && \
|
||||
mv /home/wekan/app_build/bundle /build && \
|
||||
\
|
||||
# Cleanup
|
||||
apt-get remove --purge -y ${BUILD_DEPS} && \
|
||||
apt-get autoremove -y && \
|
||||
rm -R /var/lib/apt/lists/* && \
|
||||
rm -R /home/wekan/.meteor && \
|
||||
rm -R /home/wekan/app && \
|
||||
rm -R /home/wekan/app_build && \
|
||||
rm /home/wekan/install_meteor.sh
|
||||
|
||||
ENV PORT=80
|
||||
EXPOSE $PORT
|
||||
|
||||
CMD ["node", "/build/main.js"]
|
||||
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2015 Yasar Icli, Maxime Quandalle
|
||||
Copyright (c) 2014-2017 The Wekan Team
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
# Wekan
|
||||
|
||||
[![Join the chat][gitter_badge]][gitter_chat]
|
||||
[![Wekan Build Status][travis_badge]][travis_status]
|
||||
|
||||
Wekan is an open-source and collaborative kanban board application.
|
||||
Freenode IRC #wekan
|
||||
|
||||
[![Wekan chat][vanila_badge]][vanila_chat]
|
||||
|
||||
[Translate Wekan at Transifex][translate_wekan]
|
||||
|
||||
[Open Hub analysis of Wekan code](https://www.openhub.net/p/wekan)
|
||||
|
||||
Please read [FAQ](https://github.com/wekan/wekan/wiki/FAQ).
|
||||
Please don't feed the trolls and spammers that are mentioned in the FAQ :)
|
||||
|
||||
Wekan is an completely [Open Source][open_source] and [Free software][free_software]
|
||||
collaborative kanban board application with MIT license.
|
||||
|
||||
Whether you’re maintaining a personal todo list, planning your holidays with
|
||||
some friends, or working in a team on your next revolutionary idea, Kanban
|
||||
@@ -10,33 +22,77 @@ boards are an unbeatable tool to keep your things organized. They give you a
|
||||
visual overview of the current state of your project, and make you productive by
|
||||
allowing you to focus on the few items that matter the most.
|
||||
|
||||
[![Our roadmap is self-hosted on Wekan][screenshot]][roadmap]
|
||||
Wekan has real-time user interface. Not all features are implemented.
|
||||
|
||||
Wekan supports most features you would expect of it including a real-time user
|
||||
interface, cards comments, member assignations, customizable labels, filtered
|
||||
views, and more.
|
||||
[Features][features]
|
||||
|
||||
Since it is a free software, you don’t have to trust us with your data and can
|
||||
Wekan supports many [Platforms][platforms], and plan is to add more.
|
||||
|
||||
[Integrations][integrations]
|
||||
|
||||
[Team](https://github.com/wekan/wekan/wiki/Team)
|
||||
|
||||
You don’t have to trust us with your data and can install Wekan on your own
|
||||
computer or server. In fact we encourage you to do that by providing
|
||||
one-click installation on various platforms.
|
||||
|
||||
## Roadmap
|
||||
|
||||
[Roadmap](https://github.com/wekan/wekan/wiki/Roadmap)
|
||||
|
||||
Upcoming Wekan App Development Platform will make possible
|
||||
many use cases. If you don't find your feature or integration in
|
||||
GitHub issues and [Features][features] or [Integrations][integrations]
|
||||
page at wiki, please add them.
|
||||
|
||||
We are very welcoming to new developers and teams to submit new pull
|
||||
requests to devel branch to make this Wekan App Development Platform possible
|
||||
faster. Please see [Developer Documentation][dev_docs] to get started.
|
||||
We also welcome sponsors for features, although we don't have any yet.
|
||||
By working directly with Wekan you get the benefit of active maintenance
|
||||
and new features added by growing Wekan developer community.
|
||||
|
||||
Actual work happens at [Wekan GitHub issues][wekan_issues].
|
||||
|
||||
See [Development links on Wekan
|
||||
wiki](https://github.com/wekan/wekan/wiki#Development)
|
||||
bottom of the page for more info.
|
||||
|
||||
## Demo
|
||||
|
||||
[Wekan demo][roadmap_wefork]
|
||||
|
||||
## Screenshot
|
||||
|
||||
[More screenshots at Features page](https://github.com/wekan/wekan/wiki/Features)
|
||||
|
||||
[![Screenshot of Wekan][screenshot_wefork]][roadmap_wefork]
|
||||
|
||||
Since Wekan is a free software, you don’t have to trust us with your data and can
|
||||
install Wekan on your own computer or server. In fact we encourage you to do
|
||||
that by providing one-click installation on Heroku or [Sandstorm]
|
||||
[sandstorm_market] platforms and verified [Docker][docker_image] images.
|
||||
that by providing one-click installation on various platforms.
|
||||
|
||||
[![Deploy][heroku_button]][heroku_deploy]
|
||||
|
||||
[![Deploy to Scalingo][scalingo_button]][scalingo_deploy]
|
||||
## License
|
||||
|
||||
Wekan is released under the very permissive [MIT license](LICENSE), and made
|
||||
with [Meteor](https://www.meteor.com).
|
||||
|
||||
[Our roadmap is self-hosted on Wekan][roadmap]
|
||||
|
||||
[screenshot]: http://i.imgur.com/cI4jW2h.png
|
||||
[gitter_badge]: https://badges.gitter.im/Join%20Chat.svg
|
||||
[gitter_chat]: https://gitter.im/wekan/wekan
|
||||
[roadmap]: http://try.wekan.io/b/MeSsFJaSqeuo9M6bs/wekan-roadmap
|
||||
[sandstorm_market]: https://oasis.sandstorm.io/appdemo/m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h
|
||||
[docker_image]: https://hub.docker.com/r/mquandalle/wekan/
|
||||
[heroku_button]: https://www.herokucdn.com/deploy/button.png
|
||||
[heroku_deploy]: https://heroku.com/deploy?template=https://github.com/wekan/wekan/tree/master
|
||||
[scalingo_button]: https://cdn.scalingo.com/deploy/button.svg
|
||||
[scalingo_deploy]: https://my.scalingo.com/deploy?source=https://github.com/wekan/wekan#devel
|
||||
[platforms]: https://github.com/wekan/wekan/wiki/Platforms
|
||||
[dev_docs]: https://github.com/wekan/wekan/wiki/Developer-Documentation
|
||||
[screenshot_wekan]: http://i.imgur.com/cI4jW2h.png
|
||||
[screenshot_wefork]: https://wekan.github.io/screenshot.png
|
||||
[features]: https://github.com/wekan/wekan/wiki/Features
|
||||
[integrations]: https://github.com/wekan/wekan/wiki/Integrations
|
||||
[roadmap_wekan]: http://try.wekan.io/b/MeSsFJaSqeuo9M6bs/wekan-roadmap
|
||||
[roadmap_wefork]: https://wekan.indie.host/b/t2YaGmyXgNkppcFBq/wekan-fork-roadmap
|
||||
[wekan_issues]: https://github.com/wekan/wekan/issues
|
||||
[wefork_issues]: https://github.com/wefork/wekan/issues
|
||||
[docker_image]: https://hub.docker.com/r/wekanteam/wekan/
|
||||
[travis_badge]: https://travis-ci.org/wekan/wekan.svg?branch=devel
|
||||
[travis_status]: https://travis-ci.org/wekan/wekan
|
||||
[wekan_wiki]: https://github.com/wekan/wekan/wiki
|
||||
[translate_wekan]: https://www.transifex.com/wekan/wekan/
|
||||
[open_source]: https://en.wikipedia.org/wiki/Open-source_software
|
||||
[free_software]: https://en.wikipedia.org/wiki/Free_software
|
||||
[vanila_badge]: https://vanila.io/img/join-chat-button2.png
|
||||
[vanila_chat]: https://chat.vanila.io/channel/wekan
|
||||
@@ -4,7 +4,7 @@
|
||||
"repository": "https://github.com/wekan/wekan",
|
||||
"logo": "https://raw.githubusercontent.com/wekan/wekan/master/meta/icons/wekan-150.png",
|
||||
"keywords": ["productivity", "tool", "team", "kanban"],
|
||||
"website": "http://wekan.io",
|
||||
"website": "https://wekan.github.io",
|
||||
"env": {
|
||||
"BUILDPACK_URL": "https://github.com/AdmitHub/meteor-buildpack-horse.git",
|
||||
"ROOT_URL": {
|
||||
|
||||
@@ -26,6 +26,18 @@ template(name="boardActivities")
|
||||
+viewer
|
||||
= comment.text
|
||||
|
||||
if($eq activityType 'addChecklist')
|
||||
| {{{_ 'activity-checklist-added' cardLink}}}.
|
||||
.activity-checklist(href="{{ card.absoluteUrl }}")
|
||||
+viewer
|
||||
= checklist.title
|
||||
|
||||
if($eq activityType 'addChecklistItem')
|
||||
| {{{_ 'activity-checklist-item-added' checklist.title cardLink}}}.
|
||||
.activity-checklist(href="{{ card.absoluteUrl }}")
|
||||
+viewer
|
||||
= checklistItem.title
|
||||
|
||||
if($eq activityType 'archivedCard')
|
||||
| {{{_ 'activity-archived' cardLink}}}.
|
||||
|
||||
@@ -41,6 +53,9 @@ template(name="boardActivities")
|
||||
if($eq activityType 'createList')
|
||||
| {{_ 'activity-added' list.title boardLabel}}.
|
||||
|
||||
if($eq activityType 'removeList')
|
||||
| {{_ 'activity-removed' title boardLabel}}.
|
||||
|
||||
if($eq activityType 'importBoard')
|
||||
| {{{_ 'activity-imported-board' boardLabel sourceLink}}}.
|
||||
|
||||
@@ -71,7 +86,7 @@ template(name="boardActivities")
|
||||
else
|
||||
| {{{_ 'activity-removed' memberLink cardLink}}}.
|
||||
|
||||
span.activity-meta {{ moment createdAt }}
|
||||
span(title=createdAt).activity-meta {{ moment createdAt }}
|
||||
|
||||
template(name="cardActivities")
|
||||
each currentCard.activities
|
||||
@@ -103,6 +118,16 @@ template(name="cardActivities")
|
||||
| {{{_ 'activity-attached' attachmentLink cardLabel}}}.
|
||||
if attachment.isImage
|
||||
img.attachment-image-preview(src=attachment.url)
|
||||
if($eq activityType 'addChecklist')
|
||||
| {{{_ 'activity-checklist-added' cardLabel}}}.
|
||||
.activity-checklist
|
||||
+viewer
|
||||
= checklist.title
|
||||
if($eq activityType 'addChecklistItem')
|
||||
| {{{_ 'activity-checklist-item-added' checklist.title cardLink}}}.
|
||||
.activity-checklist(href="{{ card.absoluteUrl }}")
|
||||
+viewer
|
||||
= checklistItem.title
|
||||
|
||||
if($eq activityType 'addComment')
|
||||
+inlinedForm(classNames='js-edit-comment')
|
||||
@@ -114,7 +139,7 @@ template(name="cardActivities")
|
||||
.activity-comment
|
||||
+viewer
|
||||
= comment.text
|
||||
span.activity-meta {{ moment createdAt }}
|
||||
span(title=createdAt).activity-meta {{ moment createdAt }}
|
||||
if ($eq currentUser._id comment.userId)
|
||||
= ' - '
|
||||
a.js-open-inlined-form {{_ "edit"}}
|
||||
@@ -122,4 +147,4 @@ template(name="cardActivities")
|
||||
a.js-delete-comment {{_ "delete"}}
|
||||
|
||||
else
|
||||
span.activity-meta {{ moment createdAt }}
|
||||
span(title=createdAt).activity-meta {{ moment createdAt }}
|
||||
@@ -1,10 +1,6 @@
|
||||
const activitiesPerPage = 20;
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'activities';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
// XXX Should we use ReactiveNumber?
|
||||
this.page = new ReactiveVar(1);
|
||||
@@ -16,10 +12,12 @@ BlazeComponent.extendComponent({
|
||||
const capitalizedMode = Utils.capitalize(mode);
|
||||
const id = Session.get(`current${capitalizedMode}`);
|
||||
const limit = this.page.get() * activitiesPerPage;
|
||||
const user = Meteor.user();
|
||||
const hideSystem = user ? user.hasHiddenSystemMessages() : false;
|
||||
if (id === null)
|
||||
return;
|
||||
|
||||
this.subscribe('activities', mode, id, limit, () => {
|
||||
this.subscribe('activities', mode, id, limit, hideSystem, () => {
|
||||
this.loadNextPageLocked = false;
|
||||
|
||||
// If the sibear peak hasn't increased, that mean that there are no more
|
||||
@@ -55,7 +53,7 @@ BlazeComponent.extendComponent({
|
||||
cardLink() {
|
||||
const card = this.currentData().card();
|
||||
return card && Blaze.toHTML(HTML.A({
|
||||
href: FlowRouter.path(card.absoluteUrl()),
|
||||
href: card.absoluteUrl(),
|
||||
'class': 'action-card',
|
||||
}, card.title));
|
||||
},
|
||||
@@ -88,7 +86,7 @@ BlazeComponent.extendComponent({
|
||||
const attachment = this.currentData().attachment();
|
||||
// trying to display url before file is stored generates js errors
|
||||
return attachment && attachment.url({ download: true }) && Blaze.toHTML(HTML.A({
|
||||
href: FlowRouter.path(attachment.url({ download: true })),
|
||||
href: attachment.url({ download: true }),
|
||||
target: '_blank',
|
||||
}, attachment.name()));
|
||||
},
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
@import 'nib'
|
||||
|
||||
.activity-title
|
||||
margin: 0 0.5em 0.8em
|
||||
display: flex
|
||||
justify-content:space-between
|
||||
|
||||
.activities
|
||||
clear: both
|
||||
|
||||
@@ -10,10 +17,14 @@
|
||||
height: @width
|
||||
|
||||
.activity-desc
|
||||
word-wrap: break-word
|
||||
overflow: hidden
|
||||
flex: 1
|
||||
align-self: center
|
||||
margin: 0
|
||||
margin-left: 3px
|
||||
overflow: hidden;
|
||||
word-break: break-word;
|
||||
|
||||
.activity-comment
|
||||
display: block
|
||||
@@ -24,6 +35,14 @@
|
||||
margin-top: 5px
|
||||
padding: 5px
|
||||
|
||||
.activity-checklist
|
||||
display: block
|
||||
border-radius: 3px
|
||||
background: white
|
||||
text-decoration: none
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,.2)
|
||||
margin-top: 5px
|
||||
padding: 5px
|
||||
.activity-meta
|
||||
font-size: 0.8em
|
||||
color: darken(white, 40%)
|
||||
@@ -1,10 +1,6 @@
|
||||
const commentFormIsOpen = new ReactiveVar(false);
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'commentForm';
|
||||
},
|
||||
|
||||
onDestroyed() {
|
||||
commentFormIsOpen.set(false);
|
||||
},
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@import 'nib'
|
||||
|
||||
.new-comment
|
||||
position: relative
|
||||
margin: 0 0 20px 38px
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
template(name="archivedBoards")
|
||||
h2
|
||||
i.fa.fa-archive
|
||||
| Archived boards
|
||||
| {{_ 'archived-boards'}}
|
||||
|
||||
ul.archived-lists
|
||||
each archivedBoards
|
||||
li.archived-lists-item
|
||||
button.js-restore-board
|
||||
i.fa.fa-undo
|
||||
| Restore board
|
||||
| {{_ 'restore-board'}}
|
||||
= title
|
||||
else
|
||||
li.no-items-message No archived board.
|
||||
li.no-items-message {{_ 'no-archived-boards'}}
|
||||
@@ -5,10 +5,6 @@ Template.boardListHeaderBar.events({
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'archivedBoards';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.subscribe('archivedBoards');
|
||||
},
|
||||
@@ -22,6 +18,13 @@ BlazeComponent.extendComponent({
|
||||
events() {
|
||||
return [{
|
||||
'click .js-restore-board'() {
|
||||
// TODO : Make isSandstorm variable global
|
||||
const isSandstorm = Meteor.settings && Meteor.settings.public &&
|
||||
Meteor.settings.public.sandstorm;
|
||||
if (isSandstorm && Session.get('currentBoard')) {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
currentBoard.archive();
|
||||
}
|
||||
const board = this.currentData();
|
||||
board.restore();
|
||||
Utils.goBoardId(board._id);
|
||||
|
||||
@@ -20,24 +20,8 @@ template(name="boardBody")
|
||||
class="{{#if draggingActive.get}}is-dragging-active{{/if}}")
|
||||
if showOverlay.get
|
||||
.board-overlay
|
||||
.lists.js-lists
|
||||
each currentBoard.lists
|
||||
+list(this)
|
||||
if currentCardIsInThisList
|
||||
+cardDetails(currentCard)
|
||||
if currentUser.isBoardMember
|
||||
+addListForm
|
||||
|
||||
template(name="addListForm")
|
||||
.list.js-list.list-composer.js-list-composer
|
||||
.list-header
|
||||
+inlinedForm(autoclose=false)
|
||||
input.list-name-input.full-line(type="text" placeholder="{{_ 'add-list'}}"
|
||||
autocomplete="off" autofocus)
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm(type="submit") {{_ 'save'}}
|
||||
a.fa.fa-times-thin.js-close-inlined-form
|
||||
else
|
||||
a.open-list-composer.js-open-inlined-form
|
||||
i.fa.fa-plus
|
||||
| {{_ 'add-list'}}
|
||||
if isViewSwimlanes
|
||||
each currentBoard.swimlanes
|
||||
+swimlane(this)
|
||||
if isViewLists
|
||||
+listsGroup
|
||||
@@ -1,10 +1,6 @@
|
||||
const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'board';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.draggingActive = new ReactiveVar(false);
|
||||
this.showOverlay = new ReactiveVar(false);
|
||||
@@ -33,10 +29,6 @@ BlazeComponent.extendComponent({
|
||||
this.mouseHasEnterCardDetails = false;
|
||||
},
|
||||
|
||||
openNewListForm() {
|
||||
this.childComponents('addListForm')[0].open();
|
||||
},
|
||||
|
||||
// XXX Flow components allow us to avoid creating these two setter methods by
|
||||
// exposing a public API to modify the component state. We need to investigate
|
||||
// best practices here.
|
||||
@@ -51,16 +43,22 @@ BlazeComponent.extendComponent({
|
||||
});
|
||||
},
|
||||
|
||||
currentCardIsInThisList() {
|
||||
const currentCard = Cards.findOne(Session.get('currentCard'));
|
||||
const listId = this.currentData()._id;
|
||||
return currentCard && currentCard.listId === listId;
|
||||
},
|
||||
|
||||
onlyShowCurrentCard() {
|
||||
return Utils.isMiniScreen() && Session.get('currentCard');
|
||||
},
|
||||
|
||||
isViewSwimlanes() {
|
||||
const currentBoardId = Session.get('currentBoard');
|
||||
const board = Boards.findOne(currentBoardId);
|
||||
return (board.view === 'board-view-swimlanes');
|
||||
},
|
||||
|
||||
isViewLists() {
|
||||
const currentBoardId = Session.get('currentBoard');
|
||||
const board = Boards.findOne(currentBoardId);
|
||||
return (board.view === 'board-view-lists');
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
// XXX The board-overlay div should probably be moved to the parent
|
||||
@@ -70,140 +68,11 @@ BlazeComponent.extendComponent({
|
||||
this.showOverlay.set(false);
|
||||
}
|
||||
},
|
||||
|
||||
// Click-and-drag action
|
||||
'mousedown .board-canvas'(evt) {
|
||||
// Translating the board canvas using the click-and-drag action can
|
||||
// conflict with the build-in browser mechanism to select text. We
|
||||
// define a list of elements in which we disable the dragging because
|
||||
// the user will legitimately expect to be able to select some text with
|
||||
// his mouse.
|
||||
const noDragInside = ['a', 'input', 'textarea', 'p', '.js-list-header'];
|
||||
if ($(evt.target).closest(noDragInside.join(',')).length === 0) {
|
||||
this._isDragging = true;
|
||||
this._lastDragPositionX = evt.clientX;
|
||||
}
|
||||
},
|
||||
'mouseup'() {
|
||||
if (this._isDragging) {
|
||||
this._isDragging = false;
|
||||
}
|
||||
},
|
||||
'mousemove'(evt) {
|
||||
if (this._isDragging) {
|
||||
// Update the canvas position
|
||||
this.listsDom.scrollLeft -= evt.clientX - this._lastDragPositionX;
|
||||
this._lastDragPositionX = evt.clientX;
|
||||
// Disable browser text selection while dragging
|
||||
evt.stopPropagation();
|
||||
evt.preventDefault();
|
||||
// Don't close opened card or inlined form at the end of the
|
||||
// click-and-drag.
|
||||
EscapeActions.executeUpTo('popup-close');
|
||||
EscapeActions.preventNextClick();
|
||||
}
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('board');
|
||||
|
||||
Template.boardBody.onRendered(function() {
|
||||
const self = BlazeComponent.getComponentForElement(this.firstNode);
|
||||
|
||||
self.listsDom = this.find('.js-lists');
|
||||
|
||||
if (!Session.get('currentCard')) {
|
||||
self.scrollLeft();
|
||||
}
|
||||
|
||||
// We want to animate the card details window closing. We rely on CSS
|
||||
// transition for the actual animation.
|
||||
self.listsDom._uihooks = {
|
||||
removeElement(node) {
|
||||
const removeNode = _.once(() => {
|
||||
node.parentNode.removeChild(node);
|
||||
});
|
||||
if ($(node).hasClass('js-card-details')) {
|
||||
$(node).css({
|
||||
flexBasis: 0,
|
||||
padding: 0,
|
||||
});
|
||||
$(self.listsDom).one(CSSEvents.transitionend, removeNode);
|
||||
} else {
|
||||
removeNode();
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
if (!Meteor.user() || !Meteor.user().isBoardMember())
|
||||
return;
|
||||
|
||||
$(self.listsDom).sortable({
|
||||
tolerance: 'pointer',
|
||||
helper: 'clone',
|
||||
handle: '.js-list-header',
|
||||
items: '.js-list:not(.js-list-composer)',
|
||||
placeholder: 'list placeholder',
|
||||
distance: 7,
|
||||
start(evt, ui) {
|
||||
ui.placeholder.height(ui.helper.height());
|
||||
Popup.close();
|
||||
},
|
||||
stop() {
|
||||
$(self.listsDom).find('.js-list:not(.js-list-composer)').each(
|
||||
(i, list) => {
|
||||
const data = Blaze.getData(list);
|
||||
Lists.update(data._id, {
|
||||
$set: {
|
||||
sort: i,
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
// Disable drag-dropping while in multi-selection mode
|
||||
self.autorun(() => {
|
||||
$(self.listsDom).sortable('option', 'disabled',
|
||||
MultiSelection.isActive());
|
||||
});
|
||||
|
||||
// If there is no data in the board (ie, no lists) we autofocus the list
|
||||
// creation form by clicking on the corresponding element.
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
if (currentBoard.lists().count() === 0) {
|
||||
self.openNewListForm();
|
||||
}
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'addListForm';
|
||||
},
|
||||
|
||||
// Proxy
|
||||
open() {
|
||||
this.childComponents('inlinedForm')[0].open();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
submit(evt) {
|
||||
evt.preventDefault();
|
||||
const titleInput = this.find('.list-name-input');
|
||||
const title = titleInput.value.trim();
|
||||
if (title) {
|
||||
Lists.insert({
|
||||
title,
|
||||
boardId: Session.get('currentBoard'),
|
||||
sort: $('.list').length,
|
||||
});
|
||||
|
||||
titleInput.value = '';
|
||||
titleInput.focus();
|
||||
}
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('addListForm');
|
||||
@@ -20,15 +20,14 @@ position()
|
||||
&.is-sibling-sidebar-open
|
||||
margin-right: 248px
|
||||
|
||||
.lists
|
||||
align-items: flex-start
|
||||
.swimlane
|
||||
border-bottom: 1px solid #CCC
|
||||
display: flex
|
||||
flex-direction: row
|
||||
margin: 0 0 10px
|
||||
padding: 0 40px 5px 0
|
||||
overflow-x: auto
|
||||
overflow-y: hidden
|
||||
position: cover
|
||||
|
||||
.board-overlay
|
||||
position: cover
|
||||
@@ -43,3 +42,17 @@ position()
|
||||
.open-minicard-composer,
|
||||
.minicard-wrapper.is-checked
|
||||
display: none
|
||||
|
||||
@media screen and (max-width: 800px)
|
||||
.board-wrapper
|
||||
|
||||
.board-canvas
|
||||
|
||||
.swimlane
|
||||
border-bottom: 1px solid #CCC
|
||||
display: flex
|
||||
flex-direction: column
|
||||
margin: 0
|
||||
padding: 0 40px 0px 0
|
||||
overflow-x: hidden
|
||||
overflow-y: auto
|
||||
@@ -51,11 +51,25 @@ setBoardColor(color)
|
||||
&:not(.is-checked) + .minicard:hover:not(.minicard-composer)
|
||||
background: lighten(color, 97%)
|
||||
|
||||
.toggle-label
|
||||
|
||||
&:after
|
||||
background-color: darken(color, 20%)
|
||||
|
||||
.toggle-switch:checked ~ .toggle-label
|
||||
background-color: lighten(color, 20%)
|
||||
|
||||
&:after
|
||||
background-color: darken(color, 20%)
|
||||
|
||||
@media screen and (max-width: 800px)
|
||||
&.pop-over .header
|
||||
background: color
|
||||
color: white
|
||||
|
||||
&#header ul li.current, &#header-quick-access ul li.current
|
||||
border-bottom: 4px solid lighten(color, 20%)
|
||||
|
||||
.board-color-nephritis
|
||||
setBoardColor(#27AE60)
|
||||
|
||||
|
||||
@@ -7,55 +7,104 @@ template(name="boardHeaderBar")
|
||||
.board-header-btns.left
|
||||
unless isMiniScreen
|
||||
unless isSandstorm
|
||||
if currentUser
|
||||
a.board-header-btn.js-star-board(class="{{#if isStarred}}is-active{{/if}}"
|
||||
title="{{#if isStarred}}{{_ 'click-to-unstar'}}{{else}}{{_ 'click-to-star'}}{{/if}} {{_ 'starred-boards-description'}}")
|
||||
i.fa(class="fa-star{{#unless isStarred}}-o{{/unless}}")
|
||||
if showStarCounter
|
||||
span
|
||||
= currentBoard.stars
|
||||
if currentBoard
|
||||
if currentUser
|
||||
a.board-header-btn.js-star-board(class="{{#if isStarred}}is-active{{/if}}"
|
||||
title="{{#if isStarred}}{{_ 'click-to-unstar'}}{{else}}{{_ 'click-to-star'}}{{/if}} {{_ 'starred-boards-description'}}")
|
||||
i.fa(class="fa-star{{#unless isStarred}}-o{{/unless}}")
|
||||
if showStarCounter
|
||||
span
|
||||
= currentBoard.stars
|
||||
|
||||
a.board-header-btn(class="{{#if currentUser.isBoardAdmin}}js-change-visibility{{else}}is-disabled{{/if}}")
|
||||
i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
||||
span {{_ currentBoard.permission}}
|
||||
a.board-header-btn(
|
||||
class="{{#if currentUser.isBoardAdmin}}js-change-visibility{{else}}is-disabled{{/if}}"
|
||||
title="{{_ currentBoard.permission}}")
|
||||
i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
||||
span {{_ currentBoard.permission}}
|
||||
|
||||
a.board-header-btn.js-watch-board(
|
||||
title="{{_ watchLevel }}")
|
||||
if $eq watchLevel "watching"
|
||||
i.fa.fa-eye
|
||||
if $eq watchLevel "tracking"
|
||||
i.fa.fa-bell
|
||||
if $eq watchLevel "muted"
|
||||
i.fa.fa-bell-slash
|
||||
span {{_ watchLevel}}
|
||||
|
||||
else
|
||||
a.board-header-btn.js-log-in(
|
||||
title="{{_ 'log-in'}}")
|
||||
i.fa.fa-sign-in
|
||||
span {{_ 'log-in'}}
|
||||
|
||||
.board-header-btns.right
|
||||
if isMiniScreen
|
||||
unless isSandstorm
|
||||
if currentBoard
|
||||
if isMiniScreen
|
||||
unless isSandstorm
|
||||
if currentUser
|
||||
a.board-header-btn.js-star-board(class="{{#if isStarred}}is-active{{/if}}"
|
||||
title="{{#if isStarred}}{{_ 'click-to-unstar'}}{{else}}{{_ 'click-to-star'}}{{/if}} {{_ 'starred-boards-description'}}")
|
||||
i.fa(class="fa-star{{#unless isStarred}}-o{{/unless}}")
|
||||
if showStarCounter
|
||||
span
|
||||
= currentBoard.stars
|
||||
|
||||
a.board-header-btn(
|
||||
class="{{#if currentUser.isBoardAdmin}}js-change-visibility{{else}}is-disabled{{/if}}"
|
||||
title="{{_ currentBoard.permission}}")
|
||||
i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
||||
span {{_ currentBoard.permission}}
|
||||
|
||||
a.board-header-btn.js-watch-board(
|
||||
title="{{_ watchLevel }}")
|
||||
if $eq watchLevel "watching"
|
||||
i.fa.fa-eye
|
||||
if $eq watchLevel "tracking"
|
||||
i.fa.fa-bell
|
||||
if $eq watchLevel "muted"
|
||||
i.fa.fa-bell-slash
|
||||
span {{_ watchLevel}}
|
||||
|
||||
else
|
||||
a.board-header-btn.js-log-in(
|
||||
title="{{_ 'log-in'}}")
|
||||
i.fa.fa-sign-in
|
||||
span {{_ 'log-in'}}
|
||||
|
||||
if isSandstorm
|
||||
if currentUser
|
||||
a.board-header-btn.js-star-board(class="{{#if isStarred}}is-active{{/if}}"
|
||||
title="{{#if isStarred}}{{_ 'click-to-unstar'}}{{else}}{{_ 'click-to-star'}}{{/if}} {{_ 'starred-boards-description'}}")
|
||||
i.fa(class="fa-star{{#unless isStarred}}-o{{/unless}}")
|
||||
if showStarCounter
|
||||
span
|
||||
= currentBoard.stars
|
||||
a.board-header-btn.js-open-archived-board
|
||||
i.fa.fa-archive
|
||||
span {{_ 'archives'}}
|
||||
|
||||
a.board-header-btn(class="{{#if currentUser.isBoardAdmin}}js-change-visibility{{else}}is-disabled{{/if}}")
|
||||
i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
||||
span {{_ currentBoard.permission}}
|
||||
|
||||
a.board-header-btn.js-open-filter-view(
|
||||
title="{{#if Filter.isActive}}{{_ 'filter-on-desc'}}{{/if}}"
|
||||
class="{{#if Filter.isActive}}emphasis{{/if}}")
|
||||
i.fa.fa-filter
|
||||
span {{#if Filter.isActive}}{{_ 'filter-on'}}{{else}}{{_ 'filter'}}{{/if}}
|
||||
if Filter.isActive
|
||||
a.board-header-btn-close.js-filter-reset(title="{{_ 'filter-clear'}}")
|
||||
i.fa.fa-times-thin
|
||||
|
||||
if currentUser.isBoardMember
|
||||
a.board-header-btn.js-multiselection-activate(
|
||||
title="{{#if MultiSelection.isActive}}{{_ 'filter-on-desc'}}{{/if}}"
|
||||
class="{{#if MultiSelection.isActive}}emphasis{{/if}}")
|
||||
i.fa.fa-check-square-o
|
||||
span {{#if MultiSelection.isActive}}{{_ 'multi-selection-on'}}{{else}}{{_ 'multi-selection'}}{{/if}}
|
||||
if MultiSelection.isActive
|
||||
a.board-header-btn-close.js-multiselection-reset(title="{{_ 'filter-clear'}}")
|
||||
a.board-header-btn.js-open-filter-view(
|
||||
title="{{#if Filter.isActive}}{{_ 'filter-on-desc'}}{{else}}{{_ 'filter'}}{{/if}}"
|
||||
class="{{#if Filter.isActive}}emphasis{{/if}}")
|
||||
i.fa.fa-filter
|
||||
span {{#if Filter.isActive}}{{_ 'filter-on'}}{{else}}{{_ 'filter'}}{{/if}}
|
||||
if Filter.isActive
|
||||
a.board-header-btn-close.js-filter-reset(title="{{_ 'filter-clear'}}")
|
||||
i.fa.fa-times-thin
|
||||
|
||||
.separator
|
||||
a.board-header-btn.js-open-board-menu
|
||||
i.board-header-btn-icon.fa.fa-navicon
|
||||
a.board-header-btn.js-toggle-board-view(
|
||||
title="{{_ 'board-view'}}")
|
||||
i.fa.fa-th-large
|
||||
span {{_ currentBoard.view}}
|
||||
|
||||
if canModifyBoard
|
||||
a.board-header-btn.js-multiselection-activate(
|
||||
title="{{#if MultiSelection.isActive}}{{_ 'multi-selection-on'}}{{else}}{{_ 'multi-selection'}}{{/if}}"
|
||||
class="{{#if MultiSelection.isActive}}emphasis{{/if}}")
|
||||
i.fa.fa-check-square-o
|
||||
span {{#if MultiSelection.isActive}}{{_ 'multi-selection-on'}}{{else}}{{_ 'multi-selection'}}{{/if}}
|
||||
if MultiSelection.isActive
|
||||
a.board-header-btn-close.js-multiselection-reset(title="{{_ 'filter-clear'}}")
|
||||
i.fa.fa-times-thin
|
||||
|
||||
.separator
|
||||
a.board-header-btn.js-open-board-menu(title="{{_ 'boardMenuPopup-title'}}")
|
||||
i.board-header-btn-icon.fa.fa-navicon
|
||||
|
||||
template(name="boardMenuPopup")
|
||||
ul.pop-over-list
|
||||
@@ -74,6 +123,12 @@ template(name="boardMenuPopup")
|
||||
ul.pop-over-list
|
||||
li: a(href="{{exportUrl}}", download="{{exportFilename}}") {{_ 'export-board'}}
|
||||
li: a.js-archive-board {{_ 'archive-board'}}
|
||||
li: a.js-outgoing-webhooks {{_ 'outgoing-webhooks'}}
|
||||
if isSandstorm
|
||||
hr
|
||||
ul.pop-over-list
|
||||
li: a(href="{{exportUrl}}", download="{{exportFilename}}") {{_ 'export-board'}}
|
||||
li: a.js-import-board {{_ 'import-board-c'}}
|
||||
|
||||
template(name="boardVisibilityList")
|
||||
ul.pop-over-list
|
||||
@@ -97,6 +152,33 @@ template(name="boardVisibilityList")
|
||||
template(name="boardChangeVisibilityPopup")
|
||||
+boardVisibilityList
|
||||
|
||||
template(name="boardChangeWatchPopup")
|
||||
ul.pop-over-list
|
||||
li
|
||||
with "watching"
|
||||
a.js-select-watch
|
||||
i.fa.fa-eye.colorful
|
||||
| {{_ 'watching'}}
|
||||
if watchCheck
|
||||
i.fa.fa-check
|
||||
span.sub-name {{_ 'watching-info'}}
|
||||
li
|
||||
with "tracking"
|
||||
a.js-select-watch
|
||||
i.fa.fa-bell.colorful
|
||||
| {{_ 'tracking'}}
|
||||
if watchCheck
|
||||
i.fa.fa-check
|
||||
span.sub-name {{_ 'tracking-info'}}
|
||||
li
|
||||
with "muted"
|
||||
a.js-select-watch
|
||||
i.fa.fa-bell-slash.colorful
|
||||
| {{_ 'muted'}}
|
||||
if watchCheck
|
||||
i.fa.fa-check
|
||||
span.sub-name {{_ 'muted-info'}}
|
||||
|
||||
template(name="boardChangeColorPopup")
|
||||
.board-backgrounds-list.clearfix
|
||||
each backgroundColors
|
||||
@@ -105,7 +187,7 @@ template(name="boardChangeColorPopup")
|
||||
if isSelected
|
||||
i.fa.fa-check
|
||||
|
||||
template(name="createBoardPopup")
|
||||
template(name="createBoard")
|
||||
form
|
||||
label
|
||||
| {{_ 'title'}}
|
||||
@@ -126,8 +208,14 @@ template(name="createBoardPopup")
|
||||
input.primary.wide(type="submit" value="{{_ 'create'}}")
|
||||
span.quiet
|
||||
| {{_ 'or'}}
|
||||
a.js-import {{_ 'import-board'}}
|
||||
a.js-import-board {{_ 'import-board'}}
|
||||
|
||||
template(name="chooseBoardSource")
|
||||
ul.pop-over-list
|
||||
li
|
||||
a(href="{{pathFor '/import/trello'}}") {{_ 'from-trello'}}
|
||||
li
|
||||
a(href="{{pathFor '/import/wekan'}}") {{_ 'from-wekan'}}
|
||||
|
||||
template(name="boardChangeTitlePopup")
|
||||
form
|
||||
@@ -142,3 +230,23 @@ template(name="boardChangeTitlePopup")
|
||||
template(name="archiveBoardPopup")
|
||||
p {{_ 'close-board-pop'}}
|
||||
button.js-confirm.negate.full(type="submit") {{_ 'archive'}}
|
||||
|
||||
template(name="outgoingWebhooksPopup")
|
||||
each integrations
|
||||
form.integration-form
|
||||
if title
|
||||
h4 {{title}}
|
||||
else
|
||||
h4 {{_ 'no-name'}}
|
||||
label
|
||||
| URL
|
||||
input.js-outgoing-webhooks-url(type="text" name="url" value=url)
|
||||
input(type="hidden" value=_id name="id")
|
||||
input.primary.wide(type="submit" value="{{_ 'save'}}")
|
||||
form.integration-form
|
||||
h4
|
||||
| {{_ 'new-outgoing-webhook'}}
|
||||
label
|
||||
| URL
|
||||
input.js-outgoing-webhooks-url(type="text" name="url" autofocus)
|
||||
input.primary.wide(type="submit" value="{{_ 'save'}}")
|
||||
@@ -13,13 +13,19 @@ Template.boardMenuPopup.events({
|
||||
// confirm that the board was successfully archived.
|
||||
FlowRouter.go('home');
|
||||
}),
|
||||
'click .js-outgoing-webhooks': Popup.open('outgoingWebhooks'),
|
||||
'click .js-import-board': Popup.open('chooseBoardSource'),
|
||||
});
|
||||
|
||||
Template.boardMenuPopup.helpers({
|
||||
exportUrl() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
const loginToken = Accounts._storedLoginToken();
|
||||
return Meteor.absoluteUrl(`api/boards/${boardId}?authToken=${loginToken}`);
|
||||
const params = {
|
||||
boardId: Session.get('currentBoard'),
|
||||
};
|
||||
const queryParams = {
|
||||
authToken: Accounts._storedLoginToken(),
|
||||
};
|
||||
return FlowRouter.path('/api/boards/:boardId/export', params, queryParams);
|
||||
},
|
||||
exportFilename() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
@@ -33,7 +39,7 @@ Template.boardChangeTitlePopup.events({
|
||||
const newDesc = tpl.$('.js-board-desc').val().trim();
|
||||
if (newTitle) {
|
||||
this.rename(newTitle);
|
||||
this.setDesciption(newDesc);
|
||||
this.setDescription(newDesc);
|
||||
Popup.close();
|
||||
}
|
||||
evt.preventDefault();
|
||||
@@ -41,8 +47,9 @@ Template.boardChangeTitlePopup.events({
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'boardHeaderBar';
|
||||
watchLevel() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
return currentBoard && currentBoard.getWatchLevel(Meteor.userId());
|
||||
},
|
||||
|
||||
isStarred() {
|
||||
@@ -51,10 +58,6 @@ BlazeComponent.extendComponent({
|
||||
return user && user.hasStarred(boardId);
|
||||
},
|
||||
|
||||
isMiniScreen() {
|
||||
return Utils.isMiniScreen();
|
||||
},
|
||||
|
||||
// Only show the star counter if the number of star is greater than 2
|
||||
showStarCounter() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
@@ -69,6 +72,26 @@ BlazeComponent.extendComponent({
|
||||
},
|
||||
'click .js-open-board-menu': Popup.open('boardMenu'),
|
||||
'click .js-change-visibility': Popup.open('boardChangeVisibility'),
|
||||
'click .js-watch-board': Popup.open('boardChangeWatch'),
|
||||
'click .js-open-archived-board'() {
|
||||
Modal.open('archivedBoards');
|
||||
},
|
||||
'click .js-toggle-board-view'() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
if (currentBoard.view === 'board-view-swimlanes') {
|
||||
Boards.update(currentBoard._id, {
|
||||
$set: {
|
||||
view: 'board-view-lists',
|
||||
},
|
||||
});
|
||||
} else if (currentBoard.view === 'board-view-lists') {
|
||||
Boards.update(currentBoard._id, {
|
||||
$set: {
|
||||
view: 'board-view-swimlanes',
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
'click .js-open-filter-view'() {
|
||||
Sidebar.setView('filter');
|
||||
},
|
||||
@@ -88,15 +111,20 @@ BlazeComponent.extendComponent({
|
||||
evt.stopPropagation();
|
||||
MultiSelection.disable();
|
||||
},
|
||||
'click .js-log-in'() {
|
||||
FlowRouter.go('atSignIn');
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('boardHeaderBar');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'boardChangeColorPopup';
|
||||
Template.boardHeaderBar.helpers({
|
||||
canModifyBoard() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
backgroundColors() {
|
||||
return Boards.simpleSchema()._schema.color.allowedValues;
|
||||
},
|
||||
@@ -118,14 +146,15 @@ BlazeComponent.extendComponent({
|
||||
},
|
||||
}).register('boardChangeColorPopup');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
const CreateBoard = BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'createBoardPopup';
|
||||
return 'createBoard';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.visibilityMenuIsOpen = new ReactiveVar(false);
|
||||
this.visibility = new ReactiveVar('private');
|
||||
this.boardId = new ReactiveVar('');
|
||||
},
|
||||
|
||||
visibilityCheck() {
|
||||
@@ -146,15 +175,17 @@ BlazeComponent.extendComponent({
|
||||
const title = this.find('.js-new-board-title').value;
|
||||
const visibility = this.visibility.get();
|
||||
|
||||
const boardId = Boards.insert({
|
||||
this.boardId.set(Boards.insert({
|
||||
title,
|
||||
permission: visibility,
|
||||
}));
|
||||
|
||||
Swimlanes.insert({
|
||||
title: 'Default',
|
||||
boardId: this.boardId.get(),
|
||||
});
|
||||
|
||||
Utils.goBoardId(boardId);
|
||||
|
||||
// Immediately star boards crated with the headerbar popup.
|
||||
Meteor.user().toggleBoardStar(boardId);
|
||||
Utils.goBoardId(this.boardId.get());
|
||||
},
|
||||
|
||||
events() {
|
||||
@@ -165,15 +196,26 @@ BlazeComponent.extendComponent({
|
||||
'click .js-change-visibility': this.toggleVisibilityMenu,
|
||||
'click .js-import': Popup.open('boardImportBoard'),
|
||||
submit: this.onSubmit,
|
||||
'click .js-import-board': Popup.open('chooseBoardSource'),
|
||||
}];
|
||||
},
|
||||
}).register('createBoardPopup');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'boardChangeVisibilityPopup';
|
||||
return 'chooseBoardSource';
|
||||
},
|
||||
}).register('chooseBoardSourcePopup');
|
||||
|
||||
(class HeaderBarCreateBoard extends CreateBoard {
|
||||
onSubmit(evt) {
|
||||
super.onSubmit(evt);
|
||||
// Immediately star boards crated with the headerbar popup.
|
||||
Meteor.user().toggleBoardStar(this.boardId.get());
|
||||
}
|
||||
}).register('headerBarCreateBoardPopup');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
visibilityCheck() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
return this.currentData() === currentBoard.permission;
|
||||
@@ -192,3 +234,72 @@ BlazeComponent.extendComponent({
|
||||
}];
|
||||
},
|
||||
}).register('boardChangeVisibilityPopup');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
watchLevel() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
return currentBoard.getWatchLevel(Meteor.userId());
|
||||
},
|
||||
|
||||
watchCheck() {
|
||||
return this.currentData() === this.watchLevel();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click .js-select-watch'() {
|
||||
const level = this.currentData();
|
||||
Meteor.call('watch', 'board', Session.get('currentBoard'), level, (err, ret) => {
|
||||
if (!err && ret) Popup.close();
|
||||
});
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('boardChangeWatchPopup');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
integrations() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
return Integrations.find({ boardId: `${boardId}` }).fetch();
|
||||
},
|
||||
|
||||
integration(id) {
|
||||
const boardId = Session.get('currentBoard');
|
||||
return Integrations.findOne({ _id: id, boardId: `${boardId}` });
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'submit'(evt) {
|
||||
evt.preventDefault();
|
||||
const url = evt.target.url.value;
|
||||
const boardId = Session.get('currentBoard');
|
||||
let id = null;
|
||||
let integration = null;
|
||||
if (evt.target.id) {
|
||||
id = evt.target.id.value;
|
||||
integration = this.integration(id);
|
||||
if (url) {
|
||||
Integrations.update(integration._id, {
|
||||
$set: {
|
||||
url: `${url}`,
|
||||
},
|
||||
});
|
||||
} else {
|
||||
Integrations.remove(integration._id);
|
||||
}
|
||||
} else if (url) {
|
||||
Integrations.insert({
|
||||
userId: Meteor.userId(),
|
||||
enabled: true,
|
||||
type: 'outgoing-webhooks',
|
||||
url: `${url}`,
|
||||
boardId: `${boardId}`,
|
||||
activities: ['all'],
|
||||
});
|
||||
}
|
||||
Popup.close();
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('outgoingWebhooksPopup');
|
||||
@@ -1,2 +1,3 @@
|
||||
a.js-import
|
||||
text-decoration underline
|
||||
.integration-form
|
||||
padding: 5px
|
||||
border-bottom: 1px solid #ccc
|
||||
@@ -20,6 +20,12 @@ template(name="boardList")
|
||||
i.fa.js-star-board(
|
||||
class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
|
||||
title="{{_ 'star-board-title'}}")
|
||||
|
||||
if hasSpentTimeCards
|
||||
i.fa.js-has-spenttime-cards(
|
||||
class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
|
||||
title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
|
||||
|
||||
p.board-list-item-desc= description
|
||||
li.js-add-board
|
||||
a.board-list-item.label {{_ 'add-board'}}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'boardList';
|
||||
onCreated() {
|
||||
Meteor.subscribe('setting');
|
||||
},
|
||||
|
||||
boards() {
|
||||
@@ -17,6 +19,16 @@ BlazeComponent.extendComponent({
|
||||
return user && user.hasStarred(this.currentData()._id);
|
||||
},
|
||||
|
||||
hasOvertimeCards() {
|
||||
subManager.subscribe('board', this.currentData()._id);
|
||||
return this.currentData().hasOvertimeCards();
|
||||
},
|
||||
|
||||
hasSpentTimeCards() {
|
||||
subManager.subscribe('board', this.currentData()._id);
|
||||
return this.currentData().hasSpentTimeCards();
|
||||
},
|
||||
|
||||
isInvited() {
|
||||
const user = Meteor.user();
|
||||
return user && user.isInvitedTo(this.currentData()._id);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@import 'nib'
|
||||
|
||||
$spaceBetweenTiles = 16px
|
||||
|
||||
.board-list
|
||||
@@ -15,6 +17,7 @@ $spaceBetweenTiles = 16px
|
||||
opacity: 1
|
||||
|
||||
.board-list-item
|
||||
overflow: hidden;
|
||||
background-color: #999
|
||||
color: #f6f6f6
|
||||
height: 90px
|
||||
@@ -71,6 +74,23 @@ $spaceBetweenTiles = 16px
|
||||
transition-duration: .15s
|
||||
transition-property: color, font-size, background
|
||||
|
||||
.fa-circle
|
||||
bottom: 0;
|
||||
font-size: 10px;
|
||||
height: 10px;
|
||||
line-height: 10px;
|
||||
padding: 9px 9px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
transition-duration: .15s
|
||||
transition-property: color, font-size, background
|
||||
|
||||
.has-overtime-card-active
|
||||
color: #eb4646 !important
|
||||
|
||||
.no-overtime-card-active
|
||||
color: #3cb500 !important
|
||||
|
||||
.is-star-active
|
||||
color: white
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ template(name="previewClipboardImagePopup")
|
||||
button.primary.js-upload-pasted-image {{_ 'upload'}}
|
||||
|
||||
template(name="previewAttachedImagePopup")
|
||||
img.preview-large-image.js-large-image-clicked(src="{{pathFor url}}")
|
||||
img.preview-large-image.js-large-image-clicked(src="{{url}}")
|
||||
|
||||
template(name="attachmentDeletePopup")
|
||||
p {{_ "attachment-delete-pop"}}
|
||||
@@ -21,11 +21,11 @@ template(name="attachmentDeletePopup")
|
||||
template(name="attachmentsGalery")
|
||||
.attachments-galery
|
||||
each attachments
|
||||
a.attachment-item.js-open-viewer(title="{{_ 'added'}} {{ moment uploadedAt }}")
|
||||
.attachment-thumbnail
|
||||
.attachment-item
|
||||
a.attachment-thumbnail.swipebox(href="{{url}}" title="{{name}}")
|
||||
if isUploaded
|
||||
if isImage
|
||||
img.attachment-thumbnail-img.js-preview-image(src="{{pathFor url}}")
|
||||
img.attachment-thumbnail-img(src="{{url}}")
|
||||
else
|
||||
span.attachment-thumbnail-ext= extension
|
||||
else
|
||||
@@ -49,4 +49,5 @@ template(name="attachmentsGalery")
|
||||
| {{_ 'delete'}}
|
||||
|
||||
if currentUser.isBoardMember
|
||||
a.attachment-item.add-attachment.js-add-attachment {{_ 'add-attachment' }}
|
||||
li.attachment-item.add-attachment
|
||||
a.js-add-attachment {{_ 'add-attachment' }}
|
||||
@@ -11,9 +11,6 @@ Template.attachmentsGalery.events({
|
||||
'click .js-download'(event) {
|
||||
event.stopPropagation();
|
||||
},
|
||||
'click .js-open-viewer'() {
|
||||
// XXX Not implemented!
|
||||
},
|
||||
'click .js-add-cover'() {
|
||||
Cards.findOne(this.cardId).setCover(this._id);
|
||||
},
|
||||
@@ -22,7 +19,7 @@ Template.attachmentsGalery.events({
|
||||
},
|
||||
'click .js-preview-image'(evt) {
|
||||
Popup.open('previewAttachedImage').call(this, evt);
|
||||
// when multiple thumbnails, if click one then another very fast,
|
||||
// when multiple thumbnails, if click one then another very fast,
|
||||
// we might get a wrong width from previous img.
|
||||
// when popup reused, onRendered() won't be called, so we cannot get there.
|
||||
// here make sure to get correct size when this img fully loaded.
|
||||
@@ -62,8 +59,14 @@ Template.cardAttachmentsPopup.events({
|
||||
const file = new FS.File(f);
|
||||
file.boardId = card.boardId;
|
||||
file.cardId = card._id;
|
||||
file.userId = Meteor.userId();
|
||||
|
||||
const attachment = Attachments.insert(file);
|
||||
|
||||
if (attachment && attachment._id && attachment.isImage()) {
|
||||
card.setCover(attachment._id);
|
||||
}
|
||||
|
||||
Attachments.insert(file);
|
||||
Popup.close();
|
||||
});
|
||||
},
|
||||
@@ -109,7 +112,13 @@ Template.previewClipboardImagePopup.events({
|
||||
file.updatedAt(new Date());
|
||||
file.boardId = card.boardId;
|
||||
file.cardId = card._id;
|
||||
Attachments.insert(file);
|
||||
file.userId = Meteor.userId();
|
||||
const attachment = Attachments.insert(file);
|
||||
|
||||
if (attachment && attachment._id && attachment.isImage()) {
|
||||
card.setCover(attachment._id);
|
||||
}
|
||||
|
||||
pastedResults = null;
|
||||
$(document.body).pasteImageReader(() => {});
|
||||
Popup.close();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@import 'nib'
|
||||
|
||||
.attachments-galery
|
||||
display: flex
|
||||
flex-wrap: wrap
|
||||
@@ -18,6 +20,10 @@
|
||||
display: flex
|
||||
align-items: center
|
||||
|
||||
a
|
||||
display: block
|
||||
margin: auto
|
||||
|
||||
.attachment-thumbnail
|
||||
height: 80px
|
||||
display: flex
|
||||
@@ -26,8 +32,8 @@
|
||||
position: relative
|
||||
|
||||
.attachment-thumbnail-img
|
||||
height: 100%
|
||||
width: 100%
|
||||
max-height: 100%
|
||||
max-width: 100%
|
||||
|
||||
.attachment-thumbnail-ext
|
||||
text-transform: uppercase
|
||||
@@ -37,7 +43,7 @@
|
||||
font-size: 0.75em
|
||||
margin: 3px
|
||||
|
||||
.attachment-details-actions
|
||||
.attachment-details-actions a
|
||||
display: block
|
||||
|
||||
.attachment-image-preview
|
||||
@@ -52,7 +58,28 @@
|
||||
|
||||
.preview-clipboard-image
|
||||
width: 280px
|
||||
max-width: 100%;
|
||||
height: 200px
|
||||
display: block
|
||||
border: 1px solid black
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,.2)
|
||||
|
||||
@media screen and (max-width: 800px)
|
||||
.attachments-galery
|
||||
flex-direction
|
||||
row
|
||||
.attachment-item
|
||||
width: 50% - 2%
|
||||
|
||||
.attachment-thumbnail
|
||||
height: 130px
|
||||
.attachment-details
|
||||
font-size: 1.1em
|
||||
|
||||
@media screen and (max-width: 360px)
|
||||
.attachments-galery
|
||||
.attachment-item
|
||||
width: 100%
|
||||
|
||||
.attachment-thumbnail
|
||||
height: 200px
|
||||
@@ -0,0 +1,26 @@
|
||||
template(name="editCardDate")
|
||||
.edit-card-date
|
||||
form.edit-date
|
||||
.fields
|
||||
.left
|
||||
label(for="date") {{_ 'date'}}
|
||||
input.js-date-field#date(type="text" name="date" value=showDate placeholder=dateFormat autofocus)
|
||||
.right
|
||||
label(for="time") {{_ 'time'}}
|
||||
input.js-time-field#time(type="text" name="time" value=showTime placeholder=timeFormat)
|
||||
.js-datepicker
|
||||
if error.get
|
||||
.warning {{_ error.get}}
|
||||
button.primary.wide.left.js-submit-date(type="submit") {{_ 'save'}}
|
||||
button.js-delete-date.negate.wide.right.js-delete-date {{_ 'delete'}}
|
||||
|
||||
template(name="dateBadge")
|
||||
if canModifyCard
|
||||
a.js-edit-date.card-date(title="{{showTitle}}" class="{{classes}}")
|
||||
time(datetime="{{showISODate}}")
|
||||
| {{showDate}}
|
||||
else
|
||||
a.card-date(title="{{showTitle}}" class="{{classes}}")
|
||||
time(datetime="{{showISODate}}")
|
||||
| {{showDate}}
|
||||
|
||||
@@ -0,0 +1,236 @@
|
||||
// Edit start & due dates
|
||||
const EditCardDate = BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'editCardDate';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.error = new ReactiveVar('');
|
||||
this.card = this.data();
|
||||
this.date = new ReactiveVar(moment.invalid());
|
||||
},
|
||||
|
||||
onRendered() {
|
||||
const $picker = this.$('.js-datepicker').datepicker({
|
||||
todayHighlight: true,
|
||||
todayBtn: 'linked',
|
||||
language: TAPi18n.getLanguage(),
|
||||
}).on('changeDate', function(evt) {
|
||||
this.find('#date').value = moment(evt.date).format('L');
|
||||
this.error.set('');
|
||||
this.find('#time').focus();
|
||||
}.bind(this));
|
||||
|
||||
if (this.date.get().isValid()) {
|
||||
$picker.datepicker('update', this.date.get().toDate());
|
||||
}
|
||||
},
|
||||
|
||||
showDate() {
|
||||
if (this.date.get().isValid())
|
||||
return this.date.get().format('L');
|
||||
return '';
|
||||
},
|
||||
showTime() {
|
||||
if (this.date.get().isValid())
|
||||
return this.date.get().format('LT');
|
||||
return '';
|
||||
},
|
||||
dateFormat() {
|
||||
return moment.localeData().longDateFormat('L');
|
||||
},
|
||||
timeFormat() {
|
||||
return moment.localeData().longDateFormat('LT');
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'keyup .js-date-field'() {
|
||||
// parse for localized date format in strict mode
|
||||
const dateMoment = moment(this.find('#date').value, 'L', true);
|
||||
if (dateMoment.isValid()) {
|
||||
this.error.set('');
|
||||
this.$('.js-datepicker').datepicker('update', dateMoment.toDate());
|
||||
}
|
||||
},
|
||||
'keyup .js-time-field'() {
|
||||
// parse for localized time format in strict mode
|
||||
const dateMoment = moment(this.find('#time').value, 'LT', true);
|
||||
if (dateMoment.isValid()) {
|
||||
this.error.set('');
|
||||
}
|
||||
},
|
||||
'submit .edit-date'(evt) {
|
||||
evt.preventDefault();
|
||||
|
||||
// if no time was given, init with 12:00
|
||||
const time = evt.target.time.value || moment(new Date().setHours(12, 0, 0)).format('LT');
|
||||
|
||||
const dateString = `${evt.target.date.value} ${time}`;
|
||||
const newDate = moment(dateString, 'L LT', true);
|
||||
if (newDate.isValid()) {
|
||||
this._storeDate(newDate.toDate());
|
||||
Popup.close();
|
||||
}
|
||||
else {
|
||||
this.error.set('invalid-date');
|
||||
evt.target.date.focus();
|
||||
}
|
||||
},
|
||||
'click .js-delete-date'(evt) {
|
||||
evt.preventDefault();
|
||||
this._deleteDate();
|
||||
Popup.close();
|
||||
},
|
||||
}];
|
||||
},
|
||||
});
|
||||
|
||||
Template.dateBadge.helpers({
|
||||
canModifyCard() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
});
|
||||
|
||||
// editCardStartDatePopup
|
||||
(class extends EditCardDate {
|
||||
onCreated() {
|
||||
super.onCreated();
|
||||
this.data().startAt && this.date.set(moment(this.data().startAt));
|
||||
}
|
||||
|
||||
_storeDate(date) {
|
||||
this.card.setStart(date);
|
||||
}
|
||||
|
||||
_deleteDate() {
|
||||
this.card.unsetStart();
|
||||
}
|
||||
}).register('editCardStartDatePopup');
|
||||
|
||||
// editCardDueDatePopup
|
||||
(class extends EditCardDate {
|
||||
onCreated() {
|
||||
super.onCreated();
|
||||
this.data().dueAt && this.date.set(moment(this.data().dueAt));
|
||||
}
|
||||
|
||||
onRendered() {
|
||||
super.onRendered();
|
||||
if (moment.isDate(this.card.startAt)) {
|
||||
this.$('.js-datepicker').datepicker('setStartDate', this.card.startAt);
|
||||
}
|
||||
}
|
||||
|
||||
_storeDate(date) {
|
||||
this.card.setDue(date);
|
||||
}
|
||||
|
||||
_deleteDate() {
|
||||
this.card.unsetDue();
|
||||
}
|
||||
}).register('editCardDueDatePopup');
|
||||
|
||||
|
||||
// Display start & due dates
|
||||
const CardDate = BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'dateBadge';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
const self = this;
|
||||
self.date = ReactiveVar();
|
||||
self.now = ReactiveVar(moment());
|
||||
window.setInterval(() => {
|
||||
self.now.set(moment());
|
||||
}, 60000);
|
||||
},
|
||||
|
||||
showDate() {
|
||||
// this will start working once mquandalle:moment
|
||||
// is updated to at least moment.js 2.10.5
|
||||
// until then, the date is displayed in the "L" format
|
||||
return this.date.get().calendar(null, {
|
||||
sameElse: 'llll',
|
||||
});
|
||||
},
|
||||
|
||||
showISODate() {
|
||||
return this.date.get().toISOString();
|
||||
},
|
||||
});
|
||||
|
||||
class CardStartDate extends CardDate {
|
||||
onCreated() {
|
||||
super.onCreated();
|
||||
const self = this;
|
||||
self.autorun(() => {
|
||||
self.date.set(moment(self.data().startAt));
|
||||
});
|
||||
}
|
||||
|
||||
classes() {
|
||||
let classes = 'start-date' + ' ';
|
||||
if (this.date.get().isBefore(this.now.get(), 'minute') &&
|
||||
this.now.get().isBefore(this.data().dueAt)) {
|
||||
classes += 'current';
|
||||
}
|
||||
return classes;
|
||||
}
|
||||
|
||||
showTitle() {
|
||||
return `${TAPi18n.__('card-start-on')} ${this.date.get().format('LLLL')}`;
|
||||
}
|
||||
|
||||
events() {
|
||||
return super.events().concat({
|
||||
'click .js-edit-date': Popup.open('editCardStartDate'),
|
||||
});
|
||||
}
|
||||
}
|
||||
CardStartDate.register('cardStartDate');
|
||||
|
||||
class CardDueDate extends CardDate {
|
||||
onCreated() {
|
||||
super.onCreated();
|
||||
const self = this;
|
||||
self.autorun(() => {
|
||||
self.date.set(moment(self.data().dueAt));
|
||||
});
|
||||
}
|
||||
|
||||
classes() {
|
||||
let classes = 'due-date' + ' ';
|
||||
if (this.now.get().diff(this.date.get(), 'days') >= 2)
|
||||
classes += 'long-overdue';
|
||||
else if (this.now.get().diff(this.date.get(), 'minute') >= 0)
|
||||
classes += 'due';
|
||||
else if (this.now.get().diff(this.date.get(), 'days') >= -1)
|
||||
classes += 'almost-due';
|
||||
return classes;
|
||||
}
|
||||
|
||||
showTitle() {
|
||||
return `${TAPi18n.__('card-due-on')} ${this.date.get().format('LLLL')}`;
|
||||
}
|
||||
|
||||
events() {
|
||||
return super.events().concat({
|
||||
'click .js-edit-date': Popup.open('editCardDueDate'),
|
||||
});
|
||||
}
|
||||
}
|
||||
CardDueDate.register('cardDueDate');
|
||||
|
||||
(class extends CardStartDate {
|
||||
showDate() {
|
||||
return this.date.get().format('l');
|
||||
}
|
||||
}).register('minicardStartDate');
|
||||
|
||||
(class extends CardDueDate {
|
||||
showDate() {
|
||||
return this.date.get().format('l');
|
||||
}
|
||||
}).register('minicardDueDate');
|
||||
@@ -0,0 +1,68 @@
|
||||
.edit-card-date
|
||||
.fields
|
||||
.left
|
||||
width: 56%
|
||||
.right
|
||||
width: 38%
|
||||
.datepicker
|
||||
width: 100%
|
||||
table
|
||||
width: 100%
|
||||
border: none
|
||||
border-spacing: 0
|
||||
border-collapse: collapse
|
||||
thead
|
||||
background: none
|
||||
td, th
|
||||
box-sizing: border-box
|
||||
|
||||
|
||||
.card-date
|
||||
display: block
|
||||
border-radius: 4px
|
||||
padding: 1px 3px
|
||||
|
||||
background-color: #dbdbdb
|
||||
&:hover, &.is-active
|
||||
background-color: #b3b3b3
|
||||
|
||||
&.current, &.almost-due, &.due, &.long-overdue
|
||||
color: #fff
|
||||
|
||||
&.current
|
||||
background-color: #5ba639
|
||||
&:hover, &.is-active
|
||||
background-color: darken(#5ba639, 10)
|
||||
|
||||
&.almost-due
|
||||
background-color: #edc909
|
||||
&:hover, &.is-active
|
||||
background-color: darken(#edc909, 10)
|
||||
|
||||
&.due
|
||||
background-color: #fa3f00
|
||||
&:hover, &.is-active
|
||||
background-color: darken(#fa3f00, 10)
|
||||
|
||||
&.long-overdue
|
||||
background-color: #fd5d47
|
||||
&:hover, &.is-active
|
||||
background-color: darken(#fd5d47, 7)
|
||||
|
||||
&.due-date
|
||||
time
|
||||
&::before
|
||||
content: "\f090" // symbol: fa-sign-in
|
||||
|
||||
&.start-date
|
||||
time
|
||||
&::before
|
||||
content: "\f08b" // symbol: fa-sign-out
|
||||
|
||||
time
|
||||
&::before
|
||||
font: normal normal normal 14px/1 FontAwesome
|
||||
font-size: inherit
|
||||
-webkit-font-smoothing: antialiased
|
||||
margin-right: 0.3em
|
||||
|
||||
@@ -2,17 +2,17 @@ template(name="cardDetails")
|
||||
section.card-details.js-card-details.js-perfect-scrollbar: .card-details-canvas
|
||||
.card-details-header
|
||||
+inlinedForm(classNames="js-card-details-title")
|
||||
input.full-line(type="text" value=title autofocus)
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm(type="submit") {{_ 'save'}}
|
||||
a.fa.fa-times-thin.js-close-inlined-form
|
||||
+editCardTitleForm
|
||||
else
|
||||
a.fa.fa-times-thin.close-card-details.js-close-card-details
|
||||
if currentUser.isBoardMember
|
||||
a.fa.fa-navicon.card-details-menu.js-open-card-details-menu
|
||||
h2.card-details-title.js-card-title(
|
||||
class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
|
||||
= title
|
||||
class="{{#if canModifyCard}}js-open-inlined-form is-editable{{/if}}")
|
||||
+viewer
|
||||
= title
|
||||
if isWatching
|
||||
i.fa.fa-eye.card-details-watch
|
||||
|
||||
if archived
|
||||
p.warning {{_ 'card-archived'}}
|
||||
@@ -23,21 +23,40 @@ template(name="cardDetails")
|
||||
each members
|
||||
+userAvatar(userId=this cardId=../_id)
|
||||
| {{! XXX Hack to hide syntaxic coloration /// }}
|
||||
if currentUser.isBoardMember
|
||||
if canModifyCard
|
||||
a.member.add-member.card-details-item-add-button.js-add-members(title="{{_ 'card-members-title'}}")
|
||||
i.fa.fa-plus
|
||||
|
||||
.card-details-item.card-details-item-labels
|
||||
h3.card-details-item-title {{_ 'labels'}}
|
||||
a(class="{{#if currentUser.isBoardMember}}js-add-labels{{else}}is-disabled{{/if}}" title="{{_ 'card-labels-title'}}")
|
||||
a(class="{{#if canModifyCard}}js-add-labels{{else}}is-disabled{{/if}}" title="{{_ 'card-labels-title'}}")
|
||||
each labels
|
||||
span.card-label(class="card-label-{{color}}" title=name)= name
|
||||
if currentUser.isBoardMember
|
||||
if canModifyCard
|
||||
a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
|
||||
i.fa.fa-plus
|
||||
|
||||
if startAt
|
||||
.card-details-item.card-details-item-start
|
||||
h3.card-details-item-title {{_ 'card-start'}}
|
||||
+cardStartDate
|
||||
|
||||
if dueAt
|
||||
.card-details-item.card-details-item-due
|
||||
h3.card-details-item-title {{_ 'card-due'}}
|
||||
+cardDueDate
|
||||
|
||||
.card-details-items
|
||||
if spentTime
|
||||
.card-details-item.card-details-item-spent
|
||||
if isOvertime
|
||||
h3.card-details-item-title {{_ 'overtime-hours'}}
|
||||
else
|
||||
h3.card-details-item-title {{_ 'spent-time-hours'}}
|
||||
+cardSpentTime
|
||||
|
||||
//- XXX We should use "editable" to avoid repetiting ourselves
|
||||
if currentUser.isBoardMember
|
||||
if canModifyCard
|
||||
h3.card-details-item-title {{_ 'description'}}
|
||||
+inlinedCardDescription(classNames="card-description js-card-description")
|
||||
+editor(autofocus=true)
|
||||
@@ -62,35 +81,95 @@ template(name="cardDetails")
|
||||
h3.card-details-item-title {{_ 'description'}}
|
||||
+viewer
|
||||
= description
|
||||
if attachments.count
|
||||
hr
|
||||
h2
|
||||
i.fa.fa-paperclip
|
||||
| {{_ 'attachments'}}
|
||||
|
||||
+attachmentsGalery
|
||||
|
||||
hr
|
||||
h2 {{ _ 'activity'}}
|
||||
+checklists(cardId = _id)
|
||||
|
||||
hr
|
||||
h2
|
||||
i.fa.fa-paperclip
|
||||
| {{_ 'attachments'}}
|
||||
|
||||
+attachmentsGalery
|
||||
|
||||
hr
|
||||
.activity-title
|
||||
h2 {{ _ 'activity'}}
|
||||
if currentUser.isBoardMember
|
||||
.material-toggle-switch
|
||||
span.toggle-switch-title {{_ 'hide-system-messages'}}
|
||||
if hiddenSystemMessages
|
||||
input.toggle-switch(type="checkbox" id="toggleButton" checked="checked")
|
||||
else
|
||||
input.toggle-switch(type="checkbox" id="toggleButton")
|
||||
label.toggle-label(for="toggleButton")
|
||||
if currentUser.isBoardMember
|
||||
+commentForm
|
||||
if isLoaded.get
|
||||
+activities(card=this mode="card")
|
||||
|
||||
template(name="editCardTitleForm")
|
||||
textarea.js-edit-card-title(rows='1' autofocus)
|
||||
= title
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm.js-submit-edit-card-title-form(type="submit") {{_ 'save'}}
|
||||
a.fa.fa-times-thin.js-close-inlined-form
|
||||
|
||||
template(name="cardDetailsActionsPopup")
|
||||
ul.pop-over-list
|
||||
li: a.js-members {{_ 'card-edit-members'}}
|
||||
li: a.js-labels {{_ 'card-edit-labels'}}
|
||||
li: a.js-attachments {{_ 'card-edit-attachments'}}
|
||||
hr
|
||||
ul.pop-over-list
|
||||
li: a.js-move-card {{_ 'moveCardPopup-title'}}
|
||||
unless archived
|
||||
li: a.js-archive {{_ 'archive-card'}}
|
||||
li: a.js-more {{_ 'cardMorePopup-title'}}
|
||||
li: a.js-toggle-watch-card {{#if isWatching}}{{_ 'unwatch'}}{{else}}{{_ 'watch'}}{{/if}}
|
||||
if canModifyCard
|
||||
hr
|
||||
ul.pop-over-list
|
||||
li: a.js-members {{_ 'card-edit-members'}}
|
||||
li: a.js-labels {{_ 'card-edit-labels'}}
|
||||
li: a.js-attachments {{_ 'card-edit-attachments'}}
|
||||
li: a.js-start-date {{_ 'editCardStartDatePopup-title'}}
|
||||
li: a.js-due-date {{_ 'editCardDueDatePopup-title'}}
|
||||
li: a.js-spent-time {{_ 'editCardSpentTimePopup-title'}}
|
||||
hr
|
||||
ul.pop-over-list
|
||||
li: a.js-move-card-to-top {{_ 'moveCardToTop-title'}}
|
||||
li: a.js-move-card-to-bottom {{_ 'moveCardToBottom-title'}}
|
||||
hr
|
||||
ul.pop-over-list
|
||||
li: a.js-move-card {{_ 'moveCardPopup-title'}}
|
||||
li: a.js-copy-card {{_ 'copyCardPopup-title'}}
|
||||
unless archived
|
||||
li: a.js-archive {{_ 'archive-card'}}
|
||||
li: a.js-more {{_ 'cardMorePopup-title'}}
|
||||
|
||||
template(name="moveCardPopup")
|
||||
+boardLists
|
||||
if isSandstorm
|
||||
+boardLists
|
||||
else
|
||||
+boardsAndLists
|
||||
|
||||
template(name="copyCardPopup")
|
||||
label(for='copy-card-title') {{_ 'title'}}:
|
||||
textarea#copy-card-title.minicard-composer-textarea.js-card-title(autofocus)
|
||||
= title
|
||||
if isSandstorm
|
||||
+boardLists
|
||||
else
|
||||
+boardsAndLists
|
||||
|
||||
template(name="boardsAndLists")
|
||||
select.js-select-boards
|
||||
each boards
|
||||
if $eq _id currentBoard._id
|
||||
option(value="{{_id}}" selected) {{_ 'current'}}
|
||||
else
|
||||
option(value="{{_id}}") {{title}}
|
||||
|
||||
label {{_ 'lists'}}:
|
||||
ul.pop-over-list
|
||||
each aBoardLists
|
||||
li
|
||||
if $eq ../_id _id
|
||||
a.disabled {{title}} ({{_ 'current'}})
|
||||
else
|
||||
a.js-select-list= title
|
||||
|
||||
template(name="cardMembersPopup")
|
||||
ul.pop-over-list.js-card-member-list
|
||||
@@ -110,7 +189,10 @@ template(name="cardMorePopup")
|
||||
span {{_ 'link-card'}}
|
||||
= ' '
|
||||
i.fa.colorful(class="{{#if board.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
||||
input.inline-input(type="text" readonly value="{{ rootUrl }}")
|
||||
input.inline-input(type="text" id="cardURL" readonly value="{{ absoluteUrl }}")
|
||||
button.js-copy-card-link-to-clipboard(class="btn") {{_ 'copy-card-link-to-clipboard'}}
|
||||
span.clearfix
|
||||
br
|
||||
| {{_ 'added'}}
|
||||
span.date(title=card.createdAt) {{ moment createdAt 'LLL' }}
|
||||
a.js-delete(title="{{_ 'card-delete-notice'}}") {{_ 'delete'}}
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'cardDetails';
|
||||
},
|
||||
const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
mixins() {
|
||||
return [Mixins.InfiniteScrolling, Mixins.PerfectScrollbar];
|
||||
},
|
||||
|
||||
calculateNextPeak() {
|
||||
const altitude = this.find('.js-card-details').scrollHeight;
|
||||
this.callFirstWith(this, 'setNextPeak', altitude);
|
||||
const cardElement = this.find('.js-card-details');
|
||||
if (cardElement) {
|
||||
const altitude = cardElement.scrollHeight;
|
||||
this.callFirstWith(this, 'setNextPeak', altitude);
|
||||
}
|
||||
},
|
||||
|
||||
reachNextPeak() {
|
||||
@@ -19,13 +20,29 @@ BlazeComponent.extendComponent({
|
||||
|
||||
onCreated() {
|
||||
this.isLoaded = new ReactiveVar(false);
|
||||
this.parentComponent().showOverlay.set(true);
|
||||
this.parentComponent().mouseHasEnterCardDetails = false;
|
||||
this.parentComponent().parentComponent().showOverlay.set(true);
|
||||
this.parentComponent().parentComponent().mouseHasEnterCardDetails = false;
|
||||
this.calculateNextPeak();
|
||||
|
||||
Meteor.subscribe('unsaved-edits');
|
||||
},
|
||||
|
||||
isWatching() {
|
||||
const card = this.currentData();
|
||||
return card.findWatcher(Meteor.userId());
|
||||
},
|
||||
|
||||
hiddenSystemMessages() {
|
||||
return Meteor.user().hasHiddenSystemMessages();
|
||||
},
|
||||
|
||||
canModifyCard() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
|
||||
scrollParentContainer() {
|
||||
const cardPanelWidth = 510;
|
||||
const bodyBoardComponent = this.parentComponent();
|
||||
const bodyBoardComponent = this.parentComponent().parentComponent();
|
||||
|
||||
const $cardContainer = bodyBoardComponent.$('.js-lists');
|
||||
const $cardView = this.$(this.firstNode());
|
||||
@@ -38,7 +55,7 @@ BlazeComponent.extendComponent({
|
||||
let offset = false;
|
||||
if (cardViewStart < 0) {
|
||||
offset = cardViewStart;
|
||||
} else if(cardViewEnd > cardContainerWidth) {
|
||||
} else if (cardViewEnd > cardContainerWidth) {
|
||||
offset = cardViewEnd - cardContainerWidth;
|
||||
}
|
||||
|
||||
@@ -52,11 +69,14 @@ BlazeComponent.extendComponent({
|
||||
},
|
||||
|
||||
onDestroyed() {
|
||||
this.parentComponent().showOverlay.set(false);
|
||||
this.parentComponent().parentComponent().showOverlay.set(false);
|
||||
},
|
||||
|
||||
events() {
|
||||
const events = {
|
||||
[`${CSSEvents.transitionend} .js-card-details`]() {
|
||||
this.isLoaded.set(true);
|
||||
},
|
||||
[`${CSSEvents.animationend} .js-card-details`]() {
|
||||
this.isLoaded.set(true);
|
||||
},
|
||||
@@ -64,16 +84,16 @@ BlazeComponent.extendComponent({
|
||||
|
||||
return [{
|
||||
...events,
|
||||
'click .js-close-card-details'() {
|
||||
'click .js-close-card-details' () {
|
||||
Utils.goBoardId(this.data().boardId);
|
||||
},
|
||||
'click .js-open-card-details-menu': Popup.open('cardDetailsActions'),
|
||||
'submit .js-card-description'(evt) {
|
||||
'submit .js-card-description' (evt) {
|
||||
evt.preventDefault();
|
||||
const description = this.currentComponent().getValue();
|
||||
this.data().setDescription(description);
|
||||
},
|
||||
'submit .js-card-details-title'(evt) {
|
||||
'submit .js-card-details-title' (evt) {
|
||||
evt.preventDefault();
|
||||
const title = this.currentComponent().getValue().trim();
|
||||
if (title) {
|
||||
@@ -83,9 +103,12 @@ BlazeComponent.extendComponent({
|
||||
'click .js-member': Popup.open('cardMember'),
|
||||
'click .js-add-members': Popup.open('cardMembers'),
|
||||
'click .js-add-labels': Popup.open('cardLabels'),
|
||||
'mouseenter .js-card-details'() {
|
||||
this.parentComponent().showOverlay.set(true);
|
||||
this.parentComponent().mouseHasEnterCardDetails = true;
|
||||
'mouseenter .js-card-details' () {
|
||||
this.parentComponent().parentComponent().showOverlay.set(true);
|
||||
this.parentComponent().parentComponent().mouseHasEnterCardDetails = true;
|
||||
},
|
||||
'click #toggleButton'() {
|
||||
Meteor.call('toggleSystemMessages');
|
||||
},
|
||||
}];
|
||||
},
|
||||
@@ -111,7 +134,7 @@ BlazeComponent.extendComponent({
|
||||
UnsavedEdits.set(this._getUnsavedEditKey(), this.getValue());
|
||||
}
|
||||
}
|
||||
super();
|
||||
super.close();
|
||||
}
|
||||
|
||||
reset() {
|
||||
@@ -128,21 +151,66 @@ BlazeComponent.extendComponent({
|
||||
}
|
||||
}).register('inlinedCardDescription');
|
||||
|
||||
Template.cardDetailsActionsPopup.helpers({
|
||||
isWatching() {
|
||||
return this.findWatcher(Meteor.userId());
|
||||
},
|
||||
|
||||
canModifyCard() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
});
|
||||
|
||||
Template.cardDetailsActionsPopup.events({
|
||||
'click .js-members': Popup.open('cardMembers'),
|
||||
'click .js-labels': Popup.open('cardLabels'),
|
||||
'click .js-attachments': Popup.open('cardAttachments'),
|
||||
'click .js-start-date': Popup.open('editCardStartDate'),
|
||||
'click .js-due-date': Popup.open('editCardDueDate'),
|
||||
'click .js-spent-time': Popup.open('editCardSpentTime'),
|
||||
'click .js-move-card': Popup.open('moveCard'),
|
||||
'click .js-archive'(evt) {
|
||||
'click .js-copy-card': Popup.open('copyCard'),
|
||||
'click .js-move-card-to-top' (evt) {
|
||||
evt.preventDefault();
|
||||
const minOrder = _.min(this.list().cards().map((c) => c.sort));
|
||||
this.move(this.listId, minOrder - 1);
|
||||
},
|
||||
'click .js-move-card-to-bottom' (evt) {
|
||||
evt.preventDefault();
|
||||
const maxOrder = _.max(this.list().cards().map((c) => c.sort));
|
||||
this.move(this.listId, maxOrder + 1);
|
||||
},
|
||||
'click .js-archive' (evt) {
|
||||
evt.preventDefault();
|
||||
this.archive();
|
||||
Popup.close();
|
||||
},
|
||||
'click .js-more': Popup.open('cardMore'),
|
||||
'click .js-toggle-watch-card' () {
|
||||
const currentCard = this;
|
||||
const level = currentCard.findWatcher(Meteor.userId()) ? null : 'watching';
|
||||
Meteor.call('watch', 'card', currentCard._id, level, (err, ret) => {
|
||||
if (!err && ret) Popup.close();
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Template.editCardTitleForm.onRendered(function () {
|
||||
autosize(this.$('.js-edit-card-title'));
|
||||
});
|
||||
|
||||
Template.editCardTitleForm.events({
|
||||
'keydown .js-edit-card-title' (evt) {
|
||||
// If enter key was pressed, submit the data
|
||||
// Unless the shift key is also being pressed
|
||||
if (evt.keyCode === 13 && !evt.shiftKey) {
|
||||
$('.js-submit-edit-card-title-form').click();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Template.moveCardPopup.events({
|
||||
'click .js-select-list'() {
|
||||
'click .js-select-list' () {
|
||||
// XXX We should *not* get the currentCard from the global state, but
|
||||
// instead from a “component” state.
|
||||
const card = Cards.findOne(Session.get('currentCard'));
|
||||
@@ -152,8 +220,106 @@ Template.moveCardPopup.events({
|
||||
},
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.selectedBoard = new ReactiveVar(Session.get('currentBoard'));
|
||||
},
|
||||
|
||||
boards() {
|
||||
const boards = Boards.find({
|
||||
archived: false,
|
||||
'members.userId': Meteor.userId(),
|
||||
}, {
|
||||
sort: ['title'],
|
||||
});
|
||||
return boards;
|
||||
},
|
||||
|
||||
aBoardLists() {
|
||||
subManager.subscribe('board', this.selectedBoard.get());
|
||||
const board = Boards.findOne(this.selectedBoard.get());
|
||||
return board.lists();
|
||||
},
|
||||
events() {
|
||||
return [{
|
||||
'change .js-select-boards'(evt) {
|
||||
this.selectedBoard.set($(evt.currentTarget).val());
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('boardsAndLists');
|
||||
|
||||
Template.copyCardPopup.events({
|
||||
'click .js-select-list' (evt) {
|
||||
const card = Cards.findOne(Session.get('currentCard'));
|
||||
const oldId = card._id;
|
||||
card._id = null;
|
||||
card.listId = this._id;
|
||||
const list = Lists.findOne(card.listId);
|
||||
card.boardId = list.boardId;
|
||||
const textarea = $(evt.currentTarget).parents('.content').find('textarea');
|
||||
const title = textarea.val().trim();
|
||||
// insert new card to the bottom of new list
|
||||
card.sort = Lists.findOne(this._id).cards().count();
|
||||
|
||||
if (title) {
|
||||
card.title = title;
|
||||
card.coverId = '';
|
||||
const _id = Cards.insert(card);
|
||||
// In case the filter is active we need to add the newly inserted card in
|
||||
// the list of exceptions -- cards that are not filtered. Otherwise the
|
||||
// card will disappear instantly.
|
||||
// See https://github.com/wekan/wekan/issues/80
|
||||
Filter.addException(_id);
|
||||
|
||||
// copy checklists
|
||||
let cursor = Checklists.find({cardId: oldId});
|
||||
cursor.forEach(function() {
|
||||
'use strict';
|
||||
const checklist = arguments[0];
|
||||
checklist.cardId = _id;
|
||||
checklist._id = null;
|
||||
Checklists.insert(checklist);
|
||||
});
|
||||
|
||||
// copy card comments
|
||||
cursor = CardComments.find({cardId: oldId});
|
||||
cursor.forEach(function () {
|
||||
'use strict';
|
||||
const comment = arguments[0];
|
||||
comment.cardId = _id;
|
||||
comment._id = null;
|
||||
CardComments.insert(comment);
|
||||
});
|
||||
Popup.close();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Template.cardMorePopup.events({
|
||||
'click .js-delete': Popup.afterConfirm('cardDelete', function() {
|
||||
'click .js-copy-card-link-to-clipboard' () {
|
||||
// Clipboard code from:
|
||||
// https://stackoverflow.com/questions/6300213/copy-selected-text-to-the-clipboard-without-using-flash-must-be-cross-browser
|
||||
const StringToCopyElement = document.getElementById('cardURL');
|
||||
StringToCopyElement.select();
|
||||
if (document.execCommand('copy')) {
|
||||
StringToCopyElement.blur();
|
||||
} else {
|
||||
document.getElementById('cardURL').selectionStart = 0;
|
||||
document.getElementById('cardURL').selectionEnd = 999;
|
||||
document.execCommand('copy');
|
||||
if (window.getSelection) {
|
||||
if (window.getSelection().empty) { // Chrome
|
||||
window.getSelection().empty();
|
||||
} else if (window.getSelection().removeAllRanges) { // Firefox
|
||||
window.getSelection().removeAllRanges();
|
||||
}
|
||||
} else if (document.selection) { // IE?
|
||||
document.selection.empty();
|
||||
}
|
||||
}
|
||||
},
|
||||
'click .js-delete': Popup.afterConfirm('cardDelete', function () {
|
||||
Popup.close();
|
||||
Cards.remove(this._id);
|
||||
Utils.goBoardId(this.boardId);
|
||||
@@ -162,8 +328,12 @@ Template.cardMorePopup.events({
|
||||
|
||||
// Close the card details pane by pressing escape
|
||||
EscapeActions.register('detailsPane',
|
||||
() => { Utils.goBoardId(Session.get('currentBoard')); },
|
||||
() => { return !Session.equals('currentCard', null); }, {
|
||||
() => {
|
||||
Utils.goBoardId(Session.get('currentBoard'));
|
||||
},
|
||||
() => {
|
||||
return !Session.equals('currentCard', null);
|
||||
}, {
|
||||
noClickEscapeOn: '.js-card-details,.board-sidebar,#header',
|
||||
}
|
||||
);
|
||||
@@ -36,6 +36,11 @@
|
||||
font-size: 17px
|
||||
padding: 10px
|
||||
|
||||
.card-details-watch
|
||||
font-size: 17px
|
||||
padding-left: 7px
|
||||
color: #a6a6a6
|
||||
|
||||
.card-details-title
|
||||
font-weight: bold
|
||||
font-size: 1.33em
|
||||
@@ -68,8 +73,13 @@
|
||||
margin: 15px 0
|
||||
|
||||
.card-details-item
|
||||
margin-right: 0.5em
|
||||
&:last-child
|
||||
margin-right: 0
|
||||
&.card-details-item-labels,
|
||||
&.card-details-item-members
|
||||
&.card-details-item-members,
|
||||
&.card-details-item-start,
|
||||
&.card-details-item-due
|
||||
width: 50%
|
||||
flex-shrink: 1
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
template(name="editCardSpentTime")
|
||||
.edit-card-time
|
||||
form.edit-time
|
||||
.fields
|
||||
label(for="time") {{_ 'time'}}
|
||||
input.js-time-field#time(type="number" step="0.01" name="time" value="{{card.spentTime}}" placeholder=timeFormat autofocus)
|
||||
label(for="overtime") {{_ 'overtime'}}
|
||||
a.js-toggle-overtime
|
||||
.materialCheckBox#overtime(class="{{#if card.isOvertime}}is-checked{{/if}}" name="overtime")
|
||||
|
||||
if error.get
|
||||
.warning {{_ error.get}}
|
||||
button.primary.wide.left.js-submit-time(type="submit") {{_ 'save'}}
|
||||
button.js-delete-time.negate.wide.right {{_ 'delete'}}
|
||||
|
||||
template(name="timeBadge")
|
||||
if canModifyCard
|
||||
a.js-edit-time.card-time(title="{{showTitle}}" class="{{#if isOvertime}}card-label-red{{else}}card-label-green{{/if}}")
|
||||
| {{showTime}}
|
||||
else
|
||||
a.card-time(title="{{showTitle}}" class="{{#if isOvertime}}card-label-red{{else}}card-label-green{{/if}}")
|
||||
| {{showTime}}
|
||||
@@ -0,0 +1,81 @@
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'editCardSpentTime';
|
||||
},
|
||||
onCreated() {
|
||||
this.error = new ReactiveVar('');
|
||||
this.card = this.data();
|
||||
},
|
||||
toggleOvertime() {
|
||||
this.card.isOvertime = !this.card.isOvertime;
|
||||
$('#overtime .materialCheckBox').toggleClass('is-checked');
|
||||
|
||||
$('#overtime').toggleClass('is-checked');
|
||||
},
|
||||
storeTime(spentTime, isOvertime) {
|
||||
this.card.setSpentTime(spentTime);
|
||||
this.card.setOvertime(isOvertime);
|
||||
},
|
||||
deleteTime() {
|
||||
this.card.unsetSpentTime();
|
||||
},
|
||||
events() {
|
||||
return [{
|
||||
//TODO : need checking this portion
|
||||
'submit .edit-time'(evt) {
|
||||
evt.preventDefault();
|
||||
|
||||
const spentTime = parseFloat(evt.target.time.value);
|
||||
const isOvertime = this.card.isOvertime;
|
||||
|
||||
if (spentTime >= 0) {
|
||||
this.storeTime(spentTime, isOvertime);
|
||||
Popup.close();
|
||||
} else {
|
||||
this.error.set('invalid-time');
|
||||
evt.target.time.focus();
|
||||
}
|
||||
},
|
||||
'click .js-delete-time'(evt) {
|
||||
evt.preventDefault();
|
||||
this.deleteTime();
|
||||
Popup.close();
|
||||
},
|
||||
'click a.js-toggle-overtime': this.toggleOvertime,
|
||||
}];
|
||||
},
|
||||
}).register('editCardSpentTimePopup');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'timeBadge';
|
||||
},
|
||||
onCreated() {
|
||||
const self = this;
|
||||
self.time = ReactiveVar();
|
||||
},
|
||||
showTitle() {
|
||||
if (this.data().isOvertime) {
|
||||
return `${TAPi18n.__('overtime')} ${this.data().spentTime} ${TAPi18n.__('hours')}`;
|
||||
} else {
|
||||
return `${TAPi18n.__('card-spent')} ${this.data().spentTime} ${TAPi18n.__('hours')}`;
|
||||
}
|
||||
},
|
||||
showTime() {
|
||||
return this.data().spentTime;
|
||||
},
|
||||
isOvertime() {
|
||||
return this.data().isOvertime;
|
||||
},
|
||||
events() {
|
||||
return [{
|
||||
'click .js-edit-time': Popup.open('editCardSpentTime'),
|
||||
}];
|
||||
},
|
||||
}).register('cardSpentTime');
|
||||
|
||||
Template.timeBadge.helpers({
|
||||
canModifyCard() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,17 @@
|
||||
.card-time
|
||||
display: block
|
||||
border-radius: 4px
|
||||
padding: 1px 3px
|
||||
color: #fff
|
||||
|
||||
background-color: #dbdbdb
|
||||
&:hover, &.is-active
|
||||
background-color: #b3b3b3
|
||||
|
||||
time
|
||||
&::before
|
||||
font: normal normal normal 14px/1 FontAwesome
|
||||
font-size: inherit
|
||||
-webkit-font-smoothing: antialiased
|
||||
content: "\f017" // clock symbol
|
||||
margin-right: 0.3em
|
||||
@@ -0,0 +1,97 @@
|
||||
template(name="checklists")
|
||||
h2 {{_ 'checklists'}}
|
||||
if toggleDeleteDialog.get
|
||||
.board-overlay#card-details-overlay
|
||||
+checklistDeleteDialog(checklist = checklistToDelete)
|
||||
|
||||
|
||||
.card-checklist-items
|
||||
each checklist in currentCard.checklists
|
||||
+checklistDetail(checklist = checklist)
|
||||
|
||||
if canModifyCard
|
||||
+inlinedForm(autoclose=false classNames="js-add-checklist" cardId = cardId)
|
||||
+addChecklistItemForm
|
||||
else
|
||||
a.js-open-inlined-form
|
||||
i.fa.fa-plus
|
||||
| {{_ 'add-checklist'}}...
|
||||
|
||||
template(name="checklistDetail")
|
||||
+inlinedForm(classNames="js-edit-checklist-title" checklist = checklist)
|
||||
+editChecklistItemForm(checklist = checklist)
|
||||
else
|
||||
.checklist-title
|
||||
.checkbox.fa.fa-check-square-o
|
||||
if canModifyCard
|
||||
a.js-delete-checklist.toggle-delete-checklist-dialog {{_ "delete"}}...
|
||||
|
||||
span.checklist-stat(class="{{#if checklist.isFinished}}is-finished{{/if}}") {{checklist.finishedCount}}/{{checklist.itemCount}}
|
||||
if canModifyCard
|
||||
h2.title.js-open-inlined-form.is-editable
|
||||
+viewer
|
||||
= checklist.title
|
||||
else
|
||||
h2.title
|
||||
+viewer
|
||||
= checklist.title
|
||||
+checklistItems(checklist = checklist)
|
||||
|
||||
template(name="checklistDeleteDialog")
|
||||
.js-confirm-checklist-delete
|
||||
p
|
||||
i(class="fa fa-exclamation-triangle" aria-hidden="true")
|
||||
p
|
||||
| {{_ 'confirm-checklist-delete-dialog'}}
|
||||
span {{checklist.title}}
|
||||
| ?
|
||||
.js-checklist-delete-buttons
|
||||
button.confirm-checklist-delete(type="button") {{_ 'delete'}}
|
||||
button.toggle-delete-checklist-dialog(type="button") {{_ 'cancel'}}
|
||||
|
||||
template(name="addChecklistItemForm")
|
||||
textarea.js-add-checklist-item(rows='1' autofocus)
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm.js-submit-add-checklist-item-form(type="submit") {{_ 'save'}}
|
||||
a.fa.fa-times-thin.js-close-inlined-form
|
||||
|
||||
template(name="editChecklistItemForm")
|
||||
textarea.js-edit-checklist-item(rows='1' autofocus)
|
||||
if $eq type 'item'
|
||||
= item.title
|
||||
else
|
||||
= checklist.title
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm.js-submit-edit-checklist-item-form(type="submit") {{_ 'save'}}
|
||||
a.fa.fa-times-thin.js-close-inlined-form
|
||||
span(title=createdAt) {{ moment createdAt }}
|
||||
if canModifyCard
|
||||
a.js-delete-checklist-item {{_ "delete"}}...
|
||||
|
||||
template(name="checklistItems")
|
||||
.checklist-items.js-checklist-items
|
||||
each item in checklist.getItemsSorted
|
||||
+inlinedForm(classNames="js-edit-checklist-item" item = item checklist = checklist)
|
||||
+editChecklistItemForm(type = 'item' item = item checklist = checklist)
|
||||
else
|
||||
+itemDetail(item = item checklist = checklist)
|
||||
if canModifyCard
|
||||
+inlinedForm(autoclose=false classNames="js-add-checklist-item" checklist = checklist)
|
||||
+addChecklistItemForm
|
||||
else
|
||||
a.add-checklist-item.js-open-inlined-form
|
||||
i.fa.fa-plus
|
||||
| {{_ 'add-checklist-item'}}...
|
||||
|
||||
template(name='itemDetail')
|
||||
.item.js-checklist-item
|
||||
if canModifyCard
|
||||
.check-box.materialCheckBox(class="{{#if item.isFinished }}is-checked{{/if}}")
|
||||
.item-title.js-open-inlined-form.is-editable(class="{{#if item.isFinished }}is-checked{{/if}}")
|
||||
+viewer
|
||||
= item.title
|
||||
else
|
||||
.materialCheckBox(class="{{#if item.isFinished }}is-checked{{/if}}")
|
||||
.item-title(class="{{#if item.isFinished }}is-checked{{/if}}")
|
||||
+viewer
|
||||
= item.title
|
||||
@@ -0,0 +1,222 @@
|
||||
function initSorting(items) {
|
||||
items.sortable({
|
||||
tolerance: 'pointer',
|
||||
helper: 'clone',
|
||||
items: '.js-checklist-item:not(.placeholder)',
|
||||
axis: 'y',
|
||||
distance: 7,
|
||||
placeholder: 'placeholder',
|
||||
scroll: false,
|
||||
start(evt, ui) {
|
||||
ui.placeholder.height(ui.helper.height());
|
||||
EscapeActions.executeUpTo('popup-close');
|
||||
},
|
||||
stop(evt, ui) {
|
||||
const parent = ui.item.parents('.js-checklist-items');
|
||||
const orderedItems = [];
|
||||
parent.find('.js-checklist-item').each(function(i, item) {
|
||||
const checklistItem = Blaze.getData(item).item;
|
||||
orderedItems.push(checklistItem._id);
|
||||
});
|
||||
items.sortable('cancel');
|
||||
const formerParent = ui.item.parents('.js-checklist-items');
|
||||
const checklist = Blaze.getData(parent.get(0)).checklist;
|
||||
const oldChecklist = Blaze.getData(formerParent.get(0)).checklist;
|
||||
if (oldChecklist._id !== checklist._id) {
|
||||
const currentItem = Blaze.getData(ui.item.get(0)).item;
|
||||
for (let i = 0; i < orderedItems.length; i++) {
|
||||
const itemId = orderedItems[i];
|
||||
if (itemId !== currentItem._id) continue;
|
||||
const newItem = {
|
||||
_id: checklist.getNewItemId(),
|
||||
title: currentItem.title,
|
||||
sort: i,
|
||||
isFinished: currentItem.isFinished,
|
||||
};
|
||||
checklist.addFullItem(newItem);
|
||||
orderedItems[i] = currentItem._id;
|
||||
oldChecklist.removeItem(itemId);
|
||||
}
|
||||
} else {
|
||||
checklist.sortItems(orderedItems);
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Template.checklists.onRendered(function () {
|
||||
const self = BlazeComponent.getComponentForElement(this.firstNode);
|
||||
self.itemsDom = this.$('.card-checklist-items');
|
||||
initSorting(self.itemsDom);
|
||||
self.itemsDom.mousedown(function(evt) {
|
||||
evt.stopPropagation();
|
||||
});
|
||||
|
||||
function userIsMember() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember();
|
||||
}
|
||||
|
||||
// Disable sorting if the current user is not a board member
|
||||
self.autorun(() => {
|
||||
const $itemsDom = $(self.itemsDom);
|
||||
if ($itemsDom.data('sortable')) {
|
||||
$(self.itemsDom).sortable('option', 'disabled', !userIsMember());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
|
||||
addChecklist(event) {
|
||||
event.preventDefault();
|
||||
const textarea = this.find('textarea.js-add-checklist-item');
|
||||
const title = textarea.value.trim();
|
||||
const cardId = this.currentData().cardId;
|
||||
const card = Cards.findOne(cardId);
|
||||
|
||||
if (title) {
|
||||
Checklists.insert({
|
||||
cardId,
|
||||
title,
|
||||
sort: card.checklists().count(),
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$('.add-checklist-item').last().click();
|
||||
}, 100);
|
||||
}
|
||||
textarea.value = '';
|
||||
textarea.focus();
|
||||
},
|
||||
|
||||
addChecklistItem(event) {
|
||||
event.preventDefault();
|
||||
const textarea = this.find('textarea.js-add-checklist-item');
|
||||
const title = textarea.value.trim();
|
||||
const checklist = this.currentData().checklist;
|
||||
|
||||
if (title) {
|
||||
checklist.addItem(title);
|
||||
}
|
||||
// We keep the form opened, empty it.
|
||||
textarea.value = '';
|
||||
textarea.focus();
|
||||
},
|
||||
|
||||
canModifyCard() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
|
||||
deleteChecklist() {
|
||||
const checklist = this.currentData().checklist;
|
||||
if (checklist && checklist._id) {
|
||||
Checklists.remove(checklist._id);
|
||||
this.toggleDeleteDialog.set(false);
|
||||
}
|
||||
},
|
||||
|
||||
deleteItem() {
|
||||
const checklist = this.currentData().checklist;
|
||||
const item = this.currentData().item;
|
||||
if (checklist && item && item._id) {
|
||||
checklist.removeItem(item._id);
|
||||
}
|
||||
},
|
||||
|
||||
editChecklist(event) {
|
||||
event.preventDefault();
|
||||
const textarea = this.find('textarea.js-edit-checklist-item');
|
||||
const title = textarea.value.trim();
|
||||
const checklist = this.currentData().checklist;
|
||||
checklist.setTitle(title);
|
||||
},
|
||||
|
||||
editChecklistItem(event) {
|
||||
event.preventDefault();
|
||||
|
||||
const textarea = this.find('textarea.js-edit-checklist-item');
|
||||
const title = textarea.value.trim();
|
||||
const itemId = this.currentData().item._id;
|
||||
const checklist = this.currentData().checklist;
|
||||
checklist.editItem(itemId, title);
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.toggleDeleteDialog = new ReactiveVar(false);
|
||||
this.checklistToDelete = null; //Store data context to pass to checklistDeleteDialog template
|
||||
},
|
||||
|
||||
pressKey(event) {
|
||||
//If user press enter key inside a form, submit it
|
||||
//Unless the user is also holding down the 'shift' key
|
||||
if (event.keyCode === 13 && !event.shiftKey) {
|
||||
event.preventDefault();
|
||||
const $form = $(event.currentTarget).closest('form');
|
||||
$form.find('button[type=submit]').click();
|
||||
}
|
||||
},
|
||||
|
||||
events() {
|
||||
const events = {
|
||||
'click .toggle-delete-checklist-dialog'(event) {
|
||||
if($(event.target).hasClass('js-delete-checklist')){
|
||||
this.checklistToDelete = this.currentData().checklist; //Store data context
|
||||
}
|
||||
this.toggleDeleteDialog.set(!this.toggleDeleteDialog.get());
|
||||
},
|
||||
};
|
||||
|
||||
return [{
|
||||
...events,
|
||||
'submit .js-add-checklist': this.addChecklist,
|
||||
'submit .js-edit-checklist-title': this.editChecklist,
|
||||
'submit .js-add-checklist-item': this.addChecklistItem,
|
||||
'submit .js-edit-checklist-item': this.editChecklistItem,
|
||||
'click .js-delete-checklist-item': this.deleteItem,
|
||||
'click .confirm-checklist-delete': this.deleteChecklist,
|
||||
keydown: this.pressKey,
|
||||
}];
|
||||
},
|
||||
}).register('checklists');
|
||||
|
||||
Template.checklistDeleteDialog.onCreated(() => {
|
||||
const $cardDetails = this.$('.card-details');
|
||||
this.scrollState = { position: $cardDetails.scrollTop(), //save current scroll position
|
||||
top: false, //required for smooth scroll animation
|
||||
};
|
||||
//Callback's purpose is to only prevent scrolling after animation is complete
|
||||
$cardDetails.animate({ scrollTop: 0 }, 500, () => { this.scrollState.top = true; });
|
||||
|
||||
//Prevent scrolling while dialog is open
|
||||
$cardDetails.on('scroll', () => {
|
||||
if(this.scrollState.top) { //If it's already in position, keep it there. Otherwise let animation scroll
|
||||
$cardDetails.scrollTop(0);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Template.checklistDeleteDialog.onDestroyed(() => {
|
||||
const $cardDetails = this.$('.card-details');
|
||||
$cardDetails.off('scroll'); //Reactivate scrolling
|
||||
$cardDetails.animate( { scrollTop: this.scrollState.position });
|
||||
});
|
||||
|
||||
Template.itemDetail.helpers({
|
||||
canModifyCard() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
toggleItem() {
|
||||
const checklist = this.currentData().checklist;
|
||||
const item = this.currentData().item;
|
||||
if (checklist && item && item._id) {
|
||||
checklist.toggleItem(item._id);
|
||||
}
|
||||
},
|
||||
events() {
|
||||
return [{
|
||||
'click .item .check-box': this.toggleItem,
|
||||
}];
|
||||
},
|
||||
}).register('itemDetail');
|
||||
@@ -0,0 +1,111 @@
|
||||
.js-add-checklist
|
||||
color: #8c8c8c
|
||||
|
||||
textarea.js-add-checklist-item, textarea.js-edit-checklist-item
|
||||
overflow: hidden
|
||||
word-wrap: break-word
|
||||
resize: none
|
||||
height: 34px
|
||||
|
||||
.delete-text
|
||||
color: #8c8c8c
|
||||
text-decoration: underline
|
||||
word-wrap: break-word
|
||||
float: right
|
||||
padding-top: 6px
|
||||
&:hover
|
||||
color: inherit
|
||||
|
||||
.checklist-title
|
||||
.checkbox
|
||||
float: left
|
||||
width: 30px
|
||||
height 30px
|
||||
font-size: 18px
|
||||
line-height: 30px
|
||||
|
||||
.title
|
||||
font-size: 18px
|
||||
line-height: 30px
|
||||
|
||||
.checklist-stat
|
||||
margin: 0 0.5em
|
||||
float: right
|
||||
padding-top: 6px
|
||||
&.is-finished
|
||||
color: #3cb500
|
||||
|
||||
.js-delete-checklist
|
||||
@extends .delete-text
|
||||
|
||||
|
||||
.js-confirm-checklist-delete
|
||||
background-color: darken(white, 3%)
|
||||
position: absolute
|
||||
float: left;
|
||||
width: 60%
|
||||
margin-top: 0
|
||||
margin-left: 13%
|
||||
padding-bottom: 2%
|
||||
padding-left: 3%
|
||||
padding-right: 3%
|
||||
z-index: 17
|
||||
border-radius: 3px
|
||||
|
||||
p
|
||||
position: relative
|
||||
margin-top: 3%
|
||||
width: 100%
|
||||
text-align: center
|
||||
span
|
||||
font-weight: bold
|
||||
|
||||
i
|
||||
font-size: 2em
|
||||
|
||||
.js-checklist-delete-buttons
|
||||
position: relative
|
||||
padding: left 2% right 2%
|
||||
.confirm-checklist-delete
|
||||
margin-left: 12%
|
||||
float: left
|
||||
.toggle-delete-checklist-dialog
|
||||
margin-right: 12%
|
||||
float: right
|
||||
|
||||
#card-details-overlay
|
||||
top: 0
|
||||
bottom: -600px
|
||||
right: 0
|
||||
|
||||
.checklist-items
|
||||
margin: 0 0 0.5em 1.33em
|
||||
|
||||
.item
|
||||
line-height: 25px
|
||||
font-size: 1.1em
|
||||
margin-top: 3px
|
||||
display: flex
|
||||
&:hover
|
||||
background-color: darken(white, 8%)
|
||||
|
||||
.check-box
|
||||
margin-top: 5px
|
||||
&.is-checked
|
||||
border-bottom: 2px solid #3cb500
|
||||
border-right: 2px solid #3cb500
|
||||
|
||||
.item-title
|
||||
flex: 1
|
||||
padding-left: 10px;
|
||||
&.is-checked
|
||||
color: #8c8c8c
|
||||
font-style: italic
|
||||
|
||||
.js-delete-checklist-item
|
||||
@extends .delete-text
|
||||
padding: 12px 0 0 0
|
||||
|
||||
.add-checklist-item
|
||||
padding-top: 0.5em
|
||||
display: inline-block
|
||||
@@ -34,4 +34,5 @@ template(name="cardLabelsPopup")
|
||||
= name
|
||||
if(isLabelSelected ../_id)
|
||||
i.card-label-selectable-icon.fa.fa-check
|
||||
a.quiet-button.full.js-add-label {{_ 'label-create'}}
|
||||
if currentUser.isBoardAdmin
|
||||
a.quiet-button.full.js-add-label {{_ 'label-create'}}
|
||||
@@ -4,18 +4,12 @@ Meteor.startup(() => {
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'formLabel';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.currentColor = new ReactiveVar(this.data().color);
|
||||
},
|
||||
|
||||
labels() {
|
||||
return labelColors.map((color) => {
|
||||
return { color, name: '' };
|
||||
});
|
||||
return labelColors.map((color) => ({ color, name: '' }));
|
||||
},
|
||||
|
||||
isSelected(color) {
|
||||
|
||||
@@ -1,13 +1,25 @@
|
||||
template(name="minicard")
|
||||
.minicard
|
||||
if cover
|
||||
.minicard-cover
|
||||
img(src="{{pathFor cover.url}}")
|
||||
.minicard-cover(style="background-image: url('{{cover.url}}');")
|
||||
if labels
|
||||
.minicard-labels
|
||||
each labels
|
||||
.minicard-label(class="card-label-{{color}}" title="{{name}}")
|
||||
.minicard-title= title
|
||||
.minicard-title
|
||||
+viewer
|
||||
= title
|
||||
.dates
|
||||
if startAt
|
||||
.date
|
||||
+minicardStartDate
|
||||
if dueAt
|
||||
.date
|
||||
+minicardDueDate
|
||||
if spentTime
|
||||
.date
|
||||
+cardSpentTime
|
||||
|
||||
if members
|
||||
.minicard-members.js-minicard-members
|
||||
each members
|
||||
@@ -15,7 +27,7 @@ template(name="minicard")
|
||||
.badges
|
||||
if comments.count
|
||||
.badge(title="{{_ 'card-comments-title' comments.count }}")
|
||||
span.badge-icon.fa.fa-comment-o
|
||||
span.badge-icon.fa.fa-comment-o.badge-comment
|
||||
span.badge-text= comments.count
|
||||
if description
|
||||
.badge.badge-state-image-only(title=description)
|
||||
@@ -24,3 +36,7 @@ template(name="minicard")
|
||||
.badge
|
||||
span.badge-icon.fa.fa-paperclip
|
||||
span.badge-text= attachments.count
|
||||
if checklists.count
|
||||
.badge(class="{{#if checklistFinished}}is-finished{{/if}}")
|
||||
span.badge-icon.fa.fa-check-square-o
|
||||
span.badge-text.check-list-text {{checklistFinishedCount}}/{{checklistItemCount}}
|
||||
@@ -1,3 +1,5 @@
|
||||
@import 'nib'
|
||||
|
||||
.minicard-wrapper
|
||||
cursor: pointer
|
||||
position: relative
|
||||
@@ -60,16 +62,11 @@
|
||||
.minicard-cover
|
||||
background-position: center
|
||||
background-repeat: no-repeat
|
||||
background-size: cover
|
||||
background-size: contain
|
||||
height: 145px
|
||||
user-select: none
|
||||
margin: -6px -8px 6px -8px
|
||||
border-radius: top 2px
|
||||
position: relative
|
||||
|
||||
img
|
||||
height: 100%
|
||||
width: 100%
|
||||
|
||||
.minicard-labels
|
||||
float: right
|
||||
@@ -80,7 +77,15 @@
|
||||
height: @width
|
||||
border-radius: 2px
|
||||
margin-left: 3px
|
||||
|
||||
.minicard-title
|
||||
p:last-child
|
||||
margin-bottom: 0
|
||||
.dates
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
.date
|
||||
margin-right: 3px
|
||||
.badges
|
||||
float: left
|
||||
margin-top: 7px
|
||||
@@ -94,15 +99,28 @@
|
||||
margin-right: 11px
|
||||
margin-bottom: 3px
|
||||
font-size: 0.9em
|
||||
&.is-finished
|
||||
background: #3cb500
|
||||
padding: 0px 3px
|
||||
border-radius: 3px
|
||||
color: white
|
||||
|
||||
&:last-of-type
|
||||
margin-right: 0
|
||||
|
||||
.badge-icon,
|
||||
.badge-text
|
||||
vertical-align: top
|
||||
vertical-align: middle
|
||||
&.badge-comment
|
||||
margin-bottom: 0.1rem
|
||||
|
||||
.badge-text
|
||||
font-size: 0.9em
|
||||
padding-left: 2px
|
||||
line-height: 14px
|
||||
.check-list-text
|
||||
padding-left: 0px
|
||||
line-height: 12px
|
||||
|
||||
.minicard-members
|
||||
float: right
|
||||
|
||||
@@ -630,6 +630,59 @@ button
|
||||
a, .quiet
|
||||
color: white
|
||||
|
||||
// Material Design Toggle Switch
|
||||
.material-toggle-switch
|
||||
display: flex
|
||||
|
||||
.toggle-label
|
||||
position: relative
|
||||
display: block
|
||||
height: 20px
|
||||
width: 44px
|
||||
background-color: #a6a6a6
|
||||
border-radius: 100px
|
||||
cursor: pointer
|
||||
transition: all 0.3s ease
|
||||
|
||||
&:after
|
||||
position: absolute
|
||||
left: -2px
|
||||
top: -3px
|
||||
display: block
|
||||
width: 26px
|
||||
height: 26px
|
||||
border-radius: 100px
|
||||
background-color: #fff
|
||||
box-shadow: 0px 3px 3px rgba(0,0,0,0.05)
|
||||
content: ''
|
||||
transition: all 0.3s ease
|
||||
|
||||
&:active
|
||||
&:after
|
||||
transform: scale(1.15, 0.85)
|
||||
|
||||
.toggle-switch:checked ~ .toggle-label
|
||||
background-color: #6fbeb5
|
||||
|
||||
&:after
|
||||
left: 20px
|
||||
background-color: #179588
|
||||
|
||||
.toggle-switch:checked:disabled ~ .toggle-label
|
||||
background-color: #d5d5d5
|
||||
pointer-events: none
|
||||
|
||||
&:after
|
||||
background-color: #bcbdbc
|
||||
|
||||
.toggle-switch
|
||||
display: none
|
||||
|
||||
.toggle-switch-title
|
||||
margin: 0 0.5em
|
||||
display: flex
|
||||
|
||||
|
||||
@media screen and (max-width: 800px)
|
||||
.edit-controls,
|
||||
.add-controls
|
||||
|
||||
@@ -1,39 +1,54 @@
|
||||
template(name="importPopup")
|
||||
if error.get
|
||||
.warning {{_ error.get}}
|
||||
template(name="importHeaderBar")
|
||||
h1
|
||||
a.back-btn(href="{{pathFor 'home'}}")
|
||||
i.fa.fa-chevron-left
|
||||
| {{_ title}}
|
||||
|
||||
template(name="import")
|
||||
.wrapper
|
||||
if error.get
|
||||
.warning {{_ error.get}}
|
||||
+Template.dynamic(template=currentTemplate)
|
||||
|
||||
template(name="importTextarea")
|
||||
form
|
||||
p: label(for='import-textarea') {{_ getLabel}}
|
||||
textarea#import-textarea.js-import-json(placeholder="{{_ 'import-json-placeholder'}}" autofocus)
|
||||
p: label(for='import-textarea') {{_ instruction}}
|
||||
textarea.js-import-json(placeholder="{{_ 'import-json-placeholder'}}" autofocus)
|
||||
| {{jsonText}}
|
||||
if membersMapping
|
||||
div
|
||||
a.show-mapping
|
||||
| {{_ 'import-show-user-mapping'}}
|
||||
if isSandstorm
|
||||
p.warning {{_ 'import-sandstorm-warning'}}
|
||||
input.primary.wide(type="submit" value="{{_ 'import'}}")
|
||||
|
||||
template(name="mapMembersPopup")
|
||||
template(name="importMapMembers")
|
||||
h2 {{_ 'import-map-members'}}
|
||||
.map-members
|
||||
p {{_ 'import-members-map'}}
|
||||
.mapping-list
|
||||
each members
|
||||
.mapping
|
||||
a.source
|
||||
div.full-name
|
||||
= fullName
|
||||
div.username
|
||||
a.mapping-item.js-select-member(class="{{#if wekanId}}filled{{/if}}")
|
||||
.profile-source
|
||||
.full-name= fullName
|
||||
.username
|
||||
| ({{username}})
|
||||
.wekan
|
||||
if wekan
|
||||
+userAvatar(userId=wekan._id)
|
||||
if wekanId
|
||||
+userAvatar(userId=wekanId)
|
||||
else
|
||||
a.member.add-member.js-add-members
|
||||
a.member.add-member
|
||||
i.fa.fa-plus
|
||||
//-
|
||||
Due to the way the flewbox layout is working, we need to set some
|
||||
invisible items so that the last row items have a consistent width.
|
||||
See http://jsfiddle.net/Ln4h3c4n/ for an minimal example of the issue.
|
||||
.mapping-item.ghost-item
|
||||
.mapping-item.ghost-item
|
||||
.mapping-item.ghost-item
|
||||
.mapping-item.ghost-item
|
||||
.mapping-item.ghost-item
|
||||
form
|
||||
input.primary.wide(type="submit" value="{{_ 'done'}}")
|
||||
|
||||
template(name="addMemberPopup")
|
||||
|
||||
template(name="mapMembersAddPopup")
|
||||
template(name="importMapMembersAddPopup")
|
||||
.select-member
|
||||
p
|
||||
| {{_ 'import-user-select'}}
|
||||
@@ -42,10 +57,10 @@ template(name="mapMembersAddPopup")
|
||||
ul.pop-over-list
|
||||
+esEach(index="users")
|
||||
li.item.js-member-item
|
||||
a.name.js-select-import(title="{{profile.name}} ({{username}})" data-id="{{_id}}")
|
||||
a.name.js-select-import(title="{{profile.fullname}} ({{username}})" data-id="{{_id}}")
|
||||
+userAvatar(userId=_id esSearch=true)
|
||||
span.full-name
|
||||
= profile.name
|
||||
= profile.fullname
|
||||
| (<span class="username">{{username}}</span>)
|
||||
+ifEsIsSearching(index='users')
|
||||
+spinner
|
||||
|
||||
+111
-139
@@ -1,174 +1,141 @@
|
||||
/// Abstract root for all import popup screens.
|
||||
/// Descendants must define:
|
||||
/// - getMethodName(): return the Meteor method to call for import, passing json
|
||||
/// data decoded as object and additional data (see below);
|
||||
/// - getAdditionalData(): return object containing additional data passed to
|
||||
/// Meteor method (like list ID and position for a card import);
|
||||
/// - getLabel(): i18n key for the text displayed in the popup, usually to
|
||||
/// explain how to get the data out of the source system.
|
||||
const ImportPopup = BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'importPopup';
|
||||
},
|
||||
import trelloMembersMapper from './trelloMembersMapper';
|
||||
import wekanMembersMapper from './wekanMembersMapper';
|
||||
|
||||
jsonText() {
|
||||
return Session.get('import.text');
|
||||
},
|
||||
|
||||
membersMapping() {
|
||||
return Session.get('import.membersToMap');
|
||||
BlazeComponent.extendComponent({
|
||||
title() {
|
||||
return `import-board-title-${Session.get('importSource')}`;
|
||||
},
|
||||
}).register('importHeaderBar');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.error = new ReactiveVar('');
|
||||
this.dataToImport = '';
|
||||
this.steps = ['importTextarea', 'importMapMembers'];
|
||||
this._currentStepIndex = new ReactiveVar(0);
|
||||
this.importedData = new ReactiveVar();
|
||||
this.membersToMap = new ReactiveVar([]);
|
||||
this.importSource = Session.get('importSource');
|
||||
},
|
||||
|
||||
onFinish() {
|
||||
Popup.close();
|
||||
currentTemplate() {
|
||||
return this.steps[this._currentStepIndex.get()];
|
||||
},
|
||||
|
||||
onShowMapping(evt) {
|
||||
this._storeText(evt);
|
||||
Popup.open('mapMembers')(evt);
|
||||
nextStep() {
|
||||
const nextStepIndex = this._currentStepIndex.get() + 1;
|
||||
if (nextStepIndex >= this.steps.length) {
|
||||
this.finishImport();
|
||||
} else {
|
||||
this._currentStepIndex.set(nextStepIndex);
|
||||
}
|
||||
},
|
||||
|
||||
onSubmit(evt){
|
||||
importData(evt) {
|
||||
evt.preventDefault();
|
||||
const dataJson = this._storeText(evt);
|
||||
let dataObject;
|
||||
const dataJson = this.find('.js-import-json').value;
|
||||
try {
|
||||
dataObject = JSON.parse(dataJson);
|
||||
const dataObject = JSON.parse(dataJson);
|
||||
this.setError('');
|
||||
this.importedData.set(dataObject);
|
||||
const membersToMap = this._prepareAdditionalData(dataObject);
|
||||
// store members data and mapping in Session
|
||||
// (we go deep and 2-way, so storing in data context is not a viable option)
|
||||
this.membersToMap.set(membersToMap);
|
||||
this.nextStep();
|
||||
} catch (e) {
|
||||
this.setError('error-json-malformed');
|
||||
return;
|
||||
}
|
||||
if(this._hasAllNeededData(dataObject)) {
|
||||
this._import(dataObject);
|
||||
} else {
|
||||
this._prepareAdditionalData(dataObject);
|
||||
Popup.open(this._screenAdditionalData())(evt);
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
submit: this.onSubmit,
|
||||
'click .show-mapping': this.onShowMapping,
|
||||
}];
|
||||
},
|
||||
|
||||
setError(error) {
|
||||
this.error.set(error);
|
||||
},
|
||||
|
||||
_import(dataObject) {
|
||||
const additionalData = this.getAdditionalData();
|
||||
const membersMapping = this.membersMapping();
|
||||
finishImport() {
|
||||
const additionalData = {};
|
||||
const membersMapping = this.membersToMap.get();
|
||||
if (membersMapping) {
|
||||
const mappingById = {};
|
||||
membersMapping.forEach((member) => {
|
||||
if (member.wekan) {
|
||||
mappingById[member.id] = member.wekan._id;
|
||||
if (member.wekanId) {
|
||||
mappingById[member.id] = member.wekanId;
|
||||
}
|
||||
});
|
||||
additionalData.membersMapping = mappingById;
|
||||
}
|
||||
Session.set('import.membersToMap', null);
|
||||
Session.set('import.text', null);
|
||||
Meteor.call(this.getMethodName(), dataObject, additionalData,
|
||||
(error, response) => {
|
||||
if (error) {
|
||||
this.setError(error.error);
|
||||
this.membersToMap.set([]);
|
||||
Meteor.call('importBoard',
|
||||
this.importedData.get(),
|
||||
additionalData,
|
||||
this.importSource,
|
||||
Session.get('fromBoard'),
|
||||
(err, res) => {
|
||||
if (err) {
|
||||
this.setError(err.error);
|
||||
} else {
|
||||
// ensure will display what we just imported
|
||||
Filter.addException(response);
|
||||
this.onFinish(response);
|
||||
Session.set('fromBoard', null);
|
||||
Utils.goBoardId(res);
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
_hasAllNeededData(dataObject) {
|
||||
// import has no members or they are already mapped
|
||||
return dataObject.members.length === 0 || this.membersMapping();
|
||||
},
|
||||
|
||||
_prepareAdditionalData(dataObject) {
|
||||
// we will work on the list itself (an ordered array of objects)
|
||||
// when a mapping is done, we add a 'wekan' field to the object representing the imported member
|
||||
const membersToMap = dataObject.members;
|
||||
// auto-map based on username
|
||||
membersToMap.forEach((importedMember) => {
|
||||
const wekanUser = Users.findOne({username: importedMember.username});
|
||||
if(wekanUser) {
|
||||
importedMember.wekan = wekanUser;
|
||||
}
|
||||
});
|
||||
// store members data and mapping in Session
|
||||
// (we go deep and 2-way, so storing in data context is not a viable option)
|
||||
Session.set('import.membersToMap', membersToMap);
|
||||
const importSource = Session.get('importSource');
|
||||
let membersToMap;
|
||||
switch (importSource) {
|
||||
case 'trello':
|
||||
membersToMap = trelloMembersMapper.getMembersToMap(dataObject);
|
||||
break;
|
||||
case 'wekan':
|
||||
membersToMap = wekanMembersMapper.getMembersToMap(dataObject);
|
||||
break;
|
||||
}
|
||||
return membersToMap;
|
||||
},
|
||||
|
||||
_screenAdditionalData() {
|
||||
return 'mapMembers';
|
||||
},
|
||||
}).register('import');
|
||||
|
||||
_storeText() {
|
||||
const dataJson = this.$('.js-import-json').val();
|
||||
Session.set('import.text', dataJson);
|
||||
return dataJson;
|
||||
},
|
||||
});
|
||||
|
||||
ImportPopup.extendComponent({
|
||||
getAdditionalData() {
|
||||
const listId = this.currentData()._id;
|
||||
const selector = `#js-list-${this.currentData()._id} .js-minicard:first`;
|
||||
const firstCardDom = $(selector).get(0);
|
||||
const sortIndex = Utils.calculateIndex(null, firstCardDom).base;
|
||||
const result = {listId, sortIndex};
|
||||
return result;
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'importTextarea';
|
||||
},
|
||||
|
||||
getMethodName() {
|
||||
return 'importTrelloCard';
|
||||
instruction() {
|
||||
return `import-board-instruction-${Session.get('importSource')}`;
|
||||
},
|
||||
|
||||
getLabel() {
|
||||
return 'import-card-trello-instruction';
|
||||
events() {
|
||||
return [{
|
||||
submit(evt) {
|
||||
return this.parentComponent().importData(evt);
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('listImportCardPopup');
|
||||
}).register('importTextarea');
|
||||
|
||||
ImportPopup.extendComponent({
|
||||
getAdditionalData() {
|
||||
const result = {};
|
||||
return result;
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.autorun(() => {
|
||||
this.parentComponent().membersToMap.get().forEach(({ wekanId }) => {
|
||||
if (wekanId) {
|
||||
this.subscribe('user-miniprofile', wekanId);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
getMethodName() {
|
||||
return 'importTrelloBoard';
|
||||
},
|
||||
|
||||
getLabel() {
|
||||
return 'import-board-trello-instruction';
|
||||
},
|
||||
|
||||
onFinish(response) {
|
||||
Utils.goBoardId(response);
|
||||
},
|
||||
}).register('boardImportBoardPopup');
|
||||
|
||||
const ImportMapMembers = BlazeComponent.extendComponent({
|
||||
members() {
|
||||
return Session.get('import.membersToMap');
|
||||
return this.parentComponent().membersToMap.get();
|
||||
},
|
||||
|
||||
_refreshMembers(listOfMembers) {
|
||||
Session.set('import.membersToMap', listOfMembers);
|
||||
return this.parentComponent().membersToMap.set(listOfMembers);
|
||||
},
|
||||
|
||||
/**
|
||||
* Will look into the list of members to import for the specified memberId,
|
||||
* then set its property to the supplied value.
|
||||
@@ -206,32 +173,39 @@ const ImportMapMembers = BlazeComponent.extendComponent({
|
||||
// Session.get gives us a copy, we have to set it back so it sticks
|
||||
this._refreshMembers(listOfMembers);
|
||||
},
|
||||
|
||||
setSelectedMember(memberId) {
|
||||
return this._setPropertyForMember('selected', true, memberId, true);
|
||||
},
|
||||
|
||||
/**
|
||||
* returns the member with specified id,
|
||||
* or the selected member if memberId is not specified
|
||||
*/
|
||||
getMember(memberId = null) {
|
||||
const allMembers = Session.get('import.membersToMap');
|
||||
const allMembers = this.members();
|
||||
let finder = null;
|
||||
if(memberId) {
|
||||
if (memberId) {
|
||||
finder = (user) => user.id === memberId;
|
||||
} else {
|
||||
finder = (user) => user.selected;
|
||||
}
|
||||
return allMembers.find(finder);
|
||||
},
|
||||
mapSelectedMember(wekan) {
|
||||
return this._setPropertyForMember('wekan', wekan, null);
|
||||
},
|
||||
unmapMember(memberId){
|
||||
return this._setPropertyForMember('wekan', null, memberId);
|
||||
},
|
||||
});
|
||||
|
||||
ImportMapMembers.extendComponent({
|
||||
mapSelectedMember(wekanId) {
|
||||
return this._setPropertyForMember('wekanId', wekanId, null);
|
||||
},
|
||||
|
||||
unmapMember(memberId){
|
||||
return this._setPropertyForMember('wekanId', null, memberId);
|
||||
},
|
||||
|
||||
onSubmit(evt) {
|
||||
evt.preventDefault();
|
||||
this.parentComponent().nextStep();
|
||||
},
|
||||
|
||||
onMapMember(evt) {
|
||||
const memberToMap = this.currentData();
|
||||
if(memberToMap.wekan) {
|
||||
@@ -239,33 +213,31 @@ ImportMapMembers.extendComponent({
|
||||
this.unmapMember(memberToMap.id);
|
||||
} else {
|
||||
this.setSelectedMember(memberToMap.id);
|
||||
Popup.open('mapMembersAdd')(evt);
|
||||
Popup.open('importMapMembersAdd')(evt);
|
||||
}
|
||||
},
|
||||
onSubmit(evt) {
|
||||
evt.preventDefault();
|
||||
Popup.back();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'submit': this.onSubmit,
|
||||
'click .mapping': this.onMapMember,
|
||||
'click .js-select-member': this.onMapMember,
|
||||
}];
|
||||
},
|
||||
}).register('mapMembersPopup');
|
||||
}).register('importMapMembers');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
onRendered() {
|
||||
this.find('.js-map-member input').focus();
|
||||
},
|
||||
|
||||
ImportMapMembers.extendComponent({
|
||||
onSelectUser(){
|
||||
this.mapSelectedMember(this.currentData());
|
||||
Popup.getOpenerComponent().mapSelectedMember(this.currentData()._id);
|
||||
Popup.back();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click .js-select-import': this.onSelectUser,
|
||||
}];
|
||||
},
|
||||
onRendered() {
|
||||
// todo XXX why do I not get the focus??
|
||||
this.find('.js-map-member input').focus();
|
||||
},
|
||||
}).register('mapMembersAddPopup');
|
||||
}).register('importMapMembersAddPopup');
|
||||
Vendored
+38
-6
@@ -1,15 +1,47 @@
|
||||
@import 'nib'
|
||||
|
||||
.map-members
|
||||
.mapping:first-of-type
|
||||
border-top: solid 1px #999
|
||||
.mapping
|
||||
padding: 10px 0
|
||||
border-bottom: solid 1px #999
|
||||
.source
|
||||
&:after
|
||||
content: "";
|
||||
flex: auto;
|
||||
|
||||
.mapping-list
|
||||
display: flex
|
||||
flex-wrap: wrap
|
||||
margin: 0 -4px
|
||||
|
||||
.mapping-item
|
||||
max-width: 300px
|
||||
min-width: 200px
|
||||
padding: 6px
|
||||
margin: 5px
|
||||
flex:1
|
||||
background: white
|
||||
border-radius: 3px
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,.15)
|
||||
|
||||
&:hover
|
||||
background: darken(white, 5%)
|
||||
|
||||
&.filled
|
||||
background: #E0FFE5
|
||||
|
||||
&:hover
|
||||
background: #FFE0E0
|
||||
|
||||
&.ghost-item
|
||||
height: 0
|
||||
visibility: hidden
|
||||
border: none
|
||||
|
||||
.profile-source
|
||||
display: inline-block
|
||||
width: 80%
|
||||
|
||||
.wekan
|
||||
display: inline-block
|
||||
width: 35px
|
||||
|
||||
.member
|
||||
float: none
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
export function getMembersToMap(data) {
|
||||
// we will work on the list itself (an ordered array of objects) when a
|
||||
// mapping is done, we add a 'wekan' field to the object representing the
|
||||
// imported member
|
||||
const membersToMap = data.members;
|
||||
// auto-map based on username
|
||||
membersToMap.forEach((importedMember) => {
|
||||
const wekanUser = Users.findOne({ username: importedMember.username });
|
||||
if (wekanUser) {
|
||||
importedMember.wekanId = wekanUser._id;
|
||||
}
|
||||
});
|
||||
return membersToMap;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
export function getMembersToMap(data) {
|
||||
// we will work on the list itself (an ordered array of objects) when a
|
||||
// mapping is done, we add a 'wekan' field to the object representing the
|
||||
// imported member
|
||||
const membersToMap = data.members;
|
||||
const users = data.users;
|
||||
// auto-map based on username
|
||||
membersToMap.forEach((importedMember) => {
|
||||
importedMember.id = importedMember.userId;
|
||||
delete importedMember.userId;
|
||||
const user = users.filter((user) => {
|
||||
return user._id === importedMember.id;
|
||||
})[0];
|
||||
if (user.profile && user.profile.fullname) {
|
||||
importedMember.fullName = user.profile.fullname;
|
||||
}
|
||||
importedMember.username = user.username;
|
||||
const wekanUser = Users.findOne({ username: importedMember.username });
|
||||
if (wekanUser) {
|
||||
importedMember.wekanId = wekanUser._id;
|
||||
}
|
||||
});
|
||||
return membersToMap;
|
||||
}
|
||||
@@ -2,3 +2,7 @@ template(name='list')
|
||||
.list.js-list(id="js-list-{{_id}}")
|
||||
+listHeader
|
||||
+listBody
|
||||
|
||||
template(name='miniList')
|
||||
a.mini-list.js-select-list.js-list(id="js-list-{{_id}}")
|
||||
+listHeader
|
||||
@@ -1,10 +1,6 @@
|
||||
const { calculateIndex } = Utils;
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'list';
|
||||
},
|
||||
|
||||
// Proxy
|
||||
openForm(options) {
|
||||
this.childComponents('listBody')[0].openForm(options);
|
||||
@@ -22,14 +18,11 @@ BlazeComponent.extendComponent({
|
||||
// callback, we basically solve all issues related to reactive updates. A
|
||||
// comment below provides further details.
|
||||
onRendered() {
|
||||
if (!Meteor.user() || !Meteor.user().isBoardMember())
|
||||
return;
|
||||
|
||||
const boardComponent = this.parentComponent();
|
||||
const boardComponent = this.parentComponent().parentComponent();
|
||||
const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)';
|
||||
const $cards = this.$('.js-minicards');
|
||||
$cards.sortable({
|
||||
connectWith: '.js-minicards',
|
||||
connectWith: '.js-minicards:not(.js-list-full)',
|
||||
tolerance: 'pointer',
|
||||
appendTo: 'body',
|
||||
helper(evt, item) {
|
||||
@@ -51,7 +44,7 @@ BlazeComponent.extendComponent({
|
||||
placeholder: 'minicard-wrapper placeholder',
|
||||
start(evt, ui) {
|
||||
ui.placeholder.height(ui.helper.height());
|
||||
EscapeActions.executeUpTo('popup');
|
||||
EscapeActions.executeUpTo('popup-close');
|
||||
boardComponent.setIsDragging(true);
|
||||
},
|
||||
stop(evt, ui) {
|
||||
@@ -62,6 +55,7 @@ BlazeComponent.extendComponent({
|
||||
const nCards = MultiSelection.isActive() ? MultiSelection.count() : 1;
|
||||
const sortIndex = calculateIndex(prevCardDom, nextCardDom, nCards);
|
||||
const listId = Blaze.getData(ui.item.parents('.list').get(0))._id;
|
||||
const swimlaneId = Blaze.getData(ui.item.parents('.swimlane').get(0))._id;
|
||||
|
||||
// Normally the jquery-ui sortable library moves the dragged DOM element
|
||||
// to its new position, which disrupts Blaze reactive updates mechanism
|
||||
@@ -74,17 +68,26 @@ BlazeComponent.extendComponent({
|
||||
|
||||
if (MultiSelection.isActive()) {
|
||||
Cards.find(MultiSelection.getMongoSelector()).forEach((card, i) => {
|
||||
card.move(listId, sortIndex.base + i * sortIndex.increment);
|
||||
card.move(swimlaneId, listId, sortIndex.base + i * sortIndex.increment);
|
||||
});
|
||||
} else {
|
||||
const cardDomElement = ui.item.get(0);
|
||||
const card = Blaze.getData(cardDomElement);
|
||||
card.move(listId, sortIndex.base);
|
||||
card.move(swimlaneId, listId, sortIndex.base);
|
||||
}
|
||||
boardComponent.setIsDragging(false);
|
||||
},
|
||||
});
|
||||
|
||||
function userIsMember() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
}
|
||||
|
||||
// Disable drag-dropping if the current user is not a board member or is comment only
|
||||
this.autorun(() => {
|
||||
$cards.sortable('option', 'disabled', !userIsMember());
|
||||
});
|
||||
|
||||
// We want to re-run this function any time a card is added.
|
||||
this.autorun(() => {
|
||||
const currentBoardId = Tracker.nonreactive(() => {
|
||||
@@ -112,3 +115,10 @@ BlazeComponent.extendComponent({
|
||||
});
|
||||
},
|
||||
}).register('list');
|
||||
|
||||
Template.miniList.events({
|
||||
'click .js-select-list'() {
|
||||
const listId = this._id;
|
||||
Session.set('currentList', listId);
|
||||
},
|
||||
});
|
||||
@@ -9,7 +9,6 @@
|
||||
// Even if this background color is the same as the body we can't leave it
|
||||
// transparent, because that won't work during a list drag.
|
||||
background: darken(white, 13%)
|
||||
height: 100%
|
||||
border-left: 1px solid darken(white, 20%)
|
||||
padding: 0
|
||||
float: left
|
||||
@@ -53,6 +52,9 @@
|
||||
&.ui-sortable-handle
|
||||
cursor: grab
|
||||
|
||||
.list-header-left-icon
|
||||
display: none
|
||||
|
||||
.list-header-name
|
||||
display: inline
|
||||
font-size: 16px
|
||||
@@ -65,21 +67,34 @@
|
||||
text-overflow: ellipsis
|
||||
word-wrap: break-word
|
||||
|
||||
.list-header-menu-icon
|
||||
.list-header-watch-icon
|
||||
padding-left: 10px
|
||||
color: #a6a6a6
|
||||
|
||||
.list-header-menu
|
||||
position: absolute
|
||||
padding: 7px
|
||||
margin-top: 1px
|
||||
top: -@padding
|
||||
right: -@padding
|
||||
|
||||
.list-header-plus-icon
|
||||
color: #a6a6a6
|
||||
margin-right: 10px
|
||||
|
||||
.highlight
|
||||
color: #ce1414
|
||||
|
||||
.list-body
|
||||
flex: 1
|
||||
flex-direction: column
|
||||
display: flex
|
||||
overflow-y: auto
|
||||
padding: 5px 11px
|
||||
|
||||
.minicards
|
||||
flex: 1
|
||||
flex-grow: 1
|
||||
flex-shrink: 0
|
||||
|
||||
form
|
||||
margin-bottom: 9px
|
||||
@@ -103,3 +118,71 @@
|
||||
background: #fafafa
|
||||
color: #222
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,.2)
|
||||
|
||||
#js-wip-limit-edit
|
||||
padding-top: 2%
|
||||
|
||||
p
|
||||
margin-bottom: 0
|
||||
|
||||
input
|
||||
display: inline-block
|
||||
|
||||
.wip-limit-value
|
||||
width: 20%
|
||||
margin-right: 5%
|
||||
|
||||
.wip-limit-error
|
||||
display: none
|
||||
|
||||
.soft-wip-limit
|
||||
margin-right: 8px
|
||||
|
||||
div
|
||||
float: left
|
||||
|
||||
@media screen and (max-width: 800px)
|
||||
.mini-list
|
||||
flex: 0 0 60px
|
||||
height: 60px
|
||||
width: 100%
|
||||
border-left: 0px
|
||||
border-bottom: 1px solid darken(white, 20%)
|
||||
|
||||
.list
|
||||
display: block
|
||||
width: 100%
|
||||
border-left: 0px
|
||||
|
||||
&.ui-sortable-helper
|
||||
flex: 0 0 60px
|
||||
height: 60px
|
||||
width: 100%
|
||||
border-left: 0px
|
||||
border-bottom: 1px solid darken(white, 20%)
|
||||
|
||||
.list-header.ui-sortable-handle
|
||||
cursor: grabbing
|
||||
|
||||
&.placeholder
|
||||
flex: 0 0 60px
|
||||
height: 60px
|
||||
width: 100%
|
||||
border-left: 0px
|
||||
border-bottom: 1px solid darken(white, 20%)
|
||||
|
||||
.list-header
|
||||
|
||||
.list-header-left-icon
|
||||
display: inline
|
||||
padding: 7px
|
||||
padding-right: 27px
|
||||
margin-top: 1px
|
||||
top: -@padding
|
||||
left: -@padding
|
||||
|
||||
.list-header-menu-icon
|
||||
position: absolute
|
||||
padding: 7px
|
||||
top: -@padding
|
||||
right: 17px
|
||||
@@ -1,10 +1,10 @@
|
||||
template(name="listBody")
|
||||
.list-body.js-perfect-scrollbar
|
||||
.minicards.clearfix.js-minicards
|
||||
.minicards.clearfix.js-minicards(class="{{#if reachedWipLimit}}js-list-full{{/if}}")
|
||||
if cards.count
|
||||
+inlinedForm(autoclose=false position="top")
|
||||
+addCardForm(listId=_id position="top")
|
||||
each cards
|
||||
each (cards (idOrNull ../../_id))
|
||||
a.minicard-wrapper.js-minicard(href=absoluteUrl
|
||||
class="{{#if cardIsSelected}}is-selected{{/if}}"
|
||||
class="{{#if MultiSelection.isSelected _id}}is-checked{{/if}}")
|
||||
@@ -12,7 +12,7 @@ template(name="listBody")
|
||||
.materialCheckBox.multi-selection-checkbox.js-toggle-multi-selection(
|
||||
class="{{#if MultiSelection.isSelected _id}}is-checked{{/if}}")
|
||||
+minicard(this)
|
||||
if currentUser.isBoardMember
|
||||
if canSeeAddCard
|
||||
+inlinedForm(autoclose=false position="bottom")
|
||||
+addCardForm(listId=_id position="bottom")
|
||||
else
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'listBody';
|
||||
},
|
||||
|
||||
mixins() {
|
||||
return [Mixins.PerfectScrollbar];
|
||||
},
|
||||
@@ -40,6 +36,14 @@ BlazeComponent.extendComponent({
|
||||
const members = formComponent.members.get();
|
||||
const labelIds = formComponent.labels.get();
|
||||
|
||||
const boardId = this.data().board()._id;
|
||||
const board = Boards.findOne(boardId);
|
||||
let swimlaneId = '';
|
||||
if (board.view === 'board-view-swimlanes')
|
||||
swimlaneId = this.parentComponent().parentComponent().data()._id;
|
||||
else
|
||||
swimlaneId = Swimlanes.findOne({boardId})._id;
|
||||
|
||||
if (title) {
|
||||
const _id = Cards.insert({
|
||||
title,
|
||||
@@ -48,6 +52,7 @@ BlazeComponent.extendComponent({
|
||||
listId: this.data()._id,
|
||||
boardId: this.data().board()._id,
|
||||
sort: sortIndex,
|
||||
swimlaneId,
|
||||
});
|
||||
// In case the filter is active we need to add the newly inserted card in
|
||||
// the list of exceptions -- cards that are not filtered. Otherwise the
|
||||
@@ -100,6 +105,22 @@ BlazeComponent.extendComponent({
|
||||
MultiSelection.toggle(this.currentData()._id);
|
||||
},
|
||||
|
||||
idOrNull(swimlaneId) {
|
||||
const board = Boards.findOne(Session.get('currentBoard'));
|
||||
if (board.view === 'board-view-swimlanes')
|
||||
return swimlaneId;
|
||||
return undefined;
|
||||
},
|
||||
|
||||
canSeeAddCard() {
|
||||
return !this.reachedWipLimit() && Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
|
||||
reachedWipLimit() {
|
||||
const list = Template.currentData();
|
||||
return !list.getWipLimit('soft') && list.getWipLimit('enabled') && list.getWipLimit('value') <= list.cards().count();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click .js-minicard': this.clickOnMiniCard,
|
||||
@@ -122,10 +143,6 @@ function toggleValueInReactiveArray(reactiveValue, value) {
|
||||
}
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'addCardForm';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.labels = new ReactiveVar([]);
|
||||
this.members = new ReactiveVar([]);
|
||||
@@ -188,7 +205,7 @@ BlazeComponent.extendComponent({
|
||||
$textarea.escapeableTextComplete([
|
||||
// User mentions
|
||||
{
|
||||
match: /\B@(\w*)$/,
|
||||
match: /\B@([\w.]*)$/,
|
||||
search(term, callback) {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
callback($.map(currentBoard.activeMembers(), (member) => {
|
||||
@@ -216,11 +233,12 @@ BlazeComponent.extendComponent({
|
||||
label.color.indexOf(term) > -1) {
|
||||
return label;
|
||||
}
|
||||
return null;
|
||||
}));
|
||||
},
|
||||
template(label) {
|
||||
return Blaze.toHTMLWithData(Template.autocompleteLabelLine, {
|
||||
hasNoName: !Boolean(label.name),
|
||||
hasNoName: !label.name,
|
||||
colorName: label.color,
|
||||
labelName: label.name || label.color,
|
||||
});
|
||||
@@ -241,6 +259,7 @@ BlazeComponent.extendComponent({
|
||||
evt.stopPropagation();
|
||||
return commands.KEY_ENTER;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
@@ -3,11 +3,40 @@ template(name="listHeader")
|
||||
+inlinedForm
|
||||
+editListTitleForm
|
||||
else
|
||||
if isMiniScreen
|
||||
if currentList
|
||||
a.list-header-left-icon.fa.fa-angle-left.js-unselect-list
|
||||
h2.list-header-name(
|
||||
class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
|
||||
= title
|
||||
if currentUser.isBoardMember
|
||||
a.list-header-menu-icon.fa.fa-navicon.js-open-list-menu
|
||||
if wipLimit.enabled
|
||||
| (
|
||||
span(class="{{#if reachedWipLimit}}highlight{{/if}}") {{cards.count}}
|
||||
|/#{wipLimit.value})
|
||||
|
||||
if showCardsCountForList cards.count
|
||||
= cards.count
|
||||
span.lowercase
|
||||
| {{_ 'cards'}}
|
||||
if isMiniScreen
|
||||
if currentList
|
||||
if isWatching
|
||||
i.list-header-watch-icon.fa.fa-eye
|
||||
div.list-header-menu
|
||||
unless currentUser.isCommentOnly
|
||||
if canSeeAddCard
|
||||
a.js-add-card.fa.fa-plus.list-header-plus-icon
|
||||
a.fa.fa-navicon.js-open-list-menu
|
||||
else
|
||||
a.list-header-menu-icon.fa.fa-angle-right.js-select-list
|
||||
else if currentUser.isBoardMember
|
||||
if isWatching
|
||||
i.list-header-watch-icon.fa.fa-eye
|
||||
div.list-header-menu
|
||||
unless currentUser.isCommentOnly
|
||||
if canSeeAddCard
|
||||
a.js-add-card.fa.fa-plus.list-header-plus-icon
|
||||
a.fa.fa-navicon.js-open-list-menu
|
||||
|
||||
template(name="editListTitleForm")
|
||||
.list-composer
|
||||
@@ -18,12 +47,22 @@ template(name="editListTitleForm")
|
||||
|
||||
template(name="listActionPopup")
|
||||
ul.pop-over-list
|
||||
li: a.js-add-card {{_ 'add-card'}}
|
||||
if cards.count
|
||||
li: a.js-select-cards {{_ 'list-select-cards'}}
|
||||
hr
|
||||
ul.pop-over-list
|
||||
li: a.js-close-list {{_ 'archive-list'}}
|
||||
li: a.js-toggle-watch-list {{#if isWatching}}{{_ 'unwatch'}}{{else}}{{_ 'watch'}}{{/if}}
|
||||
unless currentUser.isCommentOnly
|
||||
hr
|
||||
ul.pop-over-list
|
||||
if cards.count
|
||||
li: a.js-select-cards {{_ 'list-select-cards'}}
|
||||
hr
|
||||
if currentUser.isBoardAdmin
|
||||
ul.pop-over-list
|
||||
li: a.js-set-wip-limit {{#if isWipLimitEnabled }}{{_ 'edit-wip-limit'}}{{else}}{{_ 'setWipLimitPopup-title'}}{{/if}}
|
||||
hr
|
||||
ul.pop-over-list
|
||||
li: a.js-close-list {{_ 'archive-list'}}
|
||||
hr
|
||||
ul.pop-over-list
|
||||
li: a.js-more {{_ 'listMorePopup-title'}}
|
||||
|
||||
template(name="boardLists")
|
||||
ul.pop-over-list
|
||||
@@ -33,3 +72,43 @@ template(name="boardLists")
|
||||
a.disabled {{title}} ({{_ 'current'}})
|
||||
else
|
||||
a.js-select-list= title
|
||||
|
||||
template(name="listMorePopup")
|
||||
p.quiet
|
||||
span.clearfix
|
||||
span {{_ 'link-list'}}
|
||||
= ' '
|
||||
i.fa.colorful(class="{{#if board.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
||||
input.inline-input(type="text" readonly value="{{ rootUrl }}")
|
||||
| {{_ 'added'}}
|
||||
span.date(title=list.createdAt) {{ moment createdAt 'LLL' }}
|
||||
a.js-delete {{_ 'delete'}}
|
||||
|
||||
template(name="listDeletePopup")
|
||||
p {{_ "list-delete-pop"}}
|
||||
unless archived
|
||||
p {{_ "list-delete-suggest-archive"}}
|
||||
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
|
||||
|
||||
template(name="setWipLimitPopup")
|
||||
#js-wip-limit-edit
|
||||
label {{_ 'set-wip-limit-value'}}
|
||||
ul.pop-over-list
|
||||
li: a.js-enable-wip-limit {{_ 'enable-wip-limit'}}
|
||||
if isWipLimitEnabled
|
||||
i.fa.fa-check
|
||||
if isWipLimitEnabled
|
||||
p
|
||||
input.wip-limit-value(type="number" value="{{ wipLimitValue }}" min="1" max="99")
|
||||
input.wip-limit-apply(type="submit" value="{{_ 'apply'}}")
|
||||
input.wip-limit-error
|
||||
p
|
||||
.soft-wip-limit
|
||||
.materialCheckBox(class="{{#if isWipLimitSoft}}is-checked{{/if}}")
|
||||
label {{_ 'soft-wip-limit'}}
|
||||
|
||||
template(name="wipLimitErrorPopup")
|
||||
.wip-limit-invalid
|
||||
p {{_ 'wipLimitErrorPopup-dialog-pt1'}}
|
||||
p {{_ 'wipLimitErrorPopup-dialog-pt2'}}
|
||||
button.full.js-back-view(type="submit") {{_ 'cancel'}}
|
||||
@@ -1,6 +1,7 @@
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'listHeader';
|
||||
canSeeAddCard() {
|
||||
const list = Template.currentData();
|
||||
return !list.getWipLimit('enabled') || list.getWipLimit('soft') || !this.reachedWipLimit();
|
||||
},
|
||||
|
||||
editTitle(evt) {
|
||||
@@ -12,30 +13,133 @@ BlazeComponent.extendComponent({
|
||||
}
|
||||
},
|
||||
|
||||
isWatching() {
|
||||
const list = this.currentData();
|
||||
return list.findWatcher(Meteor.userId());
|
||||
},
|
||||
|
||||
limitToShowCardsCount() {
|
||||
return Meteor.user().getLimitToShowCardsCount();
|
||||
},
|
||||
|
||||
reachedWipLimit() {
|
||||
const list = Template.currentData();
|
||||
return list.getWipLimit('enabled') && list.getWipLimit('value') <= list.cards().count();
|
||||
},
|
||||
|
||||
showCardsCountForList(count) {
|
||||
return count > this.limitToShowCardsCount();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click .js-open-list-menu': Popup.open('listAction'),
|
||||
'click .js-add-card' () {
|
||||
const listDom = document.getElementById(`js-list-${this.currentData()._id}`);
|
||||
const listComponent = BlazeComponent.getComponentForElement(listDom);
|
||||
listComponent.openForm({
|
||||
position: 'top',
|
||||
});
|
||||
},
|
||||
'click .js-unselect-list'() {
|
||||
Session.set('currentList', null);
|
||||
},
|
||||
submit: this.editTitle,
|
||||
}];
|
||||
},
|
||||
}).register('listHeader');
|
||||
|
||||
Template.listActionPopup.events({
|
||||
'click .js-add-card'() {
|
||||
const listDom = document.getElementById(`js-list-${this._id}`);
|
||||
const listComponent = BlazeComponent.getComponentForElement(listDom);
|
||||
listComponent.openForm({ position: 'top' });
|
||||
Popup.close();
|
||||
Template.listActionPopup.helpers({
|
||||
isWipLimitEnabled() {
|
||||
return Template.currentData().getWipLimit('enabled');
|
||||
},
|
||||
'click .js-list-subscribe'() {},
|
||||
'click .js-select-cards'() {
|
||||
|
||||
isWatching() {
|
||||
return this.findWatcher(Meteor.userId());
|
||||
},
|
||||
});
|
||||
|
||||
Template.listActionPopup.events({
|
||||
'click .js-list-subscribe' () {},
|
||||
'click .js-select-cards' () {
|
||||
const cardIds = this.allCards().map((card) => card._id);
|
||||
MultiSelection.add(cardIds);
|
||||
Popup.close();
|
||||
},
|
||||
'click .js-close-list'(evt) {
|
||||
'click .js-toggle-watch-list' () {
|
||||
const currentList = this;
|
||||
const level = currentList.findWatcher(Meteor.userId()) ? null : 'watching';
|
||||
Meteor.call('watch', 'list', currentList._id, level, (err, ret) => {
|
||||
if (!err && ret) Popup.close();
|
||||
});
|
||||
},
|
||||
'click .js-close-list' (evt) {
|
||||
evt.preventDefault();
|
||||
this.archive();
|
||||
Popup.close();
|
||||
},
|
||||
'click .js-set-wip-limit': Popup.open('setWipLimit'),
|
||||
'click .js-more': Popup.open('listMore'),
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
applyWipLimit() {
|
||||
const list = Template.currentData();
|
||||
const limit = parseInt(Template.instance().$('.wip-limit-value').val(), 10);
|
||||
|
||||
if(limit < list.cards().count() && !list.getWipLimit('soft')){
|
||||
Template.instance().$('.wip-limit-error').click();
|
||||
} else {
|
||||
Meteor.call('applyWipLimit', list._id, limit);
|
||||
Popup.back();
|
||||
}
|
||||
},
|
||||
|
||||
enableSoftLimit() {
|
||||
const list = Template.currentData();
|
||||
|
||||
if(list.getWipLimit('soft') && list.getWipLimit('value') < list.cards().count()){
|
||||
list.setWipLimit(list.cards().count());
|
||||
}
|
||||
Meteor.call('enableSoftLimit', Template.currentData()._id);
|
||||
},
|
||||
|
||||
enableWipLimit() {
|
||||
const list = Template.currentData();
|
||||
// Prevent user from using previously stored wipLimit.value if it is less than the current number of cards in the list
|
||||
if(!list.getWipLimit('enabled') && list.getWipLimit('value') < list.cards().count()){
|
||||
list.setWipLimit(list.cards().count());
|
||||
}
|
||||
Meteor.call('enableWipLimit', list._id);
|
||||
},
|
||||
|
||||
isWipLimitSoft() {
|
||||
return Template.currentData().getWipLimit('soft');
|
||||
},
|
||||
|
||||
isWipLimitEnabled() {
|
||||
return Template.currentData().getWipLimit('enabled');
|
||||
},
|
||||
|
||||
wipLimitValue(){
|
||||
return Template.currentData().getWipLimit('value');
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click .js-enable-wip-limit': this.enableWipLimit,
|
||||
'click .wip-limit-apply': this.applyWipLimit,
|
||||
'click .wip-limit-error': Popup.open('wipLimitError'),
|
||||
'click .materialCheckBox': this.enableSoftLimit,
|
||||
}];
|
||||
},
|
||||
}).register('setWipLimitPopup');
|
||||
|
||||
Template.listMorePopup.events({
|
||||
'click .js-delete': Popup.afterConfirm('listDelete', function () {
|
||||
Popup.close();
|
||||
this.allCards().map((card) => Cards.remove(card._id));
|
||||
Lists.remove(this._id);
|
||||
Utils.goBoardId(this.boardId);
|
||||
}),
|
||||
});
|
||||
Regular → Executable
+33
-27
@@ -4,13 +4,13 @@ Template.editor.onRendered(() => {
|
||||
autosize($textarea);
|
||||
|
||||
$textarea.escapeableTextComplete([
|
||||
// Emojies
|
||||
// Emoji
|
||||
{
|
||||
match: /\B:([\-+\w]*)$/,
|
||||
match: /\B:([-+\w]*)$/,
|
||||
search(term, callback) {
|
||||
callback(Emoji.values.map((emoji) => {
|
||||
return emoji.includes(term) ? emoji : null;
|
||||
}));
|
||||
}).filter(Boolean));
|
||||
},
|
||||
template(value) {
|
||||
const imgSrc = Emoji.baseImagePath + value;
|
||||
@@ -25,13 +25,13 @@ Template.editor.onRendered(() => {
|
||||
|
||||
// User mentions
|
||||
{
|
||||
match: /\B@(\w*)$/,
|
||||
match: /\B@([\w.]*)$/,
|
||||
search(term, callback) {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
callback(currentBoard.activeMembers().map((member) => {
|
||||
const username = Users.findOne(member.userId).username;
|
||||
return username.includes(term) ? username : null;
|
||||
}));
|
||||
}).filter(Boolean));
|
||||
},
|
||||
template(value) {
|
||||
return value;
|
||||
@@ -44,8 +44,10 @@ Template.editor.onRendered(() => {
|
||||
]);
|
||||
});
|
||||
|
||||
import sanitizeXss from 'xss';
|
||||
|
||||
// XXX I believe we should compute a HTML rendered field on the server that
|
||||
// would handle markdown, emojies and user mentions. We can simply have two
|
||||
// would handle markdown, emoji and user mentions. We can simply have two
|
||||
// fields, one source, and one compiled version (in HTML) and send only the
|
||||
// compiled version to most users -- who don't need to edit.
|
||||
// In the meantime, all the transformation are done on the client using the
|
||||
@@ -58,21 +60,23 @@ Blaze.Template.registerHelper('mentions', new Template('mentions', function() {
|
||||
member.username = Users.findOne(member.userId).username;
|
||||
return member;
|
||||
});
|
||||
const mentionRegex = /\B@(\w*)/gi;
|
||||
const mentionRegex = /\B@([\w.]*)/gi;
|
||||
let content = Blaze.toHTML(view.templateContentBlock);
|
||||
|
||||
let currentMention, knowedUser, linkClass, linkValue, link;
|
||||
while (Boolean(currentMention = mentionRegex.exec(content))) {
|
||||
|
||||
knowedUser = _.findWhere(knowedUsers, { username: currentMention[1] });
|
||||
if (!knowedUser)
|
||||
let currentMention;
|
||||
while ((currentMention = mentionRegex.exec(content)) !== null) {
|
||||
const [fullMention, username] = currentMention;
|
||||
const knowedUser = _.findWhere(knowedUsers, { username });
|
||||
if (!knowedUser) {
|
||||
continue;
|
||||
}
|
||||
|
||||
linkValue = [' ', at, knowedUser.username];
|
||||
linkClass = 'atMention js-open-member';
|
||||
if (knowedUser.userId === Meteor.userId())
|
||||
const linkValue = [' ', at, knowedUser.username];
|
||||
let linkClass = 'atMention js-open-member';
|
||||
if (knowedUser.userId === Meteor.userId()) {
|
||||
linkClass += ' me';
|
||||
link = HTML.A({
|
||||
}
|
||||
const link = HTML.A({
|
||||
'class': linkClass,
|
||||
// XXX Hack. Since we stringify this render function result below with
|
||||
// `Blaze.toHTML` we can't rely on blaze data contexts to pass the
|
||||
@@ -81,22 +85,17 @@ Blaze.Template.registerHelper('mentions', new Template('mentions', function() {
|
||||
'data-userId': knowedUser.userId,
|
||||
}, linkValue);
|
||||
|
||||
content = content.replace(currentMention[0], Blaze.toHTML(link));
|
||||
content = content.replace(fullMention, Blaze.toHTML(link));
|
||||
}
|
||||
|
||||
return HTML.Raw(content);
|
||||
return HTML.Raw(sanitizeXss(content));
|
||||
}));
|
||||
|
||||
Template.viewer.events({
|
||||
'click .js-open-member'(evt, tpl) {
|
||||
const userId = evt.currentTarget.dataset.userid;
|
||||
Popup.open('member').call({ userId }, evt, tpl);
|
||||
},
|
||||
|
||||
// Viewer sometimes have click-able wrapper around them (for instance to edit
|
||||
// the corresponding text). Clicking a link shouldn't fire these actions, stop
|
||||
// we stop these event at the viewer component level.
|
||||
'click a'(evt) {
|
||||
'click a'(evt, tpl) {
|
||||
evt.stopPropagation();
|
||||
|
||||
// XXX We hijack the build-in browser action because we currently don't have
|
||||
@@ -104,9 +103,16 @@ Template.viewer.events({
|
||||
// handled by a third party package that we can't configure easily. Fix that
|
||||
// by using directly `_blank` attribute in the rendered HTML.
|
||||
evt.preventDefault();
|
||||
const href = evt.currentTarget.href;
|
||||
if (href) {
|
||||
window.open(href, '_blank');
|
||||
|
||||
const userId = evt.currentTarget.dataset.userid;
|
||||
if (userId) {
|
||||
Popup.open('member').call({ userId }, evt, tpl);
|
||||
}
|
||||
else {
|
||||
const href = evt.currentTarget.href;
|
||||
if (href) {
|
||||
window.open(href, '_blank');
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -7,19 +7,31 @@ template(name="header")
|
||||
unless isSandstorm
|
||||
if currentUser
|
||||
#header-quick-access(class=currentBoard.colorClass)
|
||||
ul
|
||||
li
|
||||
a(href="{{pathFor 'home'}}")
|
||||
span.fa.fa-home
|
||||
| {{_ 'all-boards'}}
|
||||
each currentUser.starredBoards
|
||||
li.separator -
|
||||
li(class="{{#if $.Session.equals 'currentBoard' _id}}current{{/if}}")
|
||||
a(href="{{pathFor 'board' id=_id slug=slug}}")
|
||||
= title
|
||||
else
|
||||
li.current {{_ 'quick-access-description'}}
|
||||
if isMiniScreen
|
||||
ul
|
||||
li
|
||||
a(href="{{pathFor 'home'}}")
|
||||
span.fa.fa-home
|
||||
|
||||
if currentList
|
||||
each currentBoard.lists
|
||||
li(class="{{#if $.Session.equals 'currentList' _id}}current{{/if}}")
|
||||
a.js-select-list
|
||||
= title
|
||||
#header-new-board-icon
|
||||
else
|
||||
ul
|
||||
li
|
||||
a(href="{{pathFor 'home'}}")
|
||||
span.fa.fa-home
|
||||
| {{_ 'all-boards'}}
|
||||
each currentUser.starredBoards
|
||||
li.separator -
|
||||
li(class="{{#if $.Session.equals 'currentBoard' _id}}current{{/if}}")
|
||||
a(href="{{pathFor 'board' id=_id slug=slug}}")
|
||||
= title
|
||||
else
|
||||
li.current {{_ 'quick-access-description'}}
|
||||
|
||||
a#header-new-board-icon.js-create-board
|
||||
i.fa.fa-plus(title="Create a new board")
|
||||
@@ -45,3 +57,20 @@ template(name="header")
|
||||
else
|
||||
a.wekan-logo(href="{{pathFor 'home'}}" title="{{_ 'header-logo-title'}}")
|
||||
img(src="{{pathFor '/wekan-logo-header.png'}}" alt="Wekan")
|
||||
|
||||
if appIsOffline
|
||||
+offlineWarning
|
||||
|
||||
if currentUser.isBoardMember
|
||||
if hasAnnouncement
|
||||
.announcement
|
||||
p
|
||||
i.fa.fa-bullhorn
|
||||
| #{announcement}
|
||||
i.fa.fa-times-circle.js-close-announcement
|
||||
|
||||
template(name="offlineWarning")
|
||||
.offline-warning
|
||||
p
|
||||
i.fa.fa-warning
|
||||
| {{_ 'app-is-offline'}}
|
||||
@@ -1,3 +1,6 @@
|
||||
Meteor.subscribe('user-admin');
|
||||
Meteor.subscribe('boards');
|
||||
|
||||
Template.header.helpers({
|
||||
wrappedHeader() {
|
||||
return !Session.get('currentBoard');
|
||||
@@ -6,8 +9,30 @@ Template.header.helpers({
|
||||
hideLogo() {
|
||||
return Utils.isMiniScreen() && Session.get('currentBoard');
|
||||
},
|
||||
|
||||
appIsOffline() {
|
||||
return !Meteor.status().connected;
|
||||
},
|
||||
|
||||
hasAnnouncement() {
|
||||
const announcements = Announcements.findOne();
|
||||
return announcements && announcements.enabled;
|
||||
},
|
||||
|
||||
announcement() {
|
||||
$('.announcement').show();
|
||||
const announcements = Announcements.findOne();
|
||||
return announcements && announcements.body;
|
||||
},
|
||||
});
|
||||
|
||||
Template.header.events({
|
||||
'click .js-create-board': Popup.open('createBoard'),
|
||||
'click .js-create-board': Popup.open('headerBarCreateBoard'),
|
||||
'click .js-close-announcement'() {
|
||||
$('.announcement').hide();
|
||||
},
|
||||
'click .js-select-list'() {
|
||||
Session.set('currentList', this._id);
|
||||
Session.set('currentCard', null);
|
||||
},
|
||||
});
|
||||
@@ -18,6 +18,9 @@
|
||||
float: left
|
||||
border-radius: 3px
|
||||
|
||||
.board-header-watch-icon
|
||||
padding-left: 7px
|
||||
|
||||
a.fa, a i.fa
|
||||
color: white
|
||||
|
||||
@@ -188,8 +191,43 @@
|
||||
bottom: 0px
|
||||
|
||||
ul
|
||||
width: calc(100% - 150px)
|
||||
width: calc(100% - 60px)
|
||||
overflow: ellipsis
|
||||
padding: 10px
|
||||
margin: -10px
|
||||
|
||||
li
|
||||
height: 28px
|
||||
height: 100%
|
||||
padding: 12px 0px
|
||||
margin: -10px 0px
|
||||
|
||||
a
|
||||
height: 100%
|
||||
padding: 12px 10px
|
||||
margin: -10px 0px
|
||||
|
||||
.fa-home
|
||||
font-size: 26px
|
||||
margin-top: -2px
|
||||
|
||||
#header-new-board-icon
|
||||
display: none
|
||||
|
||||
#header-user-bar
|
||||
position: absolute
|
||||
right: 0px
|
||||
padding: 10px
|
||||
margin: -10px
|
||||
|
||||
.announcement,
|
||||
.offline-warning
|
||||
width: 100%
|
||||
text-align: center
|
||||
padding: 0
|
||||
margin: 0
|
||||
background: #F8ECBD
|
||||
clear: both
|
||||
|
||||
p
|
||||
margin: 7px
|
||||
padding: 0
|
||||
@@ -2,24 +2,28 @@ head
|
||||
title Wekan
|
||||
meta(name="viewport"
|
||||
content="maximum-scale=1.0,width=device-width,initial-scale=1.0,user-scalable=0")
|
||||
meta(http-equiv="X-UA-Compatible" content="IE=edge")
|
||||
//- XXX We should use pathFor in the following `href` to support the case
|
||||
where the application is deployed with a path prefix, but it seems to be
|
||||
difficult to do that cleanly with Blaze -- at least without adding extra
|
||||
packages.
|
||||
link(rel="shortcut icon" href="/wekan-favicon.png")
|
||||
link(rel="apple-touch-icon" href="/wekan-favicon.png")
|
||||
link(rel="manifest" href="/wekan-manifest.json")
|
||||
|
||||
template(name="userFormsLayout")
|
||||
section.auth-layout
|
||||
h1.at-form-landing-logo
|
||||
img(src="{{pathFor '/wekan-logo.png'}}" alt="Wekan")
|
||||
+Template.dynamic(template=content)
|
||||
div.at-form-lang
|
||||
select.select-lang.js-userform-set-language
|
||||
each languages
|
||||
if isCurrentLanguage
|
||||
option(value="{{tag}}" selected="selected") {{name}}
|
||||
else
|
||||
option(value="{{tag}}") {{name}}
|
||||
section.auth-dialog
|
||||
+Template.dynamic(template=content)
|
||||
div.at-form-lang
|
||||
select.select-lang.js-userform-set-language
|
||||
each languages
|
||||
if isCurrentLanguage
|
||||
option(value="{{tag}}" selected="selected") {{name}}
|
||||
else
|
||||
option(value="{{tag}}") {{name}}
|
||||
|
||||
template(name="defaultLayout")
|
||||
+header
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
Meteor.subscribe('boards');
|
||||
|
||||
BlazeLayout.setRoot('body');
|
||||
|
||||
const i18nTagToT9n = (i18nTag) => {
|
||||
@@ -18,9 +16,17 @@ Template.userFormsLayout.onRendered(() => {
|
||||
|
||||
Template.userFormsLayout.helpers({
|
||||
languages() {
|
||||
return _.map(TAPi18n.getLanguages(), (lang, tag) => {
|
||||
const name = lang.name;
|
||||
return { tag, name };
|
||||
return _.map(TAPi18n.getLanguages(), (lang, code) => {
|
||||
return {
|
||||
tag: code,
|
||||
name: lang.name === 'br' ? 'Brezhoneg' : lang.name,
|
||||
};
|
||||
}).sort(function(a, b) {
|
||||
if (a.name === b.name) {
|
||||
return 0;
|
||||
} else {
|
||||
return a.name > b.name ? 1 : -1;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -26,13 +26,14 @@ body
|
||||
#content
|
||||
position: relative
|
||||
flex: 1
|
||||
overflow: hidden
|
||||
overflow-x: hidden
|
||||
|
||||
.sk-spinner
|
||||
margin-top: 30vh
|
||||
|
||||
> .wrapper
|
||||
margin-top: 25px
|
||||
margin-top: 10px
|
||||
padding: 15px
|
||||
|
||||
#modal
|
||||
position: absolute
|
||||
@@ -109,6 +110,9 @@ a
|
||||
cursor: default
|
||||
text-decoration: none
|
||||
|
||||
span a
|
||||
text-decoration: underline
|
||||
|
||||
strong
|
||||
font-weight: bold
|
||||
|
||||
@@ -276,12 +280,15 @@ kbd
|
||||
.fa.fa-times-thin:before
|
||||
content: '\00d7';
|
||||
|
||||
.fa.fa-globe.colorful
|
||||
.fa.fa-globe.colorful, .fa.fa-bell.colorful
|
||||
color: #4caf50
|
||||
|
||||
.fa.fa-lock.colorful
|
||||
.fa.fa-lock.colorful, .fa.fa-bell-slash.colorful
|
||||
color: #f44336
|
||||
|
||||
.fa.fa-eye.colorful
|
||||
color: #4336f4
|
||||
|
||||
.pop-over .pop-over-list li a:not(.disabled):hover
|
||||
.fa, .fa.colorful
|
||||
color: white
|
||||
@@ -328,6 +335,8 @@ a
|
||||
margin-left: 38px
|
||||
|
||||
.viewer
|
||||
min-height: 18px
|
||||
|
||||
ol
|
||||
list-style-type: decimal
|
||||
padding-left: 20px
|
||||
@@ -344,6 +353,11 @@ a
|
||||
background: darken(white, 13%)
|
||||
overflow-y: auto
|
||||
|
||||
a
|
||||
text-decoration: underline
|
||||
&:hover
|
||||
color: #333
|
||||
|
||||
.basicTabs-container .tabs-content-container
|
||||
padding: 0
|
||||
padding-top: 15px
|
||||
@@ -354,7 +368,8 @@ a
|
||||
|
||||
@keyframes flexGrowIn
|
||||
from
|
||||
flex-basis: 0
|
||||
// Support IE11 https://github.com/wekan/wekan/pull/646
|
||||
height: 100%
|
||||
|
||||
@media screen and (max-width: 800px)
|
||||
#content
|
||||
@@ -367,3 +382,8 @@ a
|
||||
.wrapper
|
||||
height: 100%
|
||||
margin: 0px
|
||||
|
||||
.inline-input
|
||||
height: 37px
|
||||
margin: 8px 10px 0 0
|
||||
width: 50px
|
||||
@@ -1,3 +1,5 @@
|
||||
@import 'nib'
|
||||
|
||||
/*
|
||||
* From https://github.com/tobiasahlin/SpinKit
|
||||
*
|
||||
|
||||
@@ -17,11 +17,6 @@ Mixins.InfiniteScrolling = BlazeComponent.extendComponent({
|
||||
this._nextPeak = Infinity;
|
||||
},
|
||||
|
||||
// To be overwritten by consumers of this mixin
|
||||
reachNextPeak() {
|
||||
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
scroll(evt) {
|
||||
@@ -29,7 +24,7 @@ Mixins.InfiniteScrolling = BlazeComponent.extendComponent({
|
||||
let altitude = domElement.scrollTop + domElement.offsetHeight;
|
||||
altitude += peakAnticipation;
|
||||
if (altitude >= this.callFirstWith(null, 'getNextPeak')) {
|
||||
this.callFirstWith(null, 'reachNextPeak');
|
||||
this.mixinParent().callFirstWith(null, 'reachNextPeak');
|
||||
}
|
||||
},
|
||||
}];
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
template(name='information')
|
||||
.setting-content
|
||||
unless currentUser.isAdmin
|
||||
| {{_ 'error-notAuthorized'}}
|
||||
else
|
||||
.content-title
|
||||
span {{_ 'info'}}
|
||||
.content-body
|
||||
.side-menu
|
||||
ul
|
||||
li.active
|
||||
a.js-setting-menu(data-id="information-display") {{_ 'info'}}
|
||||
.main-body
|
||||
+statistics
|
||||
|
||||
template(name='statistics')
|
||||
table
|
||||
tbody
|
||||
tr
|
||||
th {{_ 'Wekan_version'}}
|
||||
td {{statistics.version}}
|
||||
tr
|
||||
th {{_ 'Node_version'}}
|
||||
td {{statistics.process.nodeVersion}}
|
||||
tr
|
||||
th {{_ 'OS_Type'}}
|
||||
td {{statistics.os.type}}
|
||||
tr
|
||||
th {{_ 'OS_Platform'}}
|
||||
td {{statistics.os.platform}}
|
||||
tr
|
||||
th {{_ 'OS_Arch'}}
|
||||
td {{statistics.os.arch}}
|
||||
tr
|
||||
th {{_ 'OS_Release'}}
|
||||
td {{statistics.os.release}}
|
||||
tr
|
||||
th {{_ 'OS_Uptime'}}
|
||||
td {{humanReadableTime statistics.os.uptime}}
|
||||
tr
|
||||
th {{_ 'OS_Loadavg'}}
|
||||
td {{numFormat statistics.os.loadavg.[0]}}, {{numFormat statistics.os.loadavg.[1]}}, {{numFormat statistics.os.loadavg.[2]}}
|
||||
tr
|
||||
th {{_ 'OS_Totalmem'}}
|
||||
td {{bytesToSize statistics.os.totalmem}}
|
||||
tr
|
||||
th {{_ 'OS_Freemem'}}
|
||||
td {{bytesToSize statistics.os.freemem}}
|
||||
tr
|
||||
th {{_ 'OS_Cpus'}}
|
||||
td {{statistics.os.cpus.length}}
|
||||
@@ -0,0 +1,48 @@
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.info = new ReactiveVar({});
|
||||
Meteor.call('getStatistics', (error, ret) => {
|
||||
if (!error && ret) {
|
||||
this.info.set(ret);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
statistics() {
|
||||
return this.info.get();
|
||||
},
|
||||
|
||||
humanReadableTime(time) {
|
||||
const days = Math.floor(time / 86400);
|
||||
const hours = Math.floor((time % 86400) / 3600);
|
||||
const minutes = Math.floor(((time % 86400) % 3600) / 60);
|
||||
const seconds = Math.floor(((time % 86400) % 3600) % 60);
|
||||
let out = '';
|
||||
if (days > 0) {
|
||||
out += `${days} ${TAPi18n.__('days')}, `;
|
||||
}
|
||||
if (hours > 0) {
|
||||
out += `${hours} ${TAPi18n.__('hours')}, `;
|
||||
}
|
||||
if (minutes > 0) {
|
||||
out += `${minutes} ${TAPi18n.__('minutes')}, `;
|
||||
}
|
||||
if (seconds > 0) {
|
||||
out += `${seconds} ${TAPi18n.__('seconds')}`;
|
||||
}
|
||||
return out;
|
||||
},
|
||||
|
||||
numFormat(number) {
|
||||
return parseFloat(number).toFixed(2);
|
||||
},
|
||||
|
||||
bytesToSize(bytes) {
|
||||
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
||||
if (bytes === 0) {
|
||||
return '0 Byte';
|
||||
}
|
||||
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);
|
||||
return `${Math.round(bytes / Math.pow(1024, i), 2)} ${sizes[i]}`;
|
||||
},
|
||||
}).register('statistics');
|
||||
@@ -0,0 +1,5 @@
|
||||
template(name='invitationCode')
|
||||
.at-input#invitationcode
|
||||
label(for='at-field-code') {{_ 'invitation-code'}}
|
||||
|
||||
input#at-field-invitationcode(type="text" name='at-field-invitationcode' placeholder="{{_ 'invitation-code'}}")
|
||||
@@ -0,0 +1,6 @@
|
||||
Template.invitationCode.onRendered(() => {
|
||||
const setting = Settings.findOne();
|
||||
if (setting || setting.disableRegistration) {
|
||||
$('#invitationcode').hide();
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,90 @@
|
||||
template(name="people")
|
||||
.setting-content
|
||||
unless currentUser.isAdmin
|
||||
| {{_ 'error-notAuthorized'}}
|
||||
else
|
||||
.content-title
|
||||
span {{_ 'people'}}
|
||||
.content-body
|
||||
.side-menu
|
||||
ul
|
||||
li.active
|
||||
a.js-setting-menu(data-id="people-setting") {{_ 'people'}}
|
||||
.main-body
|
||||
if loading.get
|
||||
+spinner
|
||||
else if people.get
|
||||
+peopleGeneral
|
||||
|
||||
template(name="peopleGeneral")
|
||||
table
|
||||
tbody
|
||||
tr
|
||||
th {{_ 'username'}}
|
||||
th {{_ 'fullname'}}
|
||||
th {{_ 'admin'}}
|
||||
th {{_ 'email'}}
|
||||
th {{_ 'verified'}}
|
||||
th {{_ 'createdAt'}}
|
||||
th {{_ 'active'}}
|
||||
th
|
||||
each user in peopleList
|
||||
+peopleRow(userId=user._id)
|
||||
|
||||
template(name="peopleRow")
|
||||
tr
|
||||
td.username {{ userData.username }}
|
||||
td {{ userData.profile.fullname }}
|
||||
td
|
||||
if userData.isAdmin
|
||||
| {{_ 'yes'}}
|
||||
else
|
||||
| {{_ 'no'}}
|
||||
td {{ userData.emails.[0].address }}
|
||||
td
|
||||
if userData.emails.[0].verified
|
||||
| {{_ 'yes'}}
|
||||
else
|
||||
| {{_ 'no'}}
|
||||
td {{ moment userData.createdAt 'LLL' }}
|
||||
td
|
||||
if userData.loginDisabled
|
||||
| {{_ 'no'}}
|
||||
else
|
||||
| {{_ 'yes'}}
|
||||
td
|
||||
a.edit-user
|
||||
| {{_ 'edit'}}
|
||||
|
||||
template(name="editUserPopup")
|
||||
form
|
||||
label.hide.userId(type="text" value=user._id)
|
||||
label
|
||||
| {{_ 'fullname'}}
|
||||
input.js-profile-fullname(type="text" value=user.profile.fullname autofocus)
|
||||
label
|
||||
| {{_ 'username'}}
|
||||
span.error.hide.username-taken
|
||||
| {{_ 'error-username-taken'}}
|
||||
input.js-profile-username(type="text" value=user.username)
|
||||
label
|
||||
| {{_ 'email'}}
|
||||
span.error.hide.email-taken
|
||||
| {{_ 'error-email-taken'}}
|
||||
input.js-profile-email(type="email" value="{{user.emails.[0].address}}")
|
||||
label
|
||||
| {{_ 'admin'}}
|
||||
select.select-role.js-profile-isadmin
|
||||
option(value="false") {{_ 'no'}}
|
||||
option(value="true" selected="{{user.isAdmin}}") {{_ 'yes'}}
|
||||
label
|
||||
| {{_ 'active'}}
|
||||
select.select-active.js-profile-isactive
|
||||
option(value="false") {{_ 'yes'}}
|
||||
option(value="true" selected="{{user.loginDisabled}}") {{_ 'no'}}
|
||||
hr
|
||||
label
|
||||
| {{_ 'password'}}
|
||||
input.js-profile-password(type="password")
|
||||
|
||||
input.primary.wide(type="submit" value="{{_ 'save'}}")
|
||||
@@ -0,0 +1,158 @@
|
||||
const usersPerPage = 25;
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
mixins() {
|
||||
return [Mixins.InfiniteScrolling];
|
||||
},
|
||||
onCreated() {
|
||||
this.error = new ReactiveVar('');
|
||||
this.loading = new ReactiveVar(false);
|
||||
this.people = new ReactiveVar(true);
|
||||
|
||||
this.page = new ReactiveVar(1);
|
||||
this.loadNextPageLocked = false;
|
||||
this.callFirstWith(null, 'resetNextPeak');
|
||||
this.autorun(() => {
|
||||
const limit = this.page.get() * usersPerPage;
|
||||
|
||||
this.subscribe('people', limit, () => {
|
||||
this.loadNextPageLocked = false;
|
||||
const nextPeakBefore = this.callFirstWith(null, 'getNextPeak');
|
||||
this.calculateNextPeak();
|
||||
const nextPeakAfter = this.callFirstWith(null, 'getNextPeak');
|
||||
if (nextPeakBefore === nextPeakAfter) {
|
||||
this.callFirstWith(null, 'resetNextPeak');
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
loadNextPage() {
|
||||
if (this.loadNextPageLocked === false) {
|
||||
this.page.set(this.page.get() + 1);
|
||||
this.loadNextPageLocked = true;
|
||||
}
|
||||
},
|
||||
calculateNextPeak() {
|
||||
const element = this.find('.main-body');
|
||||
if (element) {
|
||||
const altitude = element.scrollHeight;
|
||||
this.callFirstWith(this, 'setNextPeak', altitude);
|
||||
}
|
||||
},
|
||||
reachNextPeak() {
|
||||
this.loadNextPage();
|
||||
},
|
||||
setError(error) {
|
||||
this.error.set(error);
|
||||
},
|
||||
setLoading(w) {
|
||||
this.loading.set(w);
|
||||
},
|
||||
peopleList() {
|
||||
return Users.find({}, {
|
||||
fields: {_id: true},
|
||||
});
|
||||
},
|
||||
}).register('people');
|
||||
|
||||
Template.peopleRow.helpers({
|
||||
userData() {
|
||||
const userCollection = this.esSearch ? ESSearchResults : Users;
|
||||
return userCollection.findOne(this.userId);
|
||||
},
|
||||
});
|
||||
|
||||
Template.editUserPopup.helpers({
|
||||
user() {
|
||||
return Users.findOne(this.userId);
|
||||
},
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
},
|
||||
user() {
|
||||
return Users.findOne(this.userId);
|
||||
},
|
||||
events() {
|
||||
return [{
|
||||
'click a.edit-user': Popup.open('editUser'),
|
||||
}];
|
||||
},
|
||||
}).register('peopleRow');
|
||||
|
||||
Template.editUserPopup.events({
|
||||
submit(evt, tpl) {
|
||||
evt.preventDefault();
|
||||
const user = Users.findOne(this.userId);
|
||||
const fullname = tpl.find('.js-profile-fullname').value.trim();
|
||||
const username = tpl.find('.js-profile-username').value.trim();
|
||||
const password = tpl.find('.js-profile-password').value;
|
||||
const isAdmin = tpl.find('.js-profile-isadmin').value.trim();
|
||||
const isActive = tpl.find('.js-profile-isactive').value.trim();
|
||||
const email = tpl.find('.js-profile-email').value.trim();
|
||||
|
||||
const isChangePassword = password.length > 0;
|
||||
const isChangeUserName = username !== user.username;
|
||||
const isChangeEmail = email.toLowerCase() !== user.emails[0].address.toLowerCase();
|
||||
|
||||
Users.update(this.userId, {
|
||||
$set: {
|
||||
'profile.fullname': fullname,
|
||||
'isAdmin': isAdmin === 'true',
|
||||
'loginDisabled': isActive === 'true',
|
||||
},
|
||||
});
|
||||
|
||||
if(isChangePassword){
|
||||
Meteor.call('setPassword', password, this.userId);
|
||||
}
|
||||
|
||||
if (isChangeUserName && isChangeEmail) {
|
||||
Meteor.call('setUsernameAndEmail', username, email.toLowerCase(), this.userId, function (error) {
|
||||
const usernameMessageElement = tpl.$('.username-taken');
|
||||
const emailMessageElement = tpl.$('.email-taken');
|
||||
if (error) {
|
||||
const errorElement = error.error;
|
||||
if (errorElement === 'username-already-taken') {
|
||||
usernameMessageElement.show();
|
||||
emailMessageElement.hide();
|
||||
} else if (errorElement === 'email-already-taken') {
|
||||
usernameMessageElement.hide();
|
||||
emailMessageElement.show();
|
||||
}
|
||||
} else {
|
||||
usernameMessageElement.hide();
|
||||
emailMessageElement.hide();
|
||||
Popup.close();
|
||||
}
|
||||
});
|
||||
} else if (isChangeUserName) {
|
||||
Meteor.call('setUsername', username, this.userId, function (error) {
|
||||
const usernameMessageElement = tpl.$('.username-taken');
|
||||
if (error) {
|
||||
const errorElement = error.error;
|
||||
if (errorElement === 'username-already-taken') {
|
||||
usernameMessageElement.show();
|
||||
}
|
||||
} else {
|
||||
usernameMessageElement.hide();
|
||||
Popup.close();
|
||||
}
|
||||
});
|
||||
} else if (isChangeEmail) {
|
||||
Meteor.call('setEmail', email.toLowerCase(), this.userId, function (error) {
|
||||
const emailMessageElement = tpl.$('.email-taken');
|
||||
if (error) {
|
||||
const errorElement = error.error;
|
||||
if (errorElement === 'email-already-taken') {
|
||||
emailMessageElement.show();
|
||||
}
|
||||
} else {
|
||||
emailMessageElement.hide();
|
||||
Popup.close();
|
||||
}
|
||||
});
|
||||
} else Popup.close();
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
.main-body
|
||||
overflow: scroll;
|
||||
|
||||
table
|
||||
font-family: arial, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
|
||||
td, th
|
||||
border: 1px solid #d2d0d0;
|
||||
text-align: left;
|
||||
padding: 8px;
|
||||
|
||||
tr:nth-child(even)
|
||||
background-color: #dddddd;
|
||||
@@ -0,0 +1,121 @@
|
||||
template(name="setting")
|
||||
.setting-content
|
||||
unless currentUser.isAdmin
|
||||
| {{_ 'error-notAuthorized'}}
|
||||
else
|
||||
.content-title
|
||||
span {{_ 'settings'}}
|
||||
.content-body
|
||||
.side-menu
|
||||
ul
|
||||
li.active
|
||||
a.js-setting-menu(data-id="registration-setting") {{_ 'registration'}}
|
||||
li
|
||||
a.js-setting-menu(data-id="email-setting") {{_ 'email'}}
|
||||
li
|
||||
a.js-setting-menu(data-id="account-setting") {{_ 'accounts'}}
|
||||
li
|
||||
a.js-setting-menu(data-id="announcement-setting") {{_ 'admin-announcement'}}
|
||||
.main-body
|
||||
if loading.get
|
||||
+spinner
|
||||
else if generalSetting.get
|
||||
+general
|
||||
else if emailSetting.get
|
||||
+email
|
||||
else if accountSetting.get
|
||||
+accountSettings
|
||||
else if announcementSetting.get
|
||||
+announcementSettings
|
||||
|
||||
template(name="general")
|
||||
ul#registration-setting.setting-detail
|
||||
li
|
||||
a.flex.js-toggle-registration
|
||||
.materialCheckBox(class="{{#if currentSetting.disableRegistration}}is-checked{{/if}}")
|
||||
|
||||
span {{_ 'disable-self-registration'}}
|
||||
li
|
||||
.invite-people(class="{{#if currentSetting.disableRegistration}}{{else}}hide{{/if}}")
|
||||
ul
|
||||
li
|
||||
.title {{_ 'invite-people'}}
|
||||
textarea#email-to-invite.form-control(rows='5', placeholder="{{_ 'email-addresses'}}")
|
||||
li
|
||||
.title {{_ 'to-boards'}}
|
||||
.bg-white
|
||||
each boards
|
||||
a.option.flex.js-toggle-board-choose(id= _id)
|
||||
.materialCheckBox(data-id= _id)
|
||||
|
||||
span= title
|
||||
|
||||
li
|
||||
button.js-email-invite.primary {{_ 'invite'}}
|
||||
|
||||
template(name='email')
|
||||
ul#email-setting.setting-detail
|
||||
li.smtp-form
|
||||
.title {{_ 'smtp-host'}}
|
||||
.description {{_ 'smtp-host-description'}}
|
||||
.form-group
|
||||
input.form-control#mail-server-host(type="text", placeholder="smtp.domain.com" value="{{currentSetting.mailServer.host}}")
|
||||
li.smtp-form
|
||||
.title {{_ 'smtp-port'}}
|
||||
.description {{_ 'smtp-port-description'}}
|
||||
.form-group
|
||||
input.form-control#mail-server-port(type="text", placeholder="25" value="{{currentSetting.mailServer.port}}")
|
||||
li.smtp-form
|
||||
.title {{_ 'smtp-username'}}
|
||||
.form-group
|
||||
input.form-control#mail-server-username(type="text", placeholder="{{_ 'username'}}" value="{{currentSetting.mailServer.username}}")
|
||||
li.smtp-form
|
||||
.title {{_ 'smtp-password'}}
|
||||
.form-group
|
||||
input.form-control#mail-server-password(type="text", placeholder="{{_ 'password'}}" value="{{currentSetting.mailServer.password}}")
|
||||
li.smtp-form
|
||||
.title {{_ 'smtp-tls'}}
|
||||
.form-group
|
||||
a.flex.js-toggle-tls
|
||||
.materialCheckBox#mail-server-tls(class="{{#if currentSetting.mailServer.enableTLS}}is-checked{{/if}}")
|
||||
|
||||
span {{_ 'smtp-tls-description'}}
|
||||
|
||||
li.smtp-form
|
||||
.title {{_ 'send-from'}}
|
||||
.form-group
|
||||
input.form-control#mail-server-from(type="email", placeholder="no-reply@domain.com" value="{{currentSetting.mailServer.from}}")
|
||||
|
||||
li
|
||||
button.js-save.primary {{_ 'save'}}
|
||||
|
||||
li
|
||||
button.js-send-smtp-test-email.primary {{_ 'send-smtp-test'}}
|
||||
|
||||
template(name='accountSettings')
|
||||
ul#account-setting.setting-detail
|
||||
li.smtp-form
|
||||
.title {{_ 'accounts-allowEmailChange'}}
|
||||
.form-group.flex
|
||||
input.form-control#accounts-allowEmailChange(type="radio" name="allowEmailChange" value="true" checked="{{#if allowEmailChange}}checked{{/if}}")
|
||||
span {{_ 'yes'}}
|
||||
input.form-control#accounts-allowEmailChange(type="radio" name="allowEmailChange" value="false" checked="{{#unless allowEmailChange}}checked{{/unless}}")
|
||||
span {{_ 'no'}}
|
||||
li
|
||||
button.js-accounts-save.primary {{_ 'save'}}
|
||||
|
||||
template(name='announcementSettings')
|
||||
ul#announcement-setting.setting-detail
|
||||
li
|
||||
a.flex.js-toggle-activemessage
|
||||
.materialCheckBox(class="{{#if currentSetting.enabled}}is-checked{{/if}}")
|
||||
|
||||
span {{_ 'admin-announcement-active'}}
|
||||
li
|
||||
.admin-announcement(class="{{#if currentSetting.enabled}}{{else}}hide{{/if}}")
|
||||
ul
|
||||
li
|
||||
.title {{_ 'admin-announcement-title'}}
|
||||
textarea#admin-announcement.form-control= currentSetting.body
|
||||
li
|
||||
button.js-announcement-save.primary {{_ 'save'}}
|
||||
@@ -0,0 +1,215 @@
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.error = new ReactiveVar('');
|
||||
this.loading = new ReactiveVar(false);
|
||||
this.generalSetting = new ReactiveVar(true);
|
||||
this.emailSetting = new ReactiveVar(false);
|
||||
this.accountSetting = new ReactiveVar(false);
|
||||
this.announcementSetting = new ReactiveVar(false);
|
||||
|
||||
Meteor.subscribe('setting');
|
||||
Meteor.subscribe('mailServer');
|
||||
Meteor.subscribe('accountSettings');
|
||||
Meteor.subscribe('announcements');
|
||||
},
|
||||
|
||||
setError(error) {
|
||||
this.error.set(error);
|
||||
},
|
||||
|
||||
setLoading(w) {
|
||||
this.loading.set(w);
|
||||
},
|
||||
|
||||
checkField(selector) {
|
||||
const value = $(selector).val();
|
||||
if(!value || value.trim() === ''){
|
||||
$(selector).parents('li.smtp-form').addClass('has-error');
|
||||
throw Error('blank field');
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
},
|
||||
|
||||
currentSetting(){
|
||||
return Settings.findOne();
|
||||
},
|
||||
|
||||
boards() {
|
||||
return Boards.find({
|
||||
archived: false,
|
||||
'members.userId': Meteor.userId(),
|
||||
'members.isAdmin': true,
|
||||
}, {
|
||||
sort: ['title'],
|
||||
});
|
||||
},
|
||||
toggleRegistration(){
|
||||
this.setLoading(true);
|
||||
const registrationClosed = this.currentSetting().disableRegistration;
|
||||
Settings.update(Settings.findOne()._id, {$set:{disableRegistration: !registrationClosed}});
|
||||
this.setLoading(false);
|
||||
if(registrationClosed){
|
||||
$('.invite-people').slideUp();
|
||||
}else{
|
||||
$('.invite-people').slideDown();
|
||||
}
|
||||
},
|
||||
toggleTLS(){
|
||||
$('#mail-server-tls').toggleClass('is-checked');
|
||||
},
|
||||
switchMenu(event){
|
||||
const target = $(event.target);
|
||||
if(!target.hasClass('active')){
|
||||
$('.side-menu li.active').removeClass('active');
|
||||
target.parent().addClass('active');
|
||||
const targetID = target.data('id');
|
||||
this.generalSetting.set('registration-setting' === targetID);
|
||||
this.emailSetting.set('email-setting' === targetID);
|
||||
this.accountSetting.set('account-setting' === targetID);
|
||||
this.announcementSetting.set('announcement-setting' === targetID);
|
||||
}
|
||||
},
|
||||
|
||||
checkBoard(event){
|
||||
let target = $(event.target);
|
||||
if(!target.hasClass('js-toggle-board-choose')){
|
||||
target = target.parent();
|
||||
}
|
||||
const checkboxId = target.attr('id');
|
||||
$(`#${checkboxId} .materialCheckBox`).toggleClass('is-checked');
|
||||
$(`#${checkboxId}`).toggleClass('is-checked');
|
||||
},
|
||||
|
||||
inviteThroughEmail(){
|
||||
const emails = $('#email-to-invite').val().trim().split('\n').join(',').split(',');
|
||||
const boardsToInvite = [];
|
||||
$('.js-toggle-board-choose .materialCheckBox.is-checked').each(function () {
|
||||
boardsToInvite.push($(this).data('id'));
|
||||
});
|
||||
const validEmails = [];
|
||||
emails.forEach((email) => {
|
||||
if (email && SimpleSchema.RegEx.Email.test(email.trim())) {
|
||||
validEmails.push(email.trim());
|
||||
}
|
||||
});
|
||||
if (validEmails.length) {
|
||||
this.setLoading(true);
|
||||
Meteor.call('sendInvitation', validEmails, boardsToInvite, () => {
|
||||
// if (!err) {
|
||||
// TODO - show more info to user
|
||||
// }
|
||||
this.setLoading(false);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
saveMailServerInfo(){
|
||||
this.setLoading(true);
|
||||
$('li').removeClass('has-error');
|
||||
|
||||
try{
|
||||
const host = this.checkField('#mail-server-host');
|
||||
const port = this.checkField('#mail-server-port');
|
||||
const username = $('#mail-server-username').val().trim();
|
||||
const password = $('#mail-server-password').val().trim();
|
||||
const from = this.checkField('#mail-server-from');
|
||||
const tls = $('#mail-server-tls.is-checked').length > 0;
|
||||
Settings.update(Settings.findOne()._id, {$set:{'mailServer.host':host, 'mailServer.port': port, 'mailServer.username': username,
|
||||
'mailServer.password': password, 'mailServer.enableTLS': tls, 'mailServer.from': from}});
|
||||
} catch (e) {
|
||||
return;
|
||||
} finally {
|
||||
this.setLoading(false);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
sendSMTPTestEmail() {
|
||||
Meteor.call('sendSMTPTestEmail', (err, ret) => {
|
||||
if (!err && ret) { /* eslint-disable no-console */
|
||||
const message = `${TAPi18n.__(ret.message)}: ${ret.email}`;
|
||||
console.log(message);
|
||||
alert(message);
|
||||
} else {
|
||||
const reason = err.reason || '';
|
||||
const message = `${TAPi18n.__(err.error)}\n${reason}`;
|
||||
console.log(message, err);
|
||||
alert(message);
|
||||
} /* eslint-enable no-console */
|
||||
});
|
||||
},
|
||||
|
||||
events(){
|
||||
return [{
|
||||
'click a.js-toggle-registration': this.toggleRegistration,
|
||||
'click a.js-toggle-tls': this.toggleTLS,
|
||||
'click a.js-setting-menu': this.switchMenu,
|
||||
'click a.js-toggle-board-choose': this.checkBoard,
|
||||
'click button.js-email-invite': this.inviteThroughEmail,
|
||||
'click button.js-save': this.saveMailServerInfo,
|
||||
'click button.js-send-smtp-test-email': this.sendSMTPTestEmail,
|
||||
}];
|
||||
},
|
||||
}).register('setting');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
saveAllowEmailChange() {
|
||||
const allowEmailChange = ($('input[name=allowEmailChange]:checked').val() === 'true');
|
||||
AccountSettings.update('accounts-allowEmailChange', {
|
||||
$set: { 'booleanValue': allowEmailChange },
|
||||
});
|
||||
},
|
||||
|
||||
allowEmailChange() {
|
||||
return AccountSettings.findOne('accounts-allowEmailChange').booleanValue;
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click button.js-accounts-save': this.saveAllowEmailChange,
|
||||
}];
|
||||
},
|
||||
}).register('accountSettings');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.loading = new ReactiveVar(false);
|
||||
},
|
||||
|
||||
setLoading(w) {
|
||||
this.loading.set(w);
|
||||
},
|
||||
|
||||
currentSetting(){
|
||||
return Announcements.findOne();
|
||||
},
|
||||
|
||||
saveMessage() {
|
||||
const message = $('#admin-announcement').val().trim();
|
||||
Announcements.update(Announcements.findOne()._id, {
|
||||
$set: { 'body': message },
|
||||
});
|
||||
},
|
||||
|
||||
toggleActive(){
|
||||
this.setLoading(true);
|
||||
const isActive = this.currentSetting().enabled;
|
||||
Announcements.update(Announcements.findOne()._id, {
|
||||
$set:{ 'enabled': !isActive},
|
||||
});
|
||||
this.setLoading(false);
|
||||
if(isActive){
|
||||
$('.admin-announcement').slideUp();
|
||||
}else{
|
||||
$('.admin-announcement').slideDown();
|
||||
}
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click a.js-toggle-activemessage': this.toggleActive,
|
||||
'click button.js-announcement-save': this.saveMessage,
|
||||
}];
|
||||
},
|
||||
}).register('announcementSettings');
|
||||
@@ -0,0 +1,113 @@
|
||||
.flex
|
||||
display: -webkit-box
|
||||
display: -moz-box
|
||||
display: -webkit-flex
|
||||
display: -moz-flex
|
||||
display: -ms-flexbox
|
||||
display: flex
|
||||
|
||||
.setting-content
|
||||
padding 30px
|
||||
color: #727479
|
||||
background: #dedede
|
||||
width 100%
|
||||
height 100%
|
||||
position: absolute;
|
||||
|
||||
.content-title
|
||||
font-size 20px
|
||||
|
||||
.content-body
|
||||
display flex
|
||||
padding-top 15px
|
||||
height 100%
|
||||
|
||||
.side-menu
|
||||
background-color: #f7f7f7;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 4px;
|
||||
width: 250px;
|
||||
box-shadow: inset -1px -1px 3px rgba(0,0,0,.05);
|
||||
|
||||
ul
|
||||
|
||||
li
|
||||
margin: 0.1rem 0.2rem;
|
||||
|
||||
&.active
|
||||
background #fff
|
||||
box-shadow 0 1px 2px rgba(0,0,0,0.15);
|
||||
|
||||
&:hover
|
||||
background #fff
|
||||
box-shadow 0 1px 2px rgba(0,0,0,0.15);
|
||||
a
|
||||
@extends .flex
|
||||
padding: 1rem 0 1rem 1rem
|
||||
width: 100% - 5rem
|
||||
|
||||
|
||||
span
|
||||
font-size: 13px
|
||||
|
||||
.main-body
|
||||
padding: 0.1em 1em
|
||||
|
||||
ul
|
||||
li
|
||||
padding: 0.5rem 0.5rem;
|
||||
|
||||
a
|
||||
.is-checked
|
||||
border-bottom: 2px solid #2980b9;
|
||||
border-right: 2px solid #2980b9;
|
||||
|
||||
span
|
||||
padding: 0 0.5rem
|
||||
|
||||
.admin-announcement,
|
||||
.invite-people
|
||||
padding-left 20px;
|
||||
li
|
||||
min-width: 500px;
|
||||
|
||||
ul.no-margin-bottom
|
||||
margin-bottom: 0;
|
||||
|
||||
.bg-white
|
||||
a
|
||||
background #f7f7f7
|
||||
&.is-checked
|
||||
background #fff
|
||||
|
||||
|
||||
.option
|
||||
@extends .flex
|
||||
-webkit-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
background: #fff;
|
||||
text-decoration: none;
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
|
||||
margin-top: 5px;
|
||||
padding: 5px;
|
||||
|
||||
.title
|
||||
font-weight 700;
|
||||
margin-bottom 0.5rem;
|
||||
.description
|
||||
margin-bottom 0.5rem;
|
||||
.bg-white
|
||||
background #f9fbfc;
|
||||
|
||||
.form-control.has-error
|
||||
border-color: #a94442;
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
|
||||
|
||||
li.has-error
|
||||
color #a94442
|
||||
.form-group
|
||||
.form-control
|
||||
border-color: #a94442;
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
template(name="settingHeaderBar")
|
||||
h1.header-setting-menu
|
||||
span {{_ 'admin-panel'}}
|
||||
|
||||
.setting-header-btns.left
|
||||
unless isMiniScreen
|
||||
unless isSandstorm
|
||||
if currentUser
|
||||
a.setting-header-btn.settings(href="{{pathFor 'setting'}}")
|
||||
i.fa(class="fa-cog")
|
||||
span {{_ 'settings'}}
|
||||
|
||||
a.setting-header-btn.people(href="{{pathFor 'people'}}")
|
||||
i.fa(class="fa-users")
|
||||
span {{_ 'people'}}
|
||||
|
||||
a.setting-header-btn.informations(href="{{pathFor 'information'}}")
|
||||
i.fa(class="fa-info-circle")
|
||||
span {{_ 'info'}}
|
||||
|
||||
else
|
||||
a.setting-header-btn.js-log-in(
|
||||
title="{{_ 'log-in'}}")
|
||||
i.fa.fa-sign-in
|
||||
span {{_ 'log-in'}}
|
||||
@@ -0,0 +1,25 @@
|
||||
#header #header-main-bar .setting-header-btn
|
||||
&.active,
|
||||
&:hover:not(.is-disabled)
|
||||
background: rgba(0, 0, 0, .15)
|
||||
color: darken(white, 5%)
|
||||
margin-left: 20px;
|
||||
padding-right: 10px;
|
||||
height: 28px;
|
||||
font-size: 13px;
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
line-height: @height;
|
||||
margin: 0 2px;
|
||||
|
||||
i.fa
|
||||
float: left
|
||||
display: block
|
||||
line-height: 28px
|
||||
color: darken(white, 5%)
|
||||
margin: 0 10px
|
||||
|
||||
+ span
|
||||
display: inline-block
|
||||
margin-top: 1px
|
||||
margin-right: 10px
|
||||
@@ -1,16 +1,22 @@
|
||||
template(name="sidebar")
|
||||
.board-sidebar.sidebar(class="{{#if isOpen}}is-open{{/if}}")
|
||||
a.sidebar-tongue.js-toggle-sidebar(
|
||||
class="{{#if isTongueHidden}}is-hidden{{/if}}")
|
||||
class="{{#if isTongueHidden}}is-hidden{{/if}}",
|
||||
title="{{showTongueTitle}}")
|
||||
i.fa.fa-angle-left
|
||||
.sidebar-content.js-board-sidebar-content.js-perfect-scrollbar
|
||||
a.hide-btn.js-hide-sidebar
|
||||
i.fa.fa-angle-right
|
||||
unless isDefaultView
|
||||
h2
|
||||
a.fa.fa-chevron-left.js-back-home
|
||||
= getViewTitle
|
||||
+Template.dynamic(template=getViewTemplate)
|
||||
.sidebar-shadow
|
||||
.sidebar-content.sidebar-shortcuts
|
||||
a.board-header-btn.js-shortcuts
|
||||
i.fa.fa-keyboard-o
|
||||
span {{_ 'keyboard-shortcuts' }}
|
||||
.sidebar-content.js-board-sidebar-content.js-perfect-scrollbar
|
||||
a.hide-btn.js-hide-sidebar
|
||||
i.fa.fa-angle-right
|
||||
unless isDefaultView
|
||||
h2
|
||||
a.fa.fa-chevron-left.js-back-home
|
||||
= getViewTitle
|
||||
+Template.dynamic(template=getViewTemplate)
|
||||
|
||||
template(name='homeSidebar')
|
||||
+membersWidget
|
||||
@@ -30,10 +36,13 @@ template(name="membersWidget")
|
||||
.board-widget-content
|
||||
each currentBoard.activeMembers
|
||||
+userAvatar(userId=this.userId showStatus=true)
|
||||
unless isSandstorm
|
||||
if currentUser.isBoardAdmin
|
||||
a.member.add-member.js-manage-board-members
|
||||
if isSandstorm
|
||||
if currentUser.isBoardMember
|
||||
a.member.add-member.sandstorm-powerbox-request-identity
|
||||
i.fa.fa-plus
|
||||
else if currentUser.isBoardAdmin
|
||||
a.member.add-member.js-manage-board-members
|
||||
i.fa.fa-plus
|
||||
.clearfix
|
||||
if isInvited
|
||||
hr
|
||||
@@ -51,7 +60,7 @@ template(name="labelsWidget")
|
||||
.board-widget-content
|
||||
each currentBoard.labels
|
||||
a.card-label(class="card-label-{{color}}"
|
||||
class="{{#if currentUser.isBoardMember}}js-label{{/if}}")
|
||||
class="{{#if currentUser.isNotCommentOnly}}js-label{{/if}}")
|
||||
span.card-label-name= name
|
||||
if currentUser.isBoardAdmin
|
||||
a.card-label.add-label.js-add-label
|
||||
@@ -73,23 +82,27 @@ template(name="memberPopup")
|
||||
ul.pop-over-list
|
||||
li
|
||||
a.js-filter-member {{_ 'filter-cards'}}
|
||||
if currentUser.isBoardAdmin
|
||||
unless isSandstorm
|
||||
unless isSandstorm
|
||||
if currentUser.isBoardAdmin
|
||||
li
|
||||
a.js-change-role
|
||||
| {{_ 'change-permissions'}}
|
||||
span.quiet (#{memberType})
|
||||
li
|
||||
if $eq currentUser._id userId
|
||||
a.js-leave-member {{_ 'leave-board'}}
|
||||
else
|
||||
a.js-remove-member {{_ 'remove-from-board'}}
|
||||
li
|
||||
if $eq currentUser._id userId
|
||||
a.js-leave-member {{_ 'leave-board'}}
|
||||
else if currentUser.isBoardAdmin
|
||||
a.js-remove-member {{_ 'remove-from-board'}}
|
||||
|
||||
|
||||
template(name="removeMemberPopup")
|
||||
p {{_ 'remove-member-pop' name=user.profile.fullname username=user.username boardTitle=board.title}}
|
||||
button.js-confirm.negate.full(type="submit") {{_ 'remove-member'}}
|
||||
|
||||
template(name="leaveBoardPopup")
|
||||
p {{_ 'leave-board-pop' boardTitle=board.title}}
|
||||
button.js-confirm.negate.full(type="submit") {{_ 'leave-board'}}
|
||||
|
||||
template(name="addMemberPopup")
|
||||
.js-search-member
|
||||
+esInput(index="users")
|
||||
@@ -102,7 +115,7 @@ template(name="addMemberPopup")
|
||||
ul.pop-over-list
|
||||
+esEach(index="users")
|
||||
li.item.js-member-item(class="{{#if isBoardMember}}disabled{{/if}}")
|
||||
a.name.js-select-member(title="{{profile.name}} ({{username}})")
|
||||
a.name.js-select-member(title="{{profile.fullname}} ({{username}})")
|
||||
+userAvatar(userId=_id esSearch=true)
|
||||
span.full-name
|
||||
= profile.fullname
|
||||
@@ -129,9 +142,15 @@ template(name="changePermissionsPopup")
|
||||
li
|
||||
a(class="{{#if isLastAdmin}}disabled{{else}}js-set-normal{{/if}}")
|
||||
| {{_ 'normal'}}
|
||||
unless isAdmin
|
||||
if isNormal
|
||||
i.fa.fa-check
|
||||
span.sub-name {{_ 'normal-desc'}}
|
||||
li
|
||||
a(class="{{#if isLastAdmin}}disabled{{else}}js-set-comment-only{{/if}}")
|
||||
| {{_ 'comment-only'}}
|
||||
if isCommentOnly
|
||||
i.fa.fa-check
|
||||
span.sub-name {{_ 'comment-only-desc'}}
|
||||
if isLastAdmin
|
||||
hr
|
||||
p.quiet.bottom {{_ 'last-admin-desc'}}
|
||||
@@ -9,10 +9,6 @@ const viewTitles = {
|
||||
};
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'sidebar';
|
||||
},
|
||||
|
||||
mixins() {
|
||||
return [Mixins.InfiniteScrolling, Mixins.PerfectScrollbar];
|
||||
},
|
||||
@@ -93,13 +89,21 @@ BlazeComponent.extendComponent({
|
||||
return TAPi18n.__(viewTitles[this.getView()]);
|
||||
},
|
||||
|
||||
showTongueTitle() {
|
||||
if (this.isOpen())
|
||||
return `${TAPi18n.__('sidebar-close')}`;
|
||||
else
|
||||
return `${TAPi18n.__('sidebar-open')}`;
|
||||
},
|
||||
|
||||
events() {
|
||||
// XXX Hacky, we need some kind of `super`
|
||||
const mixinEvents = this.getMixin(Mixins.InfiniteScrolling).events();
|
||||
return [...mixinEvents, {
|
||||
return [{
|
||||
'click .js-hide-sidebar': this.hide,
|
||||
'click .js-toggle-sidebar': this.toggle,
|
||||
'click .js-back-home': this.setView,
|
||||
'click .js-shortcuts'() {
|
||||
FlowRouter.go('shortcuts');
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('sidebar');
|
||||
@@ -117,7 +121,17 @@ Template.memberPopup.helpers({
|
||||
},
|
||||
memberType() {
|
||||
const type = Users.findOne(this.userId).isBoardAdmin() ? 'admin' : 'normal';
|
||||
return TAPi18n.__(type).toLowerCase();
|
||||
if(type === 'normal'){
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
const commentOnly = currentBoard.hasCommentOnly(this.userId);
|
||||
if(commentOnly){
|
||||
return TAPi18n.__('comment-only').toLowerCase();
|
||||
} else {
|
||||
return TAPi18n.__(type).toLowerCase();
|
||||
}
|
||||
} else {
|
||||
return TAPi18n.__(type).toLowerCase();
|
||||
}
|
||||
},
|
||||
isInvited() {
|
||||
return Users.findOne(this.userId).isInvitedTo(Session.get('currentBoard'));
|
||||
@@ -139,15 +153,13 @@ Template.memberPopup.events({
|
||||
Boards.findOne(boardId).removeMember(memberId);
|
||||
Popup.close();
|
||||
}),
|
||||
'click .js-leave-member'() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
Meteor.call('quitBoard', currentBoard, (err, ret) => {
|
||||
if (!ret && ret) {
|
||||
Popup.close();
|
||||
FlowRouter.go('home');
|
||||
}
|
||||
'click .js-leave-member': Popup.afterConfirm('leaveBoard', () => {
|
||||
const boardId = Session.get('currentBoard');
|
||||
Meteor.call('quitBoard', boardId, (err, ret) => {
|
||||
Popup.close();
|
||||
FlowRouter.go('home');
|
||||
});
|
||||
},
|
||||
}),
|
||||
});
|
||||
|
||||
Template.removeMemberPopup.helpers({
|
||||
@@ -159,6 +171,12 @@ Template.removeMemberPopup.helpers({
|
||||
},
|
||||
});
|
||||
|
||||
Template.leaveBoardPopup.helpers({
|
||||
board() {
|
||||
return Boards.findOne(Session.get('currentBoard'));
|
||||
},
|
||||
});
|
||||
|
||||
Template.membersWidget.helpers({
|
||||
isInvited() {
|
||||
const user = Meteor.user();
|
||||
@@ -169,6 +187,9 @@ Template.membersWidget.helpers({
|
||||
Template.membersWidget.events({
|
||||
'click .js-member': Popup.open('member'),
|
||||
'click .js-manage-board-members': Popup.open('addMember'),
|
||||
'click .sandstorm-powerbox-request-identity'() {
|
||||
window.sandstormRequestIdentity();
|
||||
},
|
||||
'click .js-member-invite-accept'() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
Meteor.user().removeInvite(boardId);
|
||||
@@ -195,9 +216,6 @@ Template.labelsWidget.events({
|
||||
// autorun function and register a dependency on the both members and labels
|
||||
// fields of the current board document.
|
||||
function draggableMembersLabelsWidgets() {
|
||||
if (!Meteor.user() || !Meteor.user().isBoardMember())
|
||||
return;
|
||||
|
||||
this.autorun(() => {
|
||||
const currentBoardId = Tracker.nonreactive(() => {
|
||||
return Session.get('currentBoard');
|
||||
@@ -209,7 +227,8 @@ function draggableMembersLabelsWidgets() {
|
||||
},
|
||||
});
|
||||
Tracker.afterFlush(() => {
|
||||
this.$('.js-member,.js-label').draggable({
|
||||
const $draggables = this.$('.js-member,.js-label');
|
||||
$draggables.draggable({
|
||||
appendTo: 'body',
|
||||
helper: 'clone',
|
||||
revert: 'invalid',
|
||||
@@ -220,6 +239,14 @@ function draggableMembersLabelsWidgets() {
|
||||
EscapeActions.executeUpTo('popup-back');
|
||||
},
|
||||
});
|
||||
|
||||
function userIsMember() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember();
|
||||
}
|
||||
|
||||
this.autorun(() => {
|
||||
$draggables.draggable('option', 'disabled', !userIsMember());
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -228,10 +255,6 @@ Template.membersWidget.onRendered(draggableMembersLabelsWidgets);
|
||||
Template.labelsWidget.onRendered(draggableMembersLabelsWidgets);
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'addMemberPopup';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.error = new ReactiveVar('');
|
||||
this.loading = new ReactiveVar(false);
|
||||
@@ -299,11 +322,12 @@ BlazeComponent.extendComponent({
|
||||
}).register('addMemberPopup');
|
||||
|
||||
Template.changePermissionsPopup.events({
|
||||
'click .js-set-admin, click .js-set-normal'(event) {
|
||||
'click .js-set-admin, click .js-set-normal, click .js-set-comment-only'(event) {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
const memberId = this.userId;
|
||||
const isAdmin = $(event.currentTarget).hasClass('js-set-admin');
|
||||
currentBoard.setMemberPermission(memberId, isAdmin);
|
||||
const isCommentOnly = $(event.currentTarget).hasClass('js-set-comment-only');
|
||||
currentBoard.setMemberPermission(memberId, isAdmin, isCommentOnly);
|
||||
Popup.back(1);
|
||||
},
|
||||
});
|
||||
@@ -314,6 +338,16 @@ Template.changePermissionsPopup.helpers({
|
||||
return currentBoard.hasAdmin(this.userId);
|
||||
},
|
||||
|
||||
isNormal() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
return !currentBoard.hasAdmin(this.userId) && !currentBoard.hasCommentOnly(this.userId);
|
||||
},
|
||||
|
||||
isCommentOnly() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
return !currentBoard.hasAdmin(this.userId) && currentBoard.hasCommentOnly(this.userId);
|
||||
},
|
||||
|
||||
isLastAdmin() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
return currentBoard.hasAdmin(this.userId) && (currentBoard.activeAdmins() === 1);
|
||||
|
||||
@@ -6,11 +6,19 @@
|
||||
bottom: 0
|
||||
right: 0
|
||||
|
||||
.sidebar-content
|
||||
padding: 12px
|
||||
.sidebar-shadow
|
||||
position: absolute
|
||||
top: 0
|
||||
bottom: 0
|
||||
right: 0
|
||||
left: 0
|
||||
background: darken(white, 3%)
|
||||
box-shadow: -10px 0px 5px -10px darken(white, 30%)
|
||||
z-index: 10
|
||||
|
||||
.sidebar-content
|
||||
padding: 12px
|
||||
margin-bottom: 1.6em
|
||||
position: absolute
|
||||
top: 0
|
||||
bottom: 0
|
||||
@@ -51,6 +59,7 @@
|
||||
|
||||
.member, .card-label
|
||||
margin-right: 7px
|
||||
margin-top: 5px
|
||||
|
||||
.sidebar-list-item-description
|
||||
flex: 1
|
||||
@@ -72,6 +81,16 @@
|
||||
i.fa
|
||||
margin-right: 10px
|
||||
|
||||
.sidebar-shortcuts
|
||||
margin: 0
|
||||
padding: 0
|
||||
top: auto
|
||||
text-align: center
|
||||
font-size: 0.8em
|
||||
line-height: 1.6em
|
||||
vertical-align: middle
|
||||
color: darken(white, 40%)
|
||||
|
||||
.board-sidebar
|
||||
width: 248px
|
||||
right: -@width
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'archivesSidebar';
|
||||
},
|
||||
|
||||
tabs() {
|
||||
return [
|
||||
{ name: TAPi18n.__('cards'), slug: 'cards' },
|
||||
@@ -36,7 +32,9 @@ BlazeComponent.extendComponent({
|
||||
return [{
|
||||
'click .js-restore-card'() {
|
||||
const card = this.currentData();
|
||||
card.restore();
|
||||
if(card.canBeRestored()){
|
||||
card.restore();
|
||||
}
|
||||
},
|
||||
'click .js-delete-card': Popup.afterConfirm('cardDelete', function() {
|
||||
const cardId = this._id;
|
||||
|
||||
@@ -5,6 +5,12 @@
|
||||
|
||||
template(name="filterSidebar")
|
||||
ul.sidebar-list
|
||||
li(class="{{#if Filter.labelIds.isSelected undefined}}active{{/if}}")
|
||||
a.name.js-toggle-label-filter
|
||||
span.sidebar-list-item-description
|
||||
| {{_ 'filter-no-label'}}
|
||||
if Filter.labelIds.isSelected undefined
|
||||
i.fa.fa-check
|
||||
each currentBoard.labels
|
||||
li
|
||||
a.name.js-toggle-label-filter
|
||||
@@ -18,6 +24,12 @@ template(name="filterSidebar")
|
||||
i.fa.fa-check
|
||||
hr
|
||||
ul.sidebar-list
|
||||
li(class="{{#if Filter.members.isSelected undefined}}active{{/if}}")
|
||||
a.name.js-toggle-member-filter
|
||||
span.sidebar-list-item-description
|
||||
| {{_ 'filter-no-member'}}
|
||||
if Filter.members.isSelected undefined
|
||||
i.fa.fa-check
|
||||
each currentBoard.activeMembers
|
||||
with getUser userId
|
||||
li(class="{{#if Filter.members.isSelected _id}}active{{/if}}")
|
||||
@@ -47,7 +59,7 @@ template(name="multiselectionSidebar")
|
||||
if name
|
||||
= name
|
||||
else
|
||||
span.quiet {{_ "label-default" color}}
|
||||
span.quiet {{_ "label-default" (_ (concat "color-" color))}}
|
||||
if allSelectedElementHave 'label' _id
|
||||
i.fa.fa-check
|
||||
else if someSelectedElementHave 'label' _id
|
||||
@@ -86,4 +98,3 @@ template(name="disambiguateMultiMemberPopup")
|
||||
|
||||
template(name="moveSelectionPopup")
|
||||
+boardLists
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'filterSidebar';
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click .js-toggle-label-filter'(evt) {
|
||||
@@ -37,10 +33,6 @@ function mutateSelectedCards(mutationName, ...args) {
|
||||
}
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'multiselectionSidebar';
|
||||
},
|
||||
|
||||
mapSelection(kind, _id) {
|
||||
return Cards.find(MultiSelection.getMongoSelector()).map((card) => {
|
||||
const methodName = kind === 'label' ? 'hasLabel' : 'isAssigned';
|
||||
@@ -76,7 +68,7 @@ BlazeComponent.extendComponent({
|
||||
const popup = Popup.open('disambiguateMultiLabel');
|
||||
// XXX We need to have a better integration between the popup and the
|
||||
// UI components systems.
|
||||
return popup.call(this.currentData(), evt);
|
||||
popup.call(this.currentData(), evt);
|
||||
}
|
||||
},
|
||||
'click .js-toggle-member-multiselection'(evt) {
|
||||
@@ -90,7 +82,7 @@ BlazeComponent.extendComponent({
|
||||
const popup = Popup.open('disambiguateMultiMember');
|
||||
// XXX We need to have a better integration between the popup and the
|
||||
// UI components systems.
|
||||
return popup.call(this.currentData(), evt);
|
||||
popup.call(this.currentData(), evt);
|
||||
}
|
||||
},
|
||||
'click .js-move-selection': Popup.open('moveSelection'),
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
template(name="swimlane")
|
||||
.swimlane.js-lists
|
||||
.swimlane-header-wrap
|
||||
.swimlane-header
|
||||
= title
|
||||
if isMiniScreen
|
||||
if currentList
|
||||
+list(currentList)
|
||||
else
|
||||
each currentBoard.lists
|
||||
+miniList(this)
|
||||
if currentUser.isBoardMember
|
||||
+addListForm
|
||||
else
|
||||
each currentBoard.lists
|
||||
+list(this)
|
||||
if currentCardIsInThisList
|
||||
+cardDetails(currentCard)
|
||||
if currentUser.isBoardMember
|
||||
+addListForm
|
||||
+addListAndSwimlaneForm
|
||||
|
||||
template(name="listsGroup")
|
||||
.swimlane.js-lists
|
||||
if isMiniScreen
|
||||
if currentList
|
||||
+list(currentList)
|
||||
else
|
||||
each currentBoard.lists
|
||||
+miniList(this)
|
||||
if currentUser.isBoardMember
|
||||
+addListForm
|
||||
else
|
||||
each currentBoard.lists
|
||||
+list(this)
|
||||
if currentCardIsInThisList
|
||||
+cardDetails(currentCard)
|
||||
if currentUser.isBoardMember
|
||||
+addListForm
|
||||
|
||||
template(name="addListAndSwimlaneForm")
|
||||
.list.js-list.list-composer.js-list-composer
|
||||
.list-header
|
||||
+inlinedForm(autoclose=false)
|
||||
input.list-name-input.full-line(type="text" placeholder="{{_ 'add-list'}}"
|
||||
autocomplete="off" autofocus)
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm(type="submit") {{_ 'save'}}
|
||||
a.fa.fa-times-thin.js-close-inlined-form
|
||||
else
|
||||
a.open-list-composer.js-open-inlined-form
|
||||
i.fa.fa-plus
|
||||
| {{_ 'add-list'}}
|
||||
.list-header
|
||||
+inlinedForm(autoclose=false)
|
||||
input.swimlane-name-input.full-line(type="text" placeholder="{{_ 'add-swimlane'}}"
|
||||
autocomplete="off" autofocus)
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm(type="submit") {{_ 'save'}}
|
||||
a.fa.fa-times-thin.js-close-inlined-form
|
||||
else
|
||||
a.open-list-composer.js-open-inlined-form
|
||||
i.fa.fa-plus
|
||||
| {{_ 'add-swimlane'}}
|
||||
|
||||
template(name="addListForm")
|
||||
.list.js-list.list-composer.js-list-composer
|
||||
.list-header
|
||||
+inlinedForm(autoclose=false)
|
||||
input.list-name-input.full-line(type="text" placeholder="{{_ 'add-list'}}"
|
||||
autocomplete="off" autofocus)
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm(type="submit") {{_ 'save'}}
|
||||
a.fa.fa-times-thin.js-close-inlined-form
|
||||
else
|
||||
a.open-list-composer.js-open-inlined-form
|
||||
i.fa.fa-plus
|
||||
| {{_ 'add-list'}}
|
||||
@@ -0,0 +1,223 @@
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.draggingActive = new ReactiveVar(false);
|
||||
|
||||
this._isDragging = false;
|
||||
this._lastDragPositionX = 0;
|
||||
},
|
||||
|
||||
openNewListForm() {
|
||||
this.childComponents('addListForm')[0].open();
|
||||
},
|
||||
|
||||
id() {
|
||||
return this._id;
|
||||
},
|
||||
|
||||
// XXX Flow components allow us to avoid creating these two setter methods by
|
||||
// exposing a public API to modify the component state. We need to investigate
|
||||
// best practices here.
|
||||
setIsDragging(bool) {
|
||||
this.draggingActive.set(bool);
|
||||
},
|
||||
|
||||
scrollLeft(position = 0) {
|
||||
const lists = this.$('.js-lists');
|
||||
lists && lists.animate({
|
||||
scrollLeft: position,
|
||||
});
|
||||
},
|
||||
|
||||
currentCardIsInThisList() {
|
||||
const currentCard = Cards.findOne(Session.get('currentCard'));
|
||||
const listId = this.currentData()._id;
|
||||
return currentCard && currentCard.listId === listId; //TODO: AND IN THIS SWIMLANE
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
// Click-and-drag action
|
||||
'mousedown .board-canvas'(evt) {
|
||||
// Translating the board canvas using the click-and-drag action can
|
||||
// conflict with the build-in browser mechanism to select text. We
|
||||
// define a list of elements in which we disable the dragging because
|
||||
// the user will legitimately expect to be able to select some text with
|
||||
// his mouse.
|
||||
const noDragInside = ['a', 'input', 'textarea', 'p', '.js-list-header'];
|
||||
if ($(evt.target).closest(noDragInside.join(',')).length === 0 && this.$('.swimlane').prop('clientHeight') > evt.offsetY) {
|
||||
this._isDragging = true;
|
||||
this._lastDragPositionX = evt.clientX;
|
||||
}
|
||||
},
|
||||
'mouseup'() {
|
||||
if (this._isDragging) {
|
||||
this._isDragging = false;
|
||||
}
|
||||
},
|
||||
'mousemove'(evt) {
|
||||
if (this._isDragging) {
|
||||
// Update the canvas position
|
||||
this.listsDom.scrollLeft -= evt.clientX - this._lastDragPositionX;
|
||||
this._lastDragPositionX = evt.clientX;
|
||||
// Disable browser text selection while dragging
|
||||
evt.stopPropagation();
|
||||
evt.preventDefault();
|
||||
// Don't close opened card or inlined form at the end of the
|
||||
// click-and-drag.
|
||||
EscapeActions.executeUpTo('popup-close');
|
||||
EscapeActions.preventNextClick();
|
||||
}
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('swimlane');
|
||||
|
||||
Template.swimlane.onRendered(function() {
|
||||
const self = BlazeComponent.getComponentForElement(this.firstNode);
|
||||
|
||||
self.listsDom = this.find('.js-lists');
|
||||
|
||||
if (!Session.get('currentCard')) {
|
||||
self.scrollLeft();
|
||||
}
|
||||
|
||||
// We want to animate the card details window closing. We rely on CSS
|
||||
// transition for the actual animation.
|
||||
self.listsDom._uihooks = {
|
||||
removeElement(node) {
|
||||
const removeNode = _.once(() => {
|
||||
node.parentNode.removeChild(node);
|
||||
});
|
||||
if ($(node).hasClass('js-card-details')) {
|
||||
$(node).css({
|
||||
flexBasis: 0,
|
||||
padding: 0,
|
||||
});
|
||||
$(self.listsDom).one(CSSEvents.transitionend, removeNode);
|
||||
} else {
|
||||
removeNode();
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
$(self.listsDom).sortable({
|
||||
tolerance: 'pointer',
|
||||
helper: 'clone',
|
||||
handle: '.js-list-header',
|
||||
items: '.js-list:not(.js-list-composer)',
|
||||
placeholder: 'list placeholder',
|
||||
distance: 7,
|
||||
start(evt, ui) {
|
||||
ui.placeholder.height(ui.helper.height());
|
||||
Popup.close();
|
||||
},
|
||||
stop() {
|
||||
$(self.listsDom).find('.js-list:not(.js-list-composer)').each(
|
||||
(i, list) => {
|
||||
const data = Blaze.getData(list);
|
||||
Lists.update(data._id, {
|
||||
$set: {
|
||||
sort: i,
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
function userIsMember() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember();
|
||||
}
|
||||
|
||||
// Disable drag-dropping while in multi-selection mode, or if the current user
|
||||
// is not a board member
|
||||
self.autorun(() => {
|
||||
const $listDom = $(self.listsDom);
|
||||
if ($listDom.data('sortable')) {
|
||||
$(self.listsDom).sortable('option', 'disabled',
|
||||
MultiSelection.isActive() || !userIsMember());
|
||||
}
|
||||
});
|
||||
|
||||
// If there is no data in the board (ie, no lists) we autofocus the list
|
||||
// creation form by clicking on the corresponding element.
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
if (userIsMember() && currentBoard.lists().count() === 0) {
|
||||
self.openNewListForm();
|
||||
}
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
// Proxy
|
||||
open() {
|
||||
this.childComponents('inlinedForm')[0].open();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
submit(evt) {
|
||||
evt.preventDefault();
|
||||
const titleInput = this.find('.list-name-input');
|
||||
const title = titleInput.value.trim();
|
||||
if (title) {
|
||||
Lists.insert({
|
||||
title,
|
||||
boardId: Session.get('currentBoard'),
|
||||
sort: $('.list').length,
|
||||
});
|
||||
|
||||
titleInput.value = '';
|
||||
titleInput.focus();
|
||||
}
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('addListForm');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
// Proxy
|
||||
open() {
|
||||
this.childComponents('inlinedForm')[0].open();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
submit(evt) {
|
||||
evt.preventDefault();
|
||||
let titleInput = this.find('.list-name-input');
|
||||
if (titleInput) {
|
||||
const title = titleInput.value.trim();
|
||||
if (title) {
|
||||
Lists.insert({
|
||||
title,
|
||||
boardId: Session.get('currentBoard'),
|
||||
sort: $('.list').length,
|
||||
});
|
||||
|
||||
titleInput.value = '';
|
||||
titleInput.focus();
|
||||
}
|
||||
} else {
|
||||
titleInput = this.find('.swimlane-name-input');
|
||||
const title = titleInput.value.trim();
|
||||
if (title) {
|
||||
Swimlanes.insert({
|
||||
title,
|
||||
boardId: Session.get('currentBoard'),
|
||||
sort: $('.swimlane').length,
|
||||
});
|
||||
|
||||
titleInput.value = '';
|
||||
titleInput.focus();
|
||||
}
|
||||
}
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('addListAndSwimlaneForm');
|
||||
|
||||
Template.swimlane.helpers({
|
||||
canSeeAddList() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
@import 'nib'
|
||||
|
||||
.swimlane-header-wrap
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 0 0 50px;
|
||||
|
||||
.swimlane-header
|
||||
writing-mode: sideways-lr;
|
||||
font-size: 14px;
|
||||
line-height: 50px;
|
||||
margin: 0;
|
||||
font-weight: bold;
|
||||
min-height: 9px;
|
||||
min-width: 30px;
|
||||
overflow: hidden;
|
||||
-o-text-overflow: ellipsis;
|
||||
text-overflow: ellipsis;
|
||||
word-wrap: break-word;
|
||||
text-align: center;
|
||||
@@ -1,7 +1,7 @@
|
||||
template(name="userAvatar")
|
||||
a.member.js-member(title="{{userData.profile.fullname}} ({{userData.username}})")
|
||||
if userData.getAvatarUrl
|
||||
img.avatar.avatar-image(src=userData.getAvatarUrl)
|
||||
if userData.profile.avatarUrl
|
||||
img.avatar.avatar-image(src=userData.profile.avatarUrl)
|
||||
else
|
||||
+userAvatarInitials(userId=userData._id)
|
||||
|
||||
@@ -17,7 +17,7 @@ template(name="userAvatar")
|
||||
|
||||
template(name="userAvatarInitials")
|
||||
svg.avatar.avatar-initials(viewBox="0 0 {{viewPortWidth}} 15")
|
||||
text(x="0" y="13")= initials
|
||||
text(x="50%" y="13" text-anchor="middle")= initials
|
||||
|
||||
template(name="userPopup")
|
||||
.board-member-menu
|
||||
@@ -55,7 +55,7 @@ template(name="changeAvatarPopup")
|
||||
li: a.js-select-initials
|
||||
.member
|
||||
+userAvatarInitials(userId=currentUser._id)
|
||||
| Initials
|
||||
| {{_ 'initials' }}
|
||||
if noAvatarUrl
|
||||
i.fa.fa-check
|
||||
p.sub-name {{_ 'default-avatar'}}
|
||||
@@ -71,10 +71,10 @@ template(name="cardMemberPopup")
|
||||
.info
|
||||
h3= user.profile.fullname
|
||||
p.quiet @{{ user.username }}
|
||||
if currentUser.isBoardMember
|
||||
ul.pop-over-list
|
||||
li: a.js-remove-member {{_ 'remove-member-from-card'}}
|
||||
ul.pop-over-list
|
||||
if currentUser.isNotCommentOnly
|
||||
li: a.js-remove-member {{_ 'remove-member-from-card'}}
|
||||
|
||||
if $eq currentUser._id user._id
|
||||
with currentUser
|
||||
li: a.js-edit-profile {{_ 'edit-profile'}}
|
||||
if $eq currentUser._id user._id
|
||||
with currentUser
|
||||
li: a.js-edit-profile {{_ 'edit-profile'}}
|
||||
@@ -1,5 +1,3 @@
|
||||
Meteor.subscribe('my-avatars');
|
||||
|
||||
Template.userAvatar.helpers({
|
||||
userData() {
|
||||
// We need to handle a special case for the search results provided by the
|
||||
@@ -52,12 +50,10 @@ Template.userAvatarInitials.helpers({
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'changeAvatarPopup';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.error = new ReactiveVar('');
|
||||
|
||||
Meteor.subscribe('my-avatars');
|
||||
},
|
||||
|
||||
avatarUrlOptions() {
|
||||
|
||||
Loaded 100 of 230 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user