annotate client/src/components/importschedule/importtypes/Bottleneck.vue @ 2586:bc1b43885a4d

Expose axis snapping tolerance in bottleneck upload import
author Tom Gottfried <tom@intevation.de>
date Mon, 11 Mar 2019 17:31:39 +0100
parents dc4fae4bdb8f
children 8d767359fddb
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>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
3 <div class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
4 <div class="flex-column mt-3 mr-3 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">
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
7 <small class="text-muted"> <translate>URL</translate> </small>
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
8 </div>
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
9 <div class="w-100">
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
10 <input
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
11 @input="urlChanged"
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
12 class="url form-control"
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
13 type="url"
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
14 :value="url"
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
15 />
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
16 </div>
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
17 </template>
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
18 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 <div v-if="false" class="flex-column mt-3 text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20 <div class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
21 <small class="text-muted mr-2"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
22 ><translate>Insecure</translate>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
24 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 <div class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 <toggle-button
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 v-model="insecure"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 class="mt-2"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
29 :speed="100"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
30 :color="{
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
31 checked: '#FF0000',
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
32 unchecked: '#E9ECEF',
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
33 disabled: '#CCCCCC'
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
34 }"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
35 :labels="{
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36 checked: this.$options.on,
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37 unchecked: this.$options.off
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
38 }"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
39 :width="60"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
40 :height="30"
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>
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 v-if="!url" class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
46 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
47 ><translate class="text-danger">Please enter a URL</translate></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
48 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
49 </div>
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
50 <div class="d-flex flex-row">
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
51 <div class="flex-column mt-3 mr-3 w-50">
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
52 <div class="flex-row text-left">
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
53 <small class="text-muted">
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
54 <translate>Tolerance for snapping of waterway axis</translate>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
55 </small>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
56 </div>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
57 <div class="w-100">
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
58 <input
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
59 @input="toleranceChanged"
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
60 class="tolerance form-control"
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
61 type="number"
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
62 :value="tolerance"
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
63 />
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
64 </div>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
65 <div v-if="!tolerance" class="d-flex flex-row">
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
66 <small
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
67 ><translate class="text-danger"
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
68 >Please enter a tolerance value</translate
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 >
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
71 </div>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
72 </div>
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
73 </div>
1992
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 *
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
84 * Copyright (C) 2018, 2019 by via donau
2069
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>
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
90 * Tom Gottfried <tom.gottfried@intevation.de>
2069
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
91 */
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
92 export default {
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
93 name: "bottleneckimport",
2586
bc1b43885a4d Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents: 2563
diff changeset
94 props: ["url", "tolerance", "directImport"],
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
95 methods: {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
96 urlChanged(e) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
97 this.$emit("urlChanged", e.target.value);
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
98 },
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
99 toleranceChanged(e) {
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2269
diff changeset
100 this.$emit("toleranceChanged", e.target.value);
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
101 }
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
102 }
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
103 };
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
104 </script>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
105
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
106 <style></style>