Mercurial > gemma
annotate client/src/components/Sidebar.vue @ 2442:9b7138751f5b
staging: layout logs
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 01 Mar 2019 12:07:34 +0100 |
parents | 706121185e63 |
children | 374ee552ca85 |
rev | line source |
---|---|
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
1 <template> |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
2 <div class="position-relative"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
3 <span class="indicator" v-if="!showSidebar && staging.length"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
4 {{ staging.length }} |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
5 </span> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
6 <div :class="sidebarStyle"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
7 <div |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
8 @click="$store.commit('application/showSidebar', !showSidebar)" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
9 class="menubutton ui-element d-print-none p-2 bg-white rounded position-absolute d-flex justify-content-center" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
10 > |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
11 <font-awesome-icon class="fa-fw" icon="bars"></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
12 </div> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
13 <div class="menu text-nowrap text-left"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
14 <router-link to="/"> |
1463
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
15 <font-awesome-icon |
1542 | 16 class="fa-fw mr-2" |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
17 fixed-width |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
18 icon="map-marked-alt" |
1463
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
19 ></font-awesome-icon> |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
20 <span class="fix-trans-space" v-translate>Map</span> |
2329
514193fd0120
refac: improve routing structure. We now have /bottlenecks, /stretches, /review routes
Thomas Junk <thomas.junk@intevation.de>
parents:
2282
diff
changeset
|
21 </router-link> |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
22 <router-link to="/bottlenecks"> |
1753
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
23 <font-awesome-icon |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
24 class="fa-fw mr-2" |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
25 fixed-width |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
26 icon="ship" |
1753
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
27 ></font-awesome-icon> |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
28 <span class="fix-trans-space" v-translate>Bottlenecks</span> |
1753
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
29 </router-link> |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
30 <div v-if="isWaterwayAdmin"> |
2416 | 31 <router-link to="/imports/overview" class="position-relative"> |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
32 <font-awesome-icon |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
33 class="fa-fw mr-2" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
34 fixed-width |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
35 icon="clipboard-check" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
36 ></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
37 <span class="fix-trans-space" v-translate>Staging area</span> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
38 <span class="indicator" v-if="showSidebar && staging.length"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
39 {{ staging.length }} |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
40 </span> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
41 </router-link> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
42 </div> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
43 <div v-if="isSysAdmin"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
44 <router-link to="/stretches"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
45 <font-awesome-icon |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
46 class="fa-fw mr-2" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
47 fixed-width |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
48 icon="road" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
49 ></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
50 <span class="fix-trans-space" v-translate>Define stretches</span> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
51 </router-link> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
52 </div> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
53 <div v-if="isWaterwayAdmin"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
54 <small class="text-muted pl-3"> <translate>Import</translate> </small> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
55 <hr class="m-0" /> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
56 <router-link to="/importsoundingresults"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
57 <font-awesome-icon |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
58 class="fa-fw mr-2" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
59 fixed-width |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
60 icon="upload" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
61 ></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
62 <span class="fix-trans-space" v-translate |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
63 >Import soundingresults</span |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
64 > |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
65 </router-link> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
66 <router-link to="/importapprovedgaugemeasurement"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
67 <font-awesome-icon |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
68 class="fa-fw mr-2" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
69 fixed-width |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
70 icon="upload" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
71 ></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
72 <span class="fix-trans-space" v-translate |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
73 >Import approved gaugemeasurements</span |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
74 > |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
75 </router-link> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
76 <router-link to="/importwaterwayprofiles"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
77 <font-awesome-icon |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
78 class="fa-fw mr-2" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
79 fixed-width |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
80 icon="upload" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
81 ></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
82 <span class="fix-trans-space" v-translate |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
83 >Import waterway profiles</span |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
84 > |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
85 </router-link> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
86 <router-link to="/importschedule"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
87 <font-awesome-icon |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
88 class="fa-fw mr-2" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
89 fixed-width |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
90 icon="clock" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
91 ></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
92 <translate class="fix-trans-space">Imports</translate> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
93 </router-link> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
94 <small class="text-muted pl-3"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
95 <translate>Systemadministration</translate> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
96 </small> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
97 <hr class="m-0" /> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
98 </div> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
99 <div v-if="isSysAdmin"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
100 <router-link to="/usermanagement"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
101 <font-awesome-icon |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
102 class="fa-fw mr-2" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
103 fixed-width |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
104 icon="users-cog" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
105 ></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
106 <span class="fix-trans-space" v-translate>Users</span> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
107 </router-link> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
108 </div> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
109 <div v-if="isWaterwayAdmin"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
110 <router-link to="/systemconfiguration"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
111 <font-awesome-icon |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
112 class="fa-fw mr-2" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
113 fixed-width |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
114 icon="wrench" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
115 ></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
116 <span class="fix-trans-space" v-translate>Configuration</span> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
117 </router-link> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
118 </div> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
119 <div v-if="isSysAdmin"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
120 <router-link to="/logs"> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
121 <font-awesome-icon |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
122 class="fa-fw mr-2" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
123 fixed-width |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
124 icon="book" |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
125 ></font-awesome-icon> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
126 <span class="fix-trans-space" v-translate>Logs</span> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
127 </router-link> |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
128 </div> |
1463
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
129 <hr class="m-0" /> |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
130 <a @click="logoff" href="#" class="logout"> |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
131 <font-awesome-icon |
1542 | 132 class="fa-fw mr-2" |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
133 fixed-width |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
134 icon="power-off" |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
135 ></font-awesome-icon> |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
136 <span class="fix-trans-space" v-translate>Logout</span> {{ user }} |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
137 </a> |
1777
e70b7b8e7b74
wrong rights rigthed, so they are right now right
Thomas Junk <thomas.junk@intevation.de>
parents:
1757
diff
changeset
|
138 </div> |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
139 </div> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
140 </div> |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
141 </template> |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
142 |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
143 <script> |
1362
ca33ad696594
remove the first empyty lines
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1361
diff
changeset
|
144 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
145 * without warranty, see README.md and license for details. |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
146 * |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
147 * SPDX-License-Identifier: AGPL-3.0-or-later |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
148 * License-Filename: LICENSES/AGPL-3.0.txt |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
149 * |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
150 * Copyright (C) 2018 by via donau |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
151 * – Österreichische Wasserstraßen-Gesellschaft mbH |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
152 * Software engineering by Intevation GmbH |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
153 * |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
154 * Author(s): |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
155 * Thomas Junk <thomas.junk@intevation.de> |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
156 * Markus Kottländer <markus.kottlaender@intevation.de> |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
157 */ |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
158 import { mapGetters, mapState } from "vuex"; |
1701
f4bd67daaaff
feat: force login on invalid session
Thomas Junk <thomas.junk@intevation.de>
parents:
1650
diff
changeset
|
159 import { logOff } from "@/lib/session.js"; |
2383
8d025f85a3fe
client: made indicator for open imports show up immediatly
Markus Kottlaender <markus@intevation.de>
parents:
2382
diff
changeset
|
160 import { displayError } from "@/lib/errors"; |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
161 |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
162 export default { |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
163 name: "sidebar", |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
164 props: ["routeName"], |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
165 computed: { |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
166 ...mapGetters("user", ["isSysAdmin", "isWaterwayAdmin"]), |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
167 ...mapState("user", ["user"]), |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
168 ...mapState("imports", ["staging"]), |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
169 ...mapState("application", [ |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
170 "showSidebar", |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
171 "showSearchbarLastState", |
1289
e1480ad4b6b0
improved menu style
Markus Kottlaender <markus@intevation.de>
parents:
1282
diff
changeset
|
172 "contextBoxContent", |
e1480ad4b6b0
improved menu style
Markus Kottlaender <markus@intevation.de>
parents:
1282
diff
changeset
|
173 "showContextBox" |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
174 ]), |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
175 sidebarStyle() { |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
176 return [ |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
177 "ui-element position-relative sidebar rounded shadow-xs d-print-none mb-auto", |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
178 { |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
179 sidebarcollapsed: !this.showSidebar, |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
180 sidebarextended: this.showSidebar |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
181 } |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
182 ]; |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
183 } |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
184 }, |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
185 methods: { |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
186 logoff() { |
1701
f4bd67daaaff
feat: force login on invalid session
Thomas Junk <thomas.junk@intevation.de>
parents:
1650
diff
changeset
|
187 logOff(); |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
188 }, |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
189 toggleContextBox(context) { |
1650
90211725e4a9
highlighing feature for staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
190 if (this.$route.path !== "/") this.$router.push("/"); |
2282
2e40909a975d
clean searchbar when context is changed
Thomas Junk <thomas.junk@intevation.de>
parents:
2277
diff
changeset
|
191 this.$store.commit("application/searchQuery", ""); |
1282
a7dd8a3356fc
fixed contextBox animations
Markus Kottlaender <markus@intevation.de>
parents:
1272
diff
changeset
|
192 this.$store.commit("application/showContextBox", true); |
a7dd8a3356fc
fixed contextBox animations
Markus Kottlaender <markus@intevation.de>
parents:
1272
diff
changeset
|
193 this.$store.commit("application/contextBoxContent", context); |
a7dd8a3356fc
fixed contextBox animations
Markus Kottlaender <markus@intevation.de>
parents:
1272
diff
changeset
|
194 this.$store.commit("application/showSearchbar", true); |
1289
e1480ad4b6b0
improved menu style
Markus Kottlaender <markus@intevation.de>
parents:
1282
diff
changeset
|
195 }, |
e1480ad4b6b0
improved menu style
Markus Kottlaender <markus@intevation.de>
parents:
1282
diff
changeset
|
196 isActive(item) { |
e1480ad4b6b0
improved menu style
Markus Kottlaender <markus@intevation.de>
parents:
1282
diff
changeset
|
197 return ( |
e1480ad4b6b0
improved menu style
Markus Kottlaender <markus@intevation.de>
parents:
1282
diff
changeset
|
198 this.showContextBox && |
e1480ad4b6b0
improved menu style
Markus Kottlaender <markus@intevation.de>
parents:
1282
diff
changeset
|
199 this.contextBoxContent === item && |
e1480ad4b6b0
improved menu style
Markus Kottlaender <markus@intevation.de>
parents:
1282
diff
changeset
|
200 this.routeName == "mainview" |
e1480ad4b6b0
improved menu style
Markus Kottlaender <markus@intevation.de>
parents:
1282
diff
changeset
|
201 ); |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
202 } |
2383
8d025f85a3fe
client: made indicator for open imports show up immediatly
Markus Kottlaender <markus@intevation.de>
parents:
2382
diff
changeset
|
203 }, |
8d025f85a3fe
client: made indicator for open imports show up immediatly
Markus Kottlaender <markus@intevation.de>
parents:
2382
diff
changeset
|
204 mounted() { |
2404
fd248ede0251
client: update staging area every 15s
Markus Kottlaender <markus@intevation.de>
parents:
2383
diff
changeset
|
205 setTimeout(() => { |
fd248ede0251
client: update staging area every 15s
Markus Kottlaender <markus@intevation.de>
parents:
2383
diff
changeset
|
206 this.$store.dispatch("imports/getStaging").catch(error => { |
fd248ede0251
client: update staging area every 15s
Markus Kottlaender <markus@intevation.de>
parents:
2383
diff
changeset
|
207 const { status, data } = error.response; |
fd248ede0251
client: update staging area every 15s
Markus Kottlaender <markus@intevation.de>
parents:
2383
diff
changeset
|
208 displayError({ |
fd248ede0251
client: update staging area every 15s
Markus Kottlaender <markus@intevation.de>
parents:
2383
diff
changeset
|
209 title: "Backend Error", |
fd248ede0251
client: update staging area every 15s
Markus Kottlaender <markus@intevation.de>
parents:
2383
diff
changeset
|
210 message: `${status}: ${data.message || data}` |
fd248ede0251
client: update staging area every 15s
Markus Kottlaender <markus@intevation.de>
parents:
2383
diff
changeset
|
211 }); |
2383
8d025f85a3fe
client: made indicator for open imports show up immediatly
Markus Kottlaender <markus@intevation.de>
parents:
2382
diff
changeset
|
212 }); |
2404
fd248ede0251
client: update staging area every 15s
Markus Kottlaender <markus@intevation.de>
parents:
2383
diff
changeset
|
213 }, 15000); |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
214 } |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
215 }; |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
216 </script> |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
217 |
1449 | 218 <style lang="scss" scoped> |
219 .menubutton { | |
220 height: 2rem; | |
221 width: 2rem; | |
222 top: 0; | |
223 left: 0; | |
224 color: #666; | |
225 } | |
226 | |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
227 .indicator { |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
228 font-size: 11px; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
229 line-height: 11px; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
230 padding: 2px 4px 1px; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
231 position: absolute; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
232 top: 18px; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
233 left: 0px; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
234 z-index: 10; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
235 color: #fff; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
236 background: #17a2b8; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
237 border-top-right-radius: 0.25rem; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
238 border-bottom-left-radius: 0.25rem; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
239 } |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
240 |
1449 | 241 .menu a { |
242 display: block; | |
243 text-align: left; | |
244 padding: 0.5rem 1rem; | |
245 color: #333; | |
246 text-decoration: none; | |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
247 .indicator { |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
248 left: auto; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
249 right: 10px; |
2406
b72d3da6409c
client: fixed indicator style in sidebar menu when menu item is active
Markus Kottlaender <markus@intevation.de>
parents:
2404
diff
changeset
|
250 top: 12px; |
2382
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
251 border-radius: 0.25rem; |
c28971cd70ce
client: indicator for imports waiting for review
Markus Kottlaender <markus@intevation.de>
parents:
2354
diff
changeset
|
252 } |
2406
b72d3da6409c
client: fixed indicator style in sidebar menu when menu item is active
Markus Kottlaender <markus@intevation.de>
parents:
2404
diff
changeset
|
253 &.router-link-exact-active .indicator { |
b72d3da6409c
client: fixed indicator style in sidebar menu when menu item is active
Markus Kottlaender <markus@intevation.de>
parents:
2404
diff
changeset
|
254 background: #fff; |
b72d3da6409c
client: fixed indicator style in sidebar menu when menu item is active
Markus Kottlaender <markus@intevation.de>
parents:
2404
diff
changeset
|
255 color: #333; |
b72d3da6409c
client: fixed indicator style in sidebar menu when menu item is active
Markus Kottlaender <markus@intevation.de>
parents:
2404
diff
changeset
|
256 } |
1449 | 257 } |
258 | |
259 .menu a svg path { | |
260 fill: #666; | |
261 } | |
262 | |
263 .menu a:hover { | |
264 background-color: #f8f8f8; | |
265 } | |
266 | |
267 .menu a.router-link-exact-active { | |
268 background-color: #17a2b8; | |
269 color: #fff; | |
270 } | |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
271 |
1449 | 272 .menu a.router-link-exact-active svg path { |
273 fill: #fff; | |
274 } | |
275 | |
276 .menu a.secondary.active { | |
277 background: #ebfafd; | |
278 color: #0f6674; | |
279 } | |
280 | |
281 .menu a.secondary.active svg path { | |
282 fill: #0f6674; | |
283 } | |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
284 |
1449 | 285 .sidebar { |
286 background-color: #ffffff; | |
287 padding-top: $large-offset; | |
288 opacity: $slight-transparent; | |
289 transition: $transition-fast; | |
290 overflow: hidden; | |
291 } | |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
292 |
1449 | 293 .sidebarcollapsed { |
294 max-height: $icon-height; | |
295 max-width: $icon-width; | |
296 } | |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
297 |
1449 | 298 .sidebarextended { |
299 max-width: $sidebar-width; | |
1455
33dda08d67be
unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents:
1449
diff
changeset
|
300 min-width: $sidebar-width; |
1449 | 301 } |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
302 </style> |