[配置]配置router
This commit is contained in:
108
node_modules/uni-read-pages/README.md
generated
vendored
Normal file
108
node_modules/uni-read-pages/README.md
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
# uni-read-pages
|
||||
|
||||
   
|
||||
|
||||
通过 [vue.config.js](https://cli.vuejs.org/zh/config/) 配合此库,可以随心所欲的读取 `pages.json` 下的所有配置
|
||||
|
||||
## 安装
|
||||
|
||||
您可以使用 `Yarn` 或 `npm` 安装该软件包(选择一个):
|
||||
|
||||
##### Yarn
|
||||
|
||||
```sh
|
||||
yarn add uni-read-pages
|
||||
```
|
||||
##### npm
|
||||
|
||||
```sh
|
||||
npm install uni-read-pages
|
||||
```
|
||||
## 开始
|
||||
配置 `vue.config.js` 通过 `webpack` 注入全局变量 [查看文档](https://www.webpackjs.com/plugins/define-plugin/)
|
||||
|
||||
#### 配置 `vue.config.js`
|
||||
```js
|
||||
//vue.config.js
|
||||
const TransformPages = require('uni-read-pages')
|
||||
const tfPages = new TransformPages()
|
||||
module.exports = {
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new tfPages.webpack.DefinePlugin({
|
||||
ROUTES: JSON.stringify(tfPages.routes)
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
借助`webpack.DefinePlugin` 轻松注入全局变量。`ROUTES` 及可全局使用
|
||||
|
||||
#### 使用
|
||||
```js
|
||||
// xxx.vue
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(ROUTES)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
```
|
||||
## API
|
||||
#### options
|
||||
```js
|
||||
//默认值
|
||||
const CONFIG={
|
||||
cli:false, //当前是否为脚手架初始化的项目
|
||||
includes:['path','aliasPath','name'] //需要获取包涵的字段
|
||||
}
|
||||
```
|
||||
|
||||
#### Instance method
|
||||
|
||||
* **getPagesRoutes**
|
||||
* 通过读取 `pages.json` 文件 生成直接可用的routes
|
||||
|
||||
* **parsePages(pageCallback, subPageCallback)**
|
||||
* 单条page对象解析
|
||||
|
||||
* **resolvePath(dir)**
|
||||
* 解析绝对路径
|
||||
|
||||
#### Instance attr
|
||||
|
||||
* **CONFIG**
|
||||
* 当前配置项
|
||||
|
||||
* **webpack**
|
||||
* 当前工程下需要用到 `webpack`
|
||||
|
||||
* **uniPagesJSON**
|
||||
* 当前 `uni-app` 内置对象,可以通过此属性调用一些内置方法
|
||||
|
||||
* **routes**
|
||||
* 通过 **includes** 解析后得到的路由表 **可直接使用**
|
||||
|
||||
#### getter
|
||||
|
||||
* **pagesJson**
|
||||
* 获取所有 `pages.json` 下的内容 返回 `json`
|
||||
|
||||
|
||||
#### uniPagesJSON method
|
||||
|
||||
* getMainEntry()
|
||||
* getNVueMainEntry()
|
||||
* parsePages (pagesJson, pageCallback, subPageCallback)
|
||||
* parseEntry (pagesJson)
|
||||
* getPagesJson()
|
||||
* parsePagesJson (content, loader)
|
||||
|
||||
#### uniPagesJSON attr
|
||||
* pagesJsonJsFileName //默认值 pages.js
|
||||
83
node_modules/uni-read-pages/index.js
generated
vendored
Normal file
83
node_modules/uni-read-pages/index.js
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
const path = require('path')
|
||||
const CONFIG = {
|
||||
includes: ['path', 'aliasPath', 'name']
|
||||
}
|
||||
const rootPath = path.resolve(process.cwd(), 'node_modules');
|
||||
|
||||
/** 解析绝对路径
|
||||
* @param {Object} dir
|
||||
*/
|
||||
function resolvePath(dir) {
|
||||
return path.resolve(rootPath, dir);
|
||||
}
|
||||
|
||||
class TransformPages {
|
||||
constructor(config) {
|
||||
config = {
|
||||
...CONFIG,
|
||||
...config
|
||||
};
|
||||
this.CONFIG = config;
|
||||
this.webpack = require(resolvePath('webpack'));
|
||||
this.uniPagesJSON = require(resolvePath('@dcloudio/uni-cli-shared/lib/pages.js'));
|
||||
this.routes = this.getPagesRoutes().concat(this.getNotMpRoutes());
|
||||
}
|
||||
/**
|
||||
* 获取所有pages.json下的内容 返回json
|
||||
*/
|
||||
get pagesJson() {
|
||||
return this.uniPagesJSON.getPagesJson();
|
||||
}
|
||||
/**
|
||||
* 通过读取pages.json文件 生成直接可用的routes
|
||||
*/
|
||||
getPagesRoutes(pages = this.pagesJson.pages, rootPath = null) {
|
||||
const routes = [];
|
||||
for (let i = 0; i < pages.length; i++) {
|
||||
const item = pages[i];
|
||||
const route = {};
|
||||
for (let j = 0; j < this.CONFIG.includes.length; j++) {
|
||||
const key = this.CONFIG.includes[j];
|
||||
let value = item[key];
|
||||
if (key === 'path') {
|
||||
value = rootPath ? `/${rootPath}/${value}` : `/${value}`
|
||||
}
|
||||
if (key === 'aliasPath' && i == 0 && rootPath == null) {
|
||||
route[key] = route[key] || '/'
|
||||
} else if (value !== undefined) {
|
||||
route[key] = value;
|
||||
}
|
||||
}
|
||||
routes.push(route);
|
||||
}
|
||||
return routes;
|
||||
}
|
||||
/**
|
||||
* 解析小程序分包路径
|
||||
*/
|
||||
getNotMpRoutes() {
|
||||
const {
|
||||
subPackages
|
||||
} = this.pagesJson;
|
||||
let routes = [];
|
||||
if (subPackages == null || subPackages.length == 0) {
|
||||
return [];
|
||||
}
|
||||
for (let i = 0; i < subPackages.length; i++) {
|
||||
const subPages = subPackages[i].pages;
|
||||
const root = subPackages[i].root;
|
||||
const subRoutes = this.getPagesRoutes(subPages, root);
|
||||
routes = routes.concat(subRoutes)
|
||||
}
|
||||
return routes
|
||||
}
|
||||
/**
|
||||
* 单条page对象解析
|
||||
* @param {Object} pageCallback
|
||||
* @param {Object} subPageCallback
|
||||
*/
|
||||
parsePages(pageCallback, subPageCallback) {
|
||||
this.uniPagesJSON.parsePages(this.pagesJson, pageCallback, subPageCallback)
|
||||
}
|
||||
}
|
||||
module.exports = TransformPages
|
||||
51
node_modules/uni-read-pages/package.json
generated
vendored
Normal file
51
node_modules/uni-read-pages/package.json
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"_from": "uni-read-pages",
|
||||
"_id": "uni-read-pages@1.0.5",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-GkrrZ0LX0vn9R5k6RKEi0Ez3Q3e2vUpjXQ8Z6/K/d28KudI9ajqgt8WEjQFlG5EPm1K6uTArN8LlqmZTEixDUA==",
|
||||
"_location": "/uni-read-pages",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "tag",
|
||||
"registry": true,
|
||||
"raw": "uni-read-pages",
|
||||
"name": "uni-read-pages",
|
||||
"escapedName": "uni-read-pages",
|
||||
"rawSpec": "",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "latest"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER",
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/uni-read-pages/-/uni-read-pages-1.0.5.tgz",
|
||||
"_shasum": "452c8dcaa8977bbaef600909be926c8d9704387c",
|
||||
"_spec": "uni-read-pages",
|
||||
"_where": "/Users/WebTmm/Desktop/barter-app",
|
||||
"author": "",
|
||||
"bugs": {
|
||||
"url": "https://github.com/SilurianYang/uni-read-pages/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "read `pages.json` file to generate the routes table",
|
||||
"directories": {
|
||||
"example": "examples"
|
||||
},
|
||||
"homepage": "https://github.com/SilurianYang/uni-read-pages#readme",
|
||||
"keywords": [],
|
||||
"license": "ISC",
|
||||
"main": "index.js",
|
||||
"name": "uni-read-pages",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/SilurianYang/uni-read-pages.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "webpack --progress --config webpack/webpack.prod.js",
|
||||
"dev": "webpack --watch --progress --config webpack/webpack.dev.js",
|
||||
"postinstall": "node -e \"console.log('\\x1b[91m','\\n\\n uni-simple-router 垫脚片,欢迎下载!\\n \\n 开源不易,需要鼓励。去给 uni-read-pages 项目 点个 star 吧 \\n\\n')\""
|
||||
},
|
||||
"version": "1.0.5"
|
||||
}
|
||||
68
node_modules/uni-simple-router/package.json
generated
vendored
68
node_modules/uni-simple-router/package.json
generated
vendored
@@ -1,22 +1,38 @@
|
||||
{
|
||||
"_from": "uni-simple-router@^2.0.6",
|
||||
"_id": "uni-simple-router@2.0.6",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-n5gepoT3QcBrvVLeTCY/DjUjC4m1hNzwFlOa1VlCsww/4/34MGfvegpN9OWR8jOxxtUPKGHLAG0yODL/ITCwbw==",
|
||||
"_location": "/uni-simple-router",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "uni-simple-router@^2.0.6",
|
||||
"name": "uni-simple-router",
|
||||
"version": "2.0.6",
|
||||
"escapedName": "uni-simple-router",
|
||||
"rawSpec": "^2.0.6",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.0.6"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER",
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/uni-simple-router/-/uni-simple-router-2.0.6.tgz",
|
||||
"_shasum": "f6d48d6d29766c4b2471bb019192989e784fb684",
|
||||
"_spec": "uni-simple-router@^2.0.6",
|
||||
"_where": "/Users/WebTmm/Desktop/barter-app",
|
||||
"author": {
|
||||
"name": "hhyang"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/SilurianYang/uni-simple-router/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "> 一个更为简洁的[Vue-router](https://router.vuejs.org/zh/),专为 [uni-app](https://uniapp.dcloud.io/) 量身打造",
|
||||
"main": "dist/uni-simple-router.js",
|
||||
"types": "dist/uni-simple-router.d.ts",
|
||||
"scripts": {
|
||||
"dev": "webpack --watch --progress --config webpack/webpack.dev.js",
|
||||
"build": "webpack --progress --config webpack/webpack.prod.js",
|
||||
"build:dts": "api-extractor run --local --verbose",
|
||||
"lint": "eslint --ext .js,.ts src",
|
||||
"lintFix": "eslint --ext .js,.ts src --fix",
|
||||
"test": "jest test/path-to-regexp.spec.ts",
|
||||
"publish": "node ./publish/index.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/SilurianYang/uni-simple-router.git"
|
||||
},
|
||||
"homepage": "https://github.com/SilurianYang/uni-simple-router#readme",
|
||||
"keywords": [
|
||||
"router",
|
||||
"uni-app-router",
|
||||
@@ -24,10 +40,22 @@
|
||||
"uni-app",
|
||||
"uniapp"
|
||||
],
|
||||
"author": "hhyang",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/SilurianYang/uni-simple-router/issues"
|
||||
"main": "dist/uni-simple-router.js",
|
||||
"name": "uni-simple-router",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/SilurianYang/uni-simple-router.git"
|
||||
},
|
||||
"homepage": "https://github.com/SilurianYang/uni-simple-router#readme"
|
||||
"scripts": {
|
||||
"build": "webpack --progress --config webpack/webpack.prod.js",
|
||||
"build:dts": "api-extractor run --local --verbose",
|
||||
"dev": "webpack --watch --progress --config webpack/webpack.dev.js",
|
||||
"lint": "eslint --ext .js,.ts src",
|
||||
"lintFix": "eslint --ext .js,.ts src --fix",
|
||||
"publish": "node ./publish/index.js",
|
||||
"test": "jest test/path-to-regexp.spec.ts"
|
||||
},
|
||||
"types": "dist/uni-simple-router.d.ts",
|
||||
"version": "2.0.6"
|
||||
}
|
||||
|
||||
356
node_modules/vuex/CHANGELOG.md
generated
vendored
Normal file
356
node_modules/vuex/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,356 @@
|
||||
## [3.6.2](https://github.com/vuejs/vuex/compare/v3.6.1...v3.6.2) (2021-01-26)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **build:** fix wrong path name for the export module ([679313b](https://github.com/vuejs/vuex/commit/679313bf5e4de066f340a06ef9bfe08d1536fadd))
|
||||
|
||||
## [3.6.1](https://github.com/vuejs/vuex/compare/v3.6.0...v3.6.1) (2021-01-26)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix tree shaking notworking in webpack bundle ([#1906](https://github.com/vuejs/vuex/issues/1906)) ([1dc2d1f](https://github.com/vuejs/vuex/commit/1dc2d1f21de42138053ea3281dde05487642a76d))
|
||||
|
||||
# [3.6.0](https://github.com/vuejs/vuex/compare/v3.5.1...v3.6.0) (2020-11-25)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* stop throwing an error on `hasModule` when parent does not exists ([#1850](https://github.com/vuejs/vuex/issues/1850)) ([#1851](https://github.com/vuejs/vuex/issues/1851)) ([12aabe4](https://github.com/vuejs/vuex/commit/12aabe4cc470916d40691097dcb95badb8212f5c))
|
||||
|
||||
### Features
|
||||
|
||||
* **types:** adding logger type for logger plugin ([#1853](https://github.com/vuejs/vuex/issues/1853)) ([cb3198d](https://github.com/vuejs/vuex/commit/cb3198d5998bdb11ef05dfa5ef98d5c5fa873089))
|
||||
* **build:** enable named esm module import on node.js >= 14 ([#1872](https://github.com/vuejs/vuex/issues/1872)) ([acddab2](https://github.com/vuejs/vuex/commit/acddab20769d1bb6125f2da78ac47561c682fc98))
|
||||
|
||||
## [3.5.1](https://github.com/vuejs/vuex/compare/v3.5.0...v3.5.1) (2020-06-29)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **types:** add missing `logger.d.ts` file to the package ([#1789](https://github.com/vuejs/vuex/issues/1789)) ([a477334](https://github.com/vuejs/vuex/commit/a477334b909913f6a92bdbedcf4a3016a62eab7a))
|
||||
* warn when unregistering non existing module ([#1786](https://github.com/vuejs/vuex/issues/1786)) ([7cec79d](https://github.com/vuejs/vuex/commit/7cec79d339b874ec41f35891c891dfd27460c1d3))
|
||||
|
||||
|
||||
|
||||
# [3.5.0](https://github.com/vuejs/vuex/compare/v3.4.0...v3.5.0) (2020-06-29)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* include logger plugin to the core export ([#1783](https://github.com/vuejs/vuex/issues/1783)) ([04e2bd8](https://github.com/vuejs/vuex/commit/04e2bd8b3509c67398a6fe73a3d53660069feca8))
|
||||
|
||||
|
||||
|
||||
# [3.4.0](https://github.com/vuejs/vuex/compare/v3.3.0...v3.4.0) (2020-05-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Allow action subscribers to catch rejections. ([#1740](https://github.com/vuejs/vuex/issues/1740)) ([6ebbe64](https://github.com/vuejs/vuex/commit/6ebbe64c5821d19e55a41dc8b1d81cfce6cbd195)), closes [#1489](https://github.com/vuejs/vuex/issues/1489) [#1558](https://github.com/vuejs/vuex/issues/1558) [#1625](https://github.com/vuejs/vuex/issues/1625)
|
||||
|
||||
|
||||
|
||||
# [3.3.0](https://github.com/vuejs/vuex/compare/v3.2.0...v3.3.0) (2020-04-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Prepend devtool handler ([#1358](https://github.com/vuejs/vuex/issues/1358)) ([a39d076](https://github.com/vuejs/vuex/commit/a39d0767e4041cdd5cf8050774106c01d39024e0)), closes [vuejs/vue-devtools#678](https://github.com/vuejs/vue-devtools/issues/678)
|
||||
* **types:** Add `devtools` to store options type ([#1478](https://github.com/vuejs/vuex/issues/1478)) ([38c11dc](https://github.com/vuejs/vuex/commit/38c11dcbaea7d7e661a1623cabb5aef7c6e47ba7))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Add `prepend` option for `subscribe` and `subscribeAction` ([#1358](https://github.com/vuejs/vuex/issues/1358)) ([a39d076](https://github.com/vuejs/vuex/commit/a39d0767e4041cdd5cf8050774106c01d39024e0))
|
||||
* **logger:** `createLogger` can optionally log actions ([#987](https://github.com/vuejs/vuex/issues/987)) ([18be128](https://github.com/vuejs/vuex/commit/18be128ad933d1fca6da05c060f7664ce0c819ae))
|
||||
|
||||
|
||||
|
||||
# [3.2.0](https://github.com/vuejs/vuex/compare/v3.1.3...v3.2.0) (2020-04-19)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add Store#hasModule(path) API ([#834](https://github.com/vuejs/vuex/issues/834)) ([d65d142](https://github.com/vuejs/vuex/commit/d65d14276e87aca17cfbd3fbf4af9e8dbb808f24))
|
||||
|
||||
|
||||
|
||||
## [3.1.3](https://github.com/vuejs/vuex/compare/v3.1.2...v3.1.3) (2020-03-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Prevent invalidating subscription iterator ([#1438](https://github.com/vuejs/vuex/issues/1438)) ([e012653](https://github.com/vuejs/vuex/commit/e0126533301febf66072f1865cf9a77778cf2176))
|
||||
|
||||
|
||||
|
||||
## [3.1.2](https://github.com/vuejs/vuex/compare/v3.1.1...v3.1.2) (2019-11-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* tweak mapping helper warning message ([#1641](https://github.com/vuejs/vuex/issues/1641)) ([e60bc76](https://github.com/vuejs/vuex/commit/e60bc76154bb05c12b24342617b946d9a6e2f476))
|
||||
* **types:** avoid broadening vue instance type when using map helpers ([#1639](https://github.com/vuejs/vuex/issues/1639)) ([9a96720](https://github.com/vuejs/vuex/commit/9a9672050bcfee198c379069ec0e1b03ca6cb965))
|
||||
* add warnings when the different namespaced modules has the same names… ([#1554](https://github.com/vuejs/vuex/issues/1554)) ([91f3e69](https://github.com/vuejs/vuex/commit/91f3e69ed9e290cf91f8885c6d5ae2c97fa7ab81))
|
||||
* Should vuex mapState print error message [#1093](https://github.com/vuejs/vuex/issues/1093) ([#1297](https://github.com/vuejs/vuex/issues/1297)) ([e5ca2d5](https://github.com/vuejs/vuex/commit/e5ca2d52e89a126bd48bd8a6003be77379960ea9))
|
||||
* Warn about conflicts between state and module ([#1365](https://github.com/vuejs/vuex/issues/1365)) ([538ee58](https://github.com/vuejs/vuex/commit/538ee5803bbca2fc8077208fb30c8d56d8be5cae))
|
||||
* **docs:** Clearify state object type ([#1601](https://github.com/vuejs/vuex/issues/1601)) ([de06f76](https://github.com/vuejs/vuex/commit/de06f76380e7429489c0eb15acc8e0b34a383860))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* Implementing a cache for the gettersProxy object creation ([#1546](https://github.com/vuejs/vuex/issues/1546)) ([4003382](https://github.com/vuejs/vuex/commit/40033825b7259c2e9b702bdf94e0b24ed4511d7c))
|
||||
|
||||
|
||||
|
||||
## [3.1.1](https://github.com/vuejs/vuex/compare/v3.1.0...v3.1.1) (2019-05-08)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Memory leak happening while using registerModule/u… ([#1508](https://github.com/vuejs/vuex/issues/1508)) ([cb9986a](https://github.com/vuejs/vuex/commit/cb9986ae5a62e002a1d876e881ee5f31dd410888)), closes [issue#1507](https://github.com/issue/issues/1507)
|
||||
* **types:** Make mutation and action payload optional in definition file ([#1517](https://github.com/vuejs/vuex/issues/1517)) ([0e109e2](https://github.com/vuejs/vuex/commit/0e109e2a38dafdc0c2bd6bd3892bc66cfe252b16)), closes [#1491](https://github.com/vuejs/vuex/issues/1491)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **devtool:** allow usage in non-browser environments ([#1404](https://github.com/vuejs/vuex/issues/1404)) ([665455f](https://github.com/vuejs/vuex/commit/665455f8daf8512e7adbf63c2842bc0b1e39efdb))
|
||||
* **esm build:** build ES modules for browser ([#1533](https://github.com/vuejs/vuex/issues/1533)) ([d7c7f98](https://github.com/vuejs/vuex/commit/d7c7f9844831f98c5c9aaca213746c4ccc5d6929))
|
||||
|
||||
|
||||
|
||||
# [3.1.0](https://github.com/vuejs/vuex/compare/v3.0.1...v3.1.0) (2019-01-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **types:** add helpers to default export type declaration as in sources ([#1408](https://github.com/vuejs/vuex/issues/1408)) ([404d0de](https://github.com/vuejs/vuex/commit/404d0de9531322a1a462e53dfd858d20f0bd99af))
|
||||
* **types:** add type annotation for the context of actions ([#1322](https://github.com/vuejs/vuex/issues/1322)) ([d1b5c66](https://github.com/vuejs/vuex/commit/d1b5c66961ab53e0172cbc706ff616227bcb5c77))
|
||||
* **types:** allow a function type for root `state` option ([#1132](https://github.com/vuejs/vuex/issues/1132)) ([d39791b](https://github.com/vuejs/vuex/commit/d39791bd05830b1889705761ef5779449e35e97f))
|
||||
* Add key to v-for ([#1369](https://github.com/vuejs/vuex/issues/1369)) ([a9bd047](https://github.com/vuejs/vuex/commit/a9bd047ea147cacfcb4003946aeebccd2c5e1e4e))
|
||||
* avoid to call root state function twice ([#1034](https://github.com/vuejs/vuex/issues/1034)) ([86677eb](https://github.com/vuejs/vuex/commit/86677ebcbfaecf712f339b73a568150fc9fd5f5e))
|
||||
* fix [#1032](https://github.com/vuejs/vuex/issues/1032), relax vue typing in helpers ([#1044](https://github.com/vuejs/vuex/issues/1044)) ([7c7ed1d](https://github.com/vuejs/vuex/commit/7c7ed1d37ee8a5058082d763d80529e5fef86a0b))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add ability to turn off devtools on vuex by passing an off options ([#1407](https://github.com/vuejs/vuex/issues/1407)) ([be75d41](https://github.com/vuejs/vuex/commit/be75d41cf54d50177a7db7e9218e8d1c820ae830))
|
||||
* ensure errors in action subscribers do not break actions ([acd7249](https://github.com/vuejs/vuex/commit/acd72492eaffff3661f75860a3d7ab37b73c3906))
|
||||
|
||||
|
||||
### Reverts
|
||||
|
||||
* Revert "Update util find (#1205)" (fix #1286) ([273bf86](https://github.com/vuejs/vuex/commit/273bf86b330ee580a73176c300919996b7d9c2c3)), closes [#1286](https://github.com/vuejs/vuex/issues/1286)
|
||||
|
||||
|
||||
|
||||
## [3.0.1](https://github.com/vuejs/vuex/compare/v3.0.0...v3.0.1) (2017-11-01)
|
||||
|
||||
|
||||
|
||||
# [3.0.0](https://github.com/vuejs/vuex/compare/v2.5.0...v3.0.0) (2017-10-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **typings:** adapt to the new Vue typings ([#909](https://github.com/vuejs/vuex/issues/909)) ([65dbfec](https://github.com/vuejs/vuex/commit/65dbfec40d5fe7aac05aab333c7b70768997ca7f))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* **typings:** It is no longer compatible with the old Vue typings
|
||||
|
||||
* chore(package): bump typescript and vue core typings
|
||||
|
||||
* chore: bump vue
|
||||
|
||||
* Update package.json
|
||||
|
||||
|
||||
|
||||
# [2.5.0](https://github.com/vuejs/vuex/compare/v2.4.1...v2.5.0) (2017-10-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* initialize root state as an empty object if state function returns no value ([#927](https://github.com/vuejs/vuex/issues/927)) ([0e9756b](https://github.com/vuejs/vuex/commit/0e9756b93c5de8e03286d93f0b50af5f8dfd3bac))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add logger plugin logger config support ([#771](https://github.com/vuejs/vuex/issues/771)) ([804c3bb](https://github.com/vuejs/vuex/commit/804c3bbd2e60f11412f5a7cb7694969f8f6c215c))
|
||||
* preserve state with registerModule ([#837](https://github.com/vuejs/vuex/issues/837)) ([4c1841e](https://github.com/vuejs/vuex/commit/4c1841e79e63ca0ca95d0cc1b218fde258f23c20))
|
||||
* root actions in namespaced modules ([#941](https://github.com/vuejs/vuex/issues/941)) ([73189eb](https://github.com/vuejs/vuex/commit/73189eb35509de7d49bd2b577900ad560d37dcb0))
|
||||
* subscribeAction ([#960](https://github.com/vuejs/vuex/issues/960)) ([a8326b1](https://github.com/vuejs/vuex/commit/a8326b1bd77158e7e5903eed4cc98b52599e3dbd))
|
||||
|
||||
|
||||
|
||||
## [2.4.1](https://github.com/vuejs/vuex/compare/v2.4.0...v2.4.1) (2017-09-27)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* allow installation on extended Vue copies ([c87b72f](https://github.com/vuejs/vuex/commit/c87b72f2ff7f65e708c4b59a752ef234d0f28d1f))
|
||||
* link to details of mutations in components ([#930](https://github.com/vuejs/vuex/issues/930)) ([e82782b](https://github.com/vuejs/vuex/commit/e82782ba81c398dd5b78a195257a9d1c3a6d85ef))
|
||||
* move auto installation code into the store constructor ([#914](https://github.com/vuejs/vuex/issues/914)) ([852ac43](https://github.com/vuejs/vuex/commit/852ac43ea4813ecaeb1e5106c4a29c74e57c2fd7))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* allow to passing functions in mapActions/mapMutations (fix [#750](https://github.com/vuejs/vuex/issues/750)) ([#924](https://github.com/vuejs/vuex/issues/924)) ([be15f32](https://github.com/vuejs/vuex/commit/be15f32c0077d8fe9bafa38c1b319b655cfd5f86))
|
||||
|
||||
|
||||
|
||||
# [2.4.0](https://github.com/vuejs/vuex/compare/v2.3.0...v2.4.0) (2017-08-29)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **typings:** watch() returns an unwatch function ([#922](https://github.com/vuejs/vuex/issues/922)) ([a4bd081](https://github.com/vuejs/vuex/commit/a4bd0816838cc4a843d833363b9aa412c1256e5e))
|
||||
* add missing typings and docs of createNamespacedHelpers ([#910](https://github.com/vuejs/vuex/issues/910)) ([7ad573b](https://github.com/vuejs/vuex/commit/7ad573bba59d23dbd66e3a25e6614296aeb98d42))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **store:** bind mutation and action handlers to store ([#872](https://github.com/vuejs/vuex/issues/872)) ([67da622](https://github.com/vuejs/vuex/commit/67da6225552e46266ed059c7f0d0128294cd08ed))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* do not connect devtools if Vue.config.devtools == false ([#881](https://github.com/vuejs/vuex/issues/881)) ([dd7f817](https://github.com/vuejs/vuex/commit/dd7f8178d93e6121a447c410b9c652f40cd80937))
|
||||
|
||||
|
||||
|
||||
# [2.3.0](https://github.com/vuejs/vuex/compare/v2.2.1...v2.3.0) (2017-04-13)
|
||||
|
||||
|
||||
* Add '-loader' suffix to webpack config (#722) ([84b4634](https://github.com/vuejs/vuex/commit/84b463438ea4133f7f326dc18212e3d4b7b5a177)), closes [#722](https://github.com/vuejs/vuex/issues/722)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* It's no longer allowed to omit the '-loader' suffix when using loaders. You need to specify 'babel-loader' instead of 'babel'.
|
||||
My version of webpack: 2.2.0-rc.3
|
||||
Adding the '-loader' suffix fixed the problem.
|
||||
Not sure though how safe it is to use 'babel-loader' instead of 'babel' with previous webpack versions...
|
||||
|
||||
|
||||
|
||||
## [2.2.1](https://github.com/vuejs/vuex/compare/v2.2.0...v2.2.1) (2017-02-26)
|
||||
|
||||
|
||||
|
||||
# [2.2.0](https://github.com/vuejs/vuex/compare/v2.1.2...v2.2.0) (2017-02-26)
|
||||
|
||||
|
||||
|
||||
## [2.1.2](https://github.com/vuejs/vuex/compare/v2.1.1...v2.1.2) (2017-02-06)
|
||||
|
||||
|
||||
### Reverts
|
||||
|
||||
* Revert "Update modules.md (#534)" ([5e145b3](https://github.com/vuejs/vuex/commit/5e145b3a2d45977b52cfff41b3b663f629d67e74)), closes [#534](https://github.com/vuejs/vuex/issues/534)
|
||||
|
||||
|
||||
|
||||
## [2.1.1](https://github.com/vuejs/vuex/compare/v2.1.0...v2.1.1) (2016-12-17)
|
||||
|
||||
|
||||
|
||||
# [2.1.0](https://github.com/vuejs/vuex/compare/v2.0.0...v2.1.0) (2016-12-16)
|
||||
|
||||
|
||||
|
||||
# [2.0.0](https://github.com/vuejs/vuex/compare/v2.0.0-rc.6...v2.0.0) (2016-09-30)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.6](https://github.com/vuejs/vuex/compare/v2.0.0-rc.5...v2.0.0-rc.6) (2016-09-24)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.5](https://github.com/vuejs/vuex/compare/v2.0.0-rc.4...v2.0.0-rc.5) (2016-08-15)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.4](https://github.com/vuejs/vuex/compare/v2.0.0-rc.3...v2.0.0-rc.4) (2016-08-05)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.3](https://github.com/vuejs/vuex/compare/v2.0.0-rc.1...v2.0.0-rc.3) (2016-07-11)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.1](https://github.com/vuejs/vuex/compare/v1.0.0-rc...v2.0.0-rc.1) (2016-07-05)
|
||||
|
||||
|
||||
|
||||
# [1.0.0-rc](https://github.com/vuejs/vuex/compare/v0.8.2...v1.0.0-rc) (2016-07-01)
|
||||
|
||||
|
||||
|
||||
## [0.8.2](https://github.com/vuejs/vuex/compare/v0.8.1...v0.8.2) (2016-06-28)
|
||||
|
||||
|
||||
|
||||
## [0.8.1](https://github.com/vuejs/vuex/compare/v0.8.0...v0.8.1) (2016-06-28)
|
||||
|
||||
|
||||
|
||||
# [0.8.0](https://github.com/vuejs/vuex/compare/v0.7.1...v0.8.0) (2016-06-23)
|
||||
|
||||
|
||||
|
||||
## [0.7.1](https://github.com/vuejs/vuex/compare/v0.7.0...v0.7.1) (2016-06-22)
|
||||
|
||||
|
||||
|
||||
# [0.7.0](https://github.com/vuejs/vuex/compare/v0.6.3...v0.7.0) (2016-06-21)
|
||||
|
||||
|
||||
|
||||
## [0.6.3](https://github.com/vuejs/vuex/compare/v0.6.2...v0.6.3) (2016-04-23)
|
||||
|
||||
|
||||
|
||||
## [0.6.2](https://github.com/vuejs/vuex/compare/v0.6.1...v0.6.2) (2016-03-08)
|
||||
|
||||
|
||||
|
||||
## [0.6.1](https://github.com/vuejs/vuex/compare/v0.6.0...v0.6.1) (2016-03-07)
|
||||
|
||||
|
||||
|
||||
# [0.6.0](https://github.com/vuejs/vuex/compare/v0.5.1...v0.6.0) (2016-03-07)
|
||||
|
||||
|
||||
|
||||
## [0.5.1](https://github.com/vuejs/vuex/compare/v0.5.0...v0.5.1) (2016-03-04)
|
||||
|
||||
|
||||
|
||||
# [0.5.0](https://github.com/vuejs/vuex/compare/v0.4.2...v0.5.0) (2016-03-04)
|
||||
|
||||
|
||||
|
||||
## [0.4.2](https://github.com/vuejs/vuex/compare/v0.4.1...v0.4.2) (2016-03-02)
|
||||
|
||||
|
||||
|
||||
## [0.4.1](https://github.com/vuejs/vuex/compare/v0.4.0...v0.4.1) (2016-03-01)
|
||||
|
||||
|
||||
|
||||
# [0.4.0](https://github.com/vuejs/vuex/compare/v0.3.0...v0.4.0) (2016-03-01)
|
||||
|
||||
|
||||
|
||||
# [0.3.0](https://github.com/vuejs/vuex/compare/4a22523b8cf4a1954ec95a0083ddef6c085f4905...v0.3.0) (2016-02-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **api:** fix typo ([4a22523](https://github.com/vuejs/vuex/commit/4a22523b8cf4a1954ec95a0083ddef6c085f4905))
|
||||
* **forms:** fix typo ([50094a6](https://github.com/vuejs/vuex/commit/50094a604f32d00ceb784a3fbf07c82c502faca2))
|
||||
|
||||
|
||||
|
||||
21
node_modules/vuex/LICENSE
generated
vendored
Normal file
21
node_modules/vuex/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-present Evan You
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
59
node_modules/vuex/README.md
generated
vendored
Normal file
59
node_modules/vuex/README.md
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
# Vuex
|
||||
|
||||
[](https://npmjs.com/package/vuex)
|
||||
[](https://circleci.com/gh/vuejs/vuex)
|
||||
|
||||
---
|
||||
|
||||
:fire: **HEADS UP!** You're currently looking at Vuex 3 branch. If you're looking for Vuex 4, [please check out `4.0` branch](https://github.com/vuejs/vuex/tree/4.0).
|
||||
|
||||
---
|
||||
|
||||
Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official [devtools extension](https://github.com/vuejs/vue-devtools) to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
|
||||
|
||||
Learn more about Vuex at "[What is Vuex?](https://vuex.vuejs.org/)", or get started by looking into [full documentation](http://vuex.vuejs.org/).
|
||||
|
||||
## Documentation
|
||||
|
||||
To check out docs, visit [vuex.vuejs.org](https://vuex.vuejs.org/).
|
||||
|
||||
## Examples
|
||||
|
||||
- [Counter](https://github.com/vuejs/vuex/tree/dev/examples/counter)
|
||||
- [Counter with Hot Reload](https://github.com/vuejs/vuex/tree/dev/examples/counter-hot)
|
||||
- [TodoMVC](https://github.com/vuejs/vuex/tree/dev/examples/todomvc)
|
||||
- [Flux Chat](https://github.com/vuejs/vuex/tree/dev/examples/chat)
|
||||
- [Shopping Cart](https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart)
|
||||
|
||||
Running the examples:
|
||||
|
||||
```bash
|
||||
$ npm install
|
||||
$ npm run dev # serve examples at localhost:8080
|
||||
```
|
||||
|
||||
## Questions
|
||||
|
||||
For questions and support please use the [Discord chat server](https://chat.vuejs.org) or [the official forum](http://forum.vuejs.org). The issue list of this repo is **exclusively** for bug reports and feature requests.
|
||||
|
||||
## Issues
|
||||
|
||||
Please make sure to read the [Issue Reporting Checklist](https://github.com/vuejs/vuex/blob/dev/.github/contributing.md#issue-reporting-guidelines) before opening an issue. Issues not conforming to the guidelines may be closed immediately.
|
||||
|
||||
## Changelog
|
||||
|
||||
Detailed changes for each release are documented in the [release notes](https://github.com/vuejs/vuex/releases).
|
||||
|
||||
## Stay In Touch
|
||||
|
||||
For latest releases and announcements, follow on Twitter: [@vuejs](https://twitter.com/vuejs).
|
||||
|
||||
## Contribution
|
||||
|
||||
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vuex/blob/dev/.github/contributing.md) before making a pull request.
|
||||
|
||||
## License
|
||||
|
||||
[MIT](http://opensource.org/licenses/MIT)
|
||||
|
||||
Copyright (c) 2015-present Evan You
|
||||
155
node_modules/vuex/dist/logger.js
generated
vendored
Normal file
155
node_modules/vuex/dist/logger.js
generated
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
/*!
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Vuex = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
/**
|
||||
* Get the first item that pass the test
|
||||
* by second argument function
|
||||
*
|
||||
* @param {Array} list
|
||||
* @param {Function} f
|
||||
* @return {*}
|
||||
*/
|
||||
function find (list, f) {
|
||||
return list.filter(f)[0]
|
||||
}
|
||||
|
||||
/**
|
||||
* Deep copy the given object considering circular structure.
|
||||
* This function caches all nested objects and its copies.
|
||||
* If it detects circular structure, use cached copy to avoid infinite loop.
|
||||
*
|
||||
* @param {*} obj
|
||||
* @param {Array<Object>} cache
|
||||
* @return {*}
|
||||
*/
|
||||
function deepCopy (obj, cache) {
|
||||
if ( cache === void 0 ) cache = [];
|
||||
|
||||
// just return if obj is immutable value
|
||||
if (obj === null || typeof obj !== 'object') {
|
||||
return obj
|
||||
}
|
||||
|
||||
// if obj is hit, it is in circular structure
|
||||
var hit = find(cache, function (c) { return c.original === obj; });
|
||||
if (hit) {
|
||||
return hit.copy
|
||||
}
|
||||
|
||||
var copy = Array.isArray(obj) ? [] : {};
|
||||
// put the copy into cache at first
|
||||
// because we want to refer it in recursive deepCopy
|
||||
cache.push({
|
||||
original: obj,
|
||||
copy: copy
|
||||
});
|
||||
|
||||
Object.keys(obj).forEach(function (key) {
|
||||
copy[key] = deepCopy(obj[key], cache);
|
||||
});
|
||||
|
||||
return copy
|
||||
}
|
||||
|
||||
// Credits: borrowed code from fcomb/redux-logger
|
||||
|
||||
function createLogger (ref) {
|
||||
if ( ref === void 0 ) ref = {};
|
||||
var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
|
||||
var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
|
||||
var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
|
||||
var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
|
||||
var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
|
||||
var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
|
||||
var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
|
||||
var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
|
||||
var logger = ref.logger; if ( logger === void 0 ) logger = console;
|
||||
|
||||
return function (store) {
|
||||
var prevState = deepCopy(store.state);
|
||||
|
||||
if (typeof logger === 'undefined') {
|
||||
return
|
||||
}
|
||||
|
||||
if (logMutations) {
|
||||
store.subscribe(function (mutation, state) {
|
||||
var nextState = deepCopy(state);
|
||||
|
||||
if (filter(mutation, prevState, nextState)) {
|
||||
var formattedTime = getFormattedTime();
|
||||
var formattedMutation = mutationTransformer(mutation);
|
||||
var message = "mutation " + (mutation.type) + formattedTime;
|
||||
|
||||
startMessage(logger, message, collapsed);
|
||||
logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
|
||||
logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
|
||||
logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
|
||||
endMessage(logger);
|
||||
}
|
||||
|
||||
prevState = nextState;
|
||||
});
|
||||
}
|
||||
|
||||
if (logActions) {
|
||||
store.subscribeAction(function (action, state) {
|
||||
if (actionFilter(action, state)) {
|
||||
var formattedTime = getFormattedTime();
|
||||
var formattedAction = actionTransformer(action);
|
||||
var message = "action " + (action.type) + formattedTime;
|
||||
|
||||
startMessage(logger, message, collapsed);
|
||||
logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
|
||||
endMessage(logger);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function startMessage (logger, message, collapsed) {
|
||||
var startMessage = collapsed
|
||||
? logger.groupCollapsed
|
||||
: logger.group;
|
||||
|
||||
// render
|
||||
try {
|
||||
startMessage.call(logger, message);
|
||||
} catch (e) {
|
||||
logger.log(message);
|
||||
}
|
||||
}
|
||||
|
||||
function endMessage (logger) {
|
||||
try {
|
||||
logger.groupEnd();
|
||||
} catch (e) {
|
||||
logger.log('—— log end ——');
|
||||
}
|
||||
}
|
||||
|
||||
function getFormattedTime () {
|
||||
var time = new Date();
|
||||
return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
|
||||
}
|
||||
|
||||
function repeat (str, times) {
|
||||
return (new Array(times + 1)).join(str)
|
||||
}
|
||||
|
||||
function pad (num, maxLength) {
|
||||
return repeat('0', maxLength - num.toString().length) + num
|
||||
}
|
||||
|
||||
return createLogger;
|
||||
|
||||
})));
|
||||
1244
node_modules/vuex/dist/vuex.common.js
generated
vendored
Normal file
1244
node_modules/vuex/dist/vuex.common.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1200
node_modules/vuex/dist/vuex.esm.browser.js
generated
vendored
Normal file
1200
node_modules/vuex/dist/vuex.esm.browser.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
node_modules/vuex/dist/vuex.esm.browser.min.js
generated
vendored
Normal file
6
node_modules/vuex/dist/vuex.esm.browser.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1243
node_modules/vuex/dist/vuex.esm.js
generated
vendored
Normal file
1243
node_modules/vuex/dist/vuex.esm.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1250
node_modules/vuex/dist/vuex.js
generated
vendored
Normal file
1250
node_modules/vuex/dist/vuex.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
node_modules/vuex/dist/vuex.min.js
generated
vendored
Normal file
6
node_modules/vuex/dist/vuex.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
26
node_modules/vuex/dist/vuex.mjs
generated
vendored
Normal file
26
node_modules/vuex/dist/vuex.mjs
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import Vuex from '../dist/vuex.common.js'
|
||||
|
||||
const {
|
||||
Store,
|
||||
install,
|
||||
version,
|
||||
mapState,
|
||||
mapMutations,
|
||||
mapGetters,
|
||||
mapActions,
|
||||
createNamespacedHelpers,
|
||||
createLogger
|
||||
} = Vuex
|
||||
|
||||
export {
|
||||
Vuex as default,
|
||||
Store,
|
||||
install,
|
||||
version,
|
||||
mapState,
|
||||
mapMutations,
|
||||
mapGetters,
|
||||
mapActions,
|
||||
createNamespacedHelpers,
|
||||
createLogger
|
||||
}
|
||||
124
node_modules/vuex/package.json
generated
vendored
Normal file
124
node_modules/vuex/package.json
generated
vendored
Normal file
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"_from": "vuex",
|
||||
"_id": "vuex@3.6.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==",
|
||||
"_location": "/vuex",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "tag",
|
||||
"registry": true,
|
||||
"raw": "vuex",
|
||||
"name": "vuex",
|
||||
"escapedName": "vuex",
|
||||
"rawSpec": "",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "latest"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER",
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz",
|
||||
"_shasum": "236bc086a870c3ae79946f107f16de59d5895e71",
|
||||
"_spec": "vuex",
|
||||
"_where": "/Users/WebTmm/Desktop/barter-app",
|
||||
"author": {
|
||||
"name": "Evan You"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vuex/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "state management for Vue.js",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@rollup/plugin-buble": "^0.21.3",
|
||||
"@rollup/plugin-commonjs": "^11.1.0",
|
||||
"@rollup/plugin-node-resolve": "^7.1.3",
|
||||
"@rollup/plugin-replace": "^2.3.2",
|
||||
"@types/node": "^13.13.5",
|
||||
"@vuepress/theme-vue": "^1.8.0",
|
||||
"babel-jest": "^26.6.3",
|
||||
"babel-loader": "^8.2.2",
|
||||
"brotli": "^1.3.2",
|
||||
"chalk": "^4.0.0",
|
||||
"conventional-changelog-cli": "^2.1.1",
|
||||
"cross-env": "^5.2.0",
|
||||
"css-loader": "^2.1.0",
|
||||
"enquirer": "^2.3.5",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-plugin-vue-libs": "^4.0.0",
|
||||
"execa": "^5.0.0",
|
||||
"express": "^4.17.1",
|
||||
"jest": "^26.6.3",
|
||||
"puppeteer": "^4.0.0",
|
||||
"regenerator-runtime": "^0.13.5",
|
||||
"rollup": "^2.38.0",
|
||||
"rollup-plugin-terser": "^5.3.0",
|
||||
"semver": "^7.3.2",
|
||||
"start-server-and-test": "^1.11.7",
|
||||
"todomvc-app-css": "^2.3.0",
|
||||
"typescript": "^3.8.3",
|
||||
"vue": "2.5.22",
|
||||
"vue-loader": "15.2.1",
|
||||
"vue-server-renderer": "2.5.22",
|
||||
"vue-template-compiler": "2.5.22",
|
||||
"vuepress": "^1.8.0",
|
||||
"webpack": "^4.43.0",
|
||||
"webpack-dev-middleware": "^3.7.2",
|
||||
"webpack-hot-middleware": "^2.25.0"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"module": "./dist/vuex.esm.js",
|
||||
"require": "./dist/vuex.common.js",
|
||||
"import": "./dist/vuex.mjs"
|
||||
},
|
||||
"./": "./"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"types/index.d.ts",
|
||||
"types/helpers.d.ts",
|
||||
"types/logger.d.ts",
|
||||
"types/vue.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/vuejs/vuex#readme",
|
||||
"jsdelivr": "dist/vuex.js",
|
||||
"license": "MIT",
|
||||
"main": "dist/vuex.common.js",
|
||||
"module": "dist/vuex.esm.js",
|
||||
"name": "vuex",
|
||||
"peerDependencies": {
|
||||
"vue": "^2.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/vuex.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build:main && npm run build:logger",
|
||||
"build:logger": "node scripts/build-logger.js",
|
||||
"build:main": "node scripts/build-main.js",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
||||
"coverage": "jest --testPathIgnorePatterns test/e2e --coverage",
|
||||
"dev": "node examples/server.js",
|
||||
"docs": "vuepress dev docs",
|
||||
"docs:build": "vuepress build docs",
|
||||
"lint": "eslint src test",
|
||||
"release": "node scripts/release.js",
|
||||
"test": "npm run lint && npm run test:types && npm run test:unit && npm run test:ssr && npm run test:e2e && npm run test:esm",
|
||||
"test:e2e": "start-server-and-test dev http://localhost:8080 \"jest --testPathIgnorePatterns test/unit\"",
|
||||
"test:esm": "node test/esm/esm-test.js",
|
||||
"test:ssr": "cross-env VUE_ENV=server jest --testPathIgnorePatterns test/e2e",
|
||||
"test:types": "tsc -p types/test",
|
||||
"test:unit": "jest --testPathIgnorePatterns test/e2e"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"typings": "types/index.d.ts",
|
||||
"unpkg": "dist/vuex.js",
|
||||
"version": "3.6.2"
|
||||
}
|
||||
86
node_modules/vuex/types/helpers.d.ts
generated
vendored
Normal file
86
node_modules/vuex/types/helpers.d.ts
generated
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
import Vue from 'vue';
|
||||
import { Dispatch, Commit } from './index';
|
||||
|
||||
type Computed = () => any;
|
||||
type InlineComputed<T extends Function> = T extends (...args: any[]) => infer R ? () => R : never
|
||||
type MutationMethod = (...args: any[]) => void;
|
||||
type ActionMethod = (...args: any[]) => Promise<any>;
|
||||
type InlineMethod<T extends (fn: any, ...args: any[]) => any> = T extends (fn: any, ...args: infer Args) => infer R ? (...args: Args) => R : never
|
||||
type CustomVue = Vue & Record<string, any>;
|
||||
|
||||
interface Mapper<R> {
|
||||
<Key extends string>(map: Key[]): { [K in Key]: R };
|
||||
<Map extends Record<string, string>>(map: Map): { [K in keyof Map]: R };
|
||||
}
|
||||
|
||||
interface MapperWithNamespace<R> {
|
||||
<Key extends string>(namespace: string, map: Key[]): { [K in Key]: R };
|
||||
<Map extends Record<string, string>>(namespace: string, map: Map): { [K in keyof Map]: R };
|
||||
}
|
||||
|
||||
interface MapperForState {
|
||||
<S, Map extends Record<string, (this: CustomVue, state: S, getters: any) => any> = {}>(
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineComputed<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForStateWithNamespace {
|
||||
<S, Map extends Record<string, (this: CustomVue, state: S, getters: any) => any> = {}>(
|
||||
namespace: string,
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineComputed<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForAction {
|
||||
<Map extends Record<string, (this: CustomVue, dispatch: Dispatch, ...args: any[]) => any>>(
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineMethod<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForActionWithNamespace {
|
||||
<Map extends Record<string, (this: CustomVue, dispatch: Dispatch, ...args: any[]) => any>>(
|
||||
namespace: string,
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineMethod<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForMutation {
|
||||
<Map extends Record<string, (this: CustomVue, commit: Commit, ...args: any[]) => any>>(
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineMethod<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForMutationWithNamespace {
|
||||
<Map extends Record<string, (this: CustomVue, commit: Commit, ...args: any[]) => any>>(
|
||||
namespace: string,
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineMethod<Map[K]> };
|
||||
}
|
||||
|
||||
|
||||
interface NamespacedMappers {
|
||||
mapState: Mapper<Computed> & MapperForState;
|
||||
mapMutations: Mapper<MutationMethod> & MapperForMutation;
|
||||
mapGetters: Mapper<Computed>;
|
||||
mapActions: Mapper<ActionMethod> & MapperForAction;
|
||||
}
|
||||
|
||||
export declare const mapState: Mapper<Computed>
|
||||
& MapperWithNamespace<Computed>
|
||||
& MapperForState
|
||||
& MapperForStateWithNamespace;
|
||||
|
||||
export declare const mapMutations: Mapper<MutationMethod>
|
||||
& MapperWithNamespace<MutationMethod>
|
||||
& MapperForMutation
|
||||
& MapperForMutationWithNamespace;
|
||||
|
||||
export declare const mapGetters: Mapper<Computed>
|
||||
& MapperWithNamespace<Computed>;
|
||||
|
||||
export declare const mapActions: Mapper<ActionMethod>
|
||||
& MapperWithNamespace<ActionMethod>
|
||||
& MapperForAction
|
||||
& MapperForActionWithNamespace;
|
||||
|
||||
export declare function createNamespacedHelpers(namespace: string): NamespacedMappers;
|
||||
164
node_modules/vuex/types/index.d.ts
generated
vendored
Normal file
164
node_modules/vuex/types/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
import _Vue, { WatchOptions } from "vue";
|
||||
|
||||
// augment typings of Vue.js
|
||||
import "./vue";
|
||||
|
||||
import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from "./helpers";
|
||||
import createLogger from "./logger";
|
||||
|
||||
export * from "./helpers";
|
||||
export * from "./logger";
|
||||
|
||||
export declare class Store<S> {
|
||||
constructor(options: StoreOptions<S>);
|
||||
|
||||
readonly state: S;
|
||||
readonly getters: any;
|
||||
|
||||
replaceState(state: S): void;
|
||||
|
||||
dispatch: Dispatch;
|
||||
commit: Commit;
|
||||
|
||||
subscribe<P extends MutationPayload>(fn: (mutation: P, state: S) => any, options?: SubscribeOptions): () => void;
|
||||
subscribeAction<P extends ActionPayload>(fn: SubscribeActionOptions<P, S>, options?: SubscribeOptions): () => void;
|
||||
watch<T>(getter: (state: S, getters: any) => T, cb: (value: T, oldValue: T) => void, options?: WatchOptions): () => void;
|
||||
|
||||
registerModule<T>(path: string, module: Module<T, S>, options?: ModuleOptions): void;
|
||||
registerModule<T>(path: string[], module: Module<T, S>, options?: ModuleOptions): void;
|
||||
|
||||
unregisterModule(path: string): void;
|
||||
unregisterModule(path: string[]): void;
|
||||
|
||||
hasModule(path: string): boolean;
|
||||
hasModule(path: string[]): boolean;
|
||||
|
||||
hotUpdate(options: {
|
||||
actions?: ActionTree<S, S>;
|
||||
mutations?: MutationTree<S>;
|
||||
getters?: GetterTree<S, S>;
|
||||
modules?: ModuleTree<S>;
|
||||
}): void;
|
||||
}
|
||||
|
||||
export declare function install(Vue: typeof _Vue): void;
|
||||
|
||||
export interface Dispatch {
|
||||
(type: string, payload?: any, options?: DispatchOptions): Promise<any>;
|
||||
<P extends Payload>(payloadWithType: P, options?: DispatchOptions): Promise<any>;
|
||||
}
|
||||
|
||||
export interface Commit {
|
||||
(type: string, payload?: any, options?: CommitOptions): void;
|
||||
<P extends Payload>(payloadWithType: P, options?: CommitOptions): void;
|
||||
}
|
||||
|
||||
export interface ActionContext<S, R> {
|
||||
dispatch: Dispatch;
|
||||
commit: Commit;
|
||||
state: S;
|
||||
getters: any;
|
||||
rootState: R;
|
||||
rootGetters: any;
|
||||
}
|
||||
|
||||
export interface Payload {
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface MutationPayload extends Payload {
|
||||
payload: any;
|
||||
}
|
||||
|
||||
export interface ActionPayload extends Payload {
|
||||
payload: any;
|
||||
}
|
||||
|
||||
export interface SubscribeOptions {
|
||||
prepend?: boolean
|
||||
}
|
||||
|
||||
export type ActionSubscriber<P, S> = (action: P, state: S) => any;
|
||||
export type ActionErrorSubscriber<P, S> = (action: P, state: S, error: Error) => any;
|
||||
|
||||
export interface ActionSubscribersObject<P, S> {
|
||||
before?: ActionSubscriber<P, S>;
|
||||
after?: ActionSubscriber<P, S>;
|
||||
error?: ActionErrorSubscriber<P, S>;
|
||||
}
|
||||
|
||||
export type SubscribeActionOptions<P, S> = ActionSubscriber<P, S> | ActionSubscribersObject<P, S>;
|
||||
|
||||
export interface DispatchOptions {
|
||||
root?: boolean;
|
||||
}
|
||||
|
||||
export interface CommitOptions {
|
||||
silent?: boolean;
|
||||
root?: boolean;
|
||||
}
|
||||
|
||||
export interface StoreOptions<S> {
|
||||
state?: S | (() => S);
|
||||
getters?: GetterTree<S, S>;
|
||||
actions?: ActionTree<S, S>;
|
||||
mutations?: MutationTree<S>;
|
||||
modules?: ModuleTree<S>;
|
||||
plugins?: Plugin<S>[];
|
||||
strict?: boolean;
|
||||
devtools?: boolean;
|
||||
}
|
||||
|
||||
export type ActionHandler<S, R> = (this: Store<R>, injectee: ActionContext<S, R>, payload?: any) => any;
|
||||
export interface ActionObject<S, R> {
|
||||
root?: boolean;
|
||||
handler: ActionHandler<S, R>;
|
||||
}
|
||||
|
||||
export type Getter<S, R> = (state: S, getters: any, rootState: R, rootGetters: any) => any;
|
||||
export type Action<S, R> = ActionHandler<S, R> | ActionObject<S, R>;
|
||||
export type Mutation<S> = (state: S, payload?: any) => any;
|
||||
export type Plugin<S> = (store: Store<S>) => any;
|
||||
|
||||
export interface Module<S, R> {
|
||||
namespaced?: boolean;
|
||||
state?: S | (() => S);
|
||||
getters?: GetterTree<S, R>;
|
||||
actions?: ActionTree<S, R>;
|
||||
mutations?: MutationTree<S>;
|
||||
modules?: ModuleTree<R>;
|
||||
}
|
||||
|
||||
export interface ModuleOptions {
|
||||
preserveState?: boolean;
|
||||
}
|
||||
|
||||
export interface GetterTree<S, R> {
|
||||
[key: string]: Getter<S, R>;
|
||||
}
|
||||
|
||||
export interface ActionTree<S, R> {
|
||||
[key: string]: Action<S, R>;
|
||||
}
|
||||
|
||||
export interface MutationTree<S> {
|
||||
[key: string]: Mutation<S>;
|
||||
}
|
||||
|
||||
export interface ModuleTree<R> {
|
||||
[key: string]: Module<any, R>;
|
||||
}
|
||||
|
||||
export { createLogger }
|
||||
|
||||
declare const _default: {
|
||||
Store: typeof Store;
|
||||
install: typeof install;
|
||||
mapState: typeof mapState,
|
||||
mapMutations: typeof mapMutations,
|
||||
mapGetters: typeof mapGetters,
|
||||
mapActions: typeof mapActions,
|
||||
createNamespacedHelpers: typeof createNamespacedHelpers,
|
||||
createLogger: typeof createLogger
|
||||
};
|
||||
export default _default;
|
||||
20
node_modules/vuex/types/logger.d.ts
generated
vendored
Normal file
20
node_modules/vuex/types/logger.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Payload, Plugin } from "./index";
|
||||
|
||||
interface Logger extends Partial<Pick<Console, 'groupCollapsed' | 'group' | 'groupEnd'>> {
|
||||
log(message: string, color: string, payload: any): void;
|
||||
log(message: string): void;
|
||||
}
|
||||
|
||||
export interface LoggerOption<S> {
|
||||
collapsed?: boolean;
|
||||
filter?: <P extends Payload>(mutation: P, stateBefore: S, stateAfter: S) => boolean;
|
||||
transformer?: (state: S) => any;
|
||||
mutationTransformer?: <P extends Payload>(mutation: P) => any;
|
||||
actionFilter?: <P extends Payload>(action: P, state: S) => boolean;
|
||||
actionTransformer?: <P extends Payload>(action: P) => any;
|
||||
logMutations?: boolean;
|
||||
logActions?: boolean;
|
||||
logger?: Logger;
|
||||
}
|
||||
|
||||
export default function createLogger<S>(option?: LoggerOption<S>): Plugin<S>;
|
||||
18
node_modules/vuex/types/vue.d.ts
generated
vendored
Normal file
18
node_modules/vuex/types/vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Extends interfaces in Vue.js
|
||||
*/
|
||||
|
||||
import Vue, { ComponentOptions } from "vue";
|
||||
import { Store } from "./index";
|
||||
|
||||
declare module "vue/types/options" {
|
||||
interface ComponentOptions<V extends Vue> {
|
||||
store?: Store<any>;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "vue/types/vue" {
|
||||
interface Vue {
|
||||
$store: Store<any>;
|
||||
}
|
||||
}
|
||||
23
package-lock.json
generated
23
package-lock.json
generated
@@ -1,24 +1,21 @@
|
||||
{
|
||||
"name": "barter-app",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"lockfileVersion": 1,
|
||||
"dependencies": {
|
||||
"uni-simple-router": "^2.0.6"
|
||||
}
|
||||
"uni-read-pages": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/uni-read-pages/-/uni-read-pages-1.0.5.tgz",
|
||||
"integrity": "sha512-GkrrZ0LX0vn9R5k6RKEi0Ez3Q3e2vUpjXQ8Z6/K/d28KudI9ajqgt8WEjQFlG5EPm1K6uTArN8LlqmZTEixDUA=="
|
||||
},
|
||||
"node_modules/uni-simple-router": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/uni-simple-router/-/uni-simple-router-2.0.6.tgz",
|
||||
"integrity": "sha512-n5gepoT3QcBrvVLeTCY/DjUjC4m1hNzwFlOa1VlCsww/4/34MGfvegpN9OWR8jOxxtUPKGHLAG0yODL/ITCwbw=="
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"uni-simple-router": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/uni-simple-router/-/uni-simple-router-2.0.6.tgz",
|
||||
"integrity": "sha512-n5gepoT3QcBrvVLeTCY/DjUjC4m1hNzwFlOa1VlCsww/4/34MGfvegpN9OWR8jOxxtUPKGHLAG0yODL/ITCwbw=="
|
||||
},
|
||||
"vuex": {
|
||||
"version": "3.6.2",
|
||||
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz",
|
||||
"integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw=="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"uni-simple-router": "^2.0.6"
|
||||
"uni-read-pages": "^1.0.5",
|
||||
"uni-simple-router": "^2.0.6",
|
||||
"vuex": "^3.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
98
pages.json
98
pages.json
@@ -6,6 +6,104 @@
|
||||
"navigationBarTitleText": "首页"
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path" : "pages/user/index",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path" : "pages/login/login",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "登录",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path" : "pages/company/auth",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "企业认证",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path" : "pages/vip/index",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "会员",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/vip/pay",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "会员支付",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path" : "pages/order/index",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "订单列表",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/order/details",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "订单详情",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path" : "pages/order/submit",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "提交订单",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path" : "pages/property/cash",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "现金账户",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path" : "pages/property/eb",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "EB账户",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/property/integral",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "现金账户",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/property/token",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "数权账户",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
|
||||
22
pages/company/auth.vue
Normal file
22
pages/company/auth.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
<template>
|
||||
<view class="content">
|
||||
易货
|
||||
易货111
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
32
pages/login/login.vue
Normal file
32
pages/login/login.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<view>
|
||||
<button type="default" @click="login">登录</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
login(){
|
||||
uni.login({
|
||||
provider: 'univerify',
|
||||
univerifyStyle: {
|
||||
fullScreen: true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/order/details.vue
Normal file
22
pages/order/details.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/order/index.vue
Normal file
22
pages/order/index.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/order/submit.vue
Normal file
22
pages/order/submit.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/property/cash.vue
Normal file
22
pages/property/cash.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/property/eb.vue
Normal file
22
pages/property/eb.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
eb账户
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/property/integral.vue
Normal file
22
pages/property/integral.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
贡献值账户
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/property/token.vue
Normal file
22
pages/property/token.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
数权账户
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/user/index.vue
Normal file
22
pages/user/index.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
个人中心
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/vip/index.vue
Normal file
22
pages/vip/index.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
会员主页
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
22
pages/vip/pay.vue
Normal file
22
pages/vip/pay.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
会员支付
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
import { RouterMount, createRouter } from 'uni-simple-router';
|
||||
import store from '../store/index'
|
||||
// import store from '../store/index'
|
||||
|
||||
const router = createRouter({
|
||||
platform: process.env.VUE_APP_PLATFORM,
|
||||
@@ -15,21 +15,23 @@ const router = createRouter({
|
||||
|
||||
// 全局路由前置守卫
|
||||
router.beforeEach((to, from, next) => {
|
||||
const token = store.getters.getToken || uni.getStorageSync('token')
|
||||
if(to.meta.auth && token === ''){
|
||||
next({
|
||||
name: 'Login',
|
||||
NAVTYPE: 'replaceAll'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(to.name === 'Welcome'){
|
||||
next({
|
||||
name: 'ChainIndex',
|
||||
NAVTYPE: 'replaceAll'
|
||||
})
|
||||
return
|
||||
}
|
||||
console.log(to)
|
||||
console.log(from)
|
||||
// const token = store.getters.getToken || uni.getStorageSync('token')
|
||||
// if(to.meta.auth && token === ''){
|
||||
// next({
|
||||
// name: 'Login',
|
||||
// NAVTYPE: 'replaceAll'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
// if(to.name === 'Welcome'){
|
||||
// next({
|
||||
// name: 'ChainIndex',
|
||||
// NAVTYPE: 'replaceAll'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
next();
|
||||
})
|
||||
|
||||
|
||||
24
store/index.js
Normal file
24
store/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
token: uni.getStorageSync('token') || ''
|
||||
},
|
||||
getters: {
|
||||
getToken: state => {
|
||||
return state.token
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
setToken(state, tokenString) {
|
||||
state.token = tokenString
|
||||
uni.setStorageSync('token', tokenString)
|
||||
}
|
||||
},
|
||||
modules: {
|
||||
|
||||
}
|
||||
})
|
||||
0
unpackage/dist/dev/.automator/app-plus/.automator.json
vendored
Normal file
0
unpackage/dist/dev/.automator/app-plus/.automator.json
vendored
Normal file
1
unpackage/dist/dev/app-plus/__uniappchooselocation.js
vendored
Normal file
1
unpackage/dist/dev/app-plus/__uniappchooselocation.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
unpackage/dist/dev/app-plus/__uniapperror.png
vendored
Normal file
BIN
unpackage/dist/dev/app-plus/__uniapperror.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
1
unpackage/dist/dev/app-plus/__uniappes6.js
vendored
Normal file
1
unpackage/dist/dev/app-plus/__uniappes6.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/app-plus/__uniappopenlocation.js
vendored
Normal file
1
unpackage/dist/dev/app-plus/__uniappopenlocation.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/app-plus/__uniapppicker.js
vendored
Normal file
1
unpackage/dist/dev/app-plus/__uniapppicker.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
unpackage/dist/dev/app-plus/__uniappquill.js
vendored
Normal file
8
unpackage/dist/dev/app-plus/__uniappquill.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/app-plus/__uniappquillimageresize.js
vendored
Normal file
1
unpackage/dist/dev/app-plus/__uniappquillimageresize.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/app-plus/__uniappscan.js
vendored
Normal file
1
unpackage/dist/dev/app-plus/__uniappscan.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
unpackage/dist/dev/app-plus/__uniappsuccess.png
vendored
Normal file
BIN
unpackage/dist/dev/app-plus/__uniappsuccess.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
25
unpackage/dist/dev/app-plus/__uniappview.html
vendored
Normal file
25
unpackage/dist/dev/app-plus/__uniappview.html
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
var __UniViewStartTime__ = Date.now();
|
||||
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||||
CSS.supports('top: constant(a)'))
|
||||
document.write(
|
||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||
</script>
|
||||
<title>View</title>
|
||||
<link rel="stylesheet" href="view.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="__uniappes6.js"></script>
|
||||
<script src="view.umd.min.js"></script>
|
||||
<script src="app-view.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
8
unpackage/dist/dev/app-plus/app-config-service.js
vendored
Normal file
8
unpackage/dist/dev/app-plus/app-config-service.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
var isReady=false;var onReadyCallbacks=[];
|
||||
var isServiceReady=false;var onServiceReadyCallbacks=[];
|
||||
var __uniConfig = {"pages":["pages/index/index","pages/user/index","pages/login/login","pages/company/auth","pages/vip/index","pages/vip/pay","pages/order/index","pages/order/details","pages/order/submit","pages/property/cash","pages/property/eb","pages/property/integral","pages/property/token"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"易货","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"易货","compilerVersion":"3.1.22","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
|
||||
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true},"window":{"navigationBarTitleText":"首页"}},{"path":"/pages/user/index","meta":{},"window":{"navigationBarTitleText":"我的","enablePullDownRefresh":false}},{"path":"/pages/login/login","meta":{},"window":{"navigationBarTitleText":"登录","enablePullDownRefresh":false}},{"path":"/pages/company/auth","meta":{},"window":{"navigationBarTitleText":"企业认证","enablePullDownRefresh":false}},{"path":"/pages/vip/index","meta":{},"window":{"navigationBarTitleText":"会员","enablePullDownRefresh":false}},{"path":"/pages/vip/pay","meta":{},"window":{"navigationBarTitleText":"会员支付","enablePullDownRefresh":false}},{"path":"/pages/order/index","meta":{},"window":{"navigationBarTitleText":"订单列表","enablePullDownRefresh":false}},{"path":"/pages/order/details","meta":{},"window":{"navigationBarTitleText":"订单详情","enablePullDownRefresh":false}},{"path":"/pages/order/submit","meta":{},"window":{"navigationBarTitleText":"提交订单","enablePullDownRefresh":false}},{"path":"/pages/property/cash","meta":{},"window":{"navigationBarTitleText":"现金账户","enablePullDownRefresh":false}},{"path":"/pages/property/eb","meta":{},"window":{"navigationBarTitleText":"EB账户","enablePullDownRefresh":false}},{"path":"/pages/property/integral","meta":{},"window":{"navigationBarTitleText":"现金账户","enablePullDownRefresh":false}},{"path":"/pages/property/token","meta":{},"window":{"navigationBarTitleText":"数权账户","enablePullDownRefresh":false}}];
|
||||
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});
|
||||
154
unpackage/dist/dev/app-plus/app-config.js
vendored
Normal file
154
unpackage/dist/dev/app-plus/app-config.js
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
/******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
/******/ for(;i < chunkIds.length; i++) {
|
||||
/******/ chunkId = chunkIds[i];
|
||||
/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
|
||||
/******/ resolves.push(installedChunks[chunkId][0]);
|
||||
/******/ }
|
||||
/******/ installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ for(moduleId in moreModules) {
|
||||
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
|
||||
/******/ modules[moduleId] = moreModules[moduleId];
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // add entry modules from loaded chunk to deferred list
|
||||
/******/ deferredModules.push.apply(deferredModules, executeModules || []);
|
||||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ function checkDeferredModules() {
|
||||
/******/ var result;
|
||||
/******/ for(var i = 0; i < deferredModules.length; i++) {
|
||||
/******/ var deferredModule = deferredModules[i];
|
||||
/******/ var fulfilled = true;
|
||||
/******/ for(var j = 1; j < deferredModule.length; j++) {
|
||||
/******/ var depId = deferredModule[j];
|
||||
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
|
||||
/******/ }
|
||||
/******/ if(fulfilled) {
|
||||
/******/ deferredModules.splice(i--, 1);
|
||||
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ return result;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
/******/ var installedChunks = {
|
||||
/******/ "app-config": 0
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ var deferredModules = [];
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(installedModules[moduleId]) {
|
||||
/******/ return installedModules[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = installedModules[moduleId] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = true;
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = modules;
|
||||
/******/
|
||||
/******/ // expose the module cache
|
||||
/******/ __webpack_require__.c = installedModules;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/";
|
||||
/******/
|
||||
/******/ var jsonpArray = this["webpackJsonp"] = this["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/
|
||||
/******/
|
||||
/******/ // run deferred modules from other chunks
|
||||
/******/ checkDeferredModules();
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ([]);
|
||||
1036
unpackage/dist/dev/app-plus/app-service.js
vendored
1036
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
2340
unpackage/dist/dev/app-plus/app-view.js
vendored
Normal file
2340
unpackage/dist/dev/app-plus/app-view.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
unpackage/dist/dev/app-plus/manifest.json
vendored
Normal file
1
unpackage/dist/dev/app-plus/manifest.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__CD19AAD","name":"易货","version":{"name":"1.0.0","code":"100"},"description":"易货平台App","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.1.22","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}}
|
||||
1
unpackage/dist/dev/app-plus/view.css
vendored
Normal file
1
unpackage/dist/dev/app-plus/view.css
vendored
Normal file
File diff suppressed because one or more lines are too long
6
unpackage/dist/dev/app-plus/view.umd.min.js
vendored
Normal file
6
unpackage/dist/dev/app-plus/view.umd.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
18
vue.config.js
Normal file
18
vue.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
const TransformPages = require('uni-read-pages')
|
||||
const { webpack } = new TransformPages()
|
||||
|
||||
module.exports = {
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
ROUTES: webpack.DefinePlugin.runtimeValue(() => {
|
||||
const tfPages = new TransformPages({
|
||||
includes: ['path', 'name', 'aliasPath']
|
||||
});
|
||||
return JSON.stringify(tfPages.routes)
|
||||
}, true )
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user