Skip to content

Commit c89a8a3

Browse files
committed
feat: use styled of mui to custom app #1
1 parent f9d5853 commit c89a8a3

File tree

172 files changed

+1136
-381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+1136
-381
lines changed

.eslintrc.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"extends": ["next/core-web-vitals","plugin:@typescript-eslint/recommended"],
3+
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"],
4+
"rules": {
5+
"indent": ["error", 2],
6+
"linebreak-style": ["error", "unix"],
7+
"quotes": ["error", "single"],
8+
"semi": ["error", "always"],
9+
"react/react-in-jsx-scope": "off",
10+
"camelcase": "warn",
11+
"spaced-comment": "error",
12+
"no-duplicate-imports": "error"
13+
},
14+
"ignorePatterns": ["webpack.config.js", "**/vendor/*.js", "**/openapi.json", "src/assets/**", "**/*.scss"]
315
}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
# production
1616
/build
17+
public/sw.js
18+
public/workbox-*.js
1719

1820
# misc
1921
.DS_Store
@@ -34,3 +36,8 @@ yarn-error.log*
3436
# typescript
3537
*.tsbuildinfo
3638
next-env.d.ts
39+
40+
# build
41+
public/sw.js
42+
public/sw.js.map
43+
public/workbox-*

next.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** @type {import('next').NextConfig} */
2+
const path = require('path');
3+
24
const withPWA = require('next-pwa')({
35
dest: 'public',
46
});
@@ -10,6 +12,9 @@ const nextConfig = withPWA({
1012
locales: ['en'],
1113
defaultLocale: 'en',
1214
},
15+
sassOptions: {
16+
includePaths: [path.join(__dirname, 'src/styles')],
17+
},
1318
});
1419

1520
module.exports = nextConfig;

package-lock.json

Lines changed: 71 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "next start -p 8081",
1010
"lint": "eslint --fix",
1111
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,css,md,json,scss}' --config ./.prettierrc",
12-
"gen-api": "openapi --input ./src/api/swagger/openapi.json --output ./src/api/swagger --client axios"
12+
"gen-api:pet": "openapi --input ./src/api/petstore/openapi.json --output ./src/api/petstore --name PetStoreServer --client axios --indent 2"
1313
},
1414
"author": {
1515
"name": "John Smith",
@@ -49,13 +49,14 @@
4949
"devDependencies": {
5050
"@commitlint/config-conventional": "^17.2.0",
5151
"commitlint": "^17.2.0",
52+
"eslint-plugin-prettier": "^4.2.1",
5253
"husky": "^8.0.2",
5354
"lint-staged": "^13.1.0",
5455
"module-resolver": "^1.0.0",
5556
"openapi-typescript-codegen": "^0.23.0",
5657
"prettier": "^2.8.1",
5758
"rimraf": "^3.0.2",
58-
"sass": "^1.57.0"
59+
"sass": "^1.57.1"
5960
},
6061
"lint-staged": {
6162
"src/**/*.{js,jsx,ts,tsx,json}": [

public/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"name": "PWA App",
33
"short_name": "App",
44
"icons": [
5+
{
6+
"src": "/favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
},
510
{
611
"src": "/maskable_icon.png",
712
"sizes": "192x192",

public/sw.js

Lines changed: 101 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)