Compare commits
1096 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d90f2855c5 | |||
| ce01983f1c | |||
| 6ee79a3110 | |||
| a32bf417a7 | |||
| 337e1a07e3 | |||
| fccfe1341a | |||
| 242569316f | |||
| 78888460fc | |||
| f49b30b20e | |||
| 0067b4e1c8 | |||
| 77cf610c8b | |||
| 5cd106640c | |||
| d057cd7665 | |||
| 520225603b | |||
| c2ecc5bf98 | |||
| 8cca320a43 | |||
| 19aaf0759b | |||
| 47a83f10cc | |||
| e1a191121d | |||
| 54f4dce09b | |||
| c0aaa206ed | |||
| 0124336558 | |||
| 5ccb56309a | |||
| 7d26be253a | |||
| 0437019bb0 | |||
| be68f2ef55 | |||
| 1bf9cee8d6 | |||
| 403a7a72fb | |||
| 81ae76cdb7 | |||
| 32e5ecda8f | |||
| de98967da5 | |||
| f39f3b3aef | |||
| 0db732b921 | |||
| ce39df6c2d | |||
| bc94b61c12 | |||
| c54c969824 | |||
| e828a914cf | |||
| 177f88b9aa | |||
| 66a6fda385 | |||
| 9ad73c7bf7 | |||
| acde24ea71 | |||
| 8bd89b4565 | |||
| 58cfbc24af | |||
| a00fcb1423 | |||
| f335c086b6 | |||
| 7bc8cd857c | |||
| d9051304c8 | |||
| 95d7c1f0c7 | |||
| c6fe0db0b6 | |||
| 3fbfd36cba | |||
| 70a3fefb3d | |||
| ddb5b13849 | |||
| 3f16a674e6 | |||
| 782faf6add | |||
| 92d15d161b | |||
| cd4b3b1054 | |||
| f58dedf553 | |||
| 8c6f0ad1da | |||
| 7485a5b349 | |||
| b0e01c2eec | |||
| d2730afe9f | |||
| 33ab7dff97 | |||
| 0da550e3eb | |||
| 4bea4afb07 | |||
| d485b728e7 | |||
| 8772504b76 | |||
| 75bea4be38 | |||
| 8787918547 | |||
| 1fcbd89d19 | |||
| f177340b13 | |||
| aaa7afac51 | |||
| fd4628d209 | |||
| f9aa59ca04 | |||
| 9f8db6be4f | |||
| cc28ad4dc5 | |||
| 3e139d42a8 | |||
| a956efaf15 | |||
| 6a54ae3781 | |||
| 95e4ef136e | |||
| c0eb65547d | |||
| 29d061c379 | |||
| 8e22d9ea62 | |||
| 8957f1ae78 | |||
| 7b4b447754 | |||
| e297a27f83 | |||
| 3f6ce2df34 | |||
| 15cc6a129b | |||
| 174c80e654 | |||
| 17f1d91851 | |||
| cdad60ca7a | |||
| 94efc26cd5 | |||
| a47a8d6c63 | |||
| 9278d61719 | |||
| ea29deaa75 | |||
| 835c437923 | |||
| a43da950e8 | |||
| 0278a92c4f | |||
| 4de7c72b1e | |||
| 51233920f9 | |||
| 36737cf6d5 | |||
| f6b9d91e3f | |||
| cbd8462333 | |||
| b98bbd1053 | |||
| 31b330451c | |||
| a8ed3e1752 | |||
| c32d1fffec | |||
| c4a92dbbc3 | |||
| 009a5ed024 | |||
| c8194a4dcc | |||
| 0313ce4099 | |||
| b835bbb34d | |||
| fdd8f8850d | |||
| 6c4f9120ff | |||
| 0bf7eada4c | |||
| 89ca510897 | |||
| 63b32ea40f | |||
| 0821802157 | |||
| ab64a13fc1 | |||
| c8eed69672 | |||
| 0c993c6f7b | |||
| 952106f437 | |||
| e616f0204b | |||
| 5e06d02812 | |||
| 502cc4f3f0 | |||
| e74de11215 | |||
| 67dd3d4334 | |||
| 532aadf179 | |||
| a209ae66c2 | |||
| 3b8c457d88 | |||
| f4b134cd28 | |||
| 8474f0945b | |||
| f9c3f96919 | |||
| 8c5c43dafa | |||
| 52b2d18a03 | |||
| ecbe2f7d72 | |||
| b287b671be | |||
| d8a622ce0f | |||
| 4f261c434d | |||
| 5f5ce968c2 | |||
| b9786036fb | |||
| e159aff3e7 | |||
| b8998d356d | |||
| 20946bcb06 | |||
| 2bdea0d828 | |||
| b2fc5340be | |||
| ba737434e5 | |||
| 788affe386 | |||
| 45c7bd361f | |||
| c9fb83cdda | |||
| 4c4540e2a2 | |||
| 4e8a751f33 | |||
| 0edde4b9b9 | |||
| a15c281aaa | |||
| 214cdaa330 | |||
| 7ab3269fbe | |||
| 44fd4fab52 | |||
| 3058c225e0 | |||
| b03a7f7bad | |||
| 6342c55547 | |||
| 37b9beb8f7 | |||
| 0402e00eac | |||
| 8c9dc83a59 | |||
| 66716ec53b | |||
| 879f9f092b | |||
| 66a2843a14 | |||
| c517adcb81 | |||
| 84efcbd36c | |||
| 6be15c269b | |||
| a94e65c279 | |||
| cef15c82c0 | |||
| bae53b8e04 | |||
| ef446085ea | |||
| cc17c48889 | |||
| 6ea1a4e6c6 | |||
| 894e4408f9 | |||
| df4a94fa6b | |||
| bb9ed8fe9c | |||
| 6bce9981ba | |||
| 7388fb3fc0 | |||
| ea759e95e4 | |||
| b1284fe4dd | |||
| 4e62b2e7dc | |||
| 6a89e7379f | |||
| 5cc8569277 | |||
| 0ecd828a5d | |||
| 162cc4178e | |||
| 0df8b97686 | |||
| 83cc15b1bb | |||
| f2101f452d | |||
| 9ed36b6944 | |||
| 827bbd7c70 | |||
| 73b21039b9 | |||
| b6275c8070 | |||
| 3b992dc06f | |||
| ad9bd7c3f3 | |||
| df525f9858 | |||
| bacd1af9a6 | |||
| 7c5654f3bc | |||
| 05c35b9a63 | |||
| 38f400b24c | |||
| 012c660fed | |||
| 9c5be63f16 | |||
| 71f5dfef9a | |||
| e30de299f0 | |||
| b8c07e02b2 | |||
| 63381d3814 | |||
| 8054e02e06 | |||
| afa48c6239 | |||
| a94a94b564 | |||
| 3e7dcac307 | |||
| 54b64cc54e | |||
| 45d4e5f24c | |||
| 56904c5aa0 | |||
| 32cd25b736 | |||
| a9a3ba36c1 | |||
| 2cecd0d6f4 | |||
| 28085d9aa7 | |||
| 9d7c98ddf0 | |||
| c34bd19159 | |||
| d9d4306ed3 | |||
| b027f1e558 | |||
| cb44d1eb2a | |||
| 4c76cea7c6 | |||
| 16b166b1cf | |||
| db9c99b8f2 | |||
| 01c782d844 | |||
| 1271571427 | |||
| 951dd742d8 | |||
| b8aa312a14 | |||
| 774c314e7b | |||
| 10b91991a9 | |||
| 3de47aa3e3 | |||
| cd64c0dd93 | |||
| 13fdd6c0d6 | |||
| 83a2261838 | |||
| c11c4ee197 | |||
| d8aa018f5a | |||
| c3c5db8a37 | |||
| 0aa6767090 | |||
| 238a1a905e | |||
| 4221f81860 | |||
| 8baaa51b8a | |||
| fc6ebbaa2e | |||
| 2c83789813 | |||
| 0c143bdb88 | |||
| 9e1ded6376 | |||
| dbc480a1a7 | |||
| cf2e28960b | |||
| 4448412843 | |||
| c5e126667d | |||
| 197a6dc413 | |||
| fbe686c526 | |||
| b20f5a471a | |||
| f76deeb416 | |||
| 93a4eccb41 | |||
| f8458ed488 | |||
| c35ecd7444 | |||
| 2edb771273 | |||
| 48a2224e3d | |||
| a05ef44ede | |||
| f6d6e263b6 | |||
| b2e0898d5b | |||
| 4af28c303b | |||
| e199019d3d | |||
| a18732b043 | |||
| 9ed3e93bf4 | |||
| 320f4cca3c | |||
| b1ae62ba2a | |||
| 5d91b44c20 | |||
| 3ec823c856 | |||
| c9bae926f1 | |||
| 7b1d31d1db | |||
| c5cac45f7e | |||
| 9a35734657 | |||
| 3144f56b80 | |||
| 6248e8ccef | |||
| 648bdeae04 | |||
| d6a8dee1b2 | |||
| 1e6d241e5c | |||
| eeac15d578 | |||
| 89986cd604 | |||
| 3c1bd99319 | |||
| 33bb8646f4 | |||
| e571be5fcf | |||
| 432e0f175f | |||
| 022e8af6a2 | |||
| b8a5a82fd2 | |||
| 8cd54eea19 | |||
| 072707772d | |||
| 0b3d2d9781 | |||
| 04af12691c | |||
| 0ea5a579a6 | |||
| b9c3543c61 | |||
| 49979c858b | |||
| def1ec4aa7 | |||
| 40441a61ae | |||
| ea3820904c | |||
| dad7d8a964 | |||
| 32f1869828 | |||
| dd9fbcb654 | |||
| a96e6e3c70 | |||
| a5effe1fd3 | |||
| 13b6ae23c2 | |||
| 79ddb5fa47 | |||
| 1454dbba4d | |||
| ee8ca7134c | |||
| 93fef37033 | |||
| 135f27cc32 | |||
| c5e1a8d37b | |||
| 27f8888a90 | |||
| 6583883e2d | |||
| 0a556670b1 | |||
| b9264d7e05 | |||
| 88c14b6aec | |||
| 2be53211b8 | |||
| dca727c120 | |||
| 361badff6b | |||
| 917288eb54 | |||
| 2ff4fee927 | |||
| b65c0c650a | |||
| 22335700ce | |||
| 7ab2816bd9 | |||
| 396d3cfbc5 | |||
| 66e4d2989a | |||
| 9ccd11b6dc | |||
| a7ec95da7c | |||
| 42043c5390 | |||
| 019f79d45f | |||
| 3a80215657 | |||
| 7d0b55243e | |||
| 097ccc9dc9 | |||
| 7227f59dab | |||
| 3a51e6ecd5 | |||
| 112e669723 | |||
| fc5a6a4c64 | |||
| 02afac5267 | |||
| 1eb392834c | |||
| 08b78a2c64 | |||
| 8f86cbe188 | |||
| 5df389dd42 | |||
| dbd0de7679 | |||
| 07a1d356de | |||
| d3359337f9 | |||
| 4b9378f923 | |||
| 117e33692b | |||
| 18e8f42dc3 | |||
| 01669f83c2 | |||
| f1c33cc626 | |||
| 87ff20aa19 | |||
| ce969b4061 | |||
| ed4ed62fb6 | |||
| 5a586c40a1 | |||
| b141d7ba7c | |||
| 0ee10e08e9 | |||
| 1093042a17 | |||
| 9566d32a89 | |||
| 3861d78975 | |||
| 571706986e | |||
| ed31ed3623 | |||
| 59af6a9068 | |||
| 1965aedc43 | |||
| ab46bd7341 | |||
| 3aace8cbdd | |||
| 6425546cd1 | |||
| 3664b8979d | |||
| 83732994bb | |||
| c65d09e268 | |||
| 2da2e10017 | |||
| 8da90bbc06 | |||
| d4adda19b3 | |||
| ae3db9cf7f | |||
| 05ff6d483b | |||
| dfc61140ec | |||
| 4918049270 | |||
| 4001f162b6 | |||
| 7a43ca2c75 | |||
| bc6470a440 | |||
| 65e21ab4c5 | |||
| 15ac74d8e9 | |||
| 40229b93f6 | |||
| 9b24f714ce | |||
| f0f6c4206a | |||
| 3b6478edbb | |||
| df7c94fe24 | |||
| 7b808d87b1 | |||
| 39e3cf9dd3 | |||
| 5598af213d | |||
| 367bd72bfb | |||
| c46713dc56 | |||
| 1594f3583c | |||
| ff7f423dcb | |||
| f3e1784577 | |||
| 9264b0f10d | |||
| 08b418d55d | |||
| 47af9088d4 | |||
| 690c437476 | |||
| be66c27452 | |||
| 785edbf5c5 | |||
| 4258327a70 | |||
| 37e00c51c3 | |||
| f7d463e734 | |||
| cae4d8ab66 | |||
| 66a1c1eecb | |||
| cc799060af | |||
| a3802ef298 | |||
| 901668236f | |||
| fef81eab0f | |||
| 21e0f4cd89 | |||
| 5411267960 | |||
| b50cd5c4d0 | |||
| 709ace5d4f | |||
| b7595a371d | |||
| a7ab4573c5 | |||
| 62c4333278 | |||
| 8a8d8f2910 | |||
| 7c72198736 | |||
| d1b2a1ee3c | |||
| 355c73185b | |||
| e1797e1e03 | |||
| 3f04546a6e | |||
| 0bd1a5baaf | |||
| 24c87c0104 | |||
| 4d05079c70 | |||
| 0382e1c61d | |||
| 0f34275d04 | |||
| 1c2f04f63f | |||
| 81bcad348e | |||
| 053615c2c4 | |||
| 113e4db9b6 | |||
| 89cf28f9a8 | |||
| 127fb45ece | |||
| a1d3df6018 | |||
| 9c3d9ccbc4 | |||
| 45a68cbfc8 | |||
| f42cb368db | |||
| 6d940cc7c4 | |||
| 2d30a1f1ea | |||
| 599e70bf8a | |||
| d012e464a1 | |||
| ae2b52cb36 | |||
| 5444bbf987 | |||
| ed7d4f4750 | |||
| fe5ffcb6bf | |||
| f61f05c1c9 | |||
| c63ac1556e | |||
| c3cd78971b | |||
| 0f24133b99 | |||
| 887aa7f7f5 | |||
| ac30ac25e9 | |||
| 445b9d6986 | |||
| 98d72a1e95 | |||
| 5ad6af0b0d | |||
| 0f93fbe7ea | |||
| 8db686b3a2 | |||
| e208e19b1c | |||
| d78bb6d93b | |||
| 229d25cb44 | |||
| 3ccf754e0d | |||
| a4060c8db7 | |||
| b474eeb29a | |||
| e640343df9 | |||
| 84d1dff0ff | |||
| 13b19c407a | |||
| fa15824dad | |||
| 474387ff43 | |||
| 45ae1b3579 | |||
| c10d0e8442 | |||
| f5cabe9708 | |||
| 00e8a56e15 | |||
| 0ea7fe04bf | |||
| 0ac55b7ba4 | |||
| 1794997ca0 | |||
| 3c7cd2812f | |||
| 2c75ebb3f7 | |||
| 8bf7c7a8ce | |||
| 5ed9e1e449 | |||
| 2b4feb908e | |||
| 572f05ed52 | |||
| dbf1c4316a | |||
| e9fb46b7b7 | |||
| 1357571104 | |||
| 0cec77154a | |||
| 6d7543f381 | |||
| 1d06c1b212 | |||
| 712777470c | |||
| 52d88771d9 | |||
| c8ac0b5922 | |||
| 78162f9a1e | |||
| 81f5dfcf2d | |||
| 7f6f606d75 | |||
| 39fd049642 | |||
| 227f26679a | |||
| 6198a2abc2 | |||
| 6e8d3ce245 | |||
| c83dfef021 | |||
| 8b7163b3d5 | |||
| bec53f0486 | |||
| 0acb576995 | |||
| 131c4b643a | |||
| c0b187e55e | |||
| f09eda85a6 | |||
| 1971c6f500 | |||
| 07c7221ca2 | |||
| d42593d203 | |||
| 90fb46fb0e | |||
| 4b3bb0c5d8 | |||
| 6533acdd60 | |||
| 2cdb5d93a2 | |||
| f20dc7282e | |||
| 4dc07ed8fc | |||
| e48d8d1114 | |||
| 36c8cb59bb | |||
| bc6ac9c7d3 | |||
| fbe1b4f0bc | |||
| 8d9b12683a | |||
| c7bcc4a844 | |||
| 07ad842911 | |||
| 874332abf1 | |||
| 5208b5d574 | |||
| fcd082cc0a | |||
| 7472e4050a | |||
| be0731f2d5 | |||
| 6a6792401e | |||
| a0c0cc0aa5 | |||
| 1eb5e18d5c | |||
| 84c620637e | |||
| 7d82c78581 | |||
| 83c2ccb5b4 | |||
| 62e4a7df5b | |||
| 16b8326fae | |||
| 57f3a0d252 | |||
| 5fac655856 | |||
| 8a92b2d803 | |||
| 1ec9a3f2ff | |||
| 345f165aef | |||
| f6d9a9f71c | |||
| 2a67038ff4 | |||
| a5ca86f573 | |||
| 501a1b23e1 | |||
| c01db7c9e1 | |||
| c0e24e39b6 | |||
| e31da3af6f | |||
| 8e5193417d | |||
| 2189d5c2c8 | |||
| 1adbfb33c9 | |||
| 842776c2fd | |||
| 719075db6c | |||
| af95ab6265 | |||
| 78e71dce97 | |||
| d177bdbaeb | |||
| f67a489130 | |||
| 23fc3b9e5b | |||
| e889d1e3d8 | |||
| 39faeb70dc | |||
| 433c480637 | |||
| 0321f6e7f4 | |||
| ec8cf06082 | |||
| f30142abe6 | |||
| 7c86d53da7 | |||
| f0988b93bd | |||
| a647f05fa4 | |||
| 8aa07efaf9 | |||
| 9cdb008a72 | |||
| 585aec5ee2 | |||
| 1c1fe946cf | |||
| 1a550f066f | |||
| 01de6d998f | |||
| cf87747924 | |||
| e5b3499077 | |||
| b6a529d65e | |||
| b30e822bde | |||
| 13688cd3d3 | |||
| 22fd48cf8d | |||
| f9c41e9407 | |||
| 1da1cff551 | |||
| 1c2c413eef | |||
| 36388bd472 | |||
| 0c304b06a0 | |||
| 538467dc99 | |||
| eba06e8ef8 | |||
| 3cf8b685ba | |||
| ed8f0e0959 | |||
| ba7f0673b4 | |||
| d2b589a644 | |||
| ca08a26e1b | |||
| 6347403ed7 | |||
| 80532ead63 | |||
| 7b8d8800fc | |||
| a20b0d4709 | |||
| 47c2beae4a | |||
| 49f45534de | |||
| fd99827390 | |||
| e802e05888 | |||
| 13f535250a | |||
| d837f1acf5 | |||
| f058ec10d3 | |||
| d3b3989e02 | |||
| 984bfcdc05 | |||
| 983fabd460 | |||
| ca7e8674e4 | |||
| 69e2c0670a | |||
| 4676243b2e | |||
| 84b50710a6 | |||
| 059002ef1c | |||
| fa9d5abf62 | |||
| 280c1d72ae | |||
| 373b8393bf | |||
| 6205c9a6b6 | |||
| d381d479da | |||
| ce9d6b93b1 | |||
| dc49747115 | |||
| 1ce3f06b46 | |||
| 5fe272405e | |||
| f2a09bc170 | |||
| a2ab8fa907 | |||
| 638ba27564 | |||
| 013d5b99f1 | |||
| 291eaa4f83 | |||
| 5bd88a32d9 | |||
| 794d86f69e | |||
| e61e6880a2 | |||
| 4b81fa715c | |||
| 330ee2a43e | |||
| 3cf1b358b3 | |||
| ff1ebb4a50 | |||
| b246fa0281 | |||
| e6176d3e01 | |||
| 06b10568e7 | |||
| 3bc214b72e | |||
| a6df8db96b | |||
| 64f77b102d | |||
| ef604ee612 | |||
| eafc020210 | |||
| 2dac9ce0f4 | |||
| 9f5143cc25 | |||
| 48737c5300 | |||
| 293e4bf62b | |||
| 4c74b620b1 | |||
| b83d9f8d76 | |||
| 5835f1ae92 | |||
| f6c40d9391 | |||
| 049e601f62 | |||
| 16ab6bfece | |||
| 325b618434 | |||
| 7892ce98d2 | |||
| 4ea6c5b191 | |||
| 87090b90c2 | |||
| 2a1e9f5010 | |||
| 05b1b16cb1 | |||
| 0176ef22d4 | |||
| 1d914458d0 | |||
| a8ecf3ea46 | |||
| 8d1842f622 | |||
| a0be3757e9 | |||
| 7b2f64c5cd | |||
| 6b1a995d5d | |||
| 814567635d | |||
| 32322a0ab2 | |||
| 95230e9e4a | |||
| e2430866e5 | |||
| 9f9f8f90c8 | |||
| 28fc33ee79 | |||
| f116b8463a | |||
| d8edbae848 | |||
| 4e0c7be2c6 | |||
| 3fc141bee1 | |||
| 2cb8c22be0 | |||
| 3e3e6ae943 | |||
| d759ccbdcc | |||
| 389da47cab | |||
| 457c1ff53e | |||
| a6a84ee784 | |||
| 52bbd49d9a | |||
| 92e1857ae8 | |||
| c0b1701744 | |||
| ee98a49366 | |||
| b4951b6cf1 | |||
| a67688e779 | |||
| 9afde0dc9d | |||
| 0f73ad42c4 | |||
| 007ac2bb8e | |||
| 4e21020600 | |||
| 8c5b0e9834 | |||
| 59e3b6b85e | |||
| a913bd5ba2 | |||
| 2d32e542cb | |||
| 5d03fbaa49 | |||
| 22011cb681 | |||
| 17a8137b4e | |||
| 015493fc08 | |||
| 992e54ac30 | |||
| 67dfb7e833 | |||
| 1e68d6877d | |||
| 2ae08f7b77 | |||
| 489321081a | |||
| 68123ed45c | |||
| 66a1528341 | |||
| 64b7f3f534 | |||
| fef936bef0 | |||
| 715dae6ab4 | |||
| e2a9fecac9 | |||
| e2d17022f9 | |||
| 29d79ad589 | |||
| 5a4294fad4 | |||
| d34b41ba94 | |||
| a6016552c9 | |||
| 50c65811a6 | |||
| f64436f0a3 | |||
| 34b1c2809b | |||
| 5d9dc804f8 | |||
| 30072500bc | |||
| 9871cb93d8 | |||
| a9ca55390d | |||
| 7230863d0a | |||
| d9046a205f | |||
| 0923a9107c | |||
| 1cbdca87df | |||
| 2e8bed4531 | |||
| 506fa22f4b | |||
| 134148c6b2 | |||
| a97e94e2e5 | |||
| 8d287672e9 | |||
| 7f33f7523f | |||
| 0ecc706bad | |||
| b6fb1783ba | |||
| 1b0418a466 | |||
| d37773cf5f | |||
| 1aea6ee4f4 | |||
| a6dd6854e4 | |||
| 70caa80af6 | |||
| 48f403882a | |||
| 6296c1c807 | |||
| 71b9bc4766 | |||
| 228f07ea25 | |||
| fd2ae59d16 | |||
| 9124de3c81 | |||
| 5e308b610d | |||
| db2220e745 | |||
| 1143843a5b | |||
| 74d26106dc | |||
| 539a81c07e | |||
| d978da2c72 | |||
| 544ed1a1fa | |||
| ff5ba04217 | |||
| 56e87d470d | |||
| 9173ca37c7 | |||
| 240b564e22 | |||
| 11ccdceb98 | |||
| 0608011d80 | |||
| 3d3da18322 | |||
| 3a999b22b0 | |||
| 1544b28b57 | |||
| e72d0555db | |||
| 7866089532 | |||
| ed2531db55 | |||
| c53221d112 | |||
| 9a95151156 | |||
| 80369a39e1 | |||
| 7471e93847 | |||
| d1faf881da | |||
| 96ffdf93ea | |||
| 6f0c4e98e0 | |||
| c2e6d24b95 | |||
| 5d93d02960 | |||
| a074d747c1 | |||
| cc7c9f6ed5 | |||
| f26adb6ac1 | |||
| 1e64b34cff | |||
| 3b6b8ad54a | |||
| cc71fda3b0 | |||
| 64c4d7a1e1 | |||
| fd367fe2d4 | |||
| 3975f3be28 | |||
| 3f590a97bc | |||
| 1896bb399d | |||
| d77c2ef9ae | |||
| db0fa60ce8 | |||
| aac9f2cb16 | |||
| 33d7c6a7f0 | |||
| a72bb87aa2 | |||
| 5e4a7bcae4 | |||
| f7d4a8284b | |||
| b900ed7a4d | |||
| 4a10338588 | |||
| 88ecd2ceaf | |||
| 04d161ad9b | |||
| 1dcf1b7938 | |||
| dab5566be4 | |||
| 143ece3be8 | |||
| d735e1cfa6 | |||
| f86ec1de52 | |||
| b780f53e0b | |||
| 96a4235a10 | |||
| 86be38af6c | |||
| 4413623618 | |||
| 7887a441b3 | |||
| 44478af3a2 | |||
| 7306a31a7d | |||
| d2a8b05772 | |||
| fba980416d | |||
| 95c840ae83 | |||
| f021c9f0cd | |||
| 58e03e903c | |||
| 9747820cb8 | |||
| d8d6aededa | |||
| a27e723657 | |||
| c7db75cea3 | |||
| 4cd5421e53 | |||
| f2d1de1cbe | |||
| 6be679c569 | |||
| 0893ddd5fe | |||
| c893391065 | |||
| b06df8ad9f | |||
| 13f7e63514 | |||
| 64da45e676 | |||
| 77e27bcc1a | |||
| 99858d86c1 | |||
| 6984efdafd | |||
| 48d80edb0a | |||
| b57743c61a | |||
| a58ca57e46 | |||
| dc6ec4eb89 | |||
| 8588f1510f | |||
| 02825cee67 | |||
| 10e90df4b8 | |||
| 99590447e5 | |||
| b5e41ff96e | |||
| 680587e75c | |||
| 9f7d6c931e | |||
| 205a72f74d | |||
| ef00aae51f | |||
| b208c8cb19 | |||
| 0e5cd135b4 | |||
| 854beb8078 | |||
| 709f938f48 | |||
| 80700cac32 | |||
| a71a8c7208 | |||
| cf80c3512c | |||
| a5d88317e6 | |||
| b2103a012c | |||
| 847b3696cb | |||
| c67bfa0ce4 | |||
| 7edd6d6d84 | |||
| ae148aba02 | |||
| 575f963902 | |||
| ae74e745db | |||
| b749a9be2e | |||
| d279fbd813 | |||
| 0d98a40536 | |||
| 5e894f9f08 | |||
| 731d4f826b | |||
| 4225b157e0 | |||
| 0eefcd23cd | |||
| ead4ce9a6f | |||
| baa2a0748e | |||
| 5b5daa92b9 | |||
| b19911b02f | |||
| a57017e80b | |||
| dfe6ad7bd4 | |||
| 2653fbbfa7 | |||
| 62e5860531 | |||
| 46af933a4e | |||
| 9de22bf5e9 | |||
| b41d413059 | |||
| cc0fac6486 | |||
| 4d1ec41a9b | |||
| 034b24369a | |||
| b5874792f1 | |||
| c7f9fd1b8b | |||
| 4b6a1f2989 | |||
| 87dc460ed0 | |||
| 508d9f71d1 | |||
| fcb2d2a385 | |||
| c9645a4f85 | |||
| a6397d2f24 | |||
| b0b2ae44f5 | |||
| 9d2eab42d8 | |||
| 12c115d6d6 | |||
| 30ed6c1b54 | |||
| bd7cefa6b6 | |||
| 240a6b1aa4 | |||
| 40e883841e | |||
| 7b5e92f83e | |||
| 9a67c165bd | |||
| 78c95c58ff | |||
| 98f74bfe33 | |||
| a9b4283e76 | |||
| 85c15a1967 | |||
| 45abf1f09d | |||
| 5153bee7c6 | |||
| cd294273cb | |||
| be17c0e232 | |||
| 41ca035299 | |||
| 110ac5b130 | |||
| 266ba1453e | |||
| ba6d6fdd8f | |||
| e5dd893774 | |||
| 85c25f0fc7 | |||
| ae130388a5 | |||
| e653214b91 | |||
| 9ca6a3a995 | |||
| 7303dbae41 | |||
| 511f5a0c45 | |||
| 9ea5c1b59b | |||
| ade56062e3 | |||
| 481a2d2606 | |||
| 3a809bb92e | |||
| cc2ab04035 | |||
| 17a57f3685 | |||
| d41ecbbd9a | |||
| b6c6fc2486 | |||
| 918c55da3e | |||
| 385c27c691 | |||
| 54d702ba9f | |||
| c816c40c19 | |||
| aad27cd8b4 | |||
| 96fb33b80b | |||
| e10a5f1f62 | |||
| f133932884 | |||
| e287e27375 | |||
| 9ae4d7ee48 | |||
| 624bb52ec4 | |||
| ba34a3738a | |||
| 18c1cce715 | |||
| 7a906fb033 | |||
| c8536ae264 | |||
| 3703791a28 | |||
| 6dff33f9d7 | |||
| 05bd7c29e9 | |||
| 8380a4bf17 | |||
| ad7b5b7c52 | |||
| 871cf1f5b4 | |||
| a2b615752b | |||
| aec89ce9fa | |||
| 02e526d717 | |||
| ebb485ffba | |||
| 80221c3ea2 | |||
| f8aebf94d2 | |||
| 97da542bd8 | |||
| 612a94fd06 | |||
| a7bcc7da0f | |||
| 3da1830f58 | |||
| 8a9c68c702 | |||
| e55419eb8b | |||
| 2f0e47dcec | |||
| 361ad9211c | |||
| 2fc9a4effe | |||
| 6a5ecfa115 | |||
| aab26bad32 | |||
| f3e657dcdb | |||
| e1ca610256 | |||
| acf2022938 | |||
| 707dbf6810 | |||
| f8dd123851 | |||
| 518f4bb70c | |||
| c8b3258819 | |||
| 186ee4d344 | |||
| 64ee6fb223 | |||
| c2662cdaae | |||
| d3ee4120c9 | |||
| 4fd11f2deb | |||
| 72dc0c7d01 | |||
| 8c38382eae | |||
| 1567a8e82f | |||
| e1ae5d21e2 | |||
| 4370738625 | |||
| acdd299573 | |||
| fae21390dd | |||
| 4f0fdd91f9 | |||
| d084cfed86 | |||
| 3db0c1ccd2 | |||
| e4f9765247 | |||
| e7d319bbf7 | |||
| cf0f459aeb | |||
| b5ce8b92e1 | |||
| 39aede4a73 | |||
| d9ea37ba62 | |||
| aad3038003 | |||
| 011d24d3bd | |||
| 9eec0ce3ef | |||
| 831d2d81fc | |||
| c6a43f755d | |||
| d30603c7d1 | |||
| aa9ba60680 | |||
| d3b7b99aae | |||
| 3a431f16e7 | |||
| e4abc5b43f | |||
| ef72c00fbb | |||
| e1c6784d41 | |||
| 3f2a307226 | |||
| deca4b2cba | |||
| a1b1396b63 | |||
| 9d9afff08d | |||
| ffab77aff2 | |||
| caa9c092ef | |||
| 8aa08dbc6b | |||
| 460dac5faf | |||
| ce5c806524 | |||
| 307f69906b | |||
| 5a86e16861 | |||
| 8c3dd2a4f6 | |||
| 8e0be738a6 | |||
| ddb7cc40ce | |||
| cdcc4ddd51 | |||
| e1d450218c | |||
| 93c8ade21a | |||
| dcc19f5b23 | |||
| 6418e79d49 | |||
| 9b4aecaf41 | |||
| 46148167e9 | |||
| a0f4eddab0 | |||
| 24bf8496f3 | |||
| 8368562ed0 | |||
| 9a8f5517b6 | |||
| bddd8e9c0c | |||
| 03dbe8eeed | |||
| 321e5b1178 | |||
| 594b818515 | |||
| 7ac19c7bec | |||
| 375ed7d2f1 | |||
| bbd4403c3e | |||
| c52079e882 | |||
| 7864e16ef3 | |||
| 4b06b633b8 | |||
| 12abd19936 | |||
| 281e7e8de1 | |||
| d325d583d4 | |||
| 63b03ae11e | |||
| ec50328f78 | |||
| 4146e9c2a1 | |||
| 76ecd6aeaa | |||
| ef22990f4b | |||
| c84ce6a615 | |||
| 9b060d1a4b | |||
| 26e737e2d7 | |||
| 67f27e0ef4 | |||
| a392bb07c0 | |||
| 58661508d4 | |||
| 5509b69908 | |||
| 51eccde659 | |||
| d0c072bee5 | |||
| 95f7eb5980 | |||
| 18314b260f | |||
| e3c159b4d6 | |||
| a48611edf4 | |||
| 5dde7ca850 | |||
| db2f7becae | |||
| 1715ae5d52 | |||
| 847fa23345 | |||
| 0495046d02 | |||
| 0474ef55e8 | |||
| 7c9653943a | |||
| 457bfc282b | |||
| 84c78538f0 | |||
| f0d17a61bd | |||
| fdbeaf6677 | |||
| 9d18b33715 | |||
| bfb2b5d819 | |||
| a6e789c859 | |||
| 0cceb03213 | |||
| 91db830ea7 | |||
| af69d64e87 | |||
| f4ec00c9f7 | |||
| 8b20b11ce2 | |||
| e597ed95a3 | |||
| bf3493bb03 | |||
| fe665d58a9 | |||
| 407073dd98 | |||
| f85b5de28d | |||
| ee5be2cf21 | |||
| 91195d0160 | |||
| 29e0526844 | |||
| 8d2818150c | |||
| 299abe5e96 | |||
| 47bcf68218 | |||
| 2b32f6e50a | |||
| bf26217c55 | |||
| 39ffc91d43 | |||
| ec8b0a2866 | |||
| b9bb3989f4 | |||
| d07af9ddf9 | |||
| da6f89d5c1 | |||
| e6520336ce | |||
| 57b6d89dd6 | |||
| 74b8b728f0 | |||
| 85243bd2b9 | |||
| 323f2c753b | |||
| e1d40bdfab | |||
| 6002791c86 | |||
| a0fed31780 | |||
| f6bc16580f | |||
| 15328f4c2c | |||
| a329c26903 | |||
| e7c6ca25a1 | |||
| c925738216 | |||
| 296cb2e540 |
@@ -1,5 +1,14 @@
|
||||
module.exports = {
|
||||
rules: {
|
||||
'no-console': 'off',
|
||||
},
|
||||
};
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:vue/vue3-recommended",
|
||||
"prettier",
|
||||
],
|
||||
rules: {
|
||||
// override/add rules settings here, such as:
|
||||
// 'vue/no-unused-vars': 'error'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
name: New feature
|
||||
about: Use this template if you want to request a feature
|
||||
title: "[FEATURE] "
|
||||
labels:
|
||||
- enhancement
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to fill out this feature request!
|
||||
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: Describe the feature.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: benefits
|
||||
attributes:
|
||||
label: Benefits
|
||||
description: Describe the benefits of this feature.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: extra
|
||||
attributes:
|
||||
label: More informations
|
||||
description: If you want to share more things, this is here!
|
||||
validations:
|
||||
required: false
|
||||
@@ -0,0 +1,69 @@
|
||||
name: New issue
|
||||
about: Use this template if you have a bug
|
||||
title: "[Bug] "
|
||||
labels:
|
||||
- bug
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to fill out this bug report!
|
||||
|
||||
- type: textarea
|
||||
id: environment
|
||||
attributes:
|
||||
label: Environment
|
||||
value: |
|
||||
* Custom menu version:
|
||||
* Nextcloud version:
|
||||
* PHP version:
|
||||
* Web server (Nginx, Apache2):
|
||||
* Web browser and version (Firefox 80, Google Chrome 74, etc):
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: configuration
|
||||
attributes:
|
||||
label: Configuration
|
||||
description: Export the configuration using the admin page and copy/paste here ([documentation](https://deblan.gitnet.page/side_menu_doc/docs/FAQ/export-config/)).
|
||||
value: |
|
||||
```
|
||||
{
|
||||
...
|
||||
}
|
||||
```
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: steps
|
||||
attributes:
|
||||
label: Steps to reproduce
|
||||
description: How reproduce the bug?
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: resuts
|
||||
attributes:
|
||||
label: Observed Results
|
||||
description: What happened?
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: Expected Results
|
||||
description: What should happen?
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: extra
|
||||
attributes:
|
||||
label: More informations
|
||||
description: If you want to share more things, this is here!
|
||||
validations:
|
||||
required: false
|
||||
@@ -0,0 +1,30 @@
|
||||
name: New question
|
||||
about: Use this template when you don't know how to do something
|
||||
title: "[Question] "
|
||||
labels:
|
||||
- question
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to fill information.
|
||||
|
||||
- type: textarea
|
||||
id: environment
|
||||
attributes:
|
||||
label: Environment
|
||||
value: |
|
||||
* Custom menu version:
|
||||
* Nextcloud version:
|
||||
* PHP version:
|
||||
* Web server (Nginx, Apache2):
|
||||
* Web browser and version (Firefox 80, Google Chrome 74, etc):
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: question
|
||||
attributes:
|
||||
label: Question
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,8 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Documentation
|
||||
url: https://deblan.gitnet.page/side_menu_doc/
|
||||
about: Official documentation web site
|
||||
- name: Ask a question in our Matrix room
|
||||
about: If you prefer a chat-like conversation or in need for quick help, this might be an alternative to opening an issue.
|
||||
url: https://matrix.to/#/#custommenu:neutralnetwork.org
|
||||
@@ -0,0 +1,5 @@
|
||||
/js
|
||||
/node_modules
|
||||
/l10n/*
|
||||
/releases
|
||||
!/l10n/.gitkeep
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"bracketSpacing": true,
|
||||
"bracketSameLine": false,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"singleAttributePerLine": true,
|
||||
"printWidth": 160
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"rules": {
|
||||
"indentation": 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
variables:
|
||||
volumes: &volumes
|
||||
- /data/${CI_REPO}:/builds
|
||||
|
||||
when:
|
||||
event: [tag, push, pull_request, manual]
|
||||
branch: [master, develop, feature/*, fix/*, bugfix/*, translations]
|
||||
|
||||
steps:
|
||||
"Build JS":
|
||||
image: node:20
|
||||
commands:
|
||||
- make build
|
||||
|
||||
"Build translations":
|
||||
image: deblan/php:8.3
|
||||
commands:
|
||||
- php bin/generate_l10n.php
|
||||
|
||||
"Build cache":
|
||||
image: gitnet.fr/deblan/woodpecker-cache
|
||||
volumes: *volumes
|
||||
@@ -0,0 +1,66 @@
|
||||
variables:
|
||||
volumes: &volumes
|
||||
- /data/${CI_REPO}:/builds
|
||||
- /var/www/html/artifacts:/var/www/html/artifacts
|
||||
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
when:
|
||||
event: [tag]
|
||||
|
||||
steps:
|
||||
"Verify tag and app version":
|
||||
image: alpine
|
||||
commands:
|
||||
- TAG=${CI_COMMIT_TAG/v//}
|
||||
- grep "<version>$TAG</version>" appinfo/info.xml
|
||||
|
||||
"Create signature":
|
||||
image: nextcloud:25
|
||||
volumes: *volumes
|
||||
environment:
|
||||
APP_CERTIFICATE:
|
||||
from_secret: app_certificate
|
||||
APP_PUBLIC_CERTIFICATE:
|
||||
from_secret: app_public_certificate
|
||||
SQLITE_DATABASE: /var/www/data/data.db
|
||||
NEXTCLOUD_ADMIN_USER: admin
|
||||
NEXTCLOUD_ADMIN_PASSWORD: admin
|
||||
commands:
|
||||
- cd "/builds/$CI_COMMIT_SHA"
|
||||
- echo "$APP_CERTIFICATE" > "/tmp/side_menu.key"
|
||||
- echo "$APP_PUBLIC_CERTIFICATE" > "/tmp/side_menu.crt"
|
||||
- mkdir /tmp/app
|
||||
- cp -r README.md CHANGELOG.md appinfo lib img l10n js src templates screenshots vendor /tmp/app
|
||||
- /usr/src/nextcloud/occ integrity:sign-app
|
||||
--privateKey=/tmp/side_menu.key
|
||||
--certificate=/tmp/side_menu.crt
|
||||
--path=/tmp/app
|
||||
- mv /tmp/app/appinfo/signature.json appinfo/
|
||||
|
||||
"Create package":
|
||||
image: deblan/php:8.3
|
||||
volumes: *volumes
|
||||
environment:
|
||||
APP_CERTIFICATE:
|
||||
from_secret: app_certificate
|
||||
commands:
|
||||
- cd "/builds/$CI_COMMIT_SHA"
|
||||
- apt-get update
|
||||
- apt-get install -y zip make
|
||||
- mkdir -p "$HOME/.nextcloud/certificates"
|
||||
- echo "$APP_CERTIFICATE" > "$HOME/.nextcloud/certificates/side_menu.key"
|
||||
- export VERSION=$(grep "<version>" appinfo/info.xml | grep -o "[0-9]*\.[0-9]*\.[0-9]*" --color=never)
|
||||
- export RELEASE_DIRECTORY="/var/www/html/artifacts/deblan/side_menu"
|
||||
- make release
|
||||
|
||||
"Push release":
|
||||
image: plugins/gitea-release
|
||||
volumes: *volumes
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitnet_api_key
|
||||
base_url: https://gitnet.fr
|
||||
# note: ${CI_COMMIT_MESSAGE}
|
||||
files: /var/www/html/artifacts/deblan/side_menu/${CI_COMMIT_TAG/v//}/*
|
||||
@@ -0,0 +1,17 @@
|
||||
variables:
|
||||
volumes: &volumes
|
||||
- /data/${CI_REPO}:/builds
|
||||
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
skip_clone: true
|
||||
|
||||
steps:
|
||||
"Check dependencies":
|
||||
image: gitnet.fr/deblan/osv-detector:v0.10
|
||||
volumes: *volumes
|
||||
commands:
|
||||
- cd "/builds/$CI_COMMIT_SHA"
|
||||
- osv-detector package-lock.json
|
||||
failure: ignore
|
||||
@@ -0,0 +1,681 @@
|
||||
## [Unreleased]
|
||||
|
||||
## 5.3.0
|
||||
### Added
|
||||
* fix #489: allow PHP 8.5 compatibility
|
||||
|
||||
## 5.2.2
|
||||
### Fixed
|
||||
* fix #464: add Intl.Segmenter polyfill
|
||||
### Added
|
||||
* add new translations
|
||||
|
||||
## 5.2.1
|
||||
### Added
|
||||
* chore: set side_menu as package name
|
||||
### Fixed
|
||||
* fix(LangRepository): check orm capabilities to query entities
|
||||
* fix(admin/\*SaveButton): cast settings to string
|
||||
|
||||
## 5.2.0
|
||||
### Added
|
||||
* add compatibility with NC33
|
||||
### Fixed
|
||||
* fix #468: force nextcloud logo display css rule (opener-only)
|
||||
|
||||
## 5.1.3
|
||||
### Fixed
|
||||
* fix #445: fix build by adding package-lock.json
|
||||
|
||||
## 5.1.2
|
||||
### Added
|
||||
* add new translations
|
||||
### Fixed
|
||||
* fix #441: Side bar not working with Nextcloud 32 (thanks to AndyXheli)
|
||||
|
||||
## 5.1.1
|
||||
### Fixed
|
||||
* fix(build): define appName to fix this error: "The `@nextcloud/vue` library was used without setting / replacing the `appName`"
|
||||
* fix #349: add custom controller to retrieve core apps
|
||||
|
||||
## 5.1.0
|
||||
### Added
|
||||
* fix #425: allow to set a color using hex code
|
||||
### Fixed
|
||||
* #422: usage of `OC\AppFramework\Http\Request` instead of `$_SERVER`
|
||||
|
||||
## 5.0.3
|
||||
### Fixed
|
||||
* fix #422: undefined array key "HTTP_USER_AGENT"
|
||||
|
||||
## 5.0.2
|
||||
### Fixed
|
||||
* fix #413: add user-agent check for memories mobile app
|
||||
* fix #418: allow non admin user to access their settings
|
||||
|
||||
## 5.0.1
|
||||
### Fixed
|
||||
* fix(StandardMenu): appLimit must return a value > 0
|
||||
|
||||
## 5.0.0
|
||||
### Fixed
|
||||
* fix apps's order in the standard menu
|
||||
### Added
|
||||
* add new translations
|
||||
* add route `/apps/side_menu/user/config`
|
||||
* add new UI for admin and personals settings
|
||||
### Changed
|
||||
* migrate to Vue 3 and so add/update or remove dependencies
|
||||
* replace CSS with SCSS
|
||||
* remove route `/apps/side_menu/js/script`
|
||||
* remove generated Javascript using PHP
|
||||
* rewrite the standard menu of Nextcloud
|
||||
### Security
|
||||
* fix CVE-2023-44270
|
||||
* fix CVE-2024-9506
|
||||
* fix CVE-2024-6783
|
||||
|
||||
## 4.1.1
|
||||
### Fixed
|
||||
* fix(CssController): add missing NoCSRFRequired import (#397)
|
||||
* fix(SideMenu): ncApps must be an array (#369)
|
||||
|
||||
## 4.1.0
|
||||
### Added
|
||||
* add compatibility with NC31
|
||||
### Fixed
|
||||
* fix(service): add service constructor arguments
|
||||
* fix(settings): remove non-existing and unused ILogger service
|
||||
### Changed
|
||||
* refactor(controller): usage of attributes instead of annotations
|
||||
|
||||
## 4.0.1
|
||||
### Fixed
|
||||
* fix top menu labels (fix #368)
|
||||
* fix #369: The menu is displayed even if there are no apps
|
||||
|
||||
## 4.0.0
|
||||
### Added
|
||||
* add compatibility with NC30
|
||||
|
||||
## 3.13.1
|
||||
### Fixed
|
||||
* fix #354: remove the opener when the menu is always displayed
|
||||
* fix extra margin between the logo and the opener
|
||||
|
||||
## 3.13.0
|
||||
### Added
|
||||
* show apps generated with Tables (fix #349)
|
||||
* add constructor property promotion
|
||||
### Fixed
|
||||
* remove .app-navigation--close translationX for always-displayed menu (fix #348)
|
||||
|
||||
## 3.12.0
|
||||
### Added
|
||||
* add compatibility with NC29
|
||||
|
||||
## 3.11.8
|
||||
### Fixed
|
||||
* move the logo inside #nextcloud element (fix #278 #239) [NC26]
|
||||
|
||||
## 3.11.7
|
||||
### Added
|
||||
* update translations
|
||||
* update ci steps names
|
||||
* fully apply Nextcloud AppMenu.vue updates
|
||||
### Fixed
|
||||
* add accessibility to open and close buttons (#311)
|
||||
* add missing label on the 'save' button in personal settings (fix #318)
|
||||
### Changed
|
||||
* upgrade axios
|
||||
* upgrade css-loader
|
||||
|
||||
## 3.11.6
|
||||
### Fixed
|
||||
* add --background-invert-if-bright in top menu (fix #326)
|
||||
|
||||
## 3.11.5
|
||||
### Fixed
|
||||
* add missing label on buttons for accessiblity (fix #311)
|
||||
|
||||
## 3.11.4
|
||||
### Fixed
|
||||
* add label on buttons for accessiblity (fix #311)
|
||||
|
||||
## 3.11.3
|
||||
### Fixed
|
||||
* fix menu icon in decks, collectives and other apps (#302)
|
||||
|
||||
## 3.11.2
|
||||
### Fixed
|
||||
* add default translations for Slovak - fix #298
|
||||
|
||||
## 3.11.1
|
||||
### Added
|
||||
* add Portuguese (Brazil) translations - Thanks to igorfreire
|
||||
### Fixed
|
||||
* add width to .side-menu-categories for side menu with categories display - fix #294
|
||||
|
||||
## 3.11.0
|
||||
### Added
|
||||
* add a search component in menus - fix #282
|
||||
### Fixed
|
||||
* remove the label of the link to personal settings - fix #283
|
||||
|
||||
## 3.10.3
|
||||
### Fixed
|
||||
* change the way to load nextcloud components (NcActionLink/NcActions) - fix #274
|
||||
* update @nexcloud/* packages
|
||||
|
||||
## 3.10.2
|
||||
### Fixed
|
||||
* add missing properties
|
||||
|
||||
## 3.10.1
|
||||
### Fixed
|
||||
* fix #269: use php7 syntax
|
||||
|
||||
## 3.10.0
|
||||
### Added
|
||||
* add compatibility with NC28
|
||||
### Fixed
|
||||
* fix NC28 error: remove deprecated method `OC_App::getNavigation()`
|
||||
|
||||
## 3.9.1
|
||||
### Fixed
|
||||
* fix fixed menu on dashboard (#262)
|
||||
|
||||
## 3.9.0
|
||||
### Added
|
||||
* add compatibility with NC27
|
||||
### Fixed
|
||||
* fix app redirect (#261)
|
||||
|
||||
## 3.8.0
|
||||
### Added
|
||||
* add option to show hovered label only on top menu (fix #253)
|
||||
|
||||
## 3.7.4
|
||||
### Fixed
|
||||
* fix Integrity failed (#247)
|
||||
|
||||
## 3.7.3
|
||||
### Fixed
|
||||
* fix #244: use app href for redirection
|
||||
### Added
|
||||
* add signature on build
|
||||
|
||||
## 3.7.2
|
||||
### Added
|
||||
* update pipeline conditions allowing `fix/*`
|
||||
### Fixed
|
||||
* fix #233: load configuration and then retrieve apps in default side menu display
|
||||
|
||||
## 3.7.1
|
||||
### Fixed
|
||||
* fix build process (#230)
|
||||
|
||||
## 3.7.0
|
||||
### Added
|
||||
* add translations (thanks to AHOHNMYC)
|
||||
* add compatibility with NC26
|
||||
|
||||
## 3.6.0
|
||||
### Added
|
||||
* add hidden apps compatible with default menu (#219)
|
||||
|
||||
## 3.5.2
|
||||
### Fixed
|
||||
* add check if menu exists before adding event listeners (#210)
|
||||
|
||||
## 3.5.1
|
||||
### Added
|
||||
* add translations (thanks to p-bo and gallegonovato)
|
||||
### Fixed
|
||||
* fix #189: sorting not applied on mobile
|
||||
|
||||
## 3.5.0
|
||||
### Added
|
||||
* add dependency check (ci)
|
||||
* add code quality check (ci)
|
||||
* add translations (thanks to gallegonovato)
|
||||
* add option to disable the display labels in the top menu (#194)
|
||||
### Fixed
|
||||
* fix missing img alt (settings image)
|
||||
* fix code quality alerts
|
||||
|
||||
## 3.4.1
|
||||
### Added
|
||||
* add translations (thanks to zonorti, jorisvandijk, jak2k)
|
||||
### Fixed
|
||||
* fix #183: hide custom categories list when empty (admin page)
|
||||
|
||||
## 3.4.0
|
||||
### Added
|
||||
* add translations (thanks to Pavelb, nier, Timur, p-bo)
|
||||
* add possibility to define Custom Menu as default app and redirect to the first top menu app (#177)
|
||||
|
||||
## 3.3.2
|
||||
### Fixed
|
||||
* fix #173: reduce the height of categories list
|
||||
|
||||
## 3.3.1
|
||||
### Fixed
|
||||
* fix #162: top and side apps does work correctly
|
||||
|
||||
## 3.3.0
|
||||
### Added
|
||||
* add documentation in admin page
|
||||
* add app sorter in user config side (#160)
|
||||
### Fixed
|
||||
* fix #164: open apps in new tab does not work
|
||||
* fix #162 #159: top and side apps does work correctly
|
||||
|
||||
## 3.2.1
|
||||
### Fixed
|
||||
* fix #150: active app is not visible has active in menu (except in default menu)
|
||||
* fix #151: opener position
|
||||
|
||||
## 3.2.0
|
||||
### Added
|
||||
* use custom app names using 'app.navigation.name' (#148)
|
||||
* app sorting with all displays (#147)
|
||||
|
||||
## 3.1.0
|
||||
### Added
|
||||
* add global custom app sorting for the top menu
|
||||
### Fixed
|
||||
* fix admin list/modal look
|
||||
|
||||
## 3.0.1
|
||||
### Fixed
|
||||
* Remove the gap between the window's top and menu categories (large menu)
|
||||
|
||||
## 3.0.0
|
||||
### Added
|
||||
* Add compatibility with NC25 (#136/#135)
|
||||
### Removed
|
||||
* Nextcloud 20-24 are not supported anymore
|
||||
* AppOrder is not supported anymore
|
||||
|
||||
## 2.5.1
|
||||
### Fixed
|
||||
* fix icon render (#133)
|
||||
|
||||
## 2.5.0
|
||||
### Changed
|
||||
* upgrade dependencies
|
||||
### Fixed
|
||||
* remove duplicated code
|
||||
* remove unused variables and packages
|
||||
* replace repeated strings with variables
|
||||
* add html attributes
|
||||
* replace var with let
|
||||
* replace v-html with v-text to prevent xss
|
||||
|
||||
## 2.4.3
|
||||
### Fixed
|
||||
* fix translations
|
||||
|
||||
## 2.4.2
|
||||
### Fixed
|
||||
* fix typo
|
||||
### Changed
|
||||
* change ci/cd
|
||||
|
||||
## 2.4.1
|
||||
### Fixed
|
||||
* fix user setting save
|
||||
|
||||
## 2.4.0
|
||||
### Added
|
||||
* remove focus on opener after click
|
||||
* add button to set default colors
|
||||
* add menu hover effect
|
||||
* add translations
|
||||
### Fixed
|
||||
* fix deprecated app.php file
|
||||
* fix menu with categories header
|
||||
* fix minor issues
|
||||
### Changed
|
||||
* change saving progression
|
||||
### Removed
|
||||
* Nextcloud 19 is not supported anymore
|
||||
* PHP 7.3 is not supported anymore
|
||||
|
||||
## 2.3.5
|
||||
### Fixed
|
||||
* fix white square (#99)
|
||||
|
||||
## 2.3.4
|
||||
### Fixed
|
||||
* fix blank line when settings are open (#96)
|
||||
|
||||
## 2.3.3
|
||||
### Added
|
||||
* hide the scrollbar when mouse is out (menu always displayed)
|
||||
### Fixed
|
||||
* fix SQL Exception InvalidFieldNameException (#93)
|
||||
|
||||
## 2.3.2
|
||||
### Fixed
|
||||
* fix hidden menu
|
||||
|
||||
## 2.3.1
|
||||
### Fixed
|
||||
* fix #88: does not work with default menu
|
||||
|
||||
## 2.3.0
|
||||
### Added
|
||||
* fix #82: add an option to keep visible an app in both menus
|
||||
* fix #83: add custom categories
|
||||
* add auto-reload when settings are saved
|
||||
|
||||
## 2.2.0
|
||||
### Added
|
||||
* fix #84: update icons
|
||||
* fix #85: use Nextcloud colors by default
|
||||
|
||||
### Fixed
|
||||
* fix categories order in large menu
|
||||
|
||||
## 2.1.0
|
||||
### Added
|
||||
* add compatibility with Nextcloud 23
|
||||
|
||||
## 2.0.1
|
||||
### Fixed
|
||||
* fix #78: Top menu is broken - invisible apps are shown
|
||||
* fix #77: Update personal settings - HTTP error 412 (Precondition Failed)
|
||||
* fix js error on the personal settings page (undefined sortable)
|
||||
|
||||
## 2.0.0
|
||||
### Fixed
|
||||
* fix #66: removing usage of setInterval
|
||||
* fix #73: icon background
|
||||
### Changed
|
||||
* fix #67: replace jQuery with Vanilla JS
|
||||
### Removed
|
||||
* Nextcloud 18 is not supported anymore
|
||||
|
||||
## 1.28.0
|
||||
### Added
|
||||
* fix #63: add a new side menu with categories
|
||||
|
||||
## 1.27.2
|
||||
### Fixed
|
||||
* fix #62: hide app notification icon
|
||||
|
||||
## 1.27.1
|
||||
### Fixed
|
||||
* fix German translation render
|
||||
|
||||
## 1.27.0
|
||||
### Added
|
||||
* hide personal settings access when settings are forced by the administrator
|
||||
### Fixed
|
||||
* improve German translations
|
||||
|
||||
## 1.26.0
|
||||
### Added
|
||||
* add Czech translation
|
||||
|
||||
## 1.25.2
|
||||
### Fixed
|
||||
* fix CHANGELOG
|
||||
|
||||
## 1.25.1
|
||||
### Added
|
||||
* add PHP version as dependency
|
||||
* add chinese translation
|
||||
### Fixed
|
||||
* fix CHANGELOG
|
||||
|
||||
## 1.25.0
|
||||
### Added
|
||||
* add compatibility with Nextcloud 22
|
||||
* add CHANGELOG.md (fix #59)
|
||||
* update app icon
|
||||
|
||||
## 1.24.0
|
||||
### Added
|
||||
* add option to define the background opacity (fix #53)
|
||||
* add missing translations
|
||||
|
||||
## 1.23.1
|
||||
### Fixed
|
||||
* fix but wih dark mode opener option
|
||||
|
||||
## 1.23.0
|
||||
### Added
|
||||
* add support of dark Theme and Breeze Dark
|
||||
* add support of Nextcloud 21
|
||||
|
||||
## 1.22.2
|
||||
### Fixed
|
||||
* fix regression: apps does not open in new tab (fix #55)
|
||||
|
||||
## 1.22.1
|
||||
### Fixed
|
||||
* fix regression: apps does not open in new tab
|
||||
|
||||
## 1.22.0
|
||||
### Added
|
||||
* Add option to sort categories (fix #53)
|
||||
* Update admin UI
|
||||
|
||||
## 1.21.0
|
||||
### Added
|
||||
* [FEATURE] Logo in the menu links to main page of installation (#51)
|
||||
|
||||
## 1.20.1
|
||||
### Fixed
|
||||
* Fix translations
|
||||
|
||||
## 1.20.0
|
||||
### Added
|
||||
* [FEATURE] Ability to remove apps from the Big Menu (#49)
|
||||
|
||||
## 1.19.1
|
||||
### Fixed
|
||||
* fix #47: setting for list/grid view in files app flashes and dissapears
|
||||
|
||||
## 1.19.0
|
||||
### Added
|
||||
* add option: the menu is enabled by default for users (fix #46)
|
||||
|
||||
## 1.18.0
|
||||
### Added
|
||||
* add option to show link to settings (fix #44)
|
||||
* refactor menus using several components
|
||||
|
||||
## 1.17.0
|
||||
### Added
|
||||
* compliance with the app checker
|
||||
* add an action to export the configuration
|
||||
* add an action to purge the cache
|
||||
|
||||
## 1.16.3
|
||||
### Fixed
|
||||
* fix links that must be opened in new window (https://help.nextcloud.com/t/external-petit-probleme-concernant-lapplication-external-sites-ou-sites-externes/94884/11)
|
||||
|
||||
## 1.16.2
|
||||
### Fixed
|
||||
* fix issue with personal settings when global settings are forced
|
||||
|
||||
## 1.16.1
|
||||
### Fixed
|
||||
* fix #42: add cache to manage failures to access apps.nextcloud.com
|
||||
* fix #41: side menu was hover apps list
|
||||
|
||||
## 1.16.0
|
||||
### Added
|
||||
* add an option to force settings to users (fix #38)
|
||||
|
||||
## 1.15.0
|
||||
### Changed
|
||||
* New name
|
||||
### Fixed
|
||||
* Fix #36: always displayed is not expanding
|
||||
|
||||
## 1.14.0
|
||||
### Added
|
||||
* add an api accessed by components
|
||||
* add a config proxy in controllers
|
||||
### Fixed
|
||||
* fix translations
|
||||
|
||||
## 1.13.0
|
||||
### Added
|
||||
* add an option to display the avatar instead of the logo (fix #34)
|
||||
|
||||
## 1.12.3
|
||||
### Added
|
||||
* add a delay before moving elements (fix #33)
|
||||
|
||||
## 1.12.2
|
||||
### Fixed
|
||||
* fix #30: `Always displayed` menu can not be close using touchscreens
|
||||
|
||||
## 1.12.1
|
||||
### Fixed
|
||||
* fix typo
|
||||
* fix translations
|
||||
|
||||
## 1.12.0
|
||||
### Fixed
|
||||
* fix #30: administrators and users can select what apps must be opened in new tab
|
||||
* fix typo
|
||||
|
||||
## 1.11.0
|
||||
### Added
|
||||
* add the option for opening apps in new tab (fix #29)
|
||||
### Fixed
|
||||
* fix issue with the header of the always displayed menu
|
||||
|
||||
## 1.10.0
|
||||
### Added
|
||||
* add images to select the display of the menu
|
||||
* add live preview
|
||||
* update translations
|
||||
* update app info
|
||||
|
||||
## 1.9.3
|
||||
### Fixed
|
||||
* fix regression with logo display
|
||||
|
||||
## 1.9.2
|
||||
### Added
|
||||
* add the option “always displayed” which fixes the position of the menu to the left and always displays the application icons (fix #21, fix #2)
|
||||
|
||||
## 1.8.6
|
||||
### Added
|
||||
* add translations: `fr` and `de`
|
||||
* improve and publish the `Makefile`
|
||||
* update documentation
|
||||
|
||||
## 1.8.5
|
||||
### Fixed
|
||||
* fix #28: menu items invisible after 1.8.4
|
||||
|
||||
## 1.8.4
|
||||
### Fixed
|
||||
* fix #27: disable side menu on public pages - broken in 1.8.3
|
||||
|
||||
## 1.8.3
|
||||
### Fixed
|
||||
* fix alphabetic order of apps (#26)
|
||||
|
||||
## 1.8.2
|
||||
### Added
|
||||
* add icon for closing the big menu (fix #25)
|
||||
### Fixed
|
||||
* fix hidden icons in the top menu (fix #23)
|
||||
* fix missing apps (fix #24)
|
||||
|
||||
## 1.8.1
|
||||
### Fixed
|
||||
* fix issue with links
|
||||
* fix missing l10n files
|
||||
|
||||
## 1.8.0
|
||||
### Added
|
||||
* add a `big menu` display (fix #22)
|
||||
* add the possibility to choose what apps are displayed in the top menu (fix #22)
|
||||
* add icon color filter
|
||||
* add icon opacity filter
|
||||
|
||||
## 1.8.0-rc2
|
||||
|
||||
## 1.7.0
|
||||
### Added
|
||||
* add a loader when the page is unloading
|
||||
* add compatibility with Nextcloud 19
|
||||
|
||||
## 1.6.3
|
||||
### Fixed
|
||||
* fix #20: add a shortcut to open and to hide the menu
|
||||
|
||||
## 1.6.2
|
||||
### Fixed
|
||||
* fix #19: add a cache to limit flashes
|
||||
|
||||
## 1.6.1
|
||||
### Fixed
|
||||
* fix #19: add a hack to show external sites in the top menu with navigation
|
||||
|
||||
## 1.6.0
|
||||
### Added
|
||||
* Add a page of personal settings
|
||||
* Add an option to disable the side menu as user
|
||||
* Refactoring of javascripts
|
||||
|
||||
## 1.5.0
|
||||
### Added
|
||||
* add option to force light icons instead of dark icons
|
||||
### Fixed
|
||||
* fix #19: add option to keep external sites in the top menu
|
||||
* fix #16 #17: add dark icons and handle the svg filters
|
||||
|
||||
## 1.4.1
|
||||
### Added
|
||||
* Rendering harmonization with browsers
|
||||
### Fixed
|
||||
* FIX #15: make menu start after icon
|
||||
|
||||
## 1.4.0
|
||||
### Fixed
|
||||
* Fix #12: add an option to hide the opener and the panel when there is no application
|
||||
|
||||
## 1.3.4
|
||||
### Fixed
|
||||
* FIX #14: add option to show only the opener
|
||||
* FIX #13: add alternate hamburger icon
|
||||
* FIX #11: remove error in the console
|
||||
|
||||
## 1.3.3
|
||||
### Added
|
||||
* Add a second background color to create a background gradiant
|
||||
* Update documentation
|
||||
### Fixed
|
||||
* FIX #10: add options to select the size of the icons and the text, or hide them
|
||||
|
||||
## 1.3.2
|
||||
### Fixed
|
||||
* FIX #9: opener icon not visible with multiple apps_paths
|
||||
|
||||
## 1.3.1
|
||||
### Fixed
|
||||
* FIX #3: Add an opition the choose the position of the opener (after or before the logo)
|
||||
* FIX #8: Remove extension of dynamic asset's routes (js, css)
|
||||
|
||||
## 1.3.0
|
||||
### Added
|
||||
* `main.js` is replaced by a controller and a template
|
||||
### Fixed
|
||||
* FIX #2: add option to open the menu by hovering over opener
|
||||
|
||||
## 1.2.4
|
||||
### Fixed
|
||||
* FIX #7: Opener icon not visible in Safari
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# Contributor Code of Conduct
|
||||
|
||||
This project adheres to No Code of Conduct. We are all adults. We accept anyone's contributions. Nothing else matters.
|
||||
|
||||
For more information please visit the [No Code of Conduct](https://github.com/domgetter/NCoC) homepage.
|
||||
@@ -0,0 +1,661 @@
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
@@ -0,0 +1,36 @@
|
||||
build: dep
|
||||
npm run build
|
||||
|
||||
watch: dep
|
||||
npm run watch
|
||||
|
||||
dep:
|
||||
npm i
|
||||
|
||||
.ONESHELL:
|
||||
release:
|
||||
if [ -z "$$VERSION" ]; then
|
||||
echo "VERSION required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$$RELEASE_DIRECTORY" ]; then
|
||||
RELEASE_DIRECTORY=releases
|
||||
fi
|
||||
|
||||
test -d $$RELEASE_DIRECTORY/$$VERSION && rm -fr $$RELEASE_DIRECTORY/$$VERSION
|
||||
mkdir -p $$RELEASE_DIRECTORY/$$VERSION/side_menu
|
||||
cp -r README.md CHANGELOG.md appinfo lib img l10n js src templates screenshots vendor $$RELEASE_DIRECTORY/$$VERSION/side_menu
|
||||
cd $$RELEASE_DIRECTORY/$$VERSION
|
||||
zip -r side_menu_v$$VERSION.zip side_menu
|
||||
tar cvzf side_menu_v$$VERSION.tar.gz side_menu
|
||||
rm -fr side_menu
|
||||
openssl dgst -sha512 -sign $$HOME/.nextcloud/certificates/side_menu.key side_menu_v$$VERSION.tar.gz | openssl base64 > side_menu_v$$VERSION.sig
|
||||
|
||||
translations:
|
||||
php bin/generate_l10n.php
|
||||
|
||||
.ONESHELL:
|
||||
run-code-quality-analysis:
|
||||
export SONAR_TOKEN="$$SONAR_TOKEN_DEBLAN_SIDE_MENU"
|
||||
sonar-scanner -Dsonar.projectKey=deblan-side_menu -Dsonar.sources=. -Dsonar.host.url=$$SONAR_SERVER -Dsonar.branch.name=$$(git branch --show-current)
|
||||
@@ -0,0 +1,92 @@
|
||||
🤙 Nextcloud app / Custom menu 🎨
|
||||
===============================
|
||||
|
||||
[](https://ci.gitnet.fr/deblan/side_menu)
|
||||
[](https://translate.codeberg.org/engage/custom-menu/)
|
||||

|
||||
|
||||
Allows you to modify the position of the main menu by creating a panel on the left of the interface or with a big menu on the top.
|
||||
You can also add and sort custom categories, define apps that must be displayed in the top menu, etc. Fully customisable.
|
||||
|
||||
This application is rather suitable for instances that activate a lot of applications.
|
||||
|
||||
You can customize colors depending of the theme (Dark theme and Breeze Dark).
|
||||
|
||||
* [Installation and upgrade](#installation-and-upgrade)
|
||||
* [How to contribute?](#how-to-contribute)
|
||||
* [Support](#support)
|
||||
* [Screenshots](https://gitnet.fr/deblan/side_menu/src/branch/master/screenshots/)
|
||||
|
||||
You like this app and you want to support me? ☕ [Buy me a coffee](https://www.buymeacoffee.com/deblan) or [Donate with liberapay](https://liberapay.com/deblan)
|
||||
|
||||
## [📘 Read the documentation](https://deblan.gitnet.page/side_menu_doc/)
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
* PHP >= 8.1
|
||||
|
||||
Installation and upgrade
|
||||
------------------------
|
||||
|
||||
Custom menu is available from the app store.
|
||||
|
||||
```
|
||||
$ cd /path/to/nextcloud
|
||||
$ php occ app:install side_menu
|
||||
```
|
||||
|
||||
If you want to install it from source, go to https://gitnet.fr/deblan/side_menu/releases and copy the link to the last release (side_menu_vX.Y.Z.tar.gz). Then:
|
||||
|
||||
```
|
||||
$ cd /path/to/nextcloud/apps
|
||||
$ VERSION=x.y.z; curl -sS "https://gitnet.fr/deblan/side_menu/releases/download/${VERSION}/side_menu_v${VERSION}.tar.gz" | tar xvfz -
|
||||
```
|
||||
|
||||
Administrators can edit many settings using the administration page.
|
||||
|
||||
Users can disable the menu using the page of personal settings.
|
||||
|
||||
Use the shortcut `Ctrl`+`o` to open and to hide the side menu. Use `tab` to navigate.
|
||||
|
||||
### Use first top menu app as default app
|
||||
|
||||
You can easily let Custom Menu redirect to the first app in the top menu by changing the following parameter in your `config/config.php`:
|
||||
|
||||
```
|
||||
'defaultapp' => 'side_menu',
|
||||
```
|
||||
|
||||
If the top menu is empty then it redirects to files.
|
||||
|
||||
How to contribute?
|
||||
------------------
|
||||
|
||||
You can report a bug or request a feature by opening an issue: https://gitnet.fr/deblan/side_menu/issues
|
||||
|
||||
### You are a translator
|
||||
|
||||
Translations are managed from [translate.codeberg.org](https://translate.codeberg.org/projects/custom-menu/application/).
|
||||
|
||||
### You are a developer
|
||||
|
||||
* fork the repository
|
||||
* install an instance of Nextcloud
|
||||
* go to `apps/` and clone your repository
|
||||
* go to `apps/side_menu` and run `make dep`
|
||||
|
||||
Build javascripts using `make build` (or `make watch` to build them in real time).
|
||||
|
||||
Then commit and create a pull request.
|
||||
|
||||
Support
|
||||
-------
|
||||
|
||||
You can join the official room on Matrix: [#custommenu:neutralnetwork.org](https://matrix.to/#/#custommenu:neutralnetwork.org).
|
||||
|
||||
|
||||
Notice
|
||||
------
|
||||
|
||||
Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**.
|
||||
In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/).
|
||||
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\SideMenu\Appinfo;
|
||||
|
||||
use OC\Security\CSP\ContentSecurityPolicy;
|
||||
use OCP\Util;
|
||||
|
||||
$config = \OC::$server->getConfig();
|
||||
$cspnm = \OC::$server->getContentSecurityPolicyNonceManager();
|
||||
|
||||
Util::addScript('side_menu', 'main');
|
||||
Util::addScript('side_menu', 'sideMenu');
|
||||
Util::addStyle('side_menu', 'sideMenu');
|
||||
|
||||
|
||||
// whitelist the URL to allow loading JS from this external domain
|
||||
// $CSPManager = \OC::$server->getContentSecurityPolicyManager();
|
||||
// $policy = new ContentSecurityPolicy();
|
||||
// $policy->addAllowedScriptDomain($url);
|
||||
// $policy->addAllowedImageDomain($url);
|
||||
// $policy->addAllowedConnectDomain($url);
|
||||
// $CSPManager->addDefaultPolicy($policy);
|
||||
@@ -1,20 +1,64 @@
|
||||
<?xml version="1.0"?>
|
||||
<info>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||
<id>side_menu</id>
|
||||
<name>Side menu</name>
|
||||
<summary>Move the top menu to the left side.</summary>
|
||||
<description>Move the top menu to the left side.</description>
|
||||
<name>Custom menu</name>
|
||||
<summary>Modify the display of the menu.</summary>
|
||||
<description><
|
||||
* [Donate with liberapay](https://liberapay.com/deblan)
|
||||
* [Leave a comment](https://apps.nextcloud.com/apps/side_menu#comments)
|
||||
|
||||
Notice
|
||||
------
|
||||
|
||||
Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**.
|
||||
In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/).
|
||||
]]></description>
|
||||
<version>5.3.0</version>
|
||||
<licence>agpl</licence>
|
||||
<author mail="dev+sidemenu@deblan.fr" homepage="https://www.deblan.io/">Simon Vieille</author>
|
||||
<version>1.0.1</version>
|
||||
<author mail="contact@deblan.fr" homepage="https://www.deblan.fr/">Simon Vieille</author>
|
||||
<namespace>SideMenu</namespace>
|
||||
<documentation>
|
||||
<admin>https://deblan.gitnet.page/side_menu_doc/</admin>
|
||||
<developer>https://gitnet.fr/deblan/side_menu/src/branch/master/README.md</developer>
|
||||
</documentation>
|
||||
<category>customization</category>
|
||||
<website>https://gitnet.fr/deblan/side_menu</website>
|
||||
<discussion><![CDATA[https://matrix.to/#/!TFPucDATKODpHNVAtu:neutralnetwork.org?via=neutralnetwork.org]]></discussion>
|
||||
<bugs>https://gitnet.fr/deblan/side_menu/issues</bugs>
|
||||
<repository type="git">https://gitnet.fr/deblan/side_menu</repository>
|
||||
<screenshot>https://upload.deblan.org/u/2020-03/5e7f8a21.png</screenshot>
|
||||
<screenshot>https://upload.deblan.org/u/2020-03/5e7f8a31.png</screenshot>
|
||||
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc19_default_menu.png]]></screenshot>
|
||||
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/admin_settings.png]]></screenshot>
|
||||
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/n19_big_menu.png]]></screenshot>
|
||||
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc18_menu_always_displayed.png]]></screenshot>
|
||||
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc20_big_menu_responsive.png]]></screenshot>
|
||||
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/personal_settings.png]]></screenshot>
|
||||
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc25_big_menu.png]]></screenshot>
|
||||
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc25_default_menu.png]]></screenshot>
|
||||
<dependencies>
|
||||
<nextcloud min-version="18" max-version="18"/>
|
||||
<php min-version="8.1" max-version="8.5" />
|
||||
<nextcloud min-version="31" max-version="33"/>
|
||||
</dependencies>
|
||||
<settings>
|
||||
<admin>OCA\SideMenu\Settings\Admin</admin>
|
||||
<admin-section>OCA\SideMenu\Settings\AdminSection</admin-section>
|
||||
<personal>OCA\SideMenu\Settings\Personal</personal>
|
||||
<personal-section>OCA\SideMenu\Settings\PersonalSection</personal-section>
|
||||
</settings>
|
||||
</info>
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'routes' => [
|
||||
[
|
||||
'name' => 'Javascript#sideMenu',
|
||||
'url' => '/side_menu/javascript/side_menu',
|
||||
'verb' => 'GET',
|
||||
],
|
||||
[
|
||||
'name' => 'Api#apps',
|
||||
'url' => '/side_menu/api/apps',
|
||||
'verb' => 'GET',
|
||||
]
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Generates l10n files using Yaml.
|
||||
*
|
||||
* Usage:
|
||||
* php bin/generate_l10n.php
|
||||
*/
|
||||
|
||||
function generateJsContent($translations)
|
||||
{
|
||||
$json = json_encode($translations, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
|
||||
|
||||
return <<< EOF
|
||||
OC.L10N.register("side_menu", {$json}, "nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;");
|
||||
EOF;
|
||||
}
|
||||
|
||||
function generateJsonContent($translations)
|
||||
{
|
||||
$datas = [
|
||||
'translations' => $translations,
|
||||
'pluralForm' => 'nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;',
|
||||
];
|
||||
|
||||
return json_encode(
|
||||
$datas,
|
||||
JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE
|
||||
);
|
||||
}
|
||||
|
||||
chdir(__DIR__.'/../');
|
||||
|
||||
foreach (glob('src/l10n/fixtures/*.yaml') as $file) {
|
||||
echo "$file\n";
|
||||
$lang = str_replace('.yaml', '', basename($file));
|
||||
$translations = yaml_parse(file_get_contents($file));
|
||||
|
||||
file_put_contents('l10n/'.$lang.'.js', generateJsContent($translations));
|
||||
file_put_contents('l10n/'.$lang.'.json', generateJsonContent($translations));
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
function showUsageAndExit(int $code)
|
||||
{
|
||||
global $argv;
|
||||
|
||||
echo "${argv[0]} [--help] --config /path/to/config/config.php --file /path/to/config.json\n";
|
||||
|
||||
exit($code);
|
||||
}
|
||||
|
||||
function value(string $shortName, string $longName, array $options, bool $required = true): ?string
|
||||
{
|
||||
$value = $options[$shortName] ?? $options[$longName] ?? null;
|
||||
|
||||
if (is_array($value)) {
|
||||
echo "To much --{$longName}\n";
|
||||
showUsageAndExit(1);
|
||||
}
|
||||
|
||||
if (empty($value) && $required) {
|
||||
echo "--{$longName} is missing\n";
|
||||
showUsageAndExit(1);
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
$options = getopt('t:f:c:h', [
|
||||
'type:',
|
||||
'file:',
|
||||
'config:',
|
||||
'help',
|
||||
]);
|
||||
|
||||
$help = value('h', 'help', $options, false);
|
||||
$config = value('c', 'config', $options);
|
||||
$file = value('f', 'file', $options);
|
||||
|
||||
if (!is_readable($config) && !is_file($config)) {
|
||||
echo "No such file: {$config}\n";
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (!is_readable($file) && !is_file($file)) {
|
||||
echo "No such file: {$file}\n";
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$appConfig = json_decode(file_get_contents($file), true);
|
||||
|
||||
require $config;
|
||||
|
||||
if ('mysql' === $CONFIG['dbtype']) {
|
||||
$pdo = new \PDO(
|
||||
'mysql:host='.$CONFIG['dbhost'].';dbname='.$CONFIG['dbname'],
|
||||
$CONFIG['dbuser'],
|
||||
$CONFIG['dbpassword']
|
||||
);
|
||||
} elseif ($CONFIG['dbtype']) {
|
||||
$pdo = new \PDO(sprintf('sqlite:%s', $CONFIG['datadirectory'].'/owncloud.db'));
|
||||
} else {
|
||||
echo "dbtype is not valid\n";
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$stmt = $pdo->prepare('UPDATE '.$CONFIG['dbtableprefix'].'appconfig SET configvalue=:value WHERE configkey=:key and appid=:appId');
|
||||
|
||||
foreach ($appConfig as $key => $value) {
|
||||
$stmt->execute([
|
||||
'appId' => 'side_menu',
|
||||
'key' => $key,
|
||||
'value' => $value,
|
||||
]);
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
#appmenu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#side-menu {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
max-width: 250px;
|
||||
background: #333;
|
||||
z-index: 3000;
|
||||
color: #fff;
|
||||
box-shadow: rgba(0, 0, 0, 0.22) 0px 25.6px 57.6px 0px, rgba(0, 0, 0, 0.18) 0px 4.8px 14.4px 0px;
|
||||
padding: 2px 0 0 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#side-menu.is-active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.side-menu-opener {
|
||||
background: url('../img/side-menu-opener.svg');
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
border-radius: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.side-menu-apps-list {
|
||||
height: calc(100vh - 150px);
|
||||
z-index: 2200;
|
||||
position: fixed;
|
||||
top: 150px;
|
||||
width: 100%;
|
||||
max-width: 250px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.side-menu-app-icon {
|
||||
width: 20px;
|
||||
vertical-align: middle;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.side-menu-app a {
|
||||
line-height: 30px;
|
||||
color: #fff;
|
||||
display: block;
|
||||
padding: 7px 0 7px 15px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.side-menu-app a:hover {
|
||||
background: #444;
|
||||
}
|
||||
|
||||
.side-menu-logo {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.side-menu-logo img {
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.side-menu-header {
|
||||
height: 150px;
|
||||
z-index: 2300;
|
||||
max-width: 250px;
|
||||
background: #333;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="571.907" height="156.921" viewBox="0 0 151.317 41.519">
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#fff" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M.18.18H58.71v41.16H.18z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#f9f9f9" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M.18.18H58.71v5.062H.18z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#4d4d4d" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M.18.18h6.128v41.16H.18z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#666" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M1.496 1.034h3.496V4.39H1.496z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#e6e6e6" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M2.297 7.455H4.19v1.81H2.297zM2.297 10.997H4.19v1.81H2.297zM2.297 14.404H4.19v1.81H2.297zM2.297 17.946H4.19v1.81H2.297zM2.297 21.353H4.19v1.81H2.297zM2.297 24.895H4.19v1.81H2.297zM2.297 28.302H4.19v1.81H2.297zM2.297 31.844H4.19v1.81H2.297zM7.136 1.034h6.102V4.39H7.136z"/>
|
||||
<g fill="#b3b3b3" stroke="#ccc" fill-rule="evenodd" stroke-width="1.465" stroke-linecap="round">
|
||||
<path d="M24.44 21.35l5.056-5.056M23.3 29.835l18.15-18.151M36.267 25.225l3.585-3.586"/>
|
||||
</g>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#fff" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M62.865.18h58.532v41.16H62.865z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#f9f9f9" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M62.865.18h58.532v5.062H62.865z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="none" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M62.865.18h58.532v41.16H62.865z"/>
|
||||
<g fill="#b3b3b3" stroke="#ccc" fill-rule="evenodd" stroke-width="1.465" stroke-linecap="round">
|
||||
<path d="M84.197 21.35l5.055-5.056M83.056 29.835l18.152-18.151M96.024 25.225l3.585-3.586"/>
|
||||
</g>
|
||||
<g color="#000" stroke-width=".359" stroke-linecap="square">
|
||||
<path style="marker:none" overflow="visible" fill="#4d4d4d" stroke="#b3b3b3" paint-order="fill markers stroke" d="M62.866.18h20.829v41.16h-20.83z"/>
|
||||
<path style="marker:none" overflow="visible" fill="#666" stroke="#ccc" paint-order="fill markers stroke" d="M64.044 1.034h3.496V4.39h-3.496z"/>
|
||||
<path style="marker:none" overflow="visible" fill="#e6e6e6" stroke="#ccc" paint-order="fill markers stroke" d="M64.578 8.076h1.893v1.81h-1.893zM67.507 8.407H79.97v1.148H67.507zM64.578 11.617h1.893v1.81h-1.893zM67.507 11.948h10.592v1.148H67.507zM64.578 15.025h1.893v1.81h-1.893zM67.507 15.356h12.997v1.148H67.507zM64.578 18.566h1.893v1.81h-1.893zM67.507 18.897h7.585v1.148h-7.585zM64.578 21.974h1.893v1.81h-1.893zM67.507 22.305h11.46v1.148h-11.46zM64.578 25.515h1.893v1.81h-1.893zM67.507 25.846h9.322v1.148h-9.322zM64.578 28.923h1.893v1.81h-1.893zM67.507 29.254h11.126v1.148H67.507zM64.578 32.464h1.893v1.81h-1.893zM67.507 32.795H80.37v1.148H67.507z"/>
|
||||
</g>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#fff" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.856.18h25.281v41.16h-25.28z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#f9f9f9" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.856.18h25.257v5.062h-25.257z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="none" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.856.18h25.257v41.16h-25.257z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#4d4d4d" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.856.18h20.83v41.16h-20.83z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#666" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M127.034 1.034h3.496V4.39h-3.496z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#e6e6e6" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M127.568 8.076h1.893v1.81h-1.893zM130.497 8.407h12.463v1.148h-12.463zM127.568 11.617h1.893v1.81h-1.893zM130.497 11.948h10.592v1.148h-10.592zM127.568 15.025h1.893v1.81h-1.893zM130.497 15.356h12.997v1.148h-12.997zM127.568 18.566h1.893v1.81h-1.893zM130.497 18.897h7.585v1.148h-7.585zM127.568 21.974h1.893v1.81h-1.893zM130.497 22.305h11.46v1.148h-11.46zM127.568 25.515h1.893v1.81h-1.893zM130.497 25.846h9.322v1.148h-9.322zM127.568 28.923h1.893v1.81h-1.893zM130.497 29.254h11.126v1.148h-11.126zM127.568 32.464h1.893v1.81h-1.893zM130.497 32.795h12.863v1.148h-12.863z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.0 KiB |
@@ -0,0 +1,30 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="571.907" height="156.921" viewBox="0 0 151.317 41.519">
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#fff" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M.18.18h58.532v41.16H.18zM62.735.18h58.532v41.16H62.735z"/>
|
||||
<g fill="#b3b3b3" stroke="#ccc" fill-rule="evenodd" stroke-width="1.465" stroke-linecap="round">
|
||||
<path d="M84.066 21.35l5.055-5.056M82.925 29.835l18.152-18.151M95.893 25.225l3.585-3.586"/>
|
||||
</g>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#4d4d4d" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M62.735.18h58.532v25.123H62.735z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="none" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M62.735.18h58.532v41.16H62.735z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#666" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M63.738 1.034h3.496V4.39h-3.496z"/>
|
||||
<g stroke-width=".401" color="#000" fill="#e6e6e6" stroke="#ccc" stroke-linecap="square">
|
||||
<path style="marker:none" overflow="visible" paint-order="fill markers stroke" d="M38.862 110.138h1.893v1.81h-1.893zM41.792 110.469h12.463v1.148H41.792zM38.862 113.679h1.893v1.81h-1.893zM41.792 114.01h10.592v1.148H41.792zM38.862 117.087h1.893v1.81h-1.893zM41.792 117.418h12.997v1.148H41.792zM38.862 120.628h1.893v1.81h-1.893zM41.792 120.959h7.585v1.148h-7.585z" transform="matrix(.89632 0 0 .8943 38.412 -87.8)"/>
|
||||
</g>
|
||||
<g stroke-width=".401" color="#000" fill="#e6e6e6" stroke="#ccc" stroke-linecap="square">
|
||||
<path style="marker:none" overflow="visible" paint-order="fill markers stroke" d="M65.723 110.272h1.893v1.81h-1.893zM68.652 110.602h11.46v1.148h-11.46zM65.723 113.813h1.893v1.81h-1.893zM68.652 114.144h9.322v1.148h-9.322zM65.723 117.221h1.893v1.81h-1.893zM68.652 117.551h11.126v1.148H68.652zM65.723 120.762h1.893v1.81h-1.893zM68.652 121.093h12.863v1.148H68.652z" transform="matrix(.89632 0 0 .8943 34.262 -87.919)"/>
|
||||
</g>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#666" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M116.257 1.034h3.496V4.39h-3.496z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#e6e6e6" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M72.715 6.186h11.518v1.148H72.715zM92.452 6.186h9.344v1.148h-9.344z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#f9f9f9" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M.18.18h58.532v5.063H.18z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="none" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M.18.18h58.532v41.16H.18z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#666" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M1.357 1.034h3.496V4.39H1.357z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#e6e6e6" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M6.068 1.034h6.102V4.39H6.068z"/>
|
||||
<g fill="#b3b3b3" stroke="#ccc" fill-rule="evenodd" stroke-width="1.465" stroke-linecap="round">
|
||||
<path d="M21.51 21.35l5.056-5.056M20.37 29.835L38.52 11.684M33.337 25.225l3.586-3.586"/>
|
||||
</g>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#fff" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.857.18h25.28v41.16h-25.28z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#f9f9f9" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.857.18h25.257v5.063h-25.257z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="none" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.857.18h25.257v41.16h-25.257z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#4d4d4d" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.857.18h20.829v41.16h-20.83z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#666" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M127.034 1.034h3.496V4.39h-3.496z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#e6e6e6" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M127.569 10.155h1.893v1.81h-1.893zM130.498 10.486h12.463v1.148h-12.463zM127.569 13.696h1.893v1.81h-1.893zM130.498 14.027h10.592v1.148h-10.592zM127.569 17.104h1.893v1.81h-1.893zM130.498 17.435h12.997v1.148h-12.997zM127.569 24.708h1.893v1.81h-1.893zM130.498 25.04h7.585v1.147h-7.585zM127.569 28.116h1.893v1.81h-1.893zM130.498 28.447h11.46v1.148h-11.46zM127.569 31.657h1.893v1.81h-1.893zM130.498 31.988h9.322v1.148h-9.322zM127.569 35.065h1.893v1.81h-1.893zM130.498 35.396h11.126v1.148h-11.126zM127.616 6.848h11.518v1.148h-11.518zM127.569 21.311h9.344v1.148h-9.344z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.3 KiB |
@@ -0,0 +1,24 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="571.907" height="156.921" viewBox="0 0 151.317 41.519">
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#fff" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M62.735.18h58.532v41.16H62.735zM.18.18h58.532v41.16H.18z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#f9f9f9" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M.18.18h58.532v5.063H.18z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="none" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M.18.18h58.532v41.16H.18z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#666" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M1.357 1.034h3.496V4.39H1.357z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#e6e6e6" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M6.068 1.034h6.102V4.39H6.068z"/>
|
||||
<g fill="#b3b3b3" stroke="#ccc" fill-rule="evenodd" stroke-width="1.465" stroke-linecap="round">
|
||||
<path d="M21.51 21.35l5.056-5.056M20.37 29.835L38.52 11.684M33.337 25.225l3.586-3.586"/>
|
||||
</g>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#f9f9f9" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M62.735.18h58.532v5.063H62.735z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="none" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M62.735.18h58.532v41.16H62.735z"/>
|
||||
<g fill="#b3b3b3" stroke="#ccc" fill-rule="evenodd" stroke-width="1.465" stroke-linecap="round">
|
||||
<path d="M84.066 21.35l5.055-5.056M82.925 29.835l18.152-18.151M95.893 25.225l3.585-3.586"/>
|
||||
</g>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#4d4d4d" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M62.735.18h20.829v41.16h-20.83z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#666" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M63.912 1.034h3.496V4.39h-3.496z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#e6e6e6" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M64.447 8.076h1.893v1.81h-1.893zM67.376 8.407h12.463v1.148H67.376zM64.447 11.617h1.893v1.81h-1.893zM67.376 11.948h10.592v1.148H67.376zM64.447 15.025h1.893v1.81h-1.893zM67.376 15.356h12.997v1.148H67.376zM64.447 18.566h1.893v1.81h-1.893zM67.376 18.897h7.585v1.148h-7.585zM64.447 21.974h1.893v1.81h-1.893zM67.376 22.305h11.46v1.148h-11.46zM64.447 25.515h1.893v1.81h-1.893zM67.376 25.846h9.322v1.148h-9.322zM64.447 28.923h1.893v1.81h-1.893zM67.376 29.254h11.126v1.148H67.376zM64.447 32.464h1.893v1.81h-1.893zM67.376 32.795h12.863v1.148H67.376z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#fff" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.857.18h25.28v41.16h-25.28z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#f9f9f9" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.857.18h25.257v5.063h-25.257z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="none" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.857.18h25.257v41.16h-25.257z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#4d4d4d" stroke="#b3b3b3" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M125.857.18h20.829v41.16h-20.83z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#666" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M127.034 1.034h3.496V4.39h-3.496z"/>
|
||||
<path style="marker:none" color="#000" overflow="visible" fill="#e6e6e6" stroke="#ccc" stroke-width=".359" stroke-linecap="square" paint-order="fill markers stroke" d="M127.569 8.076h1.893v1.81h-1.893zM130.498 8.407h12.463v1.148h-12.463zM127.569 11.617h1.893v1.81h-1.893zM130.498 11.948h10.592v1.148h-10.592zM127.569 15.025h1.893v1.81h-1.893zM130.498 15.356h12.997v1.148h-12.997zM127.569 18.566h1.893v1.81h-1.893zM130.498 18.897h7.585v1.148h-7.585zM127.569 21.974h1.893v1.81h-1.893zM130.498 22.305h11.46v1.148h-11.46zM127.569 25.515h1.893v1.81h-1.893zM130.498 25.846h9.322v1.148h-9.322zM127.569 28.923h1.893v1.81h-1.893zM130.498 29.254h11.126v1.148h-11.126zM127.569 32.464h1.893v1.81h-1.893zM130.498 32.795h12.863v1.148h-12.863z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.7 KiB |
@@ -0,0 +1,224 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="571.907"
|
||||
height="156.921"
|
||||
viewBox="0 0 151.317 41.519"
|
||||
version="1.1"
|
||||
id="svg901"
|
||||
sodipodi:docname="layout-side-menu-with-categories.svg"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<metadata
|
||||
id="metadata907">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs905" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1918"
|
||||
inkscape:window-height="1036"
|
||||
id="namedview903"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.6086532"
|
||||
inkscape:cx="455.61054"
|
||||
inkscape:cy="16.694081"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="21"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="svg901"
|
||||
showguides="false" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#fff"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M.18.18h58.532v41.16H.18zM62.735.18h58.532v41.16H62.735z"
|
||||
id="path853" />
|
||||
<g
|
||||
fill="#b3b3b3"
|
||||
stroke="#ccc"
|
||||
fill-rule="evenodd"
|
||||
stroke-width="1.465"
|
||||
stroke-linecap="round"
|
||||
id="g857">
|
||||
<path
|
||||
d="M84.066 21.35l5.055-5.056M82.925 29.835l18.152-18.151M95.893 25.225l3.585-3.586"
|
||||
id="path855" />
|
||||
</g>
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="none"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M62.735.18h58.532v41.16H62.735z"
|
||||
id="path861" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#f9f9f9"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M.18.18h58.532v5.063H.18z"
|
||||
id="path877" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="none"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M.18.18h58.532v41.16H.18z"
|
||||
id="path879" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#666"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M1.357 1.034h3.496V4.39H1.357z"
|
||||
id="path881" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#e6e6e6"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M6.068 1.034h6.102V4.39H6.068z"
|
||||
id="path883" />
|
||||
<g
|
||||
fill="#b3b3b3"
|
||||
stroke="#ccc"
|
||||
fill-rule="evenodd"
|
||||
stroke-width="1.465"
|
||||
stroke-linecap="round"
|
||||
id="g887">
|
||||
<path
|
||||
d="M21.51 21.35l5.056-5.056M20.37 29.835L38.52 11.684M33.337 25.225l3.586-3.586"
|
||||
id="path885" />
|
||||
</g>
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#fff"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M125.857.18h25.28v41.16h-25.28z"
|
||||
id="path889" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#f9f9f9"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M125.857.18h25.257v5.063h-25.257z"
|
||||
id="path891" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="none"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M125.857.18h25.257v41.16h-25.257z"
|
||||
id="path893" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#4d4d4d"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M125.857.18h20.829v41.16h-20.83z"
|
||||
id="path895" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#666"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M127.034 1.034h3.496V4.39h-3.496z"
|
||||
id="path897" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#e6e6e6"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M127.569 10.155h1.893v1.81h-1.893zM130.498 10.486h12.463v1.148h-12.463zM127.569 13.696h1.893v1.81h-1.893zM130.498 14.027h10.592v1.148h-10.592zM127.569 17.104h1.893v1.81h-1.893zM130.498 17.435h12.997v1.148h-12.997zM127.569 24.708h1.893v1.81h-1.893zM130.498 25.04h7.585v1.147h-7.585zM127.569 28.116h1.893v1.81h-1.893zM130.498 28.447h11.46v1.148h-11.46zM127.569 31.657h1.893v1.81h-1.893zM130.498 31.988h9.322v1.148h-9.322zM127.569 35.065h1.893v1.81h-1.893zM130.498 35.396h11.126v1.148h-11.126zM127.616 6.848h11.518v1.148h-11.518zM127.569 21.311h9.344v1.148h-9.344z"
|
||||
id="path899" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="color:#000000;overflow:visible;fill:#4d4d4d;stroke:#b3b3b3;stroke-width:0.359;stroke-linecap:square;marker:none;paint-order:fill markers stroke"
|
||||
overflow="visible"
|
||||
d="m 62.728587,0.17999881 h 20.829 V 41.34 h -20.83 z"
|
||||
id="path895-5" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="color:#000000;overflow:visible;fill:#666666;stroke:#cccccc;stroke-width:0.359;stroke-linecap:square;marker:none;paint-order:fill markers stroke"
|
||||
overflow="visible"
|
||||
d="m 63.905587,1.0339988 h 3.496 V 4.389999 h -3.496 z"
|
||||
id="path897-3" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="color:#000000;overflow:visible;fill:#e6e6e6;stroke:#cccccc;stroke-width:0.359;stroke-linecap:square;marker:none;paint-order:fill markers stroke"
|
||||
overflow="visible"
|
||||
d="m 64.440587,10.154999 h 1.893 v 1.81 h -1.893 z m 2.929,0.331 h 12.463 v 1.148 h -12.463 z m -2.929,3.21 h 1.893 v 1.81 h -1.893 z m 2.929,0.331 h 10.592 v 1.148 h -10.592 z m -2.929,3.077 h 1.893 v 1.81 h -1.893 z m 2.929,0.331 h 12.997 v 1.148 h -12.997 z m -2.929,7.273 h 1.893 V 26.518 h -1.893 z m 2.929,0.332 h 7.585 v 1.147 h -7.585 z m -2.929,3.076001 h 1.893 v 1.81 h -1.893 z m 2.929,0.330999 h 11.46 v 1.147999 h -11.46 z m -2.929,3.21 h 1.893 v 1.809999 h -1.893 z m 2.929,0.330999 h 9.322 v 1.148001 h -9.322 z m -2.929,3.077001 h 1.893 v 1.809999 h -1.893 z m 2.929,0.331001 h 11.126 v 1.147999 h -11.126 z m -2.882,-28.5480012 h 11.518 v 1.1480001 h -11.518 z m -0.047,14.4630002 h 9.344 v 1.148 h -9.344 z"
|
||||
id="path899-5" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.3 KiB |
@@ -0,0 +1,223 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="571.907"
|
||||
height="156.921"
|
||||
viewBox="0 0 151.317 41.519"
|
||||
version="1.1"
|
||||
id="svg901"
|
||||
sodipodi:docname="layout-side-menu-with-categories.svg"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<metadata
|
||||
id="metadata907">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs905" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1918"
|
||||
inkscape:window-height="1036"
|
||||
id="namedview903"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.6086532"
|
||||
inkscape:cx="455.61054"
|
||||
inkscape:cy="16.694081"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="21"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="svg901" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#fff"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M.18.18h58.532v41.16H.18zM62.735.18h58.532v41.16H62.735z"
|
||||
id="path853" />
|
||||
<g
|
||||
fill="#b3b3b3"
|
||||
stroke="#ccc"
|
||||
fill-rule="evenodd"
|
||||
stroke-width="1.465"
|
||||
stroke-linecap="round"
|
||||
id="g857">
|
||||
<path
|
||||
d="M84.066 21.35l5.055-5.056M82.925 29.835l18.152-18.151M95.893 25.225l3.585-3.586"
|
||||
id="path855" />
|
||||
</g>
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="none"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M62.735.18h58.532v41.16H62.735z"
|
||||
id="path861" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#f9f9f9"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M.18.18h58.532v5.063H.18z"
|
||||
id="path877" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="none"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M.18.18h58.532v41.16H.18z"
|
||||
id="path879" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#666"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M1.357 1.034h3.496V4.39H1.357z"
|
||||
id="path881" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#e6e6e6"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M6.068 1.034h6.102V4.39H6.068z"
|
||||
id="path883" />
|
||||
<g
|
||||
fill="#b3b3b3"
|
||||
stroke="#ccc"
|
||||
fill-rule="evenodd"
|
||||
stroke-width="1.465"
|
||||
stroke-linecap="round"
|
||||
id="g887">
|
||||
<path
|
||||
d="M21.51 21.35l5.056-5.056M20.37 29.835L38.52 11.684M33.337 25.225l3.586-3.586"
|
||||
id="path885" />
|
||||
</g>
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#fff"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M125.857.18h25.28v41.16h-25.28z"
|
||||
id="path889" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#f9f9f9"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M125.857.18h25.257v5.063h-25.257z"
|
||||
id="path891" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="none"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M125.857.18h25.257v41.16h-25.257z"
|
||||
id="path893" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#4d4d4d"
|
||||
stroke="#b3b3b3"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M125.857.18h20.829v41.16h-20.83z"
|
||||
id="path895" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#666"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M127.034 1.034h3.496V4.39h-3.496z"
|
||||
id="path897" />
|
||||
<path
|
||||
style="marker:none"
|
||||
color="#000"
|
||||
overflow="visible"
|
||||
fill="#e6e6e6"
|
||||
stroke="#ccc"
|
||||
stroke-width=".359"
|
||||
stroke-linecap="square"
|
||||
paint-order="fill markers stroke"
|
||||
d="M127.569 10.155h1.893v1.81h-1.893zM130.498 10.486h12.463v1.148h-12.463zM127.569 13.696h1.893v1.81h-1.893zM130.498 14.027h10.592v1.148h-10.592zM127.569 17.104h1.893v1.81h-1.893zM130.498 17.435h12.997v1.148h-12.997zM127.569 24.708h1.893v1.81h-1.893zM130.498 25.04h7.585v1.147h-7.585zM127.569 28.116h1.893v1.81h-1.893zM130.498 28.447h11.46v1.148h-11.46zM127.569 31.657h1.893v1.81h-1.893zM130.498 31.988h9.322v1.148h-9.322zM127.569 35.065h1.893v1.81h-1.893zM130.498 35.396h11.126v1.148h-11.126zM127.616 6.848h11.518v1.148h-11.518zM127.569 21.311h9.344v1.148h-9.344z"
|
||||
id="path899" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="color:#000000;overflow:visible;fill:#4d4d4d;stroke:#b3b3b3;stroke-width:0.359;stroke-linecap:square;marker:none;paint-order:fill markers stroke"
|
||||
overflow="visible"
|
||||
d="m 62.728587,0.17999881 h 20.829 V 41.34 h -20.83 z"
|
||||
id="path895-5" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="color:#000000;overflow:visible;fill:#666666;stroke:#cccccc;stroke-width:0.359;stroke-linecap:square;marker:none;paint-order:fill markers stroke"
|
||||
overflow="visible"
|
||||
d="m 63.905587,1.0339988 h 3.496 V 4.389999 h -3.496 z"
|
||||
id="path897-3" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="color:#000000;overflow:visible;fill:#e6e6e6;stroke:#cccccc;stroke-width:0.359;stroke-linecap:square;marker:none;paint-order:fill markers stroke"
|
||||
overflow="visible"
|
||||
d="m 64.440587,10.154999 h 1.893 v 1.81 h -1.893 z m 2.929,0.331 h 12.463 v 1.148 h -12.463 z m -2.929,3.21 h 1.893 v 1.81 h -1.893 z m 2.929,0.331 h 10.592 v 1.148 h -10.592 z m -2.929,3.077 h 1.893 v 1.81 h -1.893 z m 2.929,0.331 h 12.997 v 1.148 h -12.997 z m -2.929,7.273 h 1.893 V 26.518 h -1.893 z m 2.929,0.332 h 7.585 v 1.147 h -7.585 z m -2.929,3.076001 h 1.893 v 1.81 h -1.893 z m 2.929,0.330999 h 11.46 v 1.147999 h -11.46 z m -2.929,3.21 h 1.893 v 1.809999 h -1.893 z m 2.929,0.330999 h 9.322 v 1.148001 h -9.322 z m -2.929,3.077001 h 1.893 v 1.809999 h -1.893 z m 2.929,0.331001 h 11.126 v 1.147999 h -11.126 z m -2.882,-28.5480012 h 11.518 v 1.1480001 h -11.518 z m -0.047,14.4630002 h 9.344 v 1.148 h -9.344 z"
|
||||
id="path899-5" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.3 KiB |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M10.707 11.412l-.587-.587-.03-.03a.513.513 0 0 1-.074-.526L13.07 3.4l-1.5-1.498-.15.15-.708-.706.505-.505a.538.538 0 0 1 .224-.128c.04-.01.05-.01.087-.016h.087c.04.006.05.006.086.016.072.02.134.055.192.1.74.676 1.42 1.415 2.127 2.124a.503.503 0 0 1 .103.556l-3.053 6.87.344.343.49-.49 3.01 3.01a1.192 1.192 0 0 1-1.685 1.686l-3.012-3.01.49-.488zm-.533-10.217a.986.986 0 0 0-1.396 0l-7.582 7.58a.99.99 0 0 0 0 1.398l1.397 1.396a.986.986 0 0 0 1.396 0l7.58-7.583a.988.988 0 0 0 0-1.396l-1.396-1.395z" fill="#000"/></svg>
|
||||
|
After Width: | Height: | Size: 611 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="145.889" height="145.889" viewBox="0 0 38.6 38.6"><g transform="translate(-59.172 -91.92)" stroke="#000" fill="none"><path d="M66.595 111.162h9.997M66.595 103.805h11.4m-11.4 14.714h11.4" stroke-width="3.165"/><rect width="34.535" height="34.535" x="61.205" y="93.952" overflow="visible" rx="5.481" ry="5.481" style="marker:none" color="#000" stroke-width="4.065" stroke-linecap="round" paint-order="fill markers stroke"/></g></svg>
|
||||
|
After Width: | Height: | Size: 478 B |
@@ -0,0 +1,17 @@
|
||||
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
||||
<svg width="38" height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<g transform="translate(1 1)" stroke-width="2">
|
||||
<circle stroke-opacity=".5" cx="18" cy="18" r="18"/>
|
||||
<path d="M36 18c0-9.94-8.06-18-18-18">
|
||||
<animateTransform
|
||||
attributeName="transform"
|
||||
type="rotate"
|
||||
from="0 18 18"
|
||||
to="360 18 18"
|
||||
dur="1s"
|
||||
repeatCount="indefinite"/>
|
||||
</path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 694 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583"><g fill="#fff" color="#000" transform="translate(-.067 .224)"><rect width="5.027" height=".777" x="-2.307" y="6.984" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none" transform="rotate(-45)"/><rect width="5.027" height=".777" x="4.859" y="-.595" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none" transform="rotate(45)"/></g></svg>
|
||||
|
After Width: | Height: | Size: 495 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583"><g fill-opacity=".898" color="#000" transform="matrix(.90559 0 0 .86896 .772 -247.893)"><rect width="1.451" height="1.451" x="4.266" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><g transform="translate(-.13)"><rect width="1.451" height="1.451" x="6.445" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="1.451" height="1.451" x="2.345" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g><rect width="1.451" height="1.451" x="4.266" y="290.631" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><g transform="translate(-.13 2.157)"><rect width="1.451" height="1.451" x="6.445" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="1.451" height="1.451" x="2.345" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g><rect width="1.451" height="1.451" x="4.266" y="292.808" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><g transform="translate(-.13 4.334)"><rect width="1.451" height="1.451" x="6.445" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="1.451" height="1.451" x="2.345" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583"><rect width="7.62" height="7.62" x="1.482" y="1.482" fill="none" stroke="#000" stroke-linecap="square" stroke-width=".777" color="#000" overflow="visible" paint-order="markers fill stroke" rx="0" ry="0" style="marker:none"/><rect width="5.027" height=".777" x="2.778" y="3.148" color="#000" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="5.027" height=".777" x="2.778" y="6.658" color="#000" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="5.027" height=".777" x="2.778" y="4.936" color="#000" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></svg>
|
||||
|
After Width: | Height: | Size: 786 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583"><rect width="7.62" height="7.62" x="1.482" y="1.482" fill="none" stroke="#fff" stroke-linecap="square" stroke-width=".777" color="#000" overflow="visible" paint-order="markers fill stroke" rx="0" ry="0" style="marker:none"/><g fill="#fff" color="#000" transform="translate(0 .034)"><rect width="5.027" height=".777" x="2.778" y="3.114" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="5.027" height=".777" x="2.778" y="6.624" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="5.027" height=".777" x="2.778" y="4.903" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g></svg>
|
||||
|
After Width: | Height: | Size: 809 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583"><g color="#000" transform="matrix(.85624 0 0 .9944 .747 .03)"><g transform="matrix(1.0055 0 0 1 -.013 0)"><rect width="5.839" height=".782" x="2.372" y="2.764" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="5.839" height=".782" x="2.372" y="7.037" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g><rect width="5.871" height=".782" x="2.372" y="4.901" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g></svg>
|
||||
|
After Width: | Height: | Size: 637 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583"><g fill="#fff" color="#000" transform="matrix(.85624 0 0 .9944 .747 .03)"><g transform="matrix(1.0055 0 0 1 -.013 0)"><rect width="5.839" height=".782" x="2.372" y="2.764" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="5.839" height=".782" x="2.372" y="7.037" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g><rect width="5.871" height=".782" x="2.372" y="4.901" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g></svg>
|
||||
|
After Width: | Height: | Size: 649 B |
@@ -1,159 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="40"
|
||||
height="40"
|
||||
viewBox="0 0 10.583333 10.583333"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||
sodipodi:docname="side-menu-opener.svg">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="9.7123697"
|
||||
inkscape:cx="61.421304"
|
||||
inkscape:cy="18.194306"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1918"
|
||||
inkscape:window-height="1027"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="21"
|
||||
inkscape:window-maximized="0" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Calque 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-286.41667)">
|
||||
<g
|
||||
id="g1014"
|
||||
transform="translate(0.30030892,0.3423999)"
|
||||
style="fill:#ffffff">
|
||||
<rect
|
||||
ry="0"
|
||||
rx="0"
|
||||
y="288.47351"
|
||||
x="4.2660251"
|
||||
height="1.4506654"
|
||||
width="1.4506654"
|
||||
id="rect817-7"
|
||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.85507244;fill-rule:nonzero;stroke:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:stroke markers fill;enable-background:accumulate" />
|
||||
<g
|
||||
transform="translate(-0.12939894)"
|
||||
id="g952"
|
||||
style="fill:#ffffff">
|
||||
<rect
|
||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.85507244;fill-rule:nonzero;stroke:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:stroke markers fill;enable-background:accumulate"
|
||||
id="rect817-7-5"
|
||||
width="1.4506654"
|
||||
height="1.4506654"
|
||||
x="6.4453764"
|
||||
y="288.47351"
|
||||
rx="0"
|
||||
ry="0" />
|
||||
<rect
|
||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.85507244;fill-rule:nonzero;stroke:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:stroke markers fill;enable-background:accumulate"
|
||||
id="rect817-7-3"
|
||||
width="1.4506654"
|
||||
height="1.4506654"
|
||||
x="2.3454716"
|
||||
y="288.47351"
|
||||
rx="0"
|
||||
ry="0" />
|
||||
</g>
|
||||
<rect
|
||||
ry="0"
|
||||
rx="0"
|
||||
y="290.63095"
|
||||
x="4.2660251"
|
||||
height="1.4506654"
|
||||
width="1.4506654"
|
||||
id="rect817-7-56"
|
||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.85507244;fill-rule:nonzero;stroke:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:stroke markers fill;enable-background:accumulate" />
|
||||
<g
|
||||
transform="translate(-0.12939893,2.157457)"
|
||||
id="g952-2"
|
||||
style="fill:#ffffff">
|
||||
<rect
|
||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.85507244;fill-rule:nonzero;stroke:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:stroke markers fill;enable-background:accumulate"
|
||||
id="rect817-7-5-9"
|
||||
width="1.4506654"
|
||||
height="1.4506654"
|
||||
x="6.4453764"
|
||||
y="288.47351"
|
||||
rx="0"
|
||||
ry="0" />
|
||||
<rect
|
||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.85507244;fill-rule:nonzero;stroke:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:stroke markers fill;enable-background:accumulate"
|
||||
id="rect817-7-3-1"
|
||||
width="1.4506654"
|
||||
height="1.4506654"
|
||||
x="2.3454716"
|
||||
y="288.47351"
|
||||
rx="0"
|
||||
ry="0" />
|
||||
</g>
|
||||
<rect
|
||||
ry="0"
|
||||
rx="0"
|
||||
y="292.80765"
|
||||
x="4.2660251"
|
||||
height="1.4506654"
|
||||
width="1.4506654"
|
||||
id="rect817-7-56-2"
|
||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.85507244;fill-rule:nonzero;stroke:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:stroke markers fill;enable-background:accumulate" />
|
||||
<g
|
||||
transform="translate(-0.12939893,4.3341867)"
|
||||
id="g952-2-7"
|
||||
style="fill:#ffffff">
|
||||
<rect
|
||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.85507244;fill-rule:nonzero;stroke:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:stroke markers fill;enable-background:accumulate"
|
||||
id="rect817-7-5-9-0"
|
||||
width="1.4506654"
|
||||
height="1.4506654"
|
||||
x="6.4453764"
|
||||
y="288.47351"
|
||||
rx="0"
|
||||
ry="0" />
|
||||
<rect
|
||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.85507244;fill-rule:nonzero;stroke:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:stroke markers fill;enable-background:accumulate"
|
||||
id="rect817-7-3-1-9"
|
||||
width="1.4506654"
|
||||
height="1.4506654"
|
||||
x="2.3454716"
|
||||
y="288.47351"
|
||||
rx="0"
|
||||
ry="0" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583"><g fill="#fff" fill-opacity=".946" color="#000" transform="matrix(.90559 0 0 .86896 .772 -247.893)"><rect width="1.451" height="1.451" x="4.266" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><g transform="translate(-.13)"><rect width="1.451" height="1.451" x="6.445" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="1.451" height="1.451" x="2.345" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g><rect width="1.451" height="1.451" x="4.266" y="290.631" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><g transform="translate(-.13 2.157)"><rect width="1.451" height="1.451" x="6.445" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="1.451" height="1.451" x="2.345" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g><rect width="1.451" height="1.451" x="4.266" y="292.808" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><g transform="translate(-.13 4.334)"><rect width="1.451" height="1.451" x="6.445" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/><rect width="1.451" height="1.451" x="2.345" y="288.474" overflow="visible" paint-order="stroke markers fill" rx="0" ry="0" style="marker:none"/></g></g></svg>
|
||||
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\SideMenu\AppInfo;
|
||||
|
||||
use OC\AllConfig;
|
||||
use OC\App\AppStore\Fetcher\CategoryFetcher;
|
||||
use OC\AppFramework\Http\Request;
|
||||
use OC\Security\CSP\ContentSecurityPolicyNonceManager;
|
||||
use OC\User\User;
|
||||
use OCA\SideMenu\Service\AppRepository;
|
||||
use OCA\SideMenu\Service\CategoryRepository;
|
||||
use OCA\SideMenu\Service\Color;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCA\Theming\ThemingDefaults;
|
||||
use OCP\AppFramework\App;
|
||||
use OCP\AppFramework\Bootstrap\IBootContext;
|
||||
use OCP\AppFramework\Bootstrap\IBootstrap;
|
||||
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
||||
use OCP\EventDispatcher\IEventDispatcher;
|
||||
use OCP\IConfig;
|
||||
use OCP\INavigationManager;
|
||||
use OCP\IUserSession;
|
||||
use OCP\L10N\IFactory;
|
||||
use OCP\Util;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
/**
|
||||
* class Application.
|
||||
*
|
||||
* @author Simon Vieille <simon@deblan.fr>
|
||||
*/
|
||||
class Application extends App implements IBootstrap
|
||||
{
|
||||
public const APP_ID = 'side_menu';
|
||||
public const APP_NAME = 'Custom menu';
|
||||
|
||||
protected AllConfig $config;
|
||||
protected ContentSecurityPolicyNonceManager $cspnm;
|
||||
protected Request $request;
|
||||
protected ?User $user = null;
|
||||
|
||||
public function __construct(array $urlParams = [])
|
||||
{
|
||||
parent::__construct(self::APP_ID, $urlParams);
|
||||
}
|
||||
|
||||
public function register(IRegistrationContext $context): void
|
||||
{
|
||||
$context->registerService(CategoryRepository::class, function (ContainerInterface $c) {
|
||||
return new CategoryRepository(
|
||||
$c->get(CategoryFetcher::class),
|
||||
$c->get(ConfigProxy::class),
|
||||
$c->get(IConfig::class),
|
||||
$c->get(IFactory::class),
|
||||
$c->get(IUserSession::class)
|
||||
);
|
||||
});
|
||||
|
||||
$context->registerService(AppRepository::class, function (ContainerInterface $c) {
|
||||
return new AppRepository(
|
||||
$c->get(\OC_App::class),
|
||||
$c->get(INavigationManager::class),
|
||||
$c->get(IFactory::class),
|
||||
$c->get(ConfigProxy::class),
|
||||
$c->get(CategoryRepository::class),
|
||||
$c->get(IEventDispatcher::class),
|
||||
$c->get(IUserSession::class)
|
||||
);
|
||||
});
|
||||
|
||||
$context->registerService(ConfigProxy::class, function (ContainerInterface $c) {
|
||||
return new ConfigProxy(
|
||||
$c->get(IConfig::class),
|
||||
);
|
||||
});
|
||||
|
||||
$context->registerService(Color::class, function (ContainerInterface $c) {
|
||||
return new Color(
|
||||
$c->get(ThemingDefaults::class),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
public function boot(IBootContext $context): void
|
||||
{
|
||||
$this->config = \OC::$server->getConfig();
|
||||
$this->cspnm = \OC::$server->getContentSecurityPolicyNonceManager();
|
||||
$this->user = \OC::$server[IUserSession::class]->getUser();
|
||||
$this->request = \OC::$server->getRequest();
|
||||
|
||||
if (!$this->isEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->addAssets();
|
||||
}
|
||||
|
||||
protected function isEnabled(): bool
|
||||
{
|
||||
if (isset($this->request->server['HTTP_USER_AGENT']) && preg_match('/MemoriesNative/', $this->request->server['HTTP_USER_AGENT'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$enabled = true;
|
||||
$isForced = (bool) $this->config->getAppValue(self::APP_ID, 'force', '0');
|
||||
|
||||
if (null !== $this->user && !$isForced) {
|
||||
$enabled = (bool) $this->config->getUserValue(
|
||||
$this->user->getUid(),
|
||||
self::APP_ID,
|
||||
'enabled',
|
||||
$this->config->getAppValue(
|
||||
self::APP_ID,
|
||||
'default-enabled',
|
||||
'1'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $enabled;
|
||||
}
|
||||
|
||||
protected function addAssets()
|
||||
{
|
||||
Util::addScript(self::APP_ID, 'side_menu-menu');
|
||||
|
||||
$assets = [
|
||||
'stylesheet' => [
|
||||
'route' => 'side_menu.Css.stylesheet',
|
||||
'type' => 'link',
|
||||
'route_attr' => 'href',
|
||||
'attr' => [
|
||||
'rel' => 'stylesheet',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
$cache = $this->config->getAppValue(self::APP_ID, 'cache', '0');
|
||||
|
||||
foreach ($assets as $value) {
|
||||
$route = \OC::$server->getURLGenerator()->linkToRoute(
|
||||
$value['route'],
|
||||
['v' => $cache]
|
||||
);
|
||||
|
||||
$value['attr'][$value['route_attr']] = $route;
|
||||
|
||||
Util::addHeader($value['type'], $value['attr'], '');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Controller;
|
||||
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCA\SideMenu\Service\Color;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCA\SideMenu\Service\LangRepository;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
||||
use OCP\AppFramework\Http\DataDownloadResponse;
|
||||
use OCP\AppFramework\Http\JSONResponse;
|
||||
use OCP\AppFramework\Http\RedirectResponse;
|
||||
use OCP\IConfig;
|
||||
use OCP\IRequest;
|
||||
use OCP\IURLGenerator;
|
||||
|
||||
class AdminSettingController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
$appName,
|
||||
IRequest $request,
|
||||
protected IConfig $config,
|
||||
protected ConfigProxy $configProxy,
|
||||
protected IURLGenerator $urlGenerator,
|
||||
protected Color $color,
|
||||
protected LangRepository $langRepository,
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/admin/cache/remove')]
|
||||
public function removeCache(): RedirectResponse
|
||||
{
|
||||
$this->config->setAppValue(Application::APP_ID, 'cache-categories', '[]');
|
||||
|
||||
return new RedirectResponse($this->urlGenerator->linkToRoute('settings.AdminSettings.index', [
|
||||
'section' => Application::APP_ID,
|
||||
]).'#more');
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/admin/config/export')]
|
||||
public function exportConfiguration(): DataDownloadResponse
|
||||
{
|
||||
$keys = $this->config->getAppKeys(Application::APP_ID);
|
||||
$appConfig = [];
|
||||
$excludedKeys = [
|
||||
'cache',
|
||||
'cache-categories',
|
||||
'langs',
|
||||
];
|
||||
|
||||
foreach ($keys as $key) {
|
||||
if (in_array($key, $excludedKeys)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$appConfig[$key] = $this->config->getAppValue(Application::APP_ID, $key);
|
||||
}
|
||||
|
||||
return new DataDownloadResponse(
|
||||
json_encode($appConfig, JSON_PRETTY_PRINT),
|
||||
'config.json',
|
||||
'text/json'
|
||||
);
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/admin/config')]
|
||||
public function configuration(): JSONResponse
|
||||
{
|
||||
$keys = $this->config->getAppKeys(Application::APP_ID);
|
||||
$booleans = [
|
||||
'opener-only',
|
||||
'opener-hover',
|
||||
'display-logo',
|
||||
'use-avatar',
|
||||
'add-logo-link',
|
||||
'show-settings',
|
||||
'loader-enabled',
|
||||
'always-displayed',
|
||||
'enabled',
|
||||
'force',
|
||||
'big-menu',
|
||||
'external-sites-in-top-menu',
|
||||
'force-light-icon',
|
||||
'side-with-categories',
|
||||
'default-enabled',
|
||||
];
|
||||
|
||||
$arrays = [
|
||||
'apps-categories-custom',
|
||||
'big-menu-hidden-apps',
|
||||
'apps-order',
|
||||
'categories-custom',
|
||||
'categories-order',
|
||||
'target-blank-apps',
|
||||
'top-menu-apps',
|
||||
'top-side-menu-apps',
|
||||
];
|
||||
|
||||
$integers = [
|
||||
'background-color-opacity',
|
||||
'dark-mode-background-color-opacity',
|
||||
'dark-mode-icon-invert-filter',
|
||||
'dark-mode-icon-opacity',
|
||||
'icon-invert-filter',
|
||||
'icon-opacity',
|
||||
'target-blank-mode',
|
||||
'top-menu-mouse-over-hidden-label',
|
||||
];
|
||||
|
||||
$defaults = [
|
||||
'opener-only' => '0',
|
||||
'opener-hover' => '0',
|
||||
'display-logo' => '1',
|
||||
'use-avatar' => '0',
|
||||
'add-logo-link' => '1',
|
||||
'show-settings' => '0',
|
||||
'loader-enabled' => '1',
|
||||
'always-displayed' => '0',
|
||||
'enabled' => '1',
|
||||
'force' => '0',
|
||||
'big-menu' => '0',
|
||||
'external-sites-in-top-menu' => '0',
|
||||
'force-light-icon' => '0',
|
||||
'side-with-categories' => '0',
|
||||
'cache' => '1',
|
||||
'default-enabled' => '1',
|
||||
|
||||
'apps-categories-custom' => '[]',
|
||||
'big-menu-hidden-apps' => '[]',
|
||||
'apps-order' => '[]',
|
||||
'categories-custom' => '[]',
|
||||
'categories-order' => '[]',
|
||||
'target-blank-apps' => '[]',
|
||||
'top-menu-apps' => '[]',
|
||||
'top-side-menu-apps' => '[]',
|
||||
'cache-categories' => '[]',
|
||||
|
||||
'background-color-opacity' => '100',
|
||||
'dark-mode-background-color-opacity' => '100',
|
||||
'dark-mode-icon-invert-filter' => '0',
|
||||
'dark-mode-icon-opacity' => '100',
|
||||
'icon-invert-filter' => '0',
|
||||
'icon-opacity' => '100',
|
||||
'top-menu-mouse-over-hidden-label' => '0',
|
||||
|
||||
'opener' => 'side-menu-opener',
|
||||
'dark-mode-opener' => 'side-menu-opener',
|
||||
'size-icon' => 'normal',
|
||||
'size-text' => 'normal',
|
||||
'opener-position' => 'before',
|
||||
|
||||
'background-color' => $this->color->getPrimaryColor(),
|
||||
'background-color-to' => $this->color->getLightenPrimaryColor(),
|
||||
'current-app-background-color' => $this->color->getDarkenPrimaryColor(),
|
||||
'text-color' => $this->color->getTextColorPrimary(),
|
||||
'loader-color' => $this->color->getLightenPrimaryColor(),
|
||||
|
||||
'dark-mode-background-color' => $this->color->getDarkenPrimaryColor(),
|
||||
'dark-mode-background-color-to' => $this->color->getDarkenPrimaryColor(),
|
||||
'dark-mode-current-app-background-color' => $this->color->getDarkenPrimaryColor2(),
|
||||
'dark-mode-text-color' => $this->color->getTextColorPrimary(),
|
||||
'dark-mode-loader-color' => $this->color->getLightenPrimaryColor(),
|
||||
|
||||
'categories-order-type' => 'default',
|
||||
];
|
||||
|
||||
$config = [];
|
||||
|
||||
foreach ($keys as $key) {
|
||||
if (!isset($defaults[$key])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (in_array($key, $booleans)) {
|
||||
$config[$key] = $this->configProxy->getAppValueBool($key, $defaults[$key]);
|
||||
} elseif (in_array($key, $arrays)) {
|
||||
$config[$key] = $this->configProxy->getAppValueArray($key, $defaults[$key]);
|
||||
} elseif (in_array($key, $integers)) {
|
||||
$config[$key] = $this->configProxy->getAppValueInt($key, $defaults[$key]);
|
||||
} else {
|
||||
$config[$key] = $this->configProxy->getAppValue($key, $defaults[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($defaults as $key => $default) {
|
||||
if (!array_key_exists($key, $config)) {
|
||||
$config[$key] = $default;
|
||||
}
|
||||
}
|
||||
|
||||
$config['langs'] = $this->langRepository->getUsedLangs();
|
||||
|
||||
return new JSONResponse($config);
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\SideMenu\Controller;
|
||||
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\IRequest;
|
||||
use OCP\INavigationManager;
|
||||
use OCP\AppFramework\Http\DataDownloadResponse;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\AppFramework\Http\JSONResponse;
|
||||
|
||||
class ApiController extends Controller
|
||||
{
|
||||
/**
|
||||
* @var INavigationManager
|
||||
*/
|
||||
protected $navigationManager;
|
||||
|
||||
/**
|
||||
* @param string $appName
|
||||
* @param IRequest $request
|
||||
* @param INavigationManager $navigationManager
|
||||
*/
|
||||
public function __construct($appName, IRequest $request, INavigationManager $navigationManager)
|
||||
{
|
||||
parent::__construct($appName, $request);
|
||||
|
||||
$this->navigationManager = $navigationManager;
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @NoCSRFRequired
|
||||
*
|
||||
* @return JSONResponse
|
||||
*/
|
||||
public function apps(): JSONResponse
|
||||
{
|
||||
$apps = $this->navigationManager->getAll();
|
||||
|
||||
$data = [
|
||||
'apps' => $apps,
|
||||
];
|
||||
|
||||
return new JSONResponse($apps);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Controller;
|
||||
|
||||
use OCA\SideMenu\Service\AppRepository;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
|
||||
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
||||
use OCP\AppFramework\Http\RedirectResponse;
|
||||
use OCP\IRequest;
|
||||
use OCP\IURLGenerator;
|
||||
use OCP\IUserSession;
|
||||
|
||||
class AppController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
protected AppRepository $appRepository,
|
||||
protected IURLGenerator $urlGenerator,
|
||||
protected ConfigProxy $config,
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[NoAdminRequired]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/')]
|
||||
public function index(): RedirectResponse
|
||||
{
|
||||
$user = \OC::$server[IUserSession::class]->getUser();
|
||||
$topMenuApps = $this->config->getAppValueArray('top-menu-apps', '[]');
|
||||
$hiddenApps = $this->config->getAppValueArray('big-menu-hidden-apps', '[]');
|
||||
$isForced = $this->config->getAppValueBool('force', '0');
|
||||
$userTopMenuApps = $this->config->getUserValueArray($user, 'top-menu-apps', '[]');
|
||||
$apps = $this->appRepository->getOrderedApps($user);
|
||||
|
||||
if (!$isForced && !empty($userTopMenuApps)) {
|
||||
$topMenuApps = $userTopMenuApps;
|
||||
}
|
||||
|
||||
foreach ($apps as $app) {
|
||||
$inTopMenuApps = in_array($app['id'], $topMenuApps);
|
||||
$inHiddenApps = in_array($app['id'], $hiddenApps);
|
||||
|
||||
if (!$inTopMenuApps && $inHiddenApps) {
|
||||
continue;
|
||||
}
|
||||
|
||||
return $this->redirectToApp($app, true);
|
||||
}
|
||||
|
||||
return $this->redirectToApp('files');
|
||||
}
|
||||
|
||||
protected function redirectToApp($app, bool $isHref = false): RedirectResponse
|
||||
{
|
||||
if (!$isHref) {
|
||||
$isIgnoreFrontController = true === \OC::$server->getConfig()->getSystemValue(
|
||||
'htaccess.IgnoreFrontController',
|
||||
false
|
||||
);
|
||||
|
||||
$isFrontControllerActive = 'true' === getenv('front_controller_active');
|
||||
|
||||
if ($isIgnoreFrontController || $isFrontControllerActive) {
|
||||
$path = '/apps/%s/';
|
||||
} else {
|
||||
$path = '/index.php/apps/%s/';
|
||||
}
|
||||
|
||||
$url = $this->urlGenerator->getAbsoluteURL(sprintf($path, $app));
|
||||
} else {
|
||||
$url = $app['href'];
|
||||
}
|
||||
|
||||
return new RedirectResponse($url);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Controller;
|
||||
|
||||
use OCA\SideMenu\Service\AppRepository;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
|
||||
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
||||
use OCP\AppFramework\Http\Attribute\PublicPage;
|
||||
use OCP\AppFramework\Http\JSONResponse;
|
||||
use OCP\IRequest;
|
||||
use OCP\IUserSession;
|
||||
|
||||
class CoreController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
protected ConfigProxy $config,
|
||||
protected AppRepository $appRepository,
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[NoAdminRequired]
|
||||
#[PublicPage]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/core/apps')]
|
||||
public function items(): JSONResponse
|
||||
{
|
||||
$user = \OC::$server[IUserSession::class]->getUser();
|
||||
$items = [];
|
||||
|
||||
if (!$user) {
|
||||
return new JSONResponse([
|
||||
'items' => $items,
|
||||
]);
|
||||
}
|
||||
|
||||
$apps = $this->appRepository->getOrderedApps($user);
|
||||
$keys = ['id', 'name', 'category', 'href', 'icon'];
|
||||
|
||||
foreach ($apps as &$app) {
|
||||
foreach ($app as $key => $value) {
|
||||
if (!in_array($key, $keys)) {
|
||||
unset($app[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return new JSONResponse([
|
||||
'items' => $apps,
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Controller;
|
||||
|
||||
use OC\User\User;
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCA\SideMenu\Service\Color;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCA\Theming\ThemingDefaults;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
||||
use OCP\AppFramework\Http\Attribute\PublicPage;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IRequest;
|
||||
use OCP\IUserSession;
|
||||
|
||||
class CssController extends Controller
|
||||
{
|
||||
protected ?User $user;
|
||||
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
protected ConfigProxy $config,
|
||||
protected ThemingDefaults $theming,
|
||||
protected Color $color,
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
|
||||
$this->user = \OC::$server[IUserSession::class]->getUser();
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[NoAdminRequired]
|
||||
#[PublicPage]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/css/stylesheet')]
|
||||
public function stylesheet(): TemplateResponse
|
||||
{
|
||||
$response = new TemplateResponse(Application::APP_ID, 'css/stylesheet', $this->getConfig(), 'blank');
|
||||
$response->addHeader('Content-Type', 'text/css');
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
protected function getConfig(): array
|
||||
{
|
||||
$isForced = $this->config->getAppValueBool('force', '0');
|
||||
$topMenuApps = $this->config->getAppValueArray('top-menu-apps', '[]');
|
||||
$topSideMenuApps = $this->config->getAppValueArray('top-side-menu-apps', '[]');
|
||||
|
||||
if ($this->user) {
|
||||
$userTopMenuApps = $this->config->getUserValueArray($this->user, 'top-menu-apps', '[]');
|
||||
$userTopSideMenuApps = $this->config->getUserValueArray($this->user, 'top-side-menu-apps', '[]');
|
||||
|
||||
if (!empty($userTopMenuApps) && !$isForced) {
|
||||
$topMenuApps = $userTopMenuApps;
|
||||
}
|
||||
|
||||
if (!empty($userTopSideMenuApps) && !$isForced) {
|
||||
$topSideMenuApps = $userTopSideMenuApps;
|
||||
}
|
||||
}
|
||||
|
||||
$lightenPrimaryColor = $this->color->getLightenPrimaryColor();
|
||||
$darkenPrimaryColor = $this->color->getDarkenPrimaryColor();
|
||||
$darkenPrimaryColor2 = $this->color->getDarkenPrimaryColor2();
|
||||
$textColor = $this->color->getTextColorPrimary();
|
||||
|
||||
$backgroundColor = $this->config->getAppValue('background-color', $darkenPrimaryColor);
|
||||
$backgroundColorTo = $this->config->getAppValue('background-color-to', $darkenPrimaryColor);
|
||||
$opacity = $this->config->getAppValueInt('background-color-opacity', '100');
|
||||
$backgroundOpacity = dechex($opacity * 255 / 100);
|
||||
|
||||
$backgroundColor .= $backgroundOpacity;
|
||||
$backgroundColorTo .= $backgroundOpacity;
|
||||
|
||||
$darkBackgroundColor = $this->config->getAppValue('dark-mode-background-color', $darkenPrimaryColor);
|
||||
$darkBackgroundColorTo = $this->config->getAppValue('dark-mode-background-color-to', $darkenPrimaryColor);
|
||||
$darkOpacity = $this->config->getAppValueInt('dark-mode-background-color-opacity', '100');
|
||||
$darkBackgroundOpacity = dechex($opacity * 255 / 100);
|
||||
|
||||
$darkBackgroundColor .= $darkBackgroundOpacity;
|
||||
$darkBackgroundColorTo .= $darkBackgroundOpacity;
|
||||
|
||||
return [
|
||||
'vars' => [
|
||||
'light' => [
|
||||
'background-color' => $backgroundColor,
|
||||
'background-color-to' => $backgroundColorTo,
|
||||
'current-app-background-color' => $this->config->getAppValue(
|
||||
'current-app-background-color',
|
||||
$darkenPrimaryColor2
|
||||
),
|
||||
'loader-color' => $this->config->getAppValue('loader-color', $lightenPrimaryColor),
|
||||
'text-color' => $this->config->getAppValue('text-color', $textColor),
|
||||
'opener' => $this->config->getAppValue('opener', 'side-menu-opener'),
|
||||
'icon-invert-filter' => abs($this->config->getAppValueInt('icon-invert-filter', '0')).'%',
|
||||
'icon-opacity' => abs($this->config->getAppValueInt('icon-opacity', '100') / 100),
|
||||
],
|
||||
'dark' => [
|
||||
'background-color' => $darkBackgroundColor,
|
||||
'background-color-to' => $darkBackgroundColorTo,
|
||||
'current-app-background-color' => $this->config->getAppValue(
|
||||
'dark-mode-current-app-background-color',
|
||||
$darkenPrimaryColor2
|
||||
),
|
||||
'loader-color' => $this->config->getAppValue('dark-mode-loader-color', $lightenPrimaryColor),
|
||||
'text-color' => $this->config->getAppValue('dark-mode-text-color', $textColor),
|
||||
'opener' => $this->config->getAppValue('dark-mode-opener', 'side-menu-opener'),
|
||||
'icon-invert-filter' => abs($this->config->getAppValueInt('dark-mode-icon-invert-filter', '0')).'%',
|
||||
'icon-opacity' => abs($this->config->getAppValueInt('dark-mode-icon-opacity', '100') / 100),
|
||||
]
|
||||
],
|
||||
'opener-only' => $this->config->getAppValueBool('opener-only', '0'),
|
||||
'size-icon' => $this->config->getAppValue('size-icon', 'normal'),
|
||||
'size-text' => $this->config->getAppValue('size-text', 'normal'),
|
||||
'always-displayed' => $this->config->getAppValueBool('always-displayed', '0'),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Controller;
|
||||
|
||||
use OC\User\User;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCA\Theming\ThemingDefaults;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
|
||||
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
||||
use OCP\AppFramework\Http\Attribute\PublicPage;
|
||||
use OCP\AppFramework\Http\JSONResponse;
|
||||
use OCP\IRequest;
|
||||
use OCP\IUserSession;
|
||||
use OCP\L10N\IFactory;
|
||||
use OCP\IAvatarManager;
|
||||
use OCP\INavigationManager;
|
||||
use OCP\IURLGenerator;
|
||||
|
||||
class JsController extends Controller
|
||||
{
|
||||
protected ?User $user;
|
||||
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
protected ConfigProxy $config,
|
||||
protected ThemingDefaults $themingDefaults,
|
||||
protected IFactory $l10nFactory,
|
||||
protected IAvatarManager $avatarManager,
|
||||
protected IUserSession $userSession,
|
||||
protected INavigationManager $navigationManager,
|
||||
protected IURLGenerator $urlGenerator,
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
$this->user = $this->userSession->getUser();
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[NoAdminRequired]
|
||||
#[PublicPage]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/js/config')]
|
||||
public function config(): JSONResponse
|
||||
{
|
||||
return new JSONResponse($this->getConfig());
|
||||
}
|
||||
|
||||
protected function getConfig(): array
|
||||
{
|
||||
$topMenuApps = $this->config->getAppValueArray('top-menu-apps', '[]');
|
||||
$topSideMenuApps = $this->config->getAppValueArray('top-side-menu-apps', '[]');
|
||||
$targetBlankApps = $this->config->getAppValueArray('target-blank-apps', '[]');
|
||||
$useAvatar = $this->config->getAppValueBool('use-avatar', '0');
|
||||
$isForced = $this->config->getAppValueBool('force', '0');
|
||||
$addLogoLink = $this->config->getAppValueBool('add-logo-link', '1');
|
||||
$appsOrder = $this->config->getAppValueArray('apps-order', '[]');
|
||||
$avatar = null;
|
||||
$settings = null;
|
||||
|
||||
if ($this->user) {
|
||||
$userAppsOrder = $this->config->getUserValueArray($this->user, 'apps-order', '[]');
|
||||
$userTopMenuApps = $this->config->getUserValueArray($this->user, 'top-menu-apps', '[]');
|
||||
$userTopSideMenuApps = $this->config->getUserValueArray($this->user, 'top-side-menu-apps', '[]');
|
||||
|
||||
if (!empty($userTopMenuApps) && !$isForced) {
|
||||
$topMenuApps = $userTopMenuApps;
|
||||
}
|
||||
|
||||
if (!empty($userTopSideMenuApps) && !$isForced) {
|
||||
$topSideMenuApps = $userTopSideMenuApps;
|
||||
}
|
||||
|
||||
if (!empty($userAppsOrder) && !$isForced) {
|
||||
$appsOrder = $userAppsOrder;
|
||||
}
|
||||
|
||||
$userTargetBlankMode = $this->config->getUserValueInt($this->user, 'target-blank-mode', '1');
|
||||
$userTargetBlankApps = $this->config->getUserValueArray($this->user, 'target-blank-apps', '[]');
|
||||
|
||||
if (2 === $userTargetBlankMode && !$isForced) {
|
||||
$targetBlankApps = $userTargetBlankApps;
|
||||
}
|
||||
|
||||
$isAvatarSet = $this->avatarManager->getAvatar($this->user->getUID())->exists();
|
||||
|
||||
if ($useAvatar && $isAvatarSet) {
|
||||
$avatar = $this->urlGenerator->linkToRoute('core.avatar.getAvatar', [
|
||||
'userId' => $this->user->getUID(),
|
||||
'size' => 128,
|
||||
'v' => $this->config->getUserValueInt($this->user, 'avatar', 'version', 0),
|
||||
]);
|
||||
}
|
||||
|
||||
if ($this->config->getAppValueBool('show-settings', '0')) {
|
||||
$settingsNav = $this->navigationManager->getAll('settings');
|
||||
|
||||
if (isset($settingsNav['settings'])) {
|
||||
$settings = [
|
||||
'href' => $settingsNav['settings']['href'],
|
||||
'name' => $settingsNav['settings']['name'],
|
||||
'avatar' => $this->urlGenerator->linkToRoute('core.avatar.getAvatar', [
|
||||
'userId' => $this->user->getUID(),
|
||||
'size' => 32,
|
||||
'v' => $this->config->getUserValueInt($this->user, 'avatar', 'version', 0),
|
||||
]),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$indexUrl = $this->urlGenerator->linkTo('', 'index.php');
|
||||
|
||||
return [
|
||||
'opener-position' => $this->config->getAppValue('opener-position', 'before'),
|
||||
'opener-hover' => $this->config->getAppValueBool('opener-hover', '0'),
|
||||
'external-sites-in-top-menu' => $this->config->getAppValueBool('external-sites-in-top-menu', '0'),
|
||||
'force-light-icon' => $this->config->getAppValueBool('force-light-icon', '0'),
|
||||
'display-logo' => $this->config->getAppValueBool('display-logo', '1'),
|
||||
'use-avatar' => $this->config->getAppValueBool('use-avatar', '0'),
|
||||
'hide-when-no-apps' => $this->config->getAppValueBool('hide-when-no-apps', '0'),
|
||||
'loader-enabled' => $this->config->getAppValueBool('loader-enabled', '1'),
|
||||
'always-displayed' => $this->config->getAppValueBool('always-displayed', '0'),
|
||||
'side-with-categories' => $this->config->getAppValueBool('side-with-categories', '0'),
|
||||
'big-menu' => $this->config->getAppValueBool('big-menu', '0'),
|
||||
'big-menu-hidden-apps' => $this->config->getAppValueArray('big-menu-hidden-apps', '[]'),
|
||||
'apps-order' => $appsOrder,
|
||||
'avatar' => $avatar,
|
||||
'top-menu-apps' => $topMenuApps,
|
||||
'top-side-menu-apps' => $topSideMenuApps,
|
||||
'top-menu-mouse-over-hidden-label' => $this->config->getAppValueInt(
|
||||
'top-menu-mouse-over-hidden-label',
|
||||
'0'
|
||||
),
|
||||
'target-blank-apps' => $targetBlankApps,
|
||||
'settings' => $settings,
|
||||
'logo' => $this->themingDefaults->getLogo(),
|
||||
'logo-link' => $addLogoLink ? $indexUrl : null,
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Controller;
|
||||
|
||||
use OC\URLGenerator;
|
||||
use OCA\SideMenu\Service\AppRepository;
|
||||
use OCA\SideMenu\Service\CategoryRepository;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
|
||||
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
||||
use OCP\AppFramework\Http\Attribute\PublicPage;
|
||||
use OCP\AppFramework\Http\JSONResponse;
|
||||
use OCP\IRequest;
|
||||
use OCP\IUserSession;
|
||||
use OCP\L10N\IFactory;
|
||||
|
||||
class NavController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
protected ConfigProxy $config,
|
||||
protected AppRepository $appRepository,
|
||||
protected CategoryRepository $categoryRepository,
|
||||
protected URLGenerator $router,
|
||||
protected IFactory $l10nFactory,
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[NoAdminRequired]
|
||||
#[PublicPage]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/nav/items')]
|
||||
public function items(): JSONResponse
|
||||
{
|
||||
$user = \OC::$server[IUserSession::class]->getUser();
|
||||
$items = [];
|
||||
|
||||
if (!$user) {
|
||||
return new JSONResponse([
|
||||
'items' => $items,
|
||||
]);
|
||||
}
|
||||
|
||||
$apps = $this->appRepository->getOrderedApps($user);
|
||||
$categoriesLabels = $this->categoryRepository->getOrderedCategories();
|
||||
$hiddenApps = $this->config->getAppValueArray('big-menu-hidden-apps', '[]');
|
||||
$isForced = $this->config->getAppValueBool('force', '0');
|
||||
$topMenuApps = $this->config->getAppValueArray('top-menu-apps', '[]');
|
||||
$topSideMenuApps = $this->config->getAppValueArray('top-side-menu-apps', '[]');
|
||||
$userTopSideMenuApps = $this->config->getUserValueArray($user, 'top-side-menu-apps', '[]');
|
||||
$userTopMenuApps = $this->config->getUserValueArray($user, 'top-menu-apps', '[]');
|
||||
$appsCategories = [];
|
||||
$categoriesAppsCount = [];
|
||||
|
||||
if (!$isForced && !empty($userTopMenuApps)) {
|
||||
$topMenuApps = $userTopMenuApps;
|
||||
}
|
||||
|
||||
if (!$isForced && !empty($userTopSideMenuApps)) {
|
||||
$topSideMenuApps = $userTopSideMenuApps;
|
||||
}
|
||||
|
||||
foreach ($apps as $app) {
|
||||
$inTopMenuApps = in_array($app['id'], $topMenuApps);
|
||||
$inTopSideMenuApps = in_array($app['id'], $topSideMenuApps);
|
||||
$inHiddenApps = in_array($app['id'], $hiddenApps);
|
||||
|
||||
if (($inTopMenuApps && !$inTopSideMenuApps) || $inHiddenApps) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$categories = (array) $app['category'];
|
||||
$appsCategories[$app['id']] = [];
|
||||
|
||||
if (empty($categories)) {
|
||||
$categories = ['other'];
|
||||
}
|
||||
|
||||
foreach ($categories as $category) {
|
||||
if (!isset($items[$category])) {
|
||||
$items[$category] = [
|
||||
'name' => $categoriesLabels[$category] ?? $category,
|
||||
'categoryId' => $category,
|
||||
'apps' => [],
|
||||
];
|
||||
}
|
||||
|
||||
if (!isset($categoriesAppsCount[$category])) {
|
||||
$categoriesAppsCount[$category] = 0;
|
||||
}
|
||||
|
||||
++$categoriesAppsCount[$category];
|
||||
|
||||
$appsCategories[$app['id']][] = $category;
|
||||
|
||||
$items[$category]['apps'][$app['id']] = [
|
||||
'id' => $app['id'],
|
||||
'name' => $app['name'],
|
||||
'href' => $app['href'],
|
||||
'icon' => $app['icon'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
arsort($categoriesAppsCount);
|
||||
|
||||
$keys = array_keys($categoriesAppsCount);
|
||||
|
||||
foreach ($appsCategories as $app => $appCategories) {
|
||||
$smallerIndex = count($categoriesAppsCount) - 1;
|
||||
|
||||
foreach ($appCategories as $appCategory) {
|
||||
$appKey = array_keys($keys, $appCategory)[0];
|
||||
|
||||
if ($appKey < $smallerIndex) {
|
||||
$smallerIndex = $appKey;
|
||||
}
|
||||
}
|
||||
|
||||
$category = $keys[$smallerIndex];
|
||||
|
||||
foreach ($items as $itemCategory => $value) {
|
||||
if ($itemCategory !== $category && isset($value['apps'][$app])) {
|
||||
unset($items[$itemCategory]['apps'][$app]);
|
||||
|
||||
if (empty($items[$itemCategory]['apps'])) {
|
||||
unset($items[$itemCategory]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($items as $category => $value) {
|
||||
if (empty($items[$category]['apps'])) {
|
||||
unset($items[$category]);
|
||||
}
|
||||
}
|
||||
|
||||
usort($items, function ($a, $b) use ($categoriesLabels) {
|
||||
foreach ($categoriesLabels as $key => $value) {
|
||||
if ('other' === $a['categoryId']) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ('other' === $b['categoryId']) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ($a['categoryId'] === $key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ($b['categoryId'] === $key) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
});
|
||||
|
||||
return new JSONResponse([
|
||||
'items' => $items,
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Controller;
|
||||
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
|
||||
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
||||
use OCP\AppFramework\Http\JSONResponse;
|
||||
use OCP\IConfig;
|
||||
use OCP\IRequest;
|
||||
use OCP\IUserSession;
|
||||
|
||||
class PersonalSettingController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
$appName,
|
||||
IRequest $request,
|
||||
protected IConfig $config,
|
||||
protected ConfigProxy $configProxy,
|
||||
protected IUserSession $userSession,
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[NoAdminRequired]
|
||||
#[FrontpageRoute(verb: 'POST', url: '/user/valueSet')]
|
||||
public function valueSet($name, $value): array
|
||||
{
|
||||
$doSave = false;
|
||||
$user = $this->userSession->getUser();
|
||||
|
||||
if ('enabled' === $name) {
|
||||
$doSave = true;
|
||||
|
||||
if (!in_array($value, ['0', '1'])) {
|
||||
$value = '1';
|
||||
}
|
||||
}
|
||||
|
||||
if ('target-blank-mode' === $name) {
|
||||
$doSave = true;
|
||||
|
||||
if (!in_array($value, ['1', '2'])) {
|
||||
$value = '1';
|
||||
}
|
||||
}
|
||||
|
||||
if (in_array($name, ['target-blank-apps', 'top-menu-apps', 'top-side-menu-apps', 'apps-order'])) {
|
||||
$doSave = true;
|
||||
$data = json_decode($value, true);
|
||||
|
||||
if (!is_array($data)) {
|
||||
$doSave = false;
|
||||
} else {
|
||||
foreach ($data as $v) {
|
||||
if (!is_string($v)) {
|
||||
$doSave = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->configProxy->getAppValueBool('force', '0')) {
|
||||
$doSave = false;
|
||||
}
|
||||
|
||||
if ($doSave) {
|
||||
$this->config->setUserValue($user->getUid(), Application::APP_ID, $name, $value);
|
||||
|
||||
return [
|
||||
'name' => $name,
|
||||
'value' => $value,
|
||||
];
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[NoAdminRequired]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/user/config')]
|
||||
public function configuration(): JSONResponse
|
||||
{
|
||||
$user = $this->userSession->getUser();
|
||||
$keys = $this->config->getUserKeys($user->getUid(), Application::APP_ID);
|
||||
|
||||
$booleans = [
|
||||
'enabled',
|
||||
];
|
||||
|
||||
$arrays = [
|
||||
'apps-order',
|
||||
'target-blank-apps',
|
||||
'top-menu-apps',
|
||||
'top-side-menu-apps',
|
||||
];
|
||||
|
||||
$integers = [
|
||||
'target-blank-mode',
|
||||
];
|
||||
|
||||
$defaults = [
|
||||
'enabled' => '1',
|
||||
'target-blank-mode' => '1',
|
||||
'apps-order' => '[]',
|
||||
'target-blank-apps' => '[]',
|
||||
'top-menu-apps' => '[]',
|
||||
'top-side-menu-apps' => '[]',
|
||||
];
|
||||
|
||||
$config = [];
|
||||
|
||||
foreach ($keys as $key) {
|
||||
if (!isset($defaults[$key])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (in_array($key, $booleans)) {
|
||||
$config[$key] = $this->configProxy->getUserValueBool($user, $key, $defaults[$key]);
|
||||
} elseif (in_array($key, $arrays)) {
|
||||
$config[$key] = $this->configProxy->getUserValueArray($user, $key, $defaults[$key]);
|
||||
} elseif (in_array($key, $integers)) {
|
||||
$config[$key] = $this->configProxy->getUserValueInt($user, $key, $defaults[$key]);
|
||||
} else {
|
||||
$config[$key] = $this->configProxy->getUserValue($user, $key, $defaults[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($defaults as $key => $default) {
|
||||
if (!array_key_exists($key, $config)) {
|
||||
$config[$key] = $default;
|
||||
}
|
||||
}
|
||||
|
||||
return new JSONResponse($config);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\SideMenu\Service;
|
||||
|
||||
use OC\User\User;
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\EventDispatcher\IEventDispatcher;
|
||||
use OCP\INavigationManager;
|
||||
use OCP\IUserSession;
|
||||
use OCP\L10N\IFactory;
|
||||
|
||||
/**
|
||||
* class AppRepository.
|
||||
*
|
||||
* @author Simon Vieille <simon@deblan.fr>
|
||||
*/
|
||||
class AppRepository
|
||||
{
|
||||
public function __construct(
|
||||
protected \OC_App $ocApp,
|
||||
protected INavigationManager $navigationManager,
|
||||
protected IFactory $l10nFactory,
|
||||
protected ConfigProxy $config,
|
||||
protected CategoryRepository $categoryRepository,
|
||||
protected IEventDispatcher $dispatcher,
|
||||
protected IUserSession $userSession,
|
||||
) {
|
||||
$this->dispatcher->dispatchTyped(new BeforeTemplateRenderedEvent(
|
||||
$this->userSession->isLoggedIn(),
|
||||
new TemplateResponse(Application::APP_NAME, '')
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves visibles apps.
|
||||
*/
|
||||
public function getVisibleApps(): array
|
||||
{
|
||||
$navigation = $this->navigationManager->getAll();
|
||||
$appCategoriesCustom = $this->config->getAppValueArray('apps-categories-custom', '[]');
|
||||
$categories = $this->categoryRepository->getOrderedCategories();
|
||||
$apps = $this->ocApp->listAllApps();
|
||||
$visibleApps = [];
|
||||
|
||||
foreach ($apps as $app) {
|
||||
$id = $app['id'];
|
||||
|
||||
foreach ([$app['id'], $app['id'].'_index'] as $id) {
|
||||
if (isset($navigation[$id])) {
|
||||
$app['name'] = $this->getAppName($app);
|
||||
$app['href'] = $navigation[$id]['href'];
|
||||
$app['icon'] = $navigation[$id]['icon'];
|
||||
|
||||
$visibleApps[$id] = $app;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($navigation as $app) {
|
||||
if ('external_index' === substr($app['id'], 0, 14)) {
|
||||
$visibleApps[$app['id']] = [
|
||||
'id' => $app['id'],
|
||||
'name' => $this->getAppName($app),
|
||||
'href' => $app['href'],
|
||||
'icon' => $app['icon'],
|
||||
'category' => [
|
||||
'external_links',
|
||||
],
|
||||
];
|
||||
} elseif ('tables_application' === substr($app['id'], 0, 18)) {
|
||||
$visibleApps[$app['id']] = [
|
||||
'id' => $app['id'],
|
||||
'name' => $this->getAppName($app),
|
||||
'href' => $app['href'],
|
||||
'icon' => $app['icon'],
|
||||
'category' => [],
|
||||
];
|
||||
} elseif ('files' === $app['id']) {
|
||||
$visibleApps[$app['id']] = [
|
||||
'id' => $app['id'],
|
||||
'name' => $this->getAppName($app),
|
||||
'href' => $app['href'],
|
||||
'icon' => $app['icon'],
|
||||
'category' => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($visibleApps as $id => $app) {
|
||||
if (isset($appCategoriesCustom[$id], $categories[$appCategoriesCustom[$id]])) {
|
||||
$visibleApps[$id]['category'] = [$appCategoriesCustom[$id]];
|
||||
}
|
||||
}
|
||||
|
||||
return $visibleApps;
|
||||
}
|
||||
|
||||
public function getAppName($app): string
|
||||
{
|
||||
return $this->config->getAppValue(
|
||||
'app.navigation.name',
|
||||
$this->l10nFactory->get($app['id'])->t($app['name']),
|
||||
$app['id']
|
||||
);
|
||||
}
|
||||
|
||||
public function getOrderedApps(?User $user = null): array
|
||||
{
|
||||
$apps = $this->getVisibleApps();
|
||||
$orders = $this->config->getAppValueArray('apps-order', '[]');
|
||||
|
||||
if (null !== $user && !$this->config->getAppValueBool('force', '0')) {
|
||||
$userOrders = $this->config->getUserValueArray($user, 'apps-order', '[]');
|
||||
|
||||
if (!empty($userOrders)) {
|
||||
$orders = $userOrders;
|
||||
}
|
||||
}
|
||||
|
||||
usort($apps, function ($a, $b) use ($orders) {
|
||||
$ak = array_keys($orders, $a['id'])[0] ?? null;
|
||||
$bk = array_keys($orders, $b['id'])[0] ?? null;
|
||||
|
||||
if (null === $ak || null === $bk) {
|
||||
return ($a['name'] < $b['name']) ? -1 : 1;
|
||||
}
|
||||
|
||||
return $ak < $bk ? -1 : 1;
|
||||
});
|
||||
|
||||
return $apps;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\SideMenu\Service;
|
||||
|
||||
use OC\App\AppStore\Fetcher\CategoryFetcher;
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCP\IConfig;
|
||||
use OCP\IUserSession;
|
||||
use OCP\L10N\IFactory;
|
||||
|
||||
/**
|
||||
* class CategoryRepository.
|
||||
*
|
||||
* @author Simon Vieille <simon@deblan.fr>
|
||||
*/
|
||||
class CategoryRepository
|
||||
{
|
||||
public function __construct(
|
||||
protected CategoryFetcher $categoryFetcher,
|
||||
protected ConfigProxy $config,
|
||||
protected IConfig $iConfig,
|
||||
protected IFactory $l10nFactory,
|
||||
protected IUserSession $userSession,
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves categories.
|
||||
*/
|
||||
public function getOrderedCategories(): array
|
||||
{
|
||||
$currentLanguage = substr($this->l10nFactory->findLanguage(), 0, 2);
|
||||
$type = $this->config->getAppValue('categories-order-type', 'default');
|
||||
$order = $this->config->getAppValueArray('categories-order', '[]');
|
||||
$categoriesLabels = $this->config->getAppValueArray('cache-categories', '[]');
|
||||
$customCategories = $this->config->getAppValueArray('categories-custom', '[]');
|
||||
|
||||
if (empty($categoriesLabels)) {
|
||||
$categoriesLabels = $this->categoryFetcher->get();
|
||||
|
||||
$this->iConfig->setAppValue(Application::APP_ID, 'cache-categories', json_encode($categoriesLabels));
|
||||
}
|
||||
|
||||
foreach ($categoriesLabels as $k => $category) {
|
||||
$categoriesLabels[$category['id']] = $category['translations'][$currentLanguage]['name'] ??
|
||||
$category['translations']['en']['name'];
|
||||
|
||||
unset($categoriesLabels[$k]);
|
||||
}
|
||||
|
||||
$categoriesLabels['external_links'] = $this->l10nFactory->get('external')->t('External sites');
|
||||
$categoriesLabels['other'] = '';
|
||||
|
||||
$user = $this->userSession->getUser();
|
||||
|
||||
if ($user) {
|
||||
$lang = $this->iConfig->getUserValue($user->getUid(), 'core', 'lang');
|
||||
} else {
|
||||
$lang = 'en';
|
||||
}
|
||||
|
||||
foreach ($customCategories as $category) {
|
||||
$categoriesLabels[$category['id']] = $category[$lang] ?? $category['en'];
|
||||
}
|
||||
|
||||
asort($categoriesLabels);
|
||||
|
||||
if ('custom' === $type) {
|
||||
$ordered = [];
|
||||
|
||||
foreach ($order as $id) {
|
||||
if (isset($categoriesLabels[$id])) {
|
||||
$ordered[$id] = $categoriesLabels[$id];
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($categoriesLabels as $id => $value) {
|
||||
if (!isset($ordered[$id])) {
|
||||
$ordered[$id] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
$categoriesLabels = $ordered;
|
||||
}
|
||||
|
||||
return $categoriesLabels;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\SideMenu\Service;
|
||||
|
||||
use OCA\Theming\ThemingDefaults;
|
||||
|
||||
/**
|
||||
* class Color.
|
||||
*
|
||||
* @author Simon Vieille <simon@deblan.fr>
|
||||
*/
|
||||
class Color
|
||||
{
|
||||
public function __construct(protected ThemingDefaults $theming)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @thanks https://stackoverflow.com/posts/54393956/revision
|
||||
*/
|
||||
public function adjustBrightness(string $hexCode, float $adjustPercent): string
|
||||
{
|
||||
$hexCode = ltrim($hexCode, '#');
|
||||
|
||||
if (3 == strlen($hexCode)) {
|
||||
$hexCode = $hexCode[0].$hexCode[0].$hexCode[1].$hexCode[1].$hexCode[2].$hexCode[2];
|
||||
}
|
||||
|
||||
$hexCode = array_map('hexdec', str_split($hexCode, 2));
|
||||
|
||||
foreach ($hexCode as &$color) {
|
||||
$adjustableLimit = $adjustPercent < 0 ? $color : 255 - $color;
|
||||
$adjustAmount = ceil($adjustableLimit * $adjustPercent);
|
||||
|
||||
$color = str_pad(dechex($color + $adjustAmount), 2, '0', STR_PAD_LEFT);
|
||||
}
|
||||
|
||||
return '#'.implode($hexCode);
|
||||
}
|
||||
|
||||
public function getPrimaryColor()
|
||||
{
|
||||
return $this->theming->getColorPrimary();
|
||||
}
|
||||
|
||||
public function getLightenPrimaryColor()
|
||||
{
|
||||
return $this->adjustBrightness($this->getPrimaryColor(), 0.2);
|
||||
}
|
||||
|
||||
public function getDarkenPrimaryColor()
|
||||
{
|
||||
return $this->adjustBrightness($this->getPrimaryColor(), -0.2);
|
||||
}
|
||||
|
||||
public function getDarkenPrimaryColor2()
|
||||
{
|
||||
return $this->adjustBrightness($this->getPrimaryColor(), -0.3);
|
||||
}
|
||||
|
||||
public function getTextColorPrimary()
|
||||
{
|
||||
return $this->theming->getTextColorPrimary();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\SideMenu\Service;
|
||||
|
||||
use OC\User\User;
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCP\IConfig;
|
||||
|
||||
/**
|
||||
* class Config.
|
||||
*
|
||||
* @author Simon Vieille <simon@deblan.fr>
|
||||
*/
|
||||
class ConfigProxy
|
||||
{
|
||||
public function __construct(protected IConfig $config)
|
||||
{
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
public function getAppValue(string $name, string $default, $appId = null): string
|
||||
{
|
||||
return (string) $this->config->getAppValue($appId ?? Application::APP_ID, $name, $default);
|
||||
}
|
||||
|
||||
public function getUserValue(User $user, string $name, string $default, $appId = null): string
|
||||
{
|
||||
return (string) $this->config->getUserValue($user->getUid(), $appId ?? Application::APP_ID, $name, $default);
|
||||
}
|
||||
|
||||
public function getAppValueBool(string $name, string $default, $appId = null): bool
|
||||
{
|
||||
return (bool) $this->getAppValue($name, $default, $appId);
|
||||
}
|
||||
|
||||
public function getAppValueArray(string $name, string $default, $appId = null): array
|
||||
{
|
||||
return (array) json_decode($this->getAppValue($name, $default, $appId), true);
|
||||
}
|
||||
|
||||
public function getAppValueInt(string $name, string $default, $appId = null): int
|
||||
{
|
||||
return (int) $this->getAppValue($name, $default, $appId);
|
||||
}
|
||||
|
||||
public function getUserValueBool(User $user, string $name, string $default, $appId = null): bool
|
||||
{
|
||||
return (bool) str_replace(
|
||||
['yes', 'no'],
|
||||
['1', '0'],
|
||||
$this->getUserValue($user, $name, $default, $appId)
|
||||
);
|
||||
}
|
||||
|
||||
public function getUserValueArray(User $user, string $name, string $default, $appId = null): array
|
||||
{
|
||||
return (array) json_decode($this->getUserValue($user, $name, $default, $appId), true);
|
||||
}
|
||||
|
||||
public function getUserValueInt(User $user, string $name, string $default, $appId = null): int
|
||||
{
|
||||
return (int) $this->getUserValue($user, $name, $default, $appId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\SideMenu\Service;
|
||||
|
||||
use OCP\IDBConnection;
|
||||
|
||||
/**
|
||||
* class LangRepository.
|
||||
*
|
||||
* @author Simon Vieille <simon@deblan.fr>
|
||||
*/
|
||||
class LangRepository
|
||||
{
|
||||
public function __construct(protected IDBConnection $db)
|
||||
{
|
||||
$this->db = $db;
|
||||
}
|
||||
|
||||
public function getUsedLangs(): array
|
||||
{
|
||||
$qb = $this->db->getQueryBuilder();
|
||||
|
||||
$qb->select($qb->createFunction('DISTINCT configvalue'))
|
||||
->where('configkey=:configkey and appid=:appid and configvalue<>:configvalue')
|
||||
->setParameters([
|
||||
'configkey' => 'lang',
|
||||
'appid' => 'core',
|
||||
'configvalue' => 'en',
|
||||
])
|
||||
->from('preferences')
|
||||
;
|
||||
|
||||
// Nextcloud >=33+
|
||||
if (method_exists($qb, 'executeQuery')) {
|
||||
$stmt = $qb->executeQuery();
|
||||
} else {
|
||||
$stmt = $qb->execute();
|
||||
}
|
||||
|
||||
$langs = ['en'];
|
||||
|
||||
foreach ($stmt->fetchAll() as $result) {
|
||||
$langs[] = $result['configvalue'];
|
||||
}
|
||||
|
||||
return $langs;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Settings;
|
||||
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCA\SideMenu\Service\AppRepository;
|
||||
use OCA\SideMenu\Service\CategoryRepository;
|
||||
use OCA\SideMenu\Service\Color;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCA\SideMenu\Service\LangRepository;
|
||||
use OCA\Theming\ThemingDefaults;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IL10N;
|
||||
use OCP\Settings\ISettings;
|
||||
|
||||
class Admin implements ISettings
|
||||
{
|
||||
public function __construct(
|
||||
protected IL10N $l,
|
||||
protected ConfigProxy $config,
|
||||
protected AppRepository $appRepository,
|
||||
protected CategoryRepository $categoryRepository,
|
||||
protected ThemingDefaults $theming,
|
||||
protected Color $color,
|
||||
protected LangRepository $langRepository,
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TemplateResponse
|
||||
*/
|
||||
public function getForm()
|
||||
{
|
||||
$primaryColor = $this->theming->getColorPrimary();
|
||||
$lightenPrimaryColor = $this->color->adjustBrightness($primaryColor, 0.2);
|
||||
$darkenPrimaryColor = $this->color->adjustBrightness($primaryColor, -0.2);
|
||||
$darkenPrimaryColor2 = $this->color->adjustBrightness($primaryColor, -0.3);
|
||||
$textColor = $this->theming->getTextColorPrimary();
|
||||
|
||||
$backgroundColor = $this->config->getAppValue('background-color', $darkenPrimaryColor);
|
||||
$backgroundColorTo = $this->config->getAppValue('background-color-to', $darkenPrimaryColor);
|
||||
|
||||
$darkModeBackgroundColor = $this->config->getAppValue('dark-mode-background-color', $darkenPrimaryColor);
|
||||
$darkModeBackgroundColorTo = $this->config->getAppValue('dark-mode-background-color-to', $darkenPrimaryColor);
|
||||
|
||||
$parameters = [
|
||||
'defaults' => [
|
||||
'background-color' => $darkenPrimaryColor,
|
||||
'background-color-to' => $darkenPrimaryColor,
|
||||
'current-app-background-color' => $darkenPrimaryColor2,
|
||||
'text-color' => $textColor,
|
||||
'loader-color' => $lightenPrimaryColor,
|
||||
'dark-mode-background-color' => $darkenPrimaryColor,
|
||||
'dark-mode-background-color-to' => $darkenPrimaryColor,
|
||||
'dark-mode-current-app-background-color' => $darkenPrimaryColor2,
|
||||
'dark-mode-text-color' => $textColor,
|
||||
'dark-mode-loader-color' => $textColor,
|
||||
],
|
||||
'background-color' => $backgroundColor,
|
||||
'background-color-to' => $backgroundColorTo,
|
||||
'background-color-opacity' => $this->config->getAppValueInt('background-color-opacity', '100'),
|
||||
'current-app-background-color' => $this->config->getAppValue(
|
||||
'current-app-background-color',
|
||||
$darkenPrimaryColor2
|
||||
),
|
||||
'loader-color' => $this->config->getAppValue('loader-color', $lightenPrimaryColor),
|
||||
'icon-invert-filter' => $this->config->getAppValueInt('icon-invert-filter', '0'),
|
||||
'icon-opacity' => $this->config->getAppValueInt('icon-opacity', '100'),
|
||||
'text-color' => $this->config->getAppValue('text-color', $textColor),
|
||||
'dark-mode-background-color' => $darkModeBackgroundColor,
|
||||
'dark-mode-background-color-to' => $darkModeBackgroundColorTo,
|
||||
'dark-mode-background-color-opacity' => $this->config->getAppValueInt(
|
||||
'dark-mode-background-color-opacity',
|
||||
'100'
|
||||
),
|
||||
'dark-mode-current-app-background-color' => $this->config->getAppValue(
|
||||
'dark-mode-current-app-background-color',
|
||||
$darkenPrimaryColor2
|
||||
),
|
||||
'dark-mode-loader-color' => $this->config->getAppValue('dark-mode-loader-color', $textColor),
|
||||
'dark-mode-icon-invert-filter' => $this->config->getAppValueInt('dark-mode-icon-invert-filter', '0'),
|
||||
'dark-mode-icon-opacity' => $this->config->getAppValueInt('dark-mode-icon-opacity', '100'),
|
||||
'dark-mode-text-color' => $this->config->getAppValue('dark-mode-text-color', $textColor),
|
||||
'dark-mode-opener' => $this->config->getAppValue('dark-mode-opener', 'side-menu-opener'),
|
||||
'opener' => $this->config->getAppValue('opener', 'side-menu-opener'),
|
||||
'loader-enabled' => $this->config->getAppValue('loader-enabled', '1'),
|
||||
'cache' => $this->config->getAppValue('cache', '0'),
|
||||
'always-displayed' => $this->config->getAppValue('always-displayed', '0'),
|
||||
'big-menu' => $this->config->getAppValue('big-menu', '0'),
|
||||
'side-with-categories' => $this->config->getAppValue('side-with-categories', '0'),
|
||||
'big-menu-hidden-apps' => $this->config->getAppValueArray('big-menu-hidden-apps', '[]'),
|
||||
'display-logo' => $this->config->getAppValue('display-logo', '1'),
|
||||
'add-logo-link' => $this->config->getAppValue('add-logo-link', '1'),
|
||||
'use-avatar' => $this->config->getAppValue('use-avatar', '0'),
|
||||
'opener-position' => $this->config->getAppValue('opener-position', 'before'),
|
||||
'opener-hover' => $this->config->getAppValue('opener-hover', '0'),
|
||||
'opener-only' => $this->config->getAppValue('opener-only', '0'),
|
||||
'show-settings' => $this->config->getAppValue('show-settings', '0'),
|
||||
'hide-when-no-apps' => $this->config->getAppValue('hide-when-no-apps', '0'),
|
||||
'size-icon' => $this->config->getAppValue('size-icon', 'normal'),
|
||||
'size-text' => $this->config->getAppValue('size-text', 'normal'),
|
||||
'force' => $this->config->getAppValue('force', '0'),
|
||||
'target-blank-apps' => $this->config->getAppValueArray('target-blank-apps', '[]'),
|
||||
'top-menu-apps' => $this->config->getAppValueArray('top-menu-apps', '[]'),
|
||||
'top-menu-mouse-over-hidden-label' => $this->config->getAppValue(
|
||||
'top-menu-mouse-over-hidden-label',
|
||||
'0'
|
||||
),
|
||||
'apps-order' => $this->config->getAppValueArray('apps-order', '[]'),
|
||||
'ordered-apps' => $this->appRepository->getOrderedApps(),
|
||||
'top-side-menu-apps' => $this->config->getAppValueArray('top-side-menu-apps', '[]'),
|
||||
'default-enabled' => $this->config->getAppValue('default-enabled', '1'),
|
||||
'apps' => $this->appRepository->getVisibleApps(),
|
||||
'apps-categories-custom' => $this->config->getAppValueArray('apps-categories-custom', '[]'),
|
||||
'categories-order-type' => $this->config->getAppValue('categories-order-type', 'default'),
|
||||
'categories-order' => $this->config->getAppValueArray('categories-order', '[]'),
|
||||
'categories-custom' => $this->config->getAppValueArray('categories-custom', '[]'),
|
||||
'categories' => $this->categoryRepository->getOrderedCategories(),
|
||||
'langs' => $this->langRepository->getUsedLangs(),
|
||||
];
|
||||
|
||||
return new TemplateResponse(Application::APP_ID, 'settings/admin-form', $parameters, '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string the section ID, e.g. 'sharing'
|
||||
*/
|
||||
public function getSection()
|
||||
{
|
||||
return Application::APP_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int whether the form should be rather on the top or bottom of
|
||||
* the admin section. The forms are arranged in ascending order of the
|
||||
* priority values. It is required to return a value between 0 and 100.
|
||||
*
|
||||
* E.g.: 70
|
||||
*/
|
||||
public function getPriority()
|
||||
{
|
||||
return 70;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Settings;
|
||||
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCP\IL10N;
|
||||
use OCP\IURLGenerator;
|
||||
use OCP\Settings\IIconSection;
|
||||
|
||||
class AdminSection implements IIconSection
|
||||
{
|
||||
public function __construct(
|
||||
protected IURLGenerator $url,
|
||||
protected IL10N $l,
|
||||
) {
|
||||
}
|
||||
|
||||
public function getID()
|
||||
{
|
||||
return Application::APP_ID;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return $this->l->t(Application::APP_NAME);
|
||||
}
|
||||
|
||||
public function getPriority()
|
||||
{
|
||||
return 70;
|
||||
}
|
||||
|
||||
public function getIcon()
|
||||
{
|
||||
return $this->url->imagePath(Application::APP_ID, 'icon.svg');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Settings;
|
||||
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCA\SideMenu\Service\AppRepository;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IL10N;
|
||||
use OCP\IUserSession;
|
||||
use OCP\Settings\ISettings;
|
||||
|
||||
class Personal implements ISettings
|
||||
{
|
||||
public function __construct(
|
||||
protected IL10N $l,
|
||||
protected ConfigProxy $config,
|
||||
protected IUserSession $userSession,
|
||||
protected AppRepository $appRepository,
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TemplateResponse
|
||||
*/
|
||||
public function getForm()
|
||||
{
|
||||
$user = $this->userSession->getUser();
|
||||
|
||||
$parameters = [
|
||||
'force' => $this->config->getAppValueBool('force', '0'),
|
||||
'enabled' => $this->config->getUserValue(
|
||||
$user,
|
||||
'enabled',
|
||||
$this->config->getAppValue('default-enabled', '1')
|
||||
),
|
||||
'top-menu-apps' => $this->config->getUserValueArray($user, 'top-menu-apps', '[]'),
|
||||
'top-side-menu-apps' => $this->config->getUserValueArray($user, 'top-side-menu-apps', '[]'),
|
||||
'target-blank-mode' => $this->config->getUserValue($user, 'target-blank-mode', '1'),
|
||||
'target-blank-apps' => $this->config->getUserValueArray($user, 'target-blank-apps', '[]'),
|
||||
'apps-order' => $this->config->getUserValueArray($user, 'apps-order', '[]'),
|
||||
'apps' => $this->appRepository->getVisibleApps(),
|
||||
'ordered-apps' => $this->appRepository->getOrderedApps($user),
|
||||
];
|
||||
|
||||
return new TemplateResponse(Application::APP_ID, 'settings/personal-form', $parameters, '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string the section ID, e.g. 'sharing'
|
||||
*/
|
||||
public function getSection()
|
||||
{
|
||||
return Application::APP_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int whether the form should be rather on the top or bottom of
|
||||
* the admin section. The forms are arranged in ascending order of the
|
||||
* priority values. It is required to return a value between 0 and 100.
|
||||
*
|
||||
* E.g.: 70
|
||||
*/
|
||||
public function getPriority()
|
||||
{
|
||||
return 70;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace OCA\SideMenu\Settings;
|
||||
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
use OCA\SideMenu\Service\ConfigProxy;
|
||||
use OCP\IL10N;
|
||||
use OCP\IURLGenerator;
|
||||
use OCP\Settings\IIconSection;
|
||||
|
||||
class PersonalSection implements IIconSection
|
||||
{
|
||||
public function __construct(
|
||||
protected IURLGenerator $url,
|
||||
protected IL10N $l,
|
||||
protected ConfigProxy $configProxy,
|
||||
) {
|
||||
}
|
||||
|
||||
public function getID()
|
||||
{
|
||||
if ($this->configProxy->getAppValueBool('force', '0')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return Application::APP_ID;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
if ($this->configProxy->getAppValueBool('force', '0')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $this->l->t(Application::APP_NAME);
|
||||
}
|
||||
|
||||
public function getPriority()
|
||||
{
|
||||
if ($this->configProxy->getAppValueBool('force', '0')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return 70;
|
||||
}
|
||||
|
||||
public function getIcon()
|
||||
{
|
||||
return $this->url->imagePath(Application::APP_ID, 'icon.svg');
|
||||
}
|
||||
}
|
||||
@@ -1,58 +1,55 @@
|
||||
{
|
||||
"license": "agpl",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "NODE_ENV=production webpack --progress --hide-modules --config webpack.js",
|
||||
"dev": "NODE_ENV=development webpack --progress --config webpack.js",
|
||||
"watch": "NODE_ENV=development webpack --progress --watch --config webpack.js",
|
||||
"lint": "eslint --ext .js,.vue src",
|
||||
"lint:fix": "eslint --ext .js,.vue src --fix",
|
||||
"stylelint": "stylelint src",
|
||||
"stylelint:fix": "stylelint src --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nextcloud/axios": "^1.3.2",
|
||||
"@nextcloud/vue": "^1.4.0",
|
||||
"vue": "^2.6.11"
|
||||
},
|
||||
"browserslist": [
|
||||
"extends @nextcloud/browserslist-config"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/preset-env": "^7.9.0",
|
||||
"@nextcloud/browserslist-config": "^1.0.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"babel-loader": "^8.1.0",
|
||||
"css-loader": "^3.4.2",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-config-nextcloud": "0.1.1",
|
||||
"eslint-config-standard": "^12.0.0",
|
||||
"eslint-import-resolver-webpack": "^0.12.1",
|
||||
"eslint-loader": "^3.0.3",
|
||||
"eslint-plugin-import": "^2.20.0",
|
||||
"eslint-plugin-nextcloud": "^0.3.0",
|
||||
"eslint-plugin-node": "^10.0.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
"eslint-plugin-vue": "^5.2.3",
|
||||
"file-loader": "^6.0.0",
|
||||
"node-sass": "^4.13.1",
|
||||
"sass-loader": "^8.0.2",
|
||||
"stylelint": "^8.4.0",
|
||||
"stylelint-config-recommended-scss": "^3.3.0",
|
||||
"stylelint-scss": "^3.16.0",
|
||||
"stylelint-webpack-plugin": "^0.10.5",
|
||||
"url-loader": "^4.0.0",
|
||||
"vue-loader": "^15.9.1",
|
||||
"vue-template-compiler": "^2.6.11",
|
||||
"webpack": "^4.42.0",
|
||||
"webpack-cli": "^3.3.11",
|
||||
"webpack-merge": "^4.2.2",
|
||||
"webpack-node-externals": "^1.7.2"
|
||||
}
|
||||
"license": "agpl",
|
||||
"private": true,
|
||||
"module": true,
|
||||
"scripts": {
|
||||
"build": "NODE_ENV=production ./node_modules/.bin/webpack-cli --progress --config webpack.config.js",
|
||||
"dev": "NODE_ENV=development ./node_modules/.bin/webpack-cli --progress --config webpack.config.js",
|
||||
"watch": "NODE_ENV=development ./node_modules/.bin/webpack-cli --progress --watch --config webpack.config.js",
|
||||
"lint": "ESLINT_USE_FLAT_CONFIG=false ./node_modules/.bin/eslint --ext .js,.vue --ignore-path .gitignore --fix src",
|
||||
"format": "./node_modules/.bin/prettier src --write"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": ">=7.12.0 <8.0.0",
|
||||
"@formatjs/intl-segmenter": "^12.0.8",
|
||||
"@nextcloud/router": "^3.0.1",
|
||||
"@nextcloud/vue": "^9.0.0-alpha.8",
|
||||
"node-polyfill-webpack-plugin": "^4.1.0",
|
||||
"pinia": "^3.0.1",
|
||||
"postcss": "^7.0.0 || ^8.0.1",
|
||||
"vue": "^3.5.13",
|
||||
"vuedraggable": "^4.1.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"extends @nextcloud/browserslist-config"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=16.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@nextcloud/axios": "^2.5.1",
|
||||
"@nextcloud/browserslist-config": "^3.0.1",
|
||||
"@nextcloud/event-bus": "^3.3.1",
|
||||
"@nextcloud/initial-state": "^2.2.0",
|
||||
"@nextcloud/l10n": "^3.2.0",
|
||||
"babel-loader": "^9.1.3",
|
||||
"css-loader": "^7.1.2",
|
||||
"eslint": "^9.19.0",
|
||||
"eslint-config-prettier": "^10.0.1",
|
||||
"eslint-plugin-vue": "^9.32.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"mini-css-extract-plugin": "^2.9.1",
|
||||
"postcss-loader": "^8.1.1",
|
||||
"prettier": "3.4.2",
|
||||
"sass": "^1.78.0",
|
||||
"sass-loader": "^16.0.1",
|
||||
"source-map-loader": "^5.0.0",
|
||||
"style-loader": "^4.0.0",
|
||||
"vue-loader": "^17.4.2",
|
||||
"vue-router": "^4.4.5",
|
||||
"webpack": "^5.94.0",
|
||||
"webpack-cli": "^5.1.4",
|
||||
"webpack-notifier": "^1.15.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||
}
|
||||
|
After Width: | Height: | Size: 223 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 485 KiB |
|
After Width: | Height: | Size: 313 KiB |
|
After Width: | Height: | Size: 324 KiB |
|
After Width: | Height: | Size: 246 KiB |
@@ -1,21 +0,0 @@
|
||||
import Vue from 'vue'
|
||||
import SideMenu from './SideMenu.vue'
|
||||
|
||||
Vue.prototype.t = t
|
||||
Vue.prototype.OC = OC
|
||||
|
||||
const View = Vue.extend(SideMenu)
|
||||
const sideMenu = new View({
|
||||
})
|
||||
|
||||
const mountSideMenuComponent = () => {
|
||||
const sideMenuContainer = document.querySelector('#side-menu')
|
||||
|
||||
if (sideMenuContainer) {
|
||||
sideMenu.$mount('#side-menu')
|
||||
} else {
|
||||
window.setTimeout(mountSideMenuComponent, 50)
|
||||
}
|
||||
}
|
||||
|
||||
mountSideMenuComponent()
|
||||
@@ -1,51 +0,0 @@
|
||||
<template>
|
||||
<div id="side-menu">
|
||||
<div class="side-menu-header">
|
||||
<button class="side-menu-opener"></button>
|
||||
|
||||
<div v-if="logo" class="side-menu-logo">
|
||||
<img v-bind:src="logo">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="side-menu-apps-list">
|
||||
<li v-for="app in apps" class="side-menu-app">
|
||||
<a v-bind:href="app.href">
|
||||
<img v-bind:src="app.icon" v-bind:alt="app.name" class="side-menu-app-icon">
|
||||
|
||||
{{ app.name }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import axios from '@nextcloud/axios'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
|
||||
export default {
|
||||
name: 'SideMenu',
|
||||
data() {
|
||||
return {
|
||||
apps: [],
|
||||
logo: null
|
||||
}
|
||||
},
|
||||
created() {
|
||||
let that = this
|
||||
|
||||
axios.get(generateUrl('apps/side_menu/side_menu/api/apps'))
|
||||
.then(response => {
|
||||
this.apps = response.data
|
||||
})
|
||||
|
||||
this.logo = window.getComputedStyle(document.querySelector('#nextcloud .logo'), null)
|
||||
.getPropertyValue('background-image')
|
||||
.replace('url("', '')
|
||||
.replace('")', '')
|
||||
|
||||
console.log(this.logo)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import './scss/admin.scss'
|
||||
|
||||
import '@formatjs/intl-segmenter/polyfill.js'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import { waitContainer } from './lib/dom.js'
|
||||
|
||||
import AdminSettings from './pages/AdminSettings'
|
||||
|
||||
waitContainer('#side-menu-admin-settings').then((selector) => {
|
||||
const pinia = createPinia()
|
||||
const app = createApp(AdminSettings)
|
||||
app.use(pinia)
|
||||
app.mixin({ methods: { t, n } })
|
||||
app.mount(selector)
|
||||
})
|
||||
@@ -0,0 +1,29 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div class="cm-search">
|
||||
<input
|
||||
v-model="model"
|
||||
type="text"
|
||||
:placeholder="t('side_menu', 'Search')"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const model = defineModel({ type: String })
|
||||
</script>
|
||||
@@ -0,0 +1,29 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<button
|
||||
class="cm-opener cm-closer"
|
||||
:arial-label="t('side_menu', 'Close the menu')"
|
||||
@click="$emit('click')"
|
||||
>
|
||||
<span>{{ t('side_menu', 'Close the menu') }}</span>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
defineEmits(['click'])
|
||||
</script>
|
||||
@@ -0,0 +1,52 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div :class="classes">
|
||||
<a
|
||||
v-if="link !== null"
|
||||
:href="link"
|
||||
>
|
||||
<img
|
||||
:src="image"
|
||||
alt="Logo"
|
||||
/>
|
||||
</a>
|
||||
<img
|
||||
v-else
|
||||
:src="image"
|
||||
alt="Logo"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { image, link, classes } = defineProps({
|
||||
image: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
link: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: null,
|
||||
},
|
||||
classes: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,29 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<button
|
||||
class="cm-opener"
|
||||
:arial-label="label"
|
||||
@click="$emit('click')"
|
||||
>
|
||||
<span>{{ t('side_menu', 'Toggle the menu') }}</span>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
defineEmits(['click'])
|
||||
</script>
|
||||
@@ -0,0 +1,49 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div class="cm-loader">
|
||||
<div
|
||||
class="cm-loader-bar"
|
||||
:style="createStyle(width)"
|
||||
></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
const width = ref(0)
|
||||
const createStyle = (size) => {
|
||||
return {
|
||||
width: `${size}%`,
|
||||
}
|
||||
}
|
||||
let interval = null
|
||||
|
||||
onMounted(() => {
|
||||
window.addEventListener('beforeunload', () => {
|
||||
interval = setInterval(() => {
|
||||
width.value = Math.min(width.value + 0.2, 100)
|
||||
|
||||
if (width.value === 100) {
|
||||
clearInterval(interval)
|
||||
window.setTimeout(() => (width.value = 0), 2000)
|
||||
}
|
||||
}, 25)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,49 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div class="cm-setting">
|
||||
<a :href="href">
|
||||
<!--
|
||||
{{ label }}
|
||||
-->
|
||||
|
||||
<span class="avatardiv avatardiv-shown">
|
||||
<img
|
||||
:src="avatar"
|
||||
:alt="label"
|
||||
/>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { label, href, avatar } = defineProps({
|
||||
label: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
href: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
avatar: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,58 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<li :class="classes">
|
||||
<a
|
||||
:href="href"
|
||||
:target="target"
|
||||
:title="label"
|
||||
>
|
||||
<img
|
||||
class="cm-app-icon"
|
||||
:src="icon"
|
||||
:alt="label"
|
||||
/>
|
||||
<span class="cm-app-text">{{ label }}</span>
|
||||
</a>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { label, icon, href, classes, target } = defineProps({
|
||||
label: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
href: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
classes: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
target: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: null,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,58 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<li :class="classes">
|
||||
<a
|
||||
:href="href"
|
||||
:target="target"
|
||||
:title="label"
|
||||
>
|
||||
<img
|
||||
class="cm-app-icon"
|
||||
:src="icon"
|
||||
:alt="label"
|
||||
/>
|
||||
<span class="cm-app-text">{{ label }}</span>
|
||||
</a>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { label, icon, href, classes, target } = defineProps({
|
||||
label: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
href: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
classes: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
target: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: null,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,103 @@
|
||||
<template>
|
||||
<div class="cm-settings-btn cm-settings-btn--save">
|
||||
<NcButton
|
||||
variant="success"
|
||||
@click="save"
|
||||
>
|
||||
<template v-if="!loading">
|
||||
{{ t('side_menu', 'Save') }}
|
||||
</template>
|
||||
<NcLoadingIcon v-else />
|
||||
</NcButton>
|
||||
|
||||
<div
|
||||
v-if="error"
|
||||
id="error"
|
||||
>
|
||||
{{ error }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { NcButton, NcLoadingIcon } from '@nextcloud/vue'
|
||||
import { ref } from 'vue'
|
||||
import { waitPasswordConfirmation } from '../../lib/setting.js'
|
||||
|
||||
const loading = ref(false)
|
||||
const error = ref(null)
|
||||
const { config } = defineProps({
|
||||
config: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
|
||||
const filterConfig = (value) => {
|
||||
const result = {}
|
||||
|
||||
for (let key in value) {
|
||||
if (['cache-categories', 'cache', 'langs', 'enabled'].includes(key) === false) {
|
||||
result[key] = value[key]
|
||||
}
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
const save = async () => {
|
||||
const data = filterConfig(config)
|
||||
const size = Object.keys(data).length
|
||||
let counter = 0
|
||||
|
||||
loading.value = true
|
||||
error.value = null
|
||||
|
||||
const update = () => {
|
||||
++counter
|
||||
|
||||
if (counter === size) {
|
||||
loading.value = false
|
||||
|
||||
if (!error.value) {
|
||||
location.reload()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
waitPasswordConfirmation()
|
||||
.then(() => {
|
||||
for (let key in data) {
|
||||
let value = data[key]
|
||||
|
||||
if (Array.isArray(value) || typeof value === 'object') {
|
||||
value = JSON.stringify(value)
|
||||
} else if (typeof value === 'boolean') {
|
||||
value = value ? '1' : '0'
|
||||
}
|
||||
|
||||
OCP.AppConfig.setValue('side_menu', key, value.toString(), {
|
||||
success() {
|
||||
update()
|
||||
},
|
||||
error() {
|
||||
error.value = `Error while saving ${key}`
|
||||
update()
|
||||
},
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
counter = 0
|
||||
loading.value = false
|
||||
error.value = null
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
#error {
|
||||
padding-top: 10px;
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<a
|
||||
:href="href"
|
||||
rel="noopener"
|
||||
target="_blank"
|
||||
>
|
||||
<slot></slot>
|
||||
</a>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
defineProps({
|
||||
href: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,35 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<h2>{{ t('side_menu', label) }}</h2>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { label } = defineProps({
|
||||
label: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
h2 {
|
||||
font-size: 1.3em;
|
||||
margin: 0 0 12px 0;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,40 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div
|
||||
class="cm-settings-item"
|
||||
:class="{ 'cm-settings-item--disabled': disabled }"
|
||||
>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { disabled } = defineProps({
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.disabled {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,71 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div
|
||||
class="cm-settings-item-label"
|
||||
:class="{
|
||||
'cm-settings-item-label--short': short,
|
||||
'cm-settings-item-label--top': top,
|
||||
'cm-settings-item-label--middle': middle,
|
||||
}"
|
||||
>
|
||||
{{ t('side_menu', label) }}
|
||||
|
||||
<template v-if="help">
|
||||
<br />
|
||||
<em>{{ t('side_menu', help) }}</em>
|
||||
</template>
|
||||
<template v-if="help2">
|
||||
<br />
|
||||
<em>{{ t('side_menu', help2) }}</em>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { short, label } = defineProps({
|
||||
short: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
label: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
middle: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
top: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true,
|
||||
},
|
||||
help: {
|
||||
type: [String, null],
|
||||
required: false,
|
||||
default: null,
|
||||
},
|
||||
help2: {
|
||||
type: [String, null],
|
||||
required: false,
|
||||
default: null,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,34 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div
|
||||
class="side-menu-setting-form"
|
||||
:class="{ 'side-menu-setting-form-long': long }"
|
||||
>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { long } = defineProps({
|
||||
long: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,34 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div
|
||||
class="cm-settings-section"
|
||||
:class="{ 'cm-settings-section--hidden': hidden }"
|
||||
>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
defineProps({
|
||||
hidden: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,99 @@
|
||||
<template>
|
||||
<div class="cm-settings-btn cm-settings-btn--save">
|
||||
<NcButton
|
||||
variant="success"
|
||||
@click="save"
|
||||
>
|
||||
<template v-if="!loading">
|
||||
{{ t('side_menu', 'Save') }}
|
||||
</template>
|
||||
<NcLoadingIcon v-else />
|
||||
</NcButton>
|
||||
|
||||
<div
|
||||
v-if="error"
|
||||
id="error"
|
||||
></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { NcButton, NcLoadingIcon } from '@nextcloud/vue'
|
||||
import { ref } from 'vue'
|
||||
|
||||
const loading = ref(false)
|
||||
const error = ref(null)
|
||||
const { config } = defineProps({
|
||||
config: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
|
||||
const filterConfig = (value) => {
|
||||
const result = {}
|
||||
|
||||
for (let key in value) {
|
||||
result[key] = value[key]
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
const save = async () => {
|
||||
const data = filterConfig(config)
|
||||
const size = Object.keys(data).length
|
||||
const url = OC.generateUrl('/apps/side_menu/user/valueSet')
|
||||
|
||||
let counter = 0
|
||||
|
||||
loading.value = true
|
||||
error.value = null
|
||||
|
||||
const update = () => {
|
||||
++counter
|
||||
|
||||
if (counter === size) {
|
||||
loading.value = false
|
||||
|
||||
if (!error.value) {
|
||||
location.reload()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (let key in data) {
|
||||
let value = data[key]
|
||||
let formData = []
|
||||
|
||||
if (Array.isArray(value) || typeof value === 'object') {
|
||||
value = JSON.stringify(value)
|
||||
} else if (typeof value === 'boolean') {
|
||||
value = value ? '1' : '0'
|
||||
}
|
||||
|
||||
formData.push('name=' + encodeURIComponent(key))
|
||||
formData.push('value=' + encodeURIComponent(value.toString()))
|
||||
|
||||
fetch(url, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
},
|
||||
body: formData.join('&'),
|
||||
})
|
||||
.then(update)
|
||||
.catch(() => {
|
||||
error.value = `Error while saving ${key}`
|
||||
update()
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
#error {
|
||||
padding-top: 10px;
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,292 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div class="cm-settings-form-appcategory">
|
||||
<NcButton
|
||||
aria-label="t('side_menu', 'Customize')"
|
||||
variant="primary"
|
||||
@click="openModal"
|
||||
>
|
||||
{{ t('side_menu', 'Customize') }}
|
||||
</NcButton>
|
||||
|
||||
<NcModal
|
||||
v-if="modal"
|
||||
class="cm-settings-form-appcategory-modal"
|
||||
@close="closeModal"
|
||||
>
|
||||
<div class="modal__content">
|
||||
<div class="menu">
|
||||
<NcButton
|
||||
aria-label="t('side_menu', 'Categories')"
|
||||
:variant="section === 'cats' ? 'primary' : 'secondary'"
|
||||
@click="setSection('cats')"
|
||||
>
|
||||
{{ t('side_menu', 'Categories') }}
|
||||
</NcButton>
|
||||
<NcButton
|
||||
aria-label="t('side_menu', 'Applications')"
|
||||
:variant="section === 'apps' ? 'primary' : 'secondary'"
|
||||
@click="setSection('apps')"
|
||||
>
|
||||
{{ t('side_menu', 'Applications') }}
|
||||
</NcButton>
|
||||
</div>
|
||||
|
||||
<div v-if="section === 'cats'">
|
||||
<table
|
||||
v-if="!newCustomCategory && editCustomCategoryKey === null"
|
||||
width="100%"
|
||||
>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="(item, key) in categoriesCustom"
|
||||
:key="key"
|
||||
>
|
||||
<td>{{ item[langs[0]] }}</td>
|
||||
<td width="50px">
|
||||
<NcActions>
|
||||
<NcActionButton
|
||||
icon="icon-edit"
|
||||
@click="editCustomCategory(key)"
|
||||
></NcActionButton>
|
||||
<NcActionButton
|
||||
icon="icon-delete"
|
||||
@click="removeCustomCategory(key)"
|
||||
></NcActionButton>
|
||||
</NcActions>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div
|
||||
v-else
|
||||
class="form"
|
||||
>
|
||||
<template v-if="newCustomCategory">
|
||||
<NcTextField
|
||||
v-for="lang in langs"
|
||||
:key="lang"
|
||||
v-model="newCustomCategory[lang]"
|
||||
:label="lang"
|
||||
/>
|
||||
</template>
|
||||
<template v-if="editCustomCategoryKey !== null">
|
||||
<NcTextField
|
||||
v-for="lang in langs"
|
||||
:key="lang"
|
||||
v-model="categoriesCustom[editCustomCategoryKey][lang]"
|
||||
:label="lang"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="section === 'apps'">
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="item in apps"
|
||||
:key="item.id"
|
||||
>
|
||||
<td>
|
||||
<img
|
||||
:src="item.icon"
|
||||
:alt="item.name"
|
||||
/>
|
||||
{{ item.name }}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<FormSelect
|
||||
v-model="appsCategoriesCustom[item.id]"
|
||||
:options="getOptions(categoriesCustom)"
|
||||
:required="false"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="modal__footer">
|
||||
<template v-if="section === 'cats'">
|
||||
<template v-if="newCustomCategory">
|
||||
<NcActions>
|
||||
<NcActionButton
|
||||
icon="icon-close"
|
||||
@click="cancelCustomCategory"
|
||||
></NcActionButton>
|
||||
</NcActions>
|
||||
<NcActions>
|
||||
<NcActionButton
|
||||
icon="icon-checkmark"
|
||||
@click="saveCustomCategory"
|
||||
></NcActionButton>
|
||||
</NcActions>
|
||||
</template>
|
||||
<template v-if="editCustomCategoryKey !== null">
|
||||
<NcActions>
|
||||
<NcActionButton
|
||||
icon="icon-close"
|
||||
@click="cancelCustomCategory"
|
||||
></NcActionButton>
|
||||
</NcActions>
|
||||
</template>
|
||||
<template v-else>
|
||||
<NcActions>
|
||||
<NcActionButton
|
||||
v-if="!newCustomCategory && editCustomCategoryKey === null"
|
||||
icon="icon-add"
|
||||
@click="addCustomCategory"
|
||||
></NcActionButton>
|
||||
<NcActionButton
|
||||
v-if="editCustomCategoryKey !== null"
|
||||
icon="icon-checkmark"
|
||||
@click="saveCustomCategory"
|
||||
></NcActionButton>
|
||||
</NcActions>
|
||||
</template>
|
||||
</template>
|
||||
<NcButton
|
||||
variant="primary"
|
||||
class="btn-close"
|
||||
@click="closeModal"
|
||||
>
|
||||
{{ t('side_menu', 'Close') }}
|
||||
</NcButton>
|
||||
</div>
|
||||
</div>
|
||||
</NcModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { NcButton, NcModal, NcActions, NcActionButton, NcTextField } from '@nextcloud/vue'
|
||||
import { useNavStore } from '../../../store/nav.js'
|
||||
import { ref, onMounted, watch } from 'vue'
|
||||
import FormSelect from './FormSelect'
|
||||
|
||||
const emit = defineEmits(['update:categoriesCustom', 'update:appsCategoriesCustom'])
|
||||
const { categoriesCustom, appsCategoriesCustom, langs } = defineProps({
|
||||
categoriesCustom: {
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
appsCategoriesCustom: {
|
||||
type: [Object, Array],
|
||||
required: true,
|
||||
},
|
||||
langs: {
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
|
||||
const navStore = useNavStore()
|
||||
const modal = ref(false)
|
||||
const apps = ref([])
|
||||
const categories = ref([])
|
||||
const section = ref('apps')
|
||||
const newCustomCategory = ref(null)
|
||||
const editCustomCategoryKey = ref(null)
|
||||
|
||||
const openModal = () => {
|
||||
modal.value = true
|
||||
}
|
||||
|
||||
const closeModal = () => {
|
||||
modal.value = false
|
||||
}
|
||||
|
||||
const setSection = (value) => {
|
||||
section.value = value
|
||||
}
|
||||
|
||||
const addCustomCategory = () => {
|
||||
let data = {
|
||||
id: 'cat' + Math.random().toString().replace('0.', ''),
|
||||
}
|
||||
|
||||
langs.forEach((lang) => {
|
||||
data[lang] = ''
|
||||
})
|
||||
|
||||
newCustomCategory.value = data
|
||||
}
|
||||
|
||||
const cancelCustomCategory = () => {
|
||||
newCustomCategory.value = null
|
||||
editCustomCategoryKey.value = null
|
||||
}
|
||||
|
||||
const saveCustomCategory = () => {
|
||||
const data = categoriesCustom
|
||||
|
||||
if (editCustomCategoryKey.value === null) {
|
||||
data.push({ ...newCustomCategory.value })
|
||||
}
|
||||
|
||||
emit('update:categoriesCustom', data)
|
||||
|
||||
newCustomCategory.value = null
|
||||
editCustomCategoryKey.value = null
|
||||
}
|
||||
|
||||
const removeCustomCategory = (key) => {
|
||||
const data = categoriesCustom
|
||||
delete data[key]
|
||||
|
||||
emit('update:categoriesCustom', Object.values(data))
|
||||
}
|
||||
|
||||
const editCustomCategory = (key) => {
|
||||
editCustomCategoryKey.value = key
|
||||
}
|
||||
|
||||
const getOptions = (custom) => {
|
||||
const data = []
|
||||
|
||||
custom.forEach((item) => {
|
||||
data.push({ id: item.id, label: item[langs[0]] })
|
||||
})
|
||||
|
||||
categories.value.forEach((item) => {
|
||||
data.push({ id: item.categoryId, label: item.name !== '' ? item.name : t('side_menu', 'Other') })
|
||||
})
|
||||
|
||||
data.sort((a, b) => (a.label < b.label ? -1 : 1))
|
||||
|
||||
return data
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
apps.value = await navStore.getApps()
|
||||
categories.value = await navStore.getCategories()
|
||||
|
||||
let value = {}
|
||||
|
||||
apps.value.forEach((app) => {
|
||||
if (!appsCategoriesCustom[app.id]) {
|
||||
value[app.id] = null
|
||||
} else {
|
||||
value[app.id] = appsCategoriesCustom[app.id]
|
||||
}
|
||||
})
|
||||
|
||||
emit('update:appsCategoriesCustom', value)
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,82 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div class="cm-settings-form-apppicker">
|
||||
<NcButton
|
||||
aria-label="t('side_menu', 'Select apps')"
|
||||
variant="primary"
|
||||
@click="openModal"
|
||||
>
|
||||
{{ t('side_menu', 'Select apps') }} ({{ model.length }})
|
||||
</NcButton>
|
||||
|
||||
<NcModal
|
||||
v-if="modal"
|
||||
size="small"
|
||||
class="cm-settings-form-apppicker-modal"
|
||||
@close="closeModal"
|
||||
>
|
||||
<div class="modal__content">
|
||||
<NcCheckboxRadioSwitch
|
||||
v-for="(item, key) in apps"
|
||||
:key="key"
|
||||
v-model="model"
|
||||
name="value"
|
||||
:value="item.id"
|
||||
>
|
||||
<img
|
||||
:src="item.icon"
|
||||
:alt="item.name"
|
||||
/>
|
||||
{{ item.name }}
|
||||
</NcCheckboxRadioSwitch>
|
||||
|
||||
<div class="modal__footer">
|
||||
<NcButton
|
||||
variant="primary"
|
||||
@click="closeModal"
|
||||
>
|
||||
{{ t('side_menu', 'Close') }}
|
||||
</NcButton>
|
||||
</div>
|
||||
</div>
|
||||
</NcModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { NcButton, NcModal, NcCheckboxRadioSwitch } from '@nextcloud/vue'
|
||||
import { useNavStore } from '../../../store/nav.js'
|
||||
import { ref, onMounted } from 'vue'
|
||||
|
||||
const model = defineModel({ type: Array })
|
||||
const navStore = useNavStore()
|
||||
const modal = ref(false)
|
||||
const apps = ref([])
|
||||
|
||||
const openModal = () => {
|
||||
modal.value = true
|
||||
}
|
||||
|
||||
const closeModal = () => {
|
||||
modal.value = false
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
apps.value = await navStore.getCoreApps()
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,116 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div class="cm-settings-form-appsort">
|
||||
<NcButton
|
||||
aria-label="t('side_menu', 'Sort')"
|
||||
variant="primary"
|
||||
@click="openModal"
|
||||
>
|
||||
{{ t('side_menu', 'Sort') }}
|
||||
</NcButton>
|
||||
|
||||
<NcModal
|
||||
v-if="modal"
|
||||
size="small"
|
||||
class="cm-settings-form-appsort-modal"
|
||||
@close="closeModal"
|
||||
>
|
||||
<div class="modal__content">
|
||||
<draggable
|
||||
v-model="apps"
|
||||
item-key="id"
|
||||
@end="update"
|
||||
>
|
||||
<template #item="{ element }">
|
||||
<div class="cm-settings-form-draggable">
|
||||
<span class="cm-settings-form-arrow">⇅</span>
|
||||
{{ element.name }}
|
||||
</div>
|
||||
</template>
|
||||
</draggable>
|
||||
|
||||
<div class="modal__footer">
|
||||
<NcButton
|
||||
variant="primary"
|
||||
@click="closeModal"
|
||||
>
|
||||
{{ t('side_menu', 'Close') }}
|
||||
</NcButton>
|
||||
</div>
|
||||
</div>
|
||||
</NcModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { NcButton, NcModal } from '@nextcloud/vue'
|
||||
import { useNavStore } from '../../../store/nav.js'
|
||||
import { ref, onMounted } from 'vue'
|
||||
import draggable from 'vuedraggable'
|
||||
|
||||
const model = defineModel({ type: Array })
|
||||
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const navStore = useNavStore()
|
||||
const modal = ref(false)
|
||||
const apps = ref([])
|
||||
|
||||
const openModal = () => {
|
||||
modal.value = true
|
||||
}
|
||||
|
||||
const closeModal = () => {
|
||||
modal.value = false
|
||||
}
|
||||
|
||||
const setApps = (items) => {
|
||||
apps.value = []
|
||||
|
||||
model.value.forEach((id) => {
|
||||
items.forEach((app) => {
|
||||
if (app.id === id) {
|
||||
apps.value.push(app)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
items.forEach((app) => {
|
||||
if (!apps.value.find((element) => element.id === app.id)) {
|
||||
apps.value.push(app)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const update = () => {
|
||||
const value = []
|
||||
|
||||
apps.value.forEach((app) => {
|
||||
value.push(app.id)
|
||||
})
|
||||
|
||||
emit('update:modelValue', value)
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
const items = await navStore.getCoreApps()
|
||||
|
||||
window.setTimeout(() => {
|
||||
setApps(items)
|
||||
}, 500)
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,119 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div class="cm-settings-form-catsort">
|
||||
<NcButton
|
||||
aria-label="t('side_menu', 'Sort')"
|
||||
variant="primary"
|
||||
@click="openModal"
|
||||
>
|
||||
{{ t('side_menu', 'Sort') }}
|
||||
</NcButton>
|
||||
|
||||
<NcModal
|
||||
v-if="modal"
|
||||
size="small"
|
||||
class="cm-settings-form-catsort-modal"
|
||||
@close="closeModal"
|
||||
>
|
||||
<div class="modal__content">
|
||||
<draggable
|
||||
v-model="apps"
|
||||
item-key="categoryId"
|
||||
@end="update"
|
||||
>
|
||||
<template #item="{ element }">
|
||||
<div
|
||||
v-if="element.name !== ''"
|
||||
class="cm-settings-form-draggable"
|
||||
>
|
||||
<span class="cm-settings-form-arrow">⇅</span>
|
||||
{{ element.name }}
|
||||
</div>
|
||||
</template>
|
||||
</draggable>
|
||||
|
||||
<div class="modal__footer">
|
||||
<NcButton
|
||||
variant="primary"
|
||||
@click="closeModal"
|
||||
>
|
||||
{{ t('side_menu', 'Close') }}
|
||||
</NcButton>
|
||||
</div>
|
||||
</div>
|
||||
</NcModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { NcButton, NcModal } from '@nextcloud/vue'
|
||||
import { useNavStore } from '../../../store/nav.js'
|
||||
import { ref, onMounted } from 'vue'
|
||||
import draggable from 'vuedraggable'
|
||||
|
||||
const model = defineModel({ type: Array })
|
||||
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const navStore = useNavStore()
|
||||
const modal = ref(false)
|
||||
const apps = ref([])
|
||||
|
||||
const openModal = () => {
|
||||
modal.value = true
|
||||
}
|
||||
|
||||
const closeModal = () => {
|
||||
modal.value = false
|
||||
}
|
||||
|
||||
const setApps = (items) => {
|
||||
apps.value = []
|
||||
|
||||
model.value.forEach((id) => {
|
||||
items.forEach((app) => {
|
||||
if (app.categoryId === id) {
|
||||
apps.value.push(app)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
items.forEach((app) => {
|
||||
if (!apps.value.find((element) => element.categoryId === app.categoryId)) {
|
||||
apps.value.push(app)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const update = () => {
|
||||
const value = []
|
||||
|
||||
apps.value.forEach((app) => {
|
||||
value.push(app.categoryId)
|
||||
})
|
||||
|
||||
emit('update:modelValue', value)
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
const items = await navStore.getCategories()
|
||||
|
||||
window.setTimeout(() => {
|
||||
setApps(items)
|
||||
}, 500)
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,34 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<NcColorPicker
|
||||
v-model="model"
|
||||
:advancedFields="true"
|
||||
class="cm-settings-form-colorpicker"
|
||||
>
|
||||
<div
|
||||
:style="{ 'background-color': model }"
|
||||
class="cm-settings-form-colorpicker-value"
|
||||
/>
|
||||
</NcColorPicker>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { NcColorPicker } from '@nextcloud/vue'
|
||||
|
||||
const model = defineModel({ type: String })
|
||||
</script>
|
||||
@@ -0,0 +1,85 @@
|
||||
<template>
|
||||
<div class="cm-settings-form-displaypicker">
|
||||
<div class="cm-settings-button-inline">
|
||||
<NcButton
|
||||
:variant="is(false, false, false) ? 'primary' : 'seconday'"
|
||||
@click="update(false, false, false)"
|
||||
>
|
||||
{{ t('side_menu', 'Default') }}
|
||||
</NcButton>
|
||||
<NcButton
|
||||
:variant="is(true, false, false) ? 'primary' : 'seconday'"
|
||||
@click="update(true, false, false)"
|
||||
>
|
||||
{{ t('side_menu', 'Always displayed') }}
|
||||
</NcButton>
|
||||
<NcButton
|
||||
:variant="is(false, true, false) ? 'primary' : 'seconday'"
|
||||
@click="update(false, true, false)"
|
||||
>
|
||||
{{ t('side_menu', 'Big menu') }}
|
||||
</NcButton>
|
||||
<NcButton
|
||||
:variant="is(false, false, true) ? 'primary' : 'seconday'"
|
||||
@click="update(false, false, true)"
|
||||
>
|
||||
{{ t('side_menu', 'With categories') }}
|
||||
</NcButton>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<img
|
||||
v-if="is(false, false, false)"
|
||||
:src="DefaultImg"
|
||||
/>
|
||||
<img
|
||||
v-if="is(true, false, false)"
|
||||
:src="AlwaysDisplayedImg"
|
||||
/>
|
||||
<img
|
||||
v-if="is(false, true, false)"
|
||||
class="side-menu-display"
|
||||
:src="TopWideImg"
|
||||
/>
|
||||
<img
|
||||
v-if="is(false, false, true)"
|
||||
:src="SideMenuWithCategoriesImg"
|
||||
/>
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { NcButton } from '@nextcloud/vue'
|
||||
|
||||
import AlwaysDisplayedImg from '../../../../img/admin/layout-always-displayed.svg'
|
||||
import TopWideImg from '../../../../img/admin/layout-big-menu.svg'
|
||||
import SideMenuWithCategoriesImg from '../../../../img/admin/layout-side-menu-with-categories.svg'
|
||||
import DefaultImg from '../../../../img/admin/layout-default.svg'
|
||||
|
||||
const emit = defineEmits(['update:alwaysDisplayed', 'update:topWideMenu', 'update:sideMenuWithCategories'])
|
||||
|
||||
const { alwaysDisplayed, topWideMenu, sideMenuWithCategories } = defineProps({
|
||||
alwaysDisplayed: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
},
|
||||
topWideMenu: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
},
|
||||
sideMenuWithCategories: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
|
||||
const update = (isAlwayDisplayed, isTopWideMenu, isSideMenuWithCategories) => {
|
||||
emit('update:alwaysDisplayed', isAlwayDisplayed)
|
||||
emit('update:topWideMenu', isTopWideMenu)
|
||||
emit('update:sideMenuWithCategories', isSideMenuWithCategories)
|
||||
}
|
||||
|
||||
const is = (isAlwayDisplayed, isTopWideMenu, isSideMenuWithCategories) => {
|
||||
return isAlwayDisplayed === alwaysDisplayed && isTopWideMenu === topWideMenu && isSideMenuWithCategories === sideMenuWithCategories
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,37 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<FormSelect
|
||||
v-model="model"
|
||||
class="cm-settings-form-opener"
|
||||
:options="options"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import FormSelect from './FormSelect'
|
||||
|
||||
const model = defineModel({ type: String })
|
||||
const options = [
|
||||
{ id: 'side-menu-opener', label: 'Default' },
|
||||
{ id: 'side-menu-opener-dark', label: 'Default (dark)' },
|
||||
{ id: 'side-menu-opener-hamburger', label: 'Hamburger' },
|
||||
{ id: 'side-menu-opener-hamburger-dark', label: 'Hamburger (dark)' },
|
||||
{ id: 'side-menu-opener-hamburger-2', label: 'Hamburger 2' },
|
||||
{ id: 'side-menu-opener-hamburger-2-dark', label: 'Hamburger 2 (dark)' },
|
||||
]
|
||||
</script>
|
||||
@@ -0,0 +1,65 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div class="cm-settings-form-range">
|
||||
<em
|
||||
v-if="prepend"
|
||||
class="cm-settings-form-range-prepend"
|
||||
>{{ t('side_menu', prepend) }}</em
|
||||
>
|
||||
|
||||
<input
|
||||
v-model="model"
|
||||
type="range"
|
||||
:min="min"
|
||||
:max="max"
|
||||
/>
|
||||
|
||||
<em
|
||||
v-if="append"
|
||||
class="cm-settings-form-range-append"
|
||||
>{{ t('side_menu', append) }}</em
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const model = defineModel({ type: Number })
|
||||
|
||||
defineProps({
|
||||
prepend: {
|
||||
type: [String, null],
|
||||
required: false,
|
||||
default: null,
|
||||
},
|
||||
append: {
|
||||
type: [String, null],
|
||||
required: false,
|
||||
default: null,
|
||||
},
|
||||
min: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 0,
|
||||
},
|
||||
max: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 100,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,78 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<div class="cm-settings-form-select">
|
||||
<template v-if="!expanded">
|
||||
<select
|
||||
v-if="!expanded"
|
||||
v-model="model"
|
||||
:multiple="multiple"
|
||||
>
|
||||
<option
|
||||
v-if="!required"
|
||||
:value="null"
|
||||
></option>
|
||||
<option
|
||||
v-for="option in options"
|
||||
:key="option.id"
|
||||
:value="option.id"
|
||||
>
|
||||
{{ t('side_menu', option.label) }}
|
||||
</option>
|
||||
</select>
|
||||
</template>
|
||||
<template v-else>
|
||||
<NcCheckboxRadioSwitch
|
||||
v-for="option in options"
|
||||
:key="option.id"
|
||||
v-model="model"
|
||||
:value="option.id"
|
||||
:type="multiple ? 'checkbox' : 'radio'"
|
||||
name="value"
|
||||
>
|
||||
{{ t('side_menu', option.label) }}
|
||||
</NcCheckboxRadioSwitch>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { NcCheckboxRadioSwitch } from '@nextcloud/vue'
|
||||
|
||||
const model = defineModel({ type: [Number, String, Array, null] })
|
||||
const { options, expanded } = defineProps({
|
||||
options: {
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
required: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true,
|
||||
},
|
||||
expanded: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
multiple: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,35 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<FormSelect
|
||||
v-model="model"
|
||||
class="cm-settings-form-size"
|
||||
:options="options"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import FormSelect from './FormSelect'
|
||||
|
||||
const model = defineModel({ type: String })
|
||||
const options = [
|
||||
{ id: 'hidden', label: 'Hidden' },
|
||||
{ id: 'small', label: 'Small' },
|
||||
{ id: 'normal', label: 'Normal' },
|
||||
{ id: 'big', label: 'Big' },
|
||||
]
|
||||
</script>
|
||||
@@ -0,0 +1,29 @@
|
||||
<!--
|
||||
@license GNU AGPL version 3 or any later version
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<template>
|
||||
<NcCheckboxRadioSwitch
|
||||
v-model="model"
|
||||
class="cm-settings-form-yesno"
|
||||
type="switch"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { NcCheckboxRadioSwitch } from '@nextcloud/vue'
|
||||
|
||||
const model = defineModel({ type: Boolean })
|
||||
</script>
|
||||
@@ -0,0 +1,13 @@
|
||||
import FormRange from './FormRange'
|
||||
import FormColorPicker from './FormColorPicker'
|
||||
import FormOpener from './FormOpener'
|
||||
import FormSelect from './FormSelect'
|
||||
import FormYesNo from './FormYesNo'
|
||||
import FormSize from './FormSize'
|
||||
import FormAppPicker from './FormAppPicker'
|
||||
import FormAppSort from './FormAppSort'
|
||||
import FormCatSort from './FormCatSort'
|
||||
import FormDisplayPicker from './FormDisplayPicker'
|
||||
import FormAppCategory from './FormAppCategory'
|
||||
|
||||
export { FormRange, FormColorPicker, FormOpener, FormSelect, FormYesNo, FormSize, FormAppPicker, FormAppSort, FormCatSort, FormDisplayPicker, FormAppCategory }
|
||||
@@ -0,0 +1,10 @@
|
||||
import SettingsSection from './SettingsSection'
|
||||
import SettingItem from './SettingItem'
|
||||
import SettingLabel from './SettingLabel'
|
||||
import SettingValue from './SettingValue'
|
||||
import SectionTitle from './SectionTitle'
|
||||
import ExternalLink from './ExternalLink'
|
||||
import AdminSaveButton from './AdminSaveButton'
|
||||
import UserSaveButton from './UserSaveButton'
|
||||
|
||||
export { SettingsSection, SettingItem, SettingLabel, SettingValue, SectionTitle, ExternalLink, AdminSaveButton, UserSaveButton }
|
||||
@@ -0,0 +1,111 @@
|
||||
'Custom menu': 'Uživatelsky určená nabídka'
|
||||
'Enable the custom menu': 'Zapnout uživatelsky určenou nabídku'
|
||||
'No': 'Ne'
|
||||
'Yes': 'Ano'
|
||||
'Menu': 'Nabídka'
|
||||
'Use the shortcut Ctrl+o to open and to hide the side menu. Use tab key to navigate.': 'Pro otevření/skrytí postranní nabídky použijte zkratku Ctrl+o („O“ jako otevřít). Pro pohyb po použijte klávesu tab key.'
|
||||
'Top menu': 'Horní nabídka'
|
||||
'Apps that not must be moved in the side menu': 'Aplikace, které nepřesouvat do postranní nabídky'
|
||||
'If there is no selection then the global configuration is applied.': 'Pokud neexistuje žádný výběr, je uplatněno globální nastavení.'
|
||||
'Experimental': 'Experimentální'
|
||||
'Save': 'Uložit'
|
||||
'You like this app and you want to support me?': 'Líbí se vám tato aplikace a chcete podpořit její vývoj?'
|
||||
'Buy me a coffee ☕': 'Kupte mi kafe ☕'
|
||||
'Hidden': 'Skryté'
|
||||
'Small': 'Malé'
|
||||
'Normal': 'Normální'
|
||||
'Big': 'Velké'
|
||||
'Colors': 'Barvy'
|
||||
'Background color': 'Barva pozadí'
|
||||
'Background color of current app': 'Barva pozadí stávající aplikace'
|
||||
'Text color': 'Barva textu'
|
||||
'Loader': 'Nástroj pro načítání'
|
||||
'Icon': 'Ikona'
|
||||
'Same color': 'Stejná barva'
|
||||
'Opposite color': 'Doplňková barva'
|
||||
'Transparent': 'Průhledné'
|
||||
'Opaque': 'Neprůhledné'
|
||||
'Opener': 'Tlačítko pro otevření'
|
||||
'Default': 'Výchozí'
|
||||
'Default (dark)': 'Výchozí (tmavé)'
|
||||
'Hamburger': 'Hamburger'
|
||||
'Hamburger (dark)': 'Hamburger (tmavé)'
|
||||
'Hamburger 2': 'Hamburger 2'
|
||||
'Hamburger 2 (dark)': 'Hamburger 2 (tmavé)'
|
||||
'Before the logo': 'Před logem'
|
||||
'After the logo': 'Za logem'
|
||||
'Position': 'Pozice'
|
||||
'Show only the opener (hidden logo)': 'Zobrazovat pouze otevírací tlačítko (logo skryto)'
|
||||
'Do not display the side menu and the opener if there is no application (eg: public pages).': 'Nezobrazovat postranní nabídku a její otevírací tlačítko pokud nejsou dostupné žádné aplikace (např. na veřejných stránkách).'
|
||||
'Panel': 'Panel'
|
||||
'Open the menu when the mouse is hover the opener (automatically disabled on touch screens)': 'Otevřít nabídku při najetím ukazatelem na tlačítko nabídky (automaticky vypnuto pro dotykové obrazovky)'
|
||||
'Display the big menu': 'Zobrazit velkou nabídku'
|
||||
'Display the logo': 'Zobrazit logo'
|
||||
'Icons and texts': 'Ikony a texty'
|
||||
'Loader enabled': 'Načítání zapnuto'
|
||||
'Tips': 'Tipy'
|
||||
'Always displayed': 'Vždy zobrazeno'
|
||||
'This is the automatic behavior when the menu is always displayed.': 'Toto je automatické chování, kdy je nabídka vždy zobrazena.'
|
||||
'Not compatible with touch screens.': 'Nekompatibilní s dotykovými obrazovkami.'
|
||||
'Big menu': 'Velká nabídka'
|
||||
'Live preview': 'Živý náhled'
|
||||
'Open apps in new tab': 'Otevírat aplikace v novém panelu'
|
||||
'Use the global setting': 'Použít globální nastavení'
|
||||
'Use my selection': 'Použít můj výběr'
|
||||
'Show and hide the list of applications': 'Zobrazit/skrýt seznam aplikací'
|
||||
'Use the avatar instead of the logo': 'Použít namísto loga profilový obrázek uživatele'
|
||||
'You do not have permission to change the settings.': 'Nemáte oprávnění měnit nastavení.'
|
||||
'Force this configuration to users': 'Vynutit uplatnění těchto nastavení uživatelům'
|
||||
'Export the configuration': 'Exportovat nastavení'
|
||||
'Purge the cache': 'Vyprázdnit mezipaměť'
|
||||
'Show the link to settings': 'Zobrazit odkaz na nastavení'
|
||||
'The menu is enabled by default for users': 'Nabídka je ve výchozím stavu pro uživatele zapnutá'
|
||||
'Except when the configuration is forced.': 'S výjimkou, kdy je nastavení vynuceno.'
|
||||
'Apps that should not be displayed in the menu': 'Aplikace, které by neměly být v nabídce zobrazeny'
|
||||
'This feature is only compatible with the <code>big menu</code> display.': 'Tato funkce je kompatibilní pouze s <code>velkou nabídkou</code>.'
|
||||
'The logo is a link to the default app': 'Logo je odkaz na výchozí aplikaci'
|
||||
'Others': 'Ostatní'
|
||||
'Categories': 'Kategorie'
|
||||
'Customize sorting': 'Přizpůsobit si řazení'
|
||||
'Order by': 'Řadit podle'
|
||||
'Name': 'Název'
|
||||
'Customed': 'Přizpůsobeno'
|
||||
'Show and hide the list of categories': 'Zobrazit/skrýt seznam kategorií'
|
||||
'This parameters are used when Dark theme or Breeze Dark Theme are enabled.': 'Tyto parametry jsou použity v případě, že je zapnutý (Breeze) tmavý motiv vzhledu.'
|
||||
'Dark mode colors': 'Barvy tmavého režimu'
|
||||
'With categories': 'S kategoriemi'
|
||||
'Custom categories': 'Vlastní kategorie'
|
||||
'Customize application categories': 'Přizpůsobte kategorie aplikací'
|
||||
'Reset to default': 'Vrátit zpět na výchozí hodnoty'
|
||||
'Hidden icon': 'Skrytá ikona'
|
||||
'Small icon': 'Malá ikona'
|
||||
'Normal icon': 'Normální ikona'
|
||||
'Big icon': 'Velká ikona'
|
||||
'Hidden text': 'Skrytý text'
|
||||
'Small text': 'Malý text'
|
||||
'Normal text': 'Normální text'
|
||||
'Big text': 'Velký text'
|
||||
'Applications': 'Aplikace'
|
||||
'Applications kept in the top menu': 'Aplikace ponechané v horní nabídce'
|
||||
'Applications kept in the top menu but also shown in side menu': 'Aplikace ponechané v horní nabídce ale také zobrazené v té boční'
|
||||
'These applications must be selected in the previous option.': 'Tyto aplikace je třeba vybrat v předchozí volbě.'
|
||||
'Hide labels on mouse over': 'Skrýt popisky při najetím ukazatele myši'
|
||||
'Except the hovered app': 'S výjimkou nadnášené aplikace'
|
||||
'Search': 'Hledat'
|
||||
'Toggle the menu': 'Vyp/zap nabídku'
|
||||
'Open the documentation': 'Open the documentation'
|
||||
'Ask the developer': 'Zeptejte se vývojáře'
|
||||
'New request': 'Nový požadavek'
|
||||
'Report a bug': 'Nahlásit chybu'
|
||||
'Show the configuration': 'Zobrazit nastavení'
|
||||
'Configuration:': 'Configuration:'
|
||||
'Done!': 'Hotovo!'
|
||||
'Copy': 'Zkopírovat'
|
||||
'Need help': 'Potřebuji pomoc'
|
||||
'I would like a new feature': 'Rád bych novou funkci v aplikaci'
|
||||
'Something went wrong': 'Něco se pokazilo'
|
||||
'Select apps': 'Vyberte aplikace'
|
||||
'Sort': 'Seřadit'
|
||||
'Customize': 'Přizpůsobit'
|
||||
'Custom': 'Custom'
|
||||
'Close': 'Zavřít'
|
||||