summaryrefslogtreecommitdiff
path: root/src/web/app/desktop
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-02 06:26:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-02 06:26:31 +0900
commit423f73777cd0b8e6ef916f1ad4e6971c1e560bb7 (patch)
tree2b2b0fbe21322467321fa744795d13a567a22a6e /src/web/app/desktop
parentv3925 (diff)
downloadsharkey-423f73777cd0b8e6ef916f1ad4e6971c1e560bb7.tar.gz
sharkey-423f73777cd0b8e6ef916f1ad4e6971c1e560bb7.tar.bz2
sharkey-423f73777cd0b8e6ef916f1ad4e6971c1e560bb7.zip
nanka iroiro
Diffstat (limited to 'src/web/app/desktop')
-rw-r--r--src/web/app/desktop/script.ts1
-rw-r--r--src/web/app/desktop/style.styl1
-rw-r--r--src/web/app/desktop/views/components/settings.profile.vue9
-rw-r--r--src/web/app/desktop/views/components/settings.vue28
4 files changed, 31 insertions, 8 deletions
diff --git a/src/web/app/desktop/script.ts b/src/web/app/desktop/script.ts
index f0412805ef..78549741b0 100644
--- a/src/web/app/desktop/script.ts
+++ b/src/web/app/desktop/script.ts
@@ -4,6 +4,7 @@
// Style
import './style.styl';
+import '../../element.scss';
import init from '../init';
import fuckAdBlock from '../common/scripts/fuck-ad-block';
diff --git a/src/web/app/desktop/style.styl b/src/web/app/desktop/style.styl
index 4d295035f7..49f71fbde7 100644
--- a/src/web/app/desktop/style.styl
+++ b/src/web/app/desktop/style.styl
@@ -1,6 +1,5 @@
@import "../app"
@import "../reset"
-@import "../../../../node_modules/cropperjs/dist/cropper.css"
@import "./ui"
diff --git a/src/web/app/desktop/views/components/settings.profile.vue b/src/web/app/desktop/views/components/settings.profile.vue
index 97a382d798..218da67e81 100644
--- a/src/web/app/desktop/views/components/settings.profile.vue
+++ b/src/web/app/desktop/views/components/settings.profile.vue
@@ -22,6 +22,10 @@
<input v-model="birthday" type="date" class="ui"/>
</label>
<button class="ui primary" @click="save">%i18n:desktop.tags.mk-profile-setting.save%</button>
+ <section>
+ <h2>その他</h2>
+ <el-switch v-model="os.i.is_bot" @change="onChangeIsBot" active-text="このアカウントはbotです"/>
+ </section>
</div>
</template>
@@ -56,6 +60,11 @@ export default Vue.extend({
}).then(() => {
(this as any).apis.notify('プロフィールを更新しました');
});
+ },
+ onChangeIsBot() {
+ (this as any).api('i/update', {
+ is_bot: (this as any).os.i.is_bot
+ });
}
}
});
diff --git a/src/web/app/desktop/views/components/settings.vue b/src/web/app/desktop/views/components/settings.vue
index c210997c38..b65623e33a 100644
--- a/src/web/app/desktop/views/components/settings.vue
+++ b/src/web/app/desktop/views/components/settings.vue
@@ -23,10 +23,7 @@
<div>
<button class="ui button" @click="customizeHome">ホームをカスタマイズ</button>
</div>
- <label>
- <input type="checkbox" v-model="showPostFormOnTopOfTl" @change="onChangeShowPostFormOnTopOfTl">
- <span>タイムライン上部に投稿フォームを表示する</span>
- </label>
+ <el-switch v-model="showPostFormOnTopOfTl" @change="onChangeShowPostFormOnTopOfTl" active-text="タイムライン上部に投稿フォームを表示する"/>
</section>
<section class="drive" v-show="page == 'drive'">
@@ -71,7 +68,8 @@
<section class="other" v-show="page == 'other'">
<h1>%i18n:desktop.tags.mk-settings.license%</h1>
- %license%
+ <div v-html="license"></div>
+ <a :href="licenseUrl" target="_blank">サードパーティ</a>
</section>
</div>
</div>
@@ -84,6 +82,7 @@ import XMute from './settings.mute.vue';
import XPassword from './settings.password.vue';
import X2fa from './settings.2fa.vue';
import XApi from './settings.api.vue';
+import { docsUrl, license, lang } from '../../../config';
export default Vue.extend({
components: {
@@ -96,10 +95,15 @@ export default Vue.extend({
data() {
return {
page: 'profile',
-
+ license,
showPostFormOnTopOfTl: false
};
},
+ computed: {
+ licenseUrl(): string {
+ return `${docsUrl}/${lang}/license`;
+ }
+ },
created() {
this.showPostFormOnTopOfTl = (this as any).os.i.client_settings.showPostFormOnTopOfTl;
},
@@ -162,13 +166,23 @@ export default Vue.extend({
color #4a535a
> h1
- display block
margin 0 0 1em 0
padding 0 0 8px 0
font-size 1em
color #555
border-bottom solid 1px #eee
+ &, >>> *
+ > section
+ margin 32px 0
+
+ > h2
+ margin 0 0 1em 0
+ padding 0 0 8px 0
+ font-size 1em
+ color #555
+ border-bottom solid 1px #eee
+
> .web
> div
border-bottom solid 1px #eee