From 17679fa4325fd0cfd945301b0f9d017d890ef562 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com>
Date: Wed, 21 Jul 2021 14:36:42 +0800
Subject: [PATCH] =?UTF-8?q?=E6=98=93=E8=B4=A7app?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main.js | 23 +-
node_modules/.package-lock.json | 12 +
node_modules/uni-simple-router/.eslintignore | 6 +
node_modules/uni-simple-router/.eslintrc.js | 256 +++++++++
.../.github/ISSUE_TEMPLATE/bug_report.md | 39 ++
.../.github/ISSUE_TEMPLATE/feature_request.md | 21 +
.../uni-simple-router/CODE_OF_CONDUCT.md | 76 +++
node_modules/uni-simple-router/LICENSE | 21 +
node_modules/uni-simple-router/README.md | 49 ++
node_modules/uni-simple-router/RFC.md | 38 ++
.../uni-simple-router/api-extractor.json | 50 ++
node_modules/uni-simple-router/dist/link.vue | 79 +++
.../dist/uni-simple-router.d.ts | 330 +++++++++++
.../dist/uni-simple-router.js | 1 +
node_modules/uni-simple-router/github.sh | 107 ++++
node_modules/uni-simple-router/jest.config.js | 5 +
node_modules/uni-simple-router/package.json | 33 ++
.../uni-simple-router/src/H5/buildRouter.ts | 76 +++
.../uni-simple-router/src/H5/proxyHook.ts | 71 +++
.../uni-simple-router/src/app/appPatch.ts | 40 ++
.../src/applets/appletPatch.ts | 18 +
.../uni-simple-router/src/component/link.vue | 79 +++
.../uni-simple-router/src/global.d.ts | 6 +
.../uni-simple-router/src/helpers/config.ts | 102 ++++
.../src/helpers/createRouteMap.ts | 47 ++
.../src/helpers/lifeCycle.ts | 36 ++
.../uni-simple-router/src/helpers/mixins.ts | 97 ++++
.../uni-simple-router/src/helpers/utils.ts | 523 ++++++++++++++++++
.../uni-simple-router/src/helpers/warn.ts | 37 ++
node_modules/uni-simple-router/src/index.ts | 11 +
.../uni-simple-router/src/options/base.ts | 236 ++++++++
.../uni-simple-router/src/options/config.ts | 84 +++
.../uni-simple-router/src/public/hooks.ts | 171 ++++++
.../uni-simple-router/src/public/methods.ts | 255 +++++++++
.../uni-simple-router/src/public/page.ts | 41 ++
.../uni-simple-router/src/public/query.ts | 200 +++++++
.../uni-simple-router/src/public/rewrite.ts | 158 ++++++
.../uni-simple-router/src/public/router.ts | 122 ++++
.../uni-simple-router/src/public/uniOrigin.ts | 99 ++++
.../test/path-to-regexp.spec.ts | 61 ++
node_modules/uni-simple-router/tsconfig.json | 19 +
.../webpack/webpack.common.js | 35 ++
.../uni-simple-router/webpack/webpack.dev.js | 22 +
.../uni-simple-router/webpack/webpack.prod.js | 19 +
package-lock.json | 24 +
package.json | 5 +
pages.json | 2 +-
router/index.js | 44 ++
unpackage/dist/dev/app-plus/app-service.js | 410 ++++++++++++++
49 files changed, 4289 insertions(+), 7 deletions(-)
create mode 100644 node_modules/.package-lock.json
create mode 100644 node_modules/uni-simple-router/.eslintignore
create mode 100644 node_modules/uni-simple-router/.eslintrc.js
create mode 100644 node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/bug_report.md
create mode 100644 node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/feature_request.md
create mode 100644 node_modules/uni-simple-router/CODE_OF_CONDUCT.md
create mode 100644 node_modules/uni-simple-router/LICENSE
create mode 100644 node_modules/uni-simple-router/README.md
create mode 100644 node_modules/uni-simple-router/RFC.md
create mode 100644 node_modules/uni-simple-router/api-extractor.json
create mode 100644 node_modules/uni-simple-router/dist/link.vue
create mode 100644 node_modules/uni-simple-router/dist/uni-simple-router.d.ts
create mode 100644 node_modules/uni-simple-router/dist/uni-simple-router.js
create mode 100644 node_modules/uni-simple-router/github.sh
create mode 100644 node_modules/uni-simple-router/jest.config.js
create mode 100644 node_modules/uni-simple-router/package.json
create mode 100644 node_modules/uni-simple-router/src/H5/buildRouter.ts
create mode 100644 node_modules/uni-simple-router/src/H5/proxyHook.ts
create mode 100644 node_modules/uni-simple-router/src/app/appPatch.ts
create mode 100644 node_modules/uni-simple-router/src/applets/appletPatch.ts
create mode 100644 node_modules/uni-simple-router/src/component/link.vue
create mode 100644 node_modules/uni-simple-router/src/global.d.ts
create mode 100644 node_modules/uni-simple-router/src/helpers/config.ts
create mode 100644 node_modules/uni-simple-router/src/helpers/createRouteMap.ts
create mode 100644 node_modules/uni-simple-router/src/helpers/lifeCycle.ts
create mode 100644 node_modules/uni-simple-router/src/helpers/mixins.ts
create mode 100644 node_modules/uni-simple-router/src/helpers/utils.ts
create mode 100644 node_modules/uni-simple-router/src/helpers/warn.ts
create mode 100644 node_modules/uni-simple-router/src/index.ts
create mode 100644 node_modules/uni-simple-router/src/options/base.ts
create mode 100644 node_modules/uni-simple-router/src/options/config.ts
create mode 100644 node_modules/uni-simple-router/src/public/hooks.ts
create mode 100644 node_modules/uni-simple-router/src/public/methods.ts
create mode 100644 node_modules/uni-simple-router/src/public/page.ts
create mode 100644 node_modules/uni-simple-router/src/public/query.ts
create mode 100644 node_modules/uni-simple-router/src/public/rewrite.ts
create mode 100644 node_modules/uni-simple-router/src/public/router.ts
create mode 100644 node_modules/uni-simple-router/src/public/uniOrigin.ts
create mode 100644 node_modules/uni-simple-router/test/path-to-regexp.spec.ts
create mode 100644 node_modules/uni-simple-router/tsconfig.json
create mode 100644 node_modules/uni-simple-router/webpack/webpack.common.js
create mode 100644 node_modules/uni-simple-router/webpack/webpack.dev.js
create mode 100644 node_modules/uni-simple-router/webpack/webpack.prod.js
create mode 100644 package-lock.json
create mode 100644 package.json
create mode 100644 router/index.js
create mode 100644 unpackage/dist/dev/app-plus/app-service.js
diff --git a/main.js b/main.js
index 0656173..a68d5a4 100644
--- a/main.js
+++ b/main.js
@@ -1,11 +1,22 @@
import Vue from 'vue'
-import App from './App'
+import App from './App'
+import { router, RouterMount } from './router'
+
+Vue.use(router)
Vue.config.productionTip = false
App.mpType = 'app'
-
-const app = new Vue({
- ...App
-})
-app.$mount()
+
+const app = new Vue({
+ ...App
+})
+
+//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
+// #ifdef H5
+ RouterMount(app,router,'#app')
+// #endif
+
+// #ifndef H5
+ app.$mount(); //为了兼容小程序及app端必须这样写才有效果
+// #endif
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
new file mode 100644
index 0000000..41b8ff4
--- /dev/null
+++ b/node_modules/.package-lock.json
@@ -0,0 +1,12 @@
+{
+ "name": "barter-app",
+ "lockfileVersion": 2,
+ "requires": true,
+ "packages": {
+ "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=="
+ }
+ }
+}
diff --git a/node_modules/uni-simple-router/.eslintignore b/node_modules/uni-simple-router/.eslintignore
new file mode 100644
index 0000000..3661113
--- /dev/null
+++ b/node_modules/uni-simple-router/.eslintignore
@@ -0,0 +1,6 @@
+dist
+/node_modules
+/webpack
+/src/global.d.ts
+/test
+/jest.config.js
\ No newline at end of file
diff --git a/node_modules/uni-simple-router/.eslintrc.js b/node_modules/uni-simple-router/.eslintrc.js
new file mode 100644
index 0000000..7829320
--- /dev/null
+++ b/node_modules/uni-simple-router/.eslintrc.js
@@ -0,0 +1,256 @@
+module.exports = {
+ root: true,
+ env: {
+ browser: true,
+ node: true,
+ es6: true
+ },
+ globals: {
+ uni: true,
+ plus: true,
+ getCurrentPages: true,
+ getApp: true,
+ __uniConfig: true,
+ __uniRoutes: true
+ },
+ parser: '@typescript-eslint/parser',
+ extends: ['eslint:recommended'],
+ plugins: ['@typescript-eslint'],
+ rules: {
+ '@typescript-eslint/consistent-type-definitions': [
+ 'error',
+ 'interface'
+ ],
+ 'accessor-pairs': 2,
+ 'arrow-spacing': [
+ 2,
+ {
+ before: true,
+ after: true
+ }
+ ],
+ 'block-spacing': [2, 'always'],
+ 'brace-style': [
+ 2,
+ '1tbs',
+ {
+ allowSingleLine: true
+ }
+ ],
+ camelcase: [
+ 0,
+ {
+ properties: 'always'
+ }
+ ],
+ 'comma-dangle': [2, 'never'],
+ 'comma-spacing': [
+ 2,
+ {
+ before: false,
+ after: true
+ }
+ ],
+ 'comma-style': [2, 'last'],
+ 'constructor-super': 2,
+ curly: [2, 'multi-line'],
+ 'dot-location': [2, 'property'],
+ 'eol-last': 2,
+ eqeqeq: ['error', 'always', {null: 'ignore'}],
+ 'generator-star-spacing': [
+ 2,
+ {
+ before: true,
+ after: true
+ }
+ ],
+ 'handle-callback-err': [2, '^(err|error)$'],
+ indent: ['error', 4],
+ 'jsx-quotes': [2, 'prefer-single'],
+ 'key-spacing': [
+ 2,
+ {
+ beforeColon: false,
+ afterColon: true
+ }
+ ],
+ 'keyword-spacing': [
+ 2,
+ {
+ before: true,
+ after: true
+ }
+ ],
+ 'new-cap': [
+ 2,
+ {
+ newIsCap: true,
+ capIsNew: false
+ }
+ ],
+ 'new-parens': 2,
+ 'no-array-constructor': 2,
+ 'no-caller': 2,
+ 'no-console': 'off',
+ 'no-class-assign': 2,
+ 'no-cond-assign': 2,
+ 'no-const-assign': 2,
+ 'no-control-regex': 0,
+ 'no-delete-var': 2,
+ 'no-dupe-args': 2,
+ 'no-dupe-class-members': 2,
+ 'no-dupe-keys': 2,
+ 'no-duplicate-case': 2,
+ 'no-empty-character-class': 2,
+ 'no-empty-pattern': 2,
+ 'no-eval': 2,
+ 'no-ex-assign': 2,
+ 'no-extend-native': 2,
+ 'no-extra-bind': 2,
+ 'no-extra-boolean-cast': 2,
+ 'no-extra-parens': [2, 'functions'],
+ 'no-fallthrough': 2,
+ 'no-floating-decimal': 2,
+ 'no-func-assign': 2,
+ 'no-implied-eval': 2,
+ 'no-inner-declarations': [2, 'functions'],
+ 'no-invalid-regexp': 2,
+ 'no-irregular-whitespace': 2,
+ 'no-iterator': 2,
+ 'no-label-var': 2,
+ 'no-labels': [
+ 2,
+ {
+ allowLoop: false,
+ allowSwitch: false
+ }
+ ],
+ 'no-lone-blocks': 2,
+ 'no-mixed-spaces-and-tabs': 2,
+ 'no-multi-spaces': 2,
+ 'no-multi-str': 2,
+ 'no-multiple-empty-lines': [
+ 2,
+ {
+ max: 1
+ }
+ ],
+ 'no-native-reassign': 2,
+ 'no-negated-in-lhs': 2,
+ 'no-new-object': 2,
+ 'no-new-require': 2,
+ 'no-new-symbol': 2,
+ 'no-new-wrappers': 2,
+ 'no-obj-calls': 2,
+ 'no-octal': 2,
+ 'no-octal-escape': 2,
+ 'no-path-concat': 2,
+ 'no-proto': 2,
+ 'no-redeclare': 2,
+ 'no-regex-spaces': 2,
+ 'no-return-assign': [2, 'except-parens'],
+ 'no-self-assign': 2,
+ 'no-self-compare': 2,
+ 'no-sequences': 2,
+ 'no-shadow-restricted-names': 2,
+ 'no-spaced-func': 2,
+ 'no-sparse-arrays': 2,
+ 'no-this-before-super': 2,
+ 'no-throw-literal': 2,
+ 'no-trailing-spaces': 2,
+ 'no-undef': 2,
+ 'no-undef-init': 2,
+ 'no-unexpected-multiline': 2,
+ 'no-unmodified-loop-condition': 2,
+ 'no-unneeded-ternary': [
+ 2,
+ {
+ defaultAssignment: false
+ }
+ ],
+ 'no-unreachable': 2,
+ 'no-unsafe-finally': 2,
+ 'no-unused-vars': [
+ 2,
+ {
+ vars: 'all',
+ args: 'none'
+ }
+ ],
+ 'no-useless-call': 2,
+ 'no-useless-computed-key': 2,
+ 'no-useless-constructor': 2,
+ 'no-useless-escape': 0,
+ 'no-whitespace-before-property': 2,
+ 'no-with': 2,
+ 'one-var': [
+ 2,
+ {
+ initialized: 'never'
+ }
+ ],
+ 'operator-linebreak': [
+ 2,
+ 'after',
+ {
+ overrides: {
+ '?': 'before',
+ ':': 'before'
+ }
+ }
+ ],
+ 'padded-blocks': [2, 'never'],
+ quotes: [
+ 2,
+ 'single',
+ {
+ avoidEscape: true,
+ allowTemplateLiterals: true
+ }
+ ],
+ semi: 'off',
+ 'semi-spacing': [
+ 2,
+ {
+ before: false,
+ after: true
+ }
+ ],
+ 'space-before-blocks': [2, 'always'],
+ 'space-before-function-paren': [2, 'never'],
+ 'space-in-parens': [2, 'never'],
+ 'space-infix-ops': 2,
+ 'space-unary-ops': [
+ 2,
+ {
+ words: true,
+ nonwords: false
+ }
+ ],
+ 'spaced-comment': [
+ 2,
+ 'always',
+ {
+ markers: [
+ 'global',
+ 'globals',
+ 'eslint',
+ 'eslint-disable',
+ '*package',
+ '!',
+ ','
+ ]
+ }
+ ],
+ 'template-curly-spacing': [2, 'never'],
+ 'use-isnan': 2,
+ 'valid-typeof': 2,
+ 'wrap-iife': [2, 'any'],
+ 'yield-star-spacing': [2, 'both'],
+ yoda: [2, 'never'],
+ 'prefer-const': 2,
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
+ 'object-curly-spacing': 'off',
+ 'array-bracket-spacing': [2, 'never']
+ }
+};
diff --git a/node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/bug_report.md b/node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..ac848ad
--- /dev/null
+++ b/node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,39 @@
+---
+name: 报告问题(Bug report)
+about: 详细描述你遇到的问题并寻求社区帮助
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**问题描述**
+[问题描述:尽可能简洁清晰地把问题描述清楚]
+
+**复现步骤**
+[复现问题的步骤]
+1. 启动 '...'
+2. 点击 '....'
+3. 查看
+
+[或者可以直接贴源代码]
+
+**预期结果**
+[使用简洁清晰的语言描述你希望生效的预期结果]
+
+**实际结果**
+[这里请贴上你的报错截图或文字]
+
+
+**系统信息:**
+ - 发行平台: [如 微信小程序、H5平台、5+ App等]
+ - 操作系统 [如 iOS 12.1.2、Android 7.0]
+ - HBuilderX版本 [如使用HBuilderX,则需提供 HBuilderX 版本号]
+ - 项目创建方法 [如使用Vue-cli创建/HBuilderX]
+ - 设备信息 [如 iPhone8 Plus]
+ - uni-simple-router版本 [如 v1.5.4]
+
+
+**补充信息**
+[可选]
+[根据你的分析,出现这个问题的原因可能在哪里?]
diff --git a/node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/feature_request.md b/node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..6559ac3
--- /dev/null
+++ b/node_modules/uni-simple-router/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,21 @@
+---
+name: 建议新功能(Feature Request)
+about: 对 uni-simple-router 提出改善建议
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**新功能描述**
+简洁描述你希望补充完善的增强功能
+
+**现状及问题**
+[当前现状及由此导致的不便]
+
+**尝试方案**
+[如果你有尝试绕开或其它解决方案,在这里描述你的建议方案]
+
+**补充信息**
+[其它你认为有参考价值的信息]
+
diff --git a/node_modules/uni-simple-router/CODE_OF_CONDUCT.md b/node_modules/uni-simple-router/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..d8f066b
--- /dev/null
+++ b/node_modules/uni-simple-router/CODE_OF_CONDUCT.md
@@ -0,0 +1,76 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, sex characteristics, gender identity and expression,
+level of experience, education, socio-economic status, nationality, personal
+appearance, race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment
+include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or
+reject comments, commits, code, wiki edits, issues, and other contributions
+that are not aligned to this Code of Conduct, or to ban temporarily or
+permanently any contributor for other behaviors that they deem inappropriate,
+threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported by contacting the project team at 1606726660@qq.com. All
+complaints will be reviewed and investigated and will result in a response that
+is deemed necessary and appropriate to the circumstances. The project team is
+obligated to maintain confidentiality with regard to the reporter of an incident.
+Further details of specific enforcement policies may be posted separately.
+
+Project maintainers who do not follow or enforce the Code of Conduct in good
+faith may face temporary or permanent repercussions as determined by other
+members of the project's leadership.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
+available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
+
+[homepage]: https://www.contributor-covenant.org
+
+For answers to common questions about this code of conduct, see
+https://www.contributor-covenant.org/faq
diff --git a/node_modules/uni-simple-router/LICENSE b/node_modules/uni-simple-router/LICENSE
new file mode 100644
index 0000000..7eddf4c
--- /dev/null
+++ b/node_modules/uni-simple-router/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 hhyang
+
+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.
diff --git a/node_modules/uni-simple-router/README.md b/node_modules/uni-simple-router/README.md
new file mode 100644
index 0000000..1dbb5d8
--- /dev/null
+++ b/node_modules/uni-simple-router/README.md
@@ -0,0 +1,49 @@
+# uni-simple-router
+
+> 一个更为简洁的[Vue-router](https://router.vuejs.org/zh/),专为 [uni-app](https://uniapp.dcloud.io/) 量身打造
+
+## 介绍
+
+`uni-simple-router` 是专为 [uni-app](https://uniapp.dcloud.io/) 打造的路由器。它与 [uni-app](https://uniapp.dcloud.io/) 核心深度集成,使使用 [uni-app](https://uniapp.dcloud.io/) 轻松构建单页应用程序变得轻而易举。功能包括:
+
+* `H5端` 能完全使用 `vue-router` 进行开发。
+
+* 模块化,基于组件的路由器配置。
+
+* 路由参数,查询,通配符。
+
+* `H5端` 查看由 `uni-simple-router` 过渡系统提供动力的过渡效果。
+
+* 更细粒度的导航控制。
+
+* `H端`自动控制活动的CSS类链接。
+
+* 通配小程序端、APP端、H5端。
+
+
+开始使用 [查看文档](http://hhyang.cn),或 [使用示例](https://github.com/SilurianYang/uni-simple-router/tree/master/examples)(请参见下面的示例)。
+
+## 问题
+在提交问题的之前,请确保阅读 [“问题报告清单”](https://github.com/SilurianYang/uni-simple-router/issues/new?assignees=&labels=&template=bug_report.md&title=) 。不符合准则的问题可能会立即被解决。
+
+## 贡献
+提出拉取请求之前,请务必先阅读 [查看文档](http://hhyang.cn)(请参见下面的示例)。。
+
+## 变更日志
+[发行说明](https://github.com/SilurianYang/uni-simple-router/releases) 中记录了每个发行版的详细信息更改。
+
+## 特别感谢
+
+特别感谢 [markrgba](https://github.com/markrgba) 一直以来对文档和相关测试的维护。
+
+## 技术交流
+
+
+
+
+## 成品预览
+
+
+
uni-simple-router@2.0+ts+uni-app
+

+
\ No newline at end of file
diff --git a/node_modules/uni-simple-router/RFC.md b/node_modules/uni-simple-router/RFC.md
new file mode 100644
index 0000000..d96f6e8
--- /dev/null
+++ b/node_modules/uni-simple-router/RFC.md
@@ -0,0 +1,38 @@
+```flow
+
+st=>start: 开始跳转
+e=>end: 跳转结束
+platform=>operation: 平台选择
+H5=>condition: H5
+APP=>condition: APP
+applets=>condition: 小程序
+routerBeforeEach=>operation: routerBeforeEach
+lock=>condition: 跳转加锁
+
+runH5=>operation: H5
+runAPP=>parallel: APP
+runapplets=>parallel: 小程序
+
+beforeRouteLeave=>condition: beforeRouteLeave
+beforeEach=>condition: beforeEach
+beforeEnter=>condition: beforeEnter
+afterEach=>operation: afterEach
+runJump=>condition: 执行跳转成功或者失败
+stopJump=>operation: next(false) 停止跳转
+errorJump=>operation: 跳转失败
+routerErrorEach=>operation: routerErrorEach
+routerAfterEach=>operation: routerAfterEach
+
+st->platform(right)->applets(yes)->routerBeforeEach
+applets(no)->APP(yes)->routerBeforeEach
+APP(no)->H5(yes)->routerBeforeEach
+routerBeforeEach->lock(yes)->runAPP(path1)->runapplets(path1)->beforeRouteLeave
+lock(no)->runH5->beforeRouteLeave(no)->stopJump->routerErrorEach
+beforeRouteLeave(yes)->beforeEach(no)->stopJump->routerErrorEach
+beforeEach(yes)->beforeEnter(no)->stopJump->routerErrorEach
+beforeEnter(yes)->runJump(no)->errorJump->routerErrorEach
+runJump(yes)->afterEach->routerAfterEach
+routerAfterEach->e
+routerErrorEach->e
+
+```
\ No newline at end of file
diff --git a/node_modules/uni-simple-router/api-extractor.json b/node_modules/uni-simple-router/api-extractor.json
new file mode 100644
index 0000000..5458aab
--- /dev/null
+++ b/node_modules/uni-simple-router/api-extractor.json
@@ -0,0 +1,50 @@
+// this the shared base config for all packages.
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+
+ "mainEntryPointFilePath": "./dist/src/index.d.ts",
+
+ "apiReport": {
+ "enabled": true,
+ "reportFolder": "./temp/"
+ },
+
+ "docModel": {
+ "enabled": true
+ },
+
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "./dist/.d.ts"
+ },
+
+ "tsdocMetadata": {
+ "enabled": false
+ },
+
+ "messages": {
+ "compilerMessageReporting": {
+ "default": {
+ "logLevel": "warning"
+ }
+ },
+
+ "extractorMessageReporting": {
+ "default": {
+ "logLevel": "warning",
+ "addToApiReportFile": true
+ },
+
+ "ae-missing-release-tag": {
+ "logLevel": "none"
+ }
+ },
+
+ "tsdocMessageReporting": {
+ "default": {
+ "logLevel": "warning"
+ }
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/node_modules/uni-simple-router/dist/link.vue b/node_modules/uni-simple-router/dist/link.vue
new file mode 100644
index 0000000..873f412
--- /dev/null
+++ b/node_modules/uni-simple-router/dist/link.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
diff --git a/node_modules/uni-simple-router/dist/uni-simple-router.d.ts b/node_modules/uni-simple-router/dist/uni-simple-router.d.ts
new file mode 100644
index 0000000..5a15585
--- /dev/null
+++ b/node_modules/uni-simple-router/dist/uni-simple-router.d.ts
@@ -0,0 +1,330 @@
+
+export declare interface AppConfig {
+ registerLoadingPage?: boolean;
+ loadingPageStyle?: () => object;
+ loadingPageHook?: (view: any) => void;
+ launchedHook?: () => void;
+ animation?: startAnimationRule;
+}
+
+export declare interface appletConfig {
+ animationDuration?: number;
+}
+
+export declare interface appletsVueHookConfig {
+ app: appVueHookConfig;
+ page: pageVueHookConfig;
+ component: baseAppHookConfig[];
+}
+
+export declare interface appVueHookConfig extends baseAppHookConfig {
+ onLaunch: Array;
+ onShow: Array;
+ onHide: Array;
+}
+
+export declare type appVueSortHookRule = 'beforeCreate' | 'created' | 'beforeMount' | 'mounted' | 'onLaunch' | 'onShow' | 'onHide' | 'beforeDestroy' | 'destroyed';
+
+export declare type backTypeRule = 'backbutton' | 'navigateBack';
+
+export declare interface baseAppHookConfig {
+ [key: string]: Array;
+ created: Array;
+ beforeMount: Array;
+ mounted: Array;
+ beforeDestroy: Array;
+ destroyed: Array;
+}
+
+export declare type comVueSortHookRule = 'beforeCreate' | 'created' | 'beforeMount' | 'mounted' | 'beforeDestroy' | 'destroyed';
+
+export declare function createRouter(params: InstantiateConfig): Router;
+
+export declare interface debuggerArrayConfig {
+ error?: boolean;
+ warn?: boolean;
+ log?: boolean;
+}
+
+export declare type debuggerConfig = boolean | debuggerArrayConfig;
+
+export declare interface endAnimationRule {
+ animationType?: endAnimationType;
+ animationDuration?: number;
+}
+
+export declare type endAnimationType = 'slide-out-right' | 'slide-out-left' | 'slide-out-top' | 'slide-out-bottom' | 'pop-out' | 'fade-out' | 'zoom-in' | 'zoom-fade-in' | 'none';
+
+export declare type guardHookRule = (to: totalNextRoute, from: totalNextRoute, next: (rule?: navtoRule | false) => void) => void;
+
+export declare interface H5Config {
+ paramsToQuery?: boolean;
+ vueRouterDev?: boolean;
+ vueNext?: boolean;
+ mode?: string;
+ base?: string;
+ linkActiveClass?: string;
+ linkExactActiveClass?: string;
+ scrollBehavior?: Function;
+ fallback?: boolean;
+}
+
+export declare interface h5NextRule {
+ fullPath?: string | undefined;
+ hash?: string | undefined;
+ matched?: Array