-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Dashboard.vue and Widget.vue components
- Simplified the structure of the Dashboard.vue component by removing unnecessary nested div elements. - Updated the Widget.vue component to conditionally render the component based on the "component" prop and added opacity transition effect. - Removed the OptionalInput component from the formkit.config.ts file. Rename filepaths and components - Renamed the frontend/src/views/AdminViews/FlowEditor.vue file to frontend/src/modules/admin/pages/FlowEditor.vue. - Renamed the frontend/src/views/AdminViews/HomeView.vue file to frontend/src/modules/admin/pages/Home.vue. - Renamed the frontend/src/views/AdminViews/InvitationsView.vue file to frontend/src/modules/admin/pages/Invitations.vue. - Renamed the frontend/src/views/AdminViews/SettingsView.vue file to frontend/src/modules/admin/pages/Settings.vue. - Renamed the frontend/src/views/AdminViews/UsersView.vue file to frontend/src/modules/admin/pages/Users.vue. - Created the frontend/src/modules/admin/router/children.ts file to define child routes for the admin module. - Created the frontend/src/modules/admin/router/index.ts file to define routes for the admin module. - Renamed the frontend/src/views/AdminViews/AdminView.vue file to frontend/src/modules/admin/views/Admin.vue. - Renamed the frontend/src/views/LoginViews/MFAView.vue file to frontend/src/modules/authentication/components/PasskeyForm.vue. - Renamed the frontend/src/views/LoginViews/PasswordView.vue file to frontend/src/modules/authentication/components/PasswordForm.vue. - Renamed the frontend/src/views/LoginViews/UsernameView.vue file to frontend/src/modules/authentication/components/UsernameForm.vue. - Created the frontend/src/modules/authentication/router/index.ts file to define routes for the authentication module. - Renamed the frontend/src/views/LoginViews/LoginView.vue file to frontend/src/modules/authentication/views/LoginView.vue.
- Loading branch information
1 parent
6fe57e0
commit ad3c504
Showing
68 changed files
with
618 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import type { RouteRecordRaw } from "vue-router"; | ||
|
||
const children: RouteRecordRaw[] = [ | ||
{ | ||
path: "", | ||
name: "admin-home", | ||
component: () => import("../pages/Home.vue"), | ||
}, | ||
{ | ||
path: "invitations", | ||
name: "admin-invitations", | ||
component: () => import("../pages/Invitations.vue"), | ||
}, | ||
{ | ||
path: "users", | ||
name: "admin-users", | ||
component: () => import("../pages/Users.vue"), | ||
}, | ||
{ | ||
path: "flow-editor", | ||
name: "admin-flow-editor", | ||
component: () => import("../pages/FlowEditor.vue"), | ||
}, | ||
]; | ||
|
||
export default children; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import requireAuth from "@/router/middleware/requireAuth"; | ||
import children from "./children"; | ||
import type { RouteRecordRaw } from "vue-router"; | ||
|
||
const routes: Readonly<RouteRecordRaw[]> = [ | ||
{ | ||
path: "/admin", | ||
name: "admin", | ||
redirect: { name: "admin-home" }, | ||
component: () => import("../views/Admin.vue"), | ||
meta: { | ||
middleware: [requireAuth], | ||
}, | ||
children: children, | ||
}, | ||
]; | ||
|
||
export default routes; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { RouteRecordRaw } from "vue-router"; | ||
import requireNoAuth from "@/router/middleware/requireNoAuth"; | ||
|
||
const routes: Readonly<RouteRecordRaw[]> = [ | ||
{ | ||
path: "/login", | ||
name: "login", | ||
component: () => import("../views/LoginView.vue"), | ||
meta: { | ||
middleware: [requireNoAuth], | ||
}, | ||
}, | ||
]; | ||
|
||
export default routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { RouteRecordRaw } from "vue-router"; | ||
|
||
const routes: Readonly<RouteRecordRaw[]> = [ | ||
{ | ||
path: "/:pathMatch(.*)*", | ||
name: "not-found", | ||
component: () => import("../views/NotFound.vue"), | ||
}, | ||
]; | ||
|
||
export default routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<PlexDownload v-bind="$props" v-if="settings.server_type == 'plex'" @height="$emit('height')" /> | ||
<JellyfinDownload v-bind="$props" v-else-if="settings.server_type == 'jellyfin'" @height="$emit('height')" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { mapState } from "pinia"; | ||
import { defineComponent, defineAsyncComponent } from "vue"; | ||
import { useServerStore } from "@/stores/server"; | ||
export default defineComponent({ | ||
name: "Download", | ||
components: { | ||
PlexDownload: defineAsyncComponent(() => import("./Plex/Download.vue")), | ||
JellyfinDownload: defineAsyncComponent(() => import("./Jellyfin/Download.vue")), | ||
}, | ||
computed: { | ||
...mapState(useServerStore, ["settings"]), | ||
}, | ||
}); | ||
</script> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<PlexWelcome v-bind="$props" v-if="settings.server_type == 'plex'" @height="$emit('height')" /> | ||
<JellyfinWelcome v-bind="$props" v-else-if="settings.server_type == 'jellyfin'" @height="$emit('height')" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { mapState } from "pinia"; | ||
import { defineComponent, defineAsyncComponent } from "vue"; | ||
import { useServerStore } from "@/stores/server"; | ||
export default defineComponent({ | ||
name: "Welcome", | ||
components: { | ||
PlexWelcome: defineAsyncComponent(() => import("./Plex/Welcome.vue")), | ||
JellyfinWelcome: defineAsyncComponent(() => import("./Jellyfin/Welcome.vue")), | ||
}, | ||
computed: { | ||
...mapState(useServerStore, ["settings"]), | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import openServer from "@/router/middleware/openServer"; | ||
import type { RouteRecordRaw } from "vue-router"; | ||
|
||
const routes: Readonly<RouteRecordRaw[]> = [ | ||
{ | ||
path: "/help", | ||
name: "help", | ||
component: () => import("../views/Help.vue"), | ||
}, | ||
{ | ||
path: "/open", | ||
name: "open", | ||
component: () => "", | ||
meta: { | ||
middleware: [openServer], | ||
}, | ||
}, | ||
]; | ||
|
||
export default routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { RouteRecordRaw } from "vue-router"; | ||
|
||
const routes: Readonly<RouteRecordRaw[]> = [ | ||
{ | ||
path: "/", | ||
name: "home", | ||
component: () => import("../views/Home.vue"), | ||
}, | ||
]; | ||
|
||
export default routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.