Nuxt osnova

pull/16/head
janko 2023-02-22 21:19:55 +01:00
parent 9e2529b323
commit 651bf42b53
11 changed files with 9026 additions and 0 deletions

8
nuxt/.gitignore vendored 100644
View File

@ -0,0 +1,8 @@
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.env
dist

2
nuxt/.npmrc 100644
View File

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

42
nuxt/README.md 100644
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.

5
nuxt/app.vue 100644
View File

@ -0,0 +1,5 @@
<template>
<div>
<Glava />
</div>
</template>

View File

@ -0,0 +1,18 @@
<script setup="setup">
onMounted(() => {
if (window) {
window.api = useApi()
}
})
</script>
<template>
<section class="glava">
<h1>YUFU</h1>
<ul class="meni">
<li>Domov</li>
<li>Manifest</li>
<li>Arhiv</li>
</ul>
</section>
</template>

View File

@ -0,0 +1,8 @@
// import { DruxtClient } from 'druxt'
export const useApi = () => {
// @TODO!!
// const druxt = new DruxtClient('http://http://yufu-manifest.ddev.site')
// console.log(druxt)
//return druxt
}

View File

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

8919
nuxt/package-lock.json generated 100644

File diff suppressed because it is too large Load Diff

16
nuxt/package.json 100644
View File

@ -0,0 +1,16 @@
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "^3.2.2"
},
"dependencies": {
"druxt": "^0.21.0"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

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