-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.html
49 lines (49 loc) · 1.94 KB
/
app.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<div :class="settings.theme">
<div :class="{'show-sidebar': sidebar}">
<div class="navbar">
<button class="sidebar-toggler" @click="sidebar = !sidebar">
<i v-if="sidebar" class="icon-arrow-left"/>
<i v-else class="icon-arrow-right"/>
</button>
<div class="title" v-html="title"></div>
<div class="top-right">
<button @click="browser.minimize()" class="minimize"><i class="icon-window-minimize"/></button>
<button @click="toggleMaximize()" class="maximize">
<i v-if="browser.isMaximized()" class="icon-window-restore"/>
<i v-else class="icon-window-maximize"/>
</button>
<button @click="browser.close()" class="close"><i class="icon-window-close"/></button>
</div>
<div class="top-border"/>
</div>
<div class="window">
<div class="sidebar">
<el-menu default-active="/" :collapse="true" :router="true"
:backgroundColor="styles.sidebar.background">
<el-menu-item index="/" @click="switchRoute('homepage')">
<i class="icon-home"></i>
<span slot="title">{{ $t('window.homepage') }}</span>
</el-menu-item>
<el-menu-item index="/editor" @click="switchRoute('editor')">
<i class="icon-editor"></i>
<span slot="title">{{ $t('window.editor') }}</span>
</el-menu-item>
<el-menu-item index="/docs" @click="switchRoute('documents')">
<i class="icon-document"></i>
<span slot="title">{{ $t('window.documents') }}</span>
</el-menu-item>
<el-menu-item index="/settings" @click="switchRoute('settings')">
<i class="icon-settings"></i>
<span slot="title">{{ $t('window.settings') }}</span>
</el-menu-item>
</el-menu>
<div class="left-border"/>
</div>
<div class="main">
<keep-alive>
<router-view :height="height" :top="48" :width="width" :left="this.sidebar ? 64 : 0"/>
</keep-alive>
</div>
</div>
</div>
</div>