2018-06-16 18:42:49 +09:00
|
|
|
<template>
|
|
|
|
<div class="azibmfpleajagva420swmu4c3r7ni7iw">
|
2018-08-07 13:25:50 +09:00
|
|
|
<h1>{{ '%i18n:@share-with%'.replace('{}', name) }}</h1>
|
2018-06-16 18:42:49 +09:00
|
|
|
<div>
|
|
|
|
<mk-signin v-if="!$store.getters.isSignedIn"/>
|
|
|
|
<mk-post-form v-else-if="!posted" :initial-text="text" :instant="true" @posted="posted = true"/>
|
|
|
|
<p v-if="posted" class="posted">%fa:check%</p>
|
|
|
|
</div>
|
2018-08-07 05:05:48 +09:00
|
|
|
<ui-button class="close" v-if="posted" @click="close">%i18n:common.close%</ui-button>
|
2018-06-16 18:42:49 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-08-07 13:25:50 +09:00
|
|
|
import * as config from '../../../config';
|
2018-06-16 18:42:49 +09:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
data() {
|
|
|
|
return {
|
2018-08-07 13:25:50 +09:00
|
|
|
name: config.name,
|
2018-06-16 18:42:49 +09:00
|
|
|
posted: false,
|
|
|
|
text: new URLSearchParams(location.search).get('text')
|
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
close() {
|
|
|
|
window.close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.azibmfpleajagva420swmu4c3r7ni7iw
|
|
|
|
> h1
|
|
|
|
margin 8px 0
|
|
|
|
color #555
|
|
|
|
font-size 20px
|
|
|
|
text-align center
|
|
|
|
|
|
|
|
> div
|
|
|
|
max-width 500px
|
|
|
|
margin 0 auto
|
|
|
|
|
|
|
|
> .posted
|
|
|
|
display block
|
|
|
|
margin 0 auto
|
|
|
|
padding 64px
|
|
|
|
text-align center
|
|
|
|
background #fff
|
|
|
|
border-radius 6px
|
|
|
|
width calc(100% - 32px)
|
|
|
|
|
|
|
|
> .close
|
|
|
|
display block
|
|
|
|
margin 16px auto
|
|
|
|
width calc(100% - 32px)
|
|
|
|
</style>
|