Compare commits
8 Commits
7bd341ec9b
...
8744aab9c2
| Author | SHA1 | Date |
|---|---|---|
|
|
8744aab9c2 | |
|
|
1ed632d6d4 | |
|
|
f820f767ae | |
|
|
79db6bd70e | |
|
|
1f7a4b092d | |
|
|
70a7800927 | |
|
|
77f18f4250 | |
|
|
5758ea463a |
|
|
@ -23,13 +23,17 @@
|
||||||
- チャンネルをセンシティブ指定できるようになりました
|
- チャンネルをセンシティブ指定できるようになりました
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
|
- プロフィールにその人が作ったPlayの一覧出せるように
|
||||||
- メニューのスイッチの動作を改善
|
- メニューのスイッチの動作を改善
|
||||||
- 絵文字ピッカーの検索の表示件数を100件に増加
|
- 絵文字ピッカーの検索の表示件数を100件に増加
|
||||||
|
- 投稿フォームのプレビューの表示状態を記憶するように
|
||||||
- Enhance: ユーザーメニューでスイッチでユーザーリストに追加・削除できるように
|
- Enhance: ユーザーメニューでスイッチでユーザーリストに追加・削除できるように
|
||||||
- Enhance: 自分が押したリアクションのデザインを改善
|
- Enhance: 自分が押したリアクションのデザインを改善
|
||||||
- Enhance: ノート検索にローカルのみ検索可能なオプションの追加
|
- Enhance: ノート検索にローカルのみ検索可能なオプションの追加
|
||||||
- Enhance: AiScriptで`LOCALE`として現在の設定言語を取得できるように
|
- Enhance: AiScriptで`LOCALE`として現在の設定言語を取得できるように
|
||||||
- Enhance: Renote自体を通報できるように
|
- Enhance: Renote自体を通報できるように
|
||||||
|
- `$[rainbow ]`記法が、動きのあるMFMが無効になっていても使用できるようになりました
|
||||||
|
- Playの操作を行うAPI TokenをAPIコンソールから発行できるように
|
||||||
- Fix: サーバー情報画面(`/instance-info/{domain}`)でブロックができないのを修正
|
- Fix: サーバー情報画面(`/instance-info/{domain}`)でブロックができないのを修正
|
||||||
- Fix: 未読のお知らせの「わかった」をクリック・タップしてもその場で「わかった」が消えない問題を修正
|
- Fix: 未読のお知らせの「わかった」をクリック・タップしてもその場で「わかった」が消えない問題を修正
|
||||||
- Fix: iOSで画面を回転させるとテキストサイズが変わる問題を修正
|
- Fix: iOSで画面を回転させるとテキストサイズが変わる問題を修正
|
||||||
|
|
@ -37,7 +41,6 @@
|
||||||
- Fix: タイムラインを下にスクロールしてノート画面に移動して再び戻ったら以前のスクロール位置を失う問題を修正
|
- Fix: タイムラインを下にスクロールしてノート画面に移動して再び戻ったら以前のスクロール位置を失う問題を修正
|
||||||
- Fix: Misskeyプラグインをインストールする際のAiScriptバージョンのチェックが0.14.0以降に対応していない問題を修正
|
- Fix: Misskeyプラグインをインストールする際のAiScriptバージョンのチェックが0.14.0以降に対応していない問題を修正
|
||||||
- Fix: 他のサーバーのユーザーへ「メッセージを送信」した時の初期テキストのメンションが間違っている問題を修正
|
- Fix: 他のサーバーのユーザーへ「メッセージを送信」した時の初期テキストのメンションが間違っている問題を修正
|
||||||
- Playの操作を行うAPI TokenをAPIコンソールから発行できるように
|
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Fix: ノート検索 `notes/search` にてhostを指定した際に検索結果に反映されるように
|
- Fix: ノート検索 `notes/search` にてhostを指定した際に検索結果に反映されるように
|
||||||
|
|
|
||||||
|
|
@ -680,6 +680,7 @@ createNewClip: "Create new clip"
|
||||||
unclip: "Unclip"
|
unclip: "Unclip"
|
||||||
confirmToUnclipAlreadyClippedNote: "This note is already part of the \"{name}\" clip. Do you want to remove it from this clip instead?"
|
confirmToUnclipAlreadyClippedNote: "This note is already part of the \"{name}\" clip. Do you want to remove it from this clip instead?"
|
||||||
public: "Public"
|
public: "Public"
|
||||||
|
private: "Private"
|
||||||
i18nInfo: "Misskey is being translated into various languages by volunteers. You can help at {link}."
|
i18nInfo: "Misskey is being translated into various languages by volunteers. You can help at {link}."
|
||||||
manageAccessTokens: "Manage access tokens"
|
manageAccessTokens: "Manage access tokens"
|
||||||
accountInfo: "Account Info"
|
accountInfo: "Account Info"
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ export interface Locale {
|
||||||
"unpin": string;
|
"unpin": string;
|
||||||
"copyContent": string;
|
"copyContent": string;
|
||||||
"copyLink": string;
|
"copyLink": string;
|
||||||
|
"copyLinkRenote": string;
|
||||||
"delete": string;
|
"delete": string;
|
||||||
"deleteAndEdit": string;
|
"deleteAndEdit": string;
|
||||||
"deleteAndEditConfirm": string;
|
"deleteAndEditConfirm": string;
|
||||||
|
|
@ -685,6 +686,7 @@ export interface Locale {
|
||||||
"unclip": string;
|
"unclip": string;
|
||||||
"confirmToUnclipAlreadyClippedNote": string;
|
"confirmToUnclipAlreadyClippedNote": string;
|
||||||
"public": string;
|
"public": string;
|
||||||
|
"private": string;
|
||||||
"i18nInfo": string;
|
"i18nInfo": string;
|
||||||
"manageAccessTokens": string;
|
"manageAccessTokens": string;
|
||||||
"accountInfo": string;
|
"accountInfo": string;
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ pin: "ピン留め"
|
||||||
unpin: "ピン留め解除"
|
unpin: "ピン留め解除"
|
||||||
copyContent: "内容をコピー"
|
copyContent: "内容をコピー"
|
||||||
copyLink: "リンクをコピー"
|
copyLink: "リンクをコピー"
|
||||||
|
copyLinkRenote: "Renoteのリンクをコピー"
|
||||||
delete: "削除"
|
delete: "削除"
|
||||||
deleteAndEdit: "削除して編集"
|
deleteAndEdit: "削除して編集"
|
||||||
deleteAndEditConfirm: "このノートを削除してもう一度編集しますか?このノートへのリアクション、Renote、返信も全て削除されます。"
|
deleteAndEditConfirm: "このノートを削除してもう一度編集しますか?このノートへのリアクション、Renote、返信も全て削除されます。"
|
||||||
|
|
@ -682,6 +683,7 @@ createNewClip: "新しいクリップを作成"
|
||||||
unclip: "クリップ解除"
|
unclip: "クリップ解除"
|
||||||
confirmToUnclipAlreadyClippedNote: "このノートはすでにクリップ「{name}」に含まれています。ノートをこのクリップから除外しますか?"
|
confirmToUnclipAlreadyClippedNote: "このノートはすでにクリップ「{name}」に含まれています。ノートをこのクリップから除外しますか?"
|
||||||
public: "パブリック"
|
public: "パブリック"
|
||||||
|
private: "非公開"
|
||||||
i18nInfo: "Misskeyは有志によって様々な言語に翻訳されています。{link}で翻訳に協力できます。"
|
i18nInfo: "Misskeyは有志によって様々な言語に翻訳されています。{link}で翻訳に協力できます。"
|
||||||
manageAccessTokens: "アクセストークンの管理"
|
manageAccessTokens: "アクセストークンの管理"
|
||||||
accountInfo: "アカウント情報"
|
accountInfo: "アカウント情報"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "2023.9.0-beta.1",
|
"version": "2023.9.0-beta.2",
|
||||||
"codename": "nasubi",
|
"codename": "nasubi",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class PlayVisibility1689102832143 {
|
||||||
|
name = 'PlayVisibility1690796169261'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "public"."flash" ADD "visibility" character varying(512) DEFAULT 'public'`, undefined);
|
||||||
|
}
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "public"."flash" DROP COLUMN "visibility"`, undefined);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -61,4 +61,13 @@ export class MiFlash {
|
||||||
default: 0,
|
default: 0,
|
||||||
})
|
})
|
||||||
public likedCount: number;
|
public likedCount: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* public ... 公開
|
||||||
|
* private ... プロフィールには表示しない
|
||||||
|
*/
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 512, default: 'public',
|
||||||
|
})
|
||||||
|
public visibility: 'public' | 'private';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -336,6 +336,7 @@ import * as ep___users_lists_unfavorite from './endpoints/users/lists/unfavorite
|
||||||
import * as ep___users_lists_create_from_public from './endpoints/users/lists/create-from-public.js';
|
import * as ep___users_lists_create_from_public from './endpoints/users/lists/create-from-public.js';
|
||||||
import * as ep___users_notes from './endpoints/users/notes.js';
|
import * as ep___users_notes from './endpoints/users/notes.js';
|
||||||
import * as ep___users_pages from './endpoints/users/pages.js';
|
import * as ep___users_pages from './endpoints/users/pages.js';
|
||||||
|
import * as ep___users_flashs from './endpoints/users/flashs.js';
|
||||||
import * as ep___users_reactions from './endpoints/users/reactions.js';
|
import * as ep___users_reactions from './endpoints/users/reactions.js';
|
||||||
import * as ep___users_recommendation from './endpoints/users/recommendation.js';
|
import * as ep___users_recommendation from './endpoints/users/recommendation.js';
|
||||||
import * as ep___users_relation from './endpoints/users/relation.js';
|
import * as ep___users_relation from './endpoints/users/relation.js';
|
||||||
|
|
@ -681,6 +682,7 @@ const $users_lists_unfavorite: Provider = { provide: 'ep:users/lists/unfavorite'
|
||||||
const $users_lists_create_from_public: Provider = { provide: 'ep:users/lists/create-from-public', useClass: ep___users_lists_create_from_public.default };
|
const $users_lists_create_from_public: Provider = { provide: 'ep:users/lists/create-from-public', useClass: ep___users_lists_create_from_public.default };
|
||||||
const $users_notes: Provider = { provide: 'ep:users/notes', useClass: ep___users_notes.default };
|
const $users_notes: Provider = { provide: 'ep:users/notes', useClass: ep___users_notes.default };
|
||||||
const $users_pages: Provider = { provide: 'ep:users/pages', useClass: ep___users_pages.default };
|
const $users_pages: Provider = { provide: 'ep:users/pages', useClass: ep___users_pages.default };
|
||||||
|
const $users_flashs: Provider = { provide: 'ep:users/flashs', useClass: ep___users_flashs.default };
|
||||||
const $users_reactions: Provider = { provide: 'ep:users/reactions', useClass: ep___users_reactions.default };
|
const $users_reactions: Provider = { provide: 'ep:users/reactions', useClass: ep___users_reactions.default };
|
||||||
const $users_recommendation: Provider = { provide: 'ep:users/recommendation', useClass: ep___users_recommendation.default };
|
const $users_recommendation: Provider = { provide: 'ep:users/recommendation', useClass: ep___users_recommendation.default };
|
||||||
const $users_relation: Provider = { provide: 'ep:users/relation', useClass: ep___users_relation.default };
|
const $users_relation: Provider = { provide: 'ep:users/relation', useClass: ep___users_relation.default };
|
||||||
|
|
@ -1030,6 +1032,7 @@ const $retention: Provider = { provide: 'ep:retention', useClass: ep___retention
|
||||||
$users_lists_create_from_public,
|
$users_lists_create_from_public,
|
||||||
$users_notes,
|
$users_notes,
|
||||||
$users_pages,
|
$users_pages,
|
||||||
|
$users_flashs,
|
||||||
$users_reactions,
|
$users_reactions,
|
||||||
$users_recommendation,
|
$users_recommendation,
|
||||||
$users_relation,
|
$users_relation,
|
||||||
|
|
@ -1371,6 +1374,7 @@ const $retention: Provider = { provide: 'ep:retention', useClass: ep___retention
|
||||||
$users_lists_create_from_public,
|
$users_lists_create_from_public,
|
||||||
$users_notes,
|
$users_notes,
|
||||||
$users_pages,
|
$users_pages,
|
||||||
|
$users_flashs,
|
||||||
$users_reactions,
|
$users_reactions,
|
||||||
$users_recommendation,
|
$users_recommendation,
|
||||||
$users_relation,
|
$users_relation,
|
||||||
|
|
|
||||||
|
|
@ -336,6 +336,7 @@ import * as ep___users_lists_create_from_public from './endpoints/users/lists/cr
|
||||||
import * as ep___users_lists_update from './endpoints/users/lists/update.js';
|
import * as ep___users_lists_update from './endpoints/users/lists/update.js';
|
||||||
import * as ep___users_notes from './endpoints/users/notes.js';
|
import * as ep___users_notes from './endpoints/users/notes.js';
|
||||||
import * as ep___users_pages from './endpoints/users/pages.js';
|
import * as ep___users_pages from './endpoints/users/pages.js';
|
||||||
|
import * as ep___users_flashs from './endpoints/users/flashs.js';
|
||||||
import * as ep___users_reactions from './endpoints/users/reactions.js';
|
import * as ep___users_reactions from './endpoints/users/reactions.js';
|
||||||
import * as ep___users_recommendation from './endpoints/users/recommendation.js';
|
import * as ep___users_recommendation from './endpoints/users/recommendation.js';
|
||||||
import * as ep___users_relation from './endpoints/users/relation.js';
|
import * as ep___users_relation from './endpoints/users/relation.js';
|
||||||
|
|
@ -679,6 +680,7 @@ const eps = [
|
||||||
['users/lists/create-from-public', ep___users_lists_create_from_public],
|
['users/lists/create-from-public', ep___users_lists_create_from_public],
|
||||||
['users/notes', ep___users_notes],
|
['users/notes', ep___users_notes],
|
||||||
['users/pages', ep___users_pages],
|
['users/pages', ep___users_pages],
|
||||||
|
['users/flashs', ep___users_flashs],
|
||||||
['users/reactions', ep___users_reactions],
|
['users/reactions', ep___users_reactions],
|
||||||
['users/recommendation', ep___users_recommendation],
|
['users/recommendation', ep___users_recommendation],
|
||||||
['users/relation', ep___users_relation],
|
['users/relation', ep___users_relation],
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ export const paramDef = {
|
||||||
permissions: { type: 'array', items: {
|
permissions: { type: 'array', items: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
} },
|
} },
|
||||||
|
visibility: { type: 'string', enum: ['public', 'private'] },
|
||||||
},
|
},
|
||||||
required: ['flashId', 'title', 'summary', 'script', 'permissions'],
|
required: ['flashId', 'title', 'summary', 'script', 'permissions'],
|
||||||
} as const;
|
} as const;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,62 @@
|
||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
|
import { Endpoint } from '@/server/api/endpoint-base.js';
|
||||||
|
import { QueryService } from '@/core/QueryService.js';
|
||||||
|
import { FlashEntityService } from '@/core/entities/FlashEntityService.js';
|
||||||
|
import type { FlashsRepository } from '@/models/index.js';
|
||||||
|
import { DI } from '@/di-symbols.js';
|
||||||
|
|
||||||
|
export const meta = {
|
||||||
|
tags: ['users', 'flashs'],
|
||||||
|
|
||||||
|
description: 'Show all flashs this user created.',
|
||||||
|
|
||||||
|
res: {
|
||||||
|
type: 'array',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
items: {
|
||||||
|
type: 'object',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
ref: 'Flash',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export const paramDef = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
userId: { type: 'string', format: 'misskey:id' },
|
||||||
|
limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
|
||||||
|
sinceId: { type: 'string', format: 'misskey:id' },
|
||||||
|
untilId: { type: 'string', format: 'misskey:id' },
|
||||||
|
},
|
||||||
|
required: ['userId'],
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
// eslint-disable-next-line import/no-default-export
|
||||||
|
@Injectable()
|
||||||
|
export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||||
|
constructor(
|
||||||
|
@Inject(DI.flashsRepository)
|
||||||
|
private flashsRepository: FlashsRepository,
|
||||||
|
|
||||||
|
private flashEntityService: FlashEntityService,
|
||||||
|
private queryService: QueryService,
|
||||||
|
) {
|
||||||
|
super(meta, paramDef, async (ps, me) => {
|
||||||
|
const query = this.queryService.makePaginationQuery(this.flashsRepository.createQueryBuilder('flash'), ps.sinceId, ps.untilId)
|
||||||
|
.andWhere('flash.userId = :userId', { userId: ps.userId })
|
||||||
|
.andWhere('flash.visibility = \'public\'');
|
||||||
|
|
||||||
|
const flashs = await query
|
||||||
|
.limit(ps.limit)
|
||||||
|
.getMany();
|
||||||
|
|
||||||
|
return await this.flashEntityService.packMany(flashs);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -28,14 +28,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
</I18n>
|
</I18n>
|
||||||
<div :class="$style.renoteInfo">
|
<div :class="$style.renoteInfo">
|
||||||
<span :class="$style.renoteTime">
|
<button ref="renoteTime" :class="$style.renoteTime" class="_button" @click="showRenoteMenu()">
|
||||||
<button ref="renoteTime" class="_button">
|
<i class="ti ti-dots" :class="$style.renoteMenu"></i>
|
||||||
<i class="ti ti-dots" :class="$style.renoteMenu" @click="showRenoteMenu()"></i>
|
|
||||||
</button>
|
|
||||||
<MkA :to="notePage(note)">
|
|
||||||
<MkTime :time="note.createdAt"/>
|
<MkTime :time="note.createdAt"/>
|
||||||
</MkA>
|
</button>
|
||||||
</span>
|
|
||||||
<span v-if="note.visibility !== 'public'" style="margin-left: 0.5em;" :title="i18n.ts._visibility[note.visibility]">
|
<span v-if="note.visibility !== 'public'" style="margin-left: 0.5em;" :title="i18n.ts._visibility[note.visibility]">
|
||||||
<i v-if="note.visibility === 'home'" class="ti ti-home"></i>
|
<i v-if="note.visibility === 'home'" class="ti ti-home"></i>
|
||||||
<i v-else-if="note.visibility === 'followers'" class="ti ti-lock"></i>
|
<i v-else-if="note.visibility === 'followers'" class="ti ti-lock"></i>
|
||||||
|
|
@ -165,7 +161,7 @@ import { reactionPicker } from '@/scripts/reaction-picker';
|
||||||
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm';
|
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm';
|
||||||
import { $i } from '@/account';
|
import { $i } from '@/account';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
import { getAbuseNoteMenu, getNoteClipMenu, getNoteMenu } from '@/scripts/get-note-menu';
|
import { getAbuseNoteMenu, getCopyNoteLinkMenu, getNoteClipMenu, getNoteMenu } from '@/scripts/get-note-menu';
|
||||||
import { useNoteCapture } from '@/scripts/use-note-capture';
|
import { useNoteCapture } from '@/scripts/use-note-capture';
|
||||||
import { deepClone } from '@/scripts/clone';
|
import { deepClone } from '@/scripts/clone';
|
||||||
import { useTooltip } from '@/scripts/use-tooltip';
|
import { useTooltip } from '@/scripts/use-tooltip';
|
||||||
|
|
@ -175,7 +171,6 @@ import { MenuItem } from '@/types/menu';
|
||||||
import MkRippleEffect from '@/components/MkRippleEffect.vue';
|
import MkRippleEffect from '@/components/MkRippleEffect.vue';
|
||||||
import { showMovedDialog } from '@/scripts/show-moved-dialog';
|
import { showMovedDialog } from '@/scripts/show-moved-dialog';
|
||||||
import { shouldCollapsed } from '@/scripts/collapsed';
|
import { shouldCollapsed } from '@/scripts/collapsed';
|
||||||
import { notePage } from '@/filters/note';
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
note: misskey.entities.Note;
|
note: misskey.entities.Note;
|
||||||
|
|
@ -432,7 +427,10 @@ async function clip() {
|
||||||
function showRenoteMenu(viaKeyboard = false): void {
|
function showRenoteMenu(viaKeyboard = false): void {
|
||||||
if (isMyRenote) {
|
if (isMyRenote) {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
os.popupMenu([{
|
os.popupMenu([
|
||||||
|
getCopyNoteLinkMenu(note, i18n.ts.copyLinkRenote),
|
||||||
|
null,
|
||||||
|
{
|
||||||
text: i18n.ts.unrenote,
|
text: i18n.ts.unrenote,
|
||||||
icon: 'ti ti-trash',
|
icon: 'ti ti-trash',
|
||||||
danger: true,
|
danger: true,
|
||||||
|
|
@ -442,11 +440,16 @@ function showRenoteMenu(viaKeyboard = false): void {
|
||||||
});
|
});
|
||||||
isDeleted.value = true;
|
isDeleted.value = true;
|
||||||
},
|
},
|
||||||
}], renoteTime.value, {
|
},
|
||||||
|
], renoteTime.value, {
|
||||||
viaKeyboard: viaKeyboard,
|
viaKeyboard: viaKeyboard,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
os.popupMenu([getAbuseNoteMenu(note, i18n.ts.reportAbuseRenote)], renoteTime.value, {
|
os.popupMenu([
|
||||||
|
getCopyNoteLinkMenu(note, i18n.ts.copyLinkRenote),
|
||||||
|
null,
|
||||||
|
getAbuseNoteMenu(note, i18n.ts.reportAbuseRenote),
|
||||||
|
], renoteTime.value, {
|
||||||
viaKeyboard: viaKeyboard,
|
viaKeyboard: viaKeyboard,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,8 @@ let poll = $ref<{
|
||||||
expiredAfter: string | null;
|
expiredAfter: string | null;
|
||||||
} | null>(null);
|
} | null>(null);
|
||||||
let useCw = $ref(false);
|
let useCw = $ref(false);
|
||||||
let showPreview = $ref(false);
|
let showPreview = $ref(defaultStore.state.showPreview);
|
||||||
|
watch($$(showPreview), () => defaultStore.set('showPreview', showPreview));
|
||||||
let cw = $ref<string | null>(null);
|
let cw = $ref<string | null>(null);
|
||||||
let localOnly = $ref<boolean>(props.initialLocalOnly ?? defaultStore.state.rememberNoteVisibility ? defaultStore.state.localOnly : defaultStore.state.defaultNoteLocalOnly);
|
let localOnly = $ref<boolean>(props.initialLocalOnly ?? defaultStore.state.rememberNoteVisibility ? defaultStore.state.localOnly : defaultStore.state.defaultNoteLocalOnly);
|
||||||
let visibility = $ref(props.initialVisibility ?? (defaultStore.state.rememberNoteVisibility ? defaultStore.state.visibility : defaultStore.state.defaultNoteVisibility) as typeof misskey.noteVisibilities[number]);
|
let visibility = $ref(props.initialVisibility ?? (defaultStore.state.rememberNoteVisibility ? defaultStore.state.visibility : defaultStore.state.defaultNoteVisibility) as typeof misskey.noteVisibilities[number]);
|
||||||
|
|
|
||||||
|
|
@ -175,8 +175,13 @@ export default function(props: {
|
||||||
}, genEl(token.children, scale));
|
}, genEl(token.children, scale));
|
||||||
}
|
}
|
||||||
case 'rainbow': {
|
case 'rainbow': {
|
||||||
|
if (!useAnim) {
|
||||||
|
return h('span', {
|
||||||
|
class: '_mfm_rainbow_fallback_',
|
||||||
|
}, genEl(token.children, scale));
|
||||||
|
}
|
||||||
const speed = validTime(token.props.args.speed) ?? '1s';
|
const speed = validTime(token.props.args.speed) ?? '1s';
|
||||||
style = useAnim ? `animation: mfm-rainbow ${speed} linear infinite;` : '';
|
style = `animation: mfm-rainbow ${speed} linear infinite;`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'sparkle': {
|
case 'sparkle': {
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkButton @click="show"><i class="ti ti-eye"></i> {{ i18n.ts.show }}</MkButton>
|
<MkButton @click="show"><i class="ti ti-eye"></i> {{ i18n.ts.show }}</MkButton>
|
||||||
<MkButton v-if="flash" danger @click="del"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton>
|
<MkButton v-if="flash" danger @click="del"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
|
<MkSelect v-model="visibility">
|
||||||
|
<template #label>{{ i18n.ts.visibility }}</template>
|
||||||
|
<option :key="'public'" :value="'public'">{{ i18n.ts.public }}</option>
|
||||||
|
<option :key="'private'" :value="'private'">{{ i18n.ts.private }}</option>
|
||||||
|
</MkSelect>
|
||||||
</div>
|
</div>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
</MkStickyContainer>
|
</MkStickyContainer>
|
||||||
|
|
@ -36,6 +41,7 @@ import { i18n } from '@/i18n';
|
||||||
import { definePageMetadata } from '@/scripts/page-metadata';
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
||||||
import MkTextarea from '@/components/MkTextarea.vue';
|
import MkTextarea from '@/components/MkTextarea.vue';
|
||||||
import MkInput from '@/components/MkInput.vue';
|
import MkInput from '@/components/MkInput.vue';
|
||||||
|
import MkSelect from '@/components/MkSelect.vue';
|
||||||
import { useRouter } from '@/router';
|
import { useRouter } from '@/router';
|
||||||
|
|
||||||
const PRESET_DEFAULT = `/// @ 0.15.0
|
const PRESET_DEFAULT = `/// @ 0.15.0
|
||||||
|
|
@ -358,6 +364,7 @@ const props = defineProps<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
let flash = $ref(null);
|
let flash = $ref(null);
|
||||||
|
let visibility = $ref('public');
|
||||||
|
|
||||||
if (props.id) {
|
if (props.id) {
|
||||||
flash = await os.api('flash/show', {
|
flash = await os.api('flash/show', {
|
||||||
|
|
@ -402,6 +409,7 @@ async function save() {
|
||||||
summary,
|
summary,
|
||||||
permissions,
|
permissions,
|
||||||
script,
|
script,
|
||||||
|
visibility,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const created = await os.apiWithDialog('flash/create', {
|
const created = await os.apiWithDialog('flash/create', {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
-->
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<MkSpacer :contentMax="700">
|
||||||
|
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
|
||||||
|
<MkFlashPreview v-for="flash in items" :key="flash.id" :flash="flash" class="_margin"/>
|
||||||
|
</MkPagination>
|
||||||
|
</MkSpacer>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { computed } from 'vue';
|
||||||
|
import * as misskey from 'misskey-js';
|
||||||
|
import MkFlashPreview from '@/components/MkFlashPreview.vue';
|
||||||
|
import MkPagination from '@/components/MkPagination.vue';
|
||||||
|
|
||||||
|
const props = defineProps<{
|
||||||
|
user: misskey.entities.User;
|
||||||
|
}>();
|
||||||
|
|
||||||
|
const pagination = {
|
||||||
|
endpoint: 'users/flashs' as const,
|
||||||
|
limit: 20,
|
||||||
|
params: computed(() => ({
|
||||||
|
userId: props.user.id,
|
||||||
|
})),
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
@ -16,6 +16,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<XClips v-else-if="tab === 'clips'" :user="user"/>
|
<XClips v-else-if="tab === 'clips'" :user="user"/>
|
||||||
<XLists v-else-if="tab === 'lists'" :user="user"/>
|
<XLists v-else-if="tab === 'lists'" :user="user"/>
|
||||||
<XPages v-else-if="tab === 'pages'" :user="user"/>
|
<XPages v-else-if="tab === 'pages'" :user="user"/>
|
||||||
|
<XFlashs v-else-if="tab === 'flashs'" :user="user"/>
|
||||||
<XGallery v-else-if="tab === 'gallery'" :user="user"/>
|
<XGallery v-else-if="tab === 'gallery'" :user="user"/>
|
||||||
</div>
|
</div>
|
||||||
<MkError v-else-if="error" @retry="fetchUser()"/>
|
<MkError v-else-if="error" @retry="fetchUser()"/>
|
||||||
|
|
@ -42,6 +43,7 @@ const XReactions = defineAsyncComponent(() => import('./reactions.vue'));
|
||||||
const XClips = defineAsyncComponent(() => import('./clips.vue'));
|
const XClips = defineAsyncComponent(() => import('./clips.vue'));
|
||||||
const XLists = defineAsyncComponent(() => import('./lists.vue'));
|
const XLists = defineAsyncComponent(() => import('./lists.vue'));
|
||||||
const XPages = defineAsyncComponent(() => import('./pages.vue'));
|
const XPages = defineAsyncComponent(() => import('./pages.vue'));
|
||||||
|
const XFlashs = defineAsyncComponent(() => import('./flashs.vue'));
|
||||||
const XGallery = defineAsyncComponent(() => import('./gallery.vue'));
|
const XGallery = defineAsyncComponent(() => import('./gallery.vue'));
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
|
|
@ -103,6 +105,10 @@ const headerTabs = $computed(() => user ? [{
|
||||||
key: 'pages',
|
key: 'pages',
|
||||||
title: i18n.ts.pages,
|
title: i18n.ts.pages,
|
||||||
icon: 'ti ti-news',
|
icon: 'ti ti-news',
|
||||||
|
}, {
|
||||||
|
key: 'flashs',
|
||||||
|
title: 'Play',
|
||||||
|
icon: 'ti ti-player-play',
|
||||||
}, {
|
}, {
|
||||||
key: 'gallery',
|
key: 'gallery',
|
||||||
title: i18n.ts.gallery,
|
title: i18n.ts.gallery,
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,17 @@ export function getAbuseNoteMenu(note: misskey.entities.Note, text: string): Men
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getCopyNoteLinkMenu(note: misskey.entities.Note, text: string): MenuItem {
|
||||||
|
return {
|
||||||
|
icon: 'ti ti-link',
|
||||||
|
text,
|
||||||
|
action: (): void => {
|
||||||
|
copyToClipboard(`${url}/notes/${note.id}`);
|
||||||
|
os.success();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export function getNoteMenu(props: {
|
export function getNoteMenu(props: {
|
||||||
note: misskey.entities.Note;
|
note: misskey.entities.Note;
|
||||||
menuButton: Ref<HTMLElement>;
|
menuButton: Ref<HTMLElement>;
|
||||||
|
|
@ -280,11 +291,9 @@ export function getNoteMenu(props: {
|
||||||
icon: 'ti ti-copy',
|
icon: 'ti ti-copy',
|
||||||
text: i18n.ts.copyContent,
|
text: i18n.ts.copyContent,
|
||||||
action: copyContent,
|
action: copyContent,
|
||||||
}, {
|
}, getCopyNoteLinkMenu(appearNote, i18n.ts.copyLink)
|
||||||
icon: 'ti ti-link',
|
, (isRenote ? getCopyNoteLinkMenu(props.note, i18n.ts.copyLinkRenote) : undefined)
|
||||||
text: i18n.ts.copyLink,
|
, (appearNote.url || appearNote.uri) ? {
|
||||||
action: copyLink,
|
|
||||||
}, (appearNote.url || appearNote.uri) ? {
|
|
||||||
icon: 'ti ti-external-link',
|
icon: 'ti ti-external-link',
|
||||||
text: i18n.ts.showOnRemote,
|
text: i18n.ts.showOnRemote,
|
||||||
action: () => {
|
action: () => {
|
||||||
|
|
@ -388,11 +397,9 @@ export function getNoteMenu(props: {
|
||||||
icon: 'ti ti-copy',
|
icon: 'ti ti-copy',
|
||||||
text: i18n.ts.copyContent,
|
text: i18n.ts.copyContent,
|
||||||
action: copyContent,
|
action: copyContent,
|
||||||
}, {
|
}, getCopyNoteLinkMenu(appearNote, i18n.ts.copyLink)
|
||||||
icon: 'ti ti-link',
|
, (isRenote ? getCopyNoteLinkMenu(props.note, i18n.ts.copyLinkRenote) : undefined)
|
||||||
text: i18n.ts.copyLink,
|
, (appearNote.url || appearNote.uri) ? {
|
||||||
action: copyLink,
|
|
||||||
}, (appearNote.url || appearNote.uri) ? {
|
|
||||||
icon: 'ti ti-external-link',
|
icon: 'ti ti-external-link',
|
||||||
text: i18n.ts.showOnRemote,
|
text: i18n.ts.showOnRemote,
|
||||||
action: () => {
|
action: () => {
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,10 @@ export const defaultStore = markRaw(new Storage('base', {
|
||||||
where: 'deviceAccount',
|
where: 'deviceAccount',
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
showPreview: {
|
||||||
|
where: 'device',
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
statusbars: {
|
statusbars: {
|
||||||
where: 'deviceAccount',
|
where: 'deviceAccount',
|
||||||
default: [] as {
|
default: [] as {
|
||||||
|
|
|
||||||
|
|
@ -527,6 +527,13 @@ hr {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
._mfm_rainbow_fallback_ {
|
||||||
|
background-image: linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 165, 0) 17%, rgb(255, 255, 0) 33%, rgb(0, 255, 0) 50%, rgb(0, 255, 255) 67%, rgb(0, 0, 255) 83%, rgb(255, 0, 255) 100%);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
background-clip: text;
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes mfm-spin {
|
@keyframes mfm-spin {
|
||||||
0% { transform: rotate(0deg); }
|
0% { transform: rotate(0deg); }
|
||||||
100% { transform: rotate(360deg); }
|
100% { transform: rotate(360deg); }
|
||||||
|
|
|
||||||
|
|
@ -621,6 +621,7 @@ export type Endpoints = {
|
||||||
'users/lists/update': { req: { listId: UserList['id']; name: string; }; res: UserList; };
|
'users/lists/update': { req: { listId: UserList['id']; name: string; }; res: UserList; };
|
||||||
'users/notes': { req: { userId: User['id']; limit?: number; sinceId?: Note['id']; untilId?: Note['id']; sinceDate?: number; untilDate?: number; }; res: Note[]; };
|
'users/notes': { req: { userId: User['id']; limit?: number; sinceId?: Note['id']; untilId?: Note['id']; sinceDate?: number; untilDate?: number; }; res: Note[]; };
|
||||||
'users/pages': { req: TODO; res: TODO; };
|
'users/pages': { req: TODO; res: TODO; };
|
||||||
|
'users/flashs': { req: TODO; res: TODO; };
|
||||||
'users/recommendation': { req: TODO; res: TODO; };
|
'users/recommendation': { req: TODO; res: TODO; };
|
||||||
'users/relation': { req: TODO; res: TODO; };
|
'users/relation': { req: TODO; res: TODO; };
|
||||||
'users/report-abuse': { req: TODO; res: TODO; };
|
'users/report-abuse': { req: TODO; res: TODO; };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue