Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Feb 17, 2023
1 parent 3a16de6 commit 4fdf309
Show file tree
Hide file tree
Showing 736 changed files with 48,528 additions and 33,214 deletions.
4 changes: 0 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

# Windows files
[*.bat]
end_of_line = crlf
53 changes: 44 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'standard',
'standard-with-typescript',
'plugin:react-hooks/recommended',
],
plugins: ['html', 'react'],
parser: '@babel/eslint-parser',
rules: {
'no-new': 'off',
camelcase: 'off',
Expand All @@ -16,12 +16,47 @@ module.exports = {
eqeqeq: 'off',
'no-multiple-empty-lines': [1, { max: 2 }],
'comma-dangle': [2, 'always-multiline'],
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'standard/no-callback-literal': 'off',
'prefer-const': 'off',
'no-labels': 'off',
'node/no-callback-literal': 'off',
},
settings: {
'html/html-extensions': ['.jsx'],
},
ignorePatterns: ['vendors', '*.min.js'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-new': 'off',
camelcase: 'off',
'no-return-assign': 'off',
'space-before-function-paren': ['error', 'never'],
'no-var': 'error',
'no-fallthrough': 'off',
'prefer-promise-reject-errors': 'off',
eqeqeq: 'off',
'no-multiple-empty-lines': [1, { max: 2 }],
'comma-dangle': [2, 'always-multiline'],
'standard/no-callback-literal': 'off',
'prefer-const': 'off',
'no-labels': 'off',
'node/no-callback-literal': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/space-before-function-paren': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/restrict-template-expressions': [1, {
allowBoolean: true,
}],
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/return-await': 'off',
'multiline-ternary': 'off',
'@typescript-eslint/comma-dangle': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
},
parserOptions: {
project: './tsconfig.json',
},
},
],
}
67 changes: 0 additions & 67 deletions .flowconfig

This file was deleted.

3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/beta-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'

- name: Cache Gradle Wrapper
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'

- name: Cache Gradle Wrapper
uses: actions/cache@v3
Expand Down
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local

# Android/IntelliJ
#
Expand All @@ -30,6 +31,7 @@ local.properties
keystore.properties
*.iml
*.hprof
.cxx/

# node.js
#
Expand All @@ -50,9 +52,10 @@ buck-out/
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output

# Bundle artifact
*.jsbundle
Expand Down
19 changes: 9 additions & 10 deletions .ncurc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
module.exports = {
upgrade: true,
// target: 'newest',
reject: [
'metro-react-native-babel-preset',
'readable-stream',
'stream-browserify',
'url',
'util',
'babel-jest',
'jest',

// 'metro-react-native-babel-preset',
'@types/react-native',
'react-native',
'react',
'react-test-renderer',
]

// target: 'patch',
// filter: [
// 'react-native',
// '@types/react-native',
// 'react'
// ],
}
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.4
2.7.5
30 changes: 30 additions & 0 deletions .vscode/i18n-ally-custom-framework.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .vscode/i18n-ally-custom-framework.yml

# An array of strings which contain Language Ids defined by VS Code
# You can check avaliable language ids here: https://code.visualstudio.com/docs/languages/overview#_language-id
languageIds:
- javascript
- javascriptreact
- typescript
- typescriptreact

# An array of RegExes to find the key usage. **The key should be captured in the first match group**.
# You should unescape RegEx strings in order to fit in the YAML file
# To help with this, you can use https://www.freeformatter.com/json-escape.html
usageMatchRegex:
# The following example shows how to detect `t("your.i18n.keys")`
# the `{key}` will be placed by a proper keypath matching regex,
# you can ignore it and use your own matching rules as well
- "[^\\w\\d]t\\(['\"`]({key})['\"`]"


# An array of strings containing refactor templates.
# The "$1" will be replaced by the keypath specified.
# Optional: uncomment the following two lines to use

# refactorTemplates:
# - i18n.get("$1")


# If set to true, only enables this custom framework (will disable all built-in frameworks)
monopoly: true
32 changes: 24 additions & 8 deletions .vscode/javascript.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,40 @@
// "description": "Log output to console"
// }
"Import translation": {
"scope": "javascript,typescript",
"scope": "javascript,typescript,typescriptreact",
"prefix": "imtl",
"body": [
"import { useTranslation } from '@/plugins/i18n'",
"$1const { t } = useTranslation()"
],
"description": "Translation Language"
},
"Import store hook": {
"scope": "javascript,typescript",
"prefix": "imsh",
"Import store setting": {
"scope": "javascript,typescript,typescriptreact",
"prefix": "imss",
"body": [
"import { useGetter, useDispatch } from '@/store'"
"import settingState from '@/store/setting/state'"
],
"description": "Import store hook"
"description": "Import store setting"
},
"Import store player": {
"scope": "javascript,typescript,typescriptreact",
"prefix": "imsp",
"body": [
"import playerState from '@/store/player/state'"
],
"description": "Import store player"
},
"Import store list": {
"scope": "javascript,typescript,typescriptreact",
"prefix": "imsl",
"body": [
"import listState from '@/store/list/state'"
],
"description": "Import store list"
},
"Import toast": {
"scope": "javascript,typescript",
"scope": "javascript,typescript,typescriptreact",
"prefix": "imts",
"body": [
"import { toast } from '@/utils/tools'",
Expand All @@ -42,7 +58,7 @@
"description": "Import toast"
},
"Use getter theme": {
"scope": "javascript,typescript",
"scope": "javascript,typescript,typescriptreact",
"prefix": "ugt",
"body": [
"const theme = useGetter('common', 'theme')"
Expand Down
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.4'
ruby '2.7.5'

gem 'cocoapods', '~> 1.11', '>= 1.11.2'
Loading

0 comments on commit 4fdf309

Please sign in to comment.