GeezerVison is showing github.com — Release bambooFw fe · bamboo-firewall/fe@441741c
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +NEXT_PUBLIC_APP_URL=xxx | | 2 | +NEXT_PUBLIC_BAMBOO_API_URL=xxx |
Collapse file Copy file name to clipboard +94Lines changed: 94 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +{ | | 2 | + "extends": [ | | 3 | + "next/core-web-vitals", | | 4 | + "eslint:recommended", | | 5 | + "plugin:@typescript-eslint/recommended", | | 6 | + "plugin:react/recommended", | | 7 | + "next", | | 8 | + "prettier" | | 9 | + ], | | 10 | + "rules": { | | 11 | + // eslint | | 12 | + "max-lines": ["warn", 300], | | 13 | + "no-case-declarations": "off", | | 14 | + "no-console": "error", | | 15 | + "no-debugger": "error", | | 16 | + "no-var": "error", | | 17 | + "no-unused-vars": "warn", | | 18 | + "block-scoped-var": "error", | | 19 | + "no-param-reassign": "error", | | 20 | + "space-before-function-paren": ["off", "never"], | | 21 | + "key-spacing": [ | | 22 | + "warn", | | 23 | + { | | 24 | + "mode": "minimum", | | 25 | + "beforeColon": false, | | 26 | + "afterColon": true | | 27 | + } | | 28 | + ], | | 29 | + "arrow-spacing": ["warn"], | | 30 | + "spaced-comment": ["warn", "always", { "markers": ["/"] }], | | 31 | + "space-in-parens": ["warn", "never"], | | 32 | + "object-curly-spacing": ["warn", "always"], | | 33 | + "no-trailing-spaces": "warn", | | 34 | + "object-shorthand": ["warn", "methods"], | | 35 | + "prefer-template": "warn", | | 36 | + "no-useless-concat": "warn", | | 37 | + "prefer-const": "error", | | 38 | + "yoda": ["warn", "never", { "exceptRange": true }], | | 39 | + "quotes": ["warn", "single", { "avoidEscape": true }], | | 40 | + "max-len": [ | | 41 | + "warn", | | 42 | + 150, | | 43 | + { | | 44 | + "ignoreComments": true, | | 45 | + "ignoreUrls": true, | | 46 | + "ignorePattern": "d=\"([\\s\\S]*?)\"|className=\"([\\s\\S]*?)\"" | | 47 | + } | | 48 | + ], | | 49 | + "no-constant-condition": [ | | 50 | + "warn", | | 51 | + { | | 52 | + "checkLoops": false | | 53 | + } | | 54 | + ], | | 55 | + "brace-style": ["warn"], | | 56 | + "eqeqeq": ["warn", "always"], | | 57 | + | | 58 | + // react | | 59 | + "react/react-in-jsx-scope": "off", | | 60 | + "react/prop-types": "off", | | 61 | + "react/jsx-no-bind": "off", | | 62 | + "react/jsx-boolean-value": "warn", | | 63 | + "react/jsx-closing-bracket-location": "warn", | | 64 | + "react/jsx-tag-spacing": "warn", | | 65 | + "jsx-quotes": ["warn", "prefer-double"], | | 66 | + "react/jsx-wrap-multilines": "warn", | | 67 | + "react/jsx-handler-names": [ | | 68 | + "off", | | 69 | + { | | 70 | + "eventHandlerPropPrefix": "" | | 71 | + } | | 72 | + ], | | 73 | + "react/jsx-key": "warn", | | 74 | + "react/jsx-no-comment-textnodes": "warn", | | 75 | + "react/jsx-pascal-case": ["warn", { "allowAllCaps": true }], | | 76 | + "react/no-did-mount-set-state": "warn", | | 77 | + "react/no-did-update-set-state": "warn", | | 78 | + "react/sort-comp": "warn", | | 79 | + "react/prefer-es6-class": "warn", | | 80 | + "react/style-prop-object": "warn", | | 81 | + "react/no-unescaped-entities": "warn", | | 82 | + // nextjs | | 83 | + "@next/next/no-img-element": "off", | | 84 | + // @typescript-eslint | | 85 | + "@typescript-eslint/array-type": ["warn"], | | 86 | + "@typescript-eslint/no-explicit-any": ["off"], | | 87 | + "@typescript-eslint/no-unused-vars": ["warn", { "vars": "all", "args": "none" }], | | 88 | + "@typescript-eslint/no-inferrable-types": ["off"], | | 89 | + "@typescript-eslint/no-empty-function": ["off"], | | 90 | + "semi": ["error", "always"], | | 91 | + "default-case": "error", | | 92 | + "no-multi-spaces": "error" | | 93 | + } | | 94 | +} |
Collapse file Copy file name to clipboard +37Lines changed: 37 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | | 2 | + | | 3 | +# dependencies | | 4 | +/node_modules | | 5 | +/.pnp | | 6 | +.pnp.js | | 7 | + | | 8 | +# testing | | 9 | +/coverage | | 10 | + | | 11 | +# next.js | | 12 | +/.next/ | | 13 | +/out/ | | 14 | + | | 15 | +# production | | 16 | +/build | | 17 | + | | 18 | +# misc | | 19 | +.DS_Store | | 20 | +*.pem | | 21 | + | | 22 | +# debug | | 23 | +npm-debug.log* | | 24 | +yarn-debug.log* | | 25 | +yarn-error.log* | | 26 | +.pnpm-debug.log* | | 27 | + | | 28 | +# local env files | | 29 | +.env | | 30 | +.env*.local | | 31 | + | | 32 | +# vercel | | 33 | +.vercel | | 34 | + | | 35 | +# typescript | | 36 | +*.tsbuildinfo | | 37 | +next-env.d.ts |
Collapse file Copy file name to clipboard +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +#!/bin/sh | | 2 | +. "$(dirname "$0")/_/husky.sh" | | 3 | + | | 4 | +npm run lintfix |
Collapse file Copy file name to clipboard +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +#!/bin/sh | | 2 | +. "$(dirname "$0")/_/husky.sh" | | 3 | + | | 4 | +npm run types-check |
Collapse file Copy file name to clipboard +7Lines changed: 7 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +{ | | 2 | + "printWidth": 110, | | 3 | + "arrowParens": "always", | | 4 | + "semi": true, | | 5 | + "tabWidth": 2, | | 6 | + "singleQuote": true | | 7 | +} |
Collapse file Copy file name to clipboard +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +**/*.js | | 2 | +**/*.jsx | | 3 | +**/*.ts | | 4 | +**/*.tsx | | 5 | +**/*.min.css |
Collapse file Copy file name to clipboard +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +{ | | 2 | + "extends": "stylelint-config-standard-scss", | | 3 | + "rules": { | | 4 | + "at-rule-no-unknown": null, | | 5 | + "scss/at-rule-no-unknown": [ | | 6 | + true, | | 7 | + { | | 8 | + "ignoreAtRules": [ | | 9 | + "tailwind" | | 10 | + ] | | 11 | + } | | 12 | + ] | | 13 | + } | | 14 | +} |
Collapse file Copy file name to clipboard +17-1Lines changed: 17 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# fe | | 1 | +# Setup devlopment | | 2 | + | | 3 | +``` | | 4 | +cp .env.example .env.production | | 5 | +``` | | 6 | + | | 7 | +``` | | 8 | +npm i | | 9 | +``` | | 10 | + | | 11 | +``` | | 12 | +npm run prepare | | 13 | +``` | | 14 | + | | 15 | +``` | | 16 | +npm run dev | | 17 | +``` |
Collapse file Copy file name to clipboard +35Lines changed: 35 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +/* eslint-disable @typescript-eslint/no-var-requires */ | | 2 | +/** @type {import('next').NextConfig} */ | | 3 | +const path = require('path'); | | 4 | + | | 5 | +const nextConfig = { | | 6 | + output: 'standalone', | | 7 | + reactStrictMode: false, | | 8 | + sassOptions: { | | 9 | + includePaths: [path.join(__dirname, 'styles')], | | 10 | + }, | | 11 | + productionBrowserSourceMaps: true, | | 12 | + compiler: { | | 13 | + styledComponents: true, | | 14 | + }, | | 15 | + webpack(config) { | | 16 | + config.module.rules.push({ | | 17 | + test: /\.svg$/i, | | 18 | + issuer: /\.[jt]sx?$/, | | 19 | + use: ['@svgr/webpack'], | | 20 | + }); | | 21 | + | | 22 | + return config; | | 23 | + }, | | 24 | + async rewrites() { | | 25 | + return { | | 26 | + fallback: [ | | 27 | + { | | 28 | + source: '/:path*', | | 29 | + destination: '/errors/404', | | 30 | + }, | | 31 | + ], | | 32 | + }; | | 33 | + }, | | 34 | +}; | | 35 | +module.exports = nextConfig; |
|