Mercurial > gemma
annotate client/src/components/Sidebar.vue @ 2360:b556db0a701f
Added tag v2.1.0 for changeset 83f9a131dfb6
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Wed, 20 Feb 2019 13:59:47 +0100 |
parents | eebe0a8ddc82 |
children | c28971cd70ce |
rev | line source |
---|---|
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
1 <template> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
2 <div :class="sidebarStyle"> |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
3 <div |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
4 @click="$store.commit('application/showSidebar', !showSidebar)" |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
5 class="menubutton ui-element d-print-none p-2 bg-white rounded position-absolute d-flex justify-content-center" |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
6 > |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
7 <font-awesome-icon class="fa-fw" icon="bars"></font-awesome-icon> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
8 </div> |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
9 <div class="menu text-nowrap text-left"> |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
10 <router-link to="/"> |
1463
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
11 <font-awesome-icon |
1542 | 12 class="fa-fw mr-2" |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
13 fixed-width |
1463
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
14 icon="map-marked-alt" |
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
15 ></font-awesome-icon> |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
16 <span class="fix-trans-space" v-translate>Map</span> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
17 </router-link> |
2329
514193fd0120
refac: improve routing structure. We now have /bottlenecks, /stretches, /review routes
Thomas Junk <thomas.junk@intevation.de>
parents:
2282
diff
changeset
|
18 <router-link to="/bottlenecks"> |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
19 <font-awesome-icon |
2329
514193fd0120
refac: improve routing structure. We now have /bottlenecks, /stretches, /review routes
Thomas Junk <thomas.junk@intevation.de>
parents:
2282
diff
changeset
|
20 class="fa-fw mr-2" |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
21 fixed-width |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
22 icon="ship" |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
23 ></font-awesome-icon> |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
24 <span class="fix-trans-space" v-translate>Bottlenecks</span> |
2329
514193fd0120
refac: improve routing structure. We now have /bottlenecks, /stretches, /review routes
Thomas Junk <thomas.junk@intevation.de>
parents:
2282
diff
changeset
|
25 </router-link> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
26 <div v-if="isWaterwayAdmin"> |
2329
514193fd0120
refac: improve routing structure. We now have /bottlenecks, /stretches, /review routes
Thomas Junk <thomas.junk@intevation.de>
parents:
2282
diff
changeset
|
27 <router-link to="/review"> |
1463
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
28 <font-awesome-icon |
1542 | 29 class="fa-fw mr-2" |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
30 fixed-width |
1463
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
31 icon="clipboard-check" |
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
32 ></font-awesome-icon> |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
33 <span class="fix-trans-space" v-translate>Staging area</span> |
2329
514193fd0120
refac: improve routing structure. We now have /bottlenecks, /stretches, /review routes
Thomas Junk <thomas.junk@intevation.de>
parents:
2282
diff
changeset
|
34 </router-link> |
1870
3050d702913a
sections and stretches: only stretches. only sysadmin.
Thomas Junk <thomas.junk@intevation.de>
parents:
1797
diff
changeset
|
35 </div> |
3050d702913a
sections and stretches: only stretches. only sysadmin.
Thomas Junk <thomas.junk@intevation.de>
parents:
1797
diff
changeset
|
36 <div v-if="isSysAdmin"> |
2329
514193fd0120
refac: improve routing structure. We now have /bottlenecks, /stretches, /review routes
Thomas Junk <thomas.junk@intevation.de>
parents:
2282
diff
changeset
|
37 <router-link to="/stretches"> |
1797
67340ceecc5f
feat: define sections and stretches etd
Thomas Junk <thomas.junk@intevation.de>
parents:
1793
diff
changeset
|
38 <font-awesome-icon |
67340ceecc5f
feat: define sections and stretches etd
Thomas Junk <thomas.junk@intevation.de>
parents:
1793
diff
changeset
|
39 class="fa-fw mr-2" |
67340ceecc5f
feat: define sections and stretches etd
Thomas Junk <thomas.junk@intevation.de>
parents:
1793
diff
changeset
|
40 fixed-width |
67340ceecc5f
feat: define sections and stretches etd
Thomas Junk <thomas.junk@intevation.de>
parents:
1793
diff
changeset
|
41 icon="road" |
67340ceecc5f
feat: define sections and stretches etd
Thomas Junk <thomas.junk@intevation.de>
parents:
1793
diff
changeset
|
42 ></font-awesome-icon> |
1871
8ae7a1fba4cd
prototypical listview for stretches. new and back buttons. have fun
Thomas Junk <thomas.junk@intevation.de>
parents:
1870
diff
changeset
|
43 <span class="fix-trans-space" v-translate>Define stretches</span> |
2329
514193fd0120
refac: improve routing structure. We now have /bottlenecks, /stretches, /review routes
Thomas Junk <thomas.junk@intevation.de>
parents:
2282
diff
changeset
|
44 </router-link> |
1870
3050d702913a
sections and stretches: only stretches. only sysadmin.
Thomas Junk <thomas.junk@intevation.de>
parents:
1797
diff
changeset
|
45 </div> |
3050d702913a
sections and stretches: only stretches. only sysadmin.
Thomas Junk <thomas.junk@intevation.de>
parents:
1797
diff
changeset
|
46 <div v-if="isWaterwayAdmin"> |
1607
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
47 <small class="text-muted pl-3"> <translate>Import</translate> </small> |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
48 <hr class="m-0" /> |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
49 <router-link to="/importsoundingresults"> |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
50 <font-awesome-icon |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
51 class="fa-fw mr-2" |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
52 fixed-width |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
53 icon="upload" |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
54 ></font-awesome-icon> |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
55 <span class="fix-trans-space" v-translate |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
56 >Import soundingresults</span |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
57 > |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
58 </router-link> |
1753
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
59 <router-link to="/importapprovedgaugemeasurement"> |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
60 <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
|
61 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
|
62 fixed-width |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
63 icon="upload" |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
64 ></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
|
65 <span class="fix-trans-space" v-translate |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
66 >Import approved gaugemeasurements</span |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
67 > |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
68 </router-link> |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
69 <router-link to="/importwaterwayprofiles"> |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
70 <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
|
71 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
|
72 fixed-width |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
73 icon="upload" |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
74 ></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
|
75 <span class="fix-trans-space" v-translate |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
76 >Import waterway profiles</span |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
77 > |
68bd990dd8e5
feat: added import dialogs for approved gauge meas. and waterway profiles
Thomas Junk <thomas.junk@intevation.de>
parents:
1725
diff
changeset
|
78 </router-link> |
2354
eebe0a8ddc82
sidebar: fixed routing
Thomas Junk <thomas.junk@intevation.de>
parents:
2329
diff
changeset
|
79 <router-link to="/importschedule"> |
1607
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
80 <font-awesome-icon |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
81 class="fa-fw mr-2" |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
82 fixed-width |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
83 icon="clock" |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
84 ></font-awesome-icon> |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
85 <translate class="fix-trans-space">Imports</translate> |
38f91897ca69
import sounding result in new section
Thomas Junk <thomas.junk@intevation.de>
parents:
1575
diff
changeset
|
86 </router-link> |
1416
3af7ad9717e2
Client: add a set fo marked translation
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1413
diff
changeset
|
87 <small class="text-muted pl-3"> |
3af7ad9717e2
Client: add a set fo marked translation
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1413
diff
changeset
|
88 <translate>Systemadministration</translate> |
3af7ad9717e2
Client: add a set fo marked translation
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1413
diff
changeset
|
89 </small> |
1463
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
90 <hr class="m-0" /> |
1777
e70b7b8e7b74
wrong rights rigthed, so they are right now right
Thomas Junk <thomas.junk@intevation.de>
parents:
1757
diff
changeset
|
91 </div> |
e70b7b8e7b74
wrong rights rigthed, so they are right now right
Thomas Junk <thomas.junk@intevation.de>
parents:
1757
diff
changeset
|
92 <div v-if="isSysAdmin"> |
2354
eebe0a8ddc82
sidebar: fixed routing
Thomas Junk <thomas.junk@intevation.de>
parents:
2329
diff
changeset
|
93 <router-link to="/usermanagement"> |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
94 <font-awesome-icon |
1542 | 95 class="fa-fw mr-2" |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
96 fixed-width |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
97 icon="users-cog" |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
98 ></font-awesome-icon> |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
99 <span class="fix-trans-space" v-translate>Users</span> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
100 </router-link> |
2277
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2039
diff
changeset
|
101 </div> |
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2039
diff
changeset
|
102 <div v-if="isWaterwayAdmin"> |
2354
eebe0a8ddc82
sidebar: fixed routing
Thomas Junk <thomas.junk@intevation.de>
parents:
2329
diff
changeset
|
103 <router-link to="/systemconfiguration"> |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
104 <font-awesome-icon |
1542 | 105 class="fa-fw mr-2" |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
106 fixed-width |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
107 icon="wrench" |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
108 ></font-awesome-icon> |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
109 <span class="fix-trans-space" v-translate>Configuration</span> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
110 </router-link> |
2277
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2039
diff
changeset
|
111 </div> |
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2039
diff
changeset
|
112 <div v-if="isSysAdmin"> |
2354
eebe0a8ddc82
sidebar: fixed routing
Thomas Junk <thomas.junk@intevation.de>
parents:
2329
diff
changeset
|
113 <router-link to="/logs"> |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
114 <font-awesome-icon |
1542 | 115 class="fa-fw mr-2" |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
116 fixed-width |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
117 icon="book" |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
118 ></font-awesome-icon> |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
119 <span class="fix-trans-space" v-translate>Logs</span> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
120 </router-link> |
1777
e70b7b8e7b74
wrong rights rigthed, so they are right now right
Thomas Junk <thomas.junk@intevation.de>
parents:
1757
diff
changeset
|
121 </div> |
e70b7b8e7b74
wrong rights rigthed, so they are right now right
Thomas Junk <thomas.junk@intevation.de>
parents:
1757
diff
changeset
|
122 <div v-if="isWaterwayAdmin"> |
2354
eebe0a8ddc82
sidebar: fixed routing
Thomas Junk <thomas.junk@intevation.de>
parents:
2329
diff
changeset
|
123 <router-link to="/importqueue"> |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
124 <font-awesome-icon |
1542 | 125 class="fa-fw mr-2" |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
126 fixed-width |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
127 icon="tasks" |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
128 ></font-awesome-icon> |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
129 <span class="fix-trans-space" v-translate>Importqueue</span> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
130 </router-link> |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
131 </div> |
1463
a6dd2a8183a4
sidebar: added spacer class to import schedule
Thomas Junk <thomas.junk@intevation.de>
parents:
1455
diff
changeset
|
132 <hr class="m-0" /> |
2039 | 133 <a @click="logoff" href="#" class="logout"> |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
134 <font-awesome-icon |
1542 | 135 class="fa-fw mr-2" |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
136 fixed-width |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
137 icon="power-off" |
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1505
diff
changeset
|
138 ></font-awesome-icon> |
1505
a6c2d4252bae
refresh clears notifications
Thomas Junk <thomas.junk@intevation.de>
parents:
1463
diff
changeset
|
139 <span class="fix-trans-space" v-translate>Logout</span> {{ user }} |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
140 </a> |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
141 </div> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
142 </div> |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
143 </template> |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
144 |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
145 <script> |
1362
ca33ad696594
remove the first empyty lines
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1361
diff
changeset
|
146 /* 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
|
147 * 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
|
148 * |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
149 * SPDX-License-Identifier: AGPL-3.0-or-later |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
150 * 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
|
151 * |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
152 * Copyright (C) 2018 by via donau |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
153 * – Österreichische Wasserstraßen-Gesellschaft mbH |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
154 * 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
|
155 * |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
156 * Author(s): |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
157 * Thomas Junk <thomas.junk@intevation.de> |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
158 * Markus Kottländer <markus.kottlaender@intevation.de> |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
159 */ |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
160 import { mapGetters, mapState } from "vuex"; |
1701
f4bd67daaaff
feat: force login on invalid session
Thomas Junk <thomas.junk@intevation.de>
parents:
1650
diff
changeset
|
161 import { logOff } from "@/lib/session.js"; |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
162 |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
163 export default { |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
164 name: "sidebar", |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
165 props: ["routeName"], |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
166 computed: { |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
167 ...mapGetters("user", ["isSysAdmin", "isWaterwayAdmin"]), |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
168 ...mapState("user", ["user"]), |
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 } |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
203 } |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
204 }; |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
205 </script> |
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
206 |
1449 | 207 <style lang="scss" scoped> |
208 .menubutton { | |
209 height: 2rem; | |
210 width: 2rem; | |
211 top: 0; | |
212 left: 0; | |
213 color: #666; | |
214 } | |
215 | |
216 .menu a { | |
217 display: block; | |
218 text-align: left; | |
219 padding: 0.5rem 1rem; | |
220 color: #333; | |
221 text-decoration: none; | |
222 } | |
223 | |
224 .menu a svg path { | |
225 fill: #666; | |
226 } | |
227 | |
228 .menu a:hover { | |
229 background-color: #f8f8f8; | |
230 } | |
231 | |
232 .menu a.router-link-exact-active { | |
233 background-color: #17a2b8; | |
234 color: #fff; | |
235 } | |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
236 |
1449 | 237 .menu a.router-link-exact-active svg path { |
238 fill: #fff; | |
239 } | |
240 | |
241 .menu a.secondary.active { | |
242 background: #ebfafd; | |
243 color: #0f6674; | |
244 } | |
245 | |
246 .menu a.secondary.active svg path { | |
247 fill: #0f6674; | |
248 } | |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
249 |
1449 | 250 .sidebar { |
251 background-color: #ffffff; | |
252 padding-top: $large-offset; | |
253 opacity: $slight-transparent; | |
254 transition: $transition-fast; | |
255 overflow: hidden; | |
256 } | |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
257 |
1449 | 258 .sidebarcollapsed { |
259 max-height: $icon-height; | |
260 max-width: $icon-width; | |
261 } | |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
262 |
1449 | 263 .sidebarextended { |
264 max-width: $sidebar-width; | |
1455
33dda08d67be
unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents:
1449
diff
changeset
|
265 min-width: $sidebar-width; |
1449 | 266 } |
1272
bc55ffaeb639
cleaned up client/src directory
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
267 </style> |