From: Haoqun Jiang Date: Fri, 12 Aug 2022 04:19:13 +0000 (+0800) Subject: fix: add `rel="noopener"` to external links X-Git-Tag: v3.3.3~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b434b47389830b5e205a6c1fb4a45685410c216;p=thirdparty%2Fvuejs%2Fcreate-vue.git fix: add `rel="noopener"` to external links Modern browsers (Chrome ≥ 88, Edge ≥ 88, Firefox ≥ 79 and Safari ≥ 12.2) automatically imply `rel="noopener"`. But the default target of Vite is lower than that, so we still need it. --- diff --git a/template/code/default/src/components/HelloWorld.vue b/template/code/default/src/components/HelloWorld.vue index 1b8faac1..0a0988bc 100644 --- a/template/code/default/src/components/HelloWorld.vue +++ b/template/code/default/src/components/HelloWorld.vue @@ -12,8 +12,8 @@ defineProps({

{{ msg }}

You’ve successfully created a project with - Vite + - Vue 3. + Vite + + Vue 3.

diff --git a/template/code/default/src/components/TheWelcome.vue b/template/code/default/src/components/TheWelcome.vue index d3d2e7ac..5e646253 100644 --- a/template/code/default/src/components/TheWelcome.vue +++ b/template/code/default/src/components/TheWelcome.vue @@ -15,7 +15,7 @@ import SupportIcon from './icons/IconSupport.vue' Vue’s - official documentation + official documentation provides you with all information you need to get started. @@ -26,14 +26,13 @@ import SupportIcon from './icons/IconSupport.vue' This project is served and bundled with - Vite. The recommended IDE - setup is VSCode + - Volar. If you need to test - your components and web pages, check out - Cypress and - Cypress Component Testing. + Vite. The + recommended IDE setup is + VSCode + + Volar. If + you need to test your components and web pages, check out + Cypress and + Cypress Component Testing.
@@ -47,12 +46,12 @@ import SupportIcon from './icons/IconSupport.vue' Get official tools and libraries for your project: - Pinia, - Vue Router, - Vue Test Utils, and - Vue Dev Tools. If you need more - resources, we suggest paying - Awesome Vue + Pinia, + Vue Router, + Vue Test Utils, and + Vue Dev Tools. If + you need more resources, we suggest paying + Awesome Vue a visit. @@ -63,11 +62,14 @@ import SupportIcon from './icons/IconSupport.vue' Got stuck? Ask your question on - Vue Land, our official Discord server, or - StackOverflow. - You should also subscribe to - our mailing list and follow the official - @vuejs + Vue Land, our official + Discord server, or + StackOverflow. You should also subscribe to + our mailing list and follow + the official + @vuejs twitter account for latest news in the Vue world. @@ -79,6 +81,6 @@ import SupportIcon from './icons/IconSupport.vue' As an independent project, Vue relies on community backing for its sustainability. You can help us by - becoming a sponsor. + becoming a sponsor. diff --git a/template/code/router/src/components/HelloWorld.vue b/template/code/router/src/components/HelloWorld.vue index 1b8faac1..0a0988bc 100644 --- a/template/code/router/src/components/HelloWorld.vue +++ b/template/code/router/src/components/HelloWorld.vue @@ -12,8 +12,8 @@ defineProps({

{{ msg }}

You’ve successfully created a project with - Vite + - Vue 3. + Vite + + Vue 3.

diff --git a/template/code/router/src/components/TheWelcome.vue b/template/code/router/src/components/TheWelcome.vue index d3d2e7ac..5e646253 100644 --- a/template/code/router/src/components/TheWelcome.vue +++ b/template/code/router/src/components/TheWelcome.vue @@ -15,7 +15,7 @@ import SupportIcon from './icons/IconSupport.vue' Vue’s - official documentation + official documentation provides you with all information you need to get started. @@ -26,14 +26,13 @@ import SupportIcon from './icons/IconSupport.vue' This project is served and bundled with - Vite. The recommended IDE - setup is VSCode + - Volar. If you need to test - your components and web pages, check out - Cypress and - Cypress Component Testing. + Vite. The + recommended IDE setup is + VSCode + + Volar. If + you need to test your components and web pages, check out + Cypress and + Cypress Component Testing.
@@ -47,12 +46,12 @@ import SupportIcon from './icons/IconSupport.vue' Get official tools and libraries for your project: - Pinia, - Vue Router, - Vue Test Utils, and - Vue Dev Tools. If you need more - resources, we suggest paying - Awesome Vue + Pinia, + Vue Router, + Vue Test Utils, and + Vue Dev Tools. If + you need more resources, we suggest paying + Awesome Vue a visit. @@ -63,11 +62,14 @@ import SupportIcon from './icons/IconSupport.vue' Got stuck? Ask your question on - Vue Land, our official Discord server, or - StackOverflow. - You should also subscribe to - our mailing list and follow the official - @vuejs + Vue Land, our official + Discord server, or + StackOverflow. You should also subscribe to + our mailing list and follow + the official + @vuejs twitter account for latest news in the Vue world. @@ -79,6 +81,6 @@ import SupportIcon from './icons/IconSupport.vue' As an independent project, Vue relies on community backing for its sustainability. You can help us by - becoming a sponsor. + becoming a sponsor. diff --git a/template/code/typescript-default/src/components/HelloWorld.vue b/template/code/typescript-default/src/components/HelloWorld.vue index f5f67437..8901544c 100644 --- a/template/code/typescript-default/src/components/HelloWorld.vue +++ b/template/code/typescript-default/src/components/HelloWorld.vue @@ -9,8 +9,8 @@ defineProps<{

{{ msg }}

You’ve successfully created a project with - Vite + - Vue 3. + Vite + + Vue 3.

diff --git a/template/code/typescript-default/src/components/TheWelcome.vue b/template/code/typescript-default/src/components/TheWelcome.vue index ce040fe3..a70765c2 100644 --- a/template/code/typescript-default/src/components/TheWelcome.vue +++ b/template/code/typescript-default/src/components/TheWelcome.vue @@ -15,7 +15,7 @@ import SupportIcon from './icons/IconSupport.vue' Vue’s - official documentation + official documentation provides you with all information you need to get started. @@ -26,14 +26,13 @@ import SupportIcon from './icons/IconSupport.vue' This project is served and bundled with - Vite. The recommended IDE - setup is VSCode + - Volar. If you need to test - your components and web pages, check out - Cypress and - Cypress Component Testing. + Vite. The + recommended IDE setup is + VSCode + + Volar. If + you need to test your components and web pages, check out + Cypress and + Cypress Component Testing.
@@ -47,12 +46,12 @@ import SupportIcon from './icons/IconSupport.vue' Get official tools and libraries for your project: - Pinia, - Vue Router, - Vue Test Utils, and - Vue Dev Tools. If you need more - resources, we suggest paying - Awesome Vue + Pinia, + Vue Router, + Vue Test Utils, and + Vue Dev Tools. If + you need more resources, we suggest paying + Awesome Vue a visit. @@ -63,11 +62,14 @@ import SupportIcon from './icons/IconSupport.vue' Got stuck? Ask your question on - Vue Land, our official Discord server, or - StackOverflow. - You should also subscribe to - our mailing list and follow the official - @vuejs + Vue Land, our official + Discord server, or + StackOverflow. You should also subscribe to + our mailing list and follow + the official + @vuejs twitter account for latest news in the Vue world. @@ -79,6 +81,6 @@ import SupportIcon from './icons/IconSupport.vue' As an independent project, Vue relies on community backing for its sustainability. You can help us by - becoming a sponsor. + becoming a sponsor. diff --git a/template/code/typescript-router/src/components/HelloWorld.vue b/template/code/typescript-router/src/components/HelloWorld.vue index aa2f7f1b..23afedd7 100644 --- a/template/code/typescript-router/src/components/HelloWorld.vue +++ b/template/code/typescript-router/src/components/HelloWorld.vue @@ -9,8 +9,8 @@ defineProps<{

{{ msg }}

You’ve successfully created a project with - Vite + - Vue 3. What's next? + Vite + + Vue 3. What's next?

diff --git a/template/code/typescript-router/src/components/TheWelcome.vue b/template/code/typescript-router/src/components/TheWelcome.vue index ce040fe3..a70765c2 100644 --- a/template/code/typescript-router/src/components/TheWelcome.vue +++ b/template/code/typescript-router/src/components/TheWelcome.vue @@ -15,7 +15,7 @@ import SupportIcon from './icons/IconSupport.vue' Vue’s - official documentation + official documentation provides you with all information you need to get started. @@ -26,14 +26,13 @@ import SupportIcon from './icons/IconSupport.vue' This project is served and bundled with - Vite. The recommended IDE - setup is VSCode + - Volar. If you need to test - your components and web pages, check out - Cypress and - Cypress Component Testing. + Vite. The + recommended IDE setup is + VSCode + + Volar. If + you need to test your components and web pages, check out + Cypress and + Cypress Component Testing.
@@ -47,12 +46,12 @@ import SupportIcon from './icons/IconSupport.vue' Get official tools and libraries for your project: - Pinia, - Vue Router, - Vue Test Utils, and - Vue Dev Tools. If you need more - resources, we suggest paying - Awesome Vue + Pinia, + Vue Router, + Vue Test Utils, and + Vue Dev Tools. If + you need more resources, we suggest paying + Awesome Vue a visit. @@ -63,11 +62,14 @@ import SupportIcon from './icons/IconSupport.vue' Got stuck? Ask your question on - Vue Land, our official Discord server, or - StackOverflow. - You should also subscribe to - our mailing list and follow the official - @vuejs + Vue Land, our official + Discord server, or + StackOverflow. You should also subscribe to + our mailing list and follow + the official + @vuejs twitter account for latest news in the Vue world. @@ -79,6 +81,6 @@ import SupportIcon from './icons/IconSupport.vue' As an independent project, Vue relies on community backing for its sustainability. You can help us by - becoming a sponsor. + becoming a sponsor.