Commit graph

21326 commits

Author SHA1 Message Date
Norm 02079593d5 client: Switch to upstream browser-image-resizer version
This should reduce package install times since the pre-built version
from npmjs is used instead of having to build from source.
2022-10-11 03:28:11 +00:00
Norm e8ed254e4d
client: fix types in tab.vue 2022-10-10 22:42:17 -04:00
Norm 08c65e9797
client: auto-fix lints in tab and page-header 2022-10-10 18:55:33 -04:00
Norm 13a3581817
Merge branch 'refactor/use-null-coalesce-etc'
Reviewed-on: FoundKeyGang/FoundKey#195
2022-10-10 18:44:19 -04:00
Johann150 808c43377e
refactor: use nullish coalescing & optional chaining
Changes several places to use the afforementioned constructs in favour of
ternary expressions.
2022-10-11 00:39:27 +02:00
Norm 91c043689b Merge pull request 'backend: Fix imports from weird paths' (#192) from Michcio/FoundKey-0x7f:extensionless-imports into main
Reviewed-on: FoundKeyGang/FoundKey#192
2022-10-10 18:58:54 +00:00
Michcio 30faeb73d2 backend: Fix type errors in genId
I checked on NodeJS locally and `Math.min` was coercing the Dates to numbers,
I'm just making it more obvious (to the typechecker as well)
2022-10-10 20:50:04 +02:00
Michcio dc510c6834 Fix imports from weird paths
These imports were breaking in TS error checking and VS Code, because
imports need to have an extension to be valid, apparently
2022-10-10 20:45:45 +02:00
Michcio a91bbed34e
Make it impossible to start initializing Vue before DOM exists 2022-10-10 14:22:48 -04:00
Norm 4e0f14c0db Merge pull request 'client: refactor marquee component to composition API' (#187) from refactor/marquee into main
Reviewed-on: FoundKeyGang/FoundKey#187
2022-10-08 23:00:48 +00:00
Johann150 b018b05c5c
add type annotations 2022-10-08 15:10:14 -04:00
Johann150 b95f90eb15
client: refactor marquee component to composition API 2022-10-08 15:10:14 -04:00
Johann150 60e49a4196
add type annotations 2022-10-08 20:59:21 +02:00
Norm f6a5459f91
Merge PR 'client: refactor super-menu component to composition API' (#186)
Reviewed-on: FoundKeyGang/FoundKey#186
2022-10-07 19:50:56 -04:00
Johann150 3f59b7f705
client: refactor marquee component to composition API 2022-10-07 13:32:44 +02:00
Johann150 64e3239566
client: refactor super-menu component to composition API 2022-10-07 11:28:49 +02:00
Johann cee402c591 Translated using Weblate (German)
Currently translated at 100.0% (1366 of 1366 strings)

Translated using Weblate (German)

Currently translated at 100.0% (1366 of 1366 strings)

Translated using Weblate (English)

Currently translated at 99.7% (1363 of 1366 strings)

Co-authored-by: Johann <johann@qwertqwefsday.eu>
Translate-URL: http://translate.akkoma.dev/projects/foundkey/foundkey/de/
Translate-URL: http://translate.akkoma.dev/projects/foundkey/foundkey/en/
Translation: Foundkey/foundkey
2022-10-07 07:39:53 +00:00
Weblate 6a3f8aa4f9 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.akkoma.dev/projects/foundkey/foundkey/
Translation: Foundkey/foundkey
2022-10-07 07:39:53 +00:00
Johann150 8311b30b4c
client: fix tolerance for future timestamp 2022-10-07 09:38:44 +02:00
Norm 27cf3c4e05
client: Fix relative timestamps 2022-10-05 02:17:32 -04:00
Norm c20352b22e
backend: update THRESHOLD constants to use time constants 2022-10-05 00:54:16 -04:00
Norm 9084864b34
backend: translate comments in const.ts 2022-10-05 00:52:52 -04:00
Norm def5eb0d2e Merge pull request 'client: remove click-anime directive' (#185) from remove-anime into main 2022-10-05 04:41:32 +00:00
Johann150 6ef9069a2f
client: refactor components/tab.vue to composition API
Refactoring this component could be done after changing its method of
receiving the list of available tabs by using slots to using an
ordinary parameter. This was possible because all uses of this
component just provided text as the tab labels.

Also removed unused imports of this component.

Also removed the use of the click-anime directive.

Reviewed-on: FoundKeyGang/FoundKey#184
2022-10-04 21:25:20 +02:00
Johann150 c5f07ef66c
client: fix notification settings displaying empty
The default value was chosen incorrectly in commit
ab84457c0e. To be backward compatible
the default value has to include all available notification types.
2022-10-04 21:14:00 +02:00
Johann150 a79506d895
client: add default props for form link 2022-10-04 21:13:22 +02:00
Johann150 36a0f0c480
client: mark properties with defaults as optional 2022-10-04 20:42:12 +02:00
Johann150 06e40246db
client: mark properties with defaults as optional 2022-10-04 20:35:55 +02:00
Norm 9dddb1eb6d client: Use named constants for time calculations (#183)
Constants were borrowed from `const.ts` from the backend but also
includes `WEEK`, `MONTH`, and `YEAR` constants as well.

Co-authored-by: Francis Dinh <normandy@biribiri.dev>
Reviewed-on: FoundKeyGang/FoundKey#183
2022-10-04 18:05:41 +00:00
Johann150 f4f83cb091
client: remove click-anime directive 2022-10-04 20:01:14 +02:00
Johann150 93f54e3258
client: refactor components/tab.vue to composition API
Refactoring this component could be done after changing its method of
receiving the list of available tabs by using slots to using an
ordinary parameter. This was possible because all uses of this
component just provided text as the tab labels.

Also removed unused imports of this component.

Also removed the use of the click-anime directive.
2022-10-04 19:54:27 +02:00
Norm 717ab910ab
docker: update WORKDIR to foundkey
Changelog: Changed
2022-10-04 13:37:55 -04:00
Norm 4ab9312392
client: fix post-form.vue
This fixes an issue where the post form hangs after posting.
2022-10-04 13:04:07 -04:00
Johann150 1592420406
fix: don't provide null for header tabs 2022-10-04 17:39:57 +02:00
Johann150 b28c34b57d
fix types in classic UI widgets 2022-10-04 17:23:26 +02:00
Johann150 a593dcb003
client: refactor page-header
Fix a missing import.

Refactor all refs to use $ref.
2022-10-04 16:51:40 +02:00
Johann150 9abf8d467d
client: fix lints 2022-10-04 12:21:10 +02:00
Johann150 764c2ded23
client refactor: remove separate admin settings page header 2022-10-04 10:58:45 +02:00
Norm a6d1284423 backend: change Misskey -> FoundKey and use absolute import in index.ts 2022-10-03 20:04:06 +00:00
Johann150 398f43731d
client: replace one more "Misskey" 2022-10-03 20:42:24 +02:00
Johann150 c0b6b3f273
client: remove unused header tabs and actions 2022-10-03 20:42:14 +02:00
Norm 8ccc22bb35 Merge pull request 'refactor expiring data and expire signins after 60 days' (#180) from expire-data into main
Reviewed-on: FoundKeyGang/FoundKey#180
2022-10-03 18:27:13 +00:00
Michcio ffcb840e06
Fix type in thread muting 2022-10-03 13:24:27 -04:00
Johann150 198058b19a
add user visible note that login history expires
The display variant where no signin history items are present has been
made shorter and more appropriate.
2022-10-03 18:44:34 +02:00
Norm 4394957a5a
client: auto-fix lints 2022-10-03 03:05:53 -04:00
Norm 0b26d96776
Merge PR 'client: discard drafts that are just the default state' (#182)
Reviewed-on: FoundKeyGang/FoundKey#182
2022-10-03 02:53:13 -04:00
Johann150 a7f9e244f3
merge: allow redis family to be specified as a string
Reviewed-on: FoundKeyGang/FoundKey#165
2022-10-02 18:46:34 +02:00
Johann150 883554d902
client: update link to online translations 2022-10-02 18:40:46 +02:00
Johann150 def1e6396c
fixup: simplify check because there is never an initial poll 2022-10-02 16:13:37 +02:00
Johann150 2e07477398
client: discard drafts that are just the default state
Changelog: Changed
2022-10-02 15:52:39 +02:00