diff --git a/public/mapIcons/photo-16x16.png b/public/mapIcons/photo-16x16.png new file mode 100644 index 0000000..40b9b37 Binary files /dev/null and b/public/mapIcons/photo-16x16.png differ diff --git a/public/mapIcons/photo-32x32.png b/public/mapIcons/photo-32x32.png new file mode 100644 index 0000000..694f02a Binary files /dev/null and b/public/mapIcons/photo-32x32.png differ diff --git a/public/mapIcons/photo-512x512.png b/public/mapIcons/photo-512x512.png new file mode 100644 index 0000000..5be0f44 Binary files /dev/null and b/public/mapIcons/photo-512x512.png differ diff --git a/quasar.config.js b/quasar.config.js index 3b1ac1a..e5e4faa 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -41,15 +41,14 @@ module.exports = configure(function (/* ctx */) { // https://github.com/quasarframework/quasar/tree/dev/extras extras: [ // 'ionicons-v4', - 'mdi-v5', + // 'line-awesome', // 'fontawesome-v6', // 'eva-icons', // 'themify', - // 'line-awesome', // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both! - - 'roboto-font', // optional, you are not bound to it + 'mdi-v5', 'material-icons', // optional, you are not bound to it + 'roboto-font', // optional, you are not bound to it ], // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build diff --git a/src/components/MapWithMarkers.vue b/src/components/MapWithMarkers.vue deleted file mode 100644 index 11a3f14..0000000 --- a/src/components/MapWithMarkers.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - diff --git a/src/components/MapWrapper.vue b/src/components/MapWrapper.vue deleted file mode 100644 index 4f36f45..0000000 --- a/src/components/MapWrapper.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/src/components/aircrafts/AircraftsListSkeleton.vue b/src/components/aircrafts/AircraftsListSkeleton.vue index 4731599..908841d 100644 --- a/src/components/aircrafts/AircraftsListSkeleton.vue +++ b/src/components/aircrafts/AircraftsListSkeleton.vue @@ -6,10 +6,10 @@ import {randomInt} from "src/composables/random"; - + - + diff --git a/src/components/copilots/CopilotEditForm.vue b/src/components/copilots/CopilotEditForm.vue deleted file mode 100644 index 10801af..0000000 --- a/src/components/copilots/CopilotEditForm.vue +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/components/copilots/CopilotForm.vue b/src/components/copilots/CopilotForm.vue new file mode 100644 index 0000000..f9625d3 --- /dev/null +++ b/src/components/copilots/CopilotForm.vue @@ -0,0 +1,30 @@ + + + diff --git a/src/components/copilots/CopilotListSkeleton.vue b/src/components/copilots/CopilotListSkeleton.vue index ad40fc1..f4ab8d8 100644 --- a/src/components/copilots/CopilotListSkeleton.vue +++ b/src/components/copilots/CopilotListSkeleton.vue @@ -1,5 +1,16 @@ - + diff --git a/src/components/copilots/CopilotsList.vue b/src/components/copilots/CopilotsList.vue index 7ebdc7d..88c7e1c 100644 --- a/src/components/copilots/CopilotsList.vue +++ b/src/components/copilots/CopilotsList.vue @@ -16,7 +16,7 @@ const props = defineProps({ - + {{ pilot.name }} diff --git a/src/components/flights/FlightBasicInfo.vue b/src/components/flights/FlightBasicInfo.vue index 956663f..d9bd939 100644 --- a/src/components/flights/FlightBasicInfo.vue +++ b/src/components/flights/FlightBasicInfo.vue @@ -1,6 +1,7 @@ diff --git a/src/components/flights/FlightsListSkeleton.vue b/src/components/flights/FlightsListSkeleton.vue index 1edf1b7..0d4a220 100644 --- a/src/components/flights/FlightsListSkeleton.vue +++ b/src/components/flights/FlightsListSkeleton.vue @@ -1,3 +1,22 @@ + + diff --git a/src/components/flights/form/FlightFormBasic.vue b/src/components/flights/form/FlightFormBasic.vue index e94b78e..3c01512 100644 --- a/src/components/flights/form/FlightFormBasic.vue +++ b/src/components/flights/form/FlightFormBasic.vue @@ -1,9 +1,10 @@ diff --git a/src/components/flights/form/FlightFormCopilot.vue b/src/components/flights/form/FlightFormCopilot.vue index cc41a30..2420fdd 100644 --- a/src/components/flights/form/FlightFormCopilot.vue +++ b/src/components/flights/form/FlightFormCopilot.vue @@ -1,5 +1,5 @@ - - diff --git a/src/components/inputs/ComboboxInput.vue b/src/components/inputs/ComboboxInput.vue index b44c1a4..d9c14e4 100644 --- a/src/components/inputs/ComboboxInput.vue +++ b/src/components/inputs/ComboboxInput.vue @@ -10,6 +10,11 @@ const props = defineProps({ required: false, default: () => [] }, + enableNewValues: { + type: Boolean, + required: false, + default: true, + }, options: { type: Array, required: true, @@ -17,9 +22,9 @@ const props = defineProps({ }) const model = ref({}); -onMounted(() => { - model.value = props.modelValue; -}) +watch(() => props.modelValue, (newVal) => { + model.value = newVal; +}, {immediate: true}); const emit = defineEmits(['update:modelValue', 'clear']); watch(model, (val) => { @@ -84,7 +89,7 @@ const filterFn = (val, update, abort) => { :options="availableOptions" option-label="name" option-value="id" - new-value-mode="add" + :new-value-mode="enableNewValues ? 'add' : 'toggle'" clear-icon="clear" :v-bind="$attrs" > diff --git a/src/components/inputs/DatetimePicker.vue b/src/components/inputs/DatetimePicker.vue index 0db6f94..05d40ec 100644 --- a/src/components/inputs/DatetimePicker.vue +++ b/src/components/inputs/DatetimePicker.vue @@ -10,8 +10,11 @@ const props = defineProps({ type: [String, Boolean], required: false, default: FORMAT_DATETIME_LONG + }, + minDate: { + type: [String, Date], + required: false } - }) let dateModel = ref(""); @@ -36,6 +39,7 @@ onMounted(() => { emitModelUpdate(); } }); +// TODO: ^^ by asi slo prepsat do watchera, viz ComboboxInput const publicModel = computed(() => { @@ -92,7 +96,12 @@ const myLocale = { pluralDay: 'dny' } -// https://quasar.dev/vue-composables/use-form-child - mozna resi ohack s onMounted()? +const isDateValid = (date) => { + if (!props.minDate) return true; + + const minDate = formatDatetime(props.minDate, "YYYY/MM/DD"); + return date >= minDate; +} @@ -107,10 +116,10 @@ const myLocale = {
- +
- +
diff --git a/src/components/inputs/MapGPSInput.vue b/src/components/inputs/MapGPSInput.vue index 7727e76..7b56603 100644 --- a/src/components/inputs/MapGPSInput.vue +++ b/src/components/inputs/MapGPSInput.vue @@ -2,7 +2,7 @@ import {Marker} from "vue3-google-map"; import {onMounted, ref} from "vue"; import axios from "axios"; -import MapWrapper from "components/MapWrapper.vue"; +import MapWrapper from "components/map/MapWrapper.vue"; const center = ref({ lat: 50.1314, diff --git a/src/components/map/EmbeddedMap.vue b/src/components/map/EmbeddedMap.vue new file mode 100644 index 0000000..3e4978a --- /dev/null +++ b/src/components/map/EmbeddedMap.vue @@ -0,0 +1,42 @@ + + +