mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-12 13:26:45 +00:00
use bun
use bun
This commit is contained in:
parent
2d2357e925
commit
36a28385c1
11 changed files with 53 additions and 9133 deletions
34
.gitignore
vendored
34
.gitignore
vendored
|
|
@ -1,12 +1,24 @@
|
||||||
build/
|
# Nuxt dev/build outputs
|
||||||
node_modules/
|
.output
|
||||||
.idea/
|
.data
|
||||||
.vscode/
|
.nuxt
|
||||||
|
.nitro
|
||||||
|
.cache
|
||||||
|
dist
|
||||||
|
|
||||||
|
# Node dependencies
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
.DS_Store
|
||||||
|
.fleet
|
||||||
|
.idea
|
||||||
|
|
||||||
|
# Local env files
|
||||||
.env
|
.env
|
||||||
.yarn/*
|
.env.*
|
||||||
!.yarn/cache
|
!.env.example
|
||||||
!.yarn/patches
|
|
||||||
!.yarn/plugins
|
|
||||||
!.yarn/releases
|
|
||||||
!.yarn/sdks
|
|
||||||
!.yarn/versions
|
|
||||||
|
|
|
||||||
7
.gitpod.Dockerfile
vendored
7
.gitpod.Dockerfile
vendored
|
|
@ -1,7 +0,0 @@
|
||||||
FROM gitpod/workspace-full
|
|
||||||
|
|
||||||
# Install custom tools, runtimes, etc.
|
|
||||||
# For example "bastet", a command-line tetris clone:
|
|
||||||
# RUN brew install bastet
|
|
||||||
#
|
|
||||||
# More information: https://www.gitpod.io/docs/config-docker/
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
image:
|
|
||||||
file: .gitpod.Dockerfile
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- init: yarn install && yarn build
|
|
||||||
command: yarn start
|
|
||||||
21
TODO.md
21
TODO.md
|
|
@ -1,15 +1,10 @@
|
||||||
# TO DO
|
# TO DO
|
||||||
|
|
||||||
- [ ] send message after contact form validation (confirm to sender and msg+info to admin)
|
- [x] use bun package manager
|
||||||
- [ ] Breadcrumb
|
- [ ] use nuxt framework
|
||||||
- [ ] Cookie bar
|
- [ ] rewrite the random page, the current landing page
|
||||||
- [x] code cleanup (props and refactoring)
|
- [ ] rewrite the recipe page
|
||||||
- [ ] Back to top button
|
- [ ] deploy
|
||||||
- [ ] Close Sidebar at outside click
|
- [ ] pwa
|
||||||
- [ ] Take a look at some components [here](http://react-materialize.github.io/react-materialize/?path=/story/css-grid--default)
|
- [ ] seo, robots.txt
|
||||||
- [ ] Decoupled application and data layers. Abstract such that the front end does not know where the data comes from.
|
- [ ] update the README
|
||||||
- [x] Create PageLayout component
|
|
||||||
- [ ] Use Css-in-Js
|
|
||||||
- [x] Redirect to 404
|
|
||||||
- [x] Typescript
|
|
||||||
- [x] strict typing
|
|
||||||
|
|
|
||||||
5
app.vue
Normal file
5
app.vue
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<NuxtWelcome />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
BIN
bun.lockb
Executable file
BIN
bun.lockb
Executable file
Binary file not shown.
4
nuxt.config.ts
Normal file
4
nuxt.config.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
|
export default defineNuxtConfig({
|
||||||
|
devtools: { enabled: true }
|
||||||
|
})
|
||||||
47
package.json
47
package.json
|
|
@ -1,42 +1,17 @@
|
||||||
{
|
{
|
||||||
"name": "meal-planner",
|
"name": "chefs",
|
||||||
"version": "0.1.0",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"type": "module",
|
||||||
"@testing-library/jest-dom": "^5.11.9",
|
|
||||||
"@testing-library/react": "^11.2.5",
|
|
||||||
"@testing-library/user-event": "^13.0.10",
|
|
||||||
"react": "^17.0.2",
|
|
||||||
"react-dom": "^17.0.2",
|
|
||||||
"react-router-dom": "^6.1.1",
|
|
||||||
"react-scripts": "^5.0.0"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"build": "nuxt build",
|
||||||
"build": "react-scripts build",
|
"dev": "nuxt dev --port=3009",
|
||||||
"test": "react-scripts test",
|
"generate": "nuxt generate",
|
||||||
"eject": "react-scripts eject"
|
"preview": "nuxt preview",
|
||||||
|
"postinstall": "nuxt prepare"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"dependencies": {
|
||||||
"extends": "react-app"
|
"nuxt": "^3.11.2",
|
||||||
},
|
"vue": "^3.4.21",
|
||||||
"browserslist": {
|
"vue-router": "^4.3.0"
|
||||||
"production": [
|
|
||||||
">0.2%",
|
|
||||||
"not dead",
|
|
||||||
"not op_mini all"
|
|
||||||
],
|
|
||||||
"development": [
|
|
||||||
"last 1 chrome version",
|
|
||||||
"last 1 firefox version",
|
|
||||||
"last 1 safari version"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/node": "^14.14.37",
|
|
||||||
"@types/react": "^17.0.3",
|
|
||||||
"@types/react-router-dom": "^5.1.7",
|
|
||||||
"prettier": "^2.5.1",
|
|
||||||
"typescript": "^4.2.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8"/>
|
|
||||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico"/>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
||||||
<meta name="theme-color" content="#ff6d00"/>
|
|
||||||
<meta name="description" content="Online Meal Planner | Chef's"/>
|
|
||||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png"/>
|
|
||||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"/>
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/>
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Marck+Script&display=swap"/>
|
|
||||||
<title>Online Meal Planner | Chef's</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
||||||
<div id="root"></div>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -1,29 +1,4 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
"target": "es6",
|
"extends": "./.nuxt/tsconfig.json"
|
||||||
"lib": [
|
|
||||||
"dom",
|
|
||||||
"dom.iterable",
|
|
||||||
"esnext"
|
|
||||||
],
|
|
||||||
"allowJs": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"strict": true,
|
|
||||||
"noUnusedParameters": true,
|
|
||||||
"noUnusedLocals": true,
|
|
||||||
"noImplicitReturns": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
"module": "esnext",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"isolatedModules": true,
|
|
||||||
"noEmit": true,
|
|
||||||
"jsx": "react-jsx"
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"src"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue