diff --git a/src/app/App.vue b/src/app/App.vue index 72cc3b8..ba47ac6 100644 --- a/src/app/App.vue +++ b/src/app/App.vue @@ -1,27 +1,8 @@ - - diff --git a/src/app/assets/logo.png b/src/app/assets/logo.png deleted file mode 100644 index f3d2503..0000000 Binary files a/src/app/assets/logo.png and /dev/null differ diff --git a/src/app/components/HelloWorld.vue b/src/app/components/HelloWorld.vue deleted file mode 100644 index f51da82..0000000 --- a/src/app/components/HelloWorld.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - - - diff --git a/src/app/components/PaginationWidget.vue b/src/app/components/PaginationWidget.vue new file mode 100644 index 0000000..a1c80d0 --- /dev/null +++ b/src/app/components/PaginationWidget.vue @@ -0,0 +1,3 @@ + diff --git a/src/app/components/ProgressRing.vue b/src/app/components/ProgressRing.vue new file mode 100644 index 0000000..0716e3d --- /dev/null +++ b/src/app/components/ProgressRing.vue @@ -0,0 +1,89 @@ + + + + + diff --git a/src/app/components/TorrentList.vue b/src/app/components/TorrentList.vue new file mode 100644 index 0000000..a9a2765 --- /dev/null +++ b/src/app/components/TorrentList.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/src/app/components/TorrentListItem.vue b/src/app/components/TorrentListItem.vue new file mode 100644 index 0000000..700d46e --- /dev/null +++ b/src/app/components/TorrentListItem.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/app/components/TorrentListItemNew.vue b/src/app/components/TorrentListItemNew.vue new file mode 100644 index 0000000..fe239d8 --- /dev/null +++ b/src/app/components/TorrentListItemNew.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/src/app/components/TorrentListNew.vue b/src/app/components/TorrentListNew.vue new file mode 100644 index 0000000..1a2a529 --- /dev/null +++ b/src/app/components/TorrentListNew.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/src/app/index.ts b/src/app/index.ts index 18ab194..f45c0ff 100644 --- a/src/app/index.ts +++ b/src/app/index.ts @@ -1,5 +1,17 @@ import { createApp } from 'vue' +import router from "./routes"; import App from './App.vue' import "./styles/index.css"; -createApp(App).mount('#app'); +let app = createApp(App); +app.use(router); +app.mount("#app"); + +/** + * Dropdown menus + */ +document.addEventListener("click", (event) => { + let dropdownMenus = document.querySelectorAll(".dropdown.active").forEach((elem) => { + elem.classList.remove("active"); + }); +}); diff --git a/src/app/routes/index.ts b/src/app/routes/index.ts new file mode 100644 index 0000000..719c8be --- /dev/null +++ b/src/app/routes/index.ts @@ -0,0 +1,21 @@ +import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router"; + +const routes: RouteRecordRaw[] = [ + { + path: "/", + name: "Home", + component: () => import("../views/Home.vue") + }, + { + path: "/login", + name: "Login", + component: () => import("../views/Login.vue") + } +]; + +const router = createRouter({ + history: createWebHistory(), + routes +}); + +export default router; diff --git a/src/app/styles/index.css b/src/app/styles/index.css index b5c61c9..b189c0a 100644 --- a/src/app/styles/index.css +++ b/src/app/styles/index.css @@ -1,3 +1,4 @@ +@import '@fortawesome/fontawesome-free/css/all.css'; @tailwind base; @tailwind components; @tailwind utilities; diff --git a/src/app/views/Home.vue b/src/app/views/Home.vue new file mode 100644 index 0000000..a23e51c --- /dev/null +++ b/src/app/views/Home.vue @@ -0,0 +1,15 @@ + + + diff --git a/src/app/views/Login.vue b/src/app/views/Login.vue new file mode 100644 index 0000000..2207408 --- /dev/null +++ b/src/app/views/Login.vue @@ -0,0 +1,3 @@ +