@nuxtify/core 0.1.11 → 0.2.1
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/dist/module.json +2 -3
- package/dist/module.mjs +2 -3
- package/dist/runtime/components/app/AppAnnouncementBar.vue.d.ts +2 -1
- package/dist/runtime/components/app/AppCredits.vue.d.ts +2 -1
- package/dist/runtime/components/app/AppDialog.vue.d.ts +2 -1
- package/dist/runtime/components/app/AppError.vue.d.ts +2 -1
- package/dist/runtime/components/app/AppLoading.vue.d.ts +2 -1
- package/dist/runtime/components/app/AppLogo.vue.d.ts +3 -2
- package/dist/runtime/components/app/AppToast.vue.d.ts +2 -1
- package/dist/runtime/utils/text.js +10 -6
- package/dist/runtime/utils/youtube.js +1 -1
- package/package.json +6 -6
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, useLogger, addComponentsDir, addImpor
|
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
|
|
4
4
|
const name = "@nuxtify/core";
|
|
5
|
-
const version = "0.1
|
|
5
|
+
const version = "0.2.1";
|
|
6
6
|
|
|
7
7
|
const module$1 = defineNuxtModule().with({
|
|
8
8
|
meta: {
|
|
@@ -10,8 +10,7 @@ const module$1 = defineNuxtModule().with({
|
|
|
10
10
|
version,
|
|
11
11
|
configKey: "nuxtifyCore",
|
|
12
12
|
compatibility: {
|
|
13
|
-
nuxt: ">=
|
|
14
|
-
bridge: false
|
|
13
|
+
nuxt: ">=4.0.0"
|
|
15
14
|
}
|
|
16
15
|
},
|
|
17
16
|
moduleDependencies: {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
dark: {
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
default: boolean;
|
|
@@ -17,7 +17,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
17
|
default: undefined;
|
|
18
18
|
};
|
|
19
19
|
}>> & Readonly<{}>, {
|
|
20
|
-
dark: boolean;
|
|
21
20
|
width: number;
|
|
21
|
+
dark: boolean;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
23
24
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -3,14 +3,18 @@ export const titleCase = (text, skipShortWords = true) => {
|
|
|
3
3
|
const words = text.split(" ");
|
|
4
4
|
const titleWords = [];
|
|
5
5
|
for (const [i] of words.entries()) {
|
|
6
|
-
|
|
6
|
+
const word = words[i];
|
|
7
|
+
if (!word) {
|
|
8
|
+
continue;
|
|
9
|
+
}
|
|
10
|
+
if (skipShortWords && shortWords.includes(word)) {
|
|
7
11
|
if (i === 0) {
|
|
8
|
-
titleWords.push(
|
|
12
|
+
titleWords.push(word.charAt(0).toUpperCase() + word.slice(1));
|
|
9
13
|
} else {
|
|
10
|
-
titleWords.push(
|
|
14
|
+
titleWords.push(word);
|
|
11
15
|
}
|
|
12
16
|
} else {
|
|
13
|
-
titleWords.push(
|
|
17
|
+
titleWords.push(word.charAt(0).toUpperCase() + word.slice(1));
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
20
|
return titleWords.join(" ");
|
|
@@ -37,7 +41,7 @@ export function parseFullName(fullName2) {
|
|
|
37
41
|
let lastName = "";
|
|
38
42
|
if (fullName2) {
|
|
39
43
|
const nameSplit = fullName2.split(" ");
|
|
40
|
-
firstName = nameSplit[0];
|
|
44
|
+
firstName = nameSplit[0] ?? "";
|
|
41
45
|
if (nameSplit.length > 1) {
|
|
42
46
|
lastName = nameSplit.slice(1).join(" ");
|
|
43
47
|
}
|
|
@@ -175,7 +179,7 @@ export const getLanguageName = (languageCode, displayLanguage = "en") => {
|
|
|
175
179
|
};
|
|
176
180
|
export function addArticle(text, includeText = true) {
|
|
177
181
|
if (!text) return "";
|
|
178
|
-
const firstLetter = text[0]
|
|
182
|
+
const firstLetter = text[0]?.toLowerCase() ?? "";
|
|
179
183
|
const vowels = ["a", "e", "i", "o", "u"];
|
|
180
184
|
let article;
|
|
181
185
|
if (vowels.includes(firstLetter)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function youTubeId(url) {
|
|
2
2
|
const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/;
|
|
3
3
|
const match = url.match(regExp);
|
|
4
|
-
return match && match[2]
|
|
4
|
+
return match && match[2]?.length === 11 ? match[2] : null;
|
|
5
5
|
}
|
|
6
6
|
export function youTubeUrl(url) {
|
|
7
7
|
const videoId = youTubeId(url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtify/core",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Nuxtify core module powered by Nuxt and Vuetify.",
|
|
5
5
|
"homepage": "https://nuxtify.dev",
|
|
6
6
|
"author": "Nuxtify.dev <hello@nuxtify.dev>",
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
"vuetify-nuxt-module": "^0.19.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@nuxt/devtools": "^
|
|
52
|
+
"@nuxt/devtools": "^3.1.1",
|
|
53
53
|
"@nuxt/eslint": "^1.12.1",
|
|
54
54
|
"@nuxt/eslint-config": "^1.3.1",
|
|
55
|
-
"@nuxt/kit": "^
|
|
55
|
+
"@nuxt/kit": "^4.2.2",
|
|
56
56
|
"@nuxt/module-builder": "^1.0.2",
|
|
57
|
-
"@nuxt/schema": "^
|
|
57
|
+
"@nuxt/schema": "^4.2.2",
|
|
58
58
|
"@nuxt/test-utils": "^3.23.0",
|
|
59
59
|
"@types/node": "^22.19.7",
|
|
60
60
|
"changelogen": "^0.6.2",
|
|
61
61
|
"eslint": "^9.39.2",
|
|
62
|
-
"nuxt": "^
|
|
62
|
+
"nuxt": "^4.2.2",
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
64
|
"vitest": "^3.2.4",
|
|
65
|
-
"vue-tsc": "^2.2
|
|
65
|
+
"vue-tsc": "^3.2.2"
|
|
66
66
|
}
|
|
67
67
|
}
|