Commit graph

1517 commits

Author SHA1 Message Date
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 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
Johann150 be19ea610f
client: refactor components/ripple.vue to composition API 2022-10-02 13:10:32 +02:00
Johann150 5b7a06675f
refactor expiring data and expire signins after 60 days
closes FoundKeyGang/FoundKey#176

Changelog: Added
2022-10-02 00:18:07 +02:00
Johann150 f571f61c2d
client: don't use filename as alt text
This partially reverts commit e9ab42c10a
as explained at <FoundKeyGang/FoundKey#178 (comment)>.
2022-10-01 22:39:58 +02:00
Johann150 e995bd5673
bacakend: prefer absolute over relative imports
There are still many places where import paths with `..` are used and
maybe should use absolute paths also.
2022-10-01 10:22:56 -04:00
Johann150 b9f20ca16d
client: prefer absolute over relative imports 2022-10-01 10:22:56 -04:00
Johann150 41e7af1662
client refactor: merge script/i18n.ts into i18n.ts
The file i18n.ts was basically only a few lines that call into
scripts/i18n.ts. Instead of having the extra file it is just as good to
have the relevant code for i18n in one file. Since i18n.ts is
imported in many client components, while scripts/i18n.ts was only
imported in i18n.ts, the latter seems better to keep.

Added some more comments and translated the Japanese comments to
English.
2022-10-01 10:22:56 -04:00
Kayden Tebau e9ab42c10a
Alt text in image viewer 2022-09-30 13:59:26 -07:00
Norm 8ca544c45d
remove outgoingAddressFamily 2022-09-30 11:05:50 -04:00
Norm 29164740b9
fix warning message 2022-09-30 11:05:50 -04:00
Norm 508748ac0d
backend: refactor Redis option loading 2022-09-30 11:05:49 -04:00
Norm 5a52532c99
allow redis family to be specified as a string
This makes it consistent with `outgoingAddressFamily`, reducing
potential confusion.

For compatibility reasons, numbers are still permitted for `redis.family`
with the following mapping:
- `dual` = `0`
- `ipv4` = `4`
- `ipv6` = `6`

Changelog: Changed
2022-09-30 11:05:49 -04:00
Norm 465b72ab53 Merge pull request 'increase image description limit to 2048 characters' (#174) from bigger-image-description into main
Reviewed-on: FoundKeyGang/FoundKey#174
2022-09-29 07:28:00 +00:00
Norm 79662272ba
foundkey-js: update test domain to foundkey.test 2022-09-27 22:38:09 -04:00
Norm 54b717a3f4
client: Update repo url from Misskey to FoundKey
Changelog: Changed
2022-09-27 22:38:09 -04:00
Norm 80468b1529
foundkey-js: Change Misskey import to foundkey 2022-09-27 22:38:09 -04:00
Norm 6e8dcc4599
client: fix various lint issues
Mostly adding in missing return types and removing unused imports.
2022-09-26 15:14:09 -04:00
Norm 1ed9b15342
client: fix types for instance.ts 2022-09-26 15:05:35 -04:00
Norm c608f0b4c2
client: fix lints in about.emojis.vue 2022-09-26 15:02:22 -04:00
Norm 356d226171
client: fix lints in my-antennas pages 2022-09-26 02:31:44 -04:00
Norm 59428a49ce client: refactor container.vue to composition api (#164)
Co-authored-by: Francis Dinh <normandy@biribiri.dev>
Co-authored-by: Johann150 <johann.galle@protonmail.com>
Reviewed-on: FoundKeyGang/FoundKey#164
2022-09-25 22:26:19 +00:00
Puniko 186d693385
increase image description limit to 2048 characters
Changelog: Changed
2022-09-24 14:32:07 -04:00
Norm f35b856dfa
backend: fix quotes lint in thread-muting/create.ts 2022-09-23 23:02:39 -04:00
Michcio 2bb8642a2c backend: Fix thread muting queries
findOne != findOneBy
2022-09-25 15:08:12 +02:00
Norm 87f1b0cabc
client: fix inline translations 2022-09-24 22:13:31 -04:00
Norm 9470e12424 Merge pull request 'Revert "Use native shell commands for clean/clean-all"' (#170) from revert-native-clean into main
Reviewed-on: FoundKeyGang/FoundKey#170
2022-09-23 22:15:29 +00:00
Norm dba63e4000 Merge pull request 'mute notifications in muted threads' (#119) from mute-notifications into main
Reviewed-on: FoundKeyGang/FoundKey#119
Changelog: Changed
Fixes: #12
2022-09-22 19:52:32 +00:00
Norm d9a64d0a22 Revert "Use native shell commands for clean/clean-all"
This reverts commit 5fb294e7d7.

This will allow the clean/clean-all command to work on Windows once again.
2022-09-22 13:48:06 -04:00
Johann150 772d4618a6
remove global variables for i18n 2022-09-21 13:29:08 -04:00
Norm 1b92f580cb
backend: fix imports in queue/types.ts 2022-09-21 13:18:17 -04:00
Johann150 0022a7befb
backend: proper error messages for creating accounts
Admins will now get proper error messages when they try to create a
new user account and an error occurs.

Changelog: Fixed
2022-09-21 17:58:42 +02:00
Johann150 cc5a197785
do not create muted notification types in respective threads 2022-09-21 17:54:36 +02:00
Johann150 87411a6ed8
enhance: more descriptive info message 2022-09-21 17:54:36 +02:00
Johann150 ab84457c0e
client: use new API 2022-09-21 17:54:15 +02:00
Norm 7ea052aa25
backend: set moduleResolution to Node16 in tsconfig
This lets us catch any import errors in the backend as it now lines up
with Node's ESM module resolution.
2022-09-21 11:33:57 -04:00
Johann150 321bd24b98
api: handle muting notification types 2022-09-21 15:52:34 +02:00
Johann150 58aa7d36aa
refactor: use noteNotificationTypes 2022-09-21 15:52:34 +02:00
Johann150 35fd970c4a
add column: muted types in thread 2022-09-21 15:52:14 +02:00
Norm 26449d4944
backend: fix ApiError lints 2022-09-21 13:34:36 +02:00
Norm 78fd2ee38b
Merge branch 'backend-translate-source-lang'
Reviewed-on: FoundKeyGang/FoundKey#160
2022-09-20 23:55:21 -04:00
Norm a0e859ebcb
client: Make MFM cheatsheet interactive again
This reverts commit 9f0f5d1ab1.

Commit cb87d03fe9 made the preview_*
variables const and non-reactive likely by accident, which resulted in
build errors and the examples no longer interactive.

This makes the preview variables reactive, allowing the examples to be
interactive once again.

Changelog: Fixed
2022-09-20 14:13:37 -04:00
Michcio 9f0f5d1ab1 client: Fix rollup error "This assignment will throw"
Mfm cheat sheet was using constants in v-model.
I additionally set the textareas to readonly because now the
examples don't pretend to be interactive anymore.
2022-09-20 12:48:46 +02:00
Norm 8446fa4fca
backend: fixup foundkey ascii logo formatting in base template 2022-09-19 22:53:39 -04:00
Norm 2628f35012
client: fix lints in scripts/hotkey.ts 2022-09-19 18:49:59 -04:00
Norm ee46d32602
client: refactor folder.vue to composition api 2022-09-19 22:42:23 +02:00
Johann150 17f3dafd6b
client: bring targetLang into correct format
Now that stricter API validation has been added, it will be necessary
to modify the target language in the client so the API will not fail
with a validation error.
2022-09-19 22:20:50 +02:00
Johann150 fab7cdb85c
client: re-add instance list to admin panel
closes FoundKeyGang/FoundKey#162
2022-09-19 21:33:11 +02:00
Norm d5d8affc33 backend: allow for source lang to be overridden in note/translate
This adds a new optional `sourceLang` parameter to the `notes/translate`
endpoint. If not set, the old behaviour is used, else this sets the
`source_lang` parameter to the DeepL API call which makes it use the
source language specified instead of using autodetection.

Changelog: Changed
Ref: FoundKeyGang/FoundKey#33
2022-09-19 14:57:20 +00:00
Michcio d8a8306603 client: Sort emojis by query similarity in fuzzy picker (#156)
Co-authored-by: Chloe Kudryavtsev <code@toast.bunkerlabs.net>
Co-authored-by: Michcio <public+git@meekchopp.es>
Reviewed-on: FoundKeyGang/FoundKey#156
Changelog: Changed
Co-authored-by: Michcio <michcio@noreply.akkoma>
Co-committed-by: Michcio <michcio@noreply.akkoma>
2022-09-19 14:43:12 +00:00
Johann150 d5b0100d31
fix: add missing import for XValue 2022-09-19 15:11:59 +02:00
Michcio 7b7d4f5467
Allow files storage path to be set explicitly
Also added to the example config file - Johann150

Co-authored-by: Johann150 <johann.galle@protonmail.com>
Changelog: Added
2022-09-19 11:54:24 +02:00
Johann150 f0b91a62c9
fix HTTP GET parameters in OpenAPI docs
HTTP GET parameters are not to be specified in the requestBody but in
the parameters. This commit fixes that although admittedly it is kind
of a bodge and not perfect, but it is a start.

Changelog: Fixed
2022-09-19 10:54:23 +02:00
Norm 668181fb44
refactor: token-generate-window.vue to composition api 2022-09-18 21:12:35 +02:00
Johann150 26396f9900
client: Refactor gallery-post-preview.vue to composition API
Reviewed-on: FoundKeyGang/FoundKey#154
2022-09-17 23:09:11 +02:00
Johann150 790740ab2c
improve translation: document -> documentation 2022-09-17 22:59:39 +02:00
Johann150 1e9e1e8b9c
fix loading max emoji count when unlimited 2022-09-16 17:25:05 +02:00
Johann150 bcb93aec14
client: make emoji amount slider more intuitive
Changelog: Changed
2022-09-16 17:21:09 +02:00
Norm 75901301e2
client: fix typo in about.vue 2022-09-15 18:58:04 -04:00
Norm de8f2b3c63
foundkey-js: add bannerUrl to LiteInstanceMetadata 2022-09-15 18:57:49 -04:00
Norm 5814825c91
client: fix various lints 2022-09-15 18:56:05 -04:00
Norm 4da09fc9fb
foundkey-js: update LiteInstanceMetadata fields
Ads were removed in #5, and some client components need the
icon/favicon URLs.

Changelog: Changed
2022-09-15 18:55:46 -04:00
Norm d1a29ce87e
Merge branch 'feat/default-note-visibility'
Reviewed-on: FoundKeyGang/FoundKey#67
2022-09-15 17:43:35 -04:00
Johann150 106e14700f
client: include renote in visibility computation
Changelog: Changed
2022-09-15 17:42:04 -04:00
Johann150 17fa488eb9
refactor: move visibility computation to foundkey-js
Changelog: Changed
2022-09-15 17:39:51 -04:00
Chloe Kudryavtsev d434343a09
client: fix default-selected reply scopes
As a side-effect, I remove the broken "remember privacy scope" setting.

Co-authored-by: Johann150 <johann.galle@protonmail.com>
Changelog: Fixed
2022-09-15 17:38:00 -04:00
Johann150 a932f91c04
client: improve error message for empty gallery posts
closes FoundKeyGang/FoundKey#153

Changelog: Fixed
2022-09-15 22:01:16 +02:00
Norm cf24cd8809
client: remove @vue/compiler-sfc from package.json
Per the @vue/compiler-sfc description on npmjs.com[1]:
> Note: as of 3.2.13+, this package is included as a dependency of the
> main vue package and can be accessed as vue/compiler-sfc. This means
> you no longer need to explicitly install this package and ensure its
> version match that of vue's. Just use the main vue/compiler-sfc deep
> import instead.

[1]: https://www.npmjs.com/package/@vue/compiler-sfc
2022-09-14 23:39:57 -04:00
Norm 4d01ece286
refactor: fix remaining lints in backend daemons 2022-09-14 10:40:04 -04:00
Norm 846ca03a7c
client: refactor sidebar-for-mobile.vue to composition api 2022-09-14 12:02:18 +02:00
Norm f4b9244a88
client: refactor sparkle.vue to composition api 2022-09-14 10:54:50 +02:00
Chloe Kudryavtsev 2e8e475f32
client: remove ai mode
Changelog: Removed
2022-09-14 10:48:54 +02:00
Norm 63f47ada04 Merge pull request 'client: refactor info.vue to composition api' (#131) from refactor/client-info.vue into main
Reviewed-on: FoundKeyGang/FoundKey#131
2022-09-14 04:34:02 +00:00
Norm 3cbdac7621 Merge pull request 'chore: Change Misskey references to Foundkey' (#142)
Reviewed-on: FoundKeyGang/FoundKey#142
Changelog: Changed
2022-09-13 21:20:12 +00:00
Norm e507b1b888 backend: localize strings for service integrations
Currently only the 'connected' and 'disconnected' strings are translated.
2022-09-13 17:18:18 -04:00
Johann150 f4ee76d017
client: default instance ticker name to instance's domain name
Changelog: Fixed
2022-09-13 20:22:10 +02:00
Norm 57f4312a27
chore: Change Misskey references to Foundkey
Also remove the contributors list from about-foundkey (renamed from
about-misskey).

Some comments that referenced Misskey were also translated to English.

Closes: FoundKeyGang/FoundKey#141
2022-09-13 13:19:36 -04:00
Norm 2c24f8a9ef backend: make toHtml tests async
PRs #84, #134, and #136 changed toHtml to be async, but the test was not
updated to reflect that.
2022-09-13 15:20:25 +00:00
Johann150 9b7a0b574e
update foundkey-js readme 2022-09-13 17:17:47 +02:00
Johann150 677c1df597
rename foundkey-js imports to foundkey 2022-09-13 17:17:46 +02:00
Norm 9d15b7b5a2 Merge pull request 'foundkey-js: Sync possible endpoints from backend' (#149) from Michcio/FoundKey-0x7f:fkjs/endpoints-sync into main
Reviewed-on: FoundKeyGang/FoundKey#149
Changelog: Changed
2022-09-12 18:42:46 +00:00
Norm 193674ce03 Merge pull request 'backend: increase requestId max size for GNU Social' (#147) from fix/gnusocial-follow-request-ids into main
Reviewed-on: FoundKeyGang/FoundKey#147
Fixes: #146
Changelog: Fixed
2022-09-12 17:48:37 +00:00