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 -->
|
2018-03-21 23:53:32 +00:00
|
|
|
<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>
|
|
|
|
|
2018-03-27 14:41:36 +00:00
|
|
|
<!-- Pop-up ROOM CREATE -->
|
2018-03-22 19:03:29 +00:00
|
|
|
<div class='popup' v-show='gs.popup.get(`room.create`).active'>
|
2018-03-28 23:26:18 +00:00
|
|
|
<span class='header'>Create {{ gs.popup.get(`room.create`).type.mutable }} room</span>
|
2018-03-22 17:15:57 +00:00
|
|
|
|
2018-03-24 18:57:51 +00:00
|
|
|
<span class='body form'>
|
2018-03-28 23:26:18 +00:00
|
|
|
<label>Room Name <span :data-err='gs.popup.get(`room.create`).name.error'></span></label>
|
|
|
|
<input type='text' v-model='gs.popup.get(`room.create`).name.mutable'>
|
2018-03-22 17:15:57 +00:00
|
|
|
|
2018-03-28 23:26:18 +00:00
|
|
|
<label>Room Type</label>
|
|
|
|
<span class='select-box' @click='gs.popup.get(`room.create`).type.mutable=`text`' :data-selected='gs.popup.get(`room.create`).type.mutable==`text`?1:0' data-type='text'>Text Room</span>
|
|
|
|
<span class='select-box' @click='gs.popup.get(`room.create`).type.mutable=`voice`' :data-selected='gs.popup.get(`room.create`).type.mutable==`voice`?1:0' data-type='voice'>Voice Room</span>
|
2018-03-27 14:41:36 +00:00
|
|
|
</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'>
|
2018-03-28 23:26:18 +00:00
|
|
|
<span class='header'>Create channel #<strong>{{ gs.popup.get(`channel.create`).name.mutable }}</strong><br>url: <strong>/{{gs.popup.get(`channel.create`).link.mutable}}</strong></span>
|
2018-03-27 14:41:36 +00:00
|
|
|
|
|
|
|
<span class='body form'>
|
2018-03-28 23:26:18 +00:00
|
|
|
<label>Channel Name <span :data-err='gs.popup.get(`channel.create`).name.error'></span></label>
|
|
|
|
<input type='text' v-model='gs.popup.get(`channel.create`).name.mutable'>
|
|
|
|
|
|
|
|
<label>Channel Link <span :data-err='gs.popup.get(`channel.create`).link.error'></span></label>
|
|
|
|
<input type='text' v-model='gs.popup.get(`channel.create`).link.mutable'>
|
2018-03-22 17:15:57 +00:00
|
|
|
</span>
|
|
|
|
|
2018-03-25 10:24:34 +00:00
|
|
|
<span class='footer form'>
|
2018-03-22 19:03:29 +00:00
|
|
|
<button @click='gs.popup.hide()'>Cancel</button>
|
2018-03-27 14:41:36 +00:00
|
|
|
<button class='submit' @click='gs.popup.get(`channel.create`).submit()'>Create Channel</button>
|
2018-03-22 17:15:57 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2018-03-28 17:54:16 +00:00
|
|
|
<!-- Pop-up NICKNAME CHANGE -->
|
2018-03-28 23:26:18 +00:00
|
|
|
<div class='popup' v-show='gs.popup.get(`username.change`).active'>
|
2018-03-28 17:54:16 +00:00
|
|
|
<span class='header'>Change nickname</span>
|
|
|
|
|
|
|
|
<span class='body form'>
|
2018-03-28 23:26:18 +00:00
|
|
|
<label for='username'>Nickname <span :data-err='gs.popup.get(`username.change`).username.error'></span></label>
|
|
|
|
<input type='text' name='username' v-model='gs.popup.get(`username.change`).username.mutable' :placeholder='gs.auth.user.username'>
|
2018-03-28 17:54:16 +00:00
|
|
|
|
2018-03-28 23:26:18 +00:00
|
|
|
<a @click='gs.popup.get(`username.change`).reset()'>Reset Nickname</a>
|
2018-03-28 17:54:16 +00:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class='footer form'>
|
|
|
|
<button @click='gs.popup.hide()'>Cancel</button>
|
2018-03-28 23:37:15 +00:00
|
|
|
<button class='submit' @click='gs.popup.get(`username.change`).submit()'>Save</button>
|
2018-03-28 17:54:16 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2018-03-28 18:06:26 +00:00
|
|
|
<!-- 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'>
|
2018-03-28 23:26:18 +00:00
|
|
|
<label for='username'>friend's username <span :data-err='gs.popup.get(`channel.invite`).username.error'></span></label>
|
|
|
|
<input type='text' name='username' v-model='gs.popup.get(`channel.invite`).username.mutable'>
|
2018-03-28 18:06:26 +00:00
|
|
|
</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-28 19:51:04 +00:00
|
|
|
<!-- Pop-up CHANNEL REMOVE -->
|
|
|
|
<div class='popup' v-show='gs.popup.get(`channel.remove`).active'>
|
|
|
|
<span class='header'>Remove channel</span>
|
|
|
|
|
|
|
|
<span class='body form'>
|
2018-03-28 23:26:18 +00:00
|
|
|
<p>You are about to remove the channel #<strong>{{ gs.content.cbuf.label }}</strong>, this operation cannot be undone.</p>
|
2018-03-28 19:51:04 +00:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class='footer form'>
|
|
|
|
<button @click='gs.popup.hide()'>Cancel</button>
|
|
|
|
<button class='submit invalid' @click='gs.popup.get(`channel.remove`).submit()'>Remove</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Pop-up CHANNEL LEAVE -->
|
|
|
|
<div class='popup' v-show='gs.popup.get(`channel.leave`).active'>
|
|
|
|
<span class='header'>Leave channel</span>
|
|
|
|
|
|
|
|
<span class='body form'>
|
2018-03-28 23:26:18 +00:00
|
|
|
<p>You are about to leave the channel #<strong>{{ gs.content.cbuf.label }}</strong>, this operation cannot be undone.</p>
|
2018-03-28 19:51:04 +00:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class='footer form'>
|
|
|
|
<button @click='gs.popup.hide()'>Cancel</button>
|
|
|
|
<button class='submit invalid' @click='gs.popup.get(`channel.leave`).submit()'>Leave</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2018-03-28 20:54:49 +00:00
|
|
|
<!-- Pop-up PASSWORD CHANGE -->
|
|
|
|
<div class='popup' v-show='gs.popup.get(`password.change`).active'>
|
|
|
|
<span class='header'>Change password</span>
|
|
|
|
|
|
|
|
<span class='body form'>
|
2018-03-28 23:26:18 +00:00
|
|
|
<label v-show='!gs.popup.get(`password.change`).matches'><span data-err='passwords does not match'></span></label>
|
|
|
|
<label>New password <span :data-err='gs.popup.get(`password.change`).password.error'></span></label>
|
|
|
|
<input type='password' v-model='gs.popup.get(`password.change`).password.mutable'>
|
2018-03-28 20:54:49 +00:00
|
|
|
|
2018-03-28 23:26:18 +00:00
|
|
|
<label>Confirmation <span :data-err='gs.popup.get(`password.change`).confirm.error'></span></label>
|
|
|
|
<input type='password' v-model='gs.popup.get(`password.change`).confirm.mutable'>
|
2018-03-28 20:54:49 +00:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class='footer form'>
|
|
|
|
<button @click='gs.popup.hide()'>Cancel</button>
|
|
|
|
<button class='submit' @click='gs.popup.get(`password.change`).submit()'>Update</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-',
|
|
|
|
|
2018-03-22 18:13:52 +00:00
|
|
|
data(){ return { gs: gs.get }; },
|
2018-03-21 17:44:27 +00:00
|
|
|
|
|
|
|
components: {
|
|
|
|
'MenuComp': menu_vue,
|
|
|
|
'DialogComp': dialog_vue
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|