Skip to content

Commit

Permalink
Merge branch 'v2' of https://github.com/ZIT-P22/statzy into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyssocial committed Nov 20, 2023
2 parents 0f25015 + fa4cb43 commit 73b2e67
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 32 deletions.
14 changes: 7 additions & 7 deletions .demo/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// see all availabe configs here: https://github.com/viandwi24/nuxt3-awesome-starter/blob/v2/app.config.ts
export default defineAppConfig({
awesome: {
name: 'Nuxt 3 Awesome Starter Demo',
name: 'Statzy-P22',
description:
'a demo from starter template for Nuxt 3 with minimalist themes design, built in components, drawer & menus, and more.',
'Statzy-P22 is a web application that provides a dashboard for the user to view their statistics. The application is built using Nuxt.js and Tailwind CSS',
author: {
name: 'viandwi24',
name: 'P-22',
links: {
github: 'https://github.com/viandwi24',
medium: 'https://viandwi24.medium.com',
website: 'https://viandwi24.site',
github: 'https://github.com/ZIT-P22',
medium: '',
website: '',
},
},
layout: {
Expand All @@ -23,7 +23,7 @@ export default defineAppConfig({
},
project: {
links: {
github: 'https://github.com/viandwi24/nuxt3-awesome-starter',
github: 'https://github.com/ZIT-P22/statzy',
},
},
},
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/nuxtjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Sample workflow for building and deploying a Nuxt site to GitHub Pages
#
# To get started with Nuxt see: https://nuxtjs.org/docs/get-started/installation
#
name: Deploy Nuxt site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["v2"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install PNPM
run: npm install -g pnpm

- name: Cache node_modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install

- name: Static HTML export with Nuxt
run: pnpm run generate

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
15 changes: 7 additions & 8 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ declare module '@nuxt/schema' {

export default defineAppConfig({
awesome: {
name: 'Nuxt 3 Awesome Starter',
name: 'Statzy-P22',
description:
'a starter template for Nuxt 3 with minimalist themes design, built in components, drawer & menus, and more.',
'Statzy-P22 is a web application that provides a dashboard for the user to view their statistics. The application is built using Nuxt.js and Tailwind CSS',
project: {
links: {
github: 'https://github.com/viandwi24/nuxt3-awesome-starter',
github: 'https://github.com/ZIT-P22/statzy',
},
},
layout: {
Expand All @@ -95,7 +95,7 @@ export default defineAppConfig({
year: new Date().getFullYear(),
},
welcome: {
title: 'Nuxt 3 Awesome Starter',
title: 'Statzy-P22',
disableInfoReplaceIndexInWelcomePage: true,
primaryActionButton: {
title: 'Nuxt 3',
Expand All @@ -108,11 +108,10 @@ export default defineAppConfig({
},
},
author: {
name: 'viandwi24',
name: 'P-22',
links: {
github: 'https://github.com/viandwi24',
medium: 'https://viandwi24.medium.com',
website: 'https://viandwi24.site',
github: 'https://github.com/ZIT-P22',
website: 'https://zitau.de',
},
},
disableInfoReplaceIndexInWelcomePage: false,
Expand Down
14 changes: 7 additions & 7 deletions app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import type { AppConfigInput } from 'nuxt/schema'

export default defineAppConfig({
awesome: {
name: 'Nuxt 3 Awesome Starter',
name: 'Statzy-P22',
description:
'a starter template for Nuxt 3 with minimalist themes design, built in components, drawer & menus, and more.',
'Statzy-P22 is a web application that provides a dashboard for the user to view their statistics. The application is built using Nuxt.js and Tailwind CSS',
project: {
links: {
github: 'https://github.com/viandwi24/nuxt3-awesome-starter',
github: 'https://github.com/ZIT-P22/statzy',
},
},
layout: {
Expand Down Expand Up @@ -43,16 +43,16 @@ export default defineAppConfig({
year: new Date().getFullYear(),
},
welcome: {
title: 'Nuxt 3 Awesome Starter',
title: 'Statzy-P22 Welcome P22',
disableInfoReplaceIndexInWelcomePage: true,
},
},
author: {
name: 'viandwi24',
links: {
github: 'https://github.com/viandwi24',
medium: 'https://viandwi24.medium.com',
website: 'https://viandwi24.site',
github: 'https://github.com/ZIT-P22',
medium: 'com',
website: '',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion modules/awesome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { Config as TailwindConfig } from 'tailwindcss'

export default defineNuxtModule({
meta: {
name: 'Nuxt 3 Awesome Starter Kit Module',
name: 'Statzy-P22',
},
async setup(_options, nuxt) {
const resolver = createResolver(import.meta.url)
Expand Down
16 changes: 8 additions & 8 deletions nuxt.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { NuxtAwesomeAppConfig } from './app.config'
export default defineNuxtSchema({
appConfig: {
awesome: {
name: 'Nuxt 3 Awesome Starter',
name: 'Statzy-P22',
description:
'a starter template for Nuxt 3 with minimalist themes design, built in components, drawer & menus, and more.',
'Statzy is a web application that allows you to monitor your website statistics and analytics in real-time using Vue.js, Nuxt.js, TailwindCSS, and Firebase.',
project: {
links: {
github: 'https://github.com/viandwi24/nuxt3-awesome-starter',
github: 'https://github.com/ZIT-P22/statzy',
},
},
layout: {
Expand All @@ -21,16 +21,16 @@ export default defineNuxtSchema({
year: 2023,
},
welcome: {
title: 'Nuxt 3 Awesome Starter',
title: 'Statzy-P22',
disableInfoReplaceIndexInWelcomePage: true,
},
},
author: {
name: 'viandwi24',
name: 'P-22',
links: {
github: 'https://github.com/viandwi24',
medium: 'https://viandwi24.medium.com',
website: 'https://viandwi24.site',
github: 'https://github.com/ZIT-P22',
medium: '',
website: '',
},
},
} as NuxtAwesomeAppConfig,
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts" setup>
const { awesome } = useAppConfig()
definePageMeta({ layout: 'page' })
useHead({ titleTemplate: '', title: awesome?.name || 'Nuxt 3 Awesome Starter' })
useHead({ titleTemplate: '', title: awesome?.name || 'Statzy-P22' })
</script>

<template>
Expand Down

0 comments on commit 73b2e67

Please sign in to comment.