Merge pull request #20 from ViossaDiskordServer/tooling

feat: #19 Initial Dev Tooling Setup
This commit is contained in:
Sheldon Cooper 2025-05-13 16:37:19 -04:00 committed by GitHub
commit f8f1a29e64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 3175 additions and 169 deletions

3
.gitattributes vendored Normal file
View file

@ -0,0 +1,3 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf

17
.prettierrc Normal file
View file

@ -0,0 +1,17 @@
{
"experimentalTernaries": true,
"experimentalOperatorPosition": "start",
"printWidth": 80,
"tabWidth": 4,
"useTabs": true,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"objectWrap": "collapse",
"bracketSameLine": false,
"arrowParens": "always",
"endOfLine": "lf"
}

24
eslint.config.js Normal file
View file

@ -0,0 +1,24 @@
import js from '@eslint/js';
import globals from 'globals';
import ts from 'typescript-eslint';
import vue from 'eslint-plugin-vue';
export default ts.config(
{ ignores: ['dist'] },
{
extends: [
js.configs.recommended,
...ts.configs.recommendedTypeChecked,
...vue.configs.recommendedTypeChecked,
],
files: ['**/*.{js,ts,vue}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
)

2892
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,13 +13,19 @@
"@types/node": "^22.15.17", "@types/node": "^22.15.17",
"bulma": "^1.0.4", "bulma": "^1.0.4",
"tailwindcss": "^4.1.6", "tailwindcss": "^4.1.6",
"vue": "^3.5.13" "vue": "^3.5.13",
"vue-router": "^4.5.1"
}, },
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^5.2.3", "@vitejs/plugin-vue": "^5.2.3",
"@vue/tsconfig": "^0.7.0", "@vue/tsconfig": "^0.7.0",
"eslint": "^9.26.0",
"eslint-plugin-vue": "^10.1.0",
"prettier": "^3.5.3",
"sass": "^1.87.0", "sass": "^1.87.0",
"typescript": "~5.8.3", "typescript": "~5.8.3",
"typescript-eslint": "^8.32.1",
"unplugin-vue-router": "^0.12.0",
"vite": "^6.3.5", "vite": "^6.3.5",
"vue-tsc": "^2.2.8" "vue-tsc": "^2.2.8"
} }

View file

@ -1,34 +1,9 @@
<template> <template>
<div class="min-h-screen flex flex-col" style="gap: 4rem;"><!-- Main application wrapper --> <nav>
<!-- <SideBar /> --> <RouterLink to="/">Home</RouterLink>
<RouterLink to="/resources">Resources</RouterLink>
<h1 class="title has-text-black p-6">BRÅTULA VIOSSA.NET MÅDE</h1> </nav>
<main>
<PaddingWrapper v-for="(sectionName, index) in sectionList" :key="index"> <RouterView />
<component :is="sectionName" /> </main>
</PaddingWrapper>
</div>
</template> </template>
<script lang="ts">
// import SideBar from './components/organisms/SideBar.vue'
import PaddingWrapper from './components/molecules/PaddingWrapper.vue'
import IntroSection from './components/organisms/IntroSection.vue'
import HistorySection from './components/organisms/HistorySection.vue'
import './assets/style.scss'
import 'bulma/css/bulma.css'
export default {
name: 'app',
components: {
PaddingWrapper,
IntroSection,
HistorySection
},
data() {
return {
sectionList: ['IntroSection', 'HistorySection']
}
}
}
</script>

View file

@ -1,13 +1,16 @@
@import 'bulma/css/bulma.css'; @import "bulma/css/bulma.css";
$viossa-blue: #65B7F9; $viossa-blue: #65b7f9;
body { body {
background-color: $viossa-blue; background-color: $viossa-blue;
font: normal Verdana, Arial, sans-serif; font:
color: black; normal Verdana,
Arial,
sans-serif;
color: black;
} }
h1 { h1 {
font-size: 48px; font-size: 48px;
} }

View file

@ -1,11 +1,9 @@
<template> <template>
<div class="box my-6"> <div class="box my-6">
<slot /> <slot />
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
export default { export default { name: "PaddingWrapper" };
name: 'PaddingWrapper'
}
</script> </script>

View file

@ -1,18 +1,34 @@
<template> <template>
<div class="columns is-vcentered"> <div class="columns is-vcentered">
<!-- Text Column (left 3/4) -->
<div class="column">
<h2 class="title is-4">Viossa's History</h2>
<p class="has-text-white">
Knock over christmas tree... If it fits i sits, jump five feet
high and sideways when a shadow moves, rub face on owner and
sometimes switches in french and say "miaou" just because well
why not. Good morning sunshine, pet a cat, rub its belly, endure
blood and agony, quietly weep, keep rubbing belly. Chase ball of
string stares at human while pushing stuff off a table ooooh
feather moving feather! jump up to edge of bath, fall in then
scramble in a mad panic to get out slap kitten brother with paw
for chase mice. Have a lot of grump in yourself because you
can't forget to be grumpy and not be like king grumpy cat
mmmmmmmmmeeeeeeeeooooooooowwwwwwww but cough furball into food
bowl then scratch owner for a new one. Scream at teh bath open
the door, let me out, let me out, let me-out, let me-aow, let
meaow, meaow!
</p>
</div>
<!-- Text Column (left 3/4) --> <!-- Image Column (right 1/4) -->
<div class="column"> <div class="column is-one-quarter">
<h2 class="title is-4">Viossa's History</h2> <figure class="image">
<p class="has-text-white">Knock over christmas tree... If it fits i sits, jump five feet high and sideways when a shadow moves, rub face on owner and sometimes switches in french and say "miaou" just because well why not. Good morning sunshine, pet a cat, rub its belly, endure blood and agony, quietly weep, keep rubbing belly. Chase ball of string stares at human while pushing stuff off a table ooooh feather moving feather! jump up to edge of bath, fall in then scramble in a mad panic to get out slap kitten brother with paw for chase mice. Have a lot of grump in yourself because you can't forget to be grumpy and not be like king grumpy cat mmmmmmmmmeeeeeeeeooooooooowwwwwwww but cough furball into food bowl then scratch owner for a new one. Scream at teh bath open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow!</p> <img
</div> src="/src/assets/flakka.png"
alt="Flag of the Viossa Language"
<!-- Image Column (right 1/4) --> />
<div class="column is-one-quarter"> </figure>
<figure class="image"> </div>
<img src="/src/assets/flakka.png" alt="Flag of the Viossa Language"> </div>
</figure>
</div>
</div>
</template> </template>

View file

@ -1,18 +1,37 @@
<template> <template>
<div class="columns is-vcentered"> <div class="columns is-vcentered">
<!-- Image Column (left 1/4) -->
<div class="column is-one-quarter">
<figure class="image">
<img
src="/src/assets/flakka.png"
alt="Flag of the Viossa Language"
/>
</figure>
</div>
<!-- Image Column (left 1/4) --> <!-- Text Column (right 3/4) -->
<div class="column is-one-quarter"> <div class="column">
<figure class="image"> <h2 class="title is-4">What is Viossa?</h2>
<img src="/src/assets/flakka.png" alt="Flag of the Viossa Language"> <p class="has-text-white">
</figure> Cat ipsum dolor sit amet, be superior eats owners hair then
</div> claws head gimme attention gimme attention gimme attention gimme
attention gimme attention gimme attention just kidding i don't
<!-- Text Column (right 3/4) --> want it anymore meow bye. Avoid the new toy and just play with
<div class="column"> the box it came in floof tum, tickle bum, jellybean footies
<h2 class="title is-4">What is Viossa?</h2> curly toes curl up and sleep on the freshly laundered towels
<p class="has-text-white">Cat ipsum dolor sit amet, be superior eats owners hair then claws head gimme attention gimme attention gimme attention gimme attention gimme attention gimme attention just kidding i don't want it anymore meow bye. Avoid the new toy and just play with the box it came in floof tum, tickle bum, jellybean footies curly toes curl up and sleep on the freshly laundered towels hiss and stare at nothing then run suddenly away. Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human, feed me attack the dog then pretend like nothing happened jump on human and sleep on her all night long be long in the bed, purr in the morning and then give a bite to every human around for not waking up request food, purr loud scratch the walls, the floor, the windows, the humans eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap steal raw zucchini off kitchen counter...</p> hiss and stare at nothing then run suddenly away. Need to check
</div> on human, have not seen in an hour might be dead oh look, human
is alive, hiss at human, feed me attack the dog then pretend
</div> like nothing happened jump on human and sleep on her all night
long be long in the bed, purr in the morning and then give a
bite to every human around for not waking up request food, purr
loud scratch the walls, the floor, the windows, the humans eat
prawns daintily with a claw then lick paws clean wash down
prawns with a lap of carnation milk then retire to the warmest
spot on the couch to claw at the fabric before taking a catnap
steal raw zucchini off kitchen counter...
</p>
</div>
</div>
</template> </template>

View file

@ -1,7 +1,3 @@
<script setup> <script setup></script>
</script> <template></template>
<template>
</template>

View file

@ -1,5 +1,9 @@
import { createApp } from 'vue' import { createApp } from "vue";
import './style.css' import "./style.css";
import App from './App.vue' import App from "./App.vue";
import { createRouter, createWebHistory } from "vue-router";
import { routes } from "vue-router/auto-routes";
createApp(App).mount('#app') const router = createRouter({ history: createWebHistory(), routes: routes });
createApp(App).use(router).mount("#app");

32
src/routes/index.vue Normal file
View file

@ -0,0 +1,32 @@
<template>
<div class="min-h-screen flex flex-col" style="gap: 4rem">
<!-- Main application wrapper -->
<!-- <SideBar /> -->
<h1 class="title has-text-black p-6">BRÅTULA VIOSSA.NET MÅDE</h1>
<PaddingWrapper
v-for="(sectionName, index) in sectionList"
:key="index"
>
<component :is="sectionName" />
</PaddingWrapper>
</div>
</template>
<script lang="ts">
// import SideBar from './components/organisms/SideBar.vue'
import PaddingWrapper from "../components/molecules/PaddingWrapper.vue";
import IntroSection from "../components/organisms/IntroSection.vue";
import HistorySection from "../components/organisms/HistorySection.vue";
import "../assets/style.scss";
import "bulma/css/bulma.css";
export default {
name: "app",
components: { PaddingWrapper, IntroSection, HistorySection },
data() {
return { sectionList: ["IntroSection", "HistorySection"] };
},
};
</script>

3
src/routes/resources.vue Normal file
View file

@ -0,0 +1,3 @@
<template>
<h1>Resources</h1>
</template>

8
src/shims-vue.d.ts vendored
View file

@ -1,5 +1,5 @@
declare module '*.vue' { declare module "*.vue" {
import type { DefineComponent } from 'vue' import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any> const component: DefineComponent<{}, {}, any>;
export default component export default component;
} }

View file

@ -1,79 +1,79 @@
:root { :root {
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5; line-height: 1.5;
font-weight: 400; font-weight: 400;
color-scheme: light dark; color-scheme: light dark;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);
background-color: #242424; background-color: #242424;
font-synthesis: none; font-synthesis: none;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
a { a {
font-weight: 500; font-weight: 500;
color: #646cff; color: #646cff;
text-decoration: inherit; text-decoration: inherit;
} }
a:hover { a:hover {
color: #535bf2; color: #535bf2;
} }
body { body {
margin: 0; margin: 0;
display: flex; display: flex;
place-items: center; place-items: center;
min-width: 320px; min-width: 320px;
min-height: 100vh; min-height: 100vh;
} }
h1 { h1 {
font-size: 3.2em; font-size: 3.2em;
line-height: 1.1; line-height: 1.1;
} }
button { button {
border-radius: 8px; border-radius: 8px;
border: 1px solid transparent; border: 1px solid transparent;
padding: 0.6em 1.2em; padding: 0.6em 1.2em;
font-size: 1em; font-size: 1em;
font-weight: 500; font-weight: 500;
font-family: inherit; font-family: inherit;
background-color: #1a1a1a; background-color: #1a1a1a;
cursor: pointer; cursor: pointer;
transition: border-color 0.25s; transition: border-color 0.25s;
} }
button:hover { button:hover {
border-color: #646cff; border-color: #646cff;
} }
button:focus, button:focus,
button:focus-visible { button:focus-visible {
outline: 4px auto -webkit-focus-ring-color; outline: 4px auto -webkit-focus-ring-color;
} }
.card { .card {
padding: 1em; padding: 1em;
} }
#app { #app {
max-width: 1280px; max-width: 1280px;
margin: 0 auto; margin: 0 auto;
padding: 2rem; padding: 2rem;
text-align: center; text-align: center;
} }
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
:root { :root {
color: #213547; color: #213547;
background-color: #ffffff; background-color: #ffffff;
} }
a:hover { a:hover {
color: #747bff; color: #747bff;
} }
button { button {
background-color: #f9f9f9; background-color: #f9f9f9;
} }
} }

24
src/typed-router.d.ts vendored Normal file
View file

@ -0,0 +1,24 @@
/* 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>>,
'/resources': RouteRecordInfo<'/resources', '/resources', Record<never, never>, Record<never, never>>,
}
}

1
src/vite-env.d.ts vendored
View file

@ -1 +1,2 @@
/// <reference types="vite/client" /> /// <reference types="vite/client" />
/// <reference types="unplugin-vue-router/client" />

View file

@ -2,14 +2,18 @@
"extends": "@vue/tsconfig/tsconfig.dom.json", "extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": { "compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
/* Linting */ /* Linting */
"strict": true, "strict": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"erasableSyntaxOnly": true, "erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true "noUncheckedSideEffectImports": true,
"noUncheckedIndexedAccess": true,
}, },
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"] "include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
]
} }

View file

@ -2,17 +2,17 @@
"compilerOptions": { "compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "ES2022", "target": "ES2022",
"lib": ["ES2023"], "lib": [
"module": "ESNext", "ES2023"
],
"module": "NodeNext",
"skipLibCheck": true, "skipLibCheck": true,
/* Bundler mode */ /* Bundler mode */
"moduleResolution": "bundler", "moduleResolution": "nodenext",
"allowImportingTsExtensions": true, "allowImportingTsExtensions": true,
"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,
"moduleDetection": "force", "moduleDetection": "force",
"noEmit": true, "noEmit": true,
/* Linting */ /* Linting */
"strict": true, "strict": true,
"noUnusedLocals": true, "noUnusedLocals": true,
@ -21,5 +21,7 @@
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true "noUncheckedSideEffectImports": true
}, },
"include": ["vite.config.ts"] "include": [
"vite.config.ts"
]
} }

View file

@ -1,12 +1,17 @@
import { defineConfig } from 'vite' import { defineConfig } from "vite";
import vue from '@vitejs/plugin-vue' import vue from "@vitejs/plugin-vue";
import tailwindcss from '@tailwindcss/vite' import tailwindcss from "@tailwindcss/vite";
import vueRouter from "unplugin-vue-router/vite";
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [tailwindcss(), vue()], plugins: [
tailwindcss(),
vueRouter({ routesFolder: "src/routes", dts: "src/typed-router.d.ts" }),
vue(),
],
build: { build: {
outDir: '/var/www/viossa.net', outDir: "/var/www/viossa.net",
emptyOutDir: true, emptyOutDir: true,
} },
}) });