slow transition to nuxt

This commit is contained in:
mwinter 2023-06-06 19:51:48 +02:00
parent 8ef4c44a1a
commit 741171a221
13 changed files with 5282 additions and 0 deletions

2
.gitignore vendored
View file

@ -7,3 +7,5 @@ nginx/conf.d/default.conf
nextcloud/
gitea/
.env
portfolio-nuxt/.nuxt/
portfolio-nuxt/node_modules/

11
portfolio-nuxt/.gitignore vendored Normal file
View file

@ -0,0 +1,11 @@
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.env
dist
.DS_Store
.fleet
.idea

2
portfolio-nuxt/.npmrc Normal file
View file

@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false

42
portfolio-nuxt/README.md Normal file
View file

@ -0,0 +1,42 @@
# Nuxt 3 Minimal Starter
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
## Setup
Make sure to install the dependencies:
```bash
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install
```
## Development Server
Start the development server on `http://localhost:3000`
```bash
npm run dev
```
## Production
Build the application for production:
```bash
npm run build
```
Locally preview production build:
```bash
npm run preview
```
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

7
portfolio-nuxt/app.vue Normal file
View file

@ -0,0 +1,7 @@
<template>
<div>
<NuxtLayout>
<NuxtPage/>
</NuxtLayout>
</div>
</template>

View file

@ -0,0 +1,22 @@
<template>
<div>
<h1 class="text-4xl">michael winter</h1>
<h2>
<ul class="inline-list">
<li>works</li>
<li>events</li>
<li>about</li>
<li>code</li>
</ul>
</h2>
<slot /> <!-- required here only -->
</div>
</template>
<style>
.inline-list li {
display: inline;
padding-left: 5px;
padding-right: 20px;
}
</style>

View file

@ -0,0 +1,4 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ['@nuxtjs/tailwindcss']
})

View file

@ -0,0 +1,16 @@
{
"name": "nuxt-app",
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"@nuxtjs/tailwindcss": "^6.7.0",
"@types/node": "^18",
"nuxt": "^3.5.2"
}
}

View file

@ -0,0 +1,17 @@
<template>
<h1>Index page</h1>
<div class="grid grid-cols-3 gap-4">
<ul>
<li class="italic" v-for="item in works">{{ item.title }}</li>
</ul>
<ul>
<li v-for="item in pubs">{{ item.entryTags.title }}</li>
</ul>
</div>
</template>
<script setup>
const { data: works } = await useFetch('https://unboundedpress.org/api/works?sort=-date&pagesize=200')
const { data: pubs } = await useFetch('https://unboundedpress.org/api/publications/_aggrs/publications?pagesize=200')
</script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}

View file

@ -0,0 +1,4 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}

5152
portfolio-nuxt/yarn.lock Normal file

File diff suppressed because it is too large Load diff