Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dongasai committed Nov 25, 2024
1 parent 7414497 commit dee71d9
Show file tree
Hide file tree
Showing 6 changed files with 271 additions and 234 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "v2.cn.vuejs.org",
"private": true,
"hexo": {
"version": "6.2.0"
"version": "6.3.0"
},
"scripts": {
"dev": "node _scripts/sync-sponsors.js && hexo server",
Expand Down Expand Up @@ -31,4 +31,4 @@
"js-yaml": "^4.1.0",
"zhlint": "^0.6.0"
}
}
}
14 changes: 7 additions & 7 deletions src/v2/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: 安装
type: guide
order: 1
vue_version: 2.7.14
gz_size: "37.51"
vue_version: 2.7.16
gz_size: "37.72"
---

### 兼容性
Expand Down Expand Up @@ -43,20 +43,20 @@ Vue 在其所有项目中公布的功能和行为都遵循[语义化版本控制
对于制作原型或学习,你可以这样使用最新版本:

``` html
<script src="https://cdn.jsdelivr.net/npm/[email protected].14/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].16/dist/vue.js"></script>
```

对于生产环境,我们推荐链接到一个明确的版本号和构建文件,以避免新版本造成的不可预期的破坏:

``` html
<script src="https://cdn.jsdelivr.net/npm/[email protected].14"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].16"></script>
```

如果你使用原生 ES Modules,这里也有一个兼容 ES Module 的构建文件:

``` html
<script type="module">
import Vue from 'https://cdn.jsdelivr.net/npm/[email protected].14/dist/vue.esm.browser.js'
import Vue from 'https://cdn.jsdelivr.net/npm/[email protected].16/dist/vue.esm.browser.js'
</script>
```

Expand Down Expand Up @@ -85,7 +85,7 @@ Vue 提供了一个[官方的 CLI](https://github.com/vuejs/vue-cli),为单页

## 对不同构建版本的解释

[NPM 包的 `dist/` 目录](https://cdn.jsdelivr.net/npm/[email protected].14/dist/)你将会找到很多不同的 Vue.js 构建版本。这里列出了它们之间的差别:
[NPM 包的 `dist/` 目录](https://cdn.jsdelivr.net/npm/[email protected].16/dist/)你将会找到很多不同的 Vue.js 构建版本。这里列出了它们之间的差别:

| | UMD | CommonJS | ES Module (基于构建工具使用) | ES Module (直接用于浏览器) |
| --- | --- | --- | --- | --- |
Expand All @@ -102,7 +102,7 @@ Vue 提供了一个[官方的 CLI](https://github.com/vuejs/vue-cli),为单页

- **运行时**:用来创建 Vue 实例、渲染并处理虚拟 DOM 等的代码。基本上就是除去编译器的其它一切。

- **[UMD](https://github.com/umdjs/umd)**:UMD 版本可以通过 `<script>` 标签直接用在浏览器中。jsDelivr CDN 的 [https://cdn.jsdelivr.net/npm/[email protected].14](https://cdn.jsdelivr.net/npm/[email protected].14) 默认文件就是运行时 + 编译器的 UMD 版本 (`vue.js`)。
- **[UMD](https://github.com/umdjs/umd)**:UMD 版本可以通过 `<script>` 标签直接用在浏览器中。jsDelivr CDN 的 [https://cdn.jsdelivr.net/npm/[email protected].16](https://cdn.jsdelivr.net/npm/[email protected].16) 默认文件就是运行时 + 编译器的 UMD 版本 (`vue.js`)。

- **[CommonJS](http://wiki.commonjs.org/wiki/Modules/1.1)**:CommonJS 版本用来配合老的打包工具比如 [Browserify](http://browserify.org/)[webpack 1](https://webpack.github.io)。这些打包工具的默认文件 (`pkg.main`) 是只包含运行时的 CommonJS 版本 (`vue.runtime.common.js`)。

Expand Down
177 changes: 95 additions & 82 deletions themes/vue/_config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
site_description: Vue.js - The Progressive JavaScript Framework
google_analytics: UA-46852172-3
root_domain: v2.cn.vuejs.org
vue_version: 2.7.14
vue_version: 2.7.16
# START SPONSORS
special:
- name: appwrite
url: https://appwrite.io
img: appwrite.svg
description: Build Fast. Scale Big. All in One Place.
platinum:
- name: Bit
url: https://bit.dev
img: bit.svg?v2
priority: true
- name: VueMastery
url: https://www.vuemastery.com/
img: vuemastery.png
Expand All @@ -25,96 +24,53 @@ platinum:
- name: Storyblok
url: https://www.storyblok.com
img: storyblok.png
- name: Ionic
url: >-
https://ionicframework.com/vue?utm_source=partner&utm_medium=referral&utm_campaign=vuesponsorship&utm_content=vuedocs
img: ionic.png?v2
- name: CodeDict
url: https://code-dict.com
img: codedict.svg
- name: Chrome Frameworks Fund
url: https://opencollective.com/2021-frameworks-fund
img: chrome_frameworks_fund.png
- name: HeroDevs
url: https://www.herodevs.com/support/vue
img: herodevs.png
gold:
- name: Volta
url: https://volta.net/?utm_source=vuejs.org&utm_campaign=sponsoring/
img: volta.svg
- name: Laravel
url: https://laravel.com
img: laravel.png
- name: Tidelift
url: https://tidelift.com/subscription/npm/vue
img: tidelift.png
- name: Intygrate
url: https://intygrate.com/
img: intygrate.png
- name: Bacancy Technology
url: https://www.bacancytechnology.com/hire-vuejs-developer
img: bacancy_technology.png
- name: Laravel
url: https://laravel.com/
img: laravel.png
- name: Y8
url: https://www.y8.com/
img: y8.png
- name: DevExpress
url: https://js.devexpress.com/
img: devexpress.png
- name: FASTCODING Inc
url: 'https://fastcoding.jp/javascript/ '
img: fastcoding_inc.svg
- name: LINE Corporation
url: https://linecorp.com
img: line_corporation.png
- name: EMQ
url: https://www.emqx.com
img: emq.png
- name: LY Corporation
url: https://www.lycorp.co.jp/en/
img: ly_corporation.png?v2
- name: Fenêtre Online Solutions
url: https://www.fenetre.nl/
img: fen_tre_online_solutions.svg
- name: Ant Design Vue
url: https://antdv.com
img: ant_design_vue.png
- name: MQTT X
url: https://mqttx.app
img: mqtt_x.png
- name: Crisp
url: https://crisp.chat/en/
img: crisp.png
- name: Localazy
url: >-
https://localazy.com/blog/how-to-localize-vuejs-app-with-vue-i18n-and-localazy?utm_source=vuejs&utm_medium=banner&utm_campaign=sponsorships_vuejs&utm_content=logo
img: localazy.svg
- name: LearnVue
url: https://learnvue.co
img: learnvue.png
- name: Casinoburst.com
url: https://casinoburst.com/casino-utan-licens/
img: casinoburst_com.png
- name: 'Enkrypt: Ethereum and Polkadot Web3 Wallet'
url: https://www.enkrypt.com
img: enkrypt__ethereum_and_polkadot_web3_wallet.svg
- name: uudetkasinot.com
url: https://www.uudetkasinot.com
img: uudetkasinot_com.png
- name: Fathom Analytics
url: https://usefathom.com/
img: fathom_analytics.svg
- name: Goread.io
url: https://goread.io/buy-instagram-followers
img: goread_io.png
- name: Sentry
url: https://sentry.io/for/vue?utm_source=vuejs.org&utm_medium=paid-community
img: sentry.png
- name: Poprey.com
url: https://poprey.com/
img: poprey_com.png
- name: Ilmaiset Pitkävetovihjeet
url: https://www.vedonlyontibonukset.com/pitkavetovihjeet
img: ilmaiset_pitk_vetovihjeet.png
- name: Metoree
url: https://us.metoree.com/
img: metoree.png
- name: Famoid
url: https://famoid.com/
img: famoid.png
Expand All @@ -127,47 +83,99 @@ gold:
- name: TBDC - Agro Software
url: http://tbdc.com.br/
img: tbdc___agro_software.svg
- name: Nokori
- name: Daniel
url: >-
https://nokori.com?utm_source=github&utm_medium=banner&utm_campaign=awareness&utm_id=github_vue
img: nokori.png
- name: Justanotherpanel
url: https://justanotherpanel.com/
img: justanotherpanel.png
- name: FineProxy
url: https://fineproxy.org/
img: fineproxy.svg
https://rxdb.info/?utm_source=sponsor&utm_medium=opencollective&utm_campaign=opencollective-vuejs
img: daniel.png
- name: Quickbooks Tool Hub
url: https://qbtoolhub.com/
img: quickbooks_tool_hub.png
- name: it@M
url: ' https://opensource.muenchen.de/software/vue.js.html'
img: it_m.png
- name: Blastup
url: https://blastup.com/buy-instagram-likes
img: blastup.png
- name: VueJobs
url: https://vuejobs.com/?utm_source=vuejs.com&utm_campaign=sponsor
img: vuejobs.png
- name: Huly
url: https://huly.io
img: huly.svg
- name: Automatenspieler
url: https://automatenspieler.net/
img: automatenspieler.png?v2
- name: Stormlikes
url: https://stormlikes.com
img: stormlikes.png
- name: Superviral
url: https://superviral.io/
img: superviral.png
- name: Goread.io
url: https://goread.io/buy-instagram-followers
img: goread_io.png
- name: Celebian
url: https://celebian.com/buy-tiktok-followers
img: celebian.png
- name: Skweezer.net
url: https://opencollective.com/skweezer-net
img: skweezer_net.png
- name: casinorevisor.com
url: https://casinorevisor.com/
img: casinorevisor_com.png
- name: Buzzoid - Buy Instagram Followers
url: https://buzzoid.com/buy-instagram-followers/
img: buzzoid___buy_instagram_followers.png
- name: Buy Instagram Followers Twicsy
url: https://twicsy.com/buy-instagram-followers
img: buy_instagram_followers_twicsy.png
- name: Famety - Buy Instagram Followers
url: https://www.famety.com/
img: famety___buy_instagram_followers.png
silver:
- name: Draxlr
url: https://www.draxlr.com
img: draxlr.svg
- name: Team Extension North America Inc
url: https://teamextension.io
img: team_extension_north_america_inc.png
- name: Free Bets US
url: https://freebets.us
img: free_bets_us.png
- name: Doximity
url: https://technology.doximity.com/
img: doximity.png
- name: Interflora Group
url: https://www.interflora.fr
img: interflora_group.png
- name: Codesmith
url: https://codesmith.io
img: codesmith.png
- name: Optimizers
url: https://www.optimizers.nl
img: optimizers.png
- name: Nettcasino
url: https://www.nettcasino.com/
img: nettcasino.png
- name: FORTUNE GAMES
url: https://www.fortunegames.com
img: fortune_games.png
- name: Indy
url: https://www.indy.fr/
img: indy.png
- name: Buy Instagram Followers from SocialWick
url: https://www.socialwick.com/instagram/followers
img: buy_instagram_followers_from_socialwick.png
- name: Social Followers
url: https://www.socialfollowers.uk/buy-tiktok-followers/
img: social_followers.png
- name: Outlook India
url: >-
https://www.outlookindia.com/outlook-spotlight/casinos-not-on-gamstop-uk-news-302214/
img: outlook_india.png
- name: Route Planner and Route Optimizer - Route4Me
url: https://route4me.com
img: route_planner_and_route_optimizer___route4me.png
- name: https://nongamstopcasinos.net/gb/
url: https://nongamstopcasinos.net/gb/
img: https___nongamstopcasinos_net_gb_.png
- name: Nettcasino
url: https://www.nettcasino.com/
img: nettcasino.png
- name: Betwinner Partner
url: https://betwinnerpartner.com/
img: betwinner_partner.png
- name: Media Mister
url: https://mediamister.com/
img: media_mister.png
bronze:
- name: Derek Pollard
url: https://polyglotengineer.com/derek.pollard
Expand All @@ -178,9 +186,6 @@ bronze:
- name: RStudio
url: https://rstudio.com
img: rstudio.png
- name: Darkhorse Analytics
url: https://www.darkhorseanalytics.com/
img: darkhorse_analytics.png
- name: vuejs.de - German Vue Community
url: https://vuejs.de
img: vuejs_de___german_vue_community.svg
Expand All @@ -190,9 +195,17 @@ bronze:
- name: Bürkert Werke GmbH & Co KG
url: https://www.burkert.com
img: b_rkert_werke_gmbh___co_kg.png
- name: CRECOHE
url: http://www.crecohe.com
img: crecohe.png
- name: codefortynine
url: https://codefortynine.com
img: codefortynine.png
- name: Routr
url: www.routr.com
img: routr.png
platinum_china:
- name: CRMEB
url: http://github.crmeb.net/u/vue
img: crmeb.svg?v2
description: 开源电商系统
# END SPONSORS
video_china:
- url: http://cloud.youku.com/index.php?source=vuejs
Expand Down
1 change: 1 addition & 0 deletions themes/vue/layout/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

<!-- <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono&display=swap" rel="stylesheet"> -->
<!-- <link href="https://fonts.googleapis.com/css?family=Dosis:500&text=Vue.js&display=swap" rel="stylesheet"> -->
<meta http-equiv="content-security-policy" content="script-src 'self'">

<link href="//code.bdstatic.com/npm/[email protected]/css/font-awesome.min.css" rel="stylesheet">

Expand Down
Loading

0 comments on commit dee71d9

Please sign in to comment.