Commit graph

178 commits

Author SHA1 Message Date
Ferdinand Thiessen
dec9a39a18
chore: Move legacy dialogs template from files to core until we can remove it
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-09-20 13:47:08 +02:00
Ferdinand Thiessen
085aab24ff
chore: fix usage of deprecated functions and adjust code style
This solves 57 ESLint warnings by replacing deprecated code with `@nextcloud/` libraries,
as well as adding missing type information, importing jQuery instead of relying on global one,
and the same with Moment.js.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-09-20 03:30:20 +02:00
Ferdinand Thiessen
691f570237
chore: Enable ESLint for apps and fix all errors
Nevertheless this causes a huge amount of new warnings.
Previously the shell script for directories to lint was wrong it was generating all app names to lint,
but was missing the `apps/` prefix. Causing only `core` to be linted.

Co-authored-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-09 17:13:30 +02:00
Andy Scherzinger
1f7e2ba599
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-13 17:41:36 +02:00
Ferdinand Thiessen
8d5c0135dc
feat: Deprecate OC.dialogs and replace generic dialogs with @nextcloud/dialogs alternative
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-10 13:53:02 +02:00
Ferdinand Thiessen
46e78d1b8b
feat: Deprecate OC.dialogs.prompt an replace with Vue implementation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-10 13:51:36 +02:00
Ferdinand Thiessen
76dc3787e2
fix: Add deprecation to OC.dialogs.fileexists
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-09 20:17:24 +02:00
julia.kirschenheuter
7d00c7fde4 Replace password dialog with dialog from library
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-10-17 14:09:43 +02:00
Christoph Wurst
6a375ca161 refactor: Contacts menu to Vue
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-10-16 14:12:20 +00:00
Christopher Ng
861183154b enh(a11y): Add search contacts label
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-09-07 16:23:01 -07:00
Ferdinand Thiessen
93acc47761 fix(dialogs): Use FilePickerBuilder to create the file picker
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-26 20:56:09 +02:00
Ferdinand Thiessen
3d74ed85ff feat: Add new Vue FilePicker from @nextcloud/dialogs and use it by default.
Still providing the legacy one until the Vue FilePicker is out of beta.
Pin beta releases so we do not get version conflicts.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-26 20:55:51 +02:00
Marcel Klehr
3036f467a8 Fix(OC/password-confirmation): Hide the correct button
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-07-04 09:55:46 +02:00
fenn-cs
b83aaed283 Update aria-expanded attribute for sidebar apps-slide-toggles
Some apps which use the machanism provided in `core/src/OC/apps.js`
for toggle slide up/down in the side bar would equally rely on same for
`aria-expanded` state change.

For example : https://github.com/nextcloud/activity/pull/1230

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-06-30 11:47:21 +00:00
John Molakvoæ
adff75d559
fix: restore AppsSlideToggle feature
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-06-25 15:39:32 +02:00
Simon L
95deec130a address review
Signed-off-by: Simon L <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-06-24 15:00:15 +00:00
Simon L
872483f279 only print deprecation logs if debug mode is enabled
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-06-24 16:54:11 +02:00
Simon L
1afc82327a Move deprecation warnings to debug
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-06-24 16:54:11 +02:00
Ferdinand Thiessen
dd1f437ad0 chore(OC): Remove deprecated legacy loader from OC (OC.loadScript and OC.loadStyle)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-31 23:15:36 +02:00
Ferdinand Thiessen
a08b098476 chore: Remove deprecated OC.appSettings
Was deprecated since NC17 and scheduled for removal on NC18.
No apps use it and neither do core.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-20 15:28:23 +02:00
Jérôme Herbinet
16361bed5e
Merge branch 'master' into patch-20
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2023-04-19 16:32:01 +02:00
Jérôme Herbinet
461fa9a1da
Following Artonge suggestion
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2023-04-19 16:15:17 +02:00
Julius Härtl
389c6dc30b
fix: Fix filepicker breadcrumbs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-04-07 16:04:50 +02:00
John Molakvoæ
a66cae02ef
fix(deps): update webdav 5 usage
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-06 14:49:32 +02:00
John Molakvoæ
29a7f7f6ef
feat(files_trashbin): migrate to vue
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-06 14:49:29 +02:00
Julius Härtl
837622cb87
fix: Adjust filepicker breadcrumb structure to recent a11y changes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-04-05 11:40:40 +02:00
julia.kirschenheuter
ccf92975f3 Replace custom tooltips with native ones of entries in contacts menu.
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-03-29 10:41:53 +02:00
julia.kirschenheuter
db0670f0cb Change contactsmenu structure to a list
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-03-27 10:48:59 +02:00
John Molakvoæ
8633f13e0a
chore(eslint): fix missing import extensions
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-03-23 08:14:19 +01:00
Joas Schilling
188e486bc0
fix(docs): Fix URL to docs of deprecated function humanFileSize
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-03-08 10:23:22 +01:00
Christopher Ng
9d904b144b Add avatar contact img description
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-03-03 13:22:14 -08:00
Julius Härtl
1da4fe48cf
feat(filepicker): Allow to pass target for rendering the file picker to different locations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-02 21:01:44 +01:00
Christopher Ng
0a9ce1ff34 Add name for home breadcrumb in filepicker
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-02-24 10:31:06 -08:00
Ferdinand Thiessen
cdc3848345 Deprecate OC.L10N functions in favor of translation functions from @nextcloud/l10n
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-02-20 15:03:21 +01:00
Ferdinand Thiessen
7e3372cd92 Drop OC.addTranslations deprecated since NC17 and not used by any NC app
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-02-20 12:46:30 +01:00
Louis Chemineau
a547aff7a4 Restore copy button text on directory fetch error
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-02-08 10:54:17 +01:00
Christopher Ng
f6aa5224c4 Focus trap contacts menu with NcHeaderMenu port
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-01-13 23:19:28 +00:00
Vincent Petry
42d9e087fb
Remove unused legacy ajax/list.php in files app
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-01-09 15:18:37 +01:00
Vincent Petry
9a948a6b39
Limit toggle grid view button scope
Limit the button action scope to the file picker dialog so that it
doesn't touch the file list present in the page.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-11-17 14:09:52 +01:00
Carl Schwan
945edfefcd Fix icon of encrypted folders in filepicker
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-10-17 01:04:13 +02:00
John Molakvoæ
96bbc1a7a1 Fallback to root if the picker folder doesn't exists
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-09-01 17:13:04 +00:00
Carl Schwan
2f30d3227f
Various fixes
- Fix user status dialog
  - Add label where missing
  - Move emoji picker inside input field (similar to talk)
  - Fix selecting an emoji
- Fix multiselect
- Fix button with confirmation action
- Fix some other unrelated dark theme issues
- Fix select2 focus
- Run npm lint:fix

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-26 19:49:00 +02:00
Daniel Kesselberg
f832db0801
Update typehint for confirmDestructive
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-08-24 12:56:41 +02:00
julia.kirschenheuter
6d12f8b8a1 Add ``aria-expanded`` value to select2-container om systemtag and file tags
Add ```aria-expanded``` to color picker
Add ```aria-expanded``` to UnifiedSearch.vue
Add ```aria-expanded``` to new button on files
Add ```aria-expanded``` to action menu
Add ```aria-expanded``` to icon .federation-menu
Add ```aria-expanded``` to app navigation collapse button

Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-08-17 19:28:40 +00:00
Ferdinand Thiessen
003c76cca2 FilePicker: Hide also outline of new button if type is CHOOSE
If the filepicker mode is set to `FILEPICKER_TYPE_CHOOSE`
currently only the button but not the outline of it is hidden.

This also hides the outline to fix #33142

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-20 18:03:53 +00:00
Christopher Ng
7219847ad1 Add accessible names for file picker grid view toggle and new folder button
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-01 00:44:05 +00:00
Christopher Ng
0ea95c3ff6 Rename a11y helper function
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-06-09 00:25:13 +00:00
Christopher Ng
343eab4c96 Update variable name
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-06-09 00:20:37 +00:00
Christopher Ng
189926b107 Add a11y utility function
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-06-09 00:17:19 +00:00
Christopher Ng
16d2238de5 Use keyboard controls for new folder creation
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-06-09 00:12:24 +00:00