From 3b434b47389830b5e205a6c1fb4a45685410c216 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 12 Aug 2022 12:19:13 +0800 Subject: [PATCH] fix: add `rel="noopener"` to external links MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- .../default/src/components/HelloWorld.vue | 4 +- .../default/src/components/TheWelcome.vue | 44 ++++++++++--------- .../code/router/src/components/HelloWorld.vue | 4 +- .../code/router/src/components/TheWelcome.vue | 44 ++++++++++--------- .../src/components/HelloWorld.vue | 4 +- .../src/components/TheWelcome.vue | 44 ++++++++++--------- .../src/components/HelloWorld.vue | 4 +- .../src/components/TheWelcome.vue | 44 ++++++++++--------- 8 files changed, 100 insertions(+), 92 deletions(-) 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. -- 2.39.5