+
-
+
{{ item.icon }}
@@ -31,36 +38,76 @@
+
+
\ No newline at end of file
diff --git a/frontend/src/routes.js b/frontend/src/routes.js
index 5fbbde2a2..3abc828c0 100644
--- a/frontend/src/routes.js
+++ b/frontend/src/routes.js
@@ -8,12 +8,14 @@ import AllRecipesPage from "./pages/AllRecipesPage";
import CategoryPage from "./pages/CategoryPage";
import MeaplPlanPage from "./pages/MealPlanPage";
import Debug from "./pages/Debug";
+import Login from "./pages/Login";
import MealPlanThisWeekPage from "./pages/MealPlanThisWeekPage";
import api from "@/api";
export const routes = [
{ path: "/", component: HomePage },
{ path: "/mealie", component: HomePage },
+ { path: "/login", component: Login },
{ path: "/debug", component: Debug },
{ path: "/search", component: SearchPage },
{ path: "/recipes/all", component: AllRecipesPage },
diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js
index a4af49226..69dd0ff6a 100644
--- a/frontend/src/store/store.js
+++ b/frontend/src/store/store.js
@@ -20,7 +20,8 @@ const store = new Vuex.Store({
homePage,
},
state: {
- // Home Page Settings
+ // Auth
+ isLoggedIn: true,
// Snackbar
snackActive: false,
snackText: "",
@@ -33,6 +34,9 @@ const store = new Vuex.Store({
},
mutations: {
+ setIsLoggedIn(state, payload) {
+ state.isLoggedIn = payload;
+ },
setSnackBar(state, payload) {
state.snackText = payload.text;
state.snackType = payload.type;
@@ -75,6 +79,7 @@ const store = new Vuex.Store({
getRecentRecipes: state => state.recentRecipes,
getMealPlanCategories: state => state.mealPlanCategories,
+ getIsLoggedIn: state => state.isLoggedIn,
},
});