fixed frontend building warnings
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
// Version is the application version
|
// Version is the application version
|
||||||
const Version = "0.1.37"
|
const Version = "0.1.38"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// GitCommit will be set by build flags or detected at runtime
|
// GitCommit will be set by build flags or detected at runtime
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# Frontend Version Management
|
# Frontend Version Management
|
||||||
|
|
||||||
## Current Version: 0.1.29
|
## Current Version: 0.1.30
|
||||||
|
|
||||||
The frontend version is managed independently from the backend.
|
The frontend version is managed independently from the backend.
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bamort-frontend",
|
"name": "bamort-frontend",
|
||||||
"version": "0.1.29",
|
"version": "0.1.30",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "SEE LICENSE IN LICENSE",
|
"license": "SEE LICENSE IN LICENSE",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -1,22 +1,26 @@
|
|||||||
import { createRouter, createWebHistory } from "vue-router";
|
import { createRouter, createWebHistory } from "vue-router";
|
||||||
import { isLoggedIn } from "../utils/auth"; // Import the helper function
|
import { isLoggedIn } from "../utils/auth";
|
||||||
|
import { useUserStore } from '../stores/userStore';
|
||||||
|
|
||||||
|
// Static imports for landing/auth pages (needed immediately)
|
||||||
import LandingView from "../views/LandingView.vue";
|
import LandingView from "../views/LandingView.vue";
|
||||||
import LoginView from "../views/LoginView.vue";
|
import LoginView from "../views/LoginView.vue";
|
||||||
import RegisterView from "../views/RegisterView.vue";
|
import RegisterView from "../views/RegisterView.vue";
|
||||||
import ForgotPasswordView from "../views/ForgotPasswordView.vue";
|
import ForgotPasswordView from "../views/ForgotPasswordView.vue";
|
||||||
import ResetPasswordView from "../views/ResetPasswordView.vue";
|
import ResetPasswordView from "../views/ResetPasswordView.vue";
|
||||||
import DashboardView from "../views/DashboardView.vue";
|
|
||||||
import AusruestungView from "../views/AusruestungView.vue";
|
|
||||||
import MaintenanceView from "../views/MaintenanceView.vue";
|
|
||||||
import FileUploadPage from "../views/FileUploadPage.vue";
|
|
||||||
import UserProfileView from "../views/UserProfileView.vue";
|
|
||||||
import UserManagementView from "../views/UserManagementView.vue";
|
|
||||||
import SponsorsView from "../views/SponsorsView.vue";
|
|
||||||
import HelpView from "../views/HelpView.vue";
|
|
||||||
import SystemInfoView from "../views/SystemInfoView.vue";
|
|
||||||
|
|
||||||
import CharacterDetails from "@/components/CharacterDetails.vue";
|
// Lazy-loaded views (code-split into separate chunks)
|
||||||
import CharacterCreation from "@/components/CharacterCreation.vue";
|
const DashboardView = () => import("../views/DashboardView.vue");
|
||||||
|
const AusruestungView = () => import("../views/AusruestungView.vue");
|
||||||
|
const MaintenanceView = () => import("../views/MaintenanceView.vue");
|
||||||
|
const FileUploadPage = () => import("../views/FileUploadPage.vue");
|
||||||
|
const UserProfileView = () => import("../views/UserProfileView.vue");
|
||||||
|
const UserManagementView = () => import("../views/UserManagementView.vue");
|
||||||
|
const SponsorsView = () => import("../views/SponsorsView.vue");
|
||||||
|
const HelpView = () => import("../views/HelpView.vue");
|
||||||
|
const SystemInfoView = () => import("../views/SystemInfoView.vue");
|
||||||
|
const CharacterDetails = () => import("@/components/CharacterDetails.vue");
|
||||||
|
const CharacterCreation = () => import("@/components/CharacterCreation.vue");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -55,7 +59,6 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
next({ name: "Login" });
|
next({ name: "Login" });
|
||||||
} else if (to.meta.requiresAdmin) {
|
} else if (to.meta.requiresAdmin) {
|
||||||
// Check if route requires admin role
|
// Check if route requires admin role
|
||||||
const { useUserStore } = await import('../stores/userStore')
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
// Fetch user if not already loaded
|
// Fetch user if not already loaded
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Frontend version information
|
// Frontend version information
|
||||||
export const VERSION = '0.1.29'
|
export const VERSION = '0.1.30'
|
||||||
|
|
||||||
// Git commit will be injected at build time or detected from env
|
// Git commit will be injected at build time or detected from env
|
||||||
export const GIT_COMMIT = import.meta.env.VITE_GIT_COMMIT || 'unknown'
|
export const GIT_COMMIT = import.meta.env.VITE_GIT_COMMIT || 'unknown'
|
||||||
|
|||||||
Reference in New Issue
Block a user