diff --git a/src/App.vue b/src/App.vue index 0011e48f0..c874442f7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -54,7 +54,14 @@ Mission configuration - +
+ +
@@ -66,16 +73,21 @@ -
-

- {{ store.missionName }} -

+
+
+

{{ store.missionName }}

+

+ {{ randomMissionName }} + +

+
+
(isFullscreen.value ? 'mdi-fullscree // Mission identification const store = useMissionStore() const showMissionOptionsDialog = ref(false) +const randomMissionName = coolMissionNames.random() // Clock const timeNow = useTimestamp({ interval: 1000 }) diff --git a/src/libs/funny-name/words.ts b/src/libs/funny-name/words.ts index 7e2edd58b..6a4fffeb7 100644 --- a/src/libs/funny-name/words.ts +++ b/src/libs/funny-name/words.ts @@ -671,3 +671,38 @@ export const animalsOcean = [ 'worm', 'wrasse', ] + +export const coolMissionNames = [ + 'Diving into the Abyss Explorer', + "Embarking on Neptune's Quest", + 'Exploring the Mariana Mirage', + 'Embarking on an Oceanic Odyssey', + 'Discovering Seabed Serenity', + 'Ascending to Atlantis', + "Conquering Leviathan's Lair", + 'Quest for the Deep Blue', + 'Triumph of Tidal Exploration', + 'Navigating the Nautical Nexus', + 'Venturing into the Sublime Seafloor', + 'Plumbing the Azure Abyss', + "Entering Poseidon's Portal", + 'Decrypting the Coral Cryptic', + 'Venturing into the Vortex', + "Keeping Watch on Kraken's Lair", + 'Investigating the Aqua Anomaly', + 'Symphony with the Sirens', + "Diving into Davy Jones' Abyss", + 'Embarking on a Subaquatic Saga', + 'Consulting the Oceanic Oracle', + 'Navigating the Mystical Maelstrom', + 'Sojourning through the Seastorm', + 'Unlocking Sublime Secrets', + 'Finding Tidal Tranquility', + 'Alchemy of the Abyss', + "Navigating Neptune's Nexus", + "Unraveling the Mariner's Mystery", + 'Symphony of the Submerged', + "Legends in Leviathan's Legacy", + 'Discovering the Deep Blue', + 'Solving the Nautical Enigma', +] diff --git a/src/stores/mission.ts b/src/stores/mission.ts index 169868c25..7742229bf 100644 --- a/src/stores/mission.ts +++ b/src/stores/mission.ts @@ -1,13 +1,16 @@ import { useStorage } from '@vueuse/core' import { defineStore } from 'pinia' -import { reactive } from 'vue' +import { reactive, ref, watch } from 'vue' import type { Waypoint, WaypointCoordinates } from '@/types/mission' export const useMissionStore = defineStore('mission', () => { - const missionName = useStorage('cockpit-mission-name', '') + const missionName = ref('') + const lastMissionName = useStorage('cockpit-last-mission-name', '') const missionStartTime = useStorage('cockpit-mission-start-time', new Date()) + watch(missionName, () => (lastMissionName.value = missionName.value)) + const currentPlanningWaypoints = reactive([]) const moveWaypoint = (id: string, newCoordinates: WaypointCoordinates): void => { @@ -21,5 +24,5 @@ export const useMissionStore = defineStore('mission', () => { ) } - return { missionName, missionStartTime, currentPlanningWaypoints, moveWaypoint } + return { missionName, lastMissionName, missionStartTime, currentPlanningWaypoints, moveWaypoint } })