From 571bd6e5522d78607907fa6c606e88db1e6faf4d Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 13 Nov 2022 09:08:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=BF=E7=94=A8ui=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 92 - babel.config.js | 34 +- config/dev.js | 9 +- config/index.js | 74 +- config/prod.js | 9 +- dist/app.js | 331 + dist/app.js.map | 1 + dist/app.json | 1 + dist/app.wxss | 4 + dist/base.wxml | 783 + dist/comp.js | 8 + dist/comp.json | 1 + dist/comp.wxml | 2 + dist/pages/index/hook.png | Bin 0 -> 3967 bytes dist/pages/index/index.js | 1636 ++ dist/pages/index/index.js.map | 1 + dist/pages/index/index.json | 1 + dist/pages/index/index.wxml | 2 + dist/pages/index/index.wxss | 90 + ...dules_taro_weapp_prebundle_react-dom_js.js | 38 + ...e_modules_taro_weapp_prebundle_react_js.js | 252 + ...ro_weapp_prebundle_react_jsx-runtime_js.js | 324 + ...s_plugin-platform-weapp_dist_runtime_js.js | 396 + ..._taro_weapp_prebundle_tarojs_runtime_js.js | 65 + ...les_taro_weapp_prebundle_tarojs_taro_js.js | 41 + dist/prebundle/remoteEntry.js | 109 + ...s_taro_weapp_prebundle_antmjs_vantui_js.js | 23840 ++++++++++++++++ ..._taro_weapp_prebundle_chunk-BS6JQHLA_js.js | 1533 + ..._taro_weapp_prebundle_chunk-LNJCN3VW_js.js | 387 + ..._taro_weapp_prebundle_chunk-OEADN3SU_js.js | 6241 ++++ ..._taro_weapp_prebundle_chunk-TAHRAO33_js.js | 446 + ..._taro_weapp_prebundle_chunk-VXAYXK77_js.js | 9943 +++++++ ...ules_taro_weapp_prebundle_taro-hooks_js.js | 8116 ++++++ ..._plugin-framework-react_dist_runtime_js.js | 722 + dist/project.config.json | 39 + dist/project.private.config.json | 7 + dist/runtime.js | 366 + dist/runtime.js.map | 1 + dist/taro.js | 112 + dist/taro.js.map | 1 + dist/utils.wxs | 39 + dist/vendors.js | 26 + dist/vendors.js.map | 1 + package.json | 73 +- project.config.json | 16 +- project.tt.json | 8 +- src/app.config.ts | 18 +- src/{app.less => app.scss} | 0 src/app.ts | 16 +- src/pages/index/hook.png | Bin 0 -> 3967 bytes src/pages/index/index.config.ts | 7 +- src/pages/index/index.less | 0 src/pages/index/index.scss | 56 + src/pages/index/index.tsx | 77 +- yarn.lock | 5127 ++-- 55 files changed, 59127 insertions(+), 2395 deletions(-) delete mode 100644 README.md create mode 100644 dist/app.js create mode 100644 dist/app.js.map create mode 100644 dist/app.json create mode 100644 dist/app.wxss create mode 100644 dist/base.wxml create mode 100644 dist/comp.js create mode 100644 dist/comp.json create mode 100644 dist/comp.wxml create mode 100644 dist/pages/index/hook.png create mode 100644 dist/pages/index/index.js create mode 100644 dist/pages/index/index.js.map create mode 100644 dist/pages/index/index.json create mode 100644 dist/pages/index/index.wxml create mode 100644 dist/pages/index/index.wxss create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_react-dom_js.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_react_js.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_tarojs_plugin-platform-weapp_dist_runtime_js.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_tarojs_runtime_js.js create mode 100644 dist/prebundle/node_modules_taro_weapp_prebundle_tarojs_taro_js.js create mode 100644 dist/prebundle/remoteEntry.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-OEADN3SU_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-TAHRAO33_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_taro-hooks_js.js create mode 100644 dist/prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js create mode 100644 dist/project.config.json create mode 100644 dist/project.private.config.json create mode 100644 dist/runtime.js create mode 100644 dist/runtime.js.map create mode 100644 dist/taro.js create mode 100644 dist/taro.js.map create mode 100644 dist/utils.wxs create mode 100644 dist/vendors.js create mode 100644 dist/vendors.js.map rename src/{app.less => app.scss} (100%) create mode 100644 src/pages/index/hook.png delete mode 100644 src/pages/index/index.less create mode 100644 src/pages/index/index.scss diff --git a/README.md b/README.md deleted file mode 100644 index 1bbbd01..0000000 --- a/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# citynew - - - -## Getting started - -To make it easy for you to get started with GitLab, here's a list of recommended next steps. - -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! - -## Add your files - -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: - -``` -cd existing_repo -git remote add origin http://gitlab.yidooplanet.com/gitlab-instance-0a899031/citynew.git -git branch -M main -git push -uf origin main -``` - -## Integrate with your tools - -- [ ] [Set up project integrations](http://gitlab.yidooplanet.com/gitlab-instance-0a899031/citynew/-/settings/integrations) - -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. - -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. - -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. - -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. - -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. - -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. - -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. - -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. - -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. diff --git a/babel.config.js b/babel.config.js index f3acb81..46ee964 100644 --- a/babel.config.js +++ b/babel.config.js @@ -2,9 +2,31 @@ // https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md module.exports = { presets: [ - ['taro', { - framework: 'react', - ts: true - }] - ] -} + [ + 'taro', + { + framework: 'react', + ts: true + }, + ], + ], + plugins: [ + [ + 'import', + { + libraryName: 'taro-hooks', + camel2DashComponentName: false + }, + 'taro-hooks', + ], + [ + "import", + { + "libraryName": "@antmjs/vantui", + "libraryDirectory": "es", + "style": true + }, + "@antmjs/vantui" + ] + ], +}; diff --git a/config/dev.js b/config/dev.js index 6821bf8..ff3c944 100644 --- a/config/dev.js +++ b/config/dev.js @@ -1,9 +1,8 @@ module.exports = { env: { - NODE_ENV: '"development"' - }, - defineConstants: { + NODE_ENV: '"development"', }, + defineConstants: {}, mini: {}, - h5: {} -} + h5: {}, +}; diff --git a/config/index.js b/config/index.js index 6a9b209..463a9df 100644 --- a/config/index.js +++ b/config/index.js @@ -1,24 +1,21 @@ const config = { - projectName: 'myApp', - date: '2022-11-12', + projectName: "myApp", + date: "2022-11-13", designWidth: 750, deviceRatio: { 640: 2.34 / 2, 750: 1, - 828: 1.81 / 2 + 828: 1.81 / 2, }, - sourceRoot: 'src', - outputRoot: 'dist', + sourceRoot: "src", + outputRoot: "dist", plugins: [], - defineConstants: { - }, + defineConstants: {}, copy: { - patterns: [ - ], - options: { - } + patterns: [], + options: {}, }, - framework: 'react', + framework: "react", compiler: 'webpack5', cache: { enable: false // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache @@ -27,56 +24,45 @@ const config = { postcss: { pxtransform: { enable: true, - config: { - - } + config: {}, }, url: { enable: true, config: { - limit: 1024 // 设定转换尺寸上限 - } + limit: 1024, // 设定转换尺寸上限 + }, }, cssModules: { enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true config: { - namingPattern: 'module', // 转换模式,取值为 global/module - generateScopedName: '[name]__[local]___[hash:base64:5]' - } - } - } + namingPattern: "module", // 转换模式,取值为 global/module + generateScopedName: "[name]__[local]___[hash:base64:5]", + }, + }, + }, }, h5: { - publicPath: '/', - staticDirectory: 'static', + publicPath: "/", + staticDirectory: "static", postcss: { autoprefixer: { enable: true, - config: { - } + config: {}, }, cssModules: { enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true config: { - namingPattern: 'module', // 转换模式,取值为 global/module - generateScopedName: '[name]__[local]___[hash:base64:5]' - } - } - } + namingPattern: "module", // 转换模式,取值为 global/module + generateScopedName: "[name]__[local]___[hash:base64:5]", + }, + }, + }, }, - rn: { - appName: 'taroDemo', - postcss: { - cssModules: { - enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true - } - } - } -} +}; module.exports = function (merge) { - if (process.env.NODE_ENV === 'development') { - return merge({}, config, require('./dev')) + if (process.env.NODE_ENV === "development") { + return merge({}, config, require("./dev")); } - return merge({}, config, require('./prod')) -} + return merge({}, config, require("./prod")); +}; diff --git a/config/prod.js b/config/prod.js index e148666..6566539 100644 --- a/config/prod.js +++ b/config/prod.js @@ -1,9 +1,8 @@ module.exports = { env: { - NODE_ENV: '"production"' - }, - defineConstants: { + NODE_ENV: '"production"', }, + defineConstants: {}, mini: {}, h5: { /** @@ -33,5 +32,5 @@ module.exports = { // postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') }) // })) // } - } -} + }, +}; diff --git a/dist/app.js b/dist/app.js new file mode 100644 index 0000000..59d2fd3 --- /dev/null +++ b/dist/app.js @@ -0,0 +1,331 @@ +"use strict"; +require("./prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js"); +require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js.js"); +require("./prebundle/vendors-node_modules_taro_weapp_prebundle_taro-hooks_js.js"); +require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-OEADN3SU_js.js"); +require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js.js"); +require("./prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js"); +require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-TAHRAO33_js.js"); +require("./prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js"); +require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js.js"); +require("./prebundle/node_modules_taro_weapp_prebundle_tarojs_plugin-platform-weapp_dist_runtime_js.js"); +require("./prebundle/node_modules_taro_weapp_prebundle_react_js.js"); +require("./prebundle/remoteEntry.js"); +require("./prebundle/node_modules_taro_weapp_prebundle_tarojs_runtime_js.js"); +require("./prebundle/node_modules_taro_weapp_prebundle_react-dom_js.js"); +require("./prebundle/node_modules_taro_weapp_prebundle_tarojs_taro_js.js"); + +require("./vendors"); +require("./taro"); +require("./runtime"); + +(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["app"],{ + +/***/ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/app.ts": +/*!*****************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/app.ts ***! + \*****************************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"); +/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/createClass.js */ "./node_modules/@babel/runtime/helpers/esm/createClass.js"); +/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/inherits.js */ "./node_modules/@babel/runtime/helpers/esm/inherits.js"); +/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/createSuper.js */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/container/remote/react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); + + + + + + +var App = /*#__PURE__*/function (_Component) { + (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__["default"])(App, _Component); + var _super = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(App); + function App() { + (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__["default"])(this, App); + return _super.apply(this, arguments); + } + (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__["default"])(App, [{ + key: "componentDidMount", + value: function componentDidMount() {} + }, { + key: "componentDidShow", + value: function componentDidShow() {} + }, { + key: "componentDidHide", + value: function componentDidHide() {} + + // this.props.children 是将要会渲染的页面 + }, { + key: "render", + value: function render() { + return this.props.children; + } + }]); + return App; +}(react__WEBPACK_IMPORTED_MODULE_0__.Component); +/* harmony default export */ __webpack_exports__["default"] = (App); + +/***/ }), + +/***/ "./src/app.ts": +/*!********************!*\ + !*** ./src/app.ts ***! + \********************/ +/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) { + +/* harmony import */ var _tarojs_plugin_platform_weapp_dist_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/plugin-platform-weapp/dist/runtime */ "webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime"); +/* harmony import */ var _tarojs_plugin_platform_weapp_dist_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_plugin_platform_weapp_dist_runtime__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime"); +/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tarojs/plugin-framework-react/dist/runtime */ "webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime"); +/* harmony import */ var _tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro"); +/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_app_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./app.ts */ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/app.ts"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "webpack/container/remote/react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-dom */ "webpack/container/remote/react-dom"); +/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_6__); + + + + + + + + + + + +var config = {"pages":["pages/index/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}; +_tarojs_runtime__WEBPACK_IMPORTED_MODULE_1__.window.__taroAppConfig = config +var inst = App((0,_tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_2__.createReactApp)(_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_app_ts__WEBPACK_IMPORTED_MODULE_4__["default"], react__WEBPACK_IMPORTED_MODULE_5__, (react_dom__WEBPACK_IMPORTED_MODULE_6___default()), config)) + +;(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_3__.initPxTransform)({ + designWidth: 750, + deviceRatio: {"640":1.17,"750":1,"828":0.905} +}) + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js": +/*!**************************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***! + \**************************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _assertThisInitialized; } +/* harmony export */ }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; +} + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***! + \*******************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _classCallCheck; } +/* harmony export */ }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js": +/*!****************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***! + \****************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _createClass; } +/* harmony export */ }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; +} + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/createSuper.js": +/*!****************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/createSuper.js ***! + \****************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _createSuper; } +/* harmony export */ }); +/* harmony import */ var _getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"); +/* harmony import */ var _isNativeReflectConstruct_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js"); +/* harmony import */ var _possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./possibleConstructorReturn.js */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"); + + + +function _createSuper(Derived) { + var hasNativeReflectConstruct = (0,_isNativeReflectConstruct_js__WEBPACK_IMPORTED_MODULE_0__["default"])(); + return function _createSuperInternal() { + var Super = (0,_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_1__["default"])(Derived), + result; + if (hasNativeReflectConstruct) { + var NewTarget = (0,_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_1__["default"])(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return (0,_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this, result); + }; +} + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***! + \*******************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _getPrototypeOf; } +/* harmony export */ }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/inherits.js": +/*!*************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/inherits.js ***! + \*************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _inherits; } +/* harmony export */ }); +/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"); + +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + Object.defineProperty(subClass, "prototype", { + writable: false + }); + if (superClass) (0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(subClass, superClass); +} + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js ***! + \*****************************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _isNativeReflectConstruct; } +/* harmony export */ }); +function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + return true; + } catch (e) { + return false; + } +} + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js": +/*!******************************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***! + \******************************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _possibleConstructorReturn; } +/* harmony export */ }); +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); +/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"); + + +function _possibleConstructorReturn(self, call) { + if (call && ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(call) === "object" || typeof call === "function")) { + return call; + } else if (call !== void 0) { + throw new TypeError("Derived constructors may only return object or undefined"); + } + return (0,_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__["default"])(self); +} + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***! + \*******************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _setPrototypeOf; } +/* harmony export */ }); +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); +} + +/***/ }) + +}, +/******/ function(__webpack_require__) { // webpackRuntimeModules +/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); } +/******/ __webpack_require__.O(0, ["vendors","common"], function() { return __webpack_exec__("./src/app.ts"); }); +/******/ var __webpack_exports__ = __webpack_require__.O(); +/******/ } +]);;; +//# sourceMappingURL=app.js.map \ No newline at end of file diff --git a/dist/app.js.map b/dist/app.js.map new file mode 100644 index 0000000..610c6b8 --- /dev/null +++ b/dist/app.js.map @@ -0,0 +1 @@ +{"version":3,"file":"app.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;;AAIA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;;;;;;;;;;;;;;;;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://myApp/._src_app.ts","webpack://myApp/./src/app.ts?7071","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_assertThisInitialized.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_classCallCheck.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_createClass.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_createSuper.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_getPrototypeOf.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_inherits.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_isNativeReflectConstruct.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_possibleConstructorReturn.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_setPrototypeOf.js"],"sourcesContent":["import { Component } from \"react\";\nimport \"./app.scss\";\nclass App extends Component {\n componentDidMount() {}\n\n componentDidShow () {}\n\n componentDidHide () {}\n\n // this.props.children 是将要会渲染的页面\n render() {\n return this.props.children;\n }\n}\n\nexport default App;\n","import '@tarojs/plugin-platform-weapp/dist/runtime'\n\nimport { window } from '@tarojs/runtime'\nimport { createReactApp } from '@tarojs/plugin-framework-react/dist/runtime'\nimport { initPxTransform } from '@tarojs/taro'\n\nimport component from \"../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./app.ts\"\n\nimport * as React from 'react'\nimport ReactDOM from 'react-dom'\n\nvar config = {\"pages\":[\"pages/index/index\"],\"window\":{\"backgroundTextStyle\":\"light\",\"navigationBarBackgroundColor\":\"#fff\",\"navigationBarTitleText\":\"WeChat\",\"navigationBarTextStyle\":\"black\"}};\nwindow.__taroAppConfig = config\nvar inst = App(createReactApp(component, React, ReactDOM, config))\n\ninitPxTransform({\n designWidth: 750,\n deviceRatio: {\"640\":1.17,\"750\":1,\"828\":0.905}\n})\n","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nimport possibleConstructorReturn from \"./possibleConstructorReturn.js\";\nexport default function _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return possibleConstructorReturn(this, result);\n };\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/dist/app.json b/dist/app.json new file mode 100644 index 0000000..ebbac1e --- /dev/null +++ b/dist/app.json @@ -0,0 +1 @@ +{"pages":["pages/index/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}} \ No newline at end of file diff --git a/dist/app.wxss b/dist/app.wxss new file mode 100644 index 0000000..db02d45 --- /dev/null +++ b/dist/app.wxss @@ -0,0 +1,4 @@ +/*!***********************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/app.scss ***! + \***********************************************************************************************************************************************************************************************************************************************************************************************************/ + diff --git a/dist/base.wxml b/dist/base.wxml new file mode 100644 index 0000000..b8809e5 --- /dev/null +++ b/dist/base.wxml @@ -0,0 +1,783 @@ + +