Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Feb 21, 2021
2 parents d6c8b9b + 3c7a02a commit 3d68a09
Show file tree
Hide file tree
Showing 37 changed files with 546 additions and 209 deletions.
5 changes: 5 additions & 0 deletions locales/de-DE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,11 @@ editCode: "Code bearbeiten"
apply: "Anwenden"
receiveAnnouncementFromInstance: "E-Mail-Benachrichtigungen von dieser Instanz empfangen"
emailNotification: "E-Mail-Benachrichtigungen"
inChannelSearch: "In Kanal suchen"
useReactionPickerForContextMenu: "Reaktionsauswahl durch Rechtsklick öffnen"
jumpToSpecifiedDate: "Zu bestimmtem Datum springen"
showingPastTimeline: "Momentan wird eine alte Chronik angezeigt"
clear: "Zurückkehren"
_email:
_follow:
title: "Du hast einen neuen Follower"
Expand Down
5 changes: 5 additions & 0 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,11 @@ editCode: "Edit code"
apply: "Apply"
receiveAnnouncementFromInstance: "Receive Email notifications from this instance"
emailNotification: "Email notifications"
inChannelSearch: "Search in channel"
useReactionPickerForContextMenu: "Open reaction picker on right-click"
jumpToSpecifiedDate: "Jump to specific date"
showingPastTimeline: "Currently displaying an old timeline"
clear: "Return"
_email:
_follow:
title: "You've got a new follower"
Expand Down
5 changes: 5 additions & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,11 @@ apply: "適用"
receiveAnnouncementFromInstance: "インスタンスからのお知らせを受け取る"
emailNotification: "メール通知"
inChannelSearch: "チャンネル内検索"
useReactionPickerForContextMenu: "右クリックでリアクションピッカーを開く"
typingUsers: "{users}が入力中"
jumpToSpecifiedDate: "特定の日付にジャンプ"
showingPastTimeline: "過去のタイムラインを表示しています"
clear: "クリア"

_email:
_follow:
Expand Down
1 change: 1 addition & 0 deletions locales/ru-RU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ editCode: "Редактировать исходный текст"
apply: "Применить"
receiveAnnouncementFromInstance: "Получать оповещения с инстанса"
emailNotification: "Уведомления по электронной почте"
inChannelSearch: "Поиск по каналу"
_email:
_follow:
title: "Новый подписчик"
Expand Down
16 changes: 11 additions & 5 deletions locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ monthX: "{month}月"
yearX: "{year}年"
pages: "页面"
integration: "关联"
connectSerice: "已连接"
connectSerice: "连接"
disconnectSerice: "断开连接"
enableLocalTimeline: "启用本地时间线功能"
enableGlobalTimeline: "启用全局时间线"
Expand All @@ -321,7 +321,7 @@ proxyRemoteFiles: "代理远程文件"
proxyRemoteFilesDescription: "启用此设置后,由于超出存储容量而导致未保存被删除的远程文件将被本地代理,并且会生成缩略图。不会影响服务器的存储。"
driveCapacityPerLocalAccount: "每个用户的网盘空间"
driveCapacityPerRemoteAccount: "每个远程用户的网盘容量"
inMb: "以兆字节(Mbps)为单位"
inMb: "以兆字节(MegaByte)为单位"
iconUrl: "图标URL"
bannerUrl: "Banner URL"
basicInfo: "基本信息"
Expand Down Expand Up @@ -579,7 +579,7 @@ smtpPort: "端口"
smtpUser: "用户名"
smtpPass: "密码"
emptyToDisableSmtpAuth: "用户名和密码留空可以禁用SMTP验证"
smtpSecure: "在 SMTP 连接中使用隐式 SSL / TLS"
smtpSecure: "在 SMTP 连接中默认使用 SSL / TLS"
smtpSecureInfo: "使用STARTTLS时关闭。"
testEmail: "邮件发送测试"
wordMute: "文字屏蔽"
Expand Down Expand Up @@ -638,8 +638,8 @@ repliedCount: "回复数"
renotedCount: "转发数"
followingCount: "正在关注数量"
followersCount: "关注者数量"
sentReactionsCount: "发送反应数"
receivedReactionsCount: "收到反应数"
sentReactionsCount: "发送回应数"
receivedReactionsCount: "收到回应数"
pollVotesCount: "问卷调查的投票数"
pollVotedCount: "问卷调查的被投票数"
yes: ""
Expand Down Expand Up @@ -704,6 +704,12 @@ editCode: "编辑代码"
apply: "应用"
receiveAnnouncementFromInstance: "从实例接收通知"
emailNotification: "邮件通知"
inChannelSearch: "频道内搜索"
useReactionPickerForContextMenu: "单击右键打开回应工具栏"
typingUsers: "{users}正在输入"
jumpToSpecifiedDate: "跳转到特定日期"
showingPastTimeline: "显示过去的时间线"
clear: "清除"
_email:
_follow:
title: "你有新的关注者"
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo <syuilotan@yahoo.co.jp>",
"version": "12.70.0",
"version": "12.71.0",
"codename": "indigo",
"repository": {
"type": "git",
Expand Down Expand Up @@ -62,9 +62,9 @@
"@types/is-url": "1.2.28",
"@types/js-yaml": "4.0.0",
"@types/jsdom": "16.2.6",
"@types/jsonld": "1.5.2",
"@types/jsonld": "1.5.3",
"@types/katex": "0.11.0",
"@types/koa": "2.11.7",
"@types/koa": "2.13.0",
"@types/koa-bodyparser": "4.3.0",
"@types/koa-cors": "0.0.0",
"@types/koa-favicon": "2.0.19",
Expand All @@ -77,8 +77,8 @@
"@types/koa__router": "8.0.4",
"@types/markdown-it": "12.0.1",
"@types/matter-js": "0.14.10",
"@types/mocha": "8.2.0",
"@types/node": "14.14.25",
"@types/mocha": "8.2.1",
"@types/node": "14.14.31",
"@types/node-fetch": "2.5.8",
"@types/nodemailer": "6.4.0",
"@types/nprogress": "0.2.0",
Expand Down Expand Up @@ -110,32 +110,32 @@
"@typescript-eslint/parser": "4.14.2",
"@vue/compiler-sfc": "3.0.5",
"abort-controller": "3.0.0",
"apexcharts": "3.24.0",
"apexcharts": "3.25.0",
"autobind-decorator": "2.4.0",
"autosize": "4.0.2",
"autwh": "0.1.0",
"aws-sdk": "2.840.0",
"aws-sdk": "2.848.0",
"bcryptjs": "2.4.3",
"blurhash": "1.1.3",
"broadcast-channel": "3.4.1",
"bull": "3.20.1",
"cafy": "15.2.1",
"cbor": "6.0.1",
"cbor": "7.0.1",
"chalk": "4.1.0",
"chart.js": "2.9.4",
"cli-highlight": "2.1.10",
"commander": "4.1.1",
"content-disposition": "0.5.3",
"core-js": "3.8.3",
"core-js": "3.9.0",
"crc-32": "1.2.0",
"css-loader": "5.0.2",
"cssnano": "4.1.10",
"dateformat": "4.5.1",
"diskusage": "1.1.3",
"double-ended-queue": "2.1.0-0",
"escape-regexp": "0.0.1",
"eslint": "7.19.0",
"eslint-plugin-vue": "7.5.0",
"eslint": "7.20.0",
"eslint-plugin-vue": "7.6.0",
"eventemitter3": "4.0.7",
"feed": "4.2.2",
"fibers": "5.0.0",
Expand Down Expand Up @@ -163,7 +163,7 @@
"jsdom": "16.4.0",
"json5": "2.2.0",
"json5-loader": "4.0.1",
"jsonld": "3.3.0",
"jsonld": "4.0.1",
"jsrsasign": "8.0.20",
"katex": "0.12.0",
"koa": "2.13.1",
Expand Down Expand Up @@ -194,7 +194,7 @@
"parsimmon": "1.16.0",
"pg": "8.5.1",
"portscanner": "2.2.0",
"postcss": "8.2.5",
"postcss": "8.2.6",
"postcss-loader": "5.0.0",
"prismjs": "1.23.0",
"probe-image-size": "6.0.0",
Expand All @@ -218,7 +218,7 @@
"rimraf": "3.0.2",
"rndstr": "1.0.0",
"s-age": "1.1.2",
"sass": "1.32.6",
"sass": "1.32.8",
"sass-loader": "11.0.1",
"seedrandom": "3.0.5",
"sharp": "0.27.1",
Expand All @@ -234,11 +234,11 @@
"throttle-debounce": "3.0.1",
"tinycolor2": "1.4.2",
"tmp": "0.2.1",
"ts-loader": "8.0.16",
"ts-loader": "8.0.17",
"ts-node": "9.1.1",
"tslint": "6.1.3",
"tslint-sonarts": "1.9.0",
"typeorm": "0.2.30",
"typeorm": "0.2.31",
"typescript": "4.1.5",
"ulid": "2.3.0",
"url-loader": "4.1.1",
Expand All @@ -254,7 +254,7 @@
"vue-style-loader": "4.1.2",
"vuedraggable": "4.0.1",
"web-push": "3.4.4",
"webpack": "5.21.2",
"webpack": "5.23.0",
"webpack-cli": "4.5.0",
"websocket": "1.0.33",
"ws": "7.4.3",
Expand Down
8 changes: 7 additions & 1 deletion src/client/components/note-detailed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,13 @@ export default defineComponent({
};
if (isLink(e.target)) return;
if (window.getSelection().toString() !== '') return;
os.contextMenu(this.getMenu(), e).then(this.focus);
if (this.$store.state.useReactionPickerForContextMenu) {
e.preventDefault();
this.react();
} else {
os.contextMenu(this.getMenu(), e).then(this.focus);
}
},
menu(viaKeyboard = false) {
Expand Down
8 changes: 7 additions & 1 deletion src/client/components/note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,13 @@ export default defineComponent({
};
if (isLink(e.target)) return;
if (window.getSelection().toString() !== '') return;
os.contextMenu(this.getMenu(), e).then(this.focus);
if (this.$store.state.useReactionPickerForContextMenu) {
e.preventDefault();
this.react();
} else {
os.contextMenu(this.getMenu(), e).then(this.focus);
}
},
menu(viaKeyboard = false) {
Expand Down
11 changes: 6 additions & 5 deletions src/client/components/notes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
<MkError v-if="error" @retry="init()"/>

<div v-show="more && reversed" style="margin-bottom: var(--margin);">
<button class="_buttonPrimary" @click="fetchMoreFeature" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }">
<MkButton style="margin: 0 auto;" @click="fetchMoreFeature" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }">
<template v-if="!moreFetching">{{ $ts.loadMore }}</template>
<template v-if="moreFetching"><MkLoading inline/></template>
</button>
</MkButton>
</div>

<XList ref="notes" :items="notes" v-slot="{ item: note }" :direction="reversed ? 'up' : 'down'" :reversed="reversed">
<XNote :note="note" @update:note="updated(note, $event)" :key="note._featuredId_ || note._prId_ || note.id"/>
</XList>

<div v-show="more && !reversed" style="margin-top: var(--margin);">
<button class="_buttonPrimary" v-appear="$store.state.enableInfiniteScroll ? fetchMore : null" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }">
<MkButton style="margin: 0 auto;" v-appear="$store.state.enableInfiniteScroll ? fetchMore : null" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }">
<template v-if="!moreFetching">{{ $ts.loadMore }}</template>
<template v-if="moreFetching"><MkLoading inline/></template>
</button>
</MkButton>
</div>
</div>
</template>
Expand All @@ -32,10 +32,11 @@ import { defineComponent } from 'vue';
import paging from '@/scripts/paging';
import XNote from './note.vue';
import XList from './date-separated-list.vue';
import MkButton from '@/components/ui/button.vue';
export default defineComponent({
components: {
XNote, XList,
XNote, XList, MkButton,
},
mixins: [
Expand Down
8 changes: 8 additions & 0 deletions src/client/components/post-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ import * as os from '@/os';
import { selectFile } from '@/scripts/select-file';
import { notePostInterruptors, postFormActions } from '@/store';
import { isMobile } from '@/scripts/is-mobile';
import { throttle } from 'throttle-debounce';
export default defineComponent({
components: {
Expand Down Expand Up @@ -144,6 +145,11 @@ export default defineComponent({
quoteId: null,
recentHashtags: JSON.parse(localStorage.getItem('hashtags') || '[]'),
imeText: '',
typing: throttle(3000, () => {
if (this.channel) {
os.stream.send('typingOnChannel', { channel: this.channel.id });
}
}),
postFormActions,
faReply, faQuoteRight, faPaperPlane, faTimes, faUpload, faPollH, faGlobe, faHome, faUnlock, faEnvelope, faEyeSlash, faLaughSquint, faPlus, faPhotoVideo, faAt, faBiohazard, faPlug
};
Expand Down Expand Up @@ -434,10 +440,12 @@ export default defineComponent({
onKeydown(e: KeyboardEvent) {
if ((e.which === 10 || e.which === 13) && (e.ctrlKey || e.metaKey) && this.canPost) this.post();
if (e.which === 27) this.$emit('esc');
this.typing();
},
onCompositionUpdate(e: CompositionEvent) {
this.imeText = e.data;
this.typing();
},
onCompositionEnd(e: CompositionEvent) {
Expand Down
1 change: 1 addition & 0 deletions src/client/components/ui/modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default defineComponent({
// TODO: ResizeObserver無くしたい
new ResizeObserver((entries, observer) => {
const rect = this.src.getBoundingClientRect();
const width = popover.offsetWidth;
const height = popover.offsetHeight;
Expand Down
3 changes: 3 additions & 0 deletions src/client/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ import { reloadChannel } from '@/scripts/unison-reload';

console.info(`Misskey v${version}`);

// boot.jsのやつを解除
window.onerror = null;

if (_DEV_) {
console.warn('Development mode!!!');

Expand Down
10 changes: 10 additions & 0 deletions src/client/pages/messaging/messaging-room.form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
v-model="text"
ref="text"
@keypress="onKeypress"
@compositionupdate="onCompositionUpdate"
@paste="onPaste"
:placeholder="$ts.inputMessageHere"
></textarea>
Expand All @@ -29,6 +30,7 @@ import { formatTimeString } from '../../../misc/format-time-string';
import { selectFile } from '@/scripts/select-file';
import * as os from '@/os';
import { Autocomplete } from '@/scripts/autocomplete';
import { throttle } from 'throttle-debounce';
export default defineComponent({
props: {
Expand All @@ -46,6 +48,9 @@ export default defineComponent({
text: null,
file: null,
sending: false,
typing: throttle(3000, () => {
os.stream.send('typingOnMessaging', this.user ? { partner: this.user.id } : { group: this.group.id });
}),
faPaperPlane, faPhotoVideo, faLaughSquint
};
},
Expand Down Expand Up @@ -147,11 +152,16 @@ export default defineComponent({
},
onKeypress(e) {
this.typing();
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && this.canSend) {
this.send();
}
},
onCompositionUpdate() {
this.typing();
},
chooseFile(e) {
selectFile(e.currentTarget || e.target, this.$ts.selectFile, false).then(file => {
this.file = file;
Expand Down
Loading

0 comments on commit 3d68a09

Please sign in to comment.