Compare commits
84 Commits
sim-dev-co
...
sim-dev-re
Author | SHA1 | Date | |
---|---|---|---|
6238ba965b | |||
8489c3ca7b | |||
33871f3cb8 | |||
990fef5993 | |||
e5d56a7cfe | |||
779bd244a6 | |||
47edc18931 | |||
1e48d9e15b | |||
56d8f7f257 | |||
22102639a8 | |||
be011d3985 | |||
34e099984f | |||
25991cfdc1 | |||
f31ef70ce7 | |||
b77f7f5041 | |||
cc2d5480f3 | |||
8dd3fef0e2 | |||
6f328f2ccf | |||
668c403ece | |||
3f6691bd5e | |||
1b956af855 | |||
80c88e13ff | |||
ad9e6a4ec5 | |||
504f182448 | |||
fd5999378b | |||
8451436cb8 | |||
37628953c5 | |||
83a77f1064 | |||
99640a35a3 | |||
88cdbc2ad6 | |||
db10103d8e | |||
2795fe4579 | |||
54631026de | |||
80783199a9 | |||
6d557269c1 | |||
26b268588f | |||
a1af83c0ab | |||
d0d5068f72 | |||
8a1f3a4c0b | |||
338793d891 | |||
c82ce9233b | |||
4b48ba4e8c | |||
7115bd46ff | |||
e967d9ded3 | |||
f00ceedae4 | |||
df67836c1a | |||
9fd0e90850 | |||
42c4ea38cc | |||
df53968306 | |||
df530bb66d | |||
c52e30e8e0 | |||
5e6e1e237a | |||
943a1940e2 | |||
12913a16fd | |||
acb9244205 | |||
d04014f875 | |||
929e545514 | |||
942c802431 | |||
70d02cf1be | |||
f96c60c1a0 | |||
8accb78fa9 | |||
05203e2cf0 | |||
b6c9ab0c15 | |||
cdef5cd1ad | |||
ea7d4d323e | |||
17fff8c665 | |||
92977f303d | |||
8043409d38 | |||
37dc1c9a82 | |||
631091940b | |||
938fcb3e5e | |||
5e1d17dff2 | |||
449dc17df8 | |||
3e11011229 | |||
52d577c7dd | |||
18693fb380 | |||
f7e9725e59 | |||
9a4a534c92 | |||
b090ff9994 | |||
3d68a0988b | |||
d6c8b9b994 | |||
49e6c2ed75 | |||
e4bcdd7b4d | |||
7747ec5b6d |
@ -7,8 +7,16 @@
|
||||
|
||||
-->
|
||||
|
||||
## 12.102.1 (2022/01/27)
|
||||
### Bugfixes
|
||||
- チャットが表示できない問題を修正
|
||||
|
||||
## 12.102.0 (2022/01/27)
|
||||
|
||||
### NOTE
|
||||
アップデート後、一部カスタム絵文字が表示できなくなる場合があります。その場合、一旦絵文字管理ページから絵文字を一括エクスポートし、再度コントロールパネルから一括インポートすると直ります。
|
||||
⚠ 12.102.0以前にエクスポートされたzipとは互換性がありません。アップデートしてからエクスポートを行なってください。
|
||||
|
||||
### Changes
|
||||
- Room機能が削除されました
|
||||
- 後日別リポジトリとして復活予定です
|
||||
|
@ -220,7 +220,6 @@ currentPassword: "現在のパスワード"
|
||||
newPassword: "新しいパスワード"
|
||||
newPasswordRetype: "新しいパスワード(再入力)"
|
||||
attachFile: "ファイルを添付"
|
||||
attachVideoFile: "動画ファイルを添付"
|
||||
more: "もっと!"
|
||||
featured: "ハイライト"
|
||||
usernameOrUserId: "ユーザー名かユーザーID"
|
||||
|
@ -221,7 +221,6 @@ currentPassword: "現在のパスワード"
|
||||
newPassword: "新しいパスワード"
|
||||
newPasswordRetype: "新しいパスワード(再入力)"
|
||||
attachFile: "ファイルを添付"
|
||||
attachVideoFile: "動画ファイルを添付"
|
||||
more: "もっと!"
|
||||
featured: "ハイライト"
|
||||
usernameOrUserId: "ユーザー名かユーザーID"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "misskey",
|
||||
"version": "12.102.0-simkey",
|
||||
"version": "12.102.1-simkey",
|
||||
"codename": "indigo",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -11,8 +11,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@discordapp/twemoji": "13.1.0",
|
||||
"@ffmpeg/core": "0.10.0",
|
||||
"@ffmpeg/ffmpeg": "0.10.1",
|
||||
"@syuilo/aiscript": "0.11.1",
|
||||
"@types/dateformat": "3.0.1",
|
||||
"@types/escape-regexp": "0.0.1",
|
||||
|
@ -25,6 +25,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<div class="buttons right">
|
||||
<button><i class="fas fa-redo"></i></button>
|
||||
<template v-if="info && info.actions && !narrow">
|
||||
<template v-for="action in info.actions">
|
||||
<MkButton v-if="action.asFullButton" class="fullButton" primary @click.stop="action.handler"><i :class="action.icon" style="margin-right: 6px;"></i>{{ action.text }}</MkButton>
|
||||
|
@ -47,7 +47,6 @@
|
||||
<XNotePreview v-if="showPreview" class="preview" :text="text"/>
|
||||
<footer>
|
||||
<button v-tooltip="i18n.locale.attachFile" class="_button" @click="chooseFileFrom"><i class="fas fa-photo-video"></i></button>
|
||||
<button v-tooltip="i18n.locale.attachVideoFile" class="_button" @click="chooseFileFromEnc"><i class="far fa-file-video"></i></button>
|
||||
<button v-tooltip="i18n.locale.poll" class="_button" :class="{ active: poll }" @click="togglePoll"><i class="fas fa-poll-h"></i></button>
|
||||
<button v-tooltip="i18n.locale.useCw" class="_button" :class="{ active: useCw }" @click="useCw = !useCw"><i class="fas fa-eye-slash"></i></button>
|
||||
<button v-tooltip="i18n.locale.mention" class="_button" @click="insertMention"><i class="fas fa-at"></i></button>
|
||||
@ -82,7 +81,6 @@ import { Autocomplete } from '@/scripts/autocomplete';
|
||||
import * as os from '@/os';
|
||||
import { stream } from '@/stream';
|
||||
import { selectFiles } from '@/scripts/select-file';
|
||||
import { selectFilesEnc } from '@/scripts/select-file-enc';
|
||||
import { defaultStore, notePostInterruptors, postFormActions } from '@/store';
|
||||
import { throttle } from 'throttle-debounce';
|
||||
import MkInfo from '@/components/ui/info.vue';
|
||||
@ -104,7 +102,7 @@ const props = withDefaults(defineProps<{
|
||||
initialLocalOnly?: boolean;
|
||||
initialVisibleUsers?: misskey.entities.User[];
|
||||
initialNote?: misskey.entities.Note;
|
||||
share?: boolean;
|
||||
instant?: boolean;
|
||||
fixed?: boolean;
|
||||
autofocus?: boolean;
|
||||
}>(), {
|
||||
@ -351,14 +349,6 @@ function chooseFileFrom(ev) {
|
||||
});
|
||||
}
|
||||
|
||||
function chooseFileFromEnc(ev) {
|
||||
selectFilesEnc(ev.currentTarget || ev.target, i18n.locale.attachVideoFile).then(files_ => {
|
||||
for (const file of files_) {
|
||||
files.push(file);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function detachFile(id) {
|
||||
files = files.filter(x => x.id != id);
|
||||
}
|
||||
@ -651,7 +641,7 @@ onMounted(() => {
|
||||
|
||||
nextTick(() => {
|
||||
// 書きかけの投稿を復元
|
||||
if (!props.share && !props.mention && !props.specified) {
|
||||
if (!props.instant && !props.mention && !props.specified) {
|
||||
const draft = JSON.parse(localStorage.getItem('drafts') || '{}')[draftKey];
|
||||
if (draft) {
|
||||
text = draft.data.text;
|
||||
|
@ -182,6 +182,7 @@ function gravity() {
|
||||
function iLoveMisskey() {
|
||||
os.post({
|
||||
initialText: 'I $[jelly ❤] #Misskey',
|
||||
instant: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent, defineAsyncComponent } from 'vue';
|
||||
import insertTextAtCursor from 'insert-text-at-cursor';
|
||||
import * as autosize from 'autosize';
|
||||
import autosize from 'autosize';
|
||||
import { formatTimeString } from '@/scripts/format-time-string';
|
||||
import { selectFile } from '@/scripts/select-file';
|
||||
import * as os from '@/os';
|
||||
@ -76,7 +76,8 @@ export default defineComponent({
|
||||
autosize(this.$refs.text);
|
||||
|
||||
// TODO: detach when unmount
|
||||
new Autocomplete(this.$refs.text, this, { model: 'text' });
|
||||
// TODO
|
||||
//new Autocomplete(this.$refs.text, this, { model: 'text' });
|
||||
|
||||
// 書きかけの投稿を復元
|
||||
const draft = JSON.parse(localStorage.getItem('message_drafts') || '{}')[this.draftKey];
|
||||
|
@ -11,7 +11,7 @@
|
||||
<button v-show="existMoreMessages" ref="loadMore" class="more _button" :class="{ fetching: fetchingMoreMessages }" :disabled="fetchingMoreMessages" @click="fetchMoreMessages">
|
||||
<template v-if="fetchingMoreMessages"><i class="fas fa-spinner fa-pulse fa-fw"></i></template>{{ fetchingMoreMessages ? $ts.loading : $ts.loadMore }}
|
||||
</button>
|
||||
<XList v-slot="{ item: message }" class="messages" :items="messages" direction="up" reversed>
|
||||
<XList v-if="messages.length > 0" v-slot="{ item: message }" class="messages" :items="messages" direction="up" reversed>
|
||||
<XMessage :key="message.id" :message="message" :is-group="group != null"/>
|
||||
</XList>
|
||||
</div>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<XPostForm
|
||||
v-if="state === 'writing'"
|
||||
fixed
|
||||
:share="true"
|
||||
:instant="true"
|
||||
:initial-text="initialText"
|
||||
:initial-visibility="visibility"
|
||||
:initial-files="files"
|
||||
|
@ -1,155 +0,0 @@
|
||||
import * as os from '@/os';
|
||||
import { stream } from '@/stream';
|
||||
import { i18n } from '@/i18n';
|
||||
import { defaultStore } from '@/store';
|
||||
import { DriveFile } from 'misskey-js/built/entities';
|
||||
import { fs } from 'fs';
|
||||
import { createFFmpeg, fetchFile } from '@ffmpeg/ffmpeg';
|
||||
|
||||
|
||||
function select(src: any, label: string | null, multiple: boolean): Promise<DriveFile | DriveFile[]> {
|
||||
return new Promise((res, rej) => {
|
||||
|
||||
|
||||
const chooseFileFromPc = () => {
|
||||
const input = document.createElement('input');
|
||||
input.type = 'file';
|
||||
input.onchange = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const readFromBlobOrFile = (blob) => (
|
||||
console.log('start readfrombloborfile'),
|
||||
new Promise((resolve, reject) => {
|
||||
const reader = new FileReader();
|
||||
reader.onload = () => {
|
||||
resolve(reader.result);
|
||||
};
|
||||
reader.onerror = ({ target: { error: { code } } }) => {
|
||||
reject(os.alert({ type: 'error', text: 'file could not be read! ' + code }));
|
||||
};
|
||||
reader.readAsArrayBuffer(blob);
|
||||
}
|
||||
));
|
||||
|
||||
|
||||
|
||||
|
||||
const ffmpeg = createFFmpeg({ log: true });
|
||||
async function ffmpegconv() {
|
||||
os.toast('Start const ffmpegconv');
|
||||
console.log('Start const ffmpegconv');
|
||||
var infilename = Array.from(input.files[0].name);
|
||||
let video = null;
|
||||
var outfilename = infilename.replace(/\.[^/.]+$/, '') + '.mp4';
|
||||
os.toast('Start await beffile');
|
||||
//ここでストップ
|
||||
console.log('Start await beffile');
|
||||
const befFile = new Uint8Array(await readFromBlobOrFile(input.files[0]));
|
||||
|
||||
os.toast('Loading FFmpeg.wasm');
|
||||
console.log('Loading FFmpeg.wasm');
|
||||
if (!ffmpeg.isLoaded()) {
|
||||
os.toast('Loading FFmpeg.wasm-core');
|
||||
console.log('Loading FFmpeg.wasm-core');
|
||||
await ffmpeg.load();
|
||||
}
|
||||
os.toast('Set ffmpeg files');
|
||||
console.log('Set ffmpeg files');
|
||||
ffmpeg.FS('writeFile', infilename, await fetchFile(befFile));
|
||||
os.toast('Converting')
|
||||
await ffmpeg.run('-i', `video.avi`, '-c:v', 'copy', '-c:a', 'copy', `video.mp4`);
|
||||
os.toast('Converted')
|
||||
const aftFile = ffmpeg.FS('readFile', outfilename);
|
||||
os.toast('Uploading')
|
||||
video.value = URL.createObjectURL(new Blob([aftFile.buffer], { type: 'video/mp4' }));
|
||||
os.upload(video, defaultStore.state.uploadFolder).then(res).catch(e => { os.alert({ type: 'error', text: e }) });
|
||||
};
|
||||
|
||||
|
||||
//const promises = Array.from(input.files).map(file => os.upload(file, defaultStore.state.uploadFolder));
|
||||
|
||||
//Promise.all(promises).then(driveFiles => {
|
||||
// res(multiple ? driveFiles : driveFiles[0]);
|
||||
//}).catch(e => {
|
||||
// os.alert({
|
||||
// type: 'error',
|
||||
// text: e
|
||||
// });
|
||||
//});
|
||||
os.toast('Try use FFmpeg.wasm')
|
||||
ffmpegconv();
|
||||
|
||||
|
||||
|
||||
// 一応廃棄
|
||||
(window as any).__misskey_input_ref__ = null;
|
||||
};
|
||||
|
||||
// https://qiita.com/fukasawah/items/b9dc732d95d99551013d
|
||||
// iOS Safari で正常に動かす為のおまじない
|
||||
(window as any).__misskey_input_ref__ = input;
|
||||
|
||||
input.click();
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
const chooseFileFromDrive = () => {
|
||||
os.selectDriveFile(multiple).then(files => {
|
||||
res(files);
|
||||
});
|
||||
};
|
||||
|
||||
const chooseFileFromUrl = () => {
|
||||
os.inputText({
|
||||
title: i18n.locale.uploadFromUrl,
|
||||
type: 'url',
|
||||
placeholder: i18n.locale.uploadFromUrlDescription
|
||||
}).then(({ canceled, result: url }) => {
|
||||
if (canceled) return;
|
||||
|
||||
const marker = Math.random().toString(); // TODO: UUIDとか使う
|
||||
|
||||
const connection = stream.useChannel('main');
|
||||
connection.on('urlUploadFinished', data => {
|
||||
if (data.marker === marker) {
|
||||
res(multiple ? [data.file] : data.file);
|
||||
connection.dispose();
|
||||
}
|
||||
});
|
||||
|
||||
os.api('drive/files/upload-from-url', {
|
||||
url: url,
|
||||
folderId: defaultStore.state.uploadFolder,
|
||||
marker
|
||||
});
|
||||
|
||||
os.alert({
|
||||
title: i18n.locale.uploadFromUrlRequested,
|
||||
text: i18n.locale.uploadFromUrlMayTakeTime
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
os.popupMenu([label ? {
|
||||
text: label,
|
||||
type: 'label'
|
||||
} : undefined, {
|
||||
text: i18n.locale.upload,
|
||||
icon: 'fas fa-upload',
|
||||
action: chooseFileFromPc
|
||||
}], src);
|
||||
});
|
||||
}
|
||||
|
||||
export function selectFileEnc(src: any, label: string | null = null): Promise<DriveFile> {
|
||||
return select(src, label, false) as Promise<DriveFile>;
|
||||
}
|
||||
|
||||
export function selectFilesEnc(src: any, label: string | null = null): Promise<DriveFile[]> {
|
||||
return select(src, label, true) as Promise<DriveFile[]>;
|
||||
}
|
@ -130,21 +130,6 @@
|
||||
minimatch "^3.0.4"
|
||||
strip-json-comments "^3.1.1"
|
||||
|
||||
"@ffmpeg/core@0.10.0":
|
||||
version "0.10.0"
|
||||
resolved "https://registry.yarnpkg.com/@ffmpeg/core/-/core-0.10.0.tgz#f6a58361b22d7c23c6f7071b9fff6d572bc3f499"
|
||||
integrity sha512-qunWJl5PezpXEm31tb8Qu5z37B5KVA1VYZCpXchMhuAb3X9T7PuE3SlhOwphEoRhzaOa3lpofDfzihAUMFaVPQ==
|
||||
|
||||
"@ffmpeg/ffmpeg@0.10.1":
|
||||
version "0.10.1"
|
||||
resolved "https://registry.yarnpkg.com/@ffmpeg/ffmpeg/-/ffmpeg-0.10.1.tgz#3dacf3985de9c83a95fbf79fe709920cc009b00a"
|
||||
integrity sha512-ChQkH7Rh57hmVo1LhfQFibWX/xqneolJKSwItwZdKPcLZuKigtYAYDIvB55pDfP17VtR1R77SxgkB2/UApB+Og==
|
||||
dependencies:
|
||||
is-url "^1.2.4"
|
||||
node-fetch "^2.6.1"
|
||||
regenerator-runtime "^0.13.7"
|
||||
resolve-url "^0.2.1"
|
||||
|
||||
"@hapi/hoek@^9.0.0":
|
||||
version "9.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.2.0.tgz#f3933a44e365864f4dad5db94158106d511e8131"
|
||||
@ -3645,11 +3630,6 @@ is-unicode-supported@^0.1.0:
|
||||
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7"
|
||||
integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==
|
||||
|
||||
is-url@^1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/is-url/-/is-url-1.2.4.tgz#04a4df46d28c4cff3d73d01ff06abeb318a1aa52"
|
||||
integrity sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==
|
||||
|
||||
is-weakref@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.1.tgz#842dba4ec17fa9ac9850df2d6efbc1737274f2a2"
|
||||
@ -5185,11 +5165,6 @@ regenerator-runtime@^0.13.4:
|
||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55"
|
||||
integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==
|
||||
|
||||
regenerator-runtime@^0.13.7:
|
||||
version "0.13.9"
|
||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
|
||||
integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
|
||||
|
||||
regexpp@^3.2.0:
|
||||
version "3.2.0"
|
||||
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2"
|
||||
@ -5250,11 +5225,6 @@ resolve-from@^5.0.0:
|
||||
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69"
|
||||
integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==
|
||||
|
||||
resolve-url@^0.2.1:
|
||||
version "0.2.1"
|
||||
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
|
||||
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
|
||||
|
||||
resolve@^1.15.1, resolve@^1.20.0:
|
||||
version "1.20.0"
|
||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
|
||||
|
Reference in New Issue
Block a user