From ee4f3a849d0043a5215245929a745847a6588a81 Mon Sep 17 00:00:00 2001 From: Vordgi Date: Mon, 8 Jun 2026 15:54:28 +0100 Subject: [PATCH 1/3] feat: write welcome message and warning to console --- app/plugins/welcome.client.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/plugins/welcome.client.ts diff --git a/app/plugins/welcome.client.ts b/app/plugins/welcome.client.ts new file mode 100644 index 0000000000..9db0218928 --- /dev/null +++ b/app/plugins/welcome.client.ts @@ -0,0 +1,20 @@ +export default defineNuxtPlugin({ + env: { islands: false }, + setup() { + if (import.meta.server || import.meta.test) { + return + } + + console.log( + '%c./ welcome\n\n%cnpmx.dev is a community-driven open-source platform built by people, for people. If you have ideas or want to help us keep improving the developer experience, join us at https://build.npmx.dev', + 'font: bold 24px system-ui, sans-serif; color: oklch(0.787 0.128 230.318);', + 'font: 16px system-ui, sans-serif;', + ) + + console.log( + '%c⚠️ warning\n\n%cRunning code here will have access to your local data and some cookies. Please review the code carefully before pasting and executing it.', + 'font: bold 20px system-ui, sans-serif; color: oklch(0.79 0.17 70.66);', + 'font: 16px system-ui, sans-serif;', + ) + }, +}) From 48a6e9d6f4de9bf734d2b5fddc0155703fd00dd7 Mon Sep 17 00:00:00 2001 From: Vordgi Date: Mon, 8 Jun 2026 16:53:53 +0100 Subject: [PATCH 2/3] chore: add vertical padding to welcome messages --- app/plugins/welcome.client.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/plugins/welcome.client.ts b/app/plugins/welcome.client.ts index 9db0218928..5d64ee6c64 100644 --- a/app/plugins/welcome.client.ts +++ b/app/plugins/welcome.client.ts @@ -7,14 +7,14 @@ export default defineNuxtPlugin({ console.log( '%c./ welcome\n\n%cnpmx.dev is a community-driven open-source platform built by people, for people. If you have ideas or want to help us keep improving the developer experience, join us at https://build.npmx.dev', - 'font: bold 24px system-ui, sans-serif; color: oklch(0.787 0.128 230.318);', - 'font: 16px system-ui, sans-serif;', + 'font: bold 24px system-ui, sans-serif; color: oklch(0.787 0.128 230.318); padding-top: 12px;', + 'font: 16px system-ui, sans-serif; padding-bottom: 12px;', ) console.log( '%c⚠️ warning\n\n%cRunning code here will have access to your local data and some cookies. Please review the code carefully before pasting and executing it.', - 'font: bold 20px system-ui, sans-serif; color: oklch(0.79 0.17 70.66);', - 'font: 16px system-ui, sans-serif;', + 'font: bold 20px system-ui, sans-serif; color: oklch(0.79 0.17 70.66); padding-top: 12px;', + 'font: 16px system-ui, sans-serif; padding-bottom: 12px;', ) }, }) From b93b9ac2de455ed82fc437ddabc8b0a1ceb17f2c Mon Sep 17 00:00:00 2001 From: "Willow (GHOST)" Date: Wed, 10 Jun 2026 18:48:41 +0100 Subject: [PATCH 3/3] chore: fix lint --- app/plugins/welcome.client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/plugins/welcome.client.ts b/app/plugins/welcome.client.ts index 5d64ee6c64..5bd2378d6a 100644 --- a/app/plugins/welcome.client.ts +++ b/app/plugins/welcome.client.ts @@ -5,12 +5,14 @@ export default defineNuxtPlugin({ return } + // oxlint-disable-next-line no-console console.log( '%c./ welcome\n\n%cnpmx.dev is a community-driven open-source platform built by people, for people. If you have ideas or want to help us keep improving the developer experience, join us at https://build.npmx.dev', 'font: bold 24px system-ui, sans-serif; color: oklch(0.787 0.128 230.318); padding-top: 12px;', 'font: 16px system-ui, sans-serif; padding-bottom: 12px;', ) + // oxlint-disable-next-line no-console console.log( '%c⚠️ warning\n\n%cRunning code here will have access to your local data and some cookies. Please review the code carefully before pasting and executing it.', 'font: bold 20px system-ui, sans-serif; color: oklch(0.79 0.17 70.66); padding-top: 12px;',