From 110af6f1f45c6279488224676bd0b3e6c8abe4a6 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 8 Mar 2021 17:19:56 +0800 Subject: [PATCH] docs: revert cdn URL (#8310) --- README.md | 4 +-- README.zh-CN.md | 6 ++--- docs/markdown/advanced-usage.zh-CN.md | 6 ++--- docs/markdown/changelog.zh-CN.md | 2 +- docs/markdown/design.zh-CN.md | 10 +++---- docs/markdown/home.en-US.md | 2 +- docs/markdown/home.zh-CN.md | 2 +- docs/markdown/quickstart.en-US.md | 2 +- docs/markdown/quickstart.zh-CN.md | 2 +- .../generators/vue2/vant.config.js | 2 +- .../generators/vue3/vant.config.js | 2 +- packages/vant-cli/docs/config.md | 2 +- packages/vant-use/.vuepress/config.js | 4 +-- src/button/README.md | 2 +- src/button/README.zh-CN.md | 2 +- src/button/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 2 +- src/card/README.md | 6 ++--- src/card/README.zh-CN.md | 6 ++--- src/card/demo/index.vue | 2 +- src/card/test/__snapshots__/demo.spec.ts.snap | 6 ++--- src/checkbox/README.md | 4 +-- src/checkbox/README.zh-CN.md | 4 +-- src/checkbox/demo/index.vue | 4 +-- .../test/__snapshots__/demo.spec.ts.snap | 2 +- src/coupon-list/CouponList.tsx | 2 +- src/coupon-list/README.md | 2 +- src/coupon-list/README.zh-CN.md | 2 +- .../test/__snapshots__/index.spec.ts.snap | 4 +-- src/dialog/README.md | 2 +- src/dialog/README.zh-CN.md | 2 +- src/dialog/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 2 +- src/empty/Empty.tsx | 2 +- src/empty/README.md | 2 +- src/empty/README.zh-CN.md | 2 +- src/empty/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 8 +++--- .../test/__snapshots__/index.spec.ts.snap | 4 +-- src/form/README.md | 2 +- src/form/README.zh-CN.md | 2 +- src/form/demo/FieldType.vue | 2 +- src/form/test/__snapshots__/demo.spec.ts.snap | 2 +- src/grid/README.md | 6 ++--- src/grid/README.zh-CN.md | 6 ++--- src/grid/demo/index.vue | 15 +++-------- src/grid/test/__snapshots__/demo.spec.ts.snap | 6 ++--- src/image-preview/README.md | 24 ++++++++--------- src/image-preview/README.zh-CN.md | 26 +++++++++---------- src/image-preview/demo/index.vue | 8 +++--- .../test/__snapshots__/index.spec.ts.snap | 4 +-- src/image-preview/test/index.spec.ts | 6 ++--- src/image/README.md | 12 +++------ src/image/README.zh-CN.md | 16 +++++------- src/image/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 22 ++++++++-------- src/lazyload/README.md | 4 +-- src/lazyload/README.zh-CN.md | 4 +-- src/lazyload/demo/index.vue | 16 ++++++------ src/pull-refresh/README.md | 6 ++--- src/pull-refresh/README.zh-CN.md | 6 ++--- src/radio/README.md | 4 +-- src/radio/README.zh-CN.md | 4 +-- src/radio/demo/index.vue | 4 +-- .../test/__snapshots__/demo.spec.ts.snap | 4 +-- src/share-sheet/README.md | 6 ++--- src/share-sheet/README.zh-CN.md | 6 ++--- src/share-sheet/ShareSheet.tsx | 2 +- src/share-sheet/demo/index.vue | 6 ++--- src/skeleton/demo/index.vue | 2 +- src/swipe-cell/README.md | 2 +- src/swipe-cell/README.zh-CN.md | 2 +- src/swipe-cell/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 2 +- src/swipe/README.md | 4 +-- src/swipe/README.zh-CN.md | 4 +-- src/swipe/demo/index.vue | 8 +++--- .../test/__snapshots__/demo.spec.ts.snap | 6 ++--- src/tabbar/README.md | 4 +-- src/tabbar/README.zh-CN.md | 4 +-- src/tabbar/demo/index.vue | 4 +-- .../test/__snapshots__/demo.spec.ts.snap | 2 +- src/toast/README.md | 2 +- src/toast/README.zh-CN.md | 2 +- src/toast/demo/index.vue | 2 +- src/tree-select/README.md | 4 +-- src/tree-select/README.zh-CN.md | 4 +-- src/tree-select/demo/index.vue | 4 +-- .../test/__snapshots__/demo.spec.ts.snap | 2 +- src/uploader/README.md | 12 ++++----- src/uploader/README.zh-CN.md | 12 ++++----- src/uploader/demo/index.vue | 20 +++++++------- .../test/__snapshots__/demo.spec.ts.snap | 20 +++++++------- .../test/__snapshots__/index.legacy.js.snap | 14 +++++----- src/uploader/test/index.legacy.js | 10 +++---- vant.config.js | 4 +-- 96 files changed, 249 insertions(+), 268 deletions(-) diff --git a/README.md b/README.md index 264dc1076..7cb9e128e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- logo + logo

Vant

@@ -92,7 +92,7 @@ Modern browsers and Android 4.0+, iOS 8.0+. You can scan the following QR code to access the demo: - + ## LICENSE diff --git a/README.zh-CN.md b/README.zh-CN.md index 53db5f9b0..ab6d831b7 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,5 +1,5 @@

- logo + logo

Vant

@@ -98,13 +98,13 @@ vant 也支持按需引入、CDN 引入等方式,详细说明见 [快速上手 可以手机扫码以下二维码访问手机端 demo: - + ## 微信讨论群 欢迎大家加入 Vant 交流群一起讨论,添加下方微信并注明『加入 Vant 交流群』即可 - + ## 开源协议 diff --git a/docs/markdown/advanced-usage.zh-CN.md b/docs/markdown/advanced-usage.zh-CN.md index 3a0f8d356..6a472032c 100644 --- a/docs/markdown/advanced-usage.zh-CN.md +++ b/docs/markdown/advanced-usage.zh-CN.md @@ -25,8 +25,8 @@ export default { data() { return { checked: true, - activeIcon: 'https://img01.yzcdn.cn/vant/user-active.png', - inactiveIcon: 'https://img01.yzcdn.cn/vant/user-inactive.png', + activeIcon: 'https://img.yzcdn.cn/vant/user-active.png', + inactiveIcon: 'https://img.yzcdn.cn/vant/user-inactive.png', }; }, }; @@ -118,4 +118,4 @@ iPhone X 等机型底部存在底部指示条,指示条的操作区域与页 ``` - + diff --git a/docs/markdown/changelog.zh-CN.md b/docs/markdown/changelog.zh-CN.md index 9679ee3fc..83394abb2 100644 --- a/docs/markdown/changelog.zh-CN.md +++ b/docs/markdown/changelog.zh-CN.md @@ -296,7 +296,7 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。 - 新增 [Popover 气泡弹出框](#/zh-CN/popover)组件 [#7579](https://github.com/youzan/vant/issues/7579) -![](https://img01.yzcdn.cn/vant/component-preview-1122.png) +![](https://img.yzcdn.cn/vant/component-preview-1122.png) **Feature** diff --git a/docs/markdown/design.zh-CN.md b/docs/markdown/design.zh-CN.md index ff36309e4..31eaa36ac 100644 --- a/docs/markdown/design.zh-CN.md +++ b/docs/markdown/design.zh-CN.md @@ -12,15 +12,15 @@ Vant 是基于有赞 [Zan Design System](https://design.youzan.com/) 视觉规 #### 色彩规范 - + #### 字体规范 - + #### 组件规范 - + 下载 @@ -28,7 +28,7 @@ Vant 是基于有赞 [Zan Design System](https://design.youzan.com/) 视觉规 包含 Sketch 格式的图标库资源。 - + 下载 @@ -36,7 +36,7 @@ Vant 是基于有赞 [Zan Design System](https://design.youzan.com/) 视觉规 Axure 元件库,由社区的 [@axure-tczy](https://github.com/axure-tczy) 同学贡献。 - + 下载 diff --git a/docs/markdown/home.en-US.md b/docs/markdown/home.en-US.md index 79e351410..d23373d73 100644 --- a/docs/markdown/home.en-US.md +++ b/docs/markdown/home.en-US.md @@ -1,6 +1,6 @@
- +

Vant

Mobile UI Components built on Vue

diff --git a/docs/markdown/home.zh-CN.md b/docs/markdown/home.zh-CN.md index 33fd4bf58..83adb308e 100644 --- a/docs/markdown/home.zh-CN.md +++ b/docs/markdown/home.zh-CN.md @@ -1,6 +1,6 @@
- +

Vant

轻量、可靠的移动端 Vue 组件库

diff --git a/docs/markdown/quickstart.en-US.md b/docs/markdown/quickstart.en-US.md index d330bb0d1..bd66c88ee 100644 --- a/docs/markdown/quickstart.en-US.md +++ b/docs/markdown/quickstart.en-US.md @@ -59,7 +59,7 @@ vue create hello-world vue ui ``` -![](https://img01.yzcdn.cn/vant/vue-cli-demo-201809030812.png) +![](https://img.yzcdn.cn/vant/vue-cli-demo-201809030812.png) In the GUI, click on 'Dependencies' -> `Install Dependencies` and add `vant` to the dependencies. diff --git a/docs/markdown/quickstart.zh-CN.md b/docs/markdown/quickstart.zh-CN.md index 27cc1df85..7d15661e8 100644 --- a/docs/markdown/quickstart.zh-CN.md +++ b/docs/markdown/quickstart.zh-CN.md @@ -66,7 +66,7 @@ vue create hello-world vue ui ``` -![](https://img01.yzcdn.cn/vant/vue-cli-demo-201809032000.png) +![](https://img.yzcdn.cn/vant/vue-cli-demo-201809032000.png) 在图形化界面中,点击 `依赖` -> `安装依赖`,然后将 `vant` 添加到依赖中即可。 diff --git a/packages/create-vant-cli-app/generators/vue2/vant.config.js b/packages/create-vant-cli-app/generators/vue2/vant.config.js index e7e2e9eae..749ef1a35 100644 --- a/packages/create-vant-cli-app/generators/vue2/vant.config.js +++ b/packages/create-vant-cli-app/generators/vue2/vant.config.js @@ -10,7 +10,7 @@ module.exports = { }, site: { title: '<%= name %>', - logo: 'https://img01.yzcdn.cn/vant/logo.png', + logo: 'https://img.yzcdn.cn/vant/logo.png', nav: [ { title: '开发指南', diff --git a/packages/create-vant-cli-app/generators/vue3/vant.config.js b/packages/create-vant-cli-app/generators/vue3/vant.config.js index e7e2e9eae..749ef1a35 100644 --- a/packages/create-vant-cli-app/generators/vue3/vant.config.js +++ b/packages/create-vant-cli-app/generators/vue3/vant.config.js @@ -10,7 +10,7 @@ module.exports = { }, site: { title: '<%= name %>', - logo: 'https://img01.yzcdn.cn/vant/logo.png', + logo: 'https://img.yzcdn.cn/vant/logo.png', nav: [ { title: '开发指南', diff --git a/packages/vant-cli/docs/config.md b/packages/vant-cli/docs/config.md index ac2c0ee72..73a79c32f 100644 --- a/packages/vant-cli/docs/config.md +++ b/packages/vant-cli/docs/config.md @@ -39,7 +39,7 @@ module.exports = { // 标题 title: 'Demo UI', // 图标 - logo: 'https://img01.yzcdn.cn/vant/logo.png', + logo: 'https://img.yzcdn.cn/vant/logo.png', // 描述 description: '示例组件库', // 左侧导航 diff --git a/packages/vant-use/.vuepress/config.js b/packages/vant-use/.vuepress/config.js index 2e7d33e0c..a08f842c7 100644 --- a/packages/vant-use/.vuepress/config.js +++ b/packages/vant-use/.vuepress/config.js @@ -2,9 +2,7 @@ module.exports = { base: '/vant/vant-use/', title: 'Vant Use', dest: 'dist/site', - head: [ - ['link', { rel: 'icon', href: 'https://img01.yzcdn.cn/vant/logo.png' }], - ], + head: [['link', { rel: 'icon', href: 'https://img.yzcdn.cn/vant/logo.png' }]], patterns: ['**/*.md', '!**/node_modules'], themeConfig: { nav: [ diff --git a/src/button/README.md b/src/button/README.md index 90c77f9c1..5e61eb347 100644 --- a/src/button/README.md +++ b/src/button/README.md @@ -63,7 +63,7 @@ app.use(Button); ```html Button - + Button ``` diff --git a/src/button/README.zh-CN.md b/src/button/README.zh-CN.md index 57028098b..2b16c3479 100644 --- a/src/button/README.zh-CN.md +++ b/src/button/README.zh-CN.md @@ -81,7 +81,7 @@ app.use(Button); ```html 按钮 - + 按钮 ``` diff --git a/src/button/demo/index.vue b/src/button/demo/index.vue index 3c93039d5..8d0ebd226 100644 --- a/src/button/demo/index.vue +++ b/src/button/demo/index.vue @@ -41,7 +41,7 @@ diff --git a/src/button/test/__snapshots__/demo.spec.ts.snap b/src/button/test/__snapshots__/demo.spec.ts.snap index 8a0a1894e..936299c4a 100644 --- a/src/button/test/__snapshots__/demo.spec.ts.snap +++ b/src/button/test/__snapshots__/demo.spec.ts.snap @@ -243,7 +243,7 @@ exports[`should render demo and match snapshot 1`] = `
diff --git a/src/card/README.md b/src/card/README.md index 9ce855975..29fa6b000 100644 --- a/src/card/README.md +++ b/src/card/README.md @@ -20,7 +20,7 @@ app.use(Card); price="2.00" title="Title" desc="Description" - thumb="https://img01.yzcdn.cn/vant/ipad.jpeg" + thumb="https://img.yzcdn.cn/vant/ipad.jpeg" /> ``` @@ -34,7 +34,7 @@ app.use(Card); title="Title" desc="Description" origin-price="10.00" - thumb="https://img01.yzcdn.cn/vant/ipad.jpeg" + thumb="https://img.yzcdn.cn/vant/ipad.jpeg" /> ``` @@ -48,7 +48,7 @@ Use slot to custom content. title="Title" desc="Description" price="2.00" - thumb="https://img01.yzcdn.cn/vant/ipad.jpeg" + thumb="https://img.yzcdn.cn/vant/ipad.jpeg" >