diff --git a/README.md b/README.md index 551671f..8042460 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Find and replace all on all files (CMD+SHIFT+F): - Package name: @threenine/nuxstr-comments - Description: Nuxstr Comments --> - + # Nuxstr Comments [![npm version][npm-version-src]][npm-version-href] @@ -14,6 +14,7 @@ Find and replace all on all files (CMD+SHIFT+F): [![License][license-src]][license-href] [![Nuxt][nuxt-src]][nuxt-href] +![]() Enable [nostr protocol](https://nostr.com/) based comment system on your Nuxt 4 based applications. - [✨ Release Notes](/CHANGELOG.md) diff --git a/eslint.config.mjs b/eslint.config.mjs index 993789a..7e25b8f 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -17,7 +17,9 @@ export default createConfigForNuxt({ }) .append( { - ignores: ['playground/**/*'], + rules: { + 'vue/multi-word-component-names': 'off', + }, }, // your custom flat config here... diff --git a/package.json b/package.json index f55c58d..9494a34 100644 --- a/package.json +++ b/package.json @@ -41,12 +41,12 @@ "@nuxt/devtools": "^2.6.2", "@nuxt/eslint": "1.9.0", "@nuxt/eslint-config": "^1.9.0", - "@nuxt/kit": "^4.2.1", + "@nuxt/kit": "^4.3.1", "@nuxt/module-builder": "^1.0.2", "@nuxt/schema": "^4.2.1", "@nuxt/scripts": "0.11.10", "@nuxt/test-utils": "^3.19.2", - "@nuxt/ui": "^4.3.0", + "@nuxt/ui": "^4.5.1", "@testing-library/jest-dom": "^6.8.0", "@testing-library/vue": "^8.1.0", "@types/node": "latest", @@ -54,7 +54,7 @@ "changelogen": "^0.6.2", "eslint": "^9.35.0", "jsdom": "^26.1.0", - "nuxt": "^4.2.1", + "nuxt": "^4.3.1", "typescript": "~5.9.2", "vitest": "^3.2.4", "vue-tsc": "^3.0.6" diff --git a/playground/app/app.config.ts b/playground/app/app.config.ts index 9283995..e0693eb 100644 --- a/playground/app/app.config.ts +++ b/playground/app/app.config.ts @@ -1,84 +1,84 @@ export default defineAppConfig({ - ui: { - colors: { - primary: 'orange', - neutral: 'neutral' + ui: { + colors: { + primary: 'orange', + neutral: 'neutral', + }, + chip: { + slots: { + root: 'relative inline-flex items-center justify-center shrink-0', + base: 'rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap', }, - chip: { - slots: { - root: 'relative inline-flex items-center justify-center shrink-0', - base: 'rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap' + variants: { + color: { + primary: 'bg-primary', + secondary: 'bg-secondary', + success: 'bg-success', + info: 'bg-info', + warning: 'bg-warning', + error: 'bg-error', + neutral: 'bg-inverted', + }, + size: { + '3xs': 'h-[4px] min-w-[4px] text-[4px]', + '2xs': 'h-[5px] min-w-[5px] text-[5px]', + 'xs': 'h-[6px] min-w-[6px] text-[6px]', + 'sm': 'h-[7px] min-w-[7px] text-[7px]', + 'md': 'h-[8px] min-w-[8px] text-[8px]', + 'lg': 'h-[9px] min-w-[9px] text-[9px]', + 'xl': 'h-[10px] min-w-[10px] text-[10px]', + '2xl': 'h-[11px] min-w-[11px] text-[11px]', + '3xl': 'h-[12px] min-w-[12px] text-[12px]', + }, + position: { + 'top-right': 'top-0 right-0', + 'bottom-right': 'bottom-0 right-0', + 'top-left': 'top-0 left-0', + 'bottom-left': 'bottom-0 left-0', }, - variants: { - color: { - primary: 'bg-primary', - secondary: 'bg-secondary', - success: 'bg-success', - info: 'bg-info', - warning: 'bg-warning', - error: 'bg-error', - neutral: 'bg-inverted' - }, - size: { - '3xs': 'h-[4px] min-w-[4px] text-[4px]', - '2xs': 'h-[5px] min-w-[5px] text-[5px]', - xs: 'h-[6px] min-w-[6px] text-[6px]', - sm: 'h-[7px] min-w-[7px] text-[7px]', - md: 'h-[8px] min-w-[8px] text-[8px]', - lg: 'h-[9px] min-w-[9px] text-[9px]', - xl: 'h-[10px] min-w-[10px] text-[10px]', - '2xl': 'h-[11px] min-w-[11px] text-[11px]', - '3xl': 'h-[12px] min-w-[12px] text-[12px]' - }, - position: { - 'top-right': 'top-0 right-0', - 'bottom-right': 'bottom-0 right-0', - 'top-left': 'top-0 left-0', - 'bottom-left': 'bottom-0 left-0' - }, - inset: { - false: '' - }, - standalone: { - false: 'absolute' - } + inset: { + false: '', + }, + standalone: { + false: 'absolute', }, - compoundVariants: [ - { - position: 'top-right', - inset: false, - class: '-translate-y-1/2 translate-x-1/2 transform' - }, - { - position: 'bottom-right', - inset: false, - class: 'translate-y-1/2 translate-x-1/2 transform' - }, - { - position: 'top-left', - inset: false, - class: '-translate-y-1/2 -translate-x-1/2 transform' - }, - { - position: 'bottom-left', - inset: false, - class: 'translate-y-1/2 -translate-x-1/2 transform' - } - ], - defaultVariants: { - size: 'md', - color: 'primary', - position: 'top-right' - } }, + compoundVariants: [ + { + position: 'top-right', + inset: false, + class: '-translate-y-1/2 translate-x-1/2 transform', + }, + { + position: 'bottom-right', + inset: false, + class: 'translate-y-1/2 translate-x-1/2 transform', + }, + { + position: 'top-left', + inset: false, + class: '-translate-y-1/2 -translate-x-1/2 transform', + }, + { + position: 'bottom-left', + inset: false, + class: 'translate-y-1/2 -translate-x-1/2 transform', + }, + ], + defaultVariants: { + size: 'md', + color: 'primary', + position: 'top-right', + }, + }, icons: { light: 'i-ph-sun', - dark: 'i-ph-moon' + dark: 'i-ph-moon', }, skeleton: { - base: 'animate-pulse rounded-md bg-elevated' - } + base: 'animate-pulse rounded-md bg-elevated', + }, }, }) diff --git a/playground/app/pages/another-page.vue b/playground/app/pages/another-page.vue index d1bfaa3..6a9c702 100644 --- a/playground/app/pages/another-page.vue +++ b/playground/app/pages/another-page.vue @@ -2,8 +2,14 @@ - Back - Another + Back + Another diff --git a/playground/app/pages/another/deeper/index.vue b/playground/app/pages/another/deeper/index.vue index 16cd91b..ff50583 100644 --- a/playground/app/pages/another/deeper/index.vue +++ b/playground/app/pages/another/deeper/index.vue @@ -3,7 +3,6 @@ - diff --git a/playground/app/pages/another/index.vue b/playground/app/pages/another/index.vue index 99162c5..2723517 100644 --- a/playground/app/pages/another/index.vue +++ b/playground/app/pages/another/index.vue @@ -3,14 +3,14 @@ - - - Another deeper - + Another deeper + -