-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from HelipengTony/develop
- Loading branch information
Showing
78 changed files
with
6,032 additions
and
5,521 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,48 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:cypress/recommended", | ||
"plugin:@next/next/recommended" | ||
], | ||
"plugins": [ | ||
"react", | ||
"@typescript-eslint", | ||
"prettier", | ||
"cypress" | ||
], | ||
"env": { | ||
"node": true, | ||
"browser": true, | ||
"jasmine": true, | ||
"jest": true, | ||
"es6": true, | ||
"cypress/globals": true | ||
}, | ||
"rules": { | ||
"camelcase": "error", | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"singleQuote": true | ||
} | ||
], | ||
"react/prop-types": "off", | ||
"react/display-name": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/ban-ts-ignore": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"cypress/no-assigning-return-values": "error", | ||
"cypress/no-unnecessary-waiting": "error", | ||
"cypress/assertion-before-screenshot": "warn", | ||
"cypress/no-force": "warn", | ||
"cypress/no-async-tests": "error" | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"settings": { | ||
"react": { | ||
"pragma": "React", | ||
"version": "detect" | ||
} | ||
} | ||
} | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:cypress/recommended", | ||
"plugin:@next/next/recommended" | ||
], | ||
"plugins": ["react", "@typescript-eslint", "prettier", "cypress"], | ||
"env": { | ||
"node": true, | ||
"browser": true, | ||
"jasmine": true, | ||
"jest": true, | ||
"es6": true, | ||
"cypress/globals": true | ||
}, | ||
"rules": { | ||
"camelcase": "error", | ||
"react/prop-types": "off", | ||
"react/display-name": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"react/self-closing-comp": [ | ||
"error", | ||
{ | ||
"component": true, | ||
"html": true | ||
} | ||
], | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/ban-ts-ignore": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"cypress/no-assigning-return-values": "error", | ||
"cypress/no-unnecessary-waiting": "error", | ||
"cypress/assertion-before-screenshot": "warn", | ||
"cypress/no-force": "warn", | ||
"cypress/no-async-tests": "error" | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"settings": { | ||
"react": { | ||
"pragma": "React", | ||
"version": "detect" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -44,4 +44,6 @@ yarn-error.log* | |
!.yarn/plugins | ||
!.yarn/sdks | ||
!.yarn/versions | ||
.pnp.* | ||
.pnp.* | ||
# Sentry | ||
.sentryclirc |
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit "" |
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,2 @@ | ||
node_modules | ||
.next |
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,40 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'body-leading-blank': [1, 'always'], | ||
'body-max-line-length': [2, 'always', 100], | ||
'footer-leading-blank': [1, 'always'], | ||
'footer-max-line-length': [2, 'always', 100], | ||
'header-max-length': [2, 'always', 100], | ||
'scope-case': [2, 'always', 'lower-case'], | ||
'subject-case': [ | ||
2, | ||
'never', | ||
['sentence-case', 'start-case', 'pascal-case', 'upper-case'], | ||
], | ||
'subject-empty': [2, 'never'], | ||
'subject-full-stop': [2, 'never', '.'], | ||
'type-case': [2, 'always', 'lower-case'], | ||
'type-empty': [2, 'never'], | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'build', | ||
'chore', | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test', | ||
'translation', | ||
'security', | ||
'changeset', | ||
], | ||
], | ||
}, | ||
} |
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 |
---|---|---|
@@ -1,14 +1,24 @@ | ||
const Dotenv = require('dotenv-webpack') | ||
const { withSentryConfig } = require('@sentry/nextjs') | ||
|
||
module.exports = { | ||
const NextConfigs = { | ||
webpack(config) { | ||
config.plugins.push(new Dotenv()) | ||
return config | ||
}, | ||
poweredByHeader: false, | ||
productionBrowserSourceMaps: false, | ||
compress: true, | ||
swcMinify: true, | ||
// FIXME: https://github.com/getsentry/sentry-javascript/issues/4103 | ||
outputFileTracing: false, | ||
images: { | ||
domains: ['static.ouorz.com', 'storage.snapaper.com'], | ||
}, | ||
} | ||
|
||
const SentryWebpackPluginOptions = { | ||
silent: true, | ||
} | ||
|
||
module.exports = withSentryConfig(NextConfigs, SentryWebpackPluginOptions) |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
import * as Sentry from '@sentry/nextjs' | ||
|
||
Sentry.init({ | ||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, | ||
tracesSampleRate: 1.0, | ||
}) |
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 @@ | ||
defaults.url=https://sentry.io/ | ||
defaults.org=ouorz | ||
defaults.project=personal-blog | ||
cli.executable=../../../.npm/_npx/7072/lib/node_modules/@sentry/wizard/node_modules/@sentry/cli/bin/sentry-cli |
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,6 @@ | ||
import * as Sentry from '@sentry/nextjs' | ||
|
||
Sentry.init({ | ||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, | ||
tracesSampleRate: 1.0, | ||
}) |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"name": "sync-cf-web-analytics", | ||
"version": "1.0.0", | ||
"description": "Donwload CloudFlare Web Analytics JS file to local machine once everyday", | ||
"main": "index.js", | ||
"author": "HelipengTony", | ||
"license": "MIT", | ||
"dependencies": { | ||
"node-schedule": "^1.3.2", | ||
"request": "^2.88.2" | ||
} | ||
"name": "sync-cf-web-analytics", | ||
"version": "1.0.0", | ||
"description": "Donwload CloudFlare Web Analytics JS file to local machine once everyday", | ||
"main": "index.js", | ||
"author": "HelipengTony", | ||
"license": "MIT", | ||
"dependencies": { | ||
"node-schedule": "^1.3.2", | ||
"request": "^2.88.2" | ||
} | ||
} |
Oops, something went wrong.