@nuxt/hints 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -25
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/{Boah4cwZ.js → 2GP93Pxi.js} +1 -1
- package/dist/client/_nuxt/CGQlbfJh.js +6 -0
- package/dist/client/_nuxt/{Bynn4rkp.js → CJC4nrSc.js} +1 -1
- package/dist/client/_nuxt/{CHoFPrvn.js → Cw07ACep.js} +1 -1
- package/dist/client/_nuxt/{BUGFbzbB.js → DH652Aoo.js} +2 -2
- package/dist/client/_nuxt/{BJtxVCQ_.js → DJJ7OUMB.js} +1 -1
- package/dist/client/_nuxt/{C_d8ykrU.js → DU4nAREn.js} +1 -1
- package/dist/client/_nuxt/{CKUSRNTx.js → Do-INFgi.js} +1 -1
- package/dist/client/_nuxt/{ByztXxam.js → MKoRwnMq.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/13453bb2-1adb-44c7-ac19-ec44784e7219.json +1 -0
- package/dist/client/_nuxt/{entry.BPIf5bpe.css → entry.CqH3PPiL.css} +1 -1
- package/dist/client/_nuxt/error-404.CrTd3IxL.css +1 -0
- package/dist/client/_nuxt/error-500.evxQRSU6.css +1 -0
- package/dist/client/_nuxt/hydration.B5wxUWyr.css +1 -0
- package/dist/client/_nuxt/{D1fewSvT.js → nO2mFgKf.js} +1 -1
- package/dist/client/_nuxt/{Y-IJRkoC.js → qj2RPQZX.js} +1 -1
- package/dist/client/_nuxt/{CxMWoQ9E.js → rlWm2Bc0.js} +1 -1
- package/dist/client/_nuxt/{DUrsayuJ.js → sLvN_949.js} +1 -1
- package/dist/client/_nuxt/umNIi3wV.js +21 -0
- package/dist/client/_nuxt/{BvKcRjC_.js → z9IIGYC-.js} +1 -1
- package/dist/client/hydration/index.html +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/third-party-scripts/index.html +1 -1
- package/dist/client/web-vitals/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +34 -24
- package/dist/runtime/{plugins/third-party-scripts → third-party-scripts}/plugin.client.js +22 -5
- package/package.json +6 -2
- package/dist/client/_nuxt/BahsQGtb.js +0 -19
- package/dist/client/_nuxt/Bgk_gK97.js +0 -5
- package/dist/client/_nuxt/builds/meta/edb115ef-e91c-4b8b-a8bc-7091fc0b356e.json +0 -1
- package/dist/client/_nuxt/error-404.BZAFKftT.css +0 -1
- package/dist/client/_nuxt/error-500.BWF-6BkQ.css +0 -1
- package/dist/runtime/composables/devtoolsData.d.ts +0 -7
- package/dist/runtime/composables/devtoolsData.js +0 -12
- /package/dist/runtime/{components → core/components}/nuxt-island.d.ts +0 -0
- /package/dist/runtime/{components → core/components}/nuxt-island.js +0 -0
- /package/dist/runtime/{plugins → core/plugins}/vue-tracer-state.client.d.ts +0 -0
- /package/dist/runtime/{plugins → core/plugins}/vue-tracer-state.client.js +0 -0
- /package/dist/runtime/{composables/hydration.d.ts → hydration/composables.d.ts} +0 -0
- /package/dist/runtime/{composables/hydration.js → hydration/composables.js} +0 -0
- /package/dist/runtime/{plugins/hydration → hydration}/plugin.client.d.ts +0 -0
- /package/dist/runtime/{plugins/hydration → hydration}/plugin.client.js +0 -0
- /package/dist/runtime/{plugins/third-party-scripts → third-party-scripts}/nitro.plugin.d.ts +0 -0
- /package/dist/runtime/{plugins/third-party-scripts → third-party-scripts}/nitro.plugin.js +0 -0
- /package/dist/runtime/{plugins/third-party-scripts → third-party-scripts}/plugin.client.d.ts +0 -0
- /package/dist/runtime/{plugins/web-vitals → web-vitals}/plugin.client.d.ts +0 -0
- /package/dist/runtime/{plugins/web-vitals → web-vitals}/plugin.client.js +0 -0
- /package/dist/runtime/{plugins/web-vitals → web-vitals}/utils.d.ts +0 -0
- /package/dist/runtime/{plugins/web-vitals → web-vitals}/utils.js +0 -0
package/README.md
CHANGED
|
@@ -11,6 +11,17 @@ Nuxt Hints integrates directly into the Nuxt DevTools, giving you actionable ins
|
|
|
11
11
|
|
|
12
12
|
- [✨Release Notes](/CHANGELOG.md)
|
|
13
13
|
|
|
14
|
+
## Getting Started
|
|
15
|
+
|
|
16
|
+
To install and add the module, you can run the following command:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx nuxt module add hints
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The module is now automatically installed and added to your `nuxt.config.ts`.
|
|
23
|
+
Now you can open your Nuxt app, go to the DevTools, and click the Nuxt Hints icon to get started.
|
|
24
|
+
|
|
14
25
|
## Features
|
|
15
26
|
|
|
16
27
|
- **🚀 Rich DevTools UI**: A dedicated tab in Nuxt DevTools to visualize issues, inspect elements, and get recommendations.
|
|
@@ -50,31 +61,6 @@ Analyze all third-party scripts on your page. The dashboard shows loading times,
|
|
|
50
61
|
|
|
51
62
|

|
|
52
63
|
|
|
53
|
-
## Quick Setup
|
|
54
|
-
|
|
55
|
-
1. Add `@nuxt/hints` dependency to your project:
|
|
56
|
-
```bash
|
|
57
|
-
# Using pnpm
|
|
58
|
-
pnpm add -D @nuxt/hints
|
|
59
|
-
|
|
60
|
-
# Using yarn
|
|
61
|
-
yarn add --dev @nuxt/hints
|
|
62
|
-
|
|
63
|
-
# Using npm
|
|
64
|
-
npm install --save-dev @nuxt/hints
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
2. Add `@nuxt/hints` to the `modules` section of `nuxt.config.ts`:
|
|
68
|
-
```js
|
|
69
|
-
export default defineNuxtConfig({
|
|
70
|
-
modules: [
|
|
71
|
-
'@nuxt/hints'
|
|
72
|
-
]
|
|
73
|
-
})
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
That's it! Open your Nuxt app, go to the DevTools, and click the Nuxt Hints icon to get started.
|
|
77
|
-
|
|
78
64
|
## How It Works
|
|
79
65
|
|
|
80
66
|
### Performance Monitoring
|
package/dist/client/200.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-hints/_nuxt/entry.
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-hints/_nuxt/entry.CqH3PPiL.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-hints/_nuxt/CGQlbfJh.js"><script type="module" src="/__nuxt-hints/_nuxt/CGQlbfJh.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-hints-iframe" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1763764569840,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-hints",buildId:"13453bb2-1adb-44c7-ac19-ec44784e7219",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-hints/_nuxt/entry.
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-hints/_nuxt/entry.CqH3PPiL.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-hints/_nuxt/CGQlbfJh.js"><script type="module" src="/__nuxt-hints/_nuxt/CGQlbfJh.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-hints-iframe" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1763764569840,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-hints",buildId:"13453bb2-1adb-44c7-ac19-ec44784e7219",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s}from"./
|
|
1
|
+
import{_ as s}from"./CJC4nrSc.js";import{_ as a,c as i,o as u,a as t,t as n,b as c,w as l,d}from"./CGQlbfJh.js";import{u as f}from"./z9IIGYC-.js";const p={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},m={class:"max-w-520px text-center"},h=["textContent"],g=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Page not found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const r=e;return f({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,_)=>{const o=s;return u(),i("div",p,[t("div",m,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:n(e.statusCode)},null,8,h),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:n(e.statusMessage)},null,8,g),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:n(e.description)},null,8,b),t("div",x,[c(o,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:l(()=>[d(n(e.backHome),1)]),_:1})])])])}}},N=a(y,[["__scopeId","data-v-65a4f279"]]);export{N as default};
|