diff --git a/package.json b/package.json index 0234dc6..7aeaf37 100644 --- a/package.json +++ b/package.json @@ -3,63 +3,68 @@ "version": "0.0.0", "private": true, "scripts": { - "dev": "vite", - "build": "run-p build-only", - "preview": "vite preview", - "test:unit": "vitest --environment jsdom --root src/", - "test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'", - "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'", - "build-only": "vite build", - "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false", - "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" + "dev": "vite", + "build": "run-p build-only", + "preview": "vite preview", + "test:unit": "vitest --environment jsdom --root src/", + "test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'", + "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'", + "build-only": "vite build", + "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false", + "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" }, "dependencies": { - "@fullcalendar/core": "^6.0.1", - "@fullcalendar/daygrid": "^6.0.1", - "@fullcalendar/interaction": "^6.0.2", - "@fullcalendar/list": "^6.0.2", - "@fullcalendar/react": "^6.0.1", - "@fullcalendar/timegrid": "^6.0.2", - "@fullcalendar/vue3": "^6.0.1", - "@quasar/extras": "^1.15.8", - "@tato30/vue-pdf": "^1.5.1", - "@vuepic/vue-datepicker": "^3.6.3", - "bma-org-chart": "^0.0.7", - "keycloak-js": "^20.0.2", - "moment": "^2.29.4", - "pinia": "^2.0.29", - "quasar": "^2.11.1", - "structure-chart": "^0.0.9", - "vue": "^3.2.45", - "vue-router": "^4.1.6", - "vue3-datepicker": "^0.3.4", - "vue3-pdfjs": "^0.1.6" + "@fullcalendar/core": "^6.0.1", + "@fullcalendar/daygrid": "^6.0.1", + "@fullcalendar/interaction": "^6.0.2", + "@fullcalendar/list": "^6.0.2", + "@fullcalendar/react": "^6.0.1", + "@fullcalendar/timegrid": "^6.0.2", + "@fullcalendar/vue3": "^6.0.1", + "@quasar/extras": "^1.15.8", + "@tato30/vue-pdf": "^1.5.1", + "@types/geojson": "^7946.0.10", + "@vuepic/vue-datepicker": "^3.6.3", + "bma-org-chart": "^0.0.7", + "keycloak-js": "^20.0.2", + "moment": "^2.29.4", + "ol": "^7.5.2", + "ol-contextmenu": "^5.2.1", + "ol-ext": "^4.0.11", + "pinia": "^2.0.29", + "quasar": "^2.11.1", + "structure-chart": "^0.0.9", + "vue": "^3.2.45", + "vue-router": "^4.1.6", + "vue3-datepicker": "^0.3.4", + "vue3-openlayers": "^1.2.2", + "vue3-pdfjs": "^0.1.6" }, "devDependencies": { - "@quasar/vite-plugin": "^1.3.0", - "@rushstack/eslint-patch": "^1.1.4", - "@types/jsdom": "^20.0.1", - "@types/node": "^18.11.12", - "@vitejs/plugin-vue": "^4.0.0", - "@vitejs/plugin-vue-jsx": "^3.0.0", - "@vue/eslint-config-prettier": "^7.0.0", - "@vue/eslint-config-typescript": "^11.0.0", - "@vue/test-utils": "^2.2.6", - "@vue/tsconfig": "^0.1.3", - "cypress": "^12.0.2", - "eslint": "^8.22.0", - "eslint-plugin-cypress": "^2.12.1", - "eslint-plugin-vue": "^9.3.0", - "jsdom": "^20.0.3", - "npm-run-all": "^4.1.5", - "prettier": "^2.7.1", - "sass": "^1.32.12", - "start-server-and-test": "^1.15.2", - "typescript": "~4.7.4", - "vite": "^4.0.0", - "vitest": "^0.25.6", - "vue-table-to-excel": "^1.0.6", - "vue-tsc": "^1.0.12" + "@quasar/vite-plugin": "^1.3.0", + "@rushstack/eslint-patch": "^1.1.4", + "@types/jsdom": "^20.0.1", + "@types/leaflet": "^1.9.4", + "@types/node": "^18.11.12", + "@vitejs/plugin-vue": "^4.0.0", + "@vitejs/plugin-vue-jsx": "^3.0.0", + "@vue/eslint-config-prettier": "^7.0.0", + "@vue/eslint-config-typescript": "^11.0.0", + "@vue/test-utils": "^2.2.6", + "@vue/tsconfig": "^0.1.3", + "cypress": "^12.0.2", + "eslint": "^8.22.0", + "eslint-plugin-cypress": "^2.12.1", + "eslint-plugin-vue": "^9.3.0", + "jsdom": "^20.0.3", + "npm-run-all": "^4.1.5", + "prettier": "^2.7.1", + "sass": "^1.32.12", + "start-server-and-test": "^1.15.2", + "typescript": "~4.7.4", + "vite": "^4.0.0", + "vitest": "^0.25.6", + "vue-table-to-excel": "^1.0.6", + "vue-tsc": "^1.0.12" } - } - \ No newline at end of file +} diff --git a/src/main.ts b/src/main.ts index a100a49..35ffad3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,6 +9,7 @@ import "@vuepic/vue-datepicker/dist/main.css" import "quasar/src/css/index.sass" import http from "./plugins/http" +import OpenLayersMap from "vue3-openlayers"; // import './assets/main.css' @@ -25,6 +26,7 @@ app.use(Quasar, { }, lang: th, }) +app.use(OpenLayersMap /* options */); app.component( "datepicker", diff --git a/src/modules/04_checkin/componenst/mapCheck.vue b/src/modules/04_checkin/componenst/mapCheck.vue new file mode 100644 index 0000000..189d763 --- /dev/null +++ b/src/modules/04_checkin/componenst/mapCheck.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/modules/04_checkin/views/Checkin.vue b/src/modules/04_checkin/views/Checkin.vue index 331f717..058859e 100644 --- a/src/modules/04_checkin/views/Checkin.vue +++ b/src/modules/04_checkin/views/Checkin.vue @@ -1,83 +1,138 @@