Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
2ab8a5bc0a | |||
c222b9ae94 | |||
53a0f3c794 | |||
9ff349c548 | |||
0935bd4bd4 | |||
45bee7cc2f | |||
1c86a4bc26 |
@ -440,13 +440,11 @@ common/views/components/stream-indicator.vue:
|
|||||||
reconnecting: "再接続中"
|
reconnecting: "再接続中"
|
||||||
connected: "接続完了"
|
connected: "接続完了"
|
||||||
|
|
||||||
common/views/components/twitter-setting.vue:
|
common/views/components/integration-settings.vue:
|
||||||
description: "お使いのTwitterアカウントをお使いのMisskeyアカウントに接続しておくと、プロフィールでTwitterアカウント情報が表示されるようになったり、Twitterを用いた便利なサインインを利用できるようになります。"
|
title: "サービス連携"
|
||||||
connected-to: "次のTwitterアカウントに接続されています"
|
connect: "接続する"
|
||||||
detail: "詳細..."
|
|
||||||
reconnect: "再接続する"
|
|
||||||
connect: "Twitterと接続する"
|
|
||||||
disconnect: "切断する"
|
disconnect: "切断する"
|
||||||
|
connected-to: "次のアカウントに接続されています"
|
||||||
|
|
||||||
common/views/components/github-setting.vue:
|
common/views/components/github-setting.vue:
|
||||||
description: "お使いのGitHubアカウントをお使いのMisskeyアカウントに接続しておくと、プロフィールでGitHubアカウント情報が表示されるようになったり、GitHubを用いた便利なサインインを利用できるようになります。"
|
description: "お使いのGitHubアカウントをお使いのMisskeyアカウントに接続しておくと、プロフィールでGitHubアカウント情報が表示されるようになったり、GitHubを用いた便利なサインインを利用できるようになります。"
|
||||||
@ -499,6 +497,7 @@ common/views/components/profile-editor.vue:
|
|||||||
account: "アカウント"
|
account: "アカウント"
|
||||||
location: "場所"
|
location: "場所"
|
||||||
description: "自己紹介"
|
description: "自己紹介"
|
||||||
|
language: "言語"
|
||||||
birthday: "誕生日"
|
birthday: "誕生日"
|
||||||
avatar: "アイコン"
|
avatar: "アイコン"
|
||||||
banner: "バナー"
|
banner: "バナー"
|
||||||
@ -1582,18 +1581,6 @@ mobile/views/pages/settings.vue:
|
|||||||
disable-via-mobile: "「モバイルからの投稿」フラグを付けない"
|
disable-via-mobile: "「モバイルからの投稿」フラグを付けない"
|
||||||
load-raw-images: "添付された画像を高画質で表示する"
|
load-raw-images: "添付された画像を高画質で表示する"
|
||||||
load-remote-media: "リモートサーバーのメディアを表示する"
|
load-remote-media: "リモートサーバーのメディアを表示する"
|
||||||
twitter: "Twitter連携"
|
|
||||||
twitter-connect: "Twitterアカウントに接続する"
|
|
||||||
twitter-reconnect: "再接続する"
|
|
||||||
twitter-disconnect: "切断する"
|
|
||||||
github: "GitHub連携"
|
|
||||||
github-connect: "GitHubアカウントに接続する"
|
|
||||||
github-reconnect: "再接続する"
|
|
||||||
github-disconnect: "切断する"
|
|
||||||
discord: "Discord連携"
|
|
||||||
discord-connect: "Discordアカウントに接続する"
|
|
||||||
discord-reconnect: "再接続する"
|
|
||||||
discord-disconnect: "切断する"
|
|
||||||
update: "Misskey Update"
|
update: "Misskey Update"
|
||||||
version: "バージョン:"
|
version: "バージョン:"
|
||||||
latest-version: "最新のバージョン:"
|
latest-version: "最新のバージョン:"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "10.60.3",
|
"version": "10.60.4",
|
||||||
"clientVersion": "2.0.12394",
|
"clientVersion": "2.0.12401",
|
||||||
"codename": "nighthike",
|
"codename": "nighthike",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
@ -156,6 +156,7 @@
|
|||||||
"koa-send": "5.0.0",
|
"koa-send": "5.0.0",
|
||||||
"koa-slow": "2.1.0",
|
"koa-slow": "2.1.0",
|
||||||
"koa-views": "6.1.4",
|
"koa-views": "6.1.4",
|
||||||
|
"langmap": "0.0.16",
|
||||||
"loader-utils": "1.1.0",
|
"loader-utils": "1.1.0",
|
||||||
"minio": "7.0.1",
|
"minio": "7.0.1",
|
||||||
"mkdirp": "0.5.1",
|
"mkdirp": "0.5.1",
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="mk-discord-setting">
|
|
||||||
<p>{{ $t('description') }}</p>
|
|
||||||
<p class="account" v-if="$store.state.i.discord" :title="`Discord ID: ${$store.state.i.discord.id}`">{{ $t('connected-to') }}: <a :href="`https://discordapp.com/users/${$store.state.i.discord.id}`" target="_blank">@{{ $store.state.i.discord.username }}#{{ $store.state.i.discord.discriminator }}</a></p>
|
|
||||||
<p>
|
|
||||||
<a :href="`${apiUrl}/connect/discord`" target="_blank" @click.prevent="connect">{{ $store.state.i.discord ? this.$t('reconnect') : this.$t('connect') }}</a>
|
|
||||||
<span v-if="$store.state.i.discord"> or </span>
|
|
||||||
<a :href="`${apiUrl}/disconnect/discord`" target="_blank" v-if="$store.state.i.discord" @click.prevent="disconnect">{{ $t('disconnect') }}</a>
|
|
||||||
</p>
|
|
||||||
<p class="id" v-if="$store.state.i.discord">Discord ID: {{ $store.state.i.discord.id }}</p>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
import Vue from 'vue';
|
|
||||||
import i18n from '../../../i18n';
|
|
||||||
import { apiUrl } from '../../../config';
|
|
||||||
|
|
||||||
export default Vue.extend({
|
|
||||||
i18n: i18n('common/views/components/discord-setting.vue'),
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
form: null,
|
|
||||||
apiUrl
|
|
||||||
};
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.$watch('$store.state.i', () => {
|
|
||||||
if (this.$store.state.i.discord && this.form)
|
|
||||||
this.form.close();
|
|
||||||
}, {
|
|
||||||
deep: true
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
connect() {
|
|
||||||
this.form = window.open(apiUrl + '/connect/discord',
|
|
||||||
'discord_connect_window',
|
|
||||||
'height=570, width=520');
|
|
||||||
},
|
|
||||||
|
|
||||||
disconnect() {
|
|
||||||
window.open(apiUrl + '/disconnect/discord',
|
|
||||||
'discord_disconnect_window',
|
|
||||||
'height=570, width=520');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
|
||||||
.mk-discord-setting
|
|
||||||
.account
|
|
||||||
border solid 1px #e1e8ed
|
|
||||||
border-radius 4px
|
|
||||||
padding 16px
|
|
||||||
|
|
||||||
a
|
|
||||||
font-weight bold
|
|
||||||
color inherit
|
|
||||||
|
|
||||||
.id
|
|
||||||
color #8899a6
|
|
||||||
</style>
|
|
@ -1,64 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="mk-github-setting">
|
|
||||||
<p>{{ $t('description') }}</p>
|
|
||||||
<p class="account" v-if="$store.state.i.github" :title="`GitHub ID: ${$store.state.i.github.id}`">{{ $t('connected-to') }}: <a :href="`https://github.com/${$store.state.i.github.login}`" target="_blank">@{{ $store.state.i.github.login }}</a></p>
|
|
||||||
<p>
|
|
||||||
<a :href="`${apiUrl}/connect/github`" target="_blank" @click.prevent="connect">{{ $store.state.i.github ? this.$t('reconnect') : this.$t('connect') }}</a>
|
|
||||||
<span v-if="$store.state.i.github"> or </span>
|
|
||||||
<a :href="`${apiUrl}/disconnect/github`" target="_blank" v-if="$store.state.i.github" @click.prevent="disconnect">{{ $t('disconnect') }}</a>
|
|
||||||
</p>
|
|
||||||
<p class="id" v-if="$store.state.i.github">GitHub ID: {{ $store.state.i.github.id }}</p>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
import Vue from 'vue';
|
|
||||||
import i18n from '../../../i18n';
|
|
||||||
import { apiUrl } from '../../../config';
|
|
||||||
|
|
||||||
export default Vue.extend({
|
|
||||||
i18n: i18n('common/views/components/github-setting.vue'),
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
form: null,
|
|
||||||
apiUrl
|
|
||||||
};
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.$watch('$store.state.i', () => {
|
|
||||||
if (this.$store.state.i.github && this.form)
|
|
||||||
this.form.close();
|
|
||||||
}, {
|
|
||||||
deep: true
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
connect() {
|
|
||||||
this.form = window.open(apiUrl + '/connect/github',
|
|
||||||
'github_connect_window',
|
|
||||||
'height=570, width=520');
|
|
||||||
},
|
|
||||||
|
|
||||||
disconnect() {
|
|
||||||
window.open(apiUrl + '/disconnect/github',
|
|
||||||
'github_disconnect_window',
|
|
||||||
'height=570, width=520');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
|
||||||
.mk-github-setting
|
|
||||||
.account
|
|
||||||
border solid 1px #e1e8ed
|
|
||||||
border-radius 4px
|
|
||||||
padding 16px
|
|
||||||
|
|
||||||
a
|
|
||||||
font-weight bold
|
|
||||||
color inherit
|
|
||||||
|
|
||||||
.id
|
|
||||||
color #8899a6
|
|
||||||
</style>
|
|
@ -0,0 +1,96 @@
|
|||||||
|
<template>
|
||||||
|
<ui-card>
|
||||||
|
<div slot="title"><fa icon="share-alt"/> {{ $t('title') }}</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<header><fa :icon="['fab', 'twitter']"/> Twitter</header>
|
||||||
|
<p v-if="$store.state.i.twitter">{{ $t('connected-to') }}: <a :href="`https://twitter.com/${$store.state.i.twitter.screenName}`" target="_blank">@{{ $store.state.i.twitter.screenName }}</a></p>
|
||||||
|
<ui-button v-if="$store.state.i.twitter" @click="disconnectTwitter">{{ $t('disconnect') }}</ui-button>
|
||||||
|
<ui-button v-else @click="connectTwitter">{{ $t('connect') }}</ui-button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<header><fa :icon="['fab', 'discord']"/> Discord</header>
|
||||||
|
<p v-if="$store.state.i.discord">{{ $t('connected-to') }}: <a :href="`https://discord.com/${$store.state.i.discord.screenName}`" target="_blank">@{{ $store.state.i.discord.screenName }}</a></p>
|
||||||
|
<ui-button v-if="$store.state.i.discord" @click="disconnectDiscord">{{ $t('disconnect') }}</ui-button>
|
||||||
|
<ui-button v-else @click="connectDiscord">{{ $t('connect') }}</ui-button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<header><fa :icon="['fab', 'github']"/> GitHub</header>
|
||||||
|
<p v-if="$store.state.i.github">{{ $t('connected-to') }}: <a :href="`https://github.com/${$store.state.i.github.screenName}`" target="_blank">@{{ $store.state.i.github.screenName }}</a></p>
|
||||||
|
<ui-button v-if="$store.state.i.github" @click="disconnectGithub">{{ $t('disconnect') }}</ui-button>
|
||||||
|
<ui-button v-else @click="connectGithub">{{ $t('connect') }}</ui-button>
|
||||||
|
</section>
|
||||||
|
</ui-card>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import Vue from 'vue';
|
||||||
|
import i18n from '../../../i18n';
|
||||||
|
import { apiUrl } from '../../../config';
|
||||||
|
|
||||||
|
export default Vue.extend({
|
||||||
|
i18n: i18n('common/views/components/integration-settings.vue'),
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
apiUrl,
|
||||||
|
twitterForm: null,
|
||||||
|
discordForm: null,
|
||||||
|
githubForm: null,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
this.$watch('$store.state.i', () => {
|
||||||
|
if (this.$store.state.i.twitter) {
|
||||||
|
if (this.twitterForm) this.twitterForm.close();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
deep: true
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
connectTwitter() {
|
||||||
|
this.twitterForm = window.open(apiUrl + '/connect/twitter',
|
||||||
|
'twitter_connect_window',
|
||||||
|
'height=570, width=520');
|
||||||
|
},
|
||||||
|
|
||||||
|
disconnectTwitter() {
|
||||||
|
window.open(apiUrl + '/disconnect/twitter',
|
||||||
|
'twitter_disconnect_window',
|
||||||
|
'height=570, width=520');
|
||||||
|
},
|
||||||
|
|
||||||
|
connectDiscord() {
|
||||||
|
this.discordForm = window.open(apiUrl + '/connect/discord',
|
||||||
|
'discord_connect_window',
|
||||||
|
'height=570, width=520');
|
||||||
|
},
|
||||||
|
|
||||||
|
disconnectDiscord() {
|
||||||
|
window.open(apiUrl + '/disconnect/discord',
|
||||||
|
'discord_disconnect_window',
|
||||||
|
'height=570, width=520');
|
||||||
|
},
|
||||||
|
|
||||||
|
connectGithub() {
|
||||||
|
this.githubForm = window.open(apiUrl + '/connect/github',
|
||||||
|
'github_connect_window',
|
||||||
|
'height=570, width=520');
|
||||||
|
},
|
||||||
|
|
||||||
|
disconnectGithub() {
|
||||||
|
window.open(apiUrl + '/disconnect/github',
|
||||||
|
'github_disconnect_window',
|
||||||
|
'height=570, width=520');
|
||||||
|
},
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
</style>
|
@ -32,6 +32,12 @@
|
|||||||
<span>{{ $t('description') }}</span>
|
<span>{{ $t('description') }}</span>
|
||||||
</ui-textarea>
|
</ui-textarea>
|
||||||
|
|
||||||
|
<ui-select v-model="lang">
|
||||||
|
<span slot="label">{{ $t('language') }}</span>
|
||||||
|
<span slot="icon"><fa icon="language"/></span>
|
||||||
|
<option v-for="lang in unique(Object.values(langmap).map(x => x.nativeName)).map(name => Object.keys(langmap).find(k => langmap[k].nativeName == name))" :value="lang" :key="lang">{{ langmap[lang].nativeName }}</option>
|
||||||
|
</ui-select>
|
||||||
|
|
||||||
<ui-input type="file" @change="onAvatarChange">
|
<ui-input type="file" @change="onAvatarChange">
|
||||||
<span>{{ $t('avatar') }}</span>
|
<span>{{ $t('avatar') }}</span>
|
||||||
<span slot="icon"><fa icon="image"/></span>
|
<span slot="icon"><fa icon="image"/></span>
|
||||||
@ -87,12 +93,16 @@ import Vue from 'vue';
|
|||||||
import i18n from '../../../i18n';
|
import i18n from '../../../i18n';
|
||||||
import { apiUrl, host } from '../../../config';
|
import { apiUrl, host } from '../../../config';
|
||||||
import { toUnicode } from 'punycode';
|
import { toUnicode } from 'punycode';
|
||||||
|
import langmap from 'langmap';
|
||||||
|
import { unique } from '../../../../../prelude/array';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
i18n: i18n('common/views/components/profile-editor.vue'),
|
i18n: i18n('common/views/components/profile-editor.vue'),
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
unique,
|
||||||
|
langmap,
|
||||||
host: toUnicode(host),
|
host: toUnicode(host),
|
||||||
enableEmail: false,
|
enableEmail: false,
|
||||||
email: null,
|
email: null,
|
||||||
@ -100,6 +110,7 @@ export default Vue.extend({
|
|||||||
username: null,
|
username: null,
|
||||||
location: null,
|
location: null,
|
||||||
description: null,
|
description: null,
|
||||||
|
lang: null,
|
||||||
birthday: null,
|
birthday: null,
|
||||||
avatarId: null,
|
avatarId: null,
|
||||||
bannerId: null,
|
bannerId: null,
|
||||||
@ -137,6 +148,7 @@ export default Vue.extend({
|
|||||||
this.username = this.$store.state.i.username;
|
this.username = this.$store.state.i.username;
|
||||||
this.location = this.$store.state.i.profile.location;
|
this.location = this.$store.state.i.profile.location;
|
||||||
this.description = this.$store.state.i.description;
|
this.description = this.$store.state.i.description;
|
||||||
|
this.lang = this.$store.state.i.lang;
|
||||||
this.birthday = this.$store.state.i.profile.birthday;
|
this.birthday = this.$store.state.i.profile.birthday;
|
||||||
this.avatarId = this.$store.state.i.avatarId;
|
this.avatarId = this.$store.state.i.avatarId;
|
||||||
this.bannerId = this.$store.state.i.bannerId;
|
this.bannerId = this.$store.state.i.bannerId;
|
||||||
@ -198,6 +210,7 @@ export default Vue.extend({
|
|||||||
name: this.name || null,
|
name: this.name || null,
|
||||||
location: this.location || null,
|
location: this.location || null,
|
||||||
description: this.description || null,
|
description: this.description || null,
|
||||||
|
lang: this.lang,
|
||||||
birthday: this.birthday || null,
|
birthday: this.birthday || null,
|
||||||
avatarId: this.avatarId || undefined,
|
avatarId: this.avatarId || undefined,
|
||||||
bannerId: this.bannerId || undefined,
|
bannerId: this.bannerId || undefined,
|
||||||
|
@ -1,65 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="mk-twitter-setting">
|
|
||||||
<p>{{ $t('description') }}</p>
|
|
||||||
<p class="account" v-if="$store.state.i.twitter" :title="`Twitter ID: ${$store.state.i.twitter.userId}`">{{ $t('connected-to') }}: <a :href="`https://twitter.com/${$store.state.i.twitter.screenName}`" target="_blank">@{{ $store.state.i.twitter.screenName }}</a></p>
|
|
||||||
<p>
|
|
||||||
<a :href="`${apiUrl}/connect/twitter`" target="_blank" @click.prevent="connect">{{ $store.state.i.twitter ? this.$t('reconnect') : this.$t('connect') }}</a>
|
|
||||||
<span v-if="$store.state.i.twitter"> or </span>
|
|
||||||
<a :href="`${apiUrl}/disconnect/twitter`" target="_blank" v-if="$store.state.i.twitter" @click.prevent="disconnect">{{ $t('disconnect') }}</a>
|
|
||||||
</p>
|
|
||||||
<p class="id" v-if="$store.state.i.twitter">Twitter ID: {{ $store.state.i.twitter.userId }}</p>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
import Vue from 'vue';
|
|
||||||
import i18n from '../../../i18n';
|
|
||||||
import { apiUrl } from '../../../config';
|
|
||||||
|
|
||||||
export default Vue.extend({
|
|
||||||
i18n: i18n('common/views/components/twitter-setting.vue'),
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
form: null,
|
|
||||||
apiUrl
|
|
||||||
};
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.$watch('$store.state.i', () => {
|
|
||||||
if (this.$store.state.i.twitter) {
|
|
||||||
if (this.form) this.form.close();
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
deep: true
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
connect() {
|
|
||||||
this.form = window.open(apiUrl + '/connect/twitter',
|
|
||||||
'twitter_connect_window',
|
|
||||||
'height=570, width=520');
|
|
||||||
},
|
|
||||||
|
|
||||||
disconnect() {
|
|
||||||
window.open(apiUrl + '/disconnect/twitter',
|
|
||||||
'twitter_disconnect_window',
|
|
||||||
'height=570, width=520');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
|
||||||
.mk-twitter-setting
|
|
||||||
.account
|
|
||||||
border solid 1px #e1e8ed
|
|
||||||
border-radius 4px
|
|
||||||
padding 16px
|
|
||||||
|
|
||||||
a
|
|
||||||
font-weight bold
|
|
||||||
color inherit
|
|
||||||
|
|
||||||
.id
|
|
||||||
color #8899a6
|
|
||||||
</style>
|
|
@ -16,27 +16,7 @@
|
|||||||
<div class="pages">
|
<div class="pages">
|
||||||
<div class="profile" v-show="page == 'profile'">
|
<div class="profile" v-show="page == 'profile'">
|
||||||
<x-profile-editor/>
|
<x-profile-editor/>
|
||||||
|
<x-integration-settings/>
|
||||||
<ui-card>
|
|
||||||
<div slot="title"><fa :icon="['fab', 'twitter']"/> {{ $t('twitter') }}</div>
|
|
||||||
<section>
|
|
||||||
<x-twitter-setting/>
|
|
||||||
</section>
|
|
||||||
</ui-card>
|
|
||||||
|
|
||||||
<ui-card>
|
|
||||||
<div slot="title"><fa :icon="['fab', 'github']"/> {{ $t('github') }}</div>
|
|
||||||
<section>
|
|
||||||
<x-github-setting/>
|
|
||||||
</section>
|
|
||||||
</ui-card>
|
|
||||||
|
|
||||||
<ui-card>
|
|
||||||
<div slot="title"><fa :icon="['fab', 'discord']"/> {{ $t('discord') }}</div>
|
|
||||||
<section>
|
|
||||||
<x-discord-setting/>
|
|
||||||
</section>
|
|
||||||
</ui-card>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ui-card class="theme" v-show="page == 'theme'">
|
<ui-card class="theme" v-show="page == 'theme'">
|
||||||
@ -169,7 +149,7 @@
|
|||||||
</section>
|
</section>
|
||||||
</ui-card>
|
</ui-card>
|
||||||
|
|
||||||
<x-language-settings/>
|
<x-language-settings v-show="page == 'web'"/>
|
||||||
|
|
||||||
<ui-card class="web" v-show="page == 'web'">
|
<ui-card class="web" v-show="page == 'web'">
|
||||||
<div slot="title"><fa :icon="['far', 'trash-alt']"/> {{ $t('cache') }}</div>
|
<div slot="title"><fa :icon="['far', 'trash-alt']"/> {{ $t('cache') }}</div>
|
||||||
@ -292,9 +272,7 @@ import X2fa from './settings.2fa.vue';
|
|||||||
import XApps from './settings.apps.vue';
|
import XApps from './settings.apps.vue';
|
||||||
import XSignins from './settings.signins.vue';
|
import XSignins from './settings.signins.vue';
|
||||||
import XTags from './settings.tags.vue';
|
import XTags from './settings.tags.vue';
|
||||||
import XTwitterSetting from '../../../common/views/components/twitter-setting.vue';
|
import XIntegrationSettings from '../../../common/views/components/integration-settings.vue';
|
||||||
import XGithubSetting from '../../../common/views/components/github-setting.vue';
|
|
||||||
import XDiscordSetting from '../../../common/views/components/discord-setting.vue';
|
|
||||||
import XTheme from '../../../common/views/components/theme.vue';
|
import XTheme from '../../../common/views/components/theme.vue';
|
||||||
import XDriveSettings from '../../../common/views/components/drive-settings.vue';
|
import XDriveSettings from '../../../common/views/components/drive-settings.vue';
|
||||||
import XMuteAndBlock from '../../../common/views/components/mute-and-block.vue';
|
import XMuteAndBlock from '../../../common/views/components/mute-and-block.vue';
|
||||||
@ -313,9 +291,7 @@ export default Vue.extend({
|
|||||||
XApps,
|
XApps,
|
||||||
XSignins,
|
XSignins,
|
||||||
XTags,
|
XTags,
|
||||||
XTwitterSetting,
|
XIntegrationSettings,
|
||||||
XGithubSetting,
|
|
||||||
XDiscordSetting,
|
|
||||||
XTheme,
|
XTheme,
|
||||||
XDriveSettings,
|
XDriveSettings,
|
||||||
XMuteAndBlock,
|
XMuteAndBlock,
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="lkafjvabenanajk17kwqpsatoushincb">
|
<a class="lkafjvabenanajk17kwqpsatoushincb" :href="`https://discordapp.com/users/${user.discord.id}`" target="_blank">
|
||||||
<span><fa :icon="['fab', 'discord']"/><a :href="`https://discordapp.com/users/${user.discord.id}`" target="_blank">@{{ user.discord.username }}#{{ user.discord.discriminator }}</a></span>
|
<div>
|
||||||
</div>
|
<span><fa :icon="['fab', 'discord']"/>@{{ user.discord.username }}#{{ user.discord.discriminator }}</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@ -14,13 +16,13 @@ export default Vue.extend({
|
|||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.lkafjvabenanajk17kwqpsatoushincb
|
.lkafjvabenanajk17kwqpsatoushincb
|
||||||
padding 32px
|
margin-left 8px
|
||||||
background #7289da
|
|
||||||
border-radius 6px
|
|
||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
a
|
div
|
||||||
margin-left 8px
|
padding 32px
|
||||||
|
background #7289da
|
||||||
|
border-radius 6px
|
||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="aqooishiizumijmihokohinatamihoaz">
|
<a class="aqooishiizumijmihokohinatamihoaz" :href="`https://github.com/${user.github.login}`" target="_blank">
|
||||||
<span><fa :icon="['fab', 'github']"/><a :href="`https://github.com/${user.github.login}`" target="_blank">@{{ user.github.login }}</a></span>
|
<div>
|
||||||
</div>
|
<span><fa :icon="['fab', 'github']"/>@{{ user.github.login }}</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@ -14,13 +16,13 @@ export default Vue.extend({
|
|||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.aqooishiizumijmihokohinatamihoaz
|
.aqooishiizumijmihokohinatamihoaz
|
||||||
padding 32px
|
margin-left 8px
|
||||||
background #171515
|
|
||||||
border-radius 6px
|
|
||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
a
|
div
|
||||||
margin-left 8px
|
padding 32px
|
||||||
|
background #171515
|
||||||
|
border-radius 6px
|
||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="adsvaidqfznoartcbplullnejvxjphcn">
|
<a class="adsvaidqfznoartcbplullnejvxjphcn" :href="`https://twitter.com/${user.twitter.screenName}`" target="_blank">
|
||||||
<span><fa :icon="['fab', 'twitter']"/><a :href="`https://twitter.com/${user.twitter.screenName}`" target="_blank">@{{ user.twitter.screenName }}</a></span>
|
<div>
|
||||||
</div>
|
<span><fa :icon="['fab', 'twitter']"/>@{{ user.twitter.screenName }}</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@ -14,13 +16,13 @@ export default Vue.extend({
|
|||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.adsvaidqfznoartcbplullnejvxjphcn
|
.adsvaidqfznoartcbplullnejvxjphcn
|
||||||
padding 32px
|
margin-left 8px
|
||||||
background #1a94f2
|
|
||||||
border-radius 6px
|
|
||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
a
|
div
|
||||||
margin-left 8px
|
padding 32px
|
||||||
|
background #1a94f2
|
||||||
|
border-radius 6px
|
||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -458,8 +458,8 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS]) => void,
|
|||||||
return x;
|
return x;
|
||||||
},
|
},
|
||||||
dialog(opts) {
|
dialog(opts) {
|
||||||
|
const vm = this.new(Dialog, opts);
|
||||||
return new Promise((res) => {
|
return new Promise((res) => {
|
||||||
const vm = this.new(Dialog, opts);
|
|
||||||
vm.$once('ok', result => res({ canceled: false, result }));
|
vm.$once('ok', result => res({ canceled: false, result }));
|
||||||
vm.$once('cancel', () => res({ canceled: true }));
|
vm.$once('cancel', () => res({ canceled: true }));
|
||||||
});
|
});
|
||||||
|
@ -62,7 +62,6 @@ import parse from '../../../../../mfm/parse';
|
|||||||
import { host } from '../../../config';
|
import { host } from '../../../config';
|
||||||
import { erase, unique } from '../../../../../prelude/array';
|
import { erase, unique } from '../../../../../prelude/array';
|
||||||
import { length } from 'stringz';
|
import { length } from 'stringz';
|
||||||
import parseAcct from '../../../../../misc/acct/parse';
|
|
||||||
import { toASCII } from 'punycode';
|
import { toASCII } from 'punycode';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
|
@ -107,44 +107,7 @@
|
|||||||
|
|
||||||
<x-language-settings/>
|
<x-language-settings/>
|
||||||
|
|
||||||
<ui-card>
|
<x-integration-settings/>
|
||||||
<div slot="title"><fa :icon="['fab', 'twitter']"/> {{ $t('twitter') }}</div>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<p class="account" v-if="$store.state.i.twitter"><a :href="`https://twitter.com/${$store.state.i.twitter.screenName}`" target="_blank">@{{ $store.state.i.twitter.screenName }}</a></p>
|
|
||||||
<p>
|
|
||||||
<a :href="`${apiUrl}/connect/twitter`" target="_blank">{{ $store.state.i.twitter ? this.$t('twitter-reconnect') : this.$t('twitter-connect') }}</a>
|
|
||||||
<span v-if="$store.state.i.twitter"> or </span>
|
|
||||||
<a :href="`${apiUrl}/disconnect/twitter`" target="_blank" v-if="$store.state.i.twitter">{{ $t('twitter-disconnect') }}</a>
|
|
||||||
</p>
|
|
||||||
</section>
|
|
||||||
</ui-card>
|
|
||||||
|
|
||||||
<ui-card>
|
|
||||||
<div slot="title"><fa :icon="['fab', 'github']"/> {{ $t('github') }}</div>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<p class="account" v-if="$store.state.i.github"><a :href="`https://github.com/${$store.state.i.github.login}`" target="_blank">@{{ $store.state.i.github.login }}</a></p>
|
|
||||||
<p>
|
|
||||||
<a :href="`${apiUrl}/connect/github`" target="_blank">{{ $store.state.i.github ? this.$t('github-reconnect') : this.$t('github-connect') }}</a>
|
|
||||||
<span v-if="$store.state.i.github"> or </span>
|
|
||||||
<a :href="`${apiUrl}/disconnect/github`" target="_blank" v-if="$store.state.i.github">{{ $t('github-disconnect') }}</a>
|
|
||||||
</p>
|
|
||||||
</section>
|
|
||||||
</ui-card>
|
|
||||||
|
|
||||||
<ui-card>
|
|
||||||
<div slot="title"><fa :icon="['fab', 'discord']"/> {{ $t('discord') }}</div>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<p class="account" v-if="$store.state.i.discord"><a :href="`https://discordapp.com/users/${$store.state.i.discord.id}`" target="_blank">@{{ $store.state.i.discord.username }}#{{ $store.state.i.discord.discriminator }}</a></p>
|
|
||||||
<p>
|
|
||||||
<a :href="`${apiUrl}/connect/discord`" target="_blank">{{ $store.state.i.discord ? this.$t('discord-reconnect') : this.$t('discord-connect') }}</a>
|
|
||||||
<span v-if="$store.state.i.discord"> or </span>
|
|
||||||
<a :href="`${apiUrl}/disconnect/discord`" target="_blank" v-if="$store.state.i.discord">{{ $t('discord-disconnect') }}</a>
|
|
||||||
</p>
|
|
||||||
</section>
|
|
||||||
</ui-card>
|
|
||||||
|
|
||||||
<x-api-settings />
|
<x-api-settings />
|
||||||
|
|
||||||
@ -192,6 +155,7 @@ import XPasswordSettings from '../../../common/views/components/password-setting
|
|||||||
import XProfileEditor from '../../../common/views/components/profile-editor.vue';
|
import XProfileEditor from '../../../common/views/components/profile-editor.vue';
|
||||||
import XApiSettings from '../../../common/views/components/api-settings.vue';
|
import XApiSettings from '../../../common/views/components/api-settings.vue';
|
||||||
import XLanguageSettings from '../../../common/views/components/language-settings.vue';
|
import XLanguageSettings from '../../../common/views/components/language-settings.vue';
|
||||||
|
import XIntegrationSettings from '../../../common/views/components/integration-settings.vue';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
i18n: i18n('mobile/views/pages/settings.vue'),
|
i18n: i18n('mobile/views/pages/settings.vue'),
|
||||||
@ -204,6 +168,7 @@ export default Vue.extend({
|
|||||||
XProfileEditor,
|
XProfileEditor,
|
||||||
XApiSettings,
|
XApiSettings,
|
||||||
XLanguageSettings,
|
XLanguageSettings,
|
||||||
|
XIntegrationSettings,
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
@ -44,6 +44,7 @@ type IUserBase = {
|
|||||||
wallpaperUrl?: string;
|
wallpaperUrl?: string;
|
||||||
data: any;
|
data: any;
|
||||||
description: string;
|
description: string;
|
||||||
|
lang?: string;
|
||||||
pinnedNoteIds: mongo.ObjectID[];
|
pinnedNoteIds: mongo.ObjectID[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -6,6 +6,7 @@ import acceptAllFollowRequests from '../../../../services/following/requests/acc
|
|||||||
import { publishToFollowers } from '../../../../services/i/update';
|
import { publishToFollowers } from '../../../../services/i/update';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import getDriveFileUrl from '../../../../misc/get-drive-file-url';
|
import getDriveFileUrl from '../../../../misc/get-drive-file-url';
|
||||||
|
const langmap = require('langmap');
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
@ -32,6 +33,13 @@ export const meta = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
lang: {
|
||||||
|
validator: $.str.optional.nullable.or(Object.keys(langmap)),
|
||||||
|
desc: {
|
||||||
|
'ja-JP': '言語'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
location: {
|
location: {
|
||||||
validator: $.str.optional.nullable.pipe(isValidLocation),
|
validator: $.str.optional.nullable.pipe(isValidLocation),
|
||||||
desc: {
|
desc: {
|
||||||
@ -121,6 +129,7 @@ export default define(meta, (ps, user, app) => new Promise(async (res, rej) => {
|
|||||||
|
|
||||||
if (ps.name !== undefined) updates.name = ps.name;
|
if (ps.name !== undefined) updates.name = ps.name;
|
||||||
if (ps.description !== undefined) updates.description = ps.description;
|
if (ps.description !== undefined) updates.description = ps.description;
|
||||||
|
if (ps.lang !== undefined) updates.lang = ps.lang;
|
||||||
if (ps.location !== undefined) updates['profile.location'] = ps.location;
|
if (ps.location !== undefined) updates['profile.location'] = ps.location;
|
||||||
if (ps.birthday !== undefined) updates['profile.birthday'] = ps.birthday;
|
if (ps.birthday !== undefined) updates['profile.birthday'] = ps.birthday;
|
||||||
if (ps.avatarId !== undefined) updates.avatarId = ps.avatarId;
|
if (ps.avatarId !== undefined) updates.avatarId = ps.avatarId;
|
||||||
|
Reference in New Issue
Block a user