Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,60 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read
pages: write
id-token: write

jobs:
test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"

- name: Install Dependencies
run: npm ci

- name: Run Tests
run: |
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
npm run test:unit --coverage -- --run --reporter=verbose 2>&1 | tee test-output.txt

sed 's/\x1b\[[0-9;]*m//g' test-output.txt | \
grep -E '(^-{3,}|^File|^All files|^ |^[A-Za-z]|Test Files|Tests|Duration|Start)' | \
grep -v '^$' > filtered-output.txt
echo '```' >> $GITHUB_STEP_SUMMARY
cat filtered-output.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: Get short SHA
id: vars
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: coverage-report-${{ steps.vars.outputs.SHORT_SHA }}.zip
path: coverage/index.html
retention-days: 1
build:
needs: test
if: |
always() &&
github.ref == 'refs/heads/main' &&
(needs.test.result == 'success' || needs.test.result == 'skipped')
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -21,6 +67,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"

- name: Install Dependencies
run: npm ci
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode/

# Logs
logs
*.log
Expand Down
9 changes: 0 additions & 9 deletions .vscode/extensions.json

This file was deleted.

Empty file removed CNAME
Empty file.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="/favicon.webp" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css"
Expand Down
167 changes: 167 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"test:unit": "vitest",
"test:unit": "vitest run --coverage",
"test:dev": "vitest",
"build-only": "vite build",
"type-check": "vue-tsc --build",
"lint": "eslint . --fix --cache",
Expand All @@ -28,6 +29,7 @@
"@types/node": "^24.10.1",
"@vitejs/plugin-vue": "^6.0.2",
"@vitejs/plugin-vue-jsx": "^5.1.2",
"@vitest/coverage-istanbul": "^4.0.14",
"@vitest/eslint-plugin": "^1.5.0",
"@vue/eslint-config-prettier": "^10.2.0",
"@vue/eslint-config-typescript": "^14.6.0",
Expand All @@ -45,4 +47,4 @@
"vitest": "^4.0.14",
"vue-tsc": "^3.1.5"
}
}
}
Binary file added public/favicon.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 7 additions & 27 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,37 +1,17 @@
<script setup lang="ts">
import { ref } from 'vue'

const year = new Date().getFullYear()

const theme = ref('light')

function onClick() {
theme.value = theme.value === 'light' ? 'dark' : 'light'
}
import NavBar from './components/NavBar.vue'
import { useThemeStore } from '@/stores/theme'
import PageFooter from './components/PageFooter.vue'
const theme = useThemeStore()
</script>

<template>
<v-app :theme="theme">
<v-app-bar>
<v-container class="fg-white mx-auto d-flex align-center justify-center">
<v-app-bar-title>Welcome to RevzIT</v-app-bar-title>
<v-btn to="/"> Home </v-btn>
<!-- <v-btn to="/about"> About </v-btn>
<v-btn to="/github"> Github </v-btn> -->
<v-btn
:prepend-icon="theme === 'light' ? 'mdi-weather-sunny' : 'mdi-weather-night'"
text="Toggle Theme"
slim
@click="onClick"
/>
</v-container>
</v-app-bar>
<v-app :theme="theme.theme">
<nav-bar />
<v-main class="mx-auto d-flex align-center justify-center">
<router-view />
</v-main>
<v-footer class="mx-auto d-flex align-center justify-center">
Reverendyz© {{ year }}
</v-footer>
<page-footer color="#FFFFFF00" />
</v-app>
</template>

Expand Down
Loading