Mercurial > gemma
annotate client/src/components/importconfiguration/types/Bottleneck.vue @ 5281:cda87159b431
[security] Fixed vulnerability in golang.org/x/text/encoding/unicode
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 19 Jun 2020 16:19:57 +0200 |
parents | 439e1865a2d2 |
children |
rev | line source |
---|---|
1992 | 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 | 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 | 22 <div class="d-flex flex-row"> |
23 <small class="text-muted mr-2" | |
24 ><translate>Insecure</translate> | |
25 </small> | |
26 </div> | |
27 <div class="d-flex flex-row"> | |
28 <toggle-button | |
29 v-model="insecure" | |
30 class="mt-2" | |
31 :speed="100" | |
32 :color="{ | |
33 checked: '#FF0000', | |
34 unchecked: '#E9ECEF', | |
35 disabled: '#CCCCCC' | |
36 }" | |
37 :labels="{ | |
38 checked: this.$options.on, | |
39 unchecked: this.$options.off | |
40 }" | |
41 :width="60" | |
42 :height="30" | |
43 /> | |
44 </div> | |
45 </div> | |
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 | 48 <small |
49 ><translate class="text-danger">Please enter a URL</translate></small | |
50 > | |
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 | 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 | 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 | 77 </div> |
78 </template> | |
79 | |
80 <script> | |
2069 | 81 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
82 * without warranty, see README.md and license for details. | |
83 * | |
84 * SPDX-License-Identifier: AGPL-3.0-or-later | |
85 * License-Filename: LICENSES/AGPL-3.0.txt | |
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 | 88 * – Österreichische Wasserstraßen-Gesellschaft mbH |
89 * Software engineering by Intevation GmbH | |
90 * | |
91 * Author(s): | |
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 | 94 */ |
1992 | 95 export default { |
1996 | 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 | 98 methods: { |
99 urlChanged(e) { | |
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 | 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 | 108 }; |
109 </script> | |
110 | |
111 <style></style> |