Commit 799b392b by liguokang

feat: 🎨

parent f3628c28
......@@ -2,11 +2,20 @@
* @Author: liguokang
* @Date: 2021-07-27 20:25:45
* @LastEditors: liguokang
* @LastEditTime: 2021-07-27 20:31:33
* @Description:
* @LastEditTime: 2021-07-29 16:02:23
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
module.exports = {
presets: [['next/babel']],
plugins: [['import', { libraryName: 'antd', style: true }]],
presets: ['next/babel', '@babel/preset-react'],
plugins: [
[
'import',
{
libraryName: 'antd',
// true 的时候才会编译less
style: true,
},
],
],
};
......@@ -10,7 +10,7 @@
# next.js
/.next/
/out/
/dist/
# production
/build
......
......@@ -2,7 +2,7 @@
* @Author: liguokang
* @Date: 2021-07-14 20:36:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-29 14:43:14
* @LastEditTime: 2021-07-29 16:05:28
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
......@@ -40,6 +40,14 @@ module.exports = withLessExcludeAntd({
},
}),
);
if (config.externals) {
const includes = [/antd/];
config.externals = config.externals.map((external) => {
if (typeof external !== 'function') return external;
return (ctx, req, cb) =>
includes.find((include) => (req.startsWith('.') ? include.test(path.resolve(ctx, req)) : include.test(req))) ? cb() : external(ctx, req, cb);
});
}
return config;
},
});
......@@ -49,6 +49,259 @@
"@babel/highlight": "^7.10.4"
}
},
"@babel/compat-data": {
"version": "7.14.7",
"resolved": "https://registry.nlark.com/@babel/compat-data/download/@babel/compat-data-7.14.7.tgz",
"integrity": "sha1-ewR9ejqJpn0iWNxh9gTwmPG8fgg="
},
"@babel/core": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/core/download/@babel/core-7.14.8.tgz?cache=0&sync_timestamp=1626804295712&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fcore%2Fdownload%2F%40babel%2Fcore-7.14.8.tgz",
"integrity": "sha1-IM33yEtdhtg/rIcQqLxgWnuj8BA=",
"requires": {
"@babel/code-frame": "^7.14.5",
"@babel/generator": "^7.14.8",
"@babel/helper-compilation-targets": "^7.14.5",
"@babel/helper-module-transforms": "^7.14.8",
"@babel/helpers": "^7.14.8",
"@babel/parser": "^7.14.8",
"@babel/template": "^7.14.5",
"@babel/traverse": "^7.14.8",
"@babel/types": "^7.14.8",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
"json5": "^2.1.2",
"semver": "^6.3.0",
"source-map": "^0.5.0"
},
"dependencies": {
"@babel/code-frame": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/code-frame/download/@babel/code-frame-7.14.5.tgz",
"integrity": "sha1-I7CNdA6D9JxeWZRfvxtD6Au/Tts=",
"requires": {
"@babel/highlight": "^7.14.5"
}
},
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
},
"debug": {
"version": "4.3.2",
"resolved": "https://registry.nlark.com/debug/download/debug-4.3.2.tgz?cache=0&sync_timestamp=1625374648057&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdebug%2Fdownload%2Fdebug-4.3.2.tgz",
"integrity": "sha1-8KScGKyHeeMdSgxgKd+3aHPHQos=",
"requires": {
"ms": "2.1.2"
}
},
"json5": {
"version": "2.2.0",
"resolved": "https://registry.npm.taobao.org/json5/download/json5-2.2.0.tgz",
"integrity": "sha1-Lf7+cgxrpSXZ69kJlQ8FFTFsiaM=",
"requires": {
"minimist": "^1.2.5"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.1.2.tgz",
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk="
},
"semver": {
"version": "6.3.0",
"resolved": "https://registry.nlark.com/semver/download/semver-6.3.0.tgz?cache=0&sync_timestamp=1618846864940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fsemver%2Fdownload%2Fsemver-6.3.0.tgz",
"integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0="
},
"source-map": {
"version": "0.5.7",
"resolved": "https://registry.nlark.com/source-map/download/source-map-0.5.7.tgz",
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
}
}
},
"@babel/generator": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/generator/download/@babel/generator-7.14.8.tgz",
"integrity": "sha1-v4b9avls87dDlajKQJUV+JQj4HA=",
"requires": {
"@babel/types": "^7.14.8",
"jsesc": "^2.5.1",
"source-map": "^0.5.0"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
},
"source-map": {
"version": "0.5.7",
"resolved": "https://registry.nlark.com/source-map/download/source-map-0.5.7.tgz",
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
}
}
},
"@babel/helper-annotate-as-pure": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-annotate-as-pure/download/@babel/helper-annotate-as-pure-7.14.5.tgz",
"integrity": "sha1-e/R47Dtxcm1WqMpXdbBG/CmHnmE=",
"requires": {
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-compilation-targets": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-compilation-targets/download/@babel/helper-compilation-targets-7.14.5.tgz?cache=0&sync_timestamp=1623280417606&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhelper-compilation-targets%2Fdownload%2F%40babel%2Fhelper-compilation-targets-7.14.5.tgz",
"integrity": "sha1-epnF0JZ5Eely/iw0EffVtJhJjs8=",
"requires": {
"@babel/compat-data": "^7.14.5",
"@babel/helper-validator-option": "^7.14.5",
"browserslist": "^4.16.6",
"semver": "^6.3.0"
},
"dependencies": {
"semver": {
"version": "6.3.0",
"resolved": "https://registry.nlark.com/semver/download/semver-6.3.0.tgz?cache=0&sync_timestamp=1618846864940&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fsemver%2Fdownload%2Fsemver-6.3.0.tgz",
"integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0="
}
}
},
"@babel/helper-function-name": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-function-name/download/@babel/helper-function-name-7.14.5.tgz?cache=0&sync_timestamp=1623280385237&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhelper-function-name%2Fdownload%2F%40babel%2Fhelper-function-name-7.14.5.tgz",
"integrity": "sha1-ieLEdJcvFdjiM7Uu6MSA4s/NUMQ=",
"requires": {
"@babel/helper-get-function-arity": "^7.14.5",
"@babel/template": "^7.14.5",
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-get-function-arity": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-get-function-arity/download/@babel/helper-get-function-arity-7.14.5.tgz",
"integrity": "sha1-Jfv6V5sJN+7h87gF7OTOOYxDGBU=",
"requires": {
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-hoist-variables": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-hoist-variables/download/@babel/helper-hoist-variables-7.14.5.tgz",
"integrity": "sha1-4N0nwzp45XfXyIhJFqPn7x98f40=",
"requires": {
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-member-expression-to-functions": {
"version": "7.14.7",
"resolved": "https://registry.nlark.com/@babel/helper-member-expression-to-functions/download/@babel/helper-member-expression-to-functions-7.14.7.tgz?cache=0&sync_timestamp=1624312632792&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhelper-member-expression-to-functions%2Fdownload%2F%40babel%2Fhelper-member-expression-to-functions-7.14.7.tgz",
"integrity": "sha1-l+ViRL65QhH+J3vYGOOjKcZveXA=",
"requires": {
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-module-imports": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-module-imports/download/@babel/helper-module-imports-7.14.5.tgz",
......@@ -73,11 +326,177 @@
}
}
},
"@babel/helper-module-transforms": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-module-transforms/download/@babel/helper-module-transforms-7.14.8.tgz",
"integrity": "sha1-1Ceffj/V9NXTQtgzrzbU3YfX3Ek=",
"requires": {
"@babel/helper-module-imports": "^7.14.5",
"@babel/helper-replace-supers": "^7.14.5",
"@babel/helper-simple-access": "^7.14.8",
"@babel/helper-split-export-declaration": "^7.14.5",
"@babel/helper-validator-identifier": "^7.14.8",
"@babel/template": "^7.14.5",
"@babel/traverse": "^7.14.8",
"@babel/types": "^7.14.8"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-optimise-call-expression": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-optimise-call-expression/download/@babel/helper-optimise-call-expression-7.14.5.tgz",
"integrity": "sha1-8nOVqGGeBmWz8DZM3bQcJdcbSZw=",
"requires": {
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-plugin-utils": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-plugin-utils/download/@babel/helper-plugin-utils-7.14.5.tgz?cache=0&sync_timestamp=1623280296194&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhelper-plugin-utils%2Fdownload%2F%40babel%2Fhelper-plugin-utils-7.14.5.tgz",
"integrity": "sha1-WsgizpfuxGdBq3ClF5ceRDpwxak="
},
"@babel/helper-replace-supers": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-replace-supers/download/@babel/helper-replace-supers-7.14.5.tgz",
"integrity": "sha1-DswLA8Qc1We0Ak6gFhNMKEFKu5Q=",
"requires": {
"@babel/helper-member-expression-to-functions": "^7.14.5",
"@babel/helper-optimise-call-expression": "^7.14.5",
"@babel/traverse": "^7.14.5",
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-simple-access": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-simple-access/download/@babel/helper-simple-access-7.14.8.tgz",
"integrity": "sha1-guH+wGRKfndcdNMF8hLDn4/nOSQ=",
"requires": {
"@babel/types": "^7.14.8"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-split-export-declaration": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-split-export-declaration/download/@babel/helper-split-export-declaration-7.14.5.tgz",
"integrity": "sha1-IrI6VO9RwrdgXYUZMMGXbdC8aTo=",
"requires": {
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/helper-validator-identifier": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.5.tgz?cache=0&sync_timestamp=1623280305128&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhelper-validator-identifier%2Fdownload%2F%40babel%2Fhelper-validator-identifier-7.14.5.tgz",
"integrity": "sha1-0PDid8US4Mk4J3+qhaOWjJpEwOg="
},
"@babel/helper-validator-option": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/helper-validator-option/download/@babel/helper-validator-option-7.14.5.tgz?cache=0&sync_timestamp=1623280304150&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhelper-validator-option%2Fdownload%2F%40babel%2Fhelper-validator-option-7.14.5.tgz",
"integrity": "sha1-bnKh//GNXfy4eOHmLxoCHEty1aM="
},
"@babel/helpers": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helpers/download/@babel/helpers-7.14.8.tgz",
"integrity": "sha1-g5+I9GMCWIbP9/haNSlwB+LaG3c=",
"requires": {
"@babel/template": "^7.14.5",
"@babel/traverse": "^7.14.8",
"@babel/types": "^7.14.8"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/highlight": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/highlight/download/@babel/highlight-7.14.5.tgz",
......@@ -121,6 +540,85 @@
}
}
},
"@babel/parser": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/parser/download/@babel/parser-7.14.8.tgz",
"integrity": "sha1-Zv1BZmste4QL1azn90FtWsYCCNQ="
},
"@babel/plugin-syntax-jsx": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/plugin-syntax-jsx/download/@babel/plugin-syntax-jsx-7.14.5.tgz?cache=0&sync_timestamp=1623280424207&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fplugin-syntax-jsx%2Fdownload%2F%40babel%2Fplugin-syntax-jsx-7.14.5.tgz",
"integrity": "sha1-AA4uJdhnPM5JMAUXo+2kTCY+QgE=",
"requires": {
"@babel/helper-plugin-utils": "^7.14.5"
}
},
"@babel/plugin-transform-react-display-name": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/plugin-transform-react-display-name/download/@babel/plugin-transform-react-display-name-7.14.5.tgz?cache=0&sync_timestamp=1623281082034&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fplugin-transform-react-display-name%2Fdownload%2F%40babel%2Fplugin-transform-react-display-name-7.14.5.tgz",
"integrity": "sha1-uqktFcRXBBEwGoWnTBNTSHOIW2U=",
"requires": {
"@babel/helper-plugin-utils": "^7.14.5"
}
},
"@babel/plugin-transform-react-jsx": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/plugin-transform-react-jsx/download/@babel/plugin-transform-react-jsx-7.14.5.tgz?cache=0&sync_timestamp=1623281231398&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fplugin-transform-react-jsx%2Fdownload%2F%40babel%2Fplugin-transform-react-jsx-7.14.5.tgz",
"integrity": "sha1-OXSfDuHv2KG9cpFSz1948dJHpEo=",
"requires": {
"@babel/helper-annotate-as-pure": "^7.14.5",
"@babel/helper-module-imports": "^7.14.5",
"@babel/helper-plugin-utils": "^7.14.5",
"@babel/plugin-syntax-jsx": "^7.14.5",
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/plugin-transform-react-jsx-development": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/plugin-transform-react-jsx-development/download/@babel/plugin-transform-react-jsx-development-7.14.5.tgz",
"integrity": "sha1-Gmxz4vftLELuvD0q1gsMdJT8ua8=",
"requires": {
"@babel/plugin-transform-react-jsx": "^7.14.5"
}
},
"@babel/plugin-transform-react-pure-annotations": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/plugin-transform-react-pure-annotations/download/@babel/plugin-transform-react-pure-annotations-7.14.5.tgz",
"integrity": "sha1-GN5hK4QCHjqYAsvCEsnZ9G0NEfw=",
"requires": {
"@babel/helper-annotate-as-pure": "^7.14.5",
"@babel/helper-plugin-utils": "^7.14.5"
}
},
"@babel/preset-react": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/preset-react/download/@babel/preset-react-7.14.5.tgz",
"integrity": "sha1-D7t2lRP4mcLFbzqIL6eWc8LUqzw=",
"requires": {
"@babel/helper-plugin-utils": "^7.14.5",
"@babel/helper-validator-option": "^7.14.5",
"@babel/plugin-transform-react-display-name": "^7.14.5",
"@babel/plugin-transform-react-jsx": "^7.14.5",
"@babel/plugin-transform-react-jsx-development": "^7.14.5",
"@babel/plugin-transform-react-pure-annotations": "^7.14.5"
}
},
"@babel/runtime": {
"version": "7.14.6",
"resolved": "https://registry.nlark.com/@babel/runtime/download/@babel/runtime-7.14.6.tgz",
......@@ -129,6 +627,93 @@
"regenerator-runtime": "^0.13.4"
}
},
"@babel/template": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/template/download/@babel/template-7.14.5.tgz?cache=0&sync_timestamp=1623280386138&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Ftemplate%2Fdownload%2F%40babel%2Ftemplate-7.14.5.tgz",
"integrity": "sha1-qbydizM1T/blWpxg0RCSAKaJdPQ=",
"requires": {
"@babel/code-frame": "^7.14.5",
"@babel/parser": "^7.14.5",
"@babel/types": "^7.14.5"
},
"dependencies": {
"@babel/code-frame": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/code-frame/download/@babel/code-frame-7.14.5.tgz",
"integrity": "sha1-I7CNdA6D9JxeWZRfvxtD6Au/Tts=",
"requires": {
"@babel/highlight": "^7.14.5"
}
},
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
}
}
},
"@babel/traverse": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/traverse/download/@babel/traverse-7.14.8.tgz",
"integrity": "sha1-wCU/Amd8XeGo/532sKrL7H2hqM4=",
"requires": {
"@babel/code-frame": "^7.14.5",
"@babel/generator": "^7.14.8",
"@babel/helper-function-name": "^7.14.5",
"@babel/helper-hoist-variables": "^7.14.5",
"@babel/helper-split-export-declaration": "^7.14.5",
"@babel/parser": "^7.14.8",
"@babel/types": "^7.14.8",
"debug": "^4.1.0",
"globals": "^11.1.0"
},
"dependencies": {
"@babel/code-frame": {
"version": "7.14.5",
"resolved": "https://registry.nlark.com/@babel/code-frame/download/@babel/code-frame-7.14.5.tgz",
"integrity": "sha1-I7CNdA6D9JxeWZRfvxtD6Au/Tts=",
"requires": {
"@babel/highlight": "^7.14.5"
}
},
"@babel/helper-validator-identifier": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha1-Mr4zp1bynieKDWRPoIosng+Io0w="
},
"@babel/types": {
"version": "7.14.8",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.14.8.tgz",
"integrity": "sha1-OBCd6PytwGQV+9m3TfAGXU1Bxyg=",
"requires": {
"@babel/helper-validator-identifier": "^7.14.8",
"to-fast-properties": "^2.0.0"
}
},
"debug": {
"version": "4.3.2",
"resolved": "https://registry.nlark.com/debug/download/debug-4.3.2.tgz?cache=0&sync_timestamp=1625374648057&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdebug%2Fdownload%2Fdebug-4.3.2.tgz",
"integrity": "sha1-8KScGKyHeeMdSgxgKd+3aHPHQos=",
"requires": {
"ms": "2.1.2"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz?cache=0&sync_timestamp=1607433899126&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.1.2.tgz",
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk="
}
}
},
"@babel/types": {
"version": "7.8.3",
"resolved": "https://registry.nlark.com/@babel/types/download/@babel/types-7.8.3.tgz",
......@@ -3439,6 +4024,11 @@
"resolved": "https://registry.nlark.com/function-bind/download/function-bind-1.1.1.tgz",
"integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0="
},
"gensync": {
"version": "1.0.0-beta.2",
"resolved": "https://registry.nlark.com/gensync/download/gensync-1.0.0-beta.2.tgz",
"integrity": "sha1-MqbudsPX9S1GsrGuXZP+qFgKJeA="
},
"get-caller-file": {
"version": "2.0.5",
"resolved": "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz",
......@@ -3541,6 +4131,11 @@
"ini": "^1.3.4"
}
},
"globals": {
"version": "11.12.0",
"resolved": "https://registry.nlark.com/globals/download/globals-11.12.0.tgz?cache=0&sync_timestamp=1625655787416&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fglobals%2Fdownload%2Fglobals-11.12.0.tgz",
"integrity": "sha1-q4eVM4hooLq9hSV1gBjCp+uVxC4="
},
"graceful-fs": {
"version": "4.2.6",
"resolved": "https://registry.nlark.com/graceful-fs/download/graceful-fs-4.2.6.tgz",
......@@ -4245,6 +4840,11 @@
"esprima": "^4.0.0"
}
},
"jsesc": {
"version": "2.5.2",
"resolved": "https://registry.nlark.com/jsesc/download/jsesc-2.5.2.tgz",
"integrity": "sha1-gFZNLkg9rPbo7yCWUKZ98/DCg6Q="
},
"json-parse-better-errors": {
"version": "1.0.2",
"resolved": "https://registry.nlark.com/json-parse-better-errors/download/json-parse-better-errors-1.0.2.tgz",
......
......@@ -3,7 +3,7 @@
"version": "0.1.0",
"scripts": {
"dev": "next dev",
"build": "next build",
"build": "next build && next export -o dist && npm run nd",
"export": "npm run build && next export",
"start": "next start",
"build:dev": "cross-env DEPLOY_ENV=dev npm run build",
......@@ -14,6 +14,8 @@
"precommit": "pretty-quick --staged"
},
"dependencies": {
"@babel/core": "^7.14.8",
"@babel/preset-react": "^7.14.5",
"@zeit/next-css": "^1.0.1",
"@zeit/next-less": "^1.0.1",
"antd": "^4.16.9",
......
......@@ -2,10 +2,11 @@
* @Author: zhujiapeng
* @Date: 2021-06-02 15:13:37
* @LastEditors: liguokang
* @LastEditTime: 2021-07-14 20:40:05
* @LastEditTime: 2021-07-29 16:10:19
* @Description: 描述一下咯
* @Copyright: ©2021 杭州杰竞科技有限公司 版权所有
*/
import React from 'react';
function About() {
return <div>About</div>
......
......@@ -2,21 +2,16 @@
* @Author: liguokang
* @Date: 2021-07-14 20:36:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-28 14:28:21
* @LastEditTime: 2021-07-29 16:11:39
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import React from 'react';
import { useState, useLayoutEffect } from 'react';
import Layout from 'components/layout';
export default function JoinUs() {
const [jobs, setJobs] = useState([]);
const [selectJobs, setSelectJobs] = useState([]);
const [postTypeFlag, setPostTypeFlag] = useState(0); // 职位类别标记
const [jobNatureFlag, setJobNatureFlag] = useState(0); // 工作性质标记
const [detailFlag, setDetailFlag] = useState(-1);
useLayoutEffect(() => {
getData();
}, []);
......@@ -24,220 +19,16 @@ export default function JoinUs() {
// 获取数据
async function getData() {}
function handSelectNature(type, flag) {
const selectJobs = type === '全部' ? jobs : jobs.filter((item) => item.jobNature.indexOf(type) !== -1);
setSelectJobs(selectJobs);
setJobNatureFlag(flag);
}
function handSelectType(type, flag) {
const selectJobs = type === '全部' ? jobs : jobs.filter((item) => item.postType == type);
setSelectJobs(selectJobs);
setPostTypeFlag(flag);
}
return (
<Layout isHome={false} className="nnnnnn">
<div className="gdfgd" style={{ background: '#fff' }} style={{ height: '85vh' }}>
{/* <Header active={"aboutUs"} /> */}
<div className="join-us">
<div className="center" style={{ textAlign: 'center' }}>
<p>加入我们,麦向美好未来</p>
</div>
</div>
<div className="content">
<div className="center">
<div className="content-module" style={{ background: '#fff' }}>
<div className="content-module-body">
<p className="join-us-title">
团队成员来自于浙江大学、清华大学、复旦大学、伦敦大学、新加坡国立大学等国内外知名高校,部分成员曾连续成功创业,在K12教育培训、移动互联网产品开发、大数据等领域深耕多年。其中研发和产品团队占据总人数1/2以上,硕士以上学历人数超过15%。
</p>
</div>
</div>
</div>
<div className="content-module content-module-3" style={{ background: '#fff' }}>
<div className="center">
<div className="module-title">热招岗位</div>
<div className="content-module-body">
<div className="job-head">
<div className="work-nature clearfix">
<span className="type-nature fl" id="xmtd-type-nature">
工作性质
</span>
<div className="button fl clearfix" id="nature">
<span
className={jobNatureFlag === 0 ? 'active' : ''}
data-id="0"
onClick={() => {
handSelectNature('全部', 0);
}}
>
全部
</span>
<span
className={jobNatureFlag === 1 ? 'active' : ''}
data-id="1"
onClick={() => {
handSelectNature('社招', 1);
}}
>
社招
</span>
<span
className={jobNatureFlag === 2 ? 'active' : ''}
data-id="2"
onClick={() => {
this.handSelectNature('校招', 2);
}}
>
校招
</span>
<span
className={jobNatureFlag === 3 ? 'active' : ''}
data-id="3"
onClick={() => {
handSelectNature('校招', 3);
}}
>
实习
</span>
</div>
</div>
<div className="job-category clearfix">
<span className="type fl">职位类别</span>
<div className="button fl clearfix" id="type">
<span
className={postTypeFlag === 0 ? 'active' : ''}
data-index="0"
onClick={() => {
handSelectType('全部', 0);
}}
>
全部
</span>
<span
className={postTypeFlag === 1 ? 'active' : ''}
data-index="1"
onClick={() => {
handSelectType('技术', 1);
}}
>
技术
</span>
<span
className={postTypeFlag === 2 ? 'active' : ''}
data-index="2"
onClick={() => {
handSelectType('产品', 2);
}}
>
产品
</span>
<span
className={postTypeFlag === 3 ? 'active' : ''}
data-index="3"
onClick={() => {
handSelectType('设计', 3);
}}
>
设计
</span>
<span
className={postTypeFlag === 4 ? 'active' : ''}
data-index="4"
onClick={() => {
handSelectType('市场', 4);
}}
>
市场
</span>
<span
className={postTypeFlag === 5 ? 'active' : ''}
data-index="5"
onClick={() => {
handSelectType('商务顾问', 5);
}}
>
销售
</span>
<span
className={postTypeFlag === 6 ? 'active' : ''}
data-index="6"
onClick={() => {
handSelectType('运营', 6);
}}
>
运营
</span>
</div>
</div>
</div>
<div className="job-detail" id="job-detail">
<ul style={{ padding: 0 }}>
<li className="first" id="first">
<span>职位名称</span>
<span>工作性质</span>
<span>职位类别</span>
<span>工作经验</span>
<span>招聘人数</span>
</li>
{selectJobs.map((item, index) => {
return (
<div
key={index}
onClick={() => {
detailFlag === index ? setDetailFlag(-1) : setDetailFlag(index);
}}
>
<li className="title">
<span>{item.jobName}</span>
<span>{item.jobType}</span>
<span>{item.postType}</span>
<span>{item.jobExperience}</span>
<span className="num xmtd-num">
{item.NeedNum}
{detailFlag === index ? (
<i className="icon iconfont up active iconUp fr"></i>
) : (
<i className="icon iconfont down active iconDown fr xmtd-num"></i>
)}
</span>
</li>
<li className={detailFlag === index ? 'detail active' : 'detail'} id="detail">
<div className="append">
<div className="duty">
<div className="title">岗位职责:</div>
<div className="list" id="duty-list">
{item.responsibility &&
item.responsibility.map((item1, index1) => {
return <p key={index1}>{item1}</p>;
})}
</div>
</div>
<div className="require">
<div className="title">岗位要求:</div>
<div className="list" id="require-list">
{item.requirement &&
item.requirement.map((item2, index2) => {
return <p key={index2}>{item2}</p>;
})}
</div>
</div>
<div className="mail">简历投递:liyan@xiaomai5.com</div>
</div>
</li>
</div>
);
})}
</ul>
</div>
</div>
</div>
<div className="content-module" style={{ background: '#fff' }}>
<div className="content-module-body">
<p className="join-us-title">
团队成员来自于浙江大学、清华大学、复旦大学、伦敦大学、新加坡国立大学等国内外知名高校,部分成员曾连续成功创业,在K12教育培训、移动互联网产品开发、大数据等领域深耕多年。其中研发和产品团队占据总人数1/2以上,硕士以上学历人数超过15%。
</p>
</div>
</div>
{/* <Footer></Footer> */}
{/* <SiderBar /> */}
</div>
</Layout>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment