mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-11 21:29:13 +09:00
Merge branch 'master' of aya.github:syuilo/misskey
This commit is contained in:
commit
35dd6a5ac3
@ -93,7 +93,7 @@ common:
|
|||||||
widgets: "ウィジェット"
|
widgets: "ウィジェット"
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
hybrid: "ハイブリッド"
|
hybrid: "コミュニティ"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
notifications: "通知"
|
notifications: "通知"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
@ -643,7 +643,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
hybrid: "ハイブリッド"
|
hybrid: "コミュニティ"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
|
|
||||||
@ -967,7 +967,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
hybrid: "ハイブリッド"
|
hybrid: "コミュニティ"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
|
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<mk-avatar class="avatar" :user="message.user" target="_blank"/>
|
<mk-avatar class="avatar" :user="message.user" target="_blank"/>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="balloon" :data-no-text="message.text == null">
|
<div class="balloon" :data-no-text="message.text == null">
|
||||||
|
<p class="read" v-if="isMe && message.isRead">%i18n:@is-read%</p>
|
||||||
<button class="delete-button" v-if="isMe" title="%i18n:common.delete%">
|
<button class="delete-button" v-if="isMe" title="%i18n:common.delete%">
|
||||||
<img src="/assets/desktop/messaging/delete.png" alt="Delete"/>
|
<img src="/assets/desktop/messaging/delete.png" alt="Delete"/>
|
||||||
</button>
|
</button>
|
||||||
@ -22,7 +23,6 @@
|
|||||||
<div></div>
|
<div></div>
|
||||||
<mk-url-preview v-for="url in urls" :url="url" :key="url"/>
|
<mk-url-preview v-for="url in urls" :url="url" :key="url"/>
|
||||||
<footer>
|
<footer>
|
||||||
<span class="read" v-if="isMe && message.isRead">%i18n:@is-read%</span>
|
|
||||||
<mk-time :time="message.createdAt"/>
|
<mk-time :time="message.createdAt"/>
|
||||||
<template v-if="message.is_edited">%fa:pencil-alt%</template>
|
<template v-if="message.is_edited">%fa:pencil-alt%</template>
|
||||||
</footer>
|
</footer>
|
||||||
@ -120,6 +120,17 @@ root(isDark)
|
|||||||
height 16px
|
height 16px
|
||||||
cursor pointer
|
cursor pointer
|
||||||
|
|
||||||
|
> .read
|
||||||
|
user-select none
|
||||||
|
display block
|
||||||
|
position absolute
|
||||||
|
z-index 1
|
||||||
|
bottom -4px
|
||||||
|
left -12px
|
||||||
|
margin 0
|
||||||
|
color isDark ? rgba(#fff, 0.5) : rgba(#000, 0.5)
|
||||||
|
font-size 11px
|
||||||
|
|
||||||
> .content
|
> .content
|
||||||
|
|
||||||
> .is-deleted
|
> .is-deleted
|
||||||
@ -175,14 +186,11 @@ root(isDark)
|
|||||||
margin 8px 0
|
margin 8px 0
|
||||||
|
|
||||||
> footer
|
> footer
|
||||||
display flex
|
display block
|
||||||
margin 2px 0 0 0
|
margin 2px 0 0 0
|
||||||
font-size 11px
|
font-size 10px
|
||||||
color isDark ? rgba(#fff, 0.4) : rgba(#000, 0.4)
|
color isDark ? rgba(#fff, 0.4) : rgba(#000, 0.4)
|
||||||
|
|
||||||
> .read
|
|
||||||
margin 0 8px 0 0
|
|
||||||
|
|
||||||
> [data-fa]
|
> [data-fa]
|
||||||
margin-left 4px
|
margin-left 4px
|
||||||
|
|
||||||
@ -214,7 +222,7 @@ root(isDark)
|
|||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
> footer
|
> footer
|
||||||
justify-content left
|
text-align left
|
||||||
|
|
||||||
&[data-is-me]
|
&[data-is-me]
|
||||||
> .avatar
|
> .avatar
|
||||||
@ -248,7 +256,7 @@ root(isDark)
|
|||||||
color #fff !important
|
color #fff !important
|
||||||
|
|
||||||
> footer
|
> footer
|
||||||
justify-content right
|
text-align right
|
||||||
|
|
||||||
&[data-is-deleted]
|
&[data-is-deleted]
|
||||||
> .baloon
|
> .baloon
|
||||||
|
@ -9,10 +9,6 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any,
|
|||||||
const epName = typeof endpoint === 'string' ? endpoint : endpoint.name;
|
const epName = typeof endpoint === 'string' ? endpoint : endpoint.name;
|
||||||
const ep = endpoints.find(e => e.name === epName);
|
const ep = endpoints.find(e => e.name === epName);
|
||||||
|
|
||||||
if (ep.name.includes('.')) {
|
|
||||||
return rej('INVALID_ENDPOINT');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ep.secure && !isSecure) {
|
if (ep.secure && !isSecure) {
|
||||||
return rej('ACCESS_DENIED');
|
return rej('ACCESS_DENIED');
|
||||||
}
|
}
|
||||||
@ -21,6 +17,10 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any,
|
|||||||
return rej('SIGNIN_REQUIRED');
|
return rej('SIGNIN_REQUIRED');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ep.withCredential && user.isSuspended) {
|
||||||
|
return rej('YOUR_ACCOUNT_HAS_BEEN_SUSPENDED');
|
||||||
|
}
|
||||||
|
|
||||||
if (app && ep.kind) {
|
if (app && ep.kind) {
|
||||||
if (!app.permission.some(p => p === ep.kind)) {
|
if (!app.permission.some(p => p === ep.kind)) {
|
||||||
return rej('PERMISSION_DENIED');
|
return rej('PERMISSION_DENIED');
|
||||||
|
Loading…
Reference in New Issue
Block a user