|
1 | 1 | <template> |
2 | | - <v-container> |
| 2 | + <v-container class="mb-16"> |
3 | 3 | <h1 class="text-center mt-4">Report a New ALPR</h1> |
4 | 4 |
|
5 | 5 | <p> |
|
66 | 66 | value="4" |
67 | 67 | editable |
68 | 68 | > |
69 | | - <v-img max-width="450" class="my-8" src="/adjust-angle.png" /> |
| 69 | + <v-img |
| 70 | + max-width="450" |
| 71 | + class="my-8" |
| 72 | + src="/adjust-angle.png" |
| 73 | + /> |
70 | 74 | <p> |
71 | 75 | If you know the direction that the ALPR is facing, you can use the up and down arrows to set the direction it faces. |
72 | 76 | </p> |
|
80 | 84 | editable |
81 | 85 | > |
82 | 86 | <p> |
83 | | - Once you've added the ALPR to the map, click the <strong>Save</strong> button in the top right corner of the editor. You'll be asked to provide a brief description of your changes. Once you've submitted your changes, the ALPR will be added to OpenStreetMap. |
| 87 | + Once you've added the ALPR to the map, click the <strong>Save</strong> button in the top left corner of the editor. You'll be asked to provide a brief description of your changes. Once you've submitted your changes, the ALPR will be added to OpenStreetMap. |
84 | 88 | </p> |
85 | 89 | <v-alert |
86 | 90 | variant="tonal" |
|
89 | 93 | title="How Long Will It Take?" |
90 | 94 | > |
91 | 95 | <p> |
92 | | - We pull data from OpenStreetMap <i>hourly</i>, so it may take up to an hour for your changes to appear on this site. Rest assured that your changes will be reflected here soon. As we continue to scale, we hope to reduce this delay. |
| 96 | + We pull data from OpenStreetMap <i>daily</i>, so it may take up to 24 hours for your changes to appear on this site. Rest assured that your changes will be reflected here soon. As we continue to scale, we hope to reduce this delay. |
93 | 97 | </p> |
94 | 98 | </v-alert> |
95 | 99 | </v-stepper-vertical-item> |
|
104 | 108 | <p> |
105 | 109 | Download our <a href="/deflock-poster.pdf" target="_blank">ALPR sign</a> and hang it near the ALPR to help raise awareness about the device. Be sure to follow all local laws and regulations when hanging signs. |
106 | 110 | </p> |
107 | | - |
108 | | - <template v-slot:next> |
109 | | - <v-btn |
110 | | - color="primary" |
111 | | - disabled |
112 | | - > |
113 | | - Next |
114 | | - </v-btn> |
115 | | - </template> |
116 | 111 | </v-stepper-vertical-item> |
117 | 112 | </template> |
118 | 113 | </v-stepper-vertical> |
119 | | - |
120 | | - <h2 class="text-center">Edit an Existing ALPR</h2> |
121 | | - <p class="mb-16"> |
122 | | - If you find an ALPR that's missing information and would like to update it, you can click the <b>View on OSM</b> button to edit it in the OpenStreetMap editor. |
123 | | - </p> |
124 | 114 | </v-container> |
| 115 | + |
125 | 116 | <Footer /> |
126 | 117 | </template> |
127 | 118 |
|
128 | 119 | <script setup lang="ts"> |
| 120 | +import { ref, onMounted, watch } from 'vue'; |
129 | 121 | import OSMTagSelector from '@/components/OSMTagSelector.vue'; |
| 122 | +import { VStepperVerticalItem, VStepperVertical } from 'vuetify/labs/components'; |
130 | 123 | import Footer from '@/components/layout/Footer.vue'; |
131 | | -import { ref } from 'vue'; |
132 | | -import { VStepperVertical, VStepperVerticalItem } from 'vuetify/labs/VStepperVertical'; |
133 | 124 |
|
134 | | -const step = ref(1); |
135 | | -</script> |
| 125 | +const step = ref(parseInt(localStorage.getItem('currentStep') || '1')); |
136 | 126 |
|
137 | | -<style scoped> |
138 | | -@import url('@/assets/typography.css'); |
| 127 | +onMounted(() => { |
| 128 | + step.value = parseInt(localStorage.getItem('currentStep') || '1'); |
| 129 | +}); |
139 | 130 |
|
140 | | -.transparent { |
141 | | - background-color: transparent !important; |
142 | | -} |
143 | | -</style> |
| 131 | +watch(step, (newStep) => { |
| 132 | + localStorage.setItem('currentStep', newStep.toString()); |
| 133 | +}); |
| 134 | +</script> |
0 commit comments