Compare commits

..

129 Commits

Author SHA1 Message Date
Simon Vieille 077191cf47 Merge pull request 'develop' (#508) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/508
2026-07-18 16:29:20 +02:00
Simon Vieille 9eab478c36 chore(info): set version 2026-07-18 16:28:51 +02:00
Simon Vieille c1588dfc2e Merge pull request 'feat(standard-menu): add unified-search-input size handling' (#507) from bugfix/top-menu-popover into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/507
2026-07-18 16:26:18 +02:00
Simon Vieille c24bb6f8c8 feat(standard-menu): add unified-search-input size handling 2026-07-18 16:26:06 +02:00
Simon Vieille ca689d8b6f Merge pull request 'bugfix/top-menu-popover' (#506) from bugfix/top-menu-popover into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/506
2026-07-18 15:52:52 +02:00
Simon Vieille e81f0e4b76 doc: update changelog 2026-07-18 15:52:34 +02:00
Simon Vieille 7033569bed feat(standard-menu): add unified-search-input size handling 2026-07-18 15:52:21 +02:00
Simon Vieille a9788f0ab8 Merge pull request 'bugfix/always-displays-no-apps' (#505) from bugfix/always-displays-no-apps into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/505
2026-07-18 13:03:22 +02:00
Simon Vieille 1a8063bd94 doc: update changelog 2026-07-18 13:00:51 +02:00
Simon Vieille cc841570ec fix(ui): only apply always-displayed display css rules when the menu is displayed 2026-07-18 13:00:35 +02:00
Simon Vieille d6a2da402c fix(webpack): set global appVersion 2026-07-18 12:44:22 +02:00
Simon Vieille 746585b1c7 Merge pull request 'develop' (#504) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/504
2026-07-17 18:59:27 +02:00
Simon Vieille fef11cd0cf Merge pull request 'feature/nc34' (#503) from feature/nc34 into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/503
2026-07-17 18:59:17 +02:00
Simon Vieille 12b35470c7 doc: update changelog 2026-07-17 18:58:42 +02:00
Simon Vieille 23cb8fcfc1 chore(app): remove compatibility with Nextcloud < 34 2026-07-17 18:58:24 +02:00
Simon Vieille f2a9a11c08 Merge pull request 'develop' (#501) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/501
2026-07-17 18:45:24 +02:00
Simon Vieille 2b4da9cfce Merge pull request 'chore(info): set version' (#502) from feature/nc34 into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/502
2026-07-17 18:45:08 +02:00
Simon Vieille f2af45711d chore(info): set version 2026-07-17 18:44:57 +02:00
Simon Vieille 35afa38f73 Merge pull request 'feature/nc34' (#500) from feature/nc34 into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/500
2026-07-17 18:43:53 +02:00
Simon Vieille ad162f5821 doc: update changelog 2026-07-17 18:34:53 +02:00
Simon Vieille d3f87adcca feat(app): add compatibility with Nextcloud 34 2026-07-17 18:34:53 +02:00
Simon Vieille b32e4ded42 fix(app): add compatibility with Nextcloud 34 2026-07-17 18:31:25 +02:00
Simon Vieille 88e54e01b6 chore(dep): update @nextcloud/vue 2026-07-17 18:29:11 +02:00
Simon Vieille f8b36938a4 Merge pull request 'develop' (#491) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/491
2026-04-05 09:25:37 +02:00
Simon Vieille ce01983f1c Merge pull request 'fix: #489: allow PHP 8.5 compatibility' (#490) from feature/php85 into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/490
2026-04-05 09:23:27 +02:00
Simon Vieille 6ee79a3110 chore: app version 2026-04-05 09:23:09 +02:00
Simon Vieille a32bf417a7 fix: #489: allow PHP 8.5 compatibility 2026-04-05 09:12:58 +02:00
Simon Vieille 479cac1f90 Merge pull request 'develop' (#481) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/481
2026-03-08 19:10:53 +01:00
Simon Vieille 337e1a07e3 doc: update changelog 2026-03-08 19:10:29 +01:00
gallegonovato fccfe1341a Translated using Weblate (Spanish)
Currently translated at 100.0% (111 of 111 strings)

Translation: Custom menu/Application
Translate-URL: https://translate.codeberg.org/projects/custom-menu/application/es/
2026-03-08 19:09:32 +01:00
Outbreak2096 242569316f Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (111 of 111 strings)

Translation: Custom menu/Application
Translate-URL: https://translate.codeberg.org/projects/custom-menu/application/zh_Hans/
2026-03-08 19:09:31 +01:00
gallegonovato 78888460fc Translated using Weblate (Spanish)
Currently translated at 100.0% (111 of 111 strings)

Translation: Custom menu/Application
Translate-URL: https://translate.codeberg.org/projects/custom-menu/application/es/
2026-03-08 19:09:31 +01:00
Simon Vieille f17d088b81 Merge pull request 'develop' (#480) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/480
2026-03-08 19:07:17 +01:00
Simon Vieille f49b30b20e Merge pull request 'bugfix/intl-segmenter-polyfill' (#479) from bugfix/intl-segmenter-polyfill into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/479
2026-03-08 19:06:18 +01:00
Simon Vieille 0067b4e1c8 doc: update changelog 2026-03-08 19:05:56 +01:00
Simon Vieille 77cf610c8b Merge branch 'develop' into bugfix/intl-segmenter-polyfill 2026-03-08 19:05:14 +01:00
Simon Vieille f59e62bf0b Merge pull request 'develop' (#477) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/477
2026-03-01 13:18:57 +01:00
Simon Vieille 5cd106640c Merge pull request 'bugfix/issue475-orm' (#476) from bugfix/issue475-orm into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/476
2026-03-01 13:18:24 +01:00
Simon Vieille d057cd7665 doc: update changelog 2026-03-01 13:11:26 +01:00
Simon Vieille 520225603b fix(admin/*SaveButton): cast settings to string 2026-03-01 13:09:02 +01:00
Simon Vieille c2ecc5bf98 fix(LangRepository): check orm capabilities to query entities 2026-03-01 13:08:26 +01:00
Simon Vieille 8cca320a43 chore: set side_menu as package name 2026-03-01 13:07:07 +01:00
Simon Vieille b9f204b545 Merge pull request 'develop' (#474) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/474
2026-02-27 09:18:35 +01:00
Simon Vieille 19aaf0759b Merge pull request 'chore: app version' (#473) from feature/nc33 into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/473
2026-02-27 09:18:16 +01:00
Simon Vieille 47a83f10cc chore: app version 2026-02-27 09:17:46 +01:00
Simon Vieille bed8d8ff21 Merge pull request 'develop' (#472) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/472
2026-02-27 09:17:06 +01:00
Simon Vieille e1a191121d Merge pull request 'chore: add compatibility with NC33' (#471) from feature/nc33 into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/471
2026-02-27 09:16:32 +01:00
Simon Vieille 54f4dce09b chore: add compatibility with NC33 2026-02-27 09:16:02 +01:00
Simon Vieille c0aaa206ed Merge pull request 'bugfix/issue468-logo' (#469) from bugfix/issue468-logo into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/469
2026-02-16 11:52:40 +01:00
Simon Vieille 0124336558 doc: update changelog 2026-02-16 10:12:09 +01:00
Simon Vieille 5ccb56309a fix #468: force nextcloud logo display css rule (opener-only) 2026-02-16 10:09:31 +01:00
Simon Vieille 7d26be253a doc: update changelog 2026-01-10 15:51:26 +01:00
Simon Vieille 0437019bb0 fix #464: add Intl.Segmenter polyfill 2026-01-10 15:49:16 +01:00
Simon Vieille 2e5404464e Merge pull request 'develop' (#457) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/457
2025-10-29 17:48:52 +01:00
Simon Vieille be68f2ef55 fix(doc): fix curl cmd 2025-10-29 17:48:09 +01:00
Simon Vieille 1bf9cee8d6 Merge pull request 'bugfix/build' (#446) from bugfix/build into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/446
2025-09-29 00:19:56 +02:00
Simon Vieille 403a7a72fb update changelog 2025-09-29 00:18:55 +02:00
Simon Vieille 81ae76cdb7 build: add package-lock.json 2025-09-29 00:17:57 +02:00
Simon Vieille 32e5ecda8f ci: rollback node to v20 2025-09-29 00:12:56 +02:00
Simon Vieille de98967da5 ci: upgrade node to v22 2025-09-28 23:50:10 +02:00
Simon Vieille 28e08e51a3 Merge pull request 'develop' (#444) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/444
2025-09-28 19:50:12 +02:00
Simon Vieille f39f3b3aef Merge branch 'translations' into develop 2025-09-28 19:49:28 +02:00
Simon Vieille 0db732b921 fix(trans/fr): remove typo 2025-09-28 19:48:27 +02:00
Simon Vieille ce39df6c2d update changelog 2025-09-28 19:47:42 +02:00
Simon Vieille bc94b61c12 Merge branch 'translations' into develop 2025-09-28 19:46:14 +02:00
Simon Vieille c54c969824 release v5.1.2 2025-09-28 19:43:27 +02:00
Simon Vieille e828a914cf Merge pull request '"Refactor Side Menu JsController to Use IAvatarManager via Dependency Injection for Nextcloud 32 Com' (#442) from AndyXheli/side_menu:develop into develop
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/442
2025-09-28 19:40:50 +02:00
mbouzada 177f88b9aa Translated using Weblate (Galician)
Currently translated at 100.0% (111 of 111 strings)

Translation: Custom menu/Application
Translate-URL: https://translate.codeberg.org/projects/custom-menu/application/gl/
2025-09-28 01:36:08 +00:00
p-bo 66a6fda385 Translated using Weblate (Czech)
Currently translated at 100.0% (111 of 111 strings)

Translation: Custom menu/Application
Translate-URL: https://translate.codeberg.org/projects/custom-menu/application/cs/
2025-09-28 01:36:08 +00:00
AndyXheli 9ad73c7bf7 Update lib/Controller/JsController.php
Signed-off-by: AndyXheli <andyxheli@gmail.com>
2025-09-20 16:43:41 +02:00
AndyXheli acde24ea71 Update lib/Controller/JsController.php 2025-09-20 16:42:52 +02:00
AndyXheli 8bd89b4565 Update lib/Controller/JsController.php 2025-09-20 16:41:49 +02:00
AndyXheli 58cfbc24af "Refactor Side Menu JsController to Use IAvatarManager via Dependency Injection for Nextcloud 32 Com
🔧 Problem: The Side Menu app was calling OC\Server::getAvatarManager(), which no longer exists in Nextcloud 32.

✅ Fix:

Injected IAvatarManager using Nextcloud’s public API instead of accessing it via OC::$server.

Updated the constructor to accept IAvatarManager, IUserSession, INavigationManager, and IURLGenerator.

Replaced all direct calls to OC::$server->getAvatarManager() and similar with the injected services.

This makes the app compatible with Nextcloud 32 and avoids deprecated internal method calls.

Signed-off-by: AndyXheli <andyxheli@gmail.com>
2025-09-20 16:25:58 +02:00
s0undy a00fcb1423 Translated using Weblate (Swedish)
Currently translated at 100.0% (111 of 111 strings)

Translation: Custom menu/Application
Translate-URL: https://translate.codeberg.org/projects/custom-menu/application/sv/
2025-06-08 19:58:24 +00:00
s0undy f335c086b6 Translated using Weblate (Swedish)
Currently translated at 15.3% (17 of 111 strings)

Translation: Custom menu/Application
Translate-URL: https://translate.codeberg.org/projects/custom-menu/application/sv/
2025-06-01 23:58:24 +00:00
yurtpage 7bc8cd857c Translated using Weblate (Russian)
Currently translated at 100.0% (111 of 111 strings)

Translation: Custom menu/Application
Translate-URL: https://translate.codeberg.org/projects/custom-menu/application/ru/
2025-06-01 23:58:24 +00:00
Simon Vieille 2b84ed37e8 Merge pull request 'release 5.1.1' (#433) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/433
2025-05-23 09:15:12 +02:00
Simon Vieille a4e459d8ed Merge pull request 'release v5.1.0' (#428) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/428
2025-04-30 13:01:55 +02:00
Simon Vieille 9fea794e2f Merge pull request 'release v5.0.3' (#423) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/423
2025-04-30 08:42:11 +02:00
Simon Vieille 55967ff81e Merge pull request 'release v5.0.2' (#420) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/420
2025-04-29 19:29:38 +02:00
Simon Vieille 12604b44fc Merge pull request 'fix(StandardMenu): appLimit must return a value > 0' (#412) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/412
2025-04-17 00:05:38 +02:00
Simon Vieille b1e19ac965 Merge pull request 'fix(build): remove css directory' (#408) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/408
2025-04-16 20:10:25 +02:00
Simon Vieille ea83cc050c Merge pull request 'fix(build): remove css directory' (#407) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/407
2025-04-16 20:04:19 +02:00
Simon Vieille 36750532f6 Merge pull request 'release v5.0.0' (#406) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/406
2025-04-16 19:56:55 +02:00
Simon Vieille cf9495de46 Merge pull request 'v4.1.1' (#400) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/400
2025-03-12 18:41:47 +01:00
Simon Vieille 076435dc8e Merge pull request 'update changelog' (#396) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/396
2025-03-10 19:17:35 +01:00
Simon Vieille fe5f0287c3 Merge pull request 'release v4.1.0' (#395) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/395
2025-03-10 19:15:37 +01:00
Simon Vieille eff18bb143 Merge pull request 'v4.0.1' (#372) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/372
2024-10-30 19:08:49 +01:00
Simon Vieille 29826d3c54 Merge pull request 'develop' (#364) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/364
2024-10-27 18:53:20 +01:00
Simon Vieille 695934c28b Merge pull request 'v4.0.0' (#363) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/363
2024-10-27 17:20:18 +01:00
Simon Vieille aa2246a1ec Merge pull request 'release v3.13.1' (#356) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/356
2024-07-10 19:58:09 +02:00
Simon Vieille da04cf4222 Merge pull request 'release v3.13.0' (#353) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/353
2024-07-05 13:02:19 +02:00
Simon Vieille 7b33271d00 Merge pull request 'ci: rollback tag check' (#346) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/346
2024-04-08 14:33:50 +02:00
Simon Vieille e4e054835d Merge pull request 'ci: fix signature step (volumes)' (#345) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/345
2024-04-08 14:14:59 +02:00
Simon Vieille eae8ce80fb Merge pull request 'release v3.12.0' (#344) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/344
2024-04-08 11:59:32 +02:00
Simon Vieille 972c69d880 Merge pull request 'release v3.11.8' (#336) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/336
2024-02-20 21:26:26 +01:00
Simon Vieille dd8561e691 Merge pull request 'release v3.11.7' (#331) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/331
2024-02-14 19:10:56 +01:00
Simon Vieille 61a4689eb2 Merge pull request 'release v3.11.6' (#328) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/328
2024-02-12 23:22:28 +01:00
Simon Vieille 4532dd345e Merge pull request 'update app info' (#317) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/317
2024-01-28 23:07:31 +01:00
Simon Vieille 6effdc6eed Merge pull request 'release 3.11.5' (#316) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/316
2024-01-28 23:06:25 +01:00
Simon Vieille 810d83880b Merge pull request 'release v3.11.4' (#313) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/313
2024-01-27 10:47:53 +01:00
Simon Vieille 25e70f276f Merge pull request 'fix appinfo version' (#308) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/308
2024-01-16 20:40:28 +01:00
Simon Vieille d06b6b9e31 Merge pull request 'release 3.11.3' (#307) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/307
2024-01-16 20:14:53 +01:00
Simon Vieille 5c218bff2a Merge pull request 'releave v3.11.2' (#300) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/300
2023-11-12 20:30:56 +01:00
Simon Vieille b0385c172b Merge pull request 'release v3.11.1' (#297) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/297
2023-11-12 17:03:21 +01:00
Simon Vieille 04ac7e5ed1 Merge pull request 'update changelogs' (#293) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/293
2023-11-05 18:46:46 +01:00
Simon Vieille 67743485cb Merge pull request 'release v3.11.0' (#292) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/292
2023-11-05 18:45:25 +01:00
Simon Vieille 0ce318d6ec Merge pull request 'fix ci syntax' (#281) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/281
2023-09-29 16:48:36 +02:00
Simon Vieille c26c5f26df Merge pull request 'release v3.10.3' (#276) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/276
2023-07-24 21:35:58 +02:00
Simon Vieille 6ce7d3223f Merge pull request 'release v3.10.2' (#272) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/272
2023-07-15 15:22:53 +02:00
Simon Vieille 6eb977dad5 Merge pull request 'release v3.10.1' (#271) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/271
2023-07-15 15:03:26 +02:00
Simon Vieille 5f307cd046 Merge pull request 'release v3.10.0' (#268) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/268
2023-07-13 22:30:27 +02:00
Simon Vieille d2421f90bf Merge pull request 'release v3.9.1' (#266) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/266
2023-06-29 13:04:13 +02:00
Simon Vieille b16da36507 Merge pull request 'release v3.9.0' (#263) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/263
2023-06-23 12:33:54 +02:00
Simon Vieille 29f0ead9cc Merge pull request 'release v3.8.0' (#255) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/255
2023-05-25 13:49:08 +02:00
Simon Vieille e1567b0689 Merge pull request 'v3.7.4' (#249) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/249
2023-04-16 18:05:46 +02:00
Simon Vieille aa139bc671 Merge pull request 'release v3.7.3' (#246) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/246
2023-04-14 21:13:10 +02:00
Simon Vieille b133ba3a97 Merge pull request 'release of v3.7.2' (#238) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/238
2023-03-27 18:47:15 +02:00
Simon Vieille aaf2bb55db Merge pull request 'release v3.7.1' (#232) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/232
2023-03-19 10:00:00 +01:00
Simon Vieille 749f25a231 Merge pull request 'add badge of downloads' (#228) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/228
2023-03-11 00:30:39 +01:00
Simon Vieille 04026f5c75 Merge pull request 'release v3.7.0' (#227) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/227
2023-03-09 16:57:33 +01:00
Simon Vieille 48b2b30406 Merge pull request 'update issue template' (#223) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/223
2023-02-20 14:06:23 +01:00
Simon Vieille 22e5445330 Merge pull request 'release v3.6.0' (#221) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/221
2023-02-17 11:53:27 +01:00
Simon Vieille 0544fd3765 Merge pull request 'doc' (#218) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/218
2023-02-12 16:56:39 +01:00
Simon Vieille 2635dd89ca Merge pull request 'Doc' (#217) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/217
2023-02-12 00:34:56 +01:00
Simon Vieille aa203bb406 Merge pull request 'release v3.5.2' (#213) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/213
2023-01-21 22:31:21 +01:00
Simon Vieille 368c59a2bd Merge pull request 'next release' (#200) from develop into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/200
2023-01-07 10:40:14 +01:00
Simon Vieille ab7b1e96fe Merge pull request 'add gitea ISSUE/FEATURE templates' (#202) from gitea into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/202
2022-12-29 22:45:50 +01:00
Simon Vieille f4322a8d71 Merge pull request 'add gitea ISSUE/FEATURE templates' (#201) from gitea into master
Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/201
2022-12-29 22:45:03 +01:00
26 changed files with 10079 additions and 354 deletions
-4
View File
@@ -2,8 +2,4 @@
/node_modules /node_modules
/l10n/* /l10n/*
/releases /releases
/package-lock.json
!/l10n/.gitkeep !/l10n/.gitkeep
/yarn*.log
/src/admin.js.bk
/templates/settings/admin-form.php.bk
+527 -129
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -40,7 +40,7 @@ If you want to install it from source, go to https://gitnet.fr/deblan/side_menu/
``` ```
$ cd /path/to/nextcloud/apps $ cd /path/to/nextcloud/apps
$ VERSION=x.y.z; curl -sS https://gitnet.fr/deblan/side_menu/releases/download/v${VERSION}/side_menu_v${VERSION}.tar.gz | tar xvfz - $ 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. Administrators can edit many settings using the administration page.
+3 -3
View File
@@ -30,7 +30,7 @@ Notice
Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**. 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/). In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/).
]]></description> ]]></description>
<version>5.1.1</version> <version>6.0.1</version>
<licence>agpl</licence> <licence>agpl</licence>
<author mail="contact@deblan.fr" homepage="https://www.deblan.fr/">Simon Vieille</author> <author mail="contact@deblan.fr" homepage="https://www.deblan.fr/">Simon Vieille</author>
<namespace>SideMenu</namespace> <namespace>SideMenu</namespace>
@@ -52,8 +52,8 @@ In case of downtime, you can download **Custom Menu** from [here](https://kim.de
<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_big_menu.png]]></screenshot>
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc25_default_menu.png]]></screenshot> <screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc25_default_menu.png]]></screenshot>
<dependencies> <dependencies>
<php min-version="8.1" max-version="8.4" /> <php min-version="8.1" max-version="8.5" />
<nextcloud min-version="31" max-version="32"/> <nextcloud min-version="34" max-version="34"/>
</dependencies> </dependencies>
<settings> <settings>
<admin>OCA\SideMenu\Settings\Admin</admin> <admin>OCA\SideMenu\Settings\Admin</admin>
+10 -7
View File
@@ -6,6 +6,7 @@ use OC\AllConfig;
use OC\App\AppStore\Fetcher\CategoryFetcher; use OC\App\AppStore\Fetcher\CategoryFetcher;
use OC\AppFramework\Http\Request; use OC\AppFramework\Http\Request;
use OC\Security\CSP\ContentSecurityPolicyNonceManager; use OC\Security\CSP\ContentSecurityPolicyNonceManager;
use OC\Security\CSRF\CsrfTokenManager;
use OC\User\User; use OC\User\User;
use OCA\SideMenu\Service\AppRepository; use OCA\SideMenu\Service\AppRepository;
use OCA\SideMenu\Service\CategoryRepository; use OCA\SideMenu\Service\CategoryRepository;
@@ -19,8 +20,11 @@ use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\EventDispatcher\IEventDispatcher; use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig; use OCP\IConfig;
use OCP\INavigationManager; use OCP\INavigationManager;
use OCP\IRequest;
use OCP\IURLGenerator;
use OCP\IUserSession; use OCP\IUserSession;
use OCP\L10N\IFactory; use OCP\L10N\IFactory;
use OCP\Server;
use OCP\Util; use OCP\Util;
use Psr\Container\ContainerInterface; use Psr\Container\ContainerInterface;
@@ -34,9 +38,9 @@ class Application extends App implements IBootstrap
public const APP_ID = 'side_menu'; public const APP_ID = 'side_menu';
public const APP_NAME = 'Custom menu'; public const APP_NAME = 'Custom menu';
protected AllConfig $config; protected IConfig $config;
protected ContentSecurityPolicyNonceManager $cspnm; protected ContentSecurityPolicyNonceManager $cspnm;
protected Request $request; protected IRequest $request;
protected ?User $user = null; protected ?User $user = null;
public function __construct(array $urlParams = []) public function __construct(array $urlParams = [])
@@ -83,10 +87,9 @@ class Application extends App implements IBootstrap
public function boot(IBootContext $context): void public function boot(IBootContext $context): void
{ {
$this->config = \OC::$server->getConfig(); $this->config = Server::get(IConfig::class);
$this->cspnm = \OC::$server->getContentSecurityPolicyNonceManager(); $this->user = Server::get(IUserSession::class)->getUser();
$this->user = \OC::$server[IUserSession::class]->getUser(); $this->request = Server::get(IRequest::class);
$this->request = \OC::$server->getRequest();
if (!$this->isEnabled()) { if (!$this->isEnabled()) {
return; return;
@@ -138,7 +141,7 @@ class Application extends App implements IBootstrap
$cache = $this->config->getAppValue(self::APP_ID, 'cache', '0'); $cache = $this->config->getAppValue(self::APP_ID, 'cache', '0');
foreach ($assets as $value) { foreach ($assets as $value) {
$route = \OC::$server->getURLGenerator()->linkToRoute( $route = Server::get(IURLGenerator::class)->linkToRoute(
$value['route'], $value['route'],
['v' => $cache] ['v' => $cache]
); );
+15 -15
View File
@@ -20,7 +20,6 @@
namespace OCA\SideMenu\Controller; namespace OCA\SideMenu\Controller;
use OC\User\User; use OC\User\User;
use OCA\SideMenu\AppInfo\Application;
use OCA\SideMenu\Service\ConfigProxy; use OCA\SideMenu\Service\ConfigProxy;
use OCA\Theming\ThemingDefaults; use OCA\Theming\ThemingDefaults;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
@@ -29,10 +28,12 @@ use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired; use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\PublicPage; use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IRequest; use OCP\IRequest;
use OCP\IUserSession; use OCP\IUserSession;
use OCP\L10N\IFactory; use OCP\L10N\IFactory;
use OCP\IAvatarManager;
use OCP\INavigationManager;
use OCP\IURLGenerator;
class JsController extends Controller class JsController extends Controller
{ {
@@ -44,14 +45,13 @@ class JsController extends Controller
protected ConfigProxy $config, protected ConfigProxy $config,
protected ThemingDefaults $themingDefaults, protected ThemingDefaults $themingDefaults,
protected IFactory $l10nFactory, protected IFactory $l10nFactory,
protected IAvatarManager $avatarManager,
protected IUserSession $userSession,
protected INavigationManager $navigationManager,
protected IURLGenerator $urlGenerator,
) { ) {
parent::__construct($appName, $request); parent::__construct($appName, $request);
$this->user = $this->userSession->getUser();
$this->themingDefaults = $themingDefaults;
$this->user = \OC::$server[IUserSession::class]->getUser();
$this->config = $config;
$this->l10nFactory = $l10nFactory;
} }
#[NoCSRFRequired] #[NoCSRFRequired]
@@ -99,25 +99,25 @@ class JsController extends Controller
$targetBlankApps = $userTargetBlankApps; $targetBlankApps = $userTargetBlankApps;
} }
$isAvatarSet = \OC::$server->getAvatarManager()->getAvatar($this->user->getUid())->exists(); $isAvatarSet = $this->avatarManager->getAvatar($this->user->getUID())->exists();
if ($useAvatar && $isAvatarSet) { if ($useAvatar && $isAvatarSet) {
$avatar = \OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', [ $avatar = $this->urlGenerator->linkToRoute('core.avatar.getAvatar', [
'userId' => $this->user->getUid(), 'userId' => $this->user->getUID(),
'size' => 128, 'size' => 128,
'v' => $this->config->getUserValueInt($this->user, 'avatar', 'version', 0), 'v' => $this->config->getUserValueInt($this->user, 'avatar', 'version', 0),
]); ]);
} }
if ($this->config->getAppValueBool('show-settings', '0')) { if ($this->config->getAppValueBool('show-settings', '0')) {
$settingsNav = \OC::$server->getNavigationManager()->getAll('settings'); $settingsNav = $this->navigationManager->getAll('settings');
if (isset($settingsNav['settings'])) { if (isset($settingsNav['settings'])) {
$settings = [ $settings = [
'href' => $settingsNav['settings']['href'], 'href' => $settingsNav['settings']['href'],
'name' => $settingsNav['settings']['name'], 'name' => $settingsNav['settings']['name'],
'avatar' => \OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', [ 'avatar' => $this->urlGenerator->linkToRoute('core.avatar.getAvatar', [
'userId' => $this->user->getUid(), 'userId' => $this->user->getUID(),
'size' => 32, 'size' => 32,
'v' => $this->config->getUserValueInt($this->user, 'avatar', 'version', 0), 'v' => $this->config->getUserValueInt($this->user, 'avatar', 'version', 0),
]), ]),
@@ -126,7 +126,7 @@ class JsController extends Controller
} }
} }
$indexUrl = \OC::$server->getURLGenerator()->linkTo('', 'index.php'); $indexUrl = $this->urlGenerator->linkTo('', 'index.php');
return [ return [
'opener-position' => $this->config->getAppValue('opener-position', 'before'), 'opener-position' => $this->config->getAppValue('opener-position', 'before'),
+5
View File
@@ -30,7 +30,12 @@ class LangRepository
->from('preferences') ->from('preferences')
; ;
// Nextcloud >=33+
if (method_exists($qb, 'executeQuery')) {
$stmt = $qb->executeQuery();
} else {
$stmt = $qb->execute(); $stmt = $qb->execute();
}
$langs = ['en']; $langs = ['en'];
+9300
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -11,8 +11,9 @@
}, },
"dependencies": { "dependencies": {
"@babel/core": ">=7.12.0 <8.0.0", "@babel/core": ">=7.12.0 <8.0.0",
"@formatjs/intl-segmenter": "^12.0.8",
"@nextcloud/router": "^3.0.1", "@nextcloud/router": "^3.0.1",
"@nextcloud/vue": "^9.0.0-alpha.8", "@nextcloud/vue": "^9.9.0",
"node-polyfill-webpack-plugin": "^4.1.0", "node-polyfill-webpack-plugin": "^4.1.0",
"pinia": "^3.0.1", "pinia": "^3.0.1",
"postcss": "^7.0.0 || ^8.0.1", "postcss": "^7.0.0 || ^8.0.1",
+2
View File
@@ -17,6 +17,8 @@
import './scss/admin.scss' import './scss/admin.scss'
import '@formatjs/intl-segmenter/polyfill.js'
import { createApp } from 'vue' import { createApp } from 'vue'
import { createPinia } from 'pinia' import { createPinia } from 'pinia'
import { waitContainer } from './lib/dom.js' import { waitContainer } from './lib/dom.js'
+2 -2
View File
@@ -73,10 +73,10 @@ const save = async () => {
if (Array.isArray(value) || typeof value === 'object') { if (Array.isArray(value) || typeof value === 'object') {
value = JSON.stringify(value) value = JSON.stringify(value)
} else if (typeof value === 'boolean') { } else if (typeof value === 'boolean') {
value = value ? 1 : 0 value = value ? '1' : '0'
} }
OCP.AppConfig.setValue('side_menu', key, value, { OCP.AppConfig.setValue('side_menu', key, value.toString(), {
success() { success() {
update() update()
}, },
+2 -2
View File
@@ -69,11 +69,11 @@ const save = async () => {
if (Array.isArray(value) || typeof value === 'object') { if (Array.isArray(value) || typeof value === 'object') {
value = JSON.stringify(value) value = JSON.stringify(value)
} else if (typeof value === 'boolean') { } else if (typeof value === 'boolean') {
value = value ? 1 : 0 value = value ? '1' : '0'
} }
formData.push('name=' + encodeURIComponent(key)) formData.push('name=' + encodeURIComponent(key))
formData.push('value=' + encodeURIComponent(value)) formData.push('value=' + encodeURIComponent(value.toString()))
fetch(url, { fetch(url, {
method: 'POST', method: 'POST',
+13 -13
View File
@@ -94,18 +94,18 @@
'Search': 'Hledat' 'Search': 'Hledat'
'Toggle the menu': 'Vyp/zap nabídku' 'Toggle the menu': 'Vyp/zap nabídku'
'Open the documentation': 'Open the documentation' 'Open the documentation': 'Open the documentation'
'Ask the developer': 'Ask the developer' 'Ask the developer': 'Zeptejte se vývojáře'
'New request': 'New request' 'New request': 'Nový požadavek'
'Report a bug': 'Report a bug' 'Report a bug': 'Nahlásit chybu'
'Show the configuration': 'Show the configuration' 'Show the configuration': 'Zobrazit nastavení'
'Configuration:': 'Configuration:' 'Configuration:': 'Configuration:'
'Done!': 'Done!' 'Done!': 'Hotovo!'
'Copy': 'Copy' 'Copy': 'Zkopírovat'
'Need help': 'Need help' 'Need help': 'Potřebuji pomoc'
'I would like a new feature': 'I would like a new feature' 'I would like a new feature': 'Rád bych novou funkci v aplikaci'
'Something went wrong': 'Something went wrong' 'Something went wrong': 'Něco se pokazilo'
'Select apps': 'Select apps' 'Select apps': 'Vyberte aplikace'
'Sort': 'Sort' 'Sort': 'Seřadit'
'Customize': 'Customize' 'Customize': 'Přizpůsobit'
'Custom': 'Custom' 'Custom': 'Custom'
'Close': 'Close' 'Close': 'Zavřít'
+13 -13
View File
@@ -94,18 +94,18 @@
'Search': 'Buscar' 'Search': 'Buscar'
'Toggle the menu': 'Alternar el menú' 'Toggle the menu': 'Alternar el menú'
'Open the documentation': 'Open the documentation' 'Open the documentation': 'Open the documentation'
'Ask the developer': 'Ask the developer' 'Ask the developer': 'Pregúntale al desarrollador'
'New request': 'New request' 'New request': 'Nueva solicitud'
'Report a bug': 'Report a bug' 'Report a bug': 'Informar de un fallo'
'Show the configuration': 'Show the configuration' 'Show the configuration': 'Mostrar los ajustes'
'Configuration:': 'Configuration:' 'Configuration:': 'Configuration:'
'Done!': 'Done!' 'Done!': '¡Realizado!'
'Copy': 'Copy' 'Copy': 'Copiar'
'Need help': 'Need help' 'Need help': 'Ayudame'
'I would like a new feature': 'I would like a new feature' 'I would like a new feature': 'Me gustaría una nueva función'
'Something went wrong': 'Something went wrong' 'Something went wrong': 'Algo salió mal'
'Select apps': 'Select apps' 'Select apps': 'Selecciona las aplicaciones'
'Sort': 'Sort' 'Sort': 'Ordenar'
'Customize': 'Customize' 'Customize': 'Personalizar'
'Custom': 'Custom' 'Custom': 'Custom'
'Close': 'Close' 'Close': 'Cerrar'
+1 -1
View File
@@ -1,4 +1,4 @@
'Custom menu': '­­­Menu personnalisé' 'Custom menu': 'Menu personnalisé'
'Enable the custom menu': 'Activer le menu personnalisé' 'Enable the custom menu': 'Activer le menu personnalisé'
'No': 'Non' 'No': 'Non'
'Yes': 'Oui' 'Yes': 'Oui'
+16 -16
View File
@@ -3,7 +3,7 @@
'No': 'Non' 'No': 'Non'
'Yes': 'Si' 'Yes': 'Si'
'Menu': 'Menú' 'Menu': 'Menú'
'Use the shortcut Ctrl+o to open and to hide the side menu. Use tab key to navigate.': 'Use the shortcut Ctrl+o to open and to hide the side menu. Use tab key to navigate.' 'Use the shortcut Ctrl+o to open and to hide the side menu. Use tab key to navigate.': 'Use o atallo Ctrl+o para abrir e agochar o menú lateral. Use a tecla Tab para navegar.'
'Top menu': 'Top menu' 'Top menu': 'Top menu'
'Apps that not must be moved in the side menu': 'As aplicacións que non deben moverse no menú lateral' 'Apps that not must be moved in the side menu': 'As aplicacións que non deben moverse no menú lateral'
'If there is no selection then the global configuration is applied.': 'Se non hai selección, aplícase a configuración global.' 'If there is no selection then the global configuration is applied.': 'Se non hai selección, aplícase a configuración global.'
@@ -94,18 +94,18 @@
'Search': 'Buscar' 'Search': 'Buscar'
'Toggle the menu': 'Alternar o menú' 'Toggle the menu': 'Alternar o menú'
'Open the documentation': 'Open the documentation' 'Open the documentation': 'Open the documentation'
'Ask the developer': 'Ask the developer' 'Ask the developer': 'Preguntar ao desenvolvedor'
'New request': 'New request' 'New request': 'Nova solicitude'
'Report a bug': 'Report a bug' 'Report a bug': 'Informar dun fallo'
'Show the configuration': 'Show the configuration' 'Show the configuration': 'Amosar a configuración'
'Configuration:': 'Configuration:' 'Configuration:': 'Configuración:'
'Done!': 'Done!' 'Done!': 'Feito!'
'Copy': 'Copy' 'Copy': 'Copiar'
'Need help': 'Need help' 'Need help': 'Necesito axuda'
'I would like a new feature': 'I would like a new feature' 'I would like a new feature': 'Gustaríame unha nova característica'
'Something went wrong': 'Something went wrong' 'Something went wrong': 'Algo foi mal'
'Select apps': 'Select apps' 'Select apps': 'Seleccionar as aplicacións'
'Sort': 'Sort' 'Sort': 'Ordenar'
'Customize': 'Customize' 'Customize': 'Personalizar'
'Custom': 'Custom' 'Custom': 'Personalizado'
'Close': 'Close' 'Close': 'Pechar'
+2 -2
View File
@@ -1,4 +1,4 @@
'Custom menu': 'Custom menu' 'Custom menu': 'Пользовательское меню'
'Enable the custom menu': 'Включить пользовательское меню' 'Enable the custom menu': 'Включить пользовательское меню'
'No': 'Нет' 'No': 'Нет'
'Yes': 'Да' 'Yes': 'Да'
@@ -77,7 +77,7 @@
'Customize sorting': 'Настроить сортировку' 'Customize sorting': 'Настроить сортировку'
'Order by': 'В порядке' 'Order by': 'В порядке'
'Name': 'Название' 'Name': 'Название'
'Customed': 'Приспособлено' 'Customed': 'Пользовательское'
'Show and hide the list of categories': 'Показать или скрыть список категорий' 'Show and hide the list of categories': 'Показать или скрыть список категорий'
'This parameters are used when Dark theme or Breeze Dark Theme are enabled.': 'Эти настройки используются темами Тёмная и Тёмная Breeze.' 'This parameters are used when Dark theme or Breeze Dark Theme are enabled.': 'Эти настройки используются темами Тёмная и Тёмная Breeze.'
'Dark mode colors': 'Цвета тёмной темы' 'Dark mode colors': 'Цвета тёмной темы'
+111 -111
View File
@@ -1,111 +1,111 @@
'Custom menu': '' 'Custom menu': 'Anpassad meny'
'Enable the custom menu': '' 'Enable the custom menu': 'Aktivera den anpassade menyn'
'No': '' 'No': 'Nej'
'Yes': '' 'Yes': 'Ja'
'Menu': '' 'Menu': 'Meny'
'Use the shortcut Ctrl+o to open and to hide the side menu. Use tab key to navigate.': '' 'Use the shortcut Ctrl+o to open and to hide the side menu. Use tab key to navigate.': 'Använd genvägen Ctrl+o för att visa eller dölja sidomenyn. Använd tabb-tangenten för att navigera.'
'Top menu': '' 'Top menu': 'Toppmeny'
'Apps that not must be moved in the side menu': '' 'Apps that not must be moved in the side menu': 'Appar som inte får flyttas i sidomenyn'
'If there is no selection then the global configuration is applied.': '' 'If there is no selection then the global configuration is applied.': 'Om inget val har gjorts tillämpas den globala konfigurationen.'
'Experimental': '' 'Experimental': 'Experimentell'
'Save': '' 'Save': 'Spara'
'You like this app and you want to support me?': '' 'You like this app and you want to support me?': 'Gillar du den här appen och vill stödja mig?'
'Buy me a coffee ☕': '' 'Buy me a coffee ☕': 'Bjud mig på en kaffe ☕'
'Hidden': '' 'Hidden': 'Dold'
'Small': '' 'Small': 'Liten'
'Normal': '' 'Normal': 'Normal'
'Big': '' 'Big': 'Stor'
'Hidden icon': '' 'Hidden icon': 'Dold ikon'
'Small icon': '' 'Small icon': 'Liten ikon'
'Normal icon': '' 'Normal icon': 'Normal ikon'
'Big icon': '' 'Big icon': 'Stor ikon'
'Hidden text': '' 'Hidden text': 'Dold text'
'Small text': '' 'Small text': 'Liten text'
'Normal text': '' 'Normal text': 'Normal text'
'Big text': '' 'Big text': 'Stor text'
'Colors': '' 'Colors': 'Färger'
'Background color': '' 'Background color': 'Bakgrundsfärg'
'Background color of current app': '' 'Background color of current app': 'Bakgrundsfärg för aktuell app'
'Text color': '' 'Text color': 'Textfärg'
'Loader': '' 'Loader': 'Laddare'
'Icon': '' 'Icon': 'Ikon'
'Same color': '' 'Same color': 'Samma färg'
'Opposite color': '' 'Opposite color': 'Motsatt färg'
'Transparent': '' 'Transparent': 'Transparent'
'Opaque': '' 'Opaque': 'Ogenomskinlig'
'Opener': '' 'Opener': 'Öppnare'
'Default': '' 'Default': 'Standard'
'Default (dark)': '' 'Default (dark)': 'Standard(mörk)'
'Hamburger': '' 'Hamburger': 'Hamburgermeny'
'Hamburger (dark)': '' 'Hamburger (dark)': 'Hamburgermeny(mörk)'
'Hamburger 2': '' 'Hamburger 2': 'Hamburgermeny 2'
'Hamburger 2 (dark)': '' 'Hamburger 2 (dark)': 'Hamburgermeny 2 (mörk)'
'Before the logo': '' 'Before the logo': 'Före logotypen'
'After the logo': '' 'After the logo': 'Efter logotypen'
'Position': '' 'Position': 'Position'
'Show only the opener (hidden logo)': '' 'Show only the opener (hidden logo)': 'Visa endast öppnaren (gömd logotyp)'
'Do not display the side menu and the opener if there is no application (eg: public pages).': '' 'Do not display the side menu and the opener if there is no application (eg: public pages).': 'Visa inte sidomenyn eller öppnaren om det inte finns någon applikation (t.ex. publika sidor).'
'Panel': '' 'Panel': 'Panel'
'Open the menu when the mouse is hover the opener (automatically disabled on touch screens)': '' 'Open the menu when the mouse is hover the opener (automatically disabled on touch screens)': 'Öppna menyn när muspekaren hovrar över öppnaren (automatiskt avaktiverat på pekskärmar)'
'Display the big menu': '' 'Display the big menu': 'Visa den stora menyn'
'Display the logo': '' 'Display the logo': 'Visa logotypen'
'Icons and texts': '' 'Icons and texts': 'Ikoner och texter'
'Loader enabled': '' 'Loader enabled': 'Laddare aktiverad'
'Tips': '' 'Tips': 'Tips'
'Always displayed': '' 'Always displayed': 'Alltid visad'
'This is the automatic behavior when the menu is always displayed.': '' 'This is the automatic behavior when the menu is always displayed.': 'Detta är det automatiska beteendet när menyn alltid är visad.'
'Not compatible with touch screens.': '' 'Not compatible with touch screens.': 'Inte kompatibel med pekskärmar.'
'Big menu': '' 'Big menu': 'Stor meny'
'Live preview': '' 'Live preview': 'Förhandsgranskning i realtid'
'Open apps in new tab': '' 'Open apps in new tab': 'Öppna appar i ny flik'
'Use the global setting': '' 'Use the global setting': 'Använd den globala inställningen'
'Use my selection': '' 'Use my selection': 'Använd mitt val'
'Show and hide the list of applications': '' 'Show and hide the list of applications': 'Visa och dölj listan över applikationer'
'Use the avatar instead of the logo': '' 'Use the avatar instead of the logo': 'Använd avataren istället för logotypen'
'You do not have permission to change the settings.': '' 'You do not have permission to change the settings.': 'Du har inte behörighet att ändra inställningarna.'
'Force this configuration to users': '' 'Force this configuration to users': 'Tvinga denna konfiguration för användare'
'Export the configuration': '' 'Export the configuration': 'Exportera konfigurationen'
'Purge the cache': '' 'Purge the cache': 'Rensa cachen'
'Show the link to settings': '' 'Show the link to settings': 'Visa länken till inställningarna'
'The menu is enabled by default for users': '' 'The menu is enabled by default for users': 'Menyn är aktiverad som standard för användare'
'Except when the configuration is forced.': '' 'Except when the configuration is forced.': 'Förutom när konfigurationen är tvingad.'
'Apps that should not be displayed in the menu': '' 'Apps that should not be displayed in the menu': 'Appar som inte ska visas i menyn'
'This feature is only compatible with the <code>big menu</code> display.': '' 'This feature is only compatible with the <code>big menu</code> display.': 'Denna funktion är endast kompatibel med <code>stor meny</code>.'
'The logo is a link to the default app': '' 'The logo is a link to the default app': 'Logotypen är en länk till standardappen'
'Others': '' 'Others': 'Övriga'
'Categories': '' 'Categories': 'Kategorier'
'Customize sorting': '' 'Customize sorting': 'Anpassa sortering'
'Order by': '' 'Order by': 'Sortera efter'
'Name': '' 'Name': 'Namn'
'Customed': '' 'Customed': 'Anpassad'
'Show and hide the list of categories': '' 'Show and hide the list of categories': 'Visa och dölj listan över kategorier'
'This parameters are used when Dark theme or Breeze Dark Theme are enabled.': '' 'This parameters are used when Dark theme or Breeze Dark Theme are enabled.': 'Dessa parametrar används när mörkt tema eller Breeze Dark Theme är aktiverade.'
'Dark mode colors': '' 'Dark mode colors': 'Färger för mörkt läge'
'With categories': '' 'With categories': 'Med kategorier'
'Custom categories': '' 'Custom categories': 'Anpassade kategorier'
'Customize application categories': '' 'Customize application categories': 'Anpassa app kategorier'
'Reset to default': '' 'Reset to default': 'Återställ till standardvärden'
'Applications': '' 'Applications': 'Applikationer'
'Applications kept in the top menu': '' 'Applications kept in the top menu': 'Applikationer som hålls i toppmenyn'
'Applications kept in the top menu but also shown in side menu': '' 'Applications kept in the top menu but also shown in side menu': 'Applikationer som visas både i toppmenyn och i sidomenyn'
'These applications must be selected in the previous option.': '' 'These applications must be selected in the previous option.': 'Dessa applikationer måste väljas i föregående alternativ.'
'Hide labels on mouse over': '' 'Hide labels on mouse over': 'Dölj etiketter när muspekaren är över'
'Except the hovered app': '' 'Except the hovered app': 'Förutom den app som muspekaren är över'
'Search': '' 'Search': 'Sök'
'Toggle the menu': '' 'Toggle the menu': 'Växla menyn'
'Open the documentation': '' 'Open the documentation': 'Öppna dokumentationen'
'Ask the developer': '' 'Ask the developer': 'Fråga utvecklaren'
'New request': '' 'New request': 'Ny förfrågan'
'Report a bug': '' 'Report a bug': 'Rapportera ett fel'
'Show the configuration': '' 'Show the configuration': 'Visa konfigurationen'
'Configuration:': '' 'Configuration:': 'Konfiguration:'
'Done!': '' 'Done!': 'Klar!'
'Copy': '' 'Copy': 'Kopiera'
'Need help': '' 'Need help': 'Behöver hjälp'
'I would like a new feature': '' 'I would like a new feature': 'Jag skulle vilja ha en ny funktion'
'Something went wrong': '' 'Something went wrong': 'Något gick fel'
'Select apps': '' 'Select apps': 'Välj appar'
'Sort': '' 'Sort': 'Sortera'
'Customize': '' 'Customize': 'Anpassa'
'Custom': '' 'Custom': 'Anpassad'
'Close': '' 'Close': 'Stäng'
+1 -1
View File
@@ -38,7 +38,7 @@
'Show only the opener (hidden logo)': '仅显示触发器(隐藏徽标)' 'Show only the opener (hidden logo)': '仅显示触发器(隐藏徽标)'
'Do not display the side menu and the opener if there is no application (eg: public pages).': '如果没有应用程序(例如:公共页面),则不要显示侧边栏菜单和触发器。' 'Do not display the side menu and the opener if there is no application (eg: public pages).': '如果没有应用程序(例如:公共页面),则不要显示侧边栏菜单和触发器。'
'Panel': '面板' 'Panel': '面板'
'Open the menu when the mouse is hover the opener (automatically disabled on touch screens)': '‌当鼠标悬停在触发器上时打开菜单(在触摸屏上自动禁用)' 'Open the menu when the mouse is hover the opener (automatically disabled on touch screens)': '当鼠标悬停在触发器上时打开菜单(在触摸屏上自动禁用)'
'Display the big menu': '显示大型菜单' 'Display the big menu': '显示大型菜单'
'Display the logo': '显示徽标' 'Display the logo': '显示徽标'
'Icons and texts': '图标和文本' 'Icons and texts': '图标和文本'
+2
View File
@@ -17,6 +17,8 @@
import './scss/menu.scss' import './scss/menu.scss'
import '@formatjs/intl-segmenter/polyfill.js'
import { createApp } from 'vue' import { createApp } from 'vue'
import { createPinia } from 'pinia' import { createPinia } from 'pinia'
import { createElement, waitContainer } from './lib/dom.js' import { createElement, waitContainer } from './lib/dom.js'
+17 -12
View File
@@ -62,8 +62,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</li> </li>
</ul> </ul>
<NcActions <NcActions
class="cm-standardmenu-app-menu-more app-menu-more" class="cm-standardmenu-app-menu-more"
:aria-label="t('core', 'More apps')" :aria-label="t('core', 'More apps')"
:forceMenu="true"
> >
<NcActionLink <NcActionLink
v-for="app in popoverAppList" v-for="app in popoverAppList"
@@ -132,19 +133,27 @@ const setApps = (value) => {
const appLimit = () => { const appLimit = () => {
const headerStart = document.querySelector('#header .header-start') const headerStart = document.querySelector('#header .header-start')
const headerEnd = document.querySelector('#header .header-end') const headerEnd = document.querySelector('#header .header-end')
const unifiedSearch = document.querySelector('#header .unified-search-input')
const body = document.querySelector('body') const body = document.querySelector('body')
let size = (headerEnd ? headerEnd.offsetWidth : 0) + 70 let totalWidth = body.offsetWidth
let otherElementsWidth = headerEnd ? headerEnd.offsetWidth : 0
if (unifiedSearch && headerEnd.offsetWidth < unifiedSearch.offsetWidth) {
otherElementsWidth += unifiedSearch.offsetWidth
}
let maxWidth = body.offsetWidth - otherElementsWidth
if (headerStart) { if (headerStart) {
Array.from(headerStart.children).forEach((child) => { Array.from(headerStart.children).forEach((child) => {
if (child.id !== 'app-menu-container') { if (child.id !== 'app-menu-container') {
size += child.offsetWidth maxWidth -= child.offsetWidth
} }
}) })
} }
return Math.max(0, Math.floor((body.offsetWidth - size) / 70)) return Math.max(0, Math.floor(maxWidth / 60))
} }
const makeStyle = (app) => { const makeStyle = (app) => {
@@ -156,13 +165,9 @@ const makeStyle = (app) => {
} }
const computeLists = () => { const computeLists = () => {
mainAppList.value = appList.value.slice(0, appLimit()) const limit = appLimit()
popoverAppList.value = appList.value.slice(appLimit()).sort((a, b) => a.order - b.order) mainAppList.value = appList.value.slice(0, limit)
} popoverAppList.value = appList.value.slice(limit).sort((a, b) => a.order - b.order)
const reComputeLists = (delay) => {
window.clearTimeout(resizeTimeout)
resizeTimeout = window.setTimeout(computeLists, delay || 100)
} }
onMounted(async () => { onMounted(async () => {
@@ -177,7 +182,7 @@ onMounted(async () => {
setApps(await navStore.getCoreApps()) setApps(await navStore.getCoreApps())
window.addEventListener('resize', reComputeLists) window.setInterval(computeLists, 100)
}) })
</script> </script>
-5
View File
@@ -32,11 +32,6 @@
.app-navigation-entry__name { .app-navigation-entry__name {
padding-left: 10px !important; padding-left: 10px !important;
} }
.app-navigation-toggle-wrapper {
top: calc(var(--app-navigation-padding) - 3px) !important;
inset-inline-end: calc(0px - var(--app-navigation-padding) * 3) !important;
}
} }
&-tips { &-tips {
+26
View File
@@ -363,6 +363,16 @@
right: 0 !important; right: 0 !important;
margin-left: 0 !important; margin-left: 0 !important;
} }
#content {
left: 53px;
width: calc(100% - (var(--body-container-margin) * 2) - 62px);
}
#content-vue {
width: calc(100% - (var(--body-container-margin) * 2) - 60px);
margin-left: 11px;
}
} }
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {
@@ -385,6 +395,16 @@
padding: 10px 0; padding: 10px 0;
} }
} }
#header {
.unified-search-input {
width: 80px !important;
.unified-search-input__label {
display: none;
}
}
}
} }
@media screen and (min-width: 1024px) { @media screen and (min-width: 1024px) {
@@ -599,3 +619,9 @@ $header-icon-size: 20px;
display: none; display: none;
} }
} }
#header {
.unified-search-input:not(.unified-search-input--mobile) {
position: unset !important;
}
}
+2
View File
@@ -17,6 +17,8 @@
import './scss/admin.scss' import './scss/admin.scss'
import '@formatjs/intl-segmenter/polyfill.js'
import { createApp } from 'vue' import { createApp } from 'vue'
import { createPinia } from 'pinia' import { createPinia } from 'pinia'
import { waitContainer } from './lib/dom.js' import { waitContainer } from './lib/dom.js'
+1 -13
View File
@@ -38,7 +38,7 @@ body[data-theme-light], body[data-theme-light-highcontrast] {
<?php if ($_['opener-only']) { ?> <?php if ($_['opener-only']) { ?>
#nextcloud { #nextcloud {
display: none; display: none !important;
} }
<?php } ?> <?php } ?>
@@ -117,15 +117,3 @@ body[data-theme-light], body[data-theme-light-highcontrast] {
font-size: 16px; font-size: 16px;
} }
<?php } ?> <?php } ?>
<?php if ($_['always-displayed']) { ?>
#content {
left: 53px;
width: calc(100% - (var(--body-container-margin) * 2) - 62px);
}
#content-vue {
width: calc(100% - (var(--body-container-margin) * 2) - 60px);
margin-left: 11px;
}
<?php } ?>
+2
View File
@@ -7,6 +7,7 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin') const TerserPlugin = require('terser-webpack-plugin')
const appName = 'side_menu' const appName = 'side_menu'
const appVersion = '6.x'
const buildMode = process.env.NODE_ENV const buildMode = process.env.NODE_ENV
const isDev = buildMode === 'development' const isDev = buildMode === 'development'
@@ -80,6 +81,7 @@ module.exports = {
new webpack.DefinePlugin({ new webpack.DefinePlugin({
appName: JSON.stringify(appName), appName: JSON.stringify(appName),
appVersion: JSON.stringify(appVersion),
}), }),
], ],