* Add extra error handling for invalid messages
* added description and logging
* renamed fix function
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Show divider in related item drawer only if necessary
* Enhance types while we're at it
* Add changeset
---------
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* Add clarity to ROOT_REDIRECT and SERVE_APP
Clarifying the function of the `ROOT_REDIRECT` and `SERVE_APP` settings in the config docs.
* Add my username to contributors.yml
* fix typo
* Tweak descriptions
---------
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* added extra guards for a couple commands
* Abstracted guard checking to util
* Updated the delete commands
* Updated the read commands
* Updated the update commands
* Create slow-buckets-draw.md
* my friend prettier
* Allow update-check to work in read-only envs & add timeout
* Update deps in 'update-check'
* Add changeset
* Switch to `got`
* Fix dir check
The cache dir usually doesn't exist, so we need to create it first.
If the dir shouldn't exist already, this also catches the case when fs is read only -
if it should exist but fs is read only, the cache is now forgivable enough to not fail.
'fs.access' would not be sufficiently reliable anyway,
since permission could change between the check and write action.
* Add basic test
* Disable retry
* Fix broken link
Link was pointing to an older page (I assume). Updated to what I believe is the right page.
* Update link description
* Create clever-guests-stare.md
* Clarify changeset
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
* add encodeURIComponent to item id
* signoff on contributers.yml
* Update test
* Normalize URLs
* Add changeset
* Don't rely on encodeURIComponent in test
* Don't use router.resolve as resulting URL wouldn't be loaded correctly
* Split out 'getItemRoute' into new 'getCollectionRoute' function
* Switch to 'get-route' utils
* Omit mock & add test for singleton system collection
* Add hint for return type
* Update changeset
* Update app/src/utils/get-route.test.ts
* Update app/src/utils/get-route.ts
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
* improve notifications view
* add pagination
* add dense option
* cas to boolean
* add archive all button
* fix padding
* make links colored
* Update app/src/lang/translations/en-US.yaml
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
* Update notifications-drawer.vue
* Use v-text-overflow component for title & time, clean-up styles
* Load notifications only as soon as drawer is opened
* Fix link when item is undefined
* fix resetting page
* Start search bar in collapsed state when opening drawer
* Effectively apply smaller width to search bar
* Custom sidebar label
* Remove unused/obsolete `useTimeFromNow` composable
* Move datetime logic to reusable composable & use it in notification drawer
Nice benefit is that it now uses the same refresh interval for all usages of `useDatetime` across the whole page
* Update unread count on archive actions
* Finalize
- Transform use-datetime composable into renderless component,
see https://vuejs.org/guide/components/slots.html#scoped-slots
With this we can get rid of the hacky 'refresher' but still use it in
any context, e.g. together with v-text-overflow
- Only update unread count on archive all action as we cannot be sure
about the current count in case of single archive/unarchive
- Renaming some variables/classes for clarity
* Add missing newline
* Add changeset
* Fix optional props definition
* Make notification content selectable
* Reuse markdown style from markdown interface
* Generalize small search input if sidebar active
---------
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
* fix#7420 ignore extra envs for mysql
* Update contributors.yml
* Run formatter
* Add changeset
---------
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* improving error/response handling
* updated request function to expose the response on error
* updated the composables where needed
* Create few-rules-talk.md
* ran prettier
* undid unintended type change
* added missing awaits for onResponse
* Update few-rules-talk.md
* Mark it as major change
* unpack directus errors instead of nesting
* ran prettier
* Update .changeset/few-rules-talk.md
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>