Commit Graph

60 Commits (abaf6cd3a4f706a76775dee43210b4a8b91316b5)

Author SHA1 Message Date
Christopher Ng 12571079fc Bump @nextcloud/vue from 7.5.0 to 7.7.0
- Add node-polyfill-webpack-plugin to polyfill Node.js core modules

Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 year ago
Christopher Ng edcf675e6e Drop vue-clipboard2 to fix copy to clipboard
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 year ago
Christopher Ng 0236c9e8cd Port files sharing selector
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 year ago
Vincent Petry e9f7ea11bb
Improve password generation for link shares
Use web crypto when generating password for link shares
whenever the password policy app is disabled.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
1 year ago
Christopher Ng 41d7f9dff2 Add visible share label
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 year ago
Christopher Ng f09300b343 Differentiate share links
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 year ago
Christopher Ng 3d7a027ad8
Bump @nextcloud/vue, @nextcloud/l10n and @nextcloud/calendar-availability-vue
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
Christopher Ng de7b7d3313 Fix inability to re-enter share password after invalid input
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 year ago
rakekniven 17e5d0b985 l10n: Fixed typo
Reported at Transifex.

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 year ago
julia.kirschenheuter 1063fbcb10
Replace custom tooltips with native one in vue components and views
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
1 year ago
Thomas Citharel ab6e7d33f8 Remove jstz usage from server
Every proper browser has this kind of data now, with more up-to-date
data than what's inside this package, which hasn't been updated in 3
years.

https://github.com/pellepim/jstimezonedetect/issues/6
https://github.com/pellepim/jstimezonedetect/issues/9

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 year ago
John Molakvoæ 5b9a8f0407
Add component testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
Max 787262be4f
fix: remove other shares from ui when deleted
Remove the share entry in question
when unsharing a folder
from within the `others with access` section
of a file within that folder.

Using the code from the ShareList view here as well.
Just copying the code here as this is a bugfix
that will need to be backported.

Signed-off-by: Max <max@nextcloud.com>
1 year ago
Christopher Ng fb2fb0d2d5 Revert "Copy to clipboard with button instead of link"
This reverts commit 4ffc022c8b.

Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 year ago
Christopher Ng 08e15308cb Add success popup message for copying share links
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Christopher Ng 7c943c5ce4 Show success on share actions
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Louis Chemineau 9d54b608bd Compile assets
Signed-off-by: Louis Chemineau <louis@chmn.me>
2 years ago
Christopher Ng 4ffc022c8b Copy to clipboard with button instead of link
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Christopher Ng 20da3d081e Add label to sharing search field
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
John Molakvoæ 2b4ce7b95d
Fix date handling and saving
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years ago
Vincent Petry 3bf11dcf60
Fix visibility of internal expire date
Fixed visibility of the expiration date field for internal shares by
aligning the logic with the one from the public link shares.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2 years ago
julia.kirschenheuter 1eac730caf Replace moment.js date with Date Object.
Replace vue2-datepicker with native date picker for expiration date.

Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years ago
Vincent Petry 42bc63f1a0 Update apps/files_sharing/src/components/SharingEntryInternal.vue
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years ago
Vincent Petry 64a4abf472
Fix focussing to internal link after copy
Since a recent change to NcActions it's not possible to add a "ref"
attribute on a NcAction* component.

As a workaround, a ref was added on the NcActions parent component
instead.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2 years ago
Christopher Ng 5d083d0b46 Align sharing tab content and increase spacing
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Christopher Ng ccc8316de0 Increase spacing between additional sharing tab content
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Carl Schwan 3fcb05e900
Port Profile section checbox to NcCheckoxRadioSwitch component
Improve accessibility and unify the design

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
luz paz 9d26671f05 Fix typos in apps/ subdirectory
Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/`

Signed-off-by: luz paz <luzpaz@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years ago
Vincent Petry bfb52957c7
Update to @nextcloud/vue-6.0.0-beta.4
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2 years ago
Vincent Petry d0473214cd
Add Nc prefix to Nc vue component names
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2 years ago
Christopher Ng 7a13388fe9 Hide deprecated projects in sharing tab by default
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Julius Härtl 02fd7d2216 Fix label for allow download share permission
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years ago
Carl Schwan 7b723813ce
Multiple fixes
- Fix tests
- Use non deprecated event stuff
- Add a bit of type hinting to the new stuff
- More safe handling of instanceOfStorage (share might not be the first
  wrapper)
- Fix resharing

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Vincent Petry 4a8cbb82fd
Accessible names for share panel buttons
Added aria-label for the buttons on the share panel.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years ago
dependabot[bot] 7566b305d7 Bump underscore from 1.12.0 to 1.13.4
Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.4.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](https://github.com/jashkenas/underscore/compare/1.12.0...1.13.4)

---
updated-dependencies:
- dependency-name: underscore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years ago
Vincent Petry bb2557c389
Replace files app ids to classes
Replaced ids to classes for the following:

- #filestable -> .files-filestable
- #fileList -> .files-fileList
- #controls -> .files-controls
- #emptycontent -> .emptyfilelist.emptycontent

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2 years ago
Vincent Petry be6285acf6
Fix sharing panel lighthouse warnings
Replaced h5 with span and adjusted selectors.
Fixed ul/li hierarchy of some elements.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2 years ago
Christopher Ng e0492074aa Add expanded attribute to button for listing others with access
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Cyrille Bollu 50badb3fb6 Various improvements related to the recent implementation of temporary passwords
for mail shares:

1- Changes style of "forgot password?" and "Back" button
2- Adds information about share password's expiration time in the emails sent.
3- Shows password expiration time in the Share menu
4- Fixes an issue when the message "Password expires..." would be shown for non email share types (which don't have temporary passswords)
5- At share's creation, password should only be sent when it's a permanent one

See also https://github.com/nextcloud/server/issues/31952

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years ago
dependabot[bot] ed89243950 Bump webpack from 5.72.0 to 5.73.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.72.0 to 5.73.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.72.0...v5.73.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years ago
Louis Chemineau 5fee0fbd5b Fix share permissions rendering
The `SHARE` permissions falls into the `default` case in the switch case, causing the rendering to look like ` , Upload, Read`.

This PR changes the return value of the `default` case and adds a `filter` to remove those values.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2 years ago
Carl Schwan 581e13a2d3 Fix loading groupfolder info when share api is disabled
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Carl Schwan da49e3f3e0 Port share by mail settings to vue
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
John Molakvoæ 264adf0c3b
Fix profile and add gradient-primary-background
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years ago
nextcloud-command 369a7f3128
Compile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years ago
Cyrille Bollu c6a5c07041 Adds a "Request password" button to the public share authentication page for shares
of type TYPE_EMAIL, when the "video verification" checkbox isn't checked. Users accessing
non-anonymous public shares (TYPE_EMAIL shares) can now request a temporary password themselves.

- Creates a migration step for the files_sharing app to add the 'password_expiration_time'
  attribute to the oc_shares table.
- Makes share temporary passwords' expiration time configurable via a system value.
- Adds a system config value to allow permanent share passwords

-Fixes a typo in a comment in apps/files_sharing/src/components/SharingEntryLink.vue

See https://github.com/nextcloud/server/issues/31005

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2 years ago
Christopher Ng 108abd77ed Add profile default setting for admin
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Louis Chemineau 3d33c8107e Fix regression for edit perm on file share
Signed-off-by: Louis Chemineau <louis@chmn.me>
2 years ago
Louis Chemineau da435b1e67 Support CRUD share permissions
Signed-off-by: Louis Chemineau <louis@chmn.me>
2 years ago
Louis Chemineau 99570df60a Use asset-loader instead of url-loader
Signed-off-by: Louis Chemineau <louis@chmn.me>
2 years ago