summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components/github-setting.vue
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2018-11-04 19:22:04 +0900
committerAcid Chicken (硫酸鶏) <root@acid-chicken.com>2018-11-04 19:22:04 +0900
commit147ad6986478e2ea4b29a4d08bd12739033eff3e (patch)
tree233f807d747188b527422521313c65aee27e5505 /src/client/app/common/views/components/github-setting.vue
parentAdd GitHub auth (diff)
downloadsharkey-147ad6986478e2ea4b29a4d08bd12739033eff3e.tar.gz
sharkey-147ad6986478e2ea4b29a4d08bd12739033eff3e.tar.bz2
sharkey-147ad6986478e2ea4b29a4d08bd12739033eff3e.zip
Revert "Add GitHub auth"
This reverts commit c1460064769c9d824e60a39356671ccb3a4d1f44.
Diffstat (limited to 'src/client/app/common/views/components/github-setting.vue')
-rw-r--r--src/client/app/common/views/components/github-setting.vue63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/client/app/common/views/components/github-setting.vue b/src/client/app/common/views/components/github-setting.vue
deleted file mode 100644
index f79a700a92..0000000000
--- a/src/client/app/common/views/components/github-setting.vue
+++ /dev/null
@@ -1,63 +0,0 @@
-<template>
-<div class="mk-github-setting">
- <p>%i18n:@description%<a :href="`${docsUrl}/link-to-github`" target="_blank">%i18n:@detail%</a></p>
- <p class="account" v-if="$store.state.i.github" :title="`GitHub ID: ${$store.state.i.github.id}`">%i18n:@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 ? '%i18n:@reconnect%' : '%i18n:@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">%i18n:@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 { apiUrl, docsUrl } from '../../../config';
-
-export default Vue.extend({
- data() {
- return {
- form: null,
- apiUrl,
- docsUrl
- };
- },
- 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>