next
4
troplo-website-next/.browserslistrc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
> 1%
|
||||||
|
last 2 versions
|
||||||
|
not dead
|
||||||
|
not ie 11
|
5
troplo-website-next/.editorconfig
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[*.{js,jsx,ts,tsx,vue}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
20
troplo-website-next/.eslintrc.js
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/**
|
||||||
|
* .eslint.js
|
||||||
|
*
|
||||||
|
* ESLint configuration file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
env: {
|
||||||
|
node: true,
|
||||||
|
},
|
||||||
|
extends: [
|
||||||
|
'plugin:vue/vue3-essential',
|
||||||
|
'eslint:recommended',
|
||||||
|
'@vue/eslint-config-typescript',
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
'vue/multi-word-component-names': 'off',
|
||||||
|
},
|
||||||
|
}
|
22
troplo-website-next/.gitignore
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
/dist
|
||||||
|
|
||||||
|
# local env files
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
|
||||||
|
# Log files
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
81
troplo-website-next/README.md
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
# Vuetify (Default)
|
||||||
|
|
||||||
|
This is the official scaffolding tool for Vuetify, designed to give you a head start in building your new Vuetify application. It sets up a base template with all the necessary configurations and standard directory structure, enabling you to begin development without the hassle of setting up the project from scratch.
|
||||||
|
|
||||||
|
## ❗️ Important Links
|
||||||
|
|
||||||
|
- 📄 [Docs](https://vuetifyjs.com/)
|
||||||
|
- 🚨 [Issues](https://issues.vuetifyjs.com/)
|
||||||
|
- 🏬 [Store](https://store.vuetifyjs.com/)
|
||||||
|
- 🎮 [Playground](https://play.vuetifyjs.com/)
|
||||||
|
- 💬 [Discord](https://community.vuetifyjs.com)
|
||||||
|
|
||||||
|
## 💿 Install
|
||||||
|
|
||||||
|
Set up your project using your preferred package manager. Use the corresponding command to install the dependencies:
|
||||||
|
|
||||||
|
| Package Manager | Command |
|
||||||
|
|---------------------------------------------------------------|----------------|
|
||||||
|
| [yarn](https://yarnpkg.com/getting-started) | `yarn install` |
|
||||||
|
| [npm](https://docs.npmjs.com/cli/v7/commands/npm-install) | `npm install` |
|
||||||
|
| [pnpm](https://pnpm.io/installation) | `pnpm install` |
|
||||||
|
| [bun](https://bun.sh/#getting-started) | `bun install` |
|
||||||
|
|
||||||
|
After completing the installation, your environment is ready for Vuetify development.
|
||||||
|
|
||||||
|
## ✨ Features
|
||||||
|
|
||||||
|
- 🖼️ **Optimized Front-End Stack**: Leverage the latest Vue 3 and Vuetify 3 for a modern, reactive UI development experience. [Vue 3](https://v3.vuejs.org/) | [Vuetify 3](https://vuetifyjs.com/en/)
|
||||||
|
- 🗃️ **State Management**: Integrated with [Pinia](https://pinia.vuejs.org/), the intuitive, modular state management solution for Vue.
|
||||||
|
- 🚦 **Routing and Layouts**: Utilizes Vue Router for SPA navigation and vite-plugin-vue-layouts for organizing Vue file layouts. [Vue Router](https://router.vuejs.org/) | [vite-plugin-vue-layouts](https://github.com/JohnCampionJr/vite-plugin-vue-layouts)
|
||||||
|
- 💻 **Enhanced Development Experience**: Benefit from TypeScript's static type checking and the ESLint plugin suite for Vue, ensuring code quality and consistency. [TypeScript](https://www.typescriptlang.org/) | [ESLint Plugin Vue](https://eslint.vuejs.org/)
|
||||||
|
- ⚡ **Next-Gen Tooling**: Powered by Vite, experience fast cold starts and instant HMR (Hot Module Replacement). [Vite](https://vitejs.dev/)
|
||||||
|
- 🧩 **Automated Component Importing**: Streamline your workflow with unplugin-vue-components, automatically importing components as you use them. [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
|
||||||
|
- 🛠️ **Strongly-Typed Vue**: Use vue-tsc for type-checking your Vue components, and enjoy a robust development experience. [vue-tsc](https://github.com/johnsoncodehk/volar/tree/master/packages/vue-tsc)
|
||||||
|
|
||||||
|
These features are curated to provide a seamless development experience from setup to deployment, ensuring that your Vuetify application is both powerful and maintainable.
|
||||||
|
|
||||||
|
## 💡 Usage
|
||||||
|
|
||||||
|
This section covers how to start the development server and build your project for production.
|
||||||
|
|
||||||
|
### Starting the Development Server
|
||||||
|
|
||||||
|
To start the development server with hot-reload, run the following command. The server will be accessible at [http://localhost:3000](http://localhost:3000):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
(Repeat for npm, pnpm, and bun with respective commands.)
|
||||||
|
|
||||||
|
> Add NODE_OPTIONS='--no-warnings' to suppress the JSON import warnings that happen as part of the Vuetify import mapping. If you are on Node [v21.3.0](https://nodejs.org/en/blog/release/v21.3.0) or higher, you can change this to NODE_OPTIONS='--disable-warning=5401'. If you don't mind the warning, you can remove this from your package.json dev script.
|
||||||
|
|
||||||
|
### Building for Production
|
||||||
|
|
||||||
|
To build your project for production, use:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn build
|
||||||
|
```
|
||||||
|
|
||||||
|
(Repeat for npm, pnpm, and bun with respective commands.)
|
||||||
|
|
||||||
|
Once the build process is completed, your application will be ready for deployment in a production environment.
|
||||||
|
|
||||||
|
## 💪 Support Vuetify Development
|
||||||
|
|
||||||
|
This project is built with [Vuetify](https://vuetifyjs.com/en/), a UI Library with a comprehensive collection of Vue components. Vuetify is an MIT licensed Open Source project that has been made possible due to the generous contributions by our [sponsors and backers](https://vuetifyjs.com/introduction/sponsors-and-backers/). If you are interested in supporting this project, please consider:
|
||||||
|
|
||||||
|
- [Requesting Enterprise Support](https://support.vuetifyjs.com/)
|
||||||
|
- [Sponsoring John on Github](https://github.com/users/johnleider/sponsorship)
|
||||||
|
- [Sponsoring Kael on Github](https://github.com/users/kaelwd/sponsorship)
|
||||||
|
- [Supporting the team on Open Collective](https://opencollective.com/vuetify)
|
||||||
|
- [Becoming a sponsor on Patreon](https://www.patreon.com/vuetify)
|
||||||
|
- [Becoming a subscriber on Tidelift](https://tidelift.com/subscription/npm/vuetify)
|
||||||
|
- [Making a one-time donation with Paypal](https://paypal.me/vuetify)
|
||||||
|
|
||||||
|
## 📑 License
|
||||||
|
[MIT](http://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2016-present Vuetify, LLC
|
30
troplo-website-next/codegen.ts
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024. Matthew Nichols. SAT Project - FlowForms. This contains the code for the FlowForms project.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import type { CodegenConfig } from "@graphql-codegen/cli"
|
||||||
|
|
||||||
|
const config: CodegenConfig = {
|
||||||
|
overwrite: true,
|
||||||
|
schema: "http://localhost:24007/graphql",
|
||||||
|
documents: [
|
||||||
|
"src/**/*.graphql.ts",
|
||||||
|
"src/**/*.mutation.ts",
|
||||||
|
"src/**/*.query.ts",
|
||||||
|
"src/**/*.fragment.ts",
|
||||||
|
"src/**/*.subscription.ts"
|
||||||
|
],
|
||||||
|
generates: {
|
||||||
|
"./graphql.schema.json": {
|
||||||
|
plugins: ["introspection"]
|
||||||
|
},
|
||||||
|
"./src/gql/": {
|
||||||
|
preset: "client",
|
||||||
|
config: {
|
||||||
|
useTypeImports: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default config
|
16
troplo-website-next/components.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
// Generated by unplugin-vue-components
|
||||||
|
// Read more: https://github.com/vuejs/core/pull/3399
|
||||||
|
export {}
|
||||||
|
|
||||||
|
/* prettier-ignore */
|
||||||
|
declare module 'vue' {
|
||||||
|
export interface GlobalComponents {
|
||||||
|
FlowinityLogo: typeof import('./src/components/FlowinityLogo.vue')['default']
|
||||||
|
Header: typeof import('./src/components/Header.vue')['default']
|
||||||
|
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
|
||||||
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
|
}
|
||||||
|
}
|
1506
troplo-website-next/graphql.schema.json
Normal file
16
troplo-website-next/index.html
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Troplo's Website</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<script type="module" src="/src/main.ts"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
48
troplo-website-next/package.json
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{
|
||||||
|
"name": "troplo-website-next",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vue-tsc --noEmit && vite build",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"lint": "eslint . --fix --ignore-path .gitignore",
|
||||||
|
"codegen": "graphql-codegen --config ./codegen.ts"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@apollo/client": "^3.11.8",
|
||||||
|
"@graphql-codegen/cli": "^5.0.2",
|
||||||
|
"@graphql-codegen/introspection": "^4.0.3",
|
||||||
|
"@mdi/font": "^7.4.47",
|
||||||
|
"@vue/apollo-composable": "^4.2.1",
|
||||||
|
"core-js": "^3.37.1",
|
||||||
|
"graphql": "^16.9.0",
|
||||||
|
"graphql-tag": "^2.12.6",
|
||||||
|
"pinia": "^2.2.2",
|
||||||
|
"roboto-fontface": "*",
|
||||||
|
"vue": "^3.4.31",
|
||||||
|
"vuetify": "^3.6.11"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@babel/types": "^7.24.7",
|
||||||
|
"@types/node": "^20.14.10",
|
||||||
|
"@vitejs/plugin-vue": "^5.0.5",
|
||||||
|
"@vue/eslint-config-typescript": "^13.0.0",
|
||||||
|
"eslint": "^8.57.0",
|
||||||
|
"eslint-config-standard": "^17.1.0",
|
||||||
|
"eslint-plugin-import": "^2.29.1",
|
||||||
|
"eslint-plugin-n": "^16.6.2",
|
||||||
|
"eslint-plugin-node": "^11.1.0",
|
||||||
|
"eslint-plugin-promise": "^6.4.0",
|
||||||
|
"eslint-plugin-vue": "^9.27.0",
|
||||||
|
"react": "^18.3.1",
|
||||||
|
"sass": "1.77.6",
|
||||||
|
"typescript": "^5.4.2",
|
||||||
|
"unplugin-fonts": "^1.1.1",
|
||||||
|
"unplugin-vue-components": "^0.27.2",
|
||||||
|
"unplugin-vue-router": "^0.10.0",
|
||||||
|
"vite": "^5.3.3",
|
||||||
|
"vite-plugin-vuetify": "^2.0.3",
|
||||||
|
"vue-router": "^4.4.0",
|
||||||
|
"vue-tsc": "^2.0.26"
|
||||||
|
}
|
||||||
|
}
|
BIN
troplo-website-next/public/favicon.ico
Normal file
After Width: | Height: | Size: 161 KiB |
BIN
troplo-website-next/public/favicon.png
Normal file
After Width: | Height: | Size: 226 KiB |
BIN
troplo-website-next/public/images/colubrina.png
Normal file
After Width: | Height: | Size: 697 KiB |
BIN
troplo-website-next/public/images/compass-vue.png
Normal file
After Width: | Height: | Size: 496 KiB |
BIN
troplo-website-next/public/images/flowforms.png
Normal file
After Width: | Height: | Size: 572 KiB |
BIN
troplo-website-next/public/images/flowinity-android.png
Normal file
After Width: | Height: | Size: 489 KiB |
BIN
troplo-website-next/public/images/flowinity.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
troplo-website-next/public/images/geoguess.png
Normal file
After Width: | Height: | Size: 2 MiB |
BIN
troplo-website-next/public/images/kansas.png
Normal file
After Width: | Height: | Size: 156 KiB |
BIN
troplo-website-next/public/images/kaverti.png
Normal file
After Width: | Height: | Size: 273 KiB |
BIN
troplo-website-next/public/images/mira.png
Normal file
After Width: | Height: | Size: 101 KiB |
BIN
troplo-website-next/public/images/polytoria.png
Normal file
After Width: | Height: | Size: 328 KiB |
BIN
troplo-website-next/public/images/proj01.png
Normal file
After Width: | Height: | Size: 488 KiB |
BIN
troplo-website-next/public/images/troplo-plex.png
Normal file
After Width: | Height: | Size: 2.9 MiB |
BIN
troplo-website-next/public/images/troplo-website.png
Normal file
After Width: | Height: | Size: 571 KiB |
BIN
troplo-website-next/public/images/vixlatio.png
Normal file
After Width: | Height: | Size: 258 KiB |
76
troplo-website-next/src/App.vue
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
<template>
|
||||||
|
<v-app>
|
||||||
|
<v-main>
|
||||||
|
<v-alert
|
||||||
|
v-if="outages.length"
|
||||||
|
class="mb-0 p-0"
|
||||||
|
variant="tonal"
|
||||||
|
color="red"
|
||||||
|
:value="true"
|
||||||
|
tile
|
||||||
|
>
|
||||||
|
<div class="d-flex justify-space-between align-center justify-center">
|
||||||
|
<span class="d-flex">
|
||||||
|
<v-icon>mdi-alert-circle</v-icon>
|
||||||
|
<span class="ml-2">
|
||||||
|
You might be currently experiencing problems with:
|
||||||
|
{{ outageName }}.
|
||||||
|
</span></span
|
||||||
|
>
|
||||||
|
<v-btn
|
||||||
|
href="https://status.troplo.com"
|
||||||
|
size="small"
|
||||||
|
color="red"
|
||||||
|
variant="outlined"
|
||||||
|
>Learn more</v-btn
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</v-alert>
|
||||||
|
<v-alert
|
||||||
|
v-for="banner in announcementsStore.banners"
|
||||||
|
:key="banner.id"
|
||||||
|
:value="true"
|
||||||
|
variant="tonal"
|
||||||
|
:type="banner.bannerType"
|
||||||
|
:icon="banner.bannerType === 'error' ? 'mdi-alert-circle' : undefined"
|
||||||
|
tile
|
||||||
|
>
|
||||||
|
<strong>UPCOMING:</strong>
|
||||||
|
{{ banner.bannerText }}
|
||||||
|
<template #append>
|
||||||
|
<v-btn
|
||||||
|
:to="`/announcements/${banner.id}`"
|
||||||
|
size="small"
|
||||||
|
variant="outlined"
|
||||||
|
>Learn more</v-btn
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</v-alert>
|
||||||
|
<Header />
|
||||||
|
<router-view />
|
||||||
|
</v-main>
|
||||||
|
</v-app>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
//
|
||||||
|
import Header from "@/components/Header.vue"
|
||||||
|
import { computed, onMounted, ref } from "vue"
|
||||||
|
import { useAnnouncementsStore } from "@/stores/announcements.store"
|
||||||
|
|
||||||
|
const outages = ref<any[]>([])
|
||||||
|
const announcementsStore = useAnnouncementsStore()
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
fetch("https://troplo-status.flowinity.workers.dev")
|
||||||
|
.then((res) => res.json())
|
||||||
|
.then((data) => {
|
||||||
|
outages.value = data.data.filter((d) => d.attributes.status !== "up")
|
||||||
|
})
|
||||||
|
announcementsStore.getBanners()
|
||||||
|
})
|
||||||
|
|
||||||
|
const outageName = computed(() => {
|
||||||
|
return outages.value.map((o) => o.attributes.pronounceable_name).join(", ")
|
||||||
|
})
|
||||||
|
</script>
|
BIN
troplo-website-next/src/assets/logo.png
Normal file
After Width: | Height: | Size: 12 KiB |
6
troplo-website-next/src/assets/logo.svg
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M261.126 140.65L164.624 307.732L256.001 466L377.028 256.5L498.001 47H315.192L261.126 140.65Z" fill="#1697F6"/>
|
||||||
|
<path d="M135.027 256.5L141.365 267.518L231.64 111.178L268.731 47H256H14L135.027 256.5Z" fill="#AEDDFF"/>
|
||||||
|
<path d="M315.191 47C360.935 197.446 256 466 256 466L164.624 307.732L315.191 47Z" fill="#1867C0"/>
|
||||||
|
<path d="M268.731 47C76.0026 47 141.366 267.518 141.366 267.518L268.731 47Z" fill="#7BC6FF"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 526 B |
24
troplo-website-next/src/components/FlowinityLogo.vue
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<template>
|
||||||
|
<svg viewBox="0 0 902 902" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path
|
||||||
|
fill-rule="evenodd"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
d="M418.455 0.303628C368.601 3.53963 317.099 15.4736 274.671 33.6216C247.274 45.3406 230.542 54.3696 204.955 71.2386C176.877 89.7506 157.205 105.979 130.432 132.715C92.391 170.705 65.015 208.32 43.462 252.215C24.648 290.532 12.494 328.601 5.50901 371.098C0.525014 401.415 -0.0489904 409.979 0.00300957 453.215C0.0460096 488.587 0.307011 495.159 2.26401 510.012C12.064 584.424 36.235 647.831 76.868 705.715C88.227 721.897 108.825 746.978 121.86 760.5V760.5C123.716 762.425 126.973 761.118 126.983 758.444L127.455 635.5L127.933 510.88C127.948 507.16 128.87 503.498 130.62 500.215V500.215C134.346 493.224 140.794 486.918 147.366 483.836C152.023 481.652 154.372 481.215 161.455 481.215C168.538 481.215 170.887 481.652 175.544 483.836C182.369 487.037 188.65 493.382 192.253 500.715V500.715C194.031 504.333 194.959 508.311 194.965 512.342L195.22 665.376L195.464 811.774C195.477 819.73 199.528 827.136 206.22 831.44V831.44C219.113 839.731 233.998 848.715 234.844 848.715C235.18 848.715 235.455 724.137 235.455 571.875C235.455 301.89 235.503 294.849 237.38 287.507C243.152 264.94 260.408 246.135 281.881 239.012C289.036 236.639 291.492 236.334 303.455 236.334C315.418 236.334 317.874 236.639 325.029 239.012C346.502 246.135 363.758 264.94 369.53 287.507C371.409 294.855 371.455 302.194 371.455 595.356V893.375C371.455 894.718 372.392 895.879 373.705 896.164V896.164C376.489 896.767 387.479 898.218 401.955 899.893C414.535 901.348 479.439 901.702 491.685 900.382V900.382C496.084 899.907 499.42 896.197 499.426 891.773L499.685 708.382L499.943 525.666C499.951 520.069 500.875 514.512 502.679 509.215V509.215C506.467 498.094 511.754 489.557 519.98 481.282C527.75 473.464 535.038 468.745 545.213 464.94C553.437 461.865 572.642 460.71 582.746 462.683C605.287 467.084 624.838 484.756 633.131 508.225V508.225C635 513.513 635.963 519.08 635.979 524.689L636.455 689.875L636.913 848.991C636.932 855.678 643.978 860.012 649.955 857.013V857.013C664.911 849.51 682.159 839.593 695.901 830.595V830.595C701.863 826.692 705.455 820.046 705.455 812.92V583.211C705.455 413.319 705.777 340.339 706.546 336.18C708.763 324.185 716.558 313.757 727.23 308.507C733.573 305.387 734.5 305.215 744.939 305.219C755.049 305.222 758.649 305.954 763.5 308.507C774.055 314.061 779.116 322.479 781.905 333.185C783.281 338.467 783.455 362.492 783.455 547.048C783.455 741.465 783.564 754.871 785.131 753.587C786.054 752.833 791.159 746.998 796.477 740.621C856.831 668.25 888.647 594.484 899.156 502.556C901.658 480.679 901.662 423.739 899.164 401.215C893.347 348.771 882.256 306.938 862.869 264.33C824.083 179.088 751.55 100.867 667.955 54.1346C618.093 26.2596 566.07 9.88263 502.955 2.19063C490.626 0.687629 432.526 -0.609372 418.455 0.303628Z"
|
||||||
|
:fill="fill ? fill : theme.current.value.dark ? 'white' : 'black'"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { useTheme } from "vuetify"
|
||||||
|
|
||||||
|
const props = defineProps<{
|
||||||
|
gradient1: string
|
||||||
|
gradient2: string
|
||||||
|
fill: string
|
||||||
|
}>()
|
||||||
|
|
||||||
|
const theme = useTheme()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped></style>
|
81
troplo-website-next/src/components/Header.vue
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
<template>
|
||||||
|
<div id="header">
|
||||||
|
<v-toolbar color="surface">
|
||||||
|
<v-app-bar-nav-icon
|
||||||
|
@click.stop="sidebar = !sidebar"
|
||||||
|
v-if="display.mobile.value"
|
||||||
|
></v-app-bar-nav-icon>
|
||||||
|
<v-toolbar-title
|
||||||
|
class="troplo-title"
|
||||||
|
@click="$router.push('/')"
|
||||||
|
style="cursor: pointer"
|
||||||
|
>Troplo's Website</v-toolbar-title
|
||||||
|
>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<div class="d-flex mr-4" style="gap: 4px" v-if="!display.mobile.value">
|
||||||
|
<v-btn
|
||||||
|
text
|
||||||
|
v-for="item in items"
|
||||||
|
:key="item.id"
|
||||||
|
:to="item.path"
|
||||||
|
style="text-transform: unset !important"
|
||||||
|
:disabled="item.disabled"
|
||||||
|
>
|
||||||
|
<v-list-item-title>{{ item.title }}</v-list-item-title>
|
||||||
|
</v-btn>
|
||||||
|
<v-btn
|
||||||
|
v-if="false"
|
||||||
|
class="ml-1"
|
||||||
|
text
|
||||||
|
@click="$vuetify.theme.dark = !$vuetify.theme.dark"
|
||||||
|
>
|
||||||
|
<v-list-item-title>
|
||||||
|
<v-icon>{{
|
||||||
|
$vuetify.theme.dark ? "mdi-lightbulb-on" : "mdi-lightbulb-outline"
|
||||||
|
}}</v-icon>
|
||||||
|
</v-list-item-title>
|
||||||
|
</v-btn>
|
||||||
|
</div>
|
||||||
|
</v-toolbar>
|
||||||
|
<v-navigation-drawer
|
||||||
|
floating
|
||||||
|
color="dark"
|
||||||
|
app
|
||||||
|
v-model="sidebar"
|
||||||
|
v-if="display.mobile.value"
|
||||||
|
expand
|
||||||
|
>
|
||||||
|
<v-divider></v-divider>
|
||||||
|
<v-list nav dense>
|
||||||
|
<v-list-item v-for="item in items" :key="item.id" link :to="item.path">
|
||||||
|
<v-icon>{{ item.icon }}</v-icon>
|
||||||
|
|
||||||
|
<v-list-item-title>{{ item.title }}</v-list-item-title>
|
||||||
|
</v-list-item>
|
||||||
|
<v-list-item link>
|
||||||
|
<v-icon>{{
|
||||||
|
theme.current.value.dark
|
||||||
|
? "mdi-lightbulb-on"
|
||||||
|
: "mdi-lightbulb-outline"
|
||||||
|
}}</v-icon>
|
||||||
|
</v-list-item>
|
||||||
|
</v-list>
|
||||||
|
</v-navigation-drawer>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { useDisplay, useTheme } from "vuetify"
|
||||||
|
import { ref } from "vue"
|
||||||
|
|
||||||
|
const display = useDisplay()
|
||||||
|
const theme = useTheme()
|
||||||
|
|
||||||
|
const sidebar = ref(false)
|
||||||
|
const items = ref([
|
||||||
|
{ id: 1, title: "Home", icon: "mdi-home", path: "/" },
|
||||||
|
{ id: 3, title: "Contact", icon: "mdi-email", path: "/contact" }
|
||||||
|
])
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped></style>
|
35
troplo-website-next/src/components/README.md
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Components
|
||||||
|
|
||||||
|
Vue template files in this folder are automatically imported.
|
||||||
|
|
||||||
|
## 🚀 Usage
|
||||||
|
|
||||||
|
Importing is handled by [unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components). This plugin automatically imports `.vue` files created in the `src/components` directory, and registers them as global components. This means that you can use any component in your application without having to manually import it.
|
||||||
|
|
||||||
|
The following example assumes a component located at `src/components/MyComponent.vue`:
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<MyComponent />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
//
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
|
When your template is rendered, the component's import will automatically be inlined, which renders to this:
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<MyComponent />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import MyComponent from '@/components/MyComponent.vue'
|
||||||
|
</script>
|
||||||
|
```
|
87
troplo-website-next/src/gql/fragment-masking.ts
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
/* eslint-disable */
|
||||||
|
import type { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core';
|
||||||
|
import type { FragmentDefinitionNode } from 'graphql';
|
||||||
|
import type { Incremental } from './graphql';
|
||||||
|
|
||||||
|
|
||||||
|
export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<
|
||||||
|
infer TType,
|
||||||
|
any
|
||||||
|
>
|
||||||
|
? [TType] extends [{ ' $fragmentName'?: infer TKey }]
|
||||||
|
? TKey extends string
|
||||||
|
? { ' $fragmentRefs'?: { [key in TKey]: TType } }
|
||||||
|
: never
|
||||||
|
: never
|
||||||
|
: never;
|
||||||
|
|
||||||
|
// return non-nullable if `fragmentType` is non-nullable
|
||||||
|
export function useFragment<TType>(
|
||||||
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
||||||
|
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>
|
||||||
|
): TType;
|
||||||
|
// return nullable if `fragmentType` is undefined
|
||||||
|
export function useFragment<TType>(
|
||||||
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
||||||
|
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined
|
||||||
|
): TType | undefined;
|
||||||
|
// return nullable if `fragmentType` is nullable
|
||||||
|
export function useFragment<TType>(
|
||||||
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
||||||
|
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null
|
||||||
|
): TType | null;
|
||||||
|
// return nullable if `fragmentType` is nullable or undefined
|
||||||
|
export function useFragment<TType>(
|
||||||
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
||||||
|
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined
|
||||||
|
): TType | null | undefined;
|
||||||
|
// return array of non-nullable if `fragmentType` is array of non-nullable
|
||||||
|
export function useFragment<TType>(
|
||||||
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
||||||
|
fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>
|
||||||
|
): Array<TType>;
|
||||||
|
// return array of nullable if `fragmentType` is array of nullable
|
||||||
|
export function useFragment<TType>(
|
||||||
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
||||||
|
fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
|
||||||
|
): Array<TType> | null | undefined;
|
||||||
|
// return readonly array of non-nullable if `fragmentType` is array of non-nullable
|
||||||
|
export function useFragment<TType>(
|
||||||
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
||||||
|
fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>
|
||||||
|
): ReadonlyArray<TType>;
|
||||||
|
// return readonly array of nullable if `fragmentType` is array of nullable
|
||||||
|
export function useFragment<TType>(
|
||||||
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
||||||
|
fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
|
||||||
|
): ReadonlyArray<TType> | null | undefined;
|
||||||
|
export function useFragment<TType>(
|
||||||
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
||||||
|
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | Array<FragmentType<DocumentTypeDecoration<TType, any>>> | ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
|
||||||
|
): TType | Array<TType> | ReadonlyArray<TType> | null | undefined {
|
||||||
|
return fragmentType as any;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export function makeFragmentData<
|
||||||
|
F extends DocumentTypeDecoration<any, any>,
|
||||||
|
FT extends ResultOf<F>
|
||||||
|
>(data: FT, _fragment: F): FragmentType<F> {
|
||||||
|
return data as FragmentType<F>;
|
||||||
|
}
|
||||||
|
export function isFragmentReady<TQuery, TFrag>(
|
||||||
|
queryNode: DocumentTypeDecoration<TQuery, any>,
|
||||||
|
fragmentNode: TypedDocumentNode<TFrag>,
|
||||||
|
data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined
|
||||||
|
): data is FragmentType<typeof fragmentNode> {
|
||||||
|
const deferredFields = (queryNode as { __meta__?: { deferredFields: Record<string, (keyof TFrag)[]> } }).__meta__
|
||||||
|
?.deferredFields;
|
||||||
|
|
||||||
|
if (!deferredFields) return true;
|
||||||
|
|
||||||
|
const fragDef = fragmentNode.definitions[0] as FragmentDefinitionNode | undefined;
|
||||||
|
const fragName = fragDef?.name?.value;
|
||||||
|
|
||||||
|
const fields = (fragName && deferredFields[fragName]) || [];
|
||||||
|
return fields.length > 0 && fields.every(field => data && field in data);
|
||||||
|
}
|
47
troplo-website-next/src/gql/gql.ts
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
/* eslint-disable */
|
||||||
|
import * as types from './graphql';
|
||||||
|
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Map of all GraphQL operations in the project.
|
||||||
|
*
|
||||||
|
* This map has several performance disadvantages:
|
||||||
|
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
||||||
|
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
||||||
|
* 3. It does not support dead code elimination, so it will add unused operations.
|
||||||
|
*
|
||||||
|
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
||||||
|
*/
|
||||||
|
const documents = {
|
||||||
|
"\n query Announcements($input: AnnouncementsInput!) {\n announcements(input: $input) {\n id\n title\n description\n createdAt\n updatedAt\n banner\n bannerText\n bannerExpiry\n bannerType\n flowinityUserId\n }\n }\n": types.AnnouncementsDocument,
|
||||||
|
"\n query StatusPage {\n status {\n name\n status\n }\n }\n": types.StatusPageDocument,
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* ```ts
|
||||||
|
* const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* The query argument is unknown!
|
||||||
|
* Please regenerate the types.
|
||||||
|
*/
|
||||||
|
export function graphql(source: string): unknown;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
||||||
|
*/
|
||||||
|
export function graphql(source: "\n query Announcements($input: AnnouncementsInput!) {\n announcements(input: $input) {\n id\n title\n description\n createdAt\n updatedAt\n banner\n bannerText\n bannerExpiry\n bannerType\n flowinityUserId\n }\n }\n"): (typeof documents)["\n query Announcements($input: AnnouncementsInput!) {\n announcements(input: $input) {\n id\n title\n description\n createdAt\n updatedAt\n banner\n bannerText\n bannerExpiry\n bannerType\n flowinityUserId\n }\n }\n"];
|
||||||
|
/**
|
||||||
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
||||||
|
*/
|
||||||
|
export function graphql(source: "\n query StatusPage {\n status {\n name\n status\n }\n }\n"): (typeof documents)["\n query StatusPage {\n status {\n name\n status\n }\n }\n"];
|
||||||
|
|
||||||
|
export function graphql(source: string) {
|
||||||
|
return (documents as any)[source] ?? {};
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;
|
87
troplo-website-next/src/gql/graphql.ts
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
/* eslint-disable */
|
||||||
|
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
||||||
|
export type Maybe<T> = T | null;
|
||||||
|
export type InputMaybe<T> = Maybe<T>;
|
||||||
|
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
||||||
|
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
||||||
|
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
||||||
|
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
|
||||||
|
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
|
||||||
|
/** All built-in and custom scalars, mapped to their actual values */
|
||||||
|
export type Scalars = {
|
||||||
|
ID: { input: string; output: string; }
|
||||||
|
String: { input: string; output: string; }
|
||||||
|
Boolean: { input: boolean; output: boolean; }
|
||||||
|
Int: { input: number; output: number; }
|
||||||
|
Float: { input: number; output: number; }
|
||||||
|
};
|
||||||
|
|
||||||
|
export type Announcement = {
|
||||||
|
__typename?: 'Announcement';
|
||||||
|
banner: Scalars['String']['output'];
|
||||||
|
bannerExpiry: Scalars['String']['output'];
|
||||||
|
bannerText: Scalars['String']['output'];
|
||||||
|
bannerType: BannerType;
|
||||||
|
createdAt: Scalars['String']['output'];
|
||||||
|
description: Scalars['String']['output'];
|
||||||
|
flowinityUserId: Scalars['Int']['output'];
|
||||||
|
id: Scalars['String']['output'];
|
||||||
|
title: Scalars['String']['output'];
|
||||||
|
updatedAt: Scalars['String']['output'];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AnnouncementsInput = {
|
||||||
|
banner?: InputMaybe<Scalars['Boolean']['input']>;
|
||||||
|
/** The page number. Ignored if banner is true. */
|
||||||
|
page?: InputMaybe<Scalars['Int']['input']>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** The type of the banner */
|
||||||
|
export enum BannerType {
|
||||||
|
Error = 'error',
|
||||||
|
Info = 'info',
|
||||||
|
Success = 'success',
|
||||||
|
Warning = 'warning'
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Query = {
|
||||||
|
__typename?: 'Query';
|
||||||
|
announcements: Array<Announcement>;
|
||||||
|
information: Scalars['String']['output'];
|
||||||
|
status: Array<StatusMonitor>;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type QueryAnnouncementsArgs = {
|
||||||
|
input: AnnouncementsInput;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** The status of the monitor */
|
||||||
|
export enum Status {
|
||||||
|
Down = 'DOWN',
|
||||||
|
Maintenance = 'MAINTENANCE',
|
||||||
|
Pending = 'PENDING',
|
||||||
|
Up = 'UP'
|
||||||
|
}
|
||||||
|
|
||||||
|
export type StatusMonitor = {
|
||||||
|
__typename?: 'StatusMonitor';
|
||||||
|
name: Scalars['String']['output'];
|
||||||
|
status: Status;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AnnouncementsQueryVariables = Exact<{
|
||||||
|
input: AnnouncementsInput;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
|
||||||
|
export type AnnouncementsQuery = { __typename?: 'Query', announcements: Array<{ __typename?: 'Announcement', id: string, title: string, description: string, createdAt: string, updatedAt: string, banner: string, bannerText: string, bannerExpiry: string, bannerType: BannerType, flowinityUserId: number }> };
|
||||||
|
|
||||||
|
export type StatusPageQueryVariables = Exact<{ [key: string]: never; }>;
|
||||||
|
|
||||||
|
|
||||||
|
export type StatusPageQuery = { __typename?: 'Query', status: Array<{ __typename?: 'StatusMonitor', name: string, status: Status }> };
|
||||||
|
|
||||||
|
|
||||||
|
export const AnnouncementsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Announcements"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnnouncementsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"announcements"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"banner"}},{"kind":"Field","name":{"kind":"Name","value":"bannerText"}},{"kind":"Field","name":{"kind":"Name","value":"bannerExpiry"}},{"kind":"Field","name":{"kind":"Name","value":"bannerType"}},{"kind":"Field","name":{"kind":"Name","value":"flowinityUserId"}}]}}]}}]} as unknown as DocumentNode<AnnouncementsQuery, AnnouncementsQueryVariables>;
|
||||||
|
export const StatusPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StatusPage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<StatusPageQuery, StatusPageQueryVariables>;
|
2
troplo-website-next/src/gql/index.ts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export * from "./fragment-masking";
|
||||||
|
export * from "./gql";
|
|
@ -0,0 +1,18 @@
|
||||||
|
import gql from "graphql-tag"
|
||||||
|
|
||||||
|
export const AnnouncementsQuery = gql`
|
||||||
|
query Announcements($input: AnnouncementsInput!) {
|
||||||
|
announcements(input: $input) {
|
||||||
|
id
|
||||||
|
title
|
||||||
|
description
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
banner
|
||||||
|
bannerText
|
||||||
|
bannerExpiry
|
||||||
|
bannerType
|
||||||
|
flowinityUserId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
10
troplo-website-next/src/graphql/status/status.query.ts
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
import gql from "graphql-tag"
|
||||||
|
|
||||||
|
export const StatusPageQuery = gql`
|
||||||
|
query StatusPage {
|
||||||
|
status {
|
||||||
|
name
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
21
troplo-website-next/src/main.ts
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
/**
|
||||||
|
* main.ts
|
||||||
|
*
|
||||||
|
* Bootstraps Vuetify and other plugins then mounts the App`
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Plugins
|
||||||
|
import { registerPlugins } from "@/plugins"
|
||||||
|
|
||||||
|
// Components
|
||||||
|
import "./styles/index.css"
|
||||||
|
import App from "./App.vue"
|
||||||
|
|
||||||
|
// Composables
|
||||||
|
import { createApp } from "vue"
|
||||||
|
|
||||||
|
const app = createApp(App)
|
||||||
|
|
||||||
|
registerPlugins(app)
|
||||||
|
|
||||||
|
app.mount("#app")
|
21
troplo-website-next/src/pages/404.vue
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container>
|
||||||
|
<v-card elevation="8" class="rounded-xl">
|
||||||
|
<v-container class="text-center">
|
||||||
|
<p class="text-h4">Not Found.</p>
|
||||||
|
<p class="subtitle">This route does not exist.</p>
|
||||||
|
<v-btn text @click="$router.push('/')">Go Home</v-btn>
|
||||||
|
</v-container>
|
||||||
|
</v-card>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "NotFound"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped></style>
|
5
troplo-website-next/src/pages/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Pages
|
||||||
|
|
||||||
|
Vue components created in this folder will automatically be converted to navigatable routes.
|
||||||
|
|
||||||
|
Full documentation for this feature can be found in the Official [unplugin-vue-router](https://github.com/posva/unplugin-vue-router) repository.
|
116
troplo-website-next/src/pages/contact.vue
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container class="justify-center text-center">
|
||||||
|
<p class="text-h4 mb-4">Contact</p>
|
||||||
|
<v-row>
|
||||||
|
<v-col
|
||||||
|
md="3"
|
||||||
|
xs="3"
|
||||||
|
sm="3"
|
||||||
|
cols="6"
|
||||||
|
v-for="contact in contacts"
|
||||||
|
:key="contact.id"
|
||||||
|
>
|
||||||
|
<v-card class="rounded-xl" elevation="8">
|
||||||
|
<br />
|
||||||
|
<v-icon v-if="contact.icon">{{ contact.icon }}</v-icon>
|
||||||
|
<FlowinityLogo style="width: 24px" v-else />
|
||||||
|
<v-card-title class="justify-center">{{
|
||||||
|
contact.title
|
||||||
|
}}</v-card-title>
|
||||||
|
|
||||||
|
<v-card-text>
|
||||||
|
<a :href="contact.url">{{ contact.displayName }}</a>
|
||||||
|
</v-card-text>
|
||||||
|
</v-card>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import FlowinityLogo from "@/components/FlowinityLogo.vue"
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Contact",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
contacts: [
|
||||||
|
{
|
||||||
|
id: 0,
|
||||||
|
icon: null,
|
||||||
|
title: "Flowinity",
|
||||||
|
displayName: "Troplo",
|
||||||
|
url: "https://flowinity.com/u/Troplo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
icon: "mdi-email",
|
||||||
|
title: "Email",
|
||||||
|
displayName: "troplo@troplo.com",
|
||||||
|
url: "mailto:troplo@troplo.com"
|
||||||
|
},
|
||||||
|
/*{
|
||||||
|
id: 2,
|
||||||
|
icon: "mdi-matrix",
|
||||||
|
title: "Matrix",
|
||||||
|
displayName: "@troplo:flowinity.com",
|
||||||
|
url: "https://matrix.to/#/@troplo:flowinity.com?via=flowinity.com"
|
||||||
|
},*/
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
icon: "mdi-discord",
|
||||||
|
title: "Discord",
|
||||||
|
displayName: "@troplo",
|
||||||
|
url: "https://discord.com/users/692259321907773460"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 9,
|
||||||
|
icon: "mdi-mastodon",
|
||||||
|
title: "Mastodon",
|
||||||
|
displayName: "@Troplo@social.troplo.com",
|
||||||
|
url: "https://social.troplo.com/@Troplo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
icon: "mdi-twitter",
|
||||||
|
title: "Twitter",
|
||||||
|
displayName: "@TheTroplo",
|
||||||
|
url: "https://twitter.com/TheTroplo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
|
icon: "mdi-send",
|
||||||
|
title: "Telegram",
|
||||||
|
displayName: "@Troplo",
|
||||||
|
url: "https://t.me/Troplo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 6,
|
||||||
|
icon: "mdi-github",
|
||||||
|
title: "GitHub",
|
||||||
|
displayName: "Troplo",
|
||||||
|
url: "https://github.com/Troplo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 8,
|
||||||
|
icon: "mdi-tea",
|
||||||
|
title: "Gitea",
|
||||||
|
displayName: "Troplo",
|
||||||
|
url: "https://git.troplo.com/Troplo"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
FlowinityLogo
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
</style>
|
432
troplo-website-next/src/pages/index.vue
Normal file
|
@ -0,0 +1,432 @@
|
||||||
|
<template>
|
||||||
|
<div id="projects">
|
||||||
|
<v-container :width="display.lgAndDown.value ? '100%' : '70%'">
|
||||||
|
<p class="justify-center text-center text-h4 mb-4">My Projects</p>
|
||||||
|
<v-row>
|
||||||
|
<v-col lg="3" v-for="(project, index) in getVisible" :key="index">
|
||||||
|
<v-card class="rounded-xl troplo-p" elevation="8">
|
||||||
|
<v-hover>
|
||||||
|
<template v-slot:default="{ isHovering, props }">
|
||||||
|
<v-img
|
||||||
|
v-bind="props"
|
||||||
|
:alt="'Image of ' + project.name"
|
||||||
|
:src="getImage(project.internalName)"
|
||||||
|
>
|
||||||
|
<a :href="getImage(project.internalName)" target="_blank">
|
||||||
|
<v-overlay
|
||||||
|
:model-value="isHovering"
|
||||||
|
class="align-center justify-center"
|
||||||
|
:contained="true"
|
||||||
|
scrim="#000000"
|
||||||
|
>
|
||||||
|
<v-icon size="large" color="white"
|
||||||
|
>mdi-open-in-new</v-icon
|
||||||
|
>
|
||||||
|
</v-overlay>
|
||||||
|
</a>
|
||||||
|
</v-img>
|
||||||
|
</template>
|
||||||
|
</v-hover>
|
||||||
|
|
||||||
|
<v-card-title class="text-wrap"
|
||||||
|
>{{ project.name }}
|
||||||
|
<v-chip
|
||||||
|
v-if="project.release"
|
||||||
|
variant="outlined"
|
||||||
|
class="ml-2"
|
||||||
|
size="small"
|
||||||
|
>
|
||||||
|
<v-icon size="18" class="mr-1 ml-n1">mdi-clock</v-icon>
|
||||||
|
{{ project.release }}
|
||||||
|
</v-chip></v-card-title
|
||||||
|
>
|
||||||
|
|
||||||
|
<v-card-text class="text-wrap">
|
||||||
|
<span style="white-space: pre-line; overflow-wrap: anywhere">{{
|
||||||
|
project.description
|
||||||
|
}}</span>
|
||||||
|
</v-card-text>
|
||||||
|
|
||||||
|
<v-divider class="mx-4"></v-divider>
|
||||||
|
|
||||||
|
<v-card-title class="text-wrap">Information</v-card-title>
|
||||||
|
|
||||||
|
<v-card-text class="d-flex flex-wrap text-wrap" style="gap: 6px">
|
||||||
|
<v-chip
|
||||||
|
v-for="tag in project.tags"
|
||||||
|
:key="tag.id"
|
||||||
|
:href="tag.link"
|
||||||
|
:color="tag.color"
|
||||||
|
:disabled="!tag.link"
|
||||||
|
class="troplo-p"
|
||||||
|
:text-color="tag.textColor || 'white'"
|
||||||
|
style="opacity: 1"
|
||||||
|
>
|
||||||
|
<v-img
|
||||||
|
v-if="tag.icon === 'crystal'"
|
||||||
|
src="../assets/icons/crystal-icon.svg"
|
||||||
|
width="30"
|
||||||
|
height="30"
|
||||||
|
></v-img>
|
||||||
|
<v-icon v-if="tag.icon !== 'crystal'">{{ tag.icon }}</v-icon>
|
||||||
|
<template v-if="tag.icon"> </template>
|
||||||
|
{{ tag.name }}
|
||||||
|
</v-chip>
|
||||||
|
</v-card-text>
|
||||||
|
|
||||||
|
<v-divider v-if="project.links.length" class="mx-4"></v-divider>
|
||||||
|
|
||||||
|
<v-card-actions v-if="project.links.length">
|
||||||
|
<v-btn
|
||||||
|
v-for="link in project.links"
|
||||||
|
:key="link.name"
|
||||||
|
color="blue"
|
||||||
|
text
|
||||||
|
:href="link.link"
|
||||||
|
>
|
||||||
|
{{ link.name }}
|
||||||
|
</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { computed, ref } from "vue"
|
||||||
|
import { useDisplay } from "vuetify"
|
||||||
|
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
|
enum Tags {
|
||||||
|
Active,
|
||||||
|
Vue,
|
||||||
|
Vuetify,
|
||||||
|
Express,
|
||||||
|
TypeScript,
|
||||||
|
Android,
|
||||||
|
Kotlin,
|
||||||
|
GraphQL,
|
||||||
|
Firebase,
|
||||||
|
Inactive,
|
||||||
|
DevelopmentHalted,
|
||||||
|
Crystal,
|
||||||
|
NoLongerAffiliated
|
||||||
|
}
|
||||||
|
|
||||||
|
const tags = {
|
||||||
|
[Tags.Active]: {
|
||||||
|
name: "Active",
|
||||||
|
icon: "mdi-check-circle",
|
||||||
|
color: "success"
|
||||||
|
},
|
||||||
|
[Tags.Vue]: {
|
||||||
|
name: "Vue",
|
||||||
|
icon: "mdi-vuejs",
|
||||||
|
color: "#42b883",
|
||||||
|
link: "https://vuejs.org",
|
||||||
|
textColor: "black"
|
||||||
|
},
|
||||||
|
[Tags.Vuetify]: {
|
||||||
|
name: "Vuetify",
|
||||||
|
icon: "mdi-vuetify",
|
||||||
|
link: "https://vuetifyjs.com",
|
||||||
|
color: "#2196F3"
|
||||||
|
},
|
||||||
|
[Tags.Express]: {
|
||||||
|
name: "Express",
|
||||||
|
icon: "mdi-nodejs",
|
||||||
|
link: "https://expressjs.com"
|
||||||
|
},
|
||||||
|
[Tags.TypeScript]: {
|
||||||
|
name: "TypeScript",
|
||||||
|
icon: "mdi-language-typescript",
|
||||||
|
link: "https://typescriptlang.org",
|
||||||
|
color: "#007acc"
|
||||||
|
},
|
||||||
|
[Tags.Android]: {
|
||||||
|
name: "Android",
|
||||||
|
icon: "mdi-android",
|
||||||
|
link: "https://android.com",
|
||||||
|
color: "#3ddc84",
|
||||||
|
textColor: "black"
|
||||||
|
},
|
||||||
|
[Tags.Kotlin]: {
|
||||||
|
name: "Kotlin",
|
||||||
|
icon: "mdi-language-kotlin",
|
||||||
|
link: "https://kotlinlang.org",
|
||||||
|
color: "#E24462"
|
||||||
|
},
|
||||||
|
[Tags.GraphQL]: {
|
||||||
|
name: "GraphQL",
|
||||||
|
icon: "mdi-graphql",
|
||||||
|
link: "https://graphql.org"
|
||||||
|
},
|
||||||
|
[Tags.Firebase]: {
|
||||||
|
name: "Google APIs",
|
||||||
|
icon: "mdi-firebase",
|
||||||
|
link: "https://firebase.com"
|
||||||
|
},
|
||||||
|
[Tags.Inactive]: {
|
||||||
|
name: "Discontinued",
|
||||||
|
color: "error",
|
||||||
|
icon: "mdi-alert-circle"
|
||||||
|
},
|
||||||
|
[Tags.DevelopmentHalted]: {
|
||||||
|
name: "Halted",
|
||||||
|
icon: "mdi-pause-octagon",
|
||||||
|
color: "warning"
|
||||||
|
},
|
||||||
|
[Tags.Crystal]: {
|
||||||
|
color: "white",
|
||||||
|
textColor: "black",
|
||||||
|
name: "Crystal",
|
||||||
|
icon: "crystal",
|
||||||
|
link: "https://crystal-lang.org"
|
||||||
|
},
|
||||||
|
[Tags.NoLongerAffiliated]: {
|
||||||
|
name: "No longer affiliated",
|
||||||
|
icon: "mdi-help-circle",
|
||||||
|
color: "indigo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const projects = [
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: "Flowinity",
|
||||||
|
release: "2021",
|
||||||
|
internalName: "proj01",
|
||||||
|
tags: [
|
||||||
|
tags[Tags.Active],
|
||||||
|
tags[Tags.Vue],
|
||||||
|
tags[Tags.Vuetify],
|
||||||
|
tags[Tags.Express],
|
||||||
|
tags[Tags.TypeScript]
|
||||||
|
],
|
||||||
|
description: "The versatile online social and collaborative platform.",
|
||||||
|
visible: true,
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
name: "Website",
|
||||||
|
link: "https://flowinity.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "GitHub",
|
||||||
|
link: "https://github.com/Flowinity/Flowinity"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 13,
|
||||||
|
name: "FlowForms",
|
||||||
|
release: "2024",
|
||||||
|
internalName: "flowforms",
|
||||||
|
tags: [
|
||||||
|
tags[Tags.Active],
|
||||||
|
tags[Tags.Vue],
|
||||||
|
tags[Tags.Vuetify],
|
||||||
|
tags[Tags.GraphQL],
|
||||||
|
tags[Tags.TypeScript]
|
||||||
|
],
|
||||||
|
description: "The free flow chart form builder.",
|
||||||
|
visible: true,
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
name: "Website",
|
||||||
|
link: "https://flowforms.troplo.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "GitHub",
|
||||||
|
link: "https://github.com/Troplo/FlowForms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 14,
|
||||||
|
name: "Flowinity for Android",
|
||||||
|
release: "2023",
|
||||||
|
internalName: "flowinity-android",
|
||||||
|
tags: [tags[Tags.Active], tags[Tags.Android], tags[Tags.Kotlin]],
|
||||||
|
description:
|
||||||
|
"The versatile online social and collaborative platform for Android.",
|
||||||
|
visible: true,
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
name: "Google Play",
|
||||||
|
link: "https://play.google.com/store/apps/details?id=com.troplo.privateuploader"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "GitHub",
|
||||||
|
link: "https://github.com/Flowinity/Android"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 12,
|
||||||
|
name: "Colubrina",
|
||||||
|
internalName: "colubrina",
|
||||||
|
tags: [
|
||||||
|
tags[Tags.Inactive],
|
||||||
|
tags[Tags.Vue],
|
||||||
|
tags[Tags.Vuetify],
|
||||||
|
tags[Tags.Express]
|
||||||
|
],
|
||||||
|
description:
|
||||||
|
"NOTE: Colubrina is now part of Flowinity as Flowinity Communications.\n\nColubrina - a simple open source chat platform written in Vue, Vuetify, NodeJS, and Socket.io.",
|
||||||
|
visible: true,
|
||||||
|
release: "2022",
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
name: "Website",
|
||||||
|
link: "https://colubrina.troplo.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "GitHub",
|
||||||
|
link: "https://github.com/Troplo/Colubrina"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 11,
|
||||||
|
name: "BetterCompass",
|
||||||
|
internalName: "compass-vue",
|
||||||
|
release: "2022",
|
||||||
|
tags: [
|
||||||
|
tags[Tags.Inactive],
|
||||||
|
tags[Tags.Vue],
|
||||||
|
tags[Tags.Vuetify],
|
||||||
|
tags[Tags.Express]
|
||||||
|
],
|
||||||
|
description:
|
||||||
|
"An open source modern frontend for the JDLF Compass School Manager written in Vue.js.",
|
||||||
|
visible: true,
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
name: "Website",
|
||||||
|
link: "https://compass.troplo.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "GitHub",
|
||||||
|
link: "https://github.com/Troplo/BetterCompass"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 14,
|
||||||
|
name: "GeoGuess",
|
||||||
|
internalName: "geoguess",
|
||||||
|
release: "2022",
|
||||||
|
description:
|
||||||
|
"Contributed changes & fixes to the open source geography game GeoGuess.",
|
||||||
|
visible: true,
|
||||||
|
tags: [
|
||||||
|
tags[Tags.Active],
|
||||||
|
tags[Tags.Vue],
|
||||||
|
tags[Tags.Vuetify],
|
||||||
|
tags[Tags.Firebase]
|
||||||
|
],
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
name: "My Instance",
|
||||||
|
link: "https://geo.troplo.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "GitHub",
|
||||||
|
link: "https://github.com/GeoGuess/GeoGuess"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Website",
|
||||||
|
link: "https://geoguess.games"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
name: "Mira",
|
||||||
|
release: "2021",
|
||||||
|
internalName: "mira",
|
||||||
|
tags: [tags[Tags.Inactive], tags[Tags.Vue], tags[Tags.Crystal]],
|
||||||
|
description: "EPUB reader written in Crystal and Vue.js.",
|
||||||
|
visible: true,
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
name: "GitHub",
|
||||||
|
link: "https://github.com/pinnoto/mira"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 10,
|
||||||
|
name: "Vixlatio",
|
||||||
|
internalName: "vixlatio",
|
||||||
|
release: "2022",
|
||||||
|
tags: [tags[Tags.Active], tags[Tags.Vue], tags[Tags.Express]],
|
||||||
|
description:
|
||||||
|
"Developer for Vixlatio, a blazing fast gaming platform that is powered by the creativity of its users.",
|
||||||
|
visible: true,
|
||||||
|
links: []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 13,
|
||||||
|
name: "Kansas",
|
||||||
|
internalName: "kansas",
|
||||||
|
release: "2022",
|
||||||
|
tags: [
|
||||||
|
tags[Tags.DevelopmentHalted],
|
||||||
|
tags[Tags.Vue],
|
||||||
|
tags[Tags.Vuetify],
|
||||||
|
tags[Tags.Express]
|
||||||
|
],
|
||||||
|
description: "Open source project tracking software written in Vue.js.",
|
||||||
|
visible: true,
|
||||||
|
links: []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 7,
|
||||||
|
name: "Troplo's Website",
|
||||||
|
release: "2021",
|
||||||
|
internalName: "troplo-website",
|
||||||
|
tags: [tags[Tags.Active], tags[Tags.Vue], tags[Tags.Vuetify]],
|
||||||
|
description: "The website you are viewing right now.",
|
||||||
|
visible: true,
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
name: "GitHub",
|
||||||
|
link: "https://github.com/Troplo/website"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Website",
|
||||||
|
link: "https://troplo.com"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: "Kaverti",
|
||||||
|
release: "2020",
|
||||||
|
internalName: "kaverti",
|
||||||
|
tags: [tags[Tags.Inactive], tags[Tags.Vue], tags[Tags.Express]],
|
||||||
|
description:
|
||||||
|
"A 3D sandbox game, and social avatar platform written in Express and Vue.js.",
|
||||||
|
visible: true,
|
||||||
|
links: []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
const getVisible = computed(() => projects.filter((i) => i.visible))
|
||||||
|
|
||||||
|
const getImage = (image) => {
|
||||||
|
return `/images/${image}.png`
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.v-chip--disabled {
|
||||||
|
opacity: 1 !important;
|
||||||
|
pointer-events: inherit !important;
|
||||||
|
user-select: inherit !important;
|
||||||
|
}
|
||||||
|
</style>
|
3
troplo-website-next/src/plugins/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Plugins
|
||||||
|
|
||||||
|
Plugins are a way to extend the functionality of your Vue application. Use this folder for registering plugins that you want to use globally.
|
17
troplo-website-next/src/plugins/apollo.ts
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import { ApolloClient, createHttpLink, InMemoryCache } from "@apollo/client"
|
||||||
|
|
||||||
|
const httpLink = createHttpLink({
|
||||||
|
// You should use an absolute URL here
|
||||||
|
uri: "/graphql"
|
||||||
|
})
|
||||||
|
|
||||||
|
// Cache implementation
|
||||||
|
const cache = new InMemoryCache()
|
||||||
|
|
||||||
|
// Create the apollo client
|
||||||
|
const apolloClient = new ApolloClient({
|
||||||
|
link: httpLink,
|
||||||
|
cache
|
||||||
|
})
|
||||||
|
|
||||||
|
export default apolloClient
|
20
troplo-website-next/src/plugins/index.ts
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/**
|
||||||
|
* plugins/index.ts
|
||||||
|
*
|
||||||
|
* Automatically included in `./src/main.ts`
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Plugins
|
||||||
|
import vuetify from "./vuetify"
|
||||||
|
import router from "../router"
|
||||||
|
|
||||||
|
// Types
|
||||||
|
import type { App } from "vue"
|
||||||
|
import { pinia } from "@/stores"
|
||||||
|
import { DefaultApolloClient } from "@vue/apollo-composable"
|
||||||
|
import apolloClient from "@/plugins/apollo"
|
||||||
|
|
||||||
|
export function registerPlugins(app: App) {
|
||||||
|
app.provide(DefaultApolloClient, apolloClient)
|
||||||
|
app.use(vuetify).use(router).use(pinia)
|
||||||
|
}
|
26
troplo-website-next/src/plugins/vuetify.ts
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
/**
|
||||||
|
* plugins/vuetify.ts
|
||||||
|
*
|
||||||
|
* Framework documentation: https://vuetifyjs.com`
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Styles
|
||||||
|
import "@mdi/font/css/materialdesignicons.css"
|
||||||
|
import "vuetify/styles"
|
||||||
|
|
||||||
|
// Composables
|
||||||
|
import { createVuetify } from "vuetify"
|
||||||
|
|
||||||
|
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
|
||||||
|
export default createVuetify({
|
||||||
|
theme: {
|
||||||
|
defaultTheme: "dark",
|
||||||
|
themes: {
|
||||||
|
dark: {
|
||||||
|
colors: {
|
||||||
|
surface: "#181818"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
35
troplo-website-next/src/router/index.ts
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
/**
|
||||||
|
* router/index.ts
|
||||||
|
*
|
||||||
|
* Automatic routes for `./src/pages/*.vue`
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Composables
|
||||||
|
import { createRouter, createWebHistory } from 'vue-router/auto'
|
||||||
|
import { routes } from 'vue-router/auto-routes'
|
||||||
|
|
||||||
|
const router = createRouter({
|
||||||
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||||||
|
routes,
|
||||||
|
})
|
||||||
|
|
||||||
|
// Workaround for https://github.com/vitejs/vite/issues/11804
|
||||||
|
router.onError((err, to) => {
|
||||||
|
if (err?.message?.includes?.('Failed to fetch dynamically imported module')) {
|
||||||
|
if (!localStorage.getItem('vuetify:dynamic-reload')) {
|
||||||
|
console.log('Reloading page to fix dynamic import error')
|
||||||
|
localStorage.setItem('vuetify:dynamic-reload', 'true')
|
||||||
|
location.assign(to.fullPath)
|
||||||
|
} else {
|
||||||
|
console.error('Dynamic import error, reloading page did not fix it', err)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.error(err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
router.isReady().then(() => {
|
||||||
|
localStorage.removeItem('vuetify:dynamic-reload')
|
||||||
|
})
|
||||||
|
|
||||||
|
export default router
|
26
troplo-website-next/src/stores/announcements.store.ts
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
import { defineStore } from "pinia"
|
||||||
|
import { Announcement, AnnouncementsDocument } from "@/gql/graphql"
|
||||||
|
import { ref } from "vue"
|
||||||
|
import { useApolloClient } from "@vue/apollo-composable"
|
||||||
|
|
||||||
|
export const useAnnouncementsStore = defineStore("announcements", () => {
|
||||||
|
const banners = ref<Announcement[]>([])
|
||||||
|
|
||||||
|
async function getBanners() {
|
||||||
|
const apolloClient = useApolloClient()
|
||||||
|
const { data } = await apolloClient.client.query({
|
||||||
|
query: AnnouncementsDocument,
|
||||||
|
variables: {
|
||||||
|
input: {
|
||||||
|
banner: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
banners.value = data.announcements
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
banners,
|
||||||
|
getBanners
|
||||||
|
}
|
||||||
|
})
|
3
troplo-website-next/src/stores/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import { createPinia } from "pinia"
|
||||||
|
|
||||||
|
export const pinia = createPinia()
|
3
troplo-website-next/src/styles/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Styles
|
||||||
|
|
||||||
|
This directory is for configuring the styles of the application.
|
73
troplo-website-next/src/styles/index.css
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
.troplo-header {
|
||||||
|
-webkit-font-smoothing: antialiased !important;
|
||||||
|
background: linear-gradient(-45deg, #0179f3, #0190ea) !important;
|
||||||
|
}
|
||||||
|
.troplo-header-title {
|
||||||
|
-webkit-font-smoothing: antialiased !important;
|
||||||
|
font-weight: 450;
|
||||||
|
elevation: 0 !important;
|
||||||
|
font-size: 15rem;
|
||||||
|
font-style: italic;
|
||||||
|
text-shadow: none !important;
|
||||||
|
color: linear-gradient(#0179f3, #0190ea) !important;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
}
|
||||||
|
.troplo-title {
|
||||||
|
font-weight: 500;
|
||||||
|
background: linear-gradient(#0179f3, #0190ea);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
.theme--dark.v-sheet {
|
||||||
|
background-color: #151515 ;
|
||||||
|
border-color: #151515;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header .theme--dark.v-sheet {
|
||||||
|
background-color: #151515 !important;
|
||||||
|
border-color: #151515 !important;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.theme--dark.v-card {
|
||||||
|
background-color: #151515 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Works on Firefox */
|
||||||
|
* {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: black #151515;
|
||||||
|
font-family: "Inter", sans-serif !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Works on Chrome, Edge, and Safari */
|
||||||
|
*::-webkit-scrollbar {
|
||||||
|
width: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-track {
|
||||||
|
background: #0e0e0e;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #151515;
|
||||||
|
border-radius: 20px;
|
||||||
|
border: 3px solid #151515;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rounded-xl {
|
||||||
|
border-radius: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.v-btn--variant-outlined,
|
||||||
|
.v-chip--variant-outlined,
|
||||||
|
.v-card--variant-outlined,
|
||||||
|
.v-avatar--variant-outlined,
|
||||||
|
.v-list-item--variant-outlined
|
||||||
|
{
|
||||||
|
border-color: hsla(0, 0%, 100%, 0.12) !important;
|
||||||
|
}
|
12
troplo-website-next/src/styles/settings.scss
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* src/styles/settings.scss
|
||||||
|
*
|
||||||
|
* Configures SASS variables and Vuetify overwrites
|
||||||
|
*/
|
||||||
|
|
||||||
|
// https://vuetifyjs.com/features/sass-variables/`
|
||||||
|
// @use 'vuetify/settings' with (
|
||||||
|
// $color-pack: false
|
||||||
|
// );
|
||||||
|
|
||||||
|
// change the rounded-xl class to 12px
|
7
troplo-website-next/src/vite-env.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/// <reference types="vite/client" />
|
||||||
|
|
||||||
|
declare module '*.vue' {
|
||||||
|
import type { DefineComponent } from 'vue'
|
||||||
|
const component: DefineComponent<{}, {}, any>
|
||||||
|
export default component
|
||||||
|
}
|
32
troplo-website-next/tsconfig.json
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"jsx": "preserve",
|
||||||
|
"lib": ["DOM", "ESNext"],
|
||||||
|
"baseUrl": ".",
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["src/*"]
|
||||||
|
},
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"types": [
|
||||||
|
"vite/client",
|
||||||
|
"unplugin-vue-router/client"
|
||||||
|
],
|
||||||
|
"allowJs": true,
|
||||||
|
"strict": true,
|
||||||
|
"strictNullChecks": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"skipLibCheck": true
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src/**/*",
|
||||||
|
"src/**/*.vue"
|
||||||
|
],
|
||||||
|
"exclude": ["dist", "node_modules", "cypress"],
|
||||||
|
"references": [{ "path": "./tsconfig.node.json" }],
|
||||||
|
}
|
9
troplo-website-next/tsconfig.node.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"composite": true,
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"allowSyntheticDefaultImports": true
|
||||||
|
},
|
||||||
|
"include": ["vite.config.mts"]
|
||||||
|
}
|
25
troplo-website-next/typed-router.d.ts
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
/* eslint-disable */
|
||||||
|
/* prettier-ignore */
|
||||||
|
// @ts-nocheck
|
||||||
|
// Generated by unplugin-vue-router. ‼️ DO NOT MODIFY THIS FILE ‼️
|
||||||
|
// It's recommended to commit this file.
|
||||||
|
// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.
|
||||||
|
|
||||||
|
declare module 'vue-router/auto-routes' {
|
||||||
|
import type {
|
||||||
|
RouteRecordInfo,
|
||||||
|
ParamValue,
|
||||||
|
ParamValueOneOrMore,
|
||||||
|
ParamValueZeroOrMore,
|
||||||
|
ParamValueZeroOrOne,
|
||||||
|
} from 'vue-router'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Route name map generated by unplugin-vue-router
|
||||||
|
*/
|
||||||
|
export interface RouteNamedMap {
|
||||||
|
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
|
||||||
|
'/404': RouteRecordInfo<'/404', '/404', Record<never, never>, Record<never, never>>,
|
||||||
|
'/contact': RouteRecordInfo<'/contact', '/contact', Record<never, never>, Record<never, never>>,
|
||||||
|
}
|
||||||
|
}
|
55
troplo-website-next/vite.config.mts
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
// Plugins
|
||||||
|
import Components from "unplugin-vue-components/vite"
|
||||||
|
import Vue from "@vitejs/plugin-vue"
|
||||||
|
import Vuetify, { transformAssetUrls } from "vite-plugin-vuetify"
|
||||||
|
import ViteFonts from "unplugin-fonts/vite"
|
||||||
|
import VueRouter from "unplugin-vue-router/vite"
|
||||||
|
|
||||||
|
// Utilities
|
||||||
|
import { defineConfig } from "vite"
|
||||||
|
import { fileURLToPath, URL } from "node:url"
|
||||||
|
import * as path from "node:path"
|
||||||
|
|
||||||
|
// https://vitejs.dev/config/
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [
|
||||||
|
VueRouter(),
|
||||||
|
Vue({
|
||||||
|
template: { transformAssetUrls }
|
||||||
|
}),
|
||||||
|
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
||||||
|
Vuetify({
|
||||||
|
autoImport: true,
|
||||||
|
styles: {
|
||||||
|
configFile: "src/styles/settings.scss"
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
Components(),
|
||||||
|
ViteFonts({
|
||||||
|
google: {
|
||||||
|
families: [
|
||||||
|
{
|
||||||
|
name: "Roboto",
|
||||||
|
styles: "wght@100;300;400;500;700;900"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
],
|
||||||
|
define: { "process.env": {} },
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
"@": fileURLToPath(new URL("./src", import.meta.url))
|
||||||
|
},
|
||||||
|
extensions: [".js", ".json", ".jsx", ".mjs", ".ts", ".tsx", ".vue"]
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
port: 3000,
|
||||||
|
proxy: {
|
||||||
|
"/graphql": {
|
||||||
|
target: "http://localhost:24007",
|
||||||
|
secure: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|