Skip to content

Commit

Permalink
replace vue spa with ssr nuxt site
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit de3fcd3
Author: Marco La Rosa <[email protected]>
Date:   Wed Jan 10 17:49:13 2024 +1100

    replace SPA site with nuxt site

commit 05bbc87
Author: Marco La Rosa <[email protected]>
Date:   Wed Jan 10 17:41:27 2024 +1100

    cleanup

commit bf484e7
Author: Marco La Rosa <[email protected]>
Date:   Wed Jan 10 17:41:01 2024 +1100

    revise as nuxt app
  • Loading branch information
marcolarosa committed Jan 10, 2024
1 parent f34edc2 commit b32bf7f
Show file tree
Hide file tree
Showing 111 changed files with 18,144 additions and 4,274 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:

# Pick your own package manager and build script
- run: npm install
- run: npm run build
- run: npm run generate
env:
NITRO_PRESET: github_pages

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs
path: ./.output/public

# Deployment job
deploy:
Expand Down
38 changes: 19 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
# Misc
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
82 changes: 70 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,75 @@
# Vue 3 + Vite
# Nuxt 3 Minimal Starter

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3
`<script setup>` SFCs, check out the
[script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Recommended IDE Setup
## Setup

- [VS Code](https://code.visualstudio.com/) +
[Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) +
[TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
Make sure to install the dependencies:

## Build and deploy
```bash
# npm
npm install

- npm run build
- git add docs && git commit -a
- git po master
# pnpm
pnpm install

# yarn
yarn install

# bun
bun install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev
```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
2 changes: 1 addition & 1 deletion src/App.vue → app.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="container mx-auto mb-20 p-4">
<NavigationComponent />
<router-view class="my-4" />
<NuxtPage />
<FooterComponent />
</div>
</template>
Expand Down
3 changes: 3 additions & 0 deletions assets/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
a {
color: rgb(30 64 175)
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div><router-link to="/desktop"> Desktop</router-link></div>
<div><router-link to="/web"> Web</router-link></div>
<div><router-link to="/component"> Component</router-link></div>
<div><router-link to="/profile"> Profiles</router-link></div>
<div><router-link to="/profiles"> Profiles</router-link></div>
<div><router-link to="/datapacks"> Data Packs</router-link></div>
</div>
<div class="flex flex-col md:w-60">
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<template>
<div class="sticky top-0 z-50 border-b border-slate-400">
<div
class="flex flex-row justify-between md:space-x-8 p-2 text-base xl:text-xl bg-slate-200"
>
<div class="sticky top-0 z-50 border-b border-slate-400 bg-slate-200">
<div class="flex flex-row justify-between md:space-x-8 p-2 text-base xl:text-xl">
<router-link to="/">
<img src="/logos/describo-logo.png" class="h-16 xl:h-20" />
</router-link>
Expand All @@ -21,7 +19,7 @@
target="_blank"
class="hover:text-orange-600"
>
<i class="fa-brands fa-github"></i>
<font-awesome-icon icon="fa-brands fa-github" />
<!-- <div class="inline">&nbsp;Organisation</div> -->
</a>
</div>
Expand All @@ -41,7 +39,7 @@
target="_blank"
class="hover:text-orange-600"
>
<i class="fa-solid fa-bullhorn"></i>
<font-awesome-icon icon="fa-solid fa-bullhorn" />
<!-- <div class="inline">&nbsp;Announcements</div> -->
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="flex flex-row justify-around">
<div class="hover:text-orange-600 cursor-pointer text-center">
<a :href="data.download.windows" download class="hover:text-orange-600">
<i class="fa-brands fa-windows fa-4x"></i>
<font-awesome-icon icon="fa-brands fa-windows" size="4x" />
</a>
</div>
<div class="flex flex-row space-x-6">
Expand All @@ -13,7 +13,7 @@
download
class="flex flex-row hover:text-orange-600 items-center"
>
<i class="fa-brands fa-apple fa-4x"></i>
<font-awesome-icon icon="fa-brands fa-apple" size="4x" />
<img src="/logos/apple-m.jpeg" class="h-12 translate-y-3 translate-x-1" />
</a>
</div>
Expand All @@ -23,14 +23,14 @@
download
class="flex flex-row hover:text-orange-600 items-center"
>
<i class="fa-brands fa-apple fa-4x"></i>
<font-awesome-icon icon="fa-brands fa-apple" size="4x" />
<img src="/logos/intel.png" class="h-8 translate-y-1" />
</a>
</div>
</div>
<div class="hover:text-orange-600 cursor-pointer text-center">
<a :href="data.download.linux" download class="hover:text-orange-600">
<i class="fa-brands fa-linux fa-4x"></i>
<font-awesome-icon icon="fa-brands fa-linux" size="4x" />
</a>
</div>
</div>
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions src/components/Stack.vue → components/Stack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@click="previousCard()"
v-if="cards.length > 1"
>
<i class="fa-solid fa-chevron-left"></i>
<font-awesome-icon icon="fa-solid fa-chevron-left" />
</div>
<div v-auto-animate="{ duration: 300 }">
<card :key="ref(idx)" v-for="(card, idx) of cards" :class="{ hidden: idx !== n }">
Expand Down Expand Up @@ -34,18 +34,19 @@
v-if="cards.length > 1"
>
<i class="fa-solid fa-chevron-right"></i>
<font-awesome-icon icon="fa-solid fa-chevron-right" />
</div>
</div>
<div class="hidden md:flex flex-row place-content-end">
{{ n + 1 }} / {{ cards.length }}
</div>
<div class="flex flex-row md:hidden place-content-between" v-if="cards.length > 1">
<div class="cursor-pointer px-2" @click="previousCard()">
<i class="fa-solid fa-chevron-left"></i>
<font-awesome-icon icon="fa-solid fa-chevron-left" />
</div>
<div>{{ n + 1 }} / {{ cards.length }}</div>
<div class="cursor-pointer px-2" @click="nextCard()">
<i class="fa-solid fa-chevron-right"></i>
<font-awesome-icon icon="fa-solid fa-chevron-right" />
</div>
</div>
</div>
Expand Down
3 changes: 0 additions & 3 deletions docs/assets/Dashboard-dd086a5b.js

This file was deleted.

16 changes: 0 additions & 16 deletions docs/assets/Description-8906e5ec.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/index-54b1859e.css

This file was deleted.

837 changes: 0 additions & 837 deletions docs/assets/index-d76b1462.js

This file was deleted.

Binary file removed docs/describo-i18-en.png
Binary file not shown.
Binary file removed docs/describo-i18-hu.png
Binary file not shown.
Binary file removed docs/describo-star-us.png
Binary file not shown.
Binary file removed docs/describo-ui.png
Binary file not shown.
Binary file removed docs/desktop-updates.png
Binary file not shown.
Binary file removed docs/desktop1.png
Binary file not shown.
Binary file removed docs/desktop10.png
Binary file not shown.
Binary file removed docs/desktop11.png
Binary file not shown.
Binary file removed docs/desktop12.png
Binary file not shown.
Binary file removed docs/desktop13.png
Binary file not shown.
Binary file removed docs/desktop14.png
Binary file not shown.
Binary file removed docs/desktop15.png
Binary file not shown.
Binary file removed docs/desktop2.png
Binary file not shown.
Binary file removed docs/desktop3.png
Binary file not shown.
Binary file removed docs/desktop4.png
Binary file not shown.
Binary file removed docs/desktop5.png
Binary file not shown.
Binary file removed docs/desktop6.png
Binary file not shown.
Binary file removed docs/desktop7.png
Binary file not shown.
Binary file removed docs/desktop8.png
Binary file not shown.
Binary file removed docs/desktop9.png
Binary file not shown.
Binary file removed docs/documentation/desktop/dashboard1.png
Binary file not shown.
Binary file removed docs/documentation/desktop/desktop1.png
Binary file not shown.
Binary file removed docs/documentation/desktop/desktop2.png
Binary file not shown.
Binary file removed docs/documentation/desktop/desktop3.png
Binary file not shown.
Binary file removed docs/documentation/desktop/desktop4.png
Binary file not shown.
Binary file removed docs/documentation/desktop/desktop5.png
Diff not rendered.
Binary file removed docs/documentation/desktop/desktop6.png
Diff not rendered.
Binary file removed docs/documentation/desktop/desktop7.png
Diff not rendered.
Binary file removed docs/documentation/desktop/desktop8.png
Diff not rendered.
Binary file removed docs/flag-aboriginal.png
Diff not rendered.
Binary file removed docs/flag-au.png
Diff not rendered.
Binary file removed docs/flag-hu.png
Diff not rendered.
15 changes: 0 additions & 15 deletions docs/index.html

This file was deleted.

Binary file removed docs/logos/apple-m.jpeg
Diff not rendered.
Binary file removed docs/logos/chrome.png
Diff not rendered.
Binary file removed docs/logos/cs3mesh-logo.png
Diff not rendered.
Binary file removed docs/logos/describo-logo.png
Diff not rendered.
Binary file removed docs/logos/edge.png
Diff not rendered.
Binary file removed docs/logos/intel.png
Diff not rendered.
Binary file removed docs/logos/ldaca-logo.png
Diff not rendered.
Binary file removed docs/logos/muenster-logo.png
Diff not rendered.
Binary file removed docs/logos/nyingarn-logo.png
Diff not rendered.
Binary file removed docs/logos/react-logo.png
Diff not rendered.
Binary file removed docs/logos/uts-logo.png
Diff not rendered.
Binary file removed docs/nyingarn1.png
Diff not rendered.
Binary file removed docs/nyingarn2.png
Diff not rendered.
Binary file removed docs/pack1.png
Diff not rendered.
Binary file removed docs/pack2.png
Diff not rendered.
Binary file removed docs/pack3.png
Diff not rendered.
Binary file removed docs/profile1.png
Diff not rendered.
Binary file removed docs/profile2.png
Diff not rendered.
Binary file removed docs/profile3.png
Diff not rendered.
Binary file removed docs/tutorial1.png
Diff not rendered.
Binary file removed docs/tutorial2.png
Diff not rendered.
Binary file removed docs/tutorial3.png
Diff not rendered.
Binary file removed docs/tutorial4.png
Diff not rendered.
Binary file removed docs/tutorial5.png
Diff not rendered.
Binary file removed docs/tutorial6.png
Diff not rendered.
Binary file removed docs/tutorial7.png
Diff not rendered.
Binary file removed docs/tutorial8.png
Diff not rendered.
Binary file removed docs/users-aroma-in-dataverse.png
Diff not rendered.
Binary file removed docs/users-aroma-standalone.png
Diff not rendered.
Binary file removed docs/web1.png
Diff not rendered.
Binary file removed docs/windows-sig1.png
Diff not rendered.
Binary file removed docs/windows-sig2.png
Diff not rendered.
Binary file removed docs/windows-sig3.png
Diff not rendered.
Binary file removed docs/windows-sig4.png
Diff not rendered.
57 changes: 0 additions & 57 deletions index.html

This file was deleted.

23 changes: 23 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
pages: true,
devtools: { enabled: false },
modules: ["@nuxtjs/tailwindcss"],
css: ["@fortawesome/fontawesome-svg-core/styles.css", "@/assets/styles.css"],
build: {
transpile: [
"@fortawesome/vue-fontawesome",
"@fortawesome/fontawesome-svg-core",
"@fortawesome/free-solid-svg-icons",
"@fortawesome/free-regular-svg-icons",
"@fortawesome/free-brands-svg-icons",
],
},
app: {
head: {
bodyAttrs: {
class: "bg-slate-200",
},
},
},
});
Loading

0 comments on commit b32bf7f

Please sign in to comment.