annotate client/src/components/importconfiguration/types/Bottleneck.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 439e1865a2d2
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>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
2 <div class="p-2">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
3 <div class="d-flex">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
4 <div class="flex-column w-100">
2586
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
5 <template v-if="!directImport">
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
6 <div class="flex-row text-left">
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
7 <small class="text-muted">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
8 <translate>URL</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
9 </small>
2586
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
10 </div>
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
11 <div class="w-100">
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
12 <input
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
13 @input="urlChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
14 class="url form-control form-control-sm"
2586
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
15 type="url"
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
16 :value="url"
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
17 />
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
18 </div>
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
19 </template>
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
21 <div v-if="false" class="flex-column mt-2 text-left">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
22 <div class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 <small class="text-muted mr-2"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
24 ><translate>Insecure</translate>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 <div class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 <toggle-button
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
29 v-model="insecure"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
30 class="mt-2"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
31 :speed="100"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
32 :color="{
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
33 checked: '#FF0000',
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
34 unchecked: '#E9ECEF',
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
35 disabled: '#CCCCCC'
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36 }"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37 :labels="{
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
38 checked: this.$options.on,
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
39 unchecked: this.$options.off
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
40 }"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
41 :width="60"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
42 :height="30"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
43 />
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
44 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
45 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
46 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
47 <div v-if="!directImport && !url" class="d-flex">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
48 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
49 ><translate class="text-danger">Please enter a URL</translate></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
50 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
51 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
52 <div class="d-flex">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
53 <div class="flex-column mt-2 mr-3 w-50">
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
54 <div class="flex-row text-left">
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
55 <small class="text-muted">
2603
8d767359fddb Improve tolerance input
Tom Gottfried <tom@intevation.de>
parents: 2586
diff changeset
56 <translate>Tolerance for snapping of waterway axis [m]</translate>
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
57 </small>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
58 </div>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
59 <div class="w-100">
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
60 <input
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
61 @input="toleranceChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
62 class="tolerance form-control form-control-sm"
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
63 type="number"
2603
8d767359fddb Improve tolerance input
Tom Gottfried <tom@intevation.de>
parents: 2586
diff changeset
64 min="0"
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
65 :value="tolerance"
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
66 />
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
67 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 3156
diff changeset
68 <div v-if="!tolerance" class="d-flex">
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
69 <small
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
70 ><translate class="text-danger"
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
71 >Please enter a tolerance value</translate
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
72 ></small
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
73 >
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
74 </div>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
75 </div>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
76 </div>
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
77 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
78 </template>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
79
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
80 <script>
2069
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
81 /* 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
82 * without warranty, see README.md and license for details.
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 * SPDX-License-Identifier: AGPL-3.0-or-later
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
85 * License-Filename: LICENSES/AGPL-3.0.txt
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
86 *
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
87 * Copyright (C) 2018, 2019 by via donau
2069
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
88 * – Österreichische Wasserstraßen-Gesellschaft mbH
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
89 * Software engineering by Intevation GmbH
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
90 *
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
91 * Author(s):
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
92 * Thomas Junk <thomas.junk@intevation.de>
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
93 * Tom Gottfried <tom.gottfried@intevation.de>
2069
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
94 */
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
95 export default {
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
96 name: "bottleneckimport",
2586
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
97 props: ["url", "tolerance", "directImport"],
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
98 methods: {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
99 urlChanged(e) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
100 this.$emit("urlChanged", e.target.value);
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
101 },
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
102 toleranceChanged(e) {
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
103 this.$emit("toleranceChanged", e.target.value);
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
104 }
3156
cb3b31566e48 import_configuration: added missing labels
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
105 },
cb3b31566e48 import_configuration: added missing labels
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
106 on: "on",
cb3b31566e48 import_configuration: added missing labels
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
107 off: "off"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
108 };
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
109 </script>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
110
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
111 <style></style>