Compare commits

..

32 Commits

Author SHA1 Message Date
f1ef1d83d8 Merge branch 'develop' 2022-09-11 23:07:53 +09:00
b730f49652 Merge branch 'develop' 2022-09-10 22:48:17 +09:00
e07272b1de Merge branch 'develop' 2022-09-10 22:03:40 +09:00
9fcb205364 Merge branch 'develop' 2022-09-04 03:47:52 +09:00
a3862af515 Merge branch 'develop' 2022-08-24 17:21:20 +09:00
e8385487ed fix: backend note test (文字数オーバー) 2022-08-12 04:12:40 +09:00
f676bd069d Merge branch 'develop' 2022-08-12 03:57:46 +09:00
13ff53e3a5 Merge branch 'develop' 2022-07-19 17:28:25 +09:00
ab13bb419b Merge branch 'develop' 2022-07-17 18:35:27 +09:00
7ffc58ccd8 Merge branch 'develop' 2022-07-17 15:46:11 +09:00
58fbe015be Merge branch 'develop' 2022-06-18 18:25:27 +09:00
c2f4b08c1b Merge branch 'develop' 2022-06-17 01:47:04 +09:00
d9c04a1df3 Merge branch 'develop' 2022-06-17 00:03:25 +09:00
cfc1016ac7 Merge branch 'develop' 2022-06-16 19:05:27 +09:00
8624730752 Merge branch 'develop' 2022-06-16 18:58:56 +09:00
3e5feaee3d Merge branch 'develop' 2022-06-16 18:42:10 +09:00
d7e9ed7301 Merge remote-tracking branch 'origin/develop' 2022-06-16 04:52:03 +09:00
7ff4f3d30f Merge branch 'develop' 2022-06-16 00:59:03 +09:00
52c06b5b2a Merge branch 'develop' 2022-06-16 00:33:54 +09:00
ebcd23ba0c Merge branch 'develop' 2022-06-16 00:25:02 +09:00
7e24765ccf Merge branch 'develop' 2022-06-15 23:37:32 +09:00
03ac1c18a7 Merge branch 'develop' 2022-06-13 23:32:32 +09:00
4c1104241a Merge branch 'develop' 2022-06-13 23:24:24 +09:00
d304f94cdd Merge branch 'develop' 2022-06-13 23:18:02 +09:00
fbe2d7dc69 Merge branch 'develop' 2022-06-13 22:39:24 +09:00
b10be4ee89 Merge branch 'develop' 2022-06-13 22:12:12 +09:00
df5c410295 Merge branch 'develop' 2022-06-13 16:31:46 +09:00
c38c0bd6b0 Merge branch 'develop' 2022-06-11 20:37:28 +09:00
cab9229e45 update package.json3 2022-05-24 22:58:19 +09:00
2aa081423e update package.json2 2022-05-24 22:52:56 +09:00
b6357750b0 update package.json 2022-05-24 22:46:16 +09:00
70267e2a9f Merge branch 'develop' 2022-05-24 22:45:31 +09:00
9 changed files with 11 additions and 48 deletions

View File

@ -107,7 +107,6 @@ clickToShow: "クリックして表示"
sensitive: "閲覧注意" sensitive: "閲覧注意"
add: "追加" add: "追加"
reaction: "リアクション" reaction: "リアクション"
reactWithRenote: "ついでにRenoteする"
reactionSetting: "ピッカーに表示するリアクション" reactionSetting: "ピッカーに表示するリアクション"
reactionSettingDescription2: "ドラッグして並び替え、クリックして削除、+を押して追加します。" reactionSettingDescription2: "ドラッグして並び替え、クリックして削除、+を押して追加します。"
rememberNoteVisibility: "公開範囲を記憶する" rememberNoteVisibility: "公開範囲を記憶する"

View File

@ -837,8 +837,6 @@ emojiColor: "カラーコード"
colorPicker: "カラーピッカー" colorPicker: "カラーピッカー"
emojiApproval: "絵文字を登録" emojiApproval: "絵文字を登録"
deckOld: "旧デッキ" deckOld: "旧デッキ"
pakuruConfirm: "パクりますか?"
pakuru: "パクる"
_emailUnavailable: _emailUnavailable:

View File

@ -1,6 +1,6 @@
{ {
"name": "misskey", "name": "misskey",
"version": "12.119.0-simkey-v3", "version": "12.119.0-simkey-v2",
"codename": "indigo", "codename": "indigo",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -74,7 +74,6 @@
<button class="_button tab" :class="{ active: tab === 'unicode' }" @click="tab = 'unicode'"><i class="fas fa-leaf fa-fw"></i></button> <button class="_button tab" :class="{ active: tab === 'unicode' }" @click="tab = 'unicode'"><i class="fas fa-leaf fa-fw"></i></button>
<button class="_button tab" :class="{ active: tab === 'tags' }" @click="tab = 'tags'"><i class="fas fa-hashtag fa-fw"></i></button> <button class="_button tab" :class="{ active: tab === 'tags' }" @click="tab = 'tags'"><i class="fas fa-hashtag fa-fw"></i></button>
</div> </div>
<MkSwitch v-if="props.asReactionPicker" v-model="withRenote" class="withRenote">{{ i18n.ts.reactWithRenote }}</MkSwitch>
</div> </div>
</template> </template>
@ -91,7 +90,6 @@ import { deviceKind } from '@/scripts/device-kind';
import { emojiCategories, instance } from '@/instance'; import { emojiCategories, instance } from '@/instance';
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';
import { defaultStore } from '@/store'; import { defaultStore } from '@/store';
import MkSwitch from '@/components/form/switch.vue';
const props = withDefaults(defineProps<{ const props = withDefaults(defineProps<{
showPinned?: boolean; showPinned?: boolean;
@ -103,11 +101,10 @@ const props = withDefaults(defineProps<{
}); });
const emit = defineEmits<{ const emit = defineEmits<{
(ev: 'chosen', v: { reaction: string, withRenote: boolean } | string): void; (ev: 'chosen', v: string): void;
}>(); }>();
const search = ref<HTMLInputElement>(); const search = ref<HTMLInputElement>();
const withRenote = ref<boolean>(true);
const emojis = ref<HTMLDivElement>(); const emojis = ref<HTMLDivElement>();
const { const {
@ -281,7 +278,6 @@ function focus() {
function reset() { function reset() {
if (emojis.value) emojis.value.scrollTop = 0; if (emojis.value) emojis.value.scrollTop = 0;
q.value = ''; q.value = '';
withRenote.value = false; // 毎回Renoteをfalseに戻す
} }
function getKey(emoji: string | Misskey.entities.CustomEmoji | UnicodeEmojiDef): string { function getKey(emoji: string | Misskey.entities.CustomEmoji | UnicodeEmojiDef): string {
@ -298,7 +294,7 @@ function chosen(emoji: any, ev?: MouseEvent) {
} }
const key = getKey(emoji); const key = getKey(emoji);
emit('chosen', (props.asReactionPicker) ? { reaction: key, withRenote: withRenote.value } : key); emit('chosen', key);
// 最近使った絵文字更新 // 最近使った絵文字更新
if (!pinned.value.includes(key)) { if (!pinned.value.includes(key)) {
@ -456,10 +452,6 @@ defineExpose({
} }
} }
> .withRenote {
padding: 12px;
}
> .tabs { > .tabs {
display: flex; display: flex;
display: none; display: none;

View File

@ -51,8 +51,8 @@ const emit = defineEmits<{
const modal = ref<InstanceType<typeof MkModal>>(); const modal = ref<InstanceType<typeof MkModal>>();
const picker = ref<InstanceType<typeof MkEmojiPicker>>(); const picker = ref<InstanceType<typeof MkEmojiPicker>>();
function chosen(results: { reaction: string, withRenote: boolean }) { function chosen(emoji: any) {
emit('done', results); emit('done', emoji);
modal.value?.close(); modal.value?.close();
} }

View File

@ -207,17 +207,11 @@ function reply(viaKeyboard = false): void {
function react(viaKeyboard = false): void { function react(viaKeyboard = false): void {
pleaseLogin(); pleaseLogin();
blur(); blur();
reactionPicker.show(reactButton.value, results => { reactionPicker.show(reactButton.value, reaction => {
os.api('notes/reactions/create', { os.api('notes/reactions/create', {
noteId: appearNote.id, noteId: appearNote.id,
reaction: results.reaction, reaction: reaction,
}); });
if (results.withRenote) {
os.api('notes/create', {
renoteId: appearNote.id,
isRenote: true,
});
}
}, () => { }, () => {
focus(); focus();
}); });

View File

@ -6,6 +6,7 @@
<p><img :src="previewUrl" class="img" :alt="emojiName" /></p> <p><img :src="previewUrl" class="img" :alt="emojiName" /></p>
</FormSection> </FormSection>
<FormButton primary class="_formBlock" @click="uploadEmoji">{{ $ts.emojiApproval }}</FormButton> <FormButton primary class="_formBlock" @click="uploadEmoji">{{ $ts.emojiApproval }}</FormButton>
<!-- <FormButton primary class="_formBlock" @click="preview">{{ $ts.emojiGenerate }}</FormButton> -->
<FormSection> <FormSection>
<template #label>{{ $ts.settings }}</template> <template #label>{{ $ts.settings }}</template>
<FormInput v-model="emojiName" class="_formBlock"> <FormInput v-model="emojiName" class="_formBlock">

View File

@ -26,22 +26,6 @@ export function getNoteMenu(props: {
const appearNote = isRenote ? props.note.renote as misskey.entities.Note : props.note; const appearNote = isRenote ? props.note.renote as misskey.entities.Note : props.note;
function pakuru(): void {
os.confirm({
type: 'question',
text: i18n.ts.pakuruConfirm,
}).then(({ canceled }) => {
if (canceled) return;
const postData = {
text: appearNote.text,
cw: appearNote.cw ? appearNote.cw || '' : undefined,
localOnly: appearNote.localOnly,
visibility: appearNote.visibility,
}
os.api('notes/create', postData, undefined);
});
}
function del(): void { function del(): void {
os.confirm({ os.confirm({
type: 'warning', type: 'warning',
@ -221,11 +205,6 @@ export function getNoteMenu(props: {
action: unclip, action: unclip,
}, null] : [] }, null] : []
), ),
{
icon: 'fas fa-copy',
text: i18n.ts.pakuru,
action: pakuru,
},
{ {
icon: 'fas fa-copy', icon: 'fas fa-copy',
text: i18n.ts.copyContent, text: i18n.ts.copyContent,

View File

@ -4,7 +4,7 @@ import { popup } from '@/os';
class ReactionPicker { class ReactionPicker {
private src: Ref<HTMLElement | null> = ref(null); private src: Ref<HTMLElement | null> = ref(null);
private manualShowing = ref(false); private manualShowing = ref(false);
private onChosen?: ({ reaction: string, withRenote: boolean }) => void; private onChosen?: (reaction: string) => void;
private onClosed?: () => void; private onClosed?: () => void;
constructor() { constructor() {
@ -17,8 +17,8 @@ class ReactionPicker {
asReactionPicker: true, asReactionPicker: true,
manualShowing: this.manualShowing manualShowing: this.manualShowing
}, { }, {
done: results => { done: reaction => {
this.onChosen!({ reaction: results.reaction, withRenote: results.withRenote }); this.onChosen!(reaction);
}, },
close: () => { close: () => {
this.manualShowing.value = false; this.manualShowing.value = false;