-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4dcc809
commit e79beea
Showing
9 changed files
with
3,731 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Nuxt 3 Minimal Starter | ||
|
||
We recommend to look at the [documentation](https://v3.nuxtjs.org). | ||
|
||
## Setup | ||
|
||
Make sure to install the dependencies | ||
|
||
```bash | ||
yarn install | ||
``` | ||
|
||
## Development | ||
|
||
Start the development server on http://localhost:3000 | ||
|
||
```bash | ||
yarn dev | ||
``` | ||
|
||
## Production | ||
|
||
Build the application for production: | ||
|
||
```bash | ||
yarn build | ||
``` | ||
|
||
Checkout the [deployment documentation](https://v3.nuxtjs.org/docs/deployment). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<div> | ||
<div> | ||
<div>{{ state }}</div> | ||
<input type="text" v-model="firstName"> | ||
<input type="text" v-model="lastName"> | ||
<div> | ||
<button @click="reset()">Reset</button> | ||
</div> | ||
</div> | ||
<NuxtWelcome /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { | ||
state, | ||
reset, | ||
computeState | ||
} from './store'; | ||
const firstName = computeState(s => s.firstName); | ||
const lastName = computeState(s => s.lastName); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { | ||
defineNuxtConfig, | ||
} from 'nuxt3'; | ||
|
||
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config | ||
export default defineNuxtConfig({ | ||
modules: [ | ||
'@nuxtjs/harlem', | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"dev": "nuxi dev", | ||
"build": "nuxi build", | ||
"start": "node .output/server/index.mjs" | ||
}, | ||
"devDependencies": { | ||
"nuxt3": "latest" | ||
}, | ||
"dependencies": { | ||
"@harlem/extension-compose": "^2.2.3", | ||
"@harlem/extension-reset": "^2.2.3", | ||
"@harlem/extension-storage": "^2.2.3", | ||
"@nuxtjs/harlem": "^1.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import composeExtension from '@harlem/extension-compose'; | ||
import storageExtension from '@harlem/extension-storage'; | ||
import resetExtension from '@harlem/extension-reset'; | ||
|
||
export const { | ||
state, | ||
getter, | ||
reset, | ||
computeState, | ||
} = createStore('app', { | ||
firstName: 'John', | ||
lastName: 'Smith', | ||
}, { | ||
extensions: [ | ||
composeExtension(), | ||
storageExtension({ | ||
prefix: 'nuxt', | ||
restore: true, | ||
}), | ||
resetExtension(), // order is important! | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
// https://v3.nuxtjs.org/concepts/typescript | ||
"extends": "./.nuxt/tsconfig.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
"app", | ||
"core", | ||
"docs", | ||
"examples/*", | ||
"packages/*", | ||
"extensions/*", | ||
"plugins/*" | ||
|
Oops, something went wrong.