annotate client/src/components/importconfiguration/types/Distancemarksvirtual.vue @ 3947:5da5de770ec4

sr_upload: negate-z-index checkbox added
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 15 Jul 2019 11:45:59 +0200
parents c64c47ff2ab1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 <div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
3 <div class="d-flex px-2">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
4 <div class="flex-column w-100">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
5 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
6 <small class="text-muted"> <translate>URL</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
7 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
8 <div class="w-100">
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
9 <input
2088
e972567100d3 input events for import schedule
Thomas Junk <thomas.junk@intevation.de>
parents: 2069
diff changeset
10 @input="urlChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
11 class="url form-control form-control-sm"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
12 type="url"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
13 :value="url"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
14 />
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
15 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
16 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
17 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
18 <div v-if="!url" class="d-flex px-2">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20 ><translate class="text-danger">Please enter a URL</translate></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
21 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
22 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
23 <div class="d-flex px-2">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
24 <div class="flex-column mt-2 mr-3 w-50">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 <small class="text-muted"> <translate>Username</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 <div class="w-100">
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
29 <input
2088
e972567100d3 input events for import schedule
Thomas Junk <thomas.junk@intevation.de>
parents: 2069
diff changeset
30 @input="usernameChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
31 class="username form-control form-control-sm"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
32 type="text"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
33 :value="username"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
34 />
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
35 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36 <div v-if="!username" class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
38 ><translate class="text-danger"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
39 >Please enter a Username</translate
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
40 ></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
41 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
42 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
43 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
44 <div class="flex-column mt-2 w-50">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
45 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
46 <small class="text-muted"> <translate>Password</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
47 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
48 <div class="w-100 d-flex flex-row">
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
49 <input
2088
e972567100d3 input events for import schedule
Thomas Junk <thomas.junk@intevation.de>
parents: 2069
diff changeset
50 @input="passwordChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
51 class="pasword form-control form-control-sm"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
52 :type="showPassword"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
53 :value="password"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
54 />
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
55 <span
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
56 class="input-group-text ml-2"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
57 @click="passwordVisible = !passwordVisible"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
58 >
2919
6c5364ff0abb client: removed a lot of unnecessary closing tags
Markus Kottlaender <markus@intevation.de>
parents: 2347
diff changeset
59 <font-awesome-icon :icon="passwordVisible ? 'eye-slash' : 'eye'" />
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
60 </span>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
61 </div>
3515
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
62 <div
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
63 v-if="!password && !this.currentSchedule.id"
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
64 class="d-flex flex-row"
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
65 >
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
66 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
67 ><translate class="text-danger"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
68 >Please enter a Password</translate
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
69 ></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
70 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
71 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
72 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
73 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
74 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
75 </template>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
76
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
77 <script>
2069
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
78 /* This is Free Software under GNU Affero General Public License v >= 3.0
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
79 * without warranty, see README.md and license for details.
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
80 *
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
81 * SPDX-License-Identifier: AGPL-3.0-or-later
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
82 * License-Filename: LICENSES/AGPL-3.0.txt
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
83 *
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
84 * Copyright (C) 2018 by via donau
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
85 * – Österreichische Wasserstraßen-Gesellschaft mbH
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
86 * Software engineering by Intevation GmbH
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
87 *
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
88 * Author(s):
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
89 * Thomas Junk <thomas.junk@intevation.de>
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
90 */
3515
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
91
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
92 import { mapState } from "vuex";
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
93 export default {
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
94 name: "distancemarksvirtual",
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
95 props: ["url", "username", "password"],
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
96 data() {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
97 return {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
98 passwordVisible: false
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
99 };
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
100 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
101 computed: {
3515
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
102 ...mapState("importschedule", [
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
103 "importScheduleDetailVisible",
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
104 "currentSchedule"
c64c47ff2ab1 import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
105 ]),
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
106 showPassword() {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
107 if (this.passwordVisible) return "text";
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
108 return "password";
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
109 }
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
110 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
111 methods: {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
112 urlChanged(e) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
113 this.$emit("urlChanged", e.target.value);
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
114 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
115 usernameChanged(e) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
116 this.$emit("usernameChanged", e.target.value);
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
117 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
118 passwordChanged(e) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
119 this.$emit("passwordChanged", e.target.value);
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
120 }
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
121 }
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
122 };
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
123 </script>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
124
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
125 <style></style>