mirror of
https://github.com/andreicscs/HoneyWire
synced 2026-06-26 12:39:53 +00:00
updated imports and organized frontend stores
This commit is contained in:
+3
-3
@@ -13,9 +13,9 @@ import Settings from './views/Settings.vue'
|
||||
import Setup from './views/Setup.vue'
|
||||
|
||||
import { useConfig } from './api/useConfig'
|
||||
import { useAppStore } from './stores/app'
|
||||
import { useFleetStore } from './stores/fleet'
|
||||
import { useEventsStore } from './stores/events'
|
||||
import { useAppStore } from './stores/System/app'
|
||||
import { useFleetStore } from './stores/Fleet/fleet'
|
||||
import { useEventsStore } from './stores/Events/events'
|
||||
import { HoneyWireWS } from './services/ws'
|
||||
|
||||
const { fetchConfig } = useConfig()
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script setup>
|
||||
import { ref, computed, nextTick, watch } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useAppStore } from '../../stores/app'
|
||||
import { useEventsStore } from '../../stores/events'
|
||||
import { useFleetStore } from '../../stores/fleet'
|
||||
import { useAppStore } from '../../stores/System/app'
|
||||
import { useEventsStore } from '../../stores/Events/events'
|
||||
import { useFleetStore } from '../../stores/Fleet/fleet'
|
||||
import { formatSensorId } from '../../utils/formatSensorId'
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
import { ref, onMounted, watch, onUnmounted } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import Chart from 'chart.js/auto'
|
||||
import { useEventsStore } from '../../stores/events'
|
||||
import { useFleetStore } from '../../stores/fleet'
|
||||
import { useAppStore } from '../../stores/app'
|
||||
import { useEventsStore } from '../../stores/Events/events'
|
||||
import { useFleetStore } from '../../stores/Fleet/fleet'
|
||||
import { useAppStore } from '../../stores/System/app'
|
||||
import { getComputedRgb } from '../../utils/theme'
|
||||
import { baseTooltipConfig, applyChartTheme } from '../../utils/chartConfig'
|
||||
import BaseLegend from '../ui/feedback/BaseLegend.vue'
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
import { ref, onMounted, watch, onUnmounted, shallowRef, nextTick } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import Chart from 'chart.js/auto'
|
||||
import { useAppStore } from '../../stores/app'
|
||||
import { useEventsStore } from '../../stores/events'
|
||||
import { useFleetStore } from '../../stores/fleet'
|
||||
import { useAppStore } from '../../stores/System/app'
|
||||
import { useEventsStore } from '../../stores/Events/events'
|
||||
import { useFleetStore } from '../../stores/Fleet/fleet'
|
||||
import { getComputedRgb, injectAlpha } from '../../utils/theme'
|
||||
import { baseTooltipConfig } from '../../utils/chartConfig'
|
||||
import BaseTimeFilter from '../ui/forms/BaseTimeFilter.vue'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import { ref, computed, nextTick, watch, onMounted } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useFleetStore } from '../../stores/fleet'
|
||||
import { useFleetStore } from '../../stores/Fleet/fleet'
|
||||
import BaseMeatballMenu from '../ui/navigation/BaseMeatballMenu.vue'
|
||||
import BaseStatusDot from '../ui/feedback/BaseStatusDot.vue'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import { ref, computed, nextTick, watch, onMounted, onUnmounted } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useFleetStore } from '../../stores/fleet'
|
||||
import { useFleetStore } from '../../stores/Fleet/fleet'
|
||||
import BaseTimeFilter from '../ui/forms/BaseTimeFilter.vue'
|
||||
import BaseWidget from '../ui/layout/BaseWidget.vue'
|
||||
import BaseLegend from '../ui/feedback/BaseLegend.vue'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useAppStore } from '../../stores/app'
|
||||
import { useEventsStore } from '../../stores/events'
|
||||
import { useAppStore } from '../../stores/System/app'
|
||||
import { useEventsStore } from '../../stores/Events/events'
|
||||
|
||||
const appStore = useAppStore()
|
||||
const eventsStore = useEventsStore()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useAppStore } from '../../stores/app'
|
||||
import { useEventsStore } from '../../stores/events'
|
||||
import { useAppStore } from '../../stores/System/app'
|
||||
import { useEventsStore } from '../../stores/Events/events'
|
||||
|
||||
const appStore = useAppStore()
|
||||
const eventsStore = useEventsStore()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref, computed } from 'vue'
|
||||
import { useFleetStore } from './fleet'
|
||||
import { useAppStore } from './app'
|
||||
import { useFleetStore } from '../Fleet/fleet'
|
||||
import { useAppStore } from '../System/app'
|
||||
|
||||
/**
|
||||
* Events Store (Telemetry State)
|
||||
@@ -1,6 +1,6 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref, computed } from 'vue'
|
||||
import { api } from '../api/client'
|
||||
import { api } from '../../api/client'
|
||||
|
||||
export const useFleetStore = defineStore('fleet', () => {
|
||||
// --- 1. AUTHORITATIVE BACKEND SNAPSHOT STATE ---
|
||||
@@ -1,6 +1,6 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref, computed } from 'vue'
|
||||
import { api } from '../api/client'
|
||||
import { api } from '../../api/client'
|
||||
|
||||
export const useAppStore = defineStore('app', () => {
|
||||
// ==========================================
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import { ref, computed, onMounted, nextTick } from 'vue'
|
||||
import { useAppStore } from '../stores/app'
|
||||
import { useFleetStore } from '../stores/fleet'
|
||||
import { useAppStore } from '../stores/System/app'
|
||||
import { useFleetStore } from '../stores/Fleet/fleet'
|
||||
import PageHeader from '../components/ui/layout/PageHeader.vue'
|
||||
import BaseWidget from '../components/ui/layout/BaseWidget.vue'
|
||||
import BaseStatusDot from '../components/ui/feedback/BaseStatusDot.vue'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { useAppStore } from '../stores/app'
|
||||
import { useAppStore } from '../stores/System/app'
|
||||
import BaseInput from '../components/ui/forms/BaseInput.vue'
|
||||
import BaseButton from '../components/ui/forms/BaseButton.vue'
|
||||
import BaseCard from '../components/ui/layout/BaseCard.vue'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup>
|
||||
import { ref, watch, computed, onMounted, nextTick } from 'vue'
|
||||
import { useAppStore } from '../stores/app'
|
||||
import { useFleetStore } from '../stores/fleet'
|
||||
import { useEventsStore } from '../stores/events'
|
||||
import { useAppStore } from '../stores/System/app'
|
||||
import { useFleetStore } from '../stores/Fleet/fleet'
|
||||
import { useEventsStore } from '../stores/Events/events'
|
||||
import { useConfig } from '../api/useConfig'
|
||||
import BaseButton from '../components/ui/forms/BaseButton.vue'
|
||||
import BaseStatusDot from '../components/ui/feedback/BaseStatusDot.vue'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
import { ref, watch, computed } from 'vue'
|
||||
import { useAppStore } from '../stores/app'
|
||||
import { useAppStore } from '../stores/System/app'
|
||||
import { useConfig } from '../api/useConfig'
|
||||
import BaseButton from '../components/ui/forms/BaseButton.vue'
|
||||
import BaseInput from '../components/ui/forms/BaseInput.vue'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { useAppStore } from '../stores/app'
|
||||
import { useAppStore } from '../stores/System/app'
|
||||
import BaseInput from '../components/ui/forms/BaseInput.vue'
|
||||
import BaseButton from '../components/ui/forms/BaseButton.vue'
|
||||
import BaseCard from '../components/ui/layout/BaseCard.vue'
|
||||
|
||||
Reference in New Issue
Block a user