Merge branch 'develop' into feature/emoji-grid
# Conflicts: # CHANGELOG.md # locales/index.d.ts # locales/ja-JP.yml # packages/misskey-js/etc/misskey-js.api.md # packages/misskey-js/src/autogen/entities.ts
This commit is contained in:
commit
82e9bcf9d4
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -1,8 +1,14 @@
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Note
|
||||||
|
- コントロールパネル内にあるサマリープロキシの設定個所がセキュリティから全般へ変更となります。
|
||||||
|
|
||||||
### General
|
### General
|
||||||
- Feat: カスタム絵文字管理画面をリニューアル #10996
|
- Feat: カスタム絵文字管理画面をリニューアル #10996
|
||||||
* β版として公開のため、旧画面も引き続き利用可能です
|
* β版として公開のため、旧画面も引き続き利用可能です
|
||||||
|
- Enhance: URLプレビューの有効化・無効化を設定できるように #13569
|
||||||
|
- Enhance: アンテナでBotによるノートを除外できるように
|
||||||
|
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/545)
|
||||||
- Fix: Play作成時に設定した公開範囲が機能していない問題を修正
|
- Fix: Play作成時に設定した公開範囲が機能していない問題を修正
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
|
@ -12,7 +18,9 @@
|
||||||
- Enhance: リアクション受け入れが「いいねのみ」の場合はリアクション絵文字一覧を表示しないように
|
- Enhance: リアクション受け入れが「いいねのみ」の場合はリアクション絵文字一覧を表示しないように
|
||||||
- Enhance: 設定>プラグインのページからプラグインの簡易的なログやエラーを見られるように
|
- Enhance: 設定>プラグインのページからプラグインの簡易的なログやエラーを見られるように
|
||||||
- 実装の都合により、プラグインは1つエラーを起こした時に即時停止するようになりました
|
- 実装の都合により、プラグインは1つエラーを起こした時に即時停止するようになりました
|
||||||
- Enhance: ページのデザインを変更
|
- Enhance: ページのデザインを変更
|
||||||
|
- Enhance: 2要素認証(ワンタイムパスワード)の入力欄を改善
|
||||||
|
- Enhance: 「今日誕生日のフォロー中ユーザー」ウィジェットを手動でリロードできるように
|
||||||
- Fix: 一部のページ内リンクが正しく動作しない問題を修正
|
- Fix: 一部のページ内リンクが正しく動作しない問題を修正
|
||||||
- Fix: 周年の実績が閏年を考慮しない問題を修正
|
- Fix: 周年の実績が閏年を考慮しない問題を修正
|
||||||
- Fix: ローカルURLのプレビューポップアップが左上に表示される
|
- Fix: ローカルURLのプレビューポップアップが左上に表示される
|
||||||
|
@ -22,9 +30,11 @@
|
||||||
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/528)
|
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/528)
|
||||||
- Fix: コードブロックのシンタックスハイライトで使用される定義ファイルをCDNから取得するように #13177
|
- Fix: コードブロックのシンタックスハイライトで使用される定義ファイルをCDNから取得するように #13177
|
||||||
- CDNから取得せずMisskey本体にバンドルする場合は`pacakges/frontend/vite.config.ts`を修正してください。
|
- CDNから取得せずMisskey本体にバンドルする場合は`pacakges/frontend/vite.config.ts`を修正してください。
|
||||||
|
- Fix: タイムゾーンによっては、「今日誕生日のフォロー中ユーザー」ウィジェットが正しく動作しない問題を修正
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Enhance: エンドポイント`antennas/update`の必須項目を`antennaId`のみに
|
- Enhance: エンドポイント`antennas/update`の必須項目を`antennaId`のみに
|
||||||
|
- Enhance: misskey-dev/summaly@5.1.0の取り込み(プレビュー生成処理の効率化)
|
||||||
- Fix: フォローリクエストを作成する際に既存のものは削除するように
|
- Fix: フォローリクエストを作成する際に既存のものは削除するように
|
||||||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/440)
|
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/440)
|
||||||
|
|
||||||
|
|
|
@ -36,10 +36,6 @@ export interface Locale extends ILocale {
|
||||||
* 検索
|
* 検索
|
||||||
*/
|
*/
|
||||||
"search": string;
|
"search": string;
|
||||||
/**
|
|
||||||
* リセット
|
|
||||||
*/
|
|
||||||
"reset": string;
|
|
||||||
/**
|
/**
|
||||||
* 通知
|
* 通知
|
||||||
*/
|
*/
|
||||||
|
@ -1620,6 +1616,10 @@ export interface Locale extends ILocale {
|
||||||
* 除外キーワード
|
* 除外キーワード
|
||||||
*/
|
*/
|
||||||
"antennaExcludeKeywords": string;
|
"antennaExcludeKeywords": string;
|
||||||
|
/**
|
||||||
|
* Botアカウントを除外
|
||||||
|
*/
|
||||||
|
"antennaExcludeBots": string;
|
||||||
/**
|
/**
|
||||||
* スペースで区切るとAND指定になり、改行で区切るとOR指定になります
|
* スペースで区切るとAND指定になり、改行で区切るとOR指定になります
|
||||||
*/
|
*/
|
||||||
|
@ -4916,6 +4916,18 @@ export interface Locale extends ILocale {
|
||||||
* リトライ
|
* リトライ
|
||||||
*/
|
*/
|
||||||
"gameRetry": string;
|
"gameRetry": string;
|
||||||
|
/**
|
||||||
|
* 使用しない場合は空欄にしてください
|
||||||
|
*/
|
||||||
|
"notUsePleaseLeaveBlank": string;
|
||||||
|
/**
|
||||||
|
* ワンタイムパスワードを使う
|
||||||
|
*/
|
||||||
|
"useTotp": string;
|
||||||
|
/**
|
||||||
|
* バックアップコードを使う
|
||||||
|
*/
|
||||||
|
"useBackupCode": string;
|
||||||
"_bubbleGame": {
|
"_bubbleGame": {
|
||||||
/**
|
/**
|
||||||
* 遊び方
|
* 遊び方
|
||||||
|
@ -9768,225 +9780,59 @@ export interface Locale extends ILocale {
|
||||||
*/
|
*/
|
||||||
"header": string;
|
"header": string;
|
||||||
};
|
};
|
||||||
"_gridComponent": {
|
"_urlPreviewSetting": {
|
||||||
"_error": {
|
|
||||||
/**
|
|
||||||
* この値は必須項目です
|
|
||||||
*/
|
|
||||||
"requiredValue": string;
|
|
||||||
/**
|
|
||||||
* 正規表現によるバリデーションはtype:textのカラムのみサポートします。
|
|
||||||
*/
|
|
||||||
"columnTypeNotSupport": string;
|
|
||||||
/**
|
|
||||||
* この値は{pattern}のパターンに一致しません
|
|
||||||
*/
|
|
||||||
"patternNotMatch": ParameterizedString<"pattern">;
|
|
||||||
/**
|
|
||||||
* この値は一意である必要があります
|
|
||||||
*/
|
|
||||||
"notUnique": string;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"_roleSelectDialog": {
|
|
||||||
/**
|
/**
|
||||||
* 選択されていません
|
* URLプレビューの設定
|
||||||
*/
|
*/
|
||||||
"notSelected": string;
|
"title": string;
|
||||||
};
|
/**
|
||||||
"_customEmojisManager": {
|
* URLプレビューを有効にする
|
||||||
"_gridCommon": {
|
*/
|
||||||
/**
|
"enable": string;
|
||||||
* 選択行をコピー
|
/**
|
||||||
*/
|
* プレビュー取得時のタイムアウト(ms)
|
||||||
"copySelectionRows": string;
|
*/
|
||||||
/**
|
"timeout": string;
|
||||||
* 選択範囲をコピー
|
/**
|
||||||
*/
|
* プレビュー取得の所要時間がこの値を超えた場合、プレビューは生成されません。
|
||||||
"copySelectionRanges": string;
|
*/
|
||||||
/**
|
"timeoutDescription": string;
|
||||||
* 選択行を削除
|
/**
|
||||||
*/
|
* Content-Lengthの最大値(byte)
|
||||||
"deleteSelectionRows": string;
|
*/
|
||||||
/**
|
"maximumContentLength": string;
|
||||||
* 選択範囲の行を削除
|
/**
|
||||||
*/
|
* Content-Lengthがこの値を超えた場合、プレビューは生成されません。
|
||||||
"deleteSelectionRanges": string;
|
*/
|
||||||
/**
|
"maximumContentLengthDescription": string;
|
||||||
* 検索設定
|
/**
|
||||||
*/
|
* Content-Lengthが取得できた場合のみプレビューを生成
|
||||||
"searchSettings": string;
|
*/
|
||||||
/**
|
"requireContentLength": string;
|
||||||
* 検索条件を詳細に設定します。
|
/**
|
||||||
*/
|
* 相手サーバがContent-Lengthを返さない場合、プレビューは生成されません。
|
||||||
"searchSettingCaption": string;
|
*/
|
||||||
/**
|
"requireContentLengthDescription": string;
|
||||||
* 並び順
|
/**
|
||||||
*/
|
* User-Agent
|
||||||
"sortOrder": string;
|
*/
|
||||||
/**
|
"userAgent": string;
|
||||||
* 登録ログ
|
/**
|
||||||
*/
|
* プレビュー取得時に使用されるUser-Agentを設定します。空欄の場合、デフォルトのUser-Agentが使用されます。
|
||||||
"registrationLogs": string;
|
*/
|
||||||
/**
|
"userAgentDescription": string;
|
||||||
* 絵文字更新・削除時のログが表示されます。更新・削除操作を行ったり、ページを遷移・リロードすると消えます。
|
/**
|
||||||
*/
|
* プレビューを生成するプロキシのエンドポイント
|
||||||
"registrationLogsCaption": string;
|
*/
|
||||||
/**
|
"summaryProxy": string;
|
||||||
* エラー
|
/**
|
||||||
*/
|
* Misskey本体ではなく、サマリープロキシを使用してプレビューを生成します。
|
||||||
"alertEmojisRegisterFailedTitle": string;
|
*/
|
||||||
/**
|
"summaryProxyDescription": string;
|
||||||
* 絵文字の更新・削除に失敗しました。詳細は登録ログをご確認ください。
|
/**
|
||||||
*/
|
* プロキシには下記パラメータがクエリ文字列として連携されます。プロキシ側がこれらをサポートしない場合、設定値は無視されます。
|
||||||
"alertEmojisRegisterFailedDescription": string;
|
*/
|
||||||
};
|
"summaryProxyDescription2": string;
|
||||||
"_logs": {
|
|
||||||
/**
|
|
||||||
* 成功ログを表示
|
|
||||||
*/
|
|
||||||
"showSuccessLogSwitch": string;
|
|
||||||
/**
|
|
||||||
* 失敗ログはありません。
|
|
||||||
*/
|
|
||||||
"failureLogNothing": string;
|
|
||||||
/**
|
|
||||||
* ログはありません。
|
|
||||||
*/
|
|
||||||
"logNothing": string;
|
|
||||||
};
|
|
||||||
"_remote": {
|
|
||||||
/**
|
|
||||||
* 選択行をインポート
|
|
||||||
*/
|
|
||||||
"importSelectionRows": string;
|
|
||||||
/**
|
|
||||||
* 選択範囲の行をインポート
|
|
||||||
*/
|
|
||||||
"importSelectionRangesRows": string;
|
|
||||||
/**
|
|
||||||
* チェックがついた絵文字をインポート
|
|
||||||
*/
|
|
||||||
"importEmojisButton": string;
|
|
||||||
/**
|
|
||||||
* 絵文字のインポート
|
|
||||||
*/
|
|
||||||
"confirmImportEmojisTitle": string;
|
|
||||||
/**
|
|
||||||
* リモートから受信した{count}個の絵文字のインポートを行います。絵文字のライセンスに十分な注意を払ってください。実行しますか?
|
|
||||||
*/
|
|
||||||
"confirmImportEmojisDescription": ParameterizedString<"count">;
|
|
||||||
};
|
|
||||||
"_local": {
|
|
||||||
/**
|
|
||||||
* 登録済み絵文字一覧
|
|
||||||
*/
|
|
||||||
"tabTitleList": string;
|
|
||||||
/**
|
|
||||||
* 絵文字の登録
|
|
||||||
*/
|
|
||||||
"tabTitleRegister": string;
|
|
||||||
"_list": {
|
|
||||||
/**
|
|
||||||
* 登録された絵文字はありません。
|
|
||||||
*/
|
|
||||||
"emojisNothing": string;
|
|
||||||
/**
|
|
||||||
* 選択行を削除対象にする
|
|
||||||
*/
|
|
||||||
"markAsDeleteTargetRows": string;
|
|
||||||
/**
|
|
||||||
* 選択範囲の行を削除対象にする
|
|
||||||
*/
|
|
||||||
"markAsDeleteTargetRanges": string;
|
|
||||||
/**
|
|
||||||
* 変更された絵文字はありません。
|
|
||||||
*/
|
|
||||||
"alertUpdateEmojisNothingDescription": string;
|
|
||||||
/**
|
|
||||||
* 削除対象の絵文字はありません。
|
|
||||||
*/
|
|
||||||
"alertDeleteEmojisNothingDescription": string;
|
|
||||||
/**
|
|
||||||
* 確認
|
|
||||||
*/
|
|
||||||
"confirmUpdateEmojisTitle": string;
|
|
||||||
/**
|
|
||||||
* {count}個の絵文字を更新します。実行しますか?
|
|
||||||
*/
|
|
||||||
"confirmUpdateEmojisDescription": ParameterizedString<"count">;
|
|
||||||
/**
|
|
||||||
* 確認
|
|
||||||
*/
|
|
||||||
"confirmDeleteEmojisTitle": string;
|
|
||||||
/**
|
|
||||||
* チェックがつけられた{count}個の絵文字を削除します。実行しますか?
|
|
||||||
*/
|
|
||||||
"confirmDeleteEmojisDescription": ParameterizedString<"count">;
|
|
||||||
/**
|
|
||||||
* 絵文字に設定されたロールで検索
|
|
||||||
*/
|
|
||||||
"dialogSelectRoleTitle": string;
|
|
||||||
};
|
|
||||||
"_register": {
|
|
||||||
/**
|
|
||||||
* アップロード設定
|
|
||||||
*/
|
|
||||||
"uploadSettingTitle": string;
|
|
||||||
/**
|
|
||||||
* この画面で絵文字アップロードを行う際の動作を設定できます。
|
|
||||||
*/
|
|
||||||
"uploadSettingDescription": string;
|
|
||||||
/**
|
|
||||||
* ディレクトリ名を"category"に入力する
|
|
||||||
*/
|
|
||||||
"directoryToCategoryLabel": string;
|
|
||||||
/**
|
|
||||||
* ディレクトリをドラッグ・ドロップした時に、ディレクトリ名を"category"に入力します。
|
|
||||||
*/
|
|
||||||
"directoryToCategoryCaption": string;
|
|
||||||
/**
|
|
||||||
* いずれかの方法で登録する絵文字を選択してください。
|
|
||||||
*/
|
|
||||||
"emojiInputAreaCaption": string;
|
|
||||||
/**
|
|
||||||
* この枠に画像ファイルまたはディレクトリをドラッグ&ドロップ
|
|
||||||
*/
|
|
||||||
"emojiInputAreaList1": string;
|
|
||||||
/**
|
|
||||||
* このリンクをクリックしてPCから選択する
|
|
||||||
*/
|
|
||||||
"emojiInputAreaList2": string;
|
|
||||||
/**
|
|
||||||
* このリンクをクリックしてドライブから選択する
|
|
||||||
*/
|
|
||||||
"emojiInputAreaList3": string;
|
|
||||||
/**
|
|
||||||
* 確認
|
|
||||||
*/
|
|
||||||
"confirmRegisterEmojisTitle": string;
|
|
||||||
/**
|
|
||||||
* リストに表示されている絵文字を新たなカスタム絵文字として登録します。よろしいですか?(負荷を避けるため、一度の操作で登録可能な絵文字は{count}件までです)
|
|
||||||
*/
|
|
||||||
"confirmRegisterEmojisDescription": ParameterizedString<"count">;
|
|
||||||
/**
|
|
||||||
* 確認
|
|
||||||
*/
|
|
||||||
"confirmClearEmojisTitle": string;
|
|
||||||
/**
|
|
||||||
* 編集内容を破棄し、リストに表示されている絵文字をクリアします。よろしいですか?
|
|
||||||
*/
|
|
||||||
"confirmClearEmojisDescription": string;
|
|
||||||
/**
|
|
||||||
* 確認
|
|
||||||
*/
|
|
||||||
"confirmUploadEmojisTitle": string;
|
|
||||||
/**
|
|
||||||
* ドラッグ&ドロップされた{count}個のファイルをドライブにアップロードします。実行しますか?
|
|
||||||
*/
|
|
||||||
"confirmUploadEmojisDescription": ParameterizedString<"count">;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
declare const locales: {
|
declare const locales: {
|
||||||
|
|
|
@ -401,6 +401,7 @@ name: "名前"
|
||||||
antennaSource: "受信ソース"
|
antennaSource: "受信ソース"
|
||||||
antennaKeywords: "受信キーワード"
|
antennaKeywords: "受信キーワード"
|
||||||
antennaExcludeKeywords: "除外キーワード"
|
antennaExcludeKeywords: "除外キーワード"
|
||||||
|
antennaExcludeBots: "Botアカウントを除外"
|
||||||
antennaKeywordsDescription: "スペースで区切るとAND指定になり、改行で区切るとOR指定になります"
|
antennaKeywordsDescription: "スペースで区切るとAND指定になり、改行で区切るとOR指定になります"
|
||||||
notifyAntenna: "新しいノートを通知する"
|
notifyAntenna: "新しいノートを通知する"
|
||||||
withFileAntenna: "ファイルが添付されたノートのみ"
|
withFileAntenna: "ファイルが添付されたノートのみ"
|
||||||
|
@ -1225,6 +1226,9 @@ enableHorizontalSwipe: "スワイプしてタブを切り替える"
|
||||||
loading: "読み込み中"
|
loading: "読み込み中"
|
||||||
surrender: "やめる"
|
surrender: "やめる"
|
||||||
gameRetry: "リトライ"
|
gameRetry: "リトライ"
|
||||||
|
notUsePleaseLeaveBlank: "使用しない場合は空欄にしてください"
|
||||||
|
useTotp: "ワンタイムパスワードを使う"
|
||||||
|
useBackupCode: "バックアップコードを使う"
|
||||||
|
|
||||||
_bubbleGame:
|
_bubbleGame:
|
||||||
howToPlay: "遊び方"
|
howToPlay: "遊び方"
|
||||||
|
@ -2602,6 +2606,20 @@ _offlineScreen:
|
||||||
title: "オフライン - サーバーに接続できません"
|
title: "オフライン - サーバーに接続できません"
|
||||||
header: "サーバーに接続できません"
|
header: "サーバーに接続できません"
|
||||||
|
|
||||||
|
_urlPreviewSetting:
|
||||||
|
title: "URLプレビューの設定"
|
||||||
|
enable: "URLプレビューを有効にする"
|
||||||
|
timeout: "プレビュー取得時のタイムアウト(ms)"
|
||||||
|
timeoutDescription: "プレビュー取得の所要時間がこの値を超えた場合、プレビューは生成されません。"
|
||||||
|
maximumContentLength: "Content-Lengthの最大値(byte)"
|
||||||
|
maximumContentLengthDescription: "Content-Lengthがこの値を超えた場合、プレビューは生成されません。"
|
||||||
|
requireContentLength: "Content-Lengthが取得できた場合のみプレビューを生成"
|
||||||
|
requireContentLengthDescription: "相手サーバがContent-Lengthを返さない場合、プレビューは生成されません。"
|
||||||
|
userAgent: "User-Agent"
|
||||||
|
userAgentDescription: "プレビュー取得時に使用されるUser-Agentを設定します。空欄の場合、デフォルトのUser-Agentが使用されます。"
|
||||||
|
summaryProxy: "プレビューを生成するプロキシのエンドポイント"
|
||||||
|
summaryProxyDescription: "Misskey本体ではなく、サマリープロキシを使用してプレビューを生成します。"
|
||||||
|
summaryProxyDescription2: "プロキシには下記パラメータがクエリ文字列として連携されます。プロキシ側がこれらをサポートしない場合、設定値は無視されます。"
|
||||||
_gridComponent:
|
_gridComponent:
|
||||||
_error:
|
_error:
|
||||||
requiredValue: "この値は必須項目です"
|
requiredValue: "この値は必須項目です"
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class UrlPreviewMeta1710512074000 {
|
||||||
|
name = 'UrlPreviewMeta1710512074000'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`
|
||||||
|
alter table meta
|
||||||
|
rename column "summalyProxy" to "urlPreviewSummaryProxyUrl";
|
||||||
|
alter table meta
|
||||||
|
add "urlPreviewEnabled" boolean default true not null;
|
||||||
|
alter table meta
|
||||||
|
add "urlPreviewTimeout" integer default 10000 not null;
|
||||||
|
alter table meta
|
||||||
|
add "urlPreviewMaximumContentLength" bigint default 10485760 not null;
|
||||||
|
alter table meta
|
||||||
|
add "urlPreviewRequireContentLength" boolean default false not null;
|
||||||
|
alter table meta
|
||||||
|
add "urlPreviewUserAgent" varchar(1024) default null;
|
||||||
|
`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`
|
||||||
|
alter table meta
|
||||||
|
rename column "urlPreviewSummaryProxyUrl" to "summalyProxy";
|
||||||
|
alter table meta
|
||||||
|
drop column "urlPreviewEnabled";
|
||||||
|
alter table meta
|
||||||
|
drop column "urlPreviewTimeout";
|
||||||
|
alter table meta
|
||||||
|
drop column "urlPreviewMaximumContentLength";
|
||||||
|
alter table meta
|
||||||
|
drop column "urlPreviewRequireContentLength";
|
||||||
|
alter table meta
|
||||||
|
drop column "urlPreviewUserAgent";
|
||||||
|
`);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class AntennaExcludeBots1710919614510 {
|
||||||
|
name = 'AntennaExcludeBots1710919614510'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "antenna" ADD "excludeBots" boolean NOT NULL DEFAULT false`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "antenna" DROP COLUMN "excludeBots"`);
|
||||||
|
}
|
||||||
|
}
|
|
@ -80,7 +80,7 @@
|
||||||
"@fastify/static": "6.12.0",
|
"@fastify/static": "6.12.0",
|
||||||
"@fastify/view": "8.2.0",
|
"@fastify/view": "8.2.0",
|
||||||
"@misskey-dev/sharp-read-bmp": "1.2.0",
|
"@misskey-dev/sharp-read-bmp": "1.2.0",
|
||||||
"@misskey-dev/summaly": "5.0.3",
|
"@misskey-dev/summaly": "5.1.0",
|
||||||
"@nestjs/common": "10.3.3",
|
"@nestjs/common": "10.3.3",
|
||||||
"@nestjs/core": "10.3.3",
|
"@nestjs/core": "10.3.3",
|
||||||
"@nestjs/testing": "10.3.3",
|
"@nestjs/testing": "10.3.3",
|
||||||
|
|
|
@ -92,7 +92,7 @@ export class AntennaService implements OnApplicationShutdown {
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async addNoteToAntennas(note: MiNote, noteUser: { id: MiUser['id']; username: string; host: string | null; }): Promise<void> {
|
public async addNoteToAntennas(note: MiNote, noteUser: { id: MiUser['id']; username: string; host: string | null; isBot: boolean; }): Promise<void> {
|
||||||
const antennas = await this.getAntennas();
|
const antennas = await this.getAntennas();
|
||||||
const antennasWithMatchResult = await Promise.all(antennas.map(antenna => this.checkHitAntenna(antenna, note, noteUser).then(hit => [antenna, hit] as const)));
|
const antennasWithMatchResult = await Promise.all(antennas.map(antenna => this.checkHitAntenna(antenna, note, noteUser).then(hit => [antenna, hit] as const)));
|
||||||
const matchedAntennas = antennasWithMatchResult.filter(([, hit]) => hit).map(([antenna]) => antenna);
|
const matchedAntennas = antennasWithMatchResult.filter(([, hit]) => hit).map(([antenna]) => antenna);
|
||||||
|
@ -110,10 +110,12 @@ export class AntennaService implements OnApplicationShutdown {
|
||||||
// NOTE: フォローしているユーザーのノート、リストのユーザーのノート、グループのユーザーのノート指定はパフォーマンス上の理由で無効になっている
|
// NOTE: フォローしているユーザーのノート、リストのユーザーのノート、グループのユーザーのノート指定はパフォーマンス上の理由で無効になっている
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async checkHitAntenna(antenna: MiAntenna, note: (MiNote | Packed<'Note'>), noteUser: { id: MiUser['id']; username: string; host: string | null; }): Promise<boolean> {
|
public async checkHitAntenna(antenna: MiAntenna, note: (MiNote | Packed<'Note'>), noteUser: { id: MiUser['id']; username: string; host: string | null; isBot: boolean; }): Promise<boolean> {
|
||||||
if (note.visibility === 'specified') return false;
|
if (note.visibility === 'specified') return false;
|
||||||
if (note.visibility === 'followers') return false;
|
if (note.visibility === 'followers') return false;
|
||||||
|
|
||||||
|
if (antenna.excludeBots && noteUser.isBot) return false;
|
||||||
|
|
||||||
if (antenna.localOnly && noteUser.host != null) return false;
|
if (antenna.localOnly && noteUser.host != null) return false;
|
||||||
|
|
||||||
if (!antenna.withReplies && note.replyId != null) return false;
|
if (!antenna.withReplies && note.replyId != null) return false;
|
||||||
|
|
|
@ -39,6 +39,7 @@ export class AntennaEntityService {
|
||||||
caseSensitive: antenna.caseSensitive,
|
caseSensitive: antenna.caseSensitive,
|
||||||
localOnly: antenna.localOnly,
|
localOnly: antenna.localOnly,
|
||||||
notify: antenna.notify,
|
notify: antenna.notify,
|
||||||
|
excludeBots: antenna.excludeBots,
|
||||||
withReplies: antenna.withReplies,
|
withReplies: antenna.withReplies,
|
||||||
withFile: antenna.withFile,
|
withFile: antenna.withFile,
|
||||||
isActive: antenna.isActive,
|
isActive: antenna.isActive,
|
||||||
|
|
|
@ -111,6 +111,7 @@ export class MetaEntityService {
|
||||||
policies: { ...DEFAULT_POLICIES, ...instance.policies },
|
policies: { ...DEFAULT_POLICIES, ...instance.policies },
|
||||||
|
|
||||||
mediaProxy: this.config.mediaProxy,
|
mediaProxy: this.config.mediaProxy,
|
||||||
|
enableUrlPreview: instance.urlPreviewEnabled,
|
||||||
};
|
};
|
||||||
|
|
||||||
return packed;
|
return packed;
|
||||||
|
|
|
@ -72,6 +72,11 @@ export class MiAntenna {
|
||||||
})
|
})
|
||||||
public caseSensitive: boolean;
|
public caseSensitive: boolean;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public excludeBots: boolean;
|
||||||
|
|
||||||
@Column('boolean', {
|
@Column('boolean', {
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
|
|
|
@ -277,12 +277,6 @@ export class MiMeta {
|
||||||
})
|
})
|
||||||
public enableSensitiveMediaDetectionForVideos: boolean;
|
public enableSensitiveMediaDetectionForVideos: boolean;
|
||||||
|
|
||||||
@Column('varchar', {
|
|
||||||
length: 1024,
|
|
||||||
nullable: true,
|
|
||||||
})
|
|
||||||
public summalyProxy: string | null;
|
|
||||||
|
|
||||||
@Column('boolean', {
|
@Column('boolean', {
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
|
@ -588,4 +582,36 @@ export class MiMeta {
|
||||||
default: 0,
|
default: 0,
|
||||||
})
|
})
|
||||||
public notesPerOneAd: number;
|
public notesPerOneAd: number;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: true,
|
||||||
|
})
|
||||||
|
public urlPreviewEnabled: boolean;
|
||||||
|
|
||||||
|
@Column('integer', {
|
||||||
|
default: 10000,
|
||||||
|
})
|
||||||
|
public urlPreviewTimeout: number;
|
||||||
|
|
||||||
|
@Column('bigint', {
|
||||||
|
default: 1024 * 1024 * 10,
|
||||||
|
})
|
||||||
|
public urlPreviewMaximumContentLength: number;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: true,
|
||||||
|
})
|
||||||
|
public urlPreviewRequireContentLength: boolean;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 1024,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public urlPreviewSummaryProxyUrl: string | null;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 1024,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public urlPreviewUserAgent: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,11 @@ export const packedAntennaSchema = {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
excludeBots: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
withReplies: {
|
withReplies: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
|
|
|
@ -207,6 +207,10 @@ export const packedMetaLiteSchema = {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
enableUrlPreview: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
backgroundImageUrl: {
|
backgroundImageUrl: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: true,
|
optional: false, nullable: true,
|
||||||
|
|
|
@ -81,6 +81,7 @@ export class ExportAntennasProcessorService {
|
||||||
}) : null,
|
}) : null,
|
||||||
caseSensitive: antenna.caseSensitive,
|
caseSensitive: antenna.caseSensitive,
|
||||||
localOnly: antenna.localOnly,
|
localOnly: antenna.localOnly,
|
||||||
|
excludeBots: antenna.excludeBots,
|
||||||
withReplies: antenna.withReplies,
|
withReplies: antenna.withReplies,
|
||||||
withFile: antenna.withFile,
|
withFile: antenna.withFile,
|
||||||
notify: antenna.notify,
|
notify: antenna.notify,
|
||||||
|
|
|
@ -44,6 +44,7 @@ const validate = new Ajv().compile({
|
||||||
} },
|
} },
|
||||||
caseSensitive: { type: 'boolean' },
|
caseSensitive: { type: 'boolean' },
|
||||||
localOnly: { type: 'boolean' },
|
localOnly: { type: 'boolean' },
|
||||||
|
excludeBots: { type: 'boolean' },
|
||||||
withReplies: { type: 'boolean' },
|
withReplies: { type: 'boolean' },
|
||||||
withFile: { type: 'boolean' },
|
withFile: { type: 'boolean' },
|
||||||
notify: { type: 'boolean' },
|
notify: { type: 'boolean' },
|
||||||
|
@ -88,6 +89,7 @@ export class ImportAntennasProcessorService {
|
||||||
users: (antenna.src === 'list' && antenna.userListAccts !== null ? antenna.userListAccts : antenna.users).filter(Boolean),
|
users: (antenna.src === 'list' && antenna.userListAccts !== null ? antenna.userListAccts : antenna.users).filter(Boolean),
|
||||||
caseSensitive: antenna.caseSensitive,
|
caseSensitive: antenna.caseSensitive,
|
||||||
localOnly: antenna.localOnly,
|
localOnly: antenna.localOnly,
|
||||||
|
excludeBots: antenna.excludeBots,
|
||||||
withReplies: antenna.withReplies,
|
withReplies: antenna.withReplies,
|
||||||
withFile: antenna.withFile,
|
withFile: antenna.withFile,
|
||||||
notify: antenna.notify,
|
notify: antenna.notify,
|
||||||
|
|
|
@ -434,6 +434,8 @@ export const meta = {
|
||||||
summalyProxy: {
|
summalyProxy: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: true,
|
optional: false, nullable: true,
|
||||||
|
deprecated: true,
|
||||||
|
description: '[Deprecated] Use "urlPreviewSummaryProxyUrl" instead.',
|
||||||
},
|
},
|
||||||
themeColor: {
|
themeColor: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -451,6 +453,30 @@ export const meta = {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
urlPreviewEnabled: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
urlPreviewTimeout: {
|
||||||
|
type: 'number',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
urlPreviewMaximumContentLength: {
|
||||||
|
type: 'number',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
urlPreviewRequireContentLength: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
urlPreviewUserAgent: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
|
urlPreviewSummaryProxyUrl: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
@ -533,7 +559,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
setSensitiveFlagAutomatically: instance.setSensitiveFlagAutomatically,
|
setSensitiveFlagAutomatically: instance.setSensitiveFlagAutomatically,
|
||||||
enableSensitiveMediaDetectionForVideos: instance.enableSensitiveMediaDetectionForVideos,
|
enableSensitiveMediaDetectionForVideos: instance.enableSensitiveMediaDetectionForVideos,
|
||||||
proxyAccountId: instance.proxyAccountId,
|
proxyAccountId: instance.proxyAccountId,
|
||||||
summalyProxy: instance.summalyProxy,
|
|
||||||
email: instance.email,
|
email: instance.email,
|
||||||
smtpSecure: instance.smtpSecure,
|
smtpSecure: instance.smtpSecure,
|
||||||
smtpHost: instance.smtpHost,
|
smtpHost: instance.smtpHost,
|
||||||
|
@ -577,6 +602,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
perUserHomeTimelineCacheMax: instance.perUserHomeTimelineCacheMax,
|
perUserHomeTimelineCacheMax: instance.perUserHomeTimelineCacheMax,
|
||||||
perUserListTimelineCacheMax: instance.perUserListTimelineCacheMax,
|
perUserListTimelineCacheMax: instance.perUserListTimelineCacheMax,
|
||||||
notesPerOneAd: instance.notesPerOneAd,
|
notesPerOneAd: instance.notesPerOneAd,
|
||||||
|
summalyProxy: instance.urlPreviewSummaryProxyUrl,
|
||||||
|
urlPreviewEnabled: instance.urlPreviewEnabled,
|
||||||
|
urlPreviewTimeout: instance.urlPreviewTimeout,
|
||||||
|
urlPreviewMaximumContentLength: instance.urlPreviewMaximumContentLength,
|
||||||
|
urlPreviewRequireContentLength: instance.urlPreviewRequireContentLength,
|
||||||
|
urlPreviewUserAgent: instance.urlPreviewUserAgent,
|
||||||
|
urlPreviewSummaryProxyUrl: instance.urlPreviewSummaryProxyUrl,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,6 @@ export const paramDef = {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
summalyProxy: { type: 'string', nullable: true },
|
|
||||||
deeplAuthKey: { type: 'string', nullable: true },
|
deeplAuthKey: { type: 'string', nullable: true },
|
||||||
deeplIsPro: { type: 'boolean' },
|
deeplIsPro: { type: 'boolean' },
|
||||||
enableEmail: { type: 'boolean' },
|
enableEmail: { type: 'boolean' },
|
||||||
|
@ -150,6 +149,16 @@ export const paramDef = {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
summalyProxy: {
|
||||||
|
type: 'string', nullable: true,
|
||||||
|
description: '[Deprecated] Use "urlPreviewSummaryProxyUrl" instead.',
|
||||||
|
},
|
||||||
|
urlPreviewEnabled: { type: 'boolean' },
|
||||||
|
urlPreviewTimeout: { type: 'integer' },
|
||||||
|
urlPreviewMaximumContentLength: { type: 'integer' },
|
||||||
|
urlPreviewRequireContentLength: { type: 'boolean' },
|
||||||
|
urlPreviewUserAgent: { type: 'string', nullable: true },
|
||||||
|
urlPreviewSummaryProxyUrl: { type: 'string', nullable: true },
|
||||||
},
|
},
|
||||||
required: [],
|
required: [],
|
||||||
} as const;
|
} as const;
|
||||||
|
@ -353,10 +362,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
set.langs = ps.langs.filter(Boolean);
|
set.langs = ps.langs.filter(Boolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ps.summalyProxy !== undefined) {
|
|
||||||
set.summalyProxy = ps.summalyProxy;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ps.enableEmail !== undefined) {
|
if (ps.enableEmail !== undefined) {
|
||||||
set.enableEmail = ps.enableEmail;
|
set.enableEmail = ps.enableEmail;
|
||||||
}
|
}
|
||||||
|
@ -581,6 +586,32 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
set.bannedEmailDomains = ps.bannedEmailDomains;
|
set.bannedEmailDomains = ps.bannedEmailDomains;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ps.urlPreviewEnabled !== undefined) {
|
||||||
|
set.urlPreviewEnabled = ps.urlPreviewEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps.urlPreviewTimeout !== undefined) {
|
||||||
|
set.urlPreviewTimeout = ps.urlPreviewTimeout;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps.urlPreviewMaximumContentLength !== undefined) {
|
||||||
|
set.urlPreviewMaximumContentLength = ps.urlPreviewMaximumContentLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps.urlPreviewRequireContentLength !== undefined) {
|
||||||
|
set.urlPreviewRequireContentLength = ps.urlPreviewRequireContentLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps.urlPreviewUserAgent !== undefined) {
|
||||||
|
const value = (ps.urlPreviewUserAgent ?? '').trim();
|
||||||
|
set.urlPreviewUserAgent = value === '' ? null : ps.urlPreviewUserAgent;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps.summalyProxy !== undefined || ps.urlPreviewSummaryProxyUrl !== undefined) {
|
||||||
|
const value = ((ps.urlPreviewSummaryProxyUrl ?? ps.summalyProxy) ?? '').trim();
|
||||||
|
set.urlPreviewSummaryProxyUrl = value === '' ? null : value;
|
||||||
|
}
|
||||||
|
|
||||||
const before = await this.metaService.fetch(true);
|
const before = await this.metaService.fetch(true);
|
||||||
|
|
||||||
await this.metaService.update(set);
|
await this.metaService.update(set);
|
||||||
|
|
|
@ -64,6 +64,7 @@ export const paramDef = {
|
||||||
} },
|
} },
|
||||||
caseSensitive: { type: 'boolean' },
|
caseSensitive: { type: 'boolean' },
|
||||||
localOnly: { type: 'boolean' },
|
localOnly: { type: 'boolean' },
|
||||||
|
excludeBots: { type: 'boolean' },
|
||||||
withReplies: { type: 'boolean' },
|
withReplies: { type: 'boolean' },
|
||||||
withFile: { type: 'boolean' },
|
withFile: { type: 'boolean' },
|
||||||
notify: { type: 'boolean' },
|
notify: { type: 'boolean' },
|
||||||
|
@ -124,6 +125,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
users: ps.users,
|
users: ps.users,
|
||||||
caseSensitive: ps.caseSensitive,
|
caseSensitive: ps.caseSensitive,
|
||||||
localOnly: ps.localOnly,
|
localOnly: ps.localOnly,
|
||||||
|
excludeBots: ps.excludeBots,
|
||||||
withReplies: ps.withReplies,
|
withReplies: ps.withReplies,
|
||||||
withFile: ps.withFile,
|
withFile: ps.withFile,
|
||||||
notify: ps.notify,
|
notify: ps.notify,
|
||||||
|
|
|
@ -63,6 +63,7 @@ export const paramDef = {
|
||||||
} },
|
} },
|
||||||
caseSensitive: { type: 'boolean' },
|
caseSensitive: { type: 'boolean' },
|
||||||
localOnly: { type: 'boolean' },
|
localOnly: { type: 'boolean' },
|
||||||
|
excludeBots: { type: 'boolean' },
|
||||||
withReplies: { type: 'boolean' },
|
withReplies: { type: 'boolean' },
|
||||||
withFile: { type: 'boolean' },
|
withFile: { type: 'boolean' },
|
||||||
notify: { type: 'boolean' },
|
notify: { type: 'boolean' },
|
||||||
|
@ -120,6 +121,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
users: ps.users,
|
users: ps.users,
|
||||||
caseSensitive: ps.caseSensitive,
|
caseSensitive: ps.caseSensitive,
|
||||||
localOnly: ps.localOnly,
|
localOnly: ps.localOnly,
|
||||||
|
excludeBots: ps.excludeBots,
|
||||||
withReplies: ps.withReplies,
|
withReplies: ps.withReplies,
|
||||||
withFile: ps.withFile,
|
withFile: ps.withFile,
|
||||||
notify: ps.notify,
|
notify: ps.notify,
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
import { IsNull } from 'typeorm';
|
import { IsNull } from 'typeorm';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import type { UsersRepository, FollowingsRepository, UserProfilesRepository } from '@/models/_.js';
|
import type { UsersRepository, FollowingsRepository, UserProfilesRepository } from '@/models/_.js';
|
||||||
|
import { birthdaySchema } from '@/models/User.js';
|
||||||
import { Endpoint } from '@/server/api/endpoint-base.js';
|
import { Endpoint } from '@/server/api/endpoint-base.js';
|
||||||
import { QueryService } from '@/core/QueryService.js';
|
import { QueryService } from '@/core/QueryService.js';
|
||||||
import { FollowingEntityService } from '@/core/entities/FollowingEntityService.js';
|
import { FollowingEntityService } from '@/core/entities/FollowingEntityService.js';
|
||||||
|
@ -66,7 +67,7 @@ export const paramDef = {
|
||||||
description: 'The local host is represented with `null`.',
|
description: 'The local host is represented with `null`.',
|
||||||
},
|
},
|
||||||
|
|
||||||
birthday: { type: 'string', nullable: true },
|
birthday: { ...birthdaySchema, nullable: true },
|
||||||
},
|
},
|
||||||
anyOf: [
|
anyOf: [
|
||||||
{ required: ['userId'] },
|
{ required: ['userId'] },
|
||||||
|
@ -127,9 +128,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
|
|
||||||
if (ps.birthday) {
|
if (ps.birthday) {
|
||||||
try {
|
try {
|
||||||
const d = new Date(ps.birthday);
|
const birthday = ps.birthday.substring(5, 10);
|
||||||
d.setHours(0, 0, 0, 0);
|
|
||||||
const birthday = `${(d.getMonth() + 1).toString().padStart(2, '0')}-${d.getDate().toString().padStart(2, '0')}`;
|
|
||||||
const birthdayUserQuery = this.userProfilesRepository.createQueryBuilder('user_profile');
|
const birthdayUserQuery = this.userProfilesRepository.createQueryBuilder('user_profile');
|
||||||
birthdayUserQuery.select('user_profile.userId')
|
birthdayUserQuery.select('user_profile.userId')
|
||||||
.where(`SUBSTR(user_profile.birthday, 6, 5) = '${birthday}'`);
|
.where(`SUBSTR(user_profile.birthday, 6, 5) = '${birthday}'`);
|
||||||
|
|
|
@ -93,7 +93,7 @@ export function genOpenapiSpec(config: Config, includeSelfRef = false) {
|
||||||
const hasBody = (schema.type === 'object' && schema.properties && Object.keys(schema.properties).length >= 1);
|
const hasBody = (schema.type === 'object' && schema.properties && Object.keys(schema.properties).length >= 1);
|
||||||
|
|
||||||
const info = {
|
const info = {
|
||||||
operationId: endpoint.name,
|
operationId: endpoint.name.replaceAll('/', '___'), // NOTE: スラッシュは使えない
|
||||||
summary: endpoint.name,
|
summary: endpoint.name,
|
||||||
description: desc,
|
description: desc,
|
||||||
externalDocs: {
|
externalDocs: {
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import { summaly } from '@misskey-dev/summaly';
|
import { summaly } from '@misskey-dev/summaly';
|
||||||
|
import { SummalyResult } from '@misskey-dev/summaly/built/summary.js';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
import { MetaService } from '@/core/MetaService.js';
|
import { MetaService } from '@/core/MetaService.js';
|
||||||
|
@ -14,6 +15,7 @@ import { query } from '@/misc/prelude/url.js';
|
||||||
import { LoggerService } from '@/core/LoggerService.js';
|
import { LoggerService } from '@/core/LoggerService.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { ApiError } from '@/server/api/error.js';
|
import { ApiError } from '@/server/api/error.js';
|
||||||
|
import { MiMeta } from '@/models/Meta.js';
|
||||||
import type { FastifyRequest, FastifyReply } from 'fastify';
|
import type { FastifyRequest, FastifyReply } from 'fastify';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -62,24 +64,25 @@ export class UrlPreviewService {
|
||||||
|
|
||||||
const meta = await this.metaService.fetch();
|
const meta = await this.metaService.fetch();
|
||||||
|
|
||||||
this.logger.info(meta.summalyProxy
|
if (!meta.urlPreviewEnabled) {
|
||||||
|
reply.code(403);
|
||||||
|
return {
|
||||||
|
error: new ApiError({
|
||||||
|
message: 'URL preview is disabled',
|
||||||
|
code: 'URL_PREVIEW_DISABLED',
|
||||||
|
id: '58b36e13-d2f5-0323-b0c6-76aa9dabefb8',
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
this.logger.info(meta.urlPreviewSummaryProxyUrl
|
||||||
? `(Proxy) Getting preview of ${url}@${lang} ...`
|
? `(Proxy) Getting preview of ${url}@${lang} ...`
|
||||||
: `Getting preview of ${url}@${lang} ...`);
|
: `Getting preview of ${url}@${lang} ...`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const summary = meta.summalyProxy ?
|
const summary = meta.urlPreviewSummaryProxyUrl
|
||||||
await this.httpRequestService.getJson<ReturnType<typeof summaly>>(`${meta.summalyProxy}?${query({
|
? await this.fetchSummaryFromProxy(url, meta, lang)
|
||||||
url: url,
|
: await this.fetchSummary(url, meta, lang);
|
||||||
lang: lang ?? 'ja-JP',
|
|
||||||
})}`)
|
|
||||||
:
|
|
||||||
await summaly(url, {
|
|
||||||
followRedirects: false,
|
|
||||||
lang: lang ?? 'ja-JP',
|
|
||||||
agent: this.config.proxy ? {
|
|
||||||
http: this.httpRequestService.httpAgent,
|
|
||||||
https: this.httpRequestService.httpsAgent,
|
|
||||||
} : undefined,
|
|
||||||
});
|
|
||||||
|
|
||||||
this.logger.succ(`Got preview of ${url}: ${summary.title}`);
|
this.logger.succ(`Got preview of ${url}: ${summary.title}`);
|
||||||
|
|
||||||
|
@ -100,6 +103,7 @@ export class UrlPreviewService {
|
||||||
return summary;
|
return summary;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.logger.warn(`Failed to get preview of ${url}: ${err}`);
|
this.logger.warn(`Failed to get preview of ${url}: ${err}`);
|
||||||
|
|
||||||
reply.code(422);
|
reply.code(422);
|
||||||
reply.header('Cache-Control', 'max-age=86400, immutable');
|
reply.header('Cache-Control', 'max-age=86400, immutable');
|
||||||
return {
|
return {
|
||||||
|
@ -111,4 +115,37 @@ export class UrlPreviewService {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fetchSummary(url: string, meta: MiMeta, lang?: string): Promise<SummalyResult> {
|
||||||
|
const agent = this.config.proxy
|
||||||
|
? {
|
||||||
|
http: this.httpRequestService.httpAgent,
|
||||||
|
https: this.httpRequestService.httpsAgent,
|
||||||
|
}
|
||||||
|
: undefined;
|
||||||
|
|
||||||
|
return summaly(url, {
|
||||||
|
followRedirects: false,
|
||||||
|
lang: lang ?? 'ja-JP',
|
||||||
|
agent: agent,
|
||||||
|
userAgent: meta.urlPreviewUserAgent ?? undefined,
|
||||||
|
operationTimeout: meta.urlPreviewTimeout,
|
||||||
|
contentLengthLimit: meta.urlPreviewMaximumContentLength,
|
||||||
|
contentLengthRequired: meta.urlPreviewRequireContentLength,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private fetchSummaryFromProxy(url: string, meta: MiMeta, lang?: string): Promise<SummalyResult> {
|
||||||
|
const proxy = meta.urlPreviewSummaryProxyUrl!;
|
||||||
|
const queryStr = query({
|
||||||
|
url: url,
|
||||||
|
lang: lang ?? 'ja-JP',
|
||||||
|
userAgent: meta.urlPreviewUserAgent ?? undefined,
|
||||||
|
operationTimeout: meta.urlPreviewTimeout,
|
||||||
|
contentLengthLimit: meta.urlPreviewMaximumContentLength,
|
||||||
|
contentLengthRequired: meta.urlPreviewRequireContentLength,
|
||||||
|
});
|
||||||
|
|
||||||
|
return this.httpRequestService.getJson<SummalyResult>(`${proxy}?${queryStr}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@ describe('アンテナ', () => {
|
||||||
users: [''],
|
users: [''],
|
||||||
withFile: false,
|
withFile: false,
|
||||||
withReplies: false,
|
withReplies: false,
|
||||||
|
excludeBots: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
let root: User;
|
let root: User;
|
||||||
|
@ -156,6 +157,7 @@ describe('アンテナ', () => {
|
||||||
users: [''],
|
users: [''],
|
||||||
withFile: false,
|
withFile: false,
|
||||||
withReplies: false,
|
withReplies: false,
|
||||||
|
excludeBots: false,
|
||||||
localOnly: false,
|
localOnly: false,
|
||||||
};
|
};
|
||||||
assert.deepStrictEqual(response, expected);
|
assert.deepStrictEqual(response, expected);
|
||||||
|
|
|
@ -158,19 +158,17 @@ describe('Streaming', () => {
|
||||||
assert.strictEqual(fired, true);
|
assert.strictEqual(fired, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
/* なんか失敗する
|
|
||||||
test('フォローしているユーザーの visibility: followers な投稿への返信が流れる', async () => {
|
test('フォローしているユーザーの visibility: followers な投稿への返信が流れる', async () => {
|
||||||
const note = await api('notes/create', { text: 'foo', visibility: 'followers' }, kyoko);
|
const note = await post(kyoko, { text: 'foo', visibility: 'followers' });
|
||||||
|
|
||||||
const fired = await waitFire(
|
const fired = await waitFire(
|
||||||
ayano, 'homeTimeline', // ayano:home
|
ayano, 'homeTimeline', // ayano:home
|
||||||
() => api('notes/create', { text: 'bar', visibility: 'followers', replyId: note.body.id }, kyoko), // kyoko posts
|
() => api('notes/create', { text: 'bar', visibility: 'followers', replyId: note.id }, kyoko), // kyoko posts
|
||||||
msg => msg.type === 'note' && msg.body.userId === kyoko.id && msg.body.reply.text === 'foo',
|
msg => msg.type === 'note' && msg.body.userId === kyoko.id && msg.body.reply.text === 'foo',
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.strictEqual(fired, true);
|
assert.strictEqual(fired, true);
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
|
|
||||||
test('フォローしているユーザーのフォローしていないユーザーの visibility: followers な投稿への返信が流れない', async () => {
|
test('フォローしているユーザーのフォローしていないユーザーの visibility: followers な投稿への返信が流れない', async () => {
|
||||||
const chitoseNote = await post(chitose, { text: 'followers-only post', visibility: 'followers' });
|
const chitoseNote = await post(chitose, { text: 'followers-only post', visibility: 'followers' });
|
||||||
|
|
|
@ -22,6 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
:autocomplete="autocomplete"
|
:autocomplete="autocomplete"
|
||||||
:autocapitalize="autocapitalize"
|
:autocapitalize="autocapitalize"
|
||||||
:spellcheck="spellcheck"
|
:spellcheck="spellcheck"
|
||||||
|
:inputmode="inputmode"
|
||||||
:step="step"
|
:step="step"
|
||||||
:list="id"
|
:list="id"
|
||||||
:min="min"
|
:min="min"
|
||||||
|
@ -63,6 +64,7 @@ const props = defineProps<{
|
||||||
mfmAutocomplete?: boolean | SuggestionType[],
|
mfmAutocomplete?: boolean | SuggestionType[],
|
||||||
autocapitalize?: string;
|
autocapitalize?: string;
|
||||||
spellcheck?: boolean;
|
spellcheck?: boolean;
|
||||||
|
inputmode?: 'none' | 'text' | 'search' | 'email' | 'url' | 'numeric' | 'tel' | 'decimal';
|
||||||
step?: any;
|
step?: any;
|
||||||
datalist?: string[];
|
datalist?: string[];
|
||||||
min?: number;
|
min?: number;
|
||||||
|
|
|
@ -18,6 +18,7 @@ import { defineAsyncComponent, ref } from 'vue';
|
||||||
import { url as local } from '@/config.js';
|
import { url as local } from '@/config.js';
|
||||||
import { useTooltip } from '@/scripts/use-tooltip.js';
|
import { useTooltip } from '@/scripts/use-tooltip.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
|
import { isEnabledUrlPreview } from '@/instance.js';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
url: string;
|
url: string;
|
||||||
|
@ -31,13 +32,15 @@ const target = self ? null : '_blank';
|
||||||
|
|
||||||
const el = ref<HTMLElement | { $el: HTMLElement }>();
|
const el = ref<HTMLElement | { $el: HTMLElement }>();
|
||||||
|
|
||||||
useTooltip(el, (showing) => {
|
if (isEnabledUrlPreview.value) {
|
||||||
os.popup(defineAsyncComponent(() => import('@/components/MkUrlPreviewPopup.vue')), {
|
useTooltip(el, (showing) => {
|
||||||
showing,
|
os.popup(defineAsyncComponent(() => import('@/components/MkUrlPreviewPopup.vue')), {
|
||||||
url: props.url,
|
showing,
|
||||||
source: el.value instanceof HTMLElement ? el.value : el.value?.$el,
|
url: props.url,
|
||||||
}, {}, 'closed');
|
source: el.value instanceof HTMLElement ? el.value : el.value?.$el,
|
||||||
});
|
}, {}, 'closed');
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" module>
|
<style lang="scss" module>
|
||||||
|
|
|
@ -82,7 +82,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkMediaList :mediaList="appearNote.files"/>
|
<MkMediaList :mediaList="appearNote.files"/>
|
||||||
</div>
|
</div>
|
||||||
<MkPoll v-if="appearNote.poll" :noteId="appearNote.id" :poll="appearNote.poll" :class="$style.poll"/>
|
<MkPoll v-if="appearNote.poll" :noteId="appearNote.id" :poll="appearNote.poll" :class="$style.poll"/>
|
||||||
<MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="false" :class="$style.urlPreview"/>
|
<div v-if="isEnabledUrlPreview">
|
||||||
|
<MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="false" :class="$style.urlPreview"/>
|
||||||
|
</div>
|
||||||
<div v-if="appearNote.renote" :class="$style.quote"><MkNoteSimple :note="appearNote.renote" :class="$style.quoteNote"/></div>
|
<div v-if="appearNote.renote" :class="$style.quote"><MkNoteSimple :note="appearNote.renote" :class="$style.quoteNote"/></div>
|
||||||
<button v-if="isLong && collapsed" :class="$style.collapsed" class="_button" @click="collapsed = false">
|
<button v-if="isLong && collapsed" :class="$style.collapsed" class="_button" @click="collapsed = false">
|
||||||
<span :class="$style.collapsedLabel">{{ i18n.ts.showMore }}</span>
|
<span :class="$style.collapsedLabel">{{ i18n.ts.showMore }}</span>
|
||||||
|
@ -165,6 +167,7 @@ import MkNoteSub from '@/components/MkNoteSub.vue';
|
||||||
import MkNoteHeader from '@/components/MkNoteHeader.vue';
|
import MkNoteHeader from '@/components/MkNoteHeader.vue';
|
||||||
import MkNoteSimple from '@/components/MkNoteSimple.vue';
|
import MkNoteSimple from '@/components/MkNoteSimple.vue';
|
||||||
import MkReactionsViewer from '@/components/MkReactionsViewer.vue';
|
import MkReactionsViewer from '@/components/MkReactionsViewer.vue';
|
||||||
|
import MkReactionsViewerDetails from '@/components/MkReactionsViewer.details.vue';
|
||||||
import MkMediaList from '@/components/MkMediaList.vue';
|
import MkMediaList from '@/components/MkMediaList.vue';
|
||||||
import MkCwButton from '@/components/MkCwButton.vue';
|
import MkCwButton from '@/components/MkCwButton.vue';
|
||||||
import MkPoll from '@/components/MkPoll.vue';
|
import MkPoll from '@/components/MkPoll.vue';
|
||||||
|
@ -178,7 +181,7 @@ import { userPage } from '@/filters/user.js';
|
||||||
import number from '@/filters/number.js';
|
import number from '@/filters/number.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import * as sound from '@/scripts/sound.js';
|
import * as sound from '@/scripts/sound.js';
|
||||||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
import { misskeyApi, misskeyApiGet } from '@/scripts/misskey-api.js';
|
||||||
import { defaultStore, noteViewInterruptors } from '@/store.js';
|
import { defaultStore, noteViewInterruptors } from '@/store.js';
|
||||||
import { reactionPicker } from '@/scripts/reaction-picker.js';
|
import { reactionPicker } from '@/scripts/reaction-picker.js';
|
||||||
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js';
|
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js';
|
||||||
|
@ -194,6 +197,7 @@ import { MenuItem } from '@/types/menu.js';
|
||||||
import MkRippleEffect from '@/components/MkRippleEffect.vue';
|
import MkRippleEffect from '@/components/MkRippleEffect.vue';
|
||||||
import { showMovedDialog } from '@/scripts/show-moved-dialog.js';
|
import { showMovedDialog } from '@/scripts/show-moved-dialog.js';
|
||||||
import { shouldCollapsed } from '@/scripts/collapsed.js';
|
import { shouldCollapsed } from '@/scripts/collapsed.js';
|
||||||
|
import { isEnabledUrlPreview } from '@/instance.js';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
note: Misskey.entities.Note;
|
note: Misskey.entities.Note;
|
||||||
|
@ -268,7 +272,7 @@ const renoteCollapsed = ref(
|
||||||
defaultStore.state.collapseRenotes && isRenote && (
|
defaultStore.state.collapseRenotes && isRenote && (
|
||||||
($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId)) || // `||` must be `||`! See https://github.com/misskey-dev/misskey/issues/13131
|
($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId)) || // `||` must be `||`! See https://github.com/misskey-dev/misskey/issues/13131
|
||||||
(appearNote.value.myReaction != null)
|
(appearNote.value.myReaction != null)
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Overload FunctionにLintが対応していないのでコメントアウト
|
/* Overload FunctionにLintが対応していないのでコメントアウト
|
||||||
|
@ -337,6 +341,28 @@ if (!props.mock) {
|
||||||
targetElement: renoteButton.value,
|
targetElement: renoteButton.value,
|
||||||
}, {}, 'closed');
|
}, {}, 'closed');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (appearNote.value.reactionAcceptance === 'likeOnly') {
|
||||||
|
useTooltip(reactButton, async (showing) => {
|
||||||
|
const reactions = await misskeyApiGet('notes/reactions', {
|
||||||
|
noteId: appearNote.value.id,
|
||||||
|
limit: 10,
|
||||||
|
_cacheKey_: appearNote.value.reactionCount,
|
||||||
|
});
|
||||||
|
|
||||||
|
const users = reactions.map(x => x.user);
|
||||||
|
|
||||||
|
if (users.length < 1) return;
|
||||||
|
|
||||||
|
os.popup(MkReactionsViewerDetails, {
|
||||||
|
showing,
|
||||||
|
reaction: '❤️',
|
||||||
|
users,
|
||||||
|
count: appearNote.value.reactionCount,
|
||||||
|
targetElement: reactButton.value!,
|
||||||
|
}, {}, 'closed');
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function renote(viaKeyboard = false) {
|
function renote(viaKeyboard = false) {
|
||||||
|
|
|
@ -95,7 +95,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkMediaList :mediaList="appearNote.files"/>
|
<MkMediaList :mediaList="appearNote.files"/>
|
||||||
</div>
|
</div>
|
||||||
<MkPoll v-if="appearNote.poll" ref="pollViewer" :noteId="appearNote.id" :poll="appearNote.poll" :class="$style.poll"/>
|
<MkPoll v-if="appearNote.poll" ref="pollViewer" :noteId="appearNote.id" :poll="appearNote.poll" :class="$style.poll"/>
|
||||||
<MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="true" style="margin-top: 6px;"/>
|
<div v-if="isEnabledUrlPreview">
|
||||||
|
<MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="true" style="margin-top: 6px;"/>
|
||||||
|
</div>
|
||||||
<div v-if="appearNote.renote" :class="$style.quote"><MkNoteSimple :note="appearNote.renote" :class="$style.quoteNote"/></div>
|
<div v-if="appearNote.renote" :class="$style.quote"><MkNoteSimple :note="appearNote.renote" :class="$style.quoteNote"/></div>
|
||||||
</div>
|
</div>
|
||||||
<MkA v-if="appearNote.channel && !inChannel" :class="$style.channel" :to="`/channels/${appearNote.channel.id}`"><i class="ti ti-device-tv"></i> {{ appearNote.channel.name }}</MkA>
|
<MkA v-if="appearNote.channel && !inChannel" :class="$style.channel" :to="`/channels/${appearNote.channel.id}`"><i class="ti ti-device-tv"></i> {{ appearNote.channel.name }}</MkA>
|
||||||
|
@ -199,6 +201,7 @@ import * as Misskey from 'misskey-js';
|
||||||
import MkNoteSub from '@/components/MkNoteSub.vue';
|
import MkNoteSub from '@/components/MkNoteSub.vue';
|
||||||
import MkNoteSimple from '@/components/MkNoteSimple.vue';
|
import MkNoteSimple from '@/components/MkNoteSimple.vue';
|
||||||
import MkReactionsViewer from '@/components/MkReactionsViewer.vue';
|
import MkReactionsViewer from '@/components/MkReactionsViewer.vue';
|
||||||
|
import MkReactionsViewerDetails from '@/components/MkReactionsViewer.details.vue';
|
||||||
import MkMediaList from '@/components/MkMediaList.vue';
|
import MkMediaList from '@/components/MkMediaList.vue';
|
||||||
import MkCwButton from '@/components/MkCwButton.vue';
|
import MkCwButton from '@/components/MkCwButton.vue';
|
||||||
import MkPoll from '@/components/MkPoll.vue';
|
import MkPoll from '@/components/MkPoll.vue';
|
||||||
|
@ -211,7 +214,7 @@ import { userPage } from '@/filters/user.js';
|
||||||
import { notePage } from '@/filters/note.js';
|
import { notePage } from '@/filters/note.js';
|
||||||
import number from '@/filters/number.js';
|
import number from '@/filters/number.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
import { misskeyApi, misskeyApiGet } from '@/scripts/misskey-api.js';
|
||||||
import * as sound from '@/scripts/sound.js';
|
import * as sound from '@/scripts/sound.js';
|
||||||
import { defaultStore, noteViewInterruptors } from '@/store.js';
|
import { defaultStore, noteViewInterruptors } from '@/store.js';
|
||||||
import { reactionPicker } from '@/scripts/reaction-picker.js';
|
import { reactionPicker } from '@/scripts/reaction-picker.js';
|
||||||
|
@ -229,6 +232,7 @@ import MkUserCardMini from '@/components/MkUserCardMini.vue';
|
||||||
import MkPagination, { type Paging } from '@/components/MkPagination.vue';
|
import MkPagination, { type Paging } from '@/components/MkPagination.vue';
|
||||||
import MkReactionIcon from '@/components/MkReactionIcon.vue';
|
import MkReactionIcon from '@/components/MkReactionIcon.vue';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
|
import { isEnabledUrlPreview } from '@/instance.js';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
note: Misskey.entities.Note;
|
note: Misskey.entities.Note;
|
||||||
|
@ -345,6 +349,28 @@ useTooltip(renoteButton, async (showing) => {
|
||||||
}, {}, 'closed');
|
}, {}, 'closed');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (appearNote.value.reactionAcceptance === 'likeOnly') {
|
||||||
|
useTooltip(reactButton, async (showing) => {
|
||||||
|
const reactions = await misskeyApiGet('notes/reactions', {
|
||||||
|
noteId: appearNote.value.id,
|
||||||
|
limit: 10,
|
||||||
|
_cacheKey_: appearNote.value.reactionCount,
|
||||||
|
});
|
||||||
|
|
||||||
|
const users = reactions.map(x => x.user);
|
||||||
|
|
||||||
|
if (users.length < 1) return;
|
||||||
|
|
||||||
|
os.popup(MkReactionsViewerDetails, {
|
||||||
|
showing,
|
||||||
|
reaction: '❤️',
|
||||||
|
users,
|
||||||
|
count: appearNote.value.reactionCount,
|
||||||
|
targetElement: reactButton.value!,
|
||||||
|
}, {}, 'closed');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function renote(viaKeyboard = false) {
|
function renote(viaKeyboard = false) {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
|
|
@ -19,18 +19,21 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<div style="margin-top: 16px;">{{ i18n.ts.authenticationRequiredToContinue }}</div>
|
<div style="margin-top: 16px;">{{ i18n.ts.authenticationRequiredToContinue }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="_gaps">
|
<form @submit.prevent="done">
|
||||||
<MkInput ref="passwordInput" v-model="password" :placeholder="i18n.ts.password" type="password" autocomplete="current-password webauthn" :withPasswordToggle="true">
|
<div class="_gaps">
|
||||||
<template #prefix><i class="ti ti-password"></i></template>
|
<MkInput ref="passwordInput" v-model="password" :placeholder="i18n.ts.password" type="password" autocomplete="current-password webauthn" required :withPasswordToggle="true">
|
||||||
</MkInput>
|
<template #prefix><i class="ti ti-password"></i></template>
|
||||||
|
</MkInput>
|
||||||
|
|
||||||
<MkInput v-if="$i.twoFactorEnabled" v-model="token" type="text" pattern="^([0-9]{6}|[A-Z0-9]{32})$" autocomplete="one-time-code" :spellcheck="false">
|
<MkInput v-if="$i.twoFactorEnabled" v-model="token" type="text" :pattern="isBackupCode ? '^[A-Z0-9]{32}$' :'^[0-9]{6}$'" autocomplete="one-time-code" required :spellcheck="false" :inputmode="isBackupCode ? undefined : 'numeric'">
|
||||||
<template #label>{{ i18n.ts.token }} ({{ i18n.ts['2fa'] }})</template>
|
<template #label>{{ i18n.ts.token }} ({{ i18n.ts['2fa'] }})</template>
|
||||||
<template #prefix><i class="ti ti-123"></i></template>
|
<template #prefix><i v-if="isBackupCode" class="ti ti-key"></i><i v-else class="ti ti-123"></i></template>
|
||||||
</MkInput>
|
<template #caption><button class="_textButton" type="button" @click="isBackupCode = !isBackupCode">{{ isBackupCode ? i18n.ts.useTotp : i18n.ts.useBackupCode }}</button></template>
|
||||||
|
</MkInput>
|
||||||
|
|
||||||
<MkButton :disabled="(password ?? '') == '' || ($i.twoFactorEnabled && (token ?? '') == '')" primary rounded style="margin: 0 auto;" @click="done"><i class="ti ti-lock-open"></i> {{ i18n.ts.continue }}</MkButton>
|
<MkButton :disabled="(password ?? '') == '' || ($i.twoFactorEnabled && (token ?? '') == '')" type="submit" primary rounded style="margin: 0 auto;"><i class="ti ti-lock-open"></i> {{ i18n.ts.continue }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
</MkModalWindow>
|
</MkModalWindow>
|
||||||
</template>
|
</template>
|
||||||
|
@ -54,6 +57,7 @@ const emit = defineEmits<{
|
||||||
const dialog = shallowRef<InstanceType<typeof MkModalWindow>>();
|
const dialog = shallowRef<InstanceType<typeof MkModalWindow>>();
|
||||||
const passwordInput = shallowRef<InstanceType<typeof MkInput>>();
|
const passwordInput = shallowRef<InstanceType<typeof MkInput>>();
|
||||||
const password = ref('');
|
const password = ref('');
|
||||||
|
const isBackupCode = ref(false);
|
||||||
const token = ref<string | null>(null);
|
const token = ref<string | null>(null);
|
||||||
|
|
||||||
function onClose() {
|
function onClose() {
|
||||||
|
@ -61,7 +65,7 @@ function onClose() {
|
||||||
if (dialog.value) dialog.value.close();
|
if (dialog.value) dialog.value.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
function done(res) {
|
function done() {
|
||||||
emit('done', { password: password.value, token: token.value });
|
emit('done', { password: password.value, token: token.value });
|
||||||
if (dialog.value) dialog.value.close();
|
if (dialog.value) dialog.value.close();
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,15 +31,15 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<div v-if="user && user.securityKeys" class="or-hr">
|
<div v-if="user && user.securityKeys" class="or-hr">
|
||||||
<p class="or-msg">{{ i18n.ts.or }}</p>
|
<p class="or-msg">{{ i18n.ts.or }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="twofa-group totp-group">
|
<div class="twofa-group totp-group _gaps">
|
||||||
<p style="margin-bottom:0;">{{ i18n.ts['2fa'] }}</p>
|
|
||||||
<MkInput v-if="user && user.usePasswordLessLogin" v-model="password" type="password" autocomplete="current-password" :withPasswordToggle="true" required>
|
<MkInput v-if="user && user.usePasswordLessLogin" v-model="password" type="password" autocomplete="current-password" :withPasswordToggle="true" required>
|
||||||
<template #label>{{ i18n.ts.password }}</template>
|
<template #label>{{ i18n.ts.password }}</template>
|
||||||
<template #prefix><i class="ti ti-lock"></i></template>
|
<template #prefix><i class="ti ti-lock"></i></template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkInput v-model="token" type="text" pattern="^([0-9]{6}|[A-Z0-9]{32})$" autocomplete="one-time-code" :spellcheck="false" required>
|
<MkInput v-model="token" type="text" :pattern="isBackupCode ? '^[A-Z0-9]{32}$' :'^[0-9]{6}$'" autocomplete="one-time-code" required :spellcheck="false" :inputmode="isBackupCode ? undefined : 'numeric'">
|
||||||
<template #label>{{ i18n.ts.token }}</template>
|
<template #label>{{ i18n.ts.token }} ({{ i18n.ts['2fa'] }})</template>
|
||||||
<template #prefix><i class="ti ti-123"></i></template>
|
<template #prefix><i v-if="isBackupCode" class="ti ti-key"></i><i v-else class="ti ti-123"></i></template>
|
||||||
|
<template #caption><button class="_textButton" type="button" @click="isBackupCode = !isBackupCode">{{ isBackupCode ? i18n.ts.useTotp : i18n.ts.useBackupCode }}</button></template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
<MkButton type="submit" :disabled="signing" large primary rounded style="margin: 0 auto;">{{ signing ? i18n.ts.loggingIn : i18n.ts.login }}</MkButton>
|
<MkButton type="submit" :disabled="signing" large primary rounded style="margin: 0 auto;">{{ signing ? i18n.ts.loggingIn : i18n.ts.login }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
|
@ -70,6 +70,7 @@ const password = ref('');
|
||||||
const token = ref('');
|
const token = ref('');
|
||||||
const host = ref(toUnicode(configHost));
|
const host = ref(toUnicode(configHost));
|
||||||
const totpLogin = ref(false);
|
const totpLogin = ref(false);
|
||||||
|
const isBackupCode = ref(false);
|
||||||
const queryingKey = ref(false);
|
const queryingKey = ref(false);
|
||||||
const credentialRequest = ref<CredentialRequestOptions | null>(null);
|
const credentialRequest = ref<CredentialRequestOptions | null>(null);
|
||||||
|
|
||||||
|
|
|
@ -152,15 +152,16 @@ requestUrl.hash = '';
|
||||||
window.fetch(`/url?url=${encodeURIComponent(requestUrl.href)}&lang=${versatileLang}`)
|
window.fetch(`/url?url=${encodeURIComponent(requestUrl.href)}&lang=${versatileLang}`)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
fetching.value = false;
|
if (_DEV_) {
|
||||||
unknownUrl.value = true;
|
console.warn(`[HTTP${res.status}] Failed to fetch url preview`);
|
||||||
return;
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.json();
|
return res.json();
|
||||||
})
|
})
|
||||||
.then((info: SummalyResult) => {
|
.then((info: SummalyResult | null) => {
|
||||||
if (info.url == null) {
|
if (!info || info.url == null) {
|
||||||
fetching.value = false;
|
fetching.value = false;
|
||||||
unknownUrl.value = true;
|
unknownUrl.value = true;
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -30,6 +30,7 @@ import { url as local } from '@/config.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { useTooltip } from '@/scripts/use-tooltip.js';
|
import { useTooltip } from '@/scripts/use-tooltip.js';
|
||||||
import { safeURIDecode } from '@/scripts/safe-uri-decode.js';
|
import { safeURIDecode } from '@/scripts/safe-uri-decode.js';
|
||||||
|
import { isEnabledUrlPreview } from '@/instance.js';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
url: string;
|
url: string;
|
||||||
|
@ -44,7 +45,7 @@ const url = new URL(props.url);
|
||||||
if (!['http:', 'https:'].includes(url.protocol)) throw new Error('invalid url');
|
if (!['http:', 'https:'].includes(url.protocol)) throw new Error('invalid url');
|
||||||
const el = ref();
|
const el = ref();
|
||||||
|
|
||||||
if (props.showUrlPreview) {
|
if (props.showUrlPreview && isEnabledUrlPreview.value) {
|
||||||
useTooltip(el, (showing) => {
|
useTooltip(el, (showing) => {
|
||||||
os.popup(defineAsyncComponent(() => import('@/components/MkUrlPreviewPopup.vue')), {
|
os.popup(defineAsyncComponent(() => import('@/components/MkUrlPreviewPopup.vue')), {
|
||||||
showing,
|
showing,
|
||||||
|
|
|
@ -6,7 +6,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template>
|
<template>
|
||||||
<div class="_gaps" :class="$style.textRoot">
|
<div class="_gaps" :class="$style.textRoot">
|
||||||
<Mfm :text="block.text ?? ''" :isNote="false"/>
|
<Mfm :text="block.text ?? ''" :isNote="false"/>
|
||||||
<MkUrlPreview v-for="url in urls" :key="url" :url="url"/>
|
<div v-if="isEnabledUrlPreview">
|
||||||
|
<MkUrlPreview v-for="url in urls" :key="url" :url="url"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -15,6 +17,7 @@ import { defineAsyncComponent } from 'vue';
|
||||||
import * as mfm from 'mfm-js';
|
import * as mfm from 'mfm-js';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js';
|
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js';
|
||||||
|
import { isEnabledUrlPreview } from '@/instance.js';
|
||||||
|
|
||||||
const MkUrlPreview = defineAsyncComponent(() => import('@/components/MkUrlPreview.vue'));
|
const MkUrlPreview = defineAsyncComponent(() => import('@/components/MkUrlPreview.vue'));
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,8 @@ export const infoImageUrl = computed(() => instance.infoImageUrl ?? DEFAULT_INFO
|
||||||
|
|
||||||
export const notFoundImageUrl = computed(() => instance.notFoundImageUrl ?? DEFAULT_NOT_FOUND_IMAGE_URL);
|
export const notFoundImageUrl = computed(() => instance.notFoundImageUrl ?? DEFAULT_NOT_FOUND_IMAGE_URL);
|
||||||
|
|
||||||
|
export const isEnabledUrlPreview = computed(() => instance.enableUrlPreview ?? true);
|
||||||
|
|
||||||
export async function fetchInstance(force = false): Promise<void> {
|
export async function fetchInstance(force = false): Promise<void> {
|
||||||
if (!force) {
|
if (!force) {
|
||||||
const cachedAt = miLocalStorage.getItem('instanceCachedAt') ? parseInt(miLocalStorage.getItem('instanceCachedAt')!) : 0;
|
const cachedAt = miLocalStorage.getItem('instanceCachedAt') ? parseInt(miLocalStorage.getItem('instanceCachedAt')!) : 0;
|
||||||
|
|
|
@ -222,6 +222,15 @@ const patronsWithIcon = [{
|
||||||
}, {
|
}, {
|
||||||
name: '有栖かずみ',
|
name: '有栖かずみ',
|
||||||
icon: 'https://assets.misskey-hub.net/patrons/9240e8e0ba294a8884143e99ac7ed6a0.jpg',
|
icon: 'https://assets.misskey-hub.net/patrons/9240e8e0ba294a8884143e99ac7ed6a0.jpg',
|
||||||
|
}, {
|
||||||
|
name: 'イカロ(コアラ)',
|
||||||
|
icon: 'https://assets.misskey-hub.net/patrons/50b9bdc03735412c80807dbdf32cecb6.jpg',
|
||||||
|
}, {
|
||||||
|
name: 'ハチノス3号',
|
||||||
|
icon: 'https://assets.misskey-hub.net/patrons/030347a6f8ce4e82bc5184b5aad09a18.jpg',
|
||||||
|
}, {
|
||||||
|
name: 'Takeno',
|
||||||
|
icon: 'https://assets.misskey-hub.net/patrons/6fba81536aea48fe94a30909c502dfa1.jpg',
|
||||||
}];
|
}];
|
||||||
|
|
||||||
const patrons = [
|
const patrons = [
|
||||||
|
@ -325,6 +334,7 @@ const patrons = [
|
||||||
'たっくん',
|
'たっくん',
|
||||||
'SHO SEKIGUCHI',
|
'SHO SEKIGUCHI',
|
||||||
'塩キャベツ',
|
'塩キャベツ',
|
||||||
|
'はとぽぷさん',
|
||||||
];
|
];
|
||||||
|
|
||||||
const thereIsTreasure = ref($i && !claimedAchievements.includes('foundTreasure'));
|
const thereIsTreasure = ref($i && !claimedAchievements.includes('foundTreasure'));
|
||||||
|
|
|
@ -118,19 +118,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder>
|
|
||||||
<template #label>Summaly Proxy</template>
|
|
||||||
|
|
||||||
<div class="_gaps_m">
|
|
||||||
<MkInput v-model="summalyProxy">
|
|
||||||
<template #prefix><i class="ti ti-link"></i></template>
|
|
||||||
<template #label>Summaly Proxy URL</template>
|
|
||||||
</MkInput>
|
|
||||||
|
|
||||||
<MkButton primary @click="save"><i class="ti ti-device-floppy"></i> {{ i18n.ts.save }}</MkButton>
|
|
||||||
</div>
|
|
||||||
</MkFolder>
|
|
||||||
</div>
|
</div>
|
||||||
</FormSuspense>
|
</FormSuspense>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
|
@ -155,7 +142,6 @@ import { fetchInstance } from '@/instance.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||||
|
|
||||||
const summalyProxy = ref<string>('');
|
|
||||||
const enableHcaptcha = ref<boolean>(false);
|
const enableHcaptcha = ref<boolean>(false);
|
||||||
const enableMcaptcha = ref<boolean>(false);
|
const enableMcaptcha = ref<boolean>(false);
|
||||||
const enableRecaptcha = ref<boolean>(false);
|
const enableRecaptcha = ref<boolean>(false);
|
||||||
|
@ -175,7 +161,6 @@ const bannedEmailDomains = ref<string>('');
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
const meta = await misskeyApi('admin/meta');
|
const meta = await misskeyApi('admin/meta');
|
||||||
summalyProxy.value = meta.summalyProxy;
|
|
||||||
enableHcaptcha.value = meta.enableHcaptcha;
|
enableHcaptcha.value = meta.enableHcaptcha;
|
||||||
enableMcaptcha.value = meta.enableMcaptcha;
|
enableMcaptcha.value = meta.enableMcaptcha;
|
||||||
enableRecaptcha.value = meta.enableRecaptcha;
|
enableRecaptcha.value = meta.enableRecaptcha;
|
||||||
|
@ -201,7 +186,6 @@ async function init() {
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
os.apiWithDialog('admin/update-meta', {
|
os.apiWithDialog('admin/update-meta', {
|
||||||
summalyProxy: summalyProxy.value,
|
|
||||||
sensitiveMediaDetection: sensitiveMediaDetection.value,
|
sensitiveMediaDetection: sensitiveMediaDetection.value,
|
||||||
sensitiveMediaDetectionSensitivity:
|
sensitiveMediaDetectionSensitivity:
|
||||||
sensitiveMediaDetectionSensitivity.value === 0 ? 'veryLow' :
|
sensitiveMediaDetectionSensitivity.value === 0 ? 'veryLow' :
|
||||||
|
|
|
@ -143,6 +143,53 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
|
<FormSection>
|
||||||
|
<template #label>{{ i18n.ts._urlPreviewSetting.title }}</template>
|
||||||
|
|
||||||
|
<div class="_gaps_m">
|
||||||
|
<MkSwitch v-model="urlPreviewEnabled">
|
||||||
|
<template #label>{{ i18n.ts._urlPreviewSetting.enable }}</template>
|
||||||
|
</MkSwitch>
|
||||||
|
|
||||||
|
<MkSwitch v-model="urlPreviewRequireContentLength">
|
||||||
|
<template #label>{{ i18n.ts._urlPreviewSetting.requireContentLength }}</template>
|
||||||
|
<template #caption>{{ i18n.ts._urlPreviewSetting.requireContentLengthDescription }}</template>
|
||||||
|
</MkSwitch>
|
||||||
|
|
||||||
|
<MkInput v-model="urlPreviewMaximumContentLength" type="number">
|
||||||
|
<template #label>{{ i18n.ts._urlPreviewSetting.maximumContentLength }}</template>
|
||||||
|
<template #caption>{{ i18n.ts._urlPreviewSetting.maximumContentLengthDescription }}</template>
|
||||||
|
</MkInput>
|
||||||
|
|
||||||
|
<MkInput v-model="urlPreviewTimeout" type="number">
|
||||||
|
<template #label>{{ i18n.ts._urlPreviewSetting.timeout }}</template>
|
||||||
|
<template #caption>{{ i18n.ts._urlPreviewSetting.timeoutDescription }}</template>
|
||||||
|
</MkInput>
|
||||||
|
|
||||||
|
<MkInput v-model="urlPreviewUserAgent" type="text">
|
||||||
|
<template #label>{{ i18n.ts._urlPreviewSetting.userAgent }}</template>
|
||||||
|
<template #caption>{{ i18n.ts._urlPreviewSetting.userAgentDescription }}</template>
|
||||||
|
</MkInput>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<MkInput v-model="urlPreviewSummaryProxyUrl" type="text">
|
||||||
|
<template #label>{{ i18n.ts._urlPreviewSetting.summaryProxy }}</template>
|
||||||
|
<template #caption>[{{ i18n.ts.notUsePleaseLeaveBlank }}] {{ i18n.ts._urlPreviewSetting.summaryProxyDescription }}</template>
|
||||||
|
</MkInput>
|
||||||
|
|
||||||
|
<div :class="$style.subCaption">
|
||||||
|
{{ i18n.ts._urlPreviewSetting.summaryProxyDescription2 }}
|
||||||
|
<ul style="padding-left: 20px; margin: 4px 0">
|
||||||
|
<li>{{ i18n.ts._urlPreviewSetting.timeout }} / key:timeout</li>
|
||||||
|
<li>{{ i18n.ts._urlPreviewSetting.maximumContentLength }} / key:contentLengthLimit</li>
|
||||||
|
<li>{{ i18n.ts._urlPreviewSetting.requireContentLength }} / key:contentLengthRequired</li>
|
||||||
|
<li>{{ i18n.ts._urlPreviewSetting.userAgent }} / key:userAgent</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</FormSection>
|
||||||
</div>
|
</div>
|
||||||
</FormSuspense>
|
</FormSuspense>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
|
@ -173,6 +220,8 @@ import { fetchInstance, instance } from '@/instance.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
|
import MkFolder from '@/components/MkFolder.vue';
|
||||||
|
import MkSelect from '@/components/MkSelect.vue';
|
||||||
|
|
||||||
const name = ref<string | null>(null);
|
const name = ref<string | null>(null);
|
||||||
const shortName = ref<string | null>(null);
|
const shortName = ref<string | null>(null);
|
||||||
|
@ -194,6 +243,12 @@ const perRemoteUserUserTimelineCacheMax = ref<number>(0);
|
||||||
const perUserHomeTimelineCacheMax = ref<number>(0);
|
const perUserHomeTimelineCacheMax = ref<number>(0);
|
||||||
const perUserListTimelineCacheMax = ref<number>(0);
|
const perUserListTimelineCacheMax = ref<number>(0);
|
||||||
const notesPerOneAd = ref<number>(0);
|
const notesPerOneAd = ref<number>(0);
|
||||||
|
const urlPreviewEnabled = ref<boolean>(true);
|
||||||
|
const urlPreviewTimeout = ref<number>(10000);
|
||||||
|
const urlPreviewMaximumContentLength = ref<number>(1024 * 1024 * 10);
|
||||||
|
const urlPreviewRequireContentLength = ref<boolean>(true);
|
||||||
|
const urlPreviewUserAgent = ref<string | null>(null);
|
||||||
|
const urlPreviewSummaryProxyUrl = ref<string | null>(null);
|
||||||
|
|
||||||
async function init(): Promise<void> {
|
async function init(): Promise<void> {
|
||||||
const meta = await misskeyApi('admin/meta');
|
const meta = await misskeyApi('admin/meta');
|
||||||
|
@ -217,9 +272,15 @@ async function init(): Promise<void> {
|
||||||
perUserHomeTimelineCacheMax.value = meta.perUserHomeTimelineCacheMax;
|
perUserHomeTimelineCacheMax.value = meta.perUserHomeTimelineCacheMax;
|
||||||
perUserListTimelineCacheMax.value = meta.perUserListTimelineCacheMax;
|
perUserListTimelineCacheMax.value = meta.perUserListTimelineCacheMax;
|
||||||
notesPerOneAd.value = meta.notesPerOneAd;
|
notesPerOneAd.value = meta.notesPerOneAd;
|
||||||
|
urlPreviewEnabled.value = meta.urlPreviewEnabled;
|
||||||
|
urlPreviewTimeout.value = meta.urlPreviewTimeout;
|
||||||
|
urlPreviewMaximumContentLength.value = meta.urlPreviewMaximumContentLength;
|
||||||
|
urlPreviewRequireContentLength.value = meta.urlPreviewRequireContentLength;
|
||||||
|
urlPreviewUserAgent.value = meta.urlPreviewUserAgent;
|
||||||
|
urlPreviewSummaryProxyUrl.value = meta.urlPreviewSummaryProxyUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function save(): void {
|
async function save() {
|
||||||
await os.apiWithDialog('admin/update-meta', {
|
await os.apiWithDialog('admin/update-meta', {
|
||||||
name: name.value,
|
name: name.value,
|
||||||
shortName: shortName.value === '' ? null : shortName.value,
|
shortName: shortName.value === '' ? null : shortName.value,
|
||||||
|
@ -241,6 +302,12 @@ async function save(): void {
|
||||||
perUserHomeTimelineCacheMax: perUserHomeTimelineCacheMax.value,
|
perUserHomeTimelineCacheMax: perUserHomeTimelineCacheMax.value,
|
||||||
perUserListTimelineCacheMax: perUserListTimelineCacheMax.value,
|
perUserListTimelineCacheMax: perUserListTimelineCacheMax.value,
|
||||||
notesPerOneAd: notesPerOneAd.value,
|
notesPerOneAd: notesPerOneAd.value,
|
||||||
|
urlPreviewEnabled: urlPreviewEnabled.value,
|
||||||
|
urlPreviewTimeout: urlPreviewTimeout.value,
|
||||||
|
urlPreviewMaximumContentLength: urlPreviewMaximumContentLength.value,
|
||||||
|
urlPreviewRequireContentLength: urlPreviewRequireContentLength.value,
|
||||||
|
urlPreviewUserAgent: urlPreviewUserAgent.value,
|
||||||
|
urlPreviewSummaryProxyUrl: urlPreviewSummaryProxyUrl.value,
|
||||||
});
|
});
|
||||||
|
|
||||||
fetchInstance(true);
|
fetchInstance(true);
|
||||||
|
@ -259,4 +326,9 @@ definePageMetadata(() => ({
|
||||||
-webkit-backdrop-filter: var(--blur, blur(15px));
|
-webkit-backdrop-filter: var(--blur, blur(15px));
|
||||||
backdrop-filter: var(--blur, blur(15px));
|
backdrop-filter: var(--blur, blur(15px));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.subCaption {
|
||||||
|
font-size: 0.85em;
|
||||||
|
color: var(--fgTransparentWeak);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -26,6 +26,7 @@ const draft = ref({
|
||||||
users: [],
|
users: [],
|
||||||
keywords: [],
|
keywords: [],
|
||||||
excludeKeywords: [],
|
excludeKeywords: [],
|
||||||
|
excludeBots: false,
|
||||||
withReplies: false,
|
withReplies: false,
|
||||||
caseSensitive: false,
|
caseSensitive: false,
|
||||||
localOnly: false,
|
localOnly: false,
|
||||||
|
|
|
@ -26,6 +26,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #label>{{ i18n.ts.users }}</template>
|
<template #label>{{ i18n.ts.users }}</template>
|
||||||
<template #caption>{{ i18n.ts.antennaUsersDescription }} <button class="_textButton" @click="addUser">{{ i18n.ts.addUser }}</button></template>
|
<template #caption>{{ i18n.ts.antennaUsersDescription }} <button class="_textButton" @click="addUser">{{ i18n.ts.addUser }}</button></template>
|
||||||
</MkTextarea>
|
</MkTextarea>
|
||||||
|
<MkSwitch v-model="excludeBots">{{ i18n.ts.antennaExcludeBots }}</MkSwitch>
|
||||||
<MkSwitch v-model="withReplies">{{ i18n.ts.withReplies }}</MkSwitch>
|
<MkSwitch v-model="withReplies">{{ i18n.ts.withReplies }}</MkSwitch>
|
||||||
<MkTextarea v-model="keywords">
|
<MkTextarea v-model="keywords">
|
||||||
<template #label>{{ i18n.ts.antennaKeywords }}</template>
|
<template #label>{{ i18n.ts.antennaKeywords }}</template>
|
||||||
|
@ -78,6 +79,7 @@ const keywords = ref<string>(props.antenna.keywords.map(x => x.join(' ')).join('
|
||||||
const excludeKeywords = ref<string>(props.antenna.excludeKeywords.map(x => x.join(' ')).join('\n'));
|
const excludeKeywords = ref<string>(props.antenna.excludeKeywords.map(x => x.join(' ')).join('\n'));
|
||||||
const caseSensitive = ref<boolean>(props.antenna.caseSensitive);
|
const caseSensitive = ref<boolean>(props.antenna.caseSensitive);
|
||||||
const localOnly = ref<boolean>(props.antenna.localOnly);
|
const localOnly = ref<boolean>(props.antenna.localOnly);
|
||||||
|
const excludeBots = ref<boolean>(props.antenna.excludeBots);
|
||||||
const withReplies = ref<boolean>(props.antenna.withReplies);
|
const withReplies = ref<boolean>(props.antenna.withReplies);
|
||||||
const withFile = ref<boolean>(props.antenna.withFile);
|
const withFile = ref<boolean>(props.antenna.withFile);
|
||||||
const notify = ref<boolean>(props.antenna.notify);
|
const notify = ref<boolean>(props.antenna.notify);
|
||||||
|
@ -94,6 +96,7 @@ async function saveAntenna() {
|
||||||
name: name.value,
|
name: name.value,
|
||||||
src: src.value,
|
src: src.value,
|
||||||
userListId: userListId.value,
|
userListId: userListId.value,
|
||||||
|
excludeBots: excludeBots.value,
|
||||||
withReplies: withReplies.value,
|
withReplies: withReplies.value,
|
||||||
withFile: withFile.value,
|
withFile: withFile.value,
|
||||||
notify: notify.value,
|
notify: notify.value,
|
||||||
|
|
|
@ -52,7 +52,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkSpacer :marginMin="20" :marginMax="28">
|
<MkSpacer :marginMin="20" :marginMax="28">
|
||||||
<div class="_gaps">
|
<div class="_gaps">
|
||||||
<div>{{ i18n.ts._2fa.step3Title }}</div>
|
<div>{{ i18n.ts._2fa.step3Title }}</div>
|
||||||
<MkInput v-model="token" autocomplete="one-time-code"></MkInput>
|
<MkInput v-model="token" autocomplete="one-time-code" inputmode="numeric"></MkInput>
|
||||||
<div>{{ i18n.ts._2fa.step3 }}</div>
|
<div>{{ i18n.ts._2fa.step3 }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="_buttonsCenter" style="margin-top: 16px;">
|
<div class="_buttonsCenter" style="margin-top: 16px;">
|
||||||
|
|
|
@ -80,7 +80,7 @@ import MkSwitch from '@/components/MkSwitch.vue';
|
||||||
import FormSection from '@/components/form/section.vue';
|
import FormSection from '@/components/form/section.vue';
|
||||||
import MkFolder from '@/components/MkFolder.vue';
|
import MkFolder from '@/components/MkFolder.vue';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { signinRequired } from '@/account.js';
|
import { signinRequired, updateAccount } from '@/account.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
|
|
||||||
const $i = signinRequired();
|
const $i = signinRequired();
|
||||||
|
@ -116,6 +116,10 @@ async function unregisterTOTP(): Promise<void> {
|
||||||
os.apiWithDialog('i/2fa/unregister', {
|
os.apiWithDialog('i/2fa/unregister', {
|
||||||
password: auth.result.password,
|
password: auth.result.password,
|
||||||
token: auth.result.token,
|
token: auth.result.token,
|
||||||
|
}).then(res => {
|
||||||
|
updateAccount({
|
||||||
|
twoFactorEnabled: false,
|
||||||
|
});
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
os.alert({
|
os.alert({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
|
|
@ -7,6 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkContainer :showHeader="widgetProps.showHeader" class="mkw-bdayfollowings">
|
<MkContainer :showHeader="widgetProps.showHeader" class="mkw-bdayfollowings">
|
||||||
<template #icon><i class="ti ti-cake"></i></template>
|
<template #icon><i class="ti ti-cake"></i></template>
|
||||||
<template #header>{{ i18n.ts._widgets.birthdayFollowings }}</template>
|
<template #header>{{ i18n.ts._widgets.birthdayFollowings }}</template>
|
||||||
|
<template #func="{ buttonStyleClass }"><button class="_button" :class="buttonStyleClass" @click="actualFetch()"><i class="ti ti-refresh"></i></button></template>
|
||||||
|
|
||||||
<div :class="$style.bdayFRoot">
|
<div :class="$style.bdayFRoot">
|
||||||
<MkLoading v-if="fetching"/>
|
<MkLoading v-if="fetching"/>
|
||||||
|
@ -53,7 +54,7 @@ const { widgetProps, configure } = useWidgetPropsManager(name,
|
||||||
emit,
|
emit,
|
||||||
);
|
);
|
||||||
|
|
||||||
const users = ref<Misskey.entities.FollowingFolloweePopulated[]>([]);
|
const users = ref<Misskey.Endpoints['users/following']['res']>([]);
|
||||||
const fetching = ref(true);
|
const fetching = ref(true);
|
||||||
let lastFetchedAt = '1970-01-01';
|
let lastFetchedAt = '1970-01-01';
|
||||||
|
|
||||||
|
@ -70,19 +71,35 @@ const fetch = () => {
|
||||||
now.setHours(0, 0, 0, 0);
|
now.setHours(0, 0, 0, 0);
|
||||||
|
|
||||||
if (now > lfAtD) {
|
if (now > lfAtD) {
|
||||||
misskeyApi('users/following', {
|
actualFetch();
|
||||||
limit: 18,
|
|
||||||
birthday: now.toISOString(),
|
|
||||||
userId: $i.id,
|
|
||||||
}).then(res => {
|
|
||||||
users.value = res;
|
|
||||||
fetching.value = false;
|
|
||||||
});
|
|
||||||
|
|
||||||
lastFetchedAt = now.toISOString();
|
lastFetchedAt = now.toISOString();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function actualFetch() {
|
||||||
|
if ($i == null) {
|
||||||
|
users.value = [];
|
||||||
|
fetching.value = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const now = new Date();
|
||||||
|
now.setHours(0, 0, 0, 0);
|
||||||
|
fetching.value = true;
|
||||||
|
misskeyApi('users/following', {
|
||||||
|
limit: 18,
|
||||||
|
birthday: `${now.getFullYear().toString().padStart(4, '0')}-${(now.getMonth() + 1).toString().padStart(2, '0')}-${now.getDate().toString().padStart(2, '0')}`,
|
||||||
|
userId: $i.id,
|
||||||
|
}).then(res => {
|
||||||
|
users.value = res;
|
||||||
|
window.setTimeout(() => {
|
||||||
|
// 早すぎるとチカチカする
|
||||||
|
fetching.value = false;
|
||||||
|
}, 100);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
useInterval(fetch, 1000 * 60, {
|
useInterval(fetch, 1000 * 60, {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
afterMounted: true,
|
afterMounted: true,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -60,13 +60,17 @@ async function generateEndpoints(
|
||||||
// misskey-jsはPOST固定で送っているので、こちらも決め打ちする。別メソッドに対応することがあればこちらも直す必要あり
|
// misskey-jsはPOST固定で送っているので、こちらも決め打ちする。別メソッドに対応することがあればこちらも直す必要あり
|
||||||
const paths = openApiDocs.paths ?? {};
|
const paths = openApiDocs.paths ?? {};
|
||||||
const postPathItems = Object.keys(paths)
|
const postPathItems = Object.keys(paths)
|
||||||
.map(it => paths[it]?.post)
|
.map(it => ({
|
||||||
|
_path_: it.replace(/^\//, ''),
|
||||||
|
...paths[it]?.post,
|
||||||
|
}))
|
||||||
.filter(filterUndefined);
|
.filter(filterUndefined);
|
||||||
|
|
||||||
for (const operation of postPathItems) {
|
for (const operation of postPathItems) {
|
||||||
|
const path = operation._path_;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
const operationId = operation.operationId!;
|
const operationId = operation.operationId!;
|
||||||
const endpoint = new Endpoint(operationId);
|
const endpoint = new Endpoint(path);
|
||||||
endpoints.push(endpoint);
|
endpoints.push(endpoint);
|
||||||
|
|
||||||
if (isRequestBodyObject(operation.requestBody)) {
|
if (isRequestBodyObject(operation.requestBody)) {
|
||||||
|
@ -76,19 +80,21 @@ async function generateEndpoints(
|
||||||
// いまのところ複数のメディアタイプをとるエンドポイントは無いので決め打ちする
|
// いまのところ複数のメディアタイプをとるエンドポイントは無いので決め打ちする
|
||||||
endpoint.request = new OperationTypeAlias(
|
endpoint.request = new OperationTypeAlias(
|
||||||
operationId,
|
operationId,
|
||||||
|
path,
|
||||||
supportMediaTypes[0],
|
supportMediaTypes[0],
|
||||||
OperationsAliasType.REQUEST,
|
OperationsAliasType.REQUEST,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isResponseObject(operation.responses['200']) && operation.responses['200'].content) {
|
if (operation.responses && isResponseObject(operation.responses['200']) && operation.responses['200'].content) {
|
||||||
const resContent = operation.responses['200'].content;
|
const resContent = operation.responses['200'].content;
|
||||||
const supportMediaTypes = Object.keys(resContent);
|
const supportMediaTypes = Object.keys(resContent);
|
||||||
if (supportMediaTypes.length > 0) {
|
if (supportMediaTypes.length > 0) {
|
||||||
// いまのところ複数のメディアタイプを返すエンドポイントは無いので決め打ちする
|
// いまのところ複数のメディアタイプを返すエンドポイントは無いので決め打ちする
|
||||||
endpoint.response = new OperationTypeAlias(
|
endpoint.response = new OperationTypeAlias(
|
||||||
operationId,
|
operationId,
|
||||||
|
path,
|
||||||
supportMediaTypes[0],
|
supportMediaTypes[0],
|
||||||
OperationsAliasType.RESPONSE,
|
OperationsAliasType.RESPONSE,
|
||||||
);
|
);
|
||||||
|
@ -98,6 +104,8 @@ async function generateEndpoints(
|
||||||
|
|
||||||
const entitiesOutputLine: string[] = [];
|
const entitiesOutputLine: string[] = [];
|
||||||
|
|
||||||
|
entitiesOutputLine.push('/* eslint @typescript-eslint/naming-convention: 0 */');
|
||||||
|
|
||||||
entitiesOutputLine.push(`import { operations } from '${toImportPath(typeFileName)}';`);
|
entitiesOutputLine.push(`import { operations } from '${toImportPath(typeFileName)}';`);
|
||||||
entitiesOutputLine.push('');
|
entitiesOutputLine.push('');
|
||||||
|
|
||||||
|
@ -138,12 +146,19 @@ async function generateApiClientJSDoc(
|
||||||
endpointsFileName: string,
|
endpointsFileName: string,
|
||||||
warningsOutputPath: string,
|
warningsOutputPath: string,
|
||||||
) {
|
) {
|
||||||
const endpoints: { operationId: string; description: string; }[] = [];
|
const endpoints: {
|
||||||
|
operationId: string;
|
||||||
|
path: string;
|
||||||
|
description: string;
|
||||||
|
}[] = [];
|
||||||
|
|
||||||
// misskey-jsはPOST固定で送っているので、こちらも決め打ちする。別メソッドに対応することがあればこちらも直す必要あり
|
// misskey-jsはPOST固定で送っているので、こちらも決め打ちする。別メソッドに対応することがあればこちらも直す必要あり
|
||||||
const paths = openApiDocs.paths ?? {};
|
const paths = openApiDocs.paths ?? {};
|
||||||
const postPathItems = Object.keys(paths)
|
const postPathItems = Object.keys(paths)
|
||||||
.map(it => paths[it]?.post)
|
.map(it => ({
|
||||||
|
_path_: it.replace(/^\//, ''),
|
||||||
|
...paths[it]?.post,
|
||||||
|
}))
|
||||||
.filter(filterUndefined);
|
.filter(filterUndefined);
|
||||||
|
|
||||||
for (const operation of postPathItems) {
|
for (const operation of postPathItems) {
|
||||||
|
@ -153,6 +168,7 @@ async function generateApiClientJSDoc(
|
||||||
if (operation.description) {
|
if (operation.description) {
|
||||||
endpoints.push({
|
endpoints.push({
|
||||||
operationId: operationId,
|
operationId: operationId,
|
||||||
|
path: operation._path_,
|
||||||
description: operation.description,
|
description: operation.description,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -173,7 +189,7 @@ async function generateApiClientJSDoc(
|
||||||
' /**',
|
' /**',
|
||||||
` * ${endpoint.description.split('\n').join('\n * ')}`,
|
` * ${endpoint.description.split('\n').join('\n * ')}`,
|
||||||
' */',
|
' */',
|
||||||
` request<E extends '${endpoint.operationId}', P extends Endpoints[E][\'req\']>(`,
|
` request<E extends '${endpoint.path}', P extends Endpoints[E][\'req\']>(`,
|
||||||
' endpoint: E,',
|
' endpoint: E,',
|
||||||
' params: P,',
|
' params: P,',
|
||||||
' credential?: string | null,',
|
' credential?: string | null,',
|
||||||
|
@ -232,21 +248,24 @@ interface IOperationTypeAlias {
|
||||||
|
|
||||||
class OperationTypeAlias implements IOperationTypeAlias {
|
class OperationTypeAlias implements IOperationTypeAlias {
|
||||||
public readonly operationId: string;
|
public readonly operationId: string;
|
||||||
|
public readonly path: string;
|
||||||
public readonly mediaType: string;
|
public readonly mediaType: string;
|
||||||
public readonly type: OperationsAliasType;
|
public readonly type: OperationsAliasType;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
operationId: string,
|
operationId: string,
|
||||||
|
path: string,
|
||||||
mediaType: string,
|
mediaType: string,
|
||||||
type: OperationsAliasType,
|
type: OperationsAliasType,
|
||||||
) {
|
) {
|
||||||
this.operationId = operationId;
|
this.operationId = operationId;
|
||||||
|
this.path = path;
|
||||||
this.mediaType = mediaType;
|
this.mediaType = mediaType;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
generateName(): string {
|
generateName(): string {
|
||||||
const nameBase = this.operationId.replace(/\//g, '-');
|
const nameBase = this.path.replace(/\//g, '-');
|
||||||
return toPascal(nameBase + this.type);
|
return toPascal(nameBase + this.type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -279,19 +298,19 @@ const emptyRequest = new EmptyTypeAlias(OperationsAliasType.REQUEST);
|
||||||
const emptyResponse = new EmptyTypeAlias(OperationsAliasType.RESPONSE);
|
const emptyResponse = new EmptyTypeAlias(OperationsAliasType.RESPONSE);
|
||||||
|
|
||||||
class Endpoint {
|
class Endpoint {
|
||||||
public readonly operationId: string;
|
public readonly path: string;
|
||||||
public request?: IOperationTypeAlias;
|
public request?: IOperationTypeAlias;
|
||||||
public response?: IOperationTypeAlias;
|
public response?: IOperationTypeAlias;
|
||||||
|
|
||||||
constructor(operationId: string) {
|
constructor(path: string) {
|
||||||
this.operationId = operationId;
|
this.path = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
toLine(): string {
|
toLine(): string {
|
||||||
const reqName = this.request?.generateName() ?? emptyRequest.generateName();
|
const reqName = this.request?.generateName() ?? emptyRequest.generateName();
|
||||||
const resName = this.response?.generateName() ?? emptyResponse.generateName();
|
const resName = this.response?.generateName() ?? emptyResponse.generateName();
|
||||||
|
|
||||||
return `'${this.operationId}': { req: ${reqName}; res: ${resName} };`;
|
return `'${this.path}': { req: ${reqName}; res: ${resName} };`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -117,8 +117,8 @@ importers:
|
||||||
specifier: 1.2.0
|
specifier: 1.2.0
|
||||||
version: 1.2.0
|
version: 1.2.0
|
||||||
'@misskey-dev/summaly':
|
'@misskey-dev/summaly':
|
||||||
specifier: 5.0.3
|
specifier: 5.1.0
|
||||||
version: 5.0.3
|
version: 5.1.0
|
||||||
'@nestjs/common':
|
'@nestjs/common':
|
||||||
specifier: 10.3.3
|
specifier: 10.3.3
|
||||||
version: 10.3.3(reflect-metadata@0.2.1)(rxjs@7.8.1)
|
version: 10.3.3(reflect-metadata@0.2.1)(rxjs@7.8.1)
|
||||||
|
@ -4772,6 +4772,20 @@ packages:
|
||||||
jschardet: 3.0.0
|
jschardet: 3.0.0
|
||||||
private-ip: 2.3.3
|
private-ip: 2.3.3
|
||||||
trace-redirect: 1.0.6
|
trace-redirect: 1.0.6
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@misskey-dev/summaly@5.1.0:
|
||||||
|
resolution: {integrity: sha512-WAUrgX3/z4h4aI8Y/WVwmJcJ6Fa1Zf2LJCSS651t9MHoWVGABLsQ2KCXRGmlpk4i+cMDNIwweObUroosE7j8rg==}
|
||||||
|
dependencies:
|
||||||
|
cheerio: 1.0.0-rc.12
|
||||||
|
escape-regexp: 0.0.1
|
||||||
|
got: 12.6.1
|
||||||
|
html-entities: 2.3.2
|
||||||
|
iconv-lite: 0.6.3
|
||||||
|
jschardet: 3.0.0
|
||||||
|
private-ip: 2.3.3
|
||||||
|
trace-redirect: 1.0.6
|
||||||
|
dev: false
|
||||||
|
|
||||||
/@mole-inc/bin-wrapper@8.0.1:
|
/@mole-inc/bin-wrapper@8.0.1:
|
||||||
resolution: {integrity: sha512-sTGoeZnjI8N4KS+sW2AN95gDBErhAguvkw/tWdCjeM8bvxpz5lqrnd0vOJABA1A+Ic3zED7PYoLP/RANLgVotA==}
|
resolution: {integrity: sha512-sTGoeZnjI8N4KS+sW2AN95gDBErhAguvkw/tWdCjeM8bvxpz5lqrnd0vOJABA1A+Ic3zED7PYoLP/RANLgVotA==}
|
||||||
|
|
Loading…
Reference in New Issue