Home page
+File Name | +File Name | Date/Time Imported | +|
---|---|---|---|
+ | {{ item.original_filename }} @@ -26,6 +34,16 @@ | {{ item.timestamp }} | ++ | +
+ + | ++ + |
{{ msg }}
@@ -11,20 +11,21 @@{{ item }}
+{{ item }}
Import Data
-Only KML/KMZ files supported.
-+
Only KML/KMZ files supported.
+Be careful not to upload duplicate files of the opposite type. For example, do not upload both example.kml and example.kmz. Currently, the system can't detect @@ -12,17 +15,36 @@
${capitalizeFirstLetter(response.data.msg).trim(".")}.
Continue to Import`
+ this.uploadMsg = capitalizeFirstLetter(response.data.msg).trim(".") + "."
+ this.uploadResponse = `Continue to Import`
await this.fetchQueueList()
this.file = null
document.getElementById("uploadInput").value = ""
- this.disableUpload = false
} catch (error) {
this.handleError(error)
}
+ this.disableUpload = false
},
handleError(error) {
console.error("Upload failed:", error)
diff --git a/src/geo-frontend/src/components/import/parts/importqueue.vue b/src/geo-frontend/src/components/import/parts/importqueue.vue
index 5b8da53..68dcaa9 100644
--- a/src/geo-frontend/src/components/import/parts/importqueue.vue
+++ b/src/geo-frontend/src/components/import/parts/importqueue.vue
@@ -1,32 +1,45 @@
-
@@ -45,13 +58,16 @@ export default {
components: {},
mixins: [authMixin],
data() {
- return {}
+ return {
+ isLoading: true,
+ }
},
methods: {
async fetchQueueList() {
const response = await axios.get(IMPORT_QUEUE_LIST_URL)
const ourImportQueue = response.data.data.map((item) => new ImportQueueItem(item))
this.$store.commit('importQueue', ourImportQueue)
+ this.isLoading = false
},
async deleteItem(item, index) {
if (window.confirm(`Delete "${item.original_filename}" (#${item.id})`))
diff --git a/src/geo-frontend/src/components/parts/Loader.vue b/src/geo-frontend/src/components/parts/Loader.vue
new file mode 100644
index 0000000..711feff
--- /dev/null
+++ b/src/geo-frontend/src/components/parts/Loader.vue
@@ -0,0 +1,22 @@
+
+
-
File Name
- Features
-
+ File Name
+ Features
+
-
+
+
{{
item.original_filename
}}
-
+
{{ item.processing === true ? "processing" : item.feature_count }}
-
+
+
+
+
+
+
+
+
+
+
+