Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ua-parser-js from 0.7.21 to 0.7.28 #5

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 5 additions & 32 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
/* global process, module */
const presets = [
'@babel/preset-env',
'@babel/preset-react',
];

const plugins = [
'@babel/plugin-syntax-dynamic-import',
[
'babel-plugin-transform-builtin-extend',
{globals: ['Error', 'Array'], approximate: true},
],
'babel-plugin-react-require',
'react-hot-loader/babel',
];

module.exports = {
presets,
env: {
development: {
plugins,
},
production: {
plugins,
},
test: {
plugins,
},
rollup: {
plugins: [],
}
},
}
presets: [
'@babel/preset-env',
'@babel/preset-react',
]
};
12 changes: 7 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
module.exports = {
"env": {
"es6": true,
"jest": true,
"node": true,
"browser": true,
},
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"airbnb",
"plugin:react/recommended",
],
"plugins": [
"react",
"jest",
],
"rules": {
"arrow-parens": ["error", "as-needed"],
"no-console": ["warn", {allow: ["warn", "error"]}],
"no-unused-vars": ["warn"],
"no-shadow": ["warn"],
"indent": ["error", 4, {"SwitchCase": 1}],
"object-curly-spacing": ["error", "never"],
"object-curly-newline": ["error", {"consistent": true}],
"import/no-unresolved": ["off"],
"import/prefer-default-export": ["off"],
"import/no-extraneous-dependencies": ["off"],
Expand All @@ -25,11 +31,7 @@ module.exports = {
"react/jsx-indent-props": ["error", 4],
"react/jsx-boolean-value": ["off"],
"react/no-array-index-key": ["off"],
"object-curly-spacing": ["error", "never"],
"object-curly-newline": ["error", {"consistent": true}],
"arrow-parens": ["error", "as-needed"],
"react/jsx-props-no-spreading": ["off"],
"jsx-a11y/control-has-associated-label": ["off"],
},
"globals": {
"ENV_PUBLIC_URL": "readonly",
Expand Down
11 changes: 0 additions & 11 deletions .postcssrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc.js

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ Allow you building react and redux based web apps with less pain, by removing th
------------------------------
```

* `dispatch`, `action`, `reducer`, `store` are concepts from the design of redux, you should never try to put these things in your UI layer.
* `action`s are about what happend, it's not about "what should be done", even if they were named in verbs.
* It is `reducer`s' job, that about "what should be done" and "how it should be done".
* The `container` files you put in the "containers" directory are not actual `container`s, they are just connecting logics, the actual `container`s created automatically by `connect(YourComponent)`, you can only see them in the browser's `Developer Tools`.
* It is `reducer`'s job, that about "what should be done" and "how it should be done".
* The `container` files you put in the "containers" directory are not actual `container`s, they are just connecting logics, actual `container`s are created automatically by `connect(YourComponent)`, you can only see them in the browser's `Developer Tools`.
* In most situations, you should try hard to prevent putting JSX codes in the `container` files. Because they are about the UI.
* `redux-thunk` changes the origin conceptual model of the `action`, by functions, and functions always about "what should be done", or "how it should be done".
* The `action` is not equal to action types. **`Action Type` + `Action Payload` = `Action Instance`**.
Expand Down
9 changes: 0 additions & 9 deletions demo/public/404.html

This file was deleted.

12 changes: 0 additions & 12 deletions demo/public/index.html

This file was deleted.

13 changes: 0 additions & 13 deletions demo/src/404.js

This file was deleted.

10 changes: 0 additions & 10 deletions demo/src/_theme.scss

This file was deleted.

7 changes: 0 additions & 7 deletions demo/src/actions/types.js

This file was deleted.

12 changes: 0 additions & 12 deletions demo/src/api/errors.js

This file was deleted.

111 changes: 0 additions & 111 deletions demo/src/api/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions demo/src/components/App/GithubCat.svg

This file was deleted.

76 changes: 0 additions & 76 deletions demo/src/components/App/index.jsx

This file was deleted.

16 changes: 0 additions & 16 deletions demo/src/components/SimpleButtons/ClickLoading.jsx

This file was deleted.