This simplifies the code a lot and fixes errors with the exisiting custom code,
where slightly different base64 values were emitted which are not valid according to the standard.
ref: https://github.com/web-auth/webauthn-framework/issues/510
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
For security reasons it is recommended to stop the login process at a defined time,
this could prevent password leaks by e.g. user forgetting that they entered their password on public devices.
Enforced e.g. by the BSI ORP.4.A13 rule.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Excessively long emails reported make server unresponsive.
We could at some point, consider adding a configuration for sysadmins to bypass this setting
on their instance if they want.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This would allow us to type guard what is sent to`registerFilterAction`
for unified search, so that incompatibilties are caught quickly.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
E.g. the file reference widget should work with links to Nextcloud on
localhost.
This adjusts the URL pattern regexes in server to be in sync with the
ones in `@nextcloud/vue`. See nextcloud-libraries/nextcloud-vue#5176
for further details.
Signed-off-by: Jonas <jonas@freesources.org>
This commit introduces the mechanism for apps out of the call,
to add search filters to the unified search "Places" filter selector.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
The unified search emits, search events that other apps can subscribe to and
react however they want to search queries, following
4b55594f55 and prior updates to migrate the Files
app ui to vue.js that feature was broken.
This commit reintroduces the feature using the current `FileList` implementation.
This commit also adds some logging to an empty exception handler.
Resolve : https://github.com/nextcloud/server/issues/43365
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
It was deprecated for over 4 years and scheduled for removal with Nextcloud 20.
Not used by server or any app anymore.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
It does not support tree shaking as they are still building a cjs
bundle. However, they bundle certain futures to separate smaller modules
which we can take advantage of.
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Those elements are shown directly on the background which has the `color-primary`,
so they need to use `color-primary-text` instead of `color-primary-element-text` for guranteed contrast.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
As expected, a user does not see themselves in their contact list,
however, when using the contact list for filtering search, a user,
might want to limit the search to things that pertain to them.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
On change/input from user which has the effect of filtering,
we want to send the query to the API to obtained fresh results,
based on the databased on not just preloaded contacts.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
- Changes appearances of "Global search" to "Unified search" in UI
- Refactors code, to remove usage of term "GlobalSearch" in files and code
structure
- Rename old unified search to `legacy-unified-search`
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Following the update of `NcListItem` to allow control over
where and how passed `hrefs` open, the search result component
can now make use of these props.
See : https://github.com/nextcloud-libraries/nextcloud-vue/pull/4923
Resolves : #41800
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
For BOD, it's better to always emit the search event so
apps (all of which we don't know) responding to this effect would receive notifications when
the search happens within these apps.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
After moving the `SearchResult` to its own component and leaving
out the openResult method, the search results do not lead anywhere but
but error out.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
The current close infrastructure modifies a prop which has
no real effect aside bugs.
In addition, calling the `NcModal.close()` as the primary way to
close the search modal instead of using the states defined in `GlobalSearch` view
causing re-open bugs (Modal cannot open, needs to click twice, and other weird stuff).
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
- Show loading when actually loading, instead of no content
- Change modified label to `Date` as it applies to a bunch of things.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
For better accesibility, the search input in the global search
modal should be focused when the search modal is opened.
Resolves: https://github.com/nextcloud/server/issues/41651
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Emit search queries from the global search modal that would trigger
list filtering in various apps that support it.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
The section that handles the search result list item is big and complex enough
to have it's own component. Inside this component, a new method is added to hide
the thumbnail preview if the image load errors out.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
- Pass `results.rounded` property that comes with search result
data to determine if avatar would be rounded or not.
- Icons loaded via url's now visible.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
- Allow future dates in custom date range
- Fix date ranges for example, before now, today range was roughly
between `now()` to `now() + a few milli seconds`
- Update text in custom date range modal, right align "Search in range"
button.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Only show in-app serach button if available for specific app
in question.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
- Fixes remove person filter/chip when applied
- Close person searchable filter via workaround
- Person filter has no effect fixed, now uses user property instead of id
- Left align filters
- Reduce avatar size in user chip and make photo non-clickable
Resolves : https://github.com/nextcloud/server/issues/41381
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit migrates away from NcSelect which has a couple of
accesibility and display problems currently, hence a new component
`SearchableList` is now used.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
We are introducing a new search UI that providers a lot more space
for users via a large centralized modal and providers various filters
which can by applied by adding various chips on the UI.
For example, users can now filter their search or scope it by limiting the results
to specific apps, time period and people by apply the appropriate filters on the
new UI, previously filters where applied using text in the search box by prefixing
with `::`.
Resolves: #39162
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
`autocorrect` was actual for Safari long time ago when Safari didn't fully supported HTML 5 spellcheck.
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Our utility to add `X-Requested-With` headers on API calls intercepts
calls to `window.fetch`, so we must ensure we allow all parameters that the default
browser provided `window.fetch` allows.
In this case make sure to allow all stringify-able objects.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
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>
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>
* Also fixes other cypress test
* Build assets
Signed-off-by: Philipp Hempel <Philipp.Hempel1@web.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
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>
This check is very expensive, and will pass almost 100% of the time.
Related #36728
Depends on #38329
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Remove wrong background of error message boxes
* Use `NcTextInput` for username or mail to align with login box
* Add a heading for better overview where you (as a user) are currently
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>