-
+
{{ greeting.header[0] }}
{{ mainStore.userName }} {{ greeting.header[1] }}
+
+ {{ mainStore.userName }}
+
-
+
{{ greeting.comment }}
Greeting by: {{ greeting.author }}
diff --git a/src/constants/index.js b/src/constants/index.js
index 2e32650..f83c0cd 100644
--- a/src/constants/index.js
+++ b/src/constants/index.js
@@ -263,9 +263,21 @@ export class VersionConstants {
}
export function GetRandomMessage() {
- const key = Math.floor(Math.random() * Greetings.length);
- const selected = Greetings[key];
- selected.header = selected.header.split("
");
+ const greetings = Greetings; // Assuming Greetings is a promise
+
+ const key = Math.floor(Math.random() * greetings.length);
+ const selected = greetings[key];
+
+ if (typeof selected.header !== "string") {
+ selected.comment = "Show me your moves.";
+ selected.author = "PhaseII server";
+ }
+
+ selected.header =
+ typeof selected.header === "string"
+ ? selected.header.split("")
+ : ["Heyo, ", "!"];
+
return selected;
}
diff --git a/src/constants/news.json b/src/constants/news.json
new file mode 100644
index 0000000..6755838
--- /dev/null
+++ b/src/constants/news.json
@@ -0,0 +1,16 @@
+[
+ {
+ "id": 0,
+ "title": "GITADORA HIGH-VOLTAGE Now Supported!",
+ "content": "Gitadora High-Voltage is now FULLY supported!\nI finally bit the bullet, sat down for 14 hours straight, and completely rewrote my Gitadora backend.\nFor the time being this has broken all Gitadora ORIGINAL profiles, but these will be migrated over soon!\nExpect Nex+age and older to come soon. Enjoy!",
+ "cover": "https://i.imgur.com/WPRlNo6.png",
+ "timestamp": "2022.11.20 5:48:10 PM"
+ },
+ {
+ "id": 1,
+ "title": "FutureTomTom Now Supported!",
+ "content": "This weird drumming game now has support on PhaseII! Ver.1 and Ver.2 are both fully working, though there aren't any events set up currently.",
+ "cover": "https://i.imgur.com/UWtUAd5.png",
+ "timestamp": "2022.11.20 5:48:10 PM"
+ }
+]
\ No newline at end of file
diff --git a/src/menuNavBar.js b/src/menuNavBar.js
index 2069a28..690358e 100644
--- a/src/menuNavBar.js
+++ b/src/menuNavBar.js
@@ -1,7 +1,6 @@
import {
mdiCogs,
mdiAccount,
- mdiEmail,
mdiLogout,
mdiServerNetwork,
mdiBrushOutline,
@@ -13,20 +12,18 @@ export default [
menu: [
{
icon: mdiAccount,
- label: "Profile",
+ label: "Settings",
to: "/profile",
},
{
icon: mdiBrushOutline,
label: "Customizations",
+ to: "/profile/customize",
},
{
icon: mdiServerNetwork,
label: "Integrations",
- },
- {
- icon: mdiEmail,
- label: "Notifications",
+ to: "/profile/integrate",
},
],
},
diff --git a/src/router/index.js b/src/router/index.js
index 2fa4418..023abf4 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -18,13 +18,29 @@ const routes = [
name: "news",
component: () => import("@/views/NewsView.vue"),
},
+ {
+ meta: {
+ title: "News Post",
+ },
+ path: "/news/:id",
+ name: "news_post",
+ component: () => import("@/views/PostView.vue"),
+ },
{
meta: {
title: "Login",
},
- path: "/login",
+ path: "/auth/login",
name: "login",
- component: () => import("@/views/LoginView.vue"),
+ component: () => import("@/views/Auth/LoginView.vue"),
+ },
+ {
+ meta: {
+ title: "Register",
+ },
+ path: "/auth/register",
+ name: "register",
+ component: () => import("@/views/Auth/RegisterView.vue"),
},
{
meta: {
@@ -32,13 +48,37 @@ const routes = [
},
path: "/profile",
name: "profile",
- component: () => import("@/views/ProfileView.vue"),
+ component: () => import("@/views/Profile/ProfileView.vue"),
+ },
+ {
+ meta: {
+ title: "Customizations",
+ },
+ path: "/profile/customize",
+ name: "profile_customizations",
+ component: () => import("@/views/Profile/CustomizeView.vue"),
+ },
+ {
+ meta: {
+ title: "Integrations",
+ },
+ path: "/profile/integrate",
+ name: "profile_integrations",
+ component: () => import("@/views/Profile/IntegrationView.vue"),
+ },
+ {
+ meta: {
+ title: "View Profile",
+ },
+ path: "/profiles/:id",
+ name: "profile_viewer",
+ component: () => import("@/views/Profile/PublicView.vue"),
},
{
meta: {
title: "Test Arcade",
},
- path: "/arcade/0",
+ path: "/arcade/:id",
name: "arcade",
component: () => import("@/views/ArcadeView.vue"),
},
diff --git a/src/views/Auth/LoginView.vue b/src/views/Auth/LoginView.vue
index 0b0d2ca..3b0fd8d 100644
--- a/src/views/Auth/LoginView.vue
+++ b/src/views/Auth/LoginView.vue
@@ -2,13 +2,11 @@
import { reactive } from "vue";
import { useRouter } from "vue-router";
import { mdiAccount, mdiAsterisk } from "@mdi/js";
-import SectionFullScreen from "@/components/SectionFullScreen.vue";
import CardBox from "@/components/CardBox.vue";
import FormCheckRadio from "@/components/FormCheckRadio.vue";
import FormField from "@/components/FormField.vue";
import FormControl from "@/components/FormControl.vue";
import BaseButton from "@/components/BaseButton.vue";
-import BaseButtons from "@/components/BaseButtons.vue";
import LayoutGuest from "@/layouts/LayoutGuest.vue";
const form = reactive({
@@ -20,47 +18,68 @@ const form = reactive({
const router = useRouter();
const submit = () => {
- router.push("/dashboard");
+ router.push("/");
};
-
-
-
-
-
+
+
+
+
+

+
PhaseII
+
Growing since 2021
+
+
Please log in.
+
+
+
+
+
+
-
-
-
+
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
New Here?
+
+
+ Forgot Password?
+
+
+
+
-
+
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index dbc6b00..cfe05b1 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -82,19 +82,19 @@ onMounted(() => {
class="grid grid-flow-row auto-rows-auto grid-cols-1 md:grid-cols-2 gap-5 mb-5"
>
@@ -31,17 +15,19 @@ const testNews = [
-
+
-
+
diff --git a/src/views/PostView.vue b/src/views/PostView.vue
new file mode 100644
index 0000000..f1b2c33
--- /dev/null
+++ b/src/views/PostView.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
{{ thisNews.title }}
+
+
+
+
+
+
News not found...
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Profile/CustomizeView.vue b/src/views/Profile/CustomizeView.vue
new file mode 100644
index 0000000..8e39cc8
--- /dev/null
+++ b/src/views/Profile/CustomizeView.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
Avatar Source
+
+
+
+
Avatar Border
+
+
+
+
Profile Background
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Profile/IntegrationView.vue b/src/views/Profile/IntegrationView.vue
new file mode 100644
index 0000000..16f03d1
--- /dev/null
+++ b/src/views/Profile/IntegrationView.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Discord is linked to @trmazi
+ Discord isn't linked!
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Kamaitachi is linked to @trmazi
+ Kamaitachi isn't linked!
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Start.GG is linked to @trmazi
+ Start.GG isn't linked!
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/ProfileView.vue b/src/views/Profile/ProfileView.vue
similarity index 75%
rename from src/views/ProfileView.vue
rename to src/views/Profile/ProfileView.vue
index e6a2508..53e4590 100644
--- a/src/views/ProfileView.vue
+++ b/src/views/Profile/ProfileView.vue
@@ -11,6 +11,7 @@ import SectionMain from "@/components/SectionMain.vue";
import CardBox from "@/components/CardBox.vue";
import BaseDivider from "@/components/BaseDivider.vue";
import FormField from "@/components/FormField.vue";
+import FormCheckRadio from "@/components/FormCheckRadio.vue";
import FormControl from "@/components/FormControl.vue";
import BaseButton from "@/components/BaseButton.vue";
import UserCard from "@/components/UserCard.vue";
@@ -44,12 +45,42 @@ const submitPass = () => {
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Profile/PublicView.vue b/src/views/Profile/PublicView.vue
new file mode 100644
index 0000000..3d94c71
--- /dev/null
+++ b/src/views/Profile/PublicView.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+