discord-client/webpack/vue/auth/wrapper.vue

108 lines
3.4 KiB
Vue
Raw Normal View History

2018-03-21 17:44:27 +00:00
<template>
<div id="WRAPPER">
<!-- Side Menu -->
<menu-comp></menu-comp>
<!-- Side Dialog -->
<dialog-comp></dialog-comp>
<!-- Container -->
<router-view></router-view>
2018-03-21 17:44:27 +00:00
2018-03-22 19:03:29 +00:00
<!-- Pop-up Filter Background -->
<div id='popup-filter-background' v-show='gs.popup.filter' @click='gs.popup.hide()'></div>
<!-- Pop-up ROOM CREATE -->
2018-03-22 19:03:29 +00:00
<div class='popup' v-show='gs.popup.get(`room.create`).active'>
<span class='header'>Create {{ gs.popup.get(`room.create`).data.type }} channel</span>
2018-03-22 17:15:57 +00:00
<span class='body form'>
<label for='channel_name'>Room Name</label>
2018-03-22 19:03:29 +00:00
<input type='text' name='channel_name' v-model='gs.popup.get(`room.create`).data.name'>
2018-03-22 17:15:57 +00:00
<label for='channel_name'>Room Type</label>
<span class='select-box' @click='gs.popup.get(`room.create`).data.type=`text`' :data-selected='gs.popup.get(`room.create`).data.type==`text`?1:0' data-type='text'>Text Room</span>
<span class='select-box' @click='gs.popup.get(`room.create`).data.type=`voice`' :data-selected='gs.popup.get(`room.create`).data.type==`voice`?1:0' data-type='voice'>Voice Room</span>
</span>
<span class='footer form'>
<button @click='gs.popup.hide()'>Cancel</button>
<button class='submit' @click='gs.popup.get(`room.create`).submit()'>Create Room</button>
</span>
</div>
<!-- Pop-up CHANNEL CREATE -->
<div class='popup' v-show='gs.popup.get(`channel.create`).active'>
<span class='header'>Create {{ gs.popup.get(`channel.create`).data.type }} channel</span>
<span class='body form'>
<label for='channel_name'>Channel Name</label>
<input type='text' name='channel_name' v-model='gs.popup.get(`channel.create`).data.name'>
2018-03-27 16:21:02 +00:00
<label for='channel_link'>Channel Link</label>
<input type='text' name='channel_link' v-model='gs.popup.get(`channel.create`).data.link'>
2018-03-22 17:15:57 +00:00
</span>
<span class='footer form'>
2018-03-22 19:03:29 +00:00
<button @click='gs.popup.hide()'>Cancel</button>
<button class='submit' @click='gs.popup.get(`channel.create`).submit()'>Create Channel</button>
2018-03-22 17:15:57 +00:00
</span>
</div>
<!-- Pop-up NICKNAME CHANGE -->
<div class='popup' v-show='gs.popup.get(`nickname.change`).active'>
<span class='header'>Change nickname</span>
<span class='body form'>
<label for='nickname'>Nickname</label>
<input type='text' name='nickname' v-model='gs.popup.get(`nickname.change`).data.value' :placeholder='gs.auth.user.username'>
<a @click='gs.popup.get(`nickname.change`).reset()'>Reset Nickname</a>
</span>
<span class='footer form'>
<button @click='gs.popup.hide()'>Cancel</button>
<button class='submit' @click='gs.popup.get(`nickname.change`).submit()'>Save</button>
</span>
</div>
<!-- Pop-up CHANNEL INVITE -->
<div class='popup' v-show='gs.popup.get(`channel.invite`).active'>
<span class='header'>Invite a friend</span>
<span class='body form'>
<label for='username'>friend's username</label>
<input type='text' name='username' v-model='gs.popup.get(`channel.invite`).data.username'>
</span>
<span class='footer form'>
<button @click='gs.popup.hide()'>Cancel</button>
<button class='submit' @click='gs.popup.get(`channel.invite`).submit()'>Invite</button>
</span>
</div>
2018-03-21 17:44:27 +00:00
</div>
</template><script>
import menu_vue from './menu.vue'
import dialog_vue from './dialog.vue'
export default {
name: 'wrapper-',
data(){ return { gs: gs.get }; },
2018-03-21 17:44:27 +00:00
components: {
'MenuComp': menu_vue,
'DialogComp': dialog_vue
}
}
</script>