@gluhar/app 5.0.10 → 5.2.0
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/CHANGELOG.md +845 -759
- package/README.md +64 -64
- package/dist/module.json +1 -1
- package/dist/runtime/components/SanityImg.vue +1 -1
- package/dist/runtime/stores/useGStore.d.ts +0 -42
- package/package.json +67 -68
package/README.md
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
# `@gluhar/app`
|
|
2
|
-
|
|
3
|
-
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
-
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
-
[![License][license-src]][license-href]
|
|
6
|
-
[![Nuxt][nuxt-src]][nuxt-href]
|
|
7
|
-
|
|
8
|
-
Gluhar main package. This combines and configures @gluhar/theme, @gluhar/i18n, @gluhar/sanity and @gluhar/core into one main package. Provides numerous components, composables, utils and types.
|
|
9
|
-
|
|
10
|
-
[✨ Release Notes](/CHANGELOG.md)
|
|
11
|
-
|
|
12
|
-
## Installation
|
|
13
|
-
|
|
14
|
-
Install the module to your Nuxt application with one command:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
npx nuxi module add @gluhar/app
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
## Config
|
|
23
|
-
|
|
24
|
-
## Contribution
|
|
25
|
-
|
|
26
|
-
<details>
|
|
27
|
-
<summary>Local development</summary>
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
# Install dependencies
|
|
31
|
-
npm install
|
|
32
|
-
|
|
33
|
-
# Generate type stubs
|
|
34
|
-
npm run dev:prepare
|
|
35
|
-
|
|
36
|
-
# Develop with the playground
|
|
37
|
-
npm run dev
|
|
38
|
-
|
|
39
|
-
# Build the playground
|
|
40
|
-
npm run dev:build
|
|
41
|
-
|
|
42
|
-
# Run ESLint
|
|
43
|
-
npm run lint
|
|
44
|
-
|
|
45
|
-
# Run Vitest
|
|
46
|
-
npm run test
|
|
47
|
-
npm run test:watch
|
|
48
|
-
|
|
49
|
-
# Release new version
|
|
50
|
-
npm run release
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
</details>
|
|
54
|
-
|
|
55
|
-
<!-- Badges -->
|
|
56
|
-
|
|
57
|
-
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
58
|
-
[npm-version-href]: https://npmjs.com/package/my-module
|
|
59
|
-
[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
60
|
-
[npm-downloads-href]: https://npmjs.com/package/my-module
|
|
61
|
-
[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
62
|
-
[license-href]: https://npmjs.com/package/my-module
|
|
63
|
-
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
|
64
|
-
[nuxt-href]: https://nuxt.com
|
|
1
|
+
# `@gluhar/app`
|
|
2
|
+
|
|
3
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
+
[![License][license-src]][license-href]
|
|
6
|
+
[![Nuxt][nuxt-src]][nuxt-href]
|
|
7
|
+
|
|
8
|
+
Gluhar main package. This combines and configures @gluhar/theme, @gluhar/i18n, @gluhar/sanity and @gluhar/core into one main package. Provides numerous components, composables, utils and types.
|
|
9
|
+
|
|
10
|
+
[✨ Release Notes](/CHANGELOG.md)
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Install the module to your Nuxt application with one command:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx nuxi module add @gluhar/app
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
## Config
|
|
23
|
+
|
|
24
|
+
## Contribution
|
|
25
|
+
|
|
26
|
+
<details>
|
|
27
|
+
<summary>Local development</summary>
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Install dependencies
|
|
31
|
+
npm install
|
|
32
|
+
|
|
33
|
+
# Generate type stubs
|
|
34
|
+
npm run dev:prepare
|
|
35
|
+
|
|
36
|
+
# Develop with the playground
|
|
37
|
+
npm run dev
|
|
38
|
+
|
|
39
|
+
# Build the playground
|
|
40
|
+
npm run dev:build
|
|
41
|
+
|
|
42
|
+
# Run ESLint
|
|
43
|
+
npm run lint
|
|
44
|
+
|
|
45
|
+
# Run Vitest
|
|
46
|
+
npm run test
|
|
47
|
+
npm run test:watch
|
|
48
|
+
|
|
49
|
+
# Release new version
|
|
50
|
+
npm run release
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
</details>
|
|
54
|
+
|
|
55
|
+
<!-- Badges -->
|
|
56
|
+
|
|
57
|
+
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
58
|
+
[npm-version-href]: https://npmjs.com/package/my-module
|
|
59
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
60
|
+
[npm-downloads-href]: https://npmjs.com/package/my-module
|
|
61
|
+
[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
62
|
+
[license-href]: https://npmjs.com/package/my-module
|
|
63
|
+
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
|
64
|
+
[nuxt-href]: https://nuxt.com
|
package/dist/module.json
CHANGED
|
@@ -10,8 +10,8 @@ import sanityConfig from "~/config/sanity.config";
|
|
|
10
10
|
|
|
11
11
|
const props = defineProps<{
|
|
12
12
|
image?: SanityImage;
|
|
13
|
-
by?: "width" | "height" | "both";
|
|
14
13
|
alt?: LocaleString;
|
|
14
|
+
by?: "width" | "height" | "both";
|
|
15
15
|
width?: number;
|
|
16
16
|
height?: number;
|
|
17
17
|
format?: ImageFormat | null;
|
|
@@ -6,13 +6,6 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
|
|
|
6
6
|
ogImage?: {
|
|
7
7
|
asset?: {
|
|
8
8
|
url: string;
|
|
9
|
-
metadata: {
|
|
10
|
-
dimensions: {
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
aspectRatio: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
9
|
} | undefined;
|
|
17
10
|
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
18
11
|
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
@@ -23,13 +16,6 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
|
|
|
23
16
|
ogImage?: {
|
|
24
17
|
asset?: {
|
|
25
18
|
url: string;
|
|
26
|
-
metadata: {
|
|
27
|
-
dimensions: {
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
aspectRatio: number;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
19
|
} | undefined;
|
|
34
20
|
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
35
21
|
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
@@ -46,13 +32,6 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
|
|
|
46
32
|
ogImage?: {
|
|
47
33
|
asset?: {
|
|
48
34
|
url: string;
|
|
49
|
-
metadata: {
|
|
50
|
-
dimensions: {
|
|
51
|
-
width: number;
|
|
52
|
-
height: number;
|
|
53
|
-
aspectRatio: number;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
35
|
} | undefined;
|
|
57
36
|
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
58
37
|
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
@@ -63,13 +42,6 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
|
|
|
63
42
|
ogImage?: {
|
|
64
43
|
asset?: {
|
|
65
44
|
url: string;
|
|
66
|
-
metadata: {
|
|
67
|
-
dimensions: {
|
|
68
|
-
width: number;
|
|
69
|
-
height: number;
|
|
70
|
-
aspectRatio: number;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
45
|
} | undefined;
|
|
74
46
|
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
75
47
|
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
@@ -86,13 +58,6 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
|
|
|
86
58
|
ogImage?: {
|
|
87
59
|
asset?: {
|
|
88
60
|
url: string;
|
|
89
|
-
metadata: {
|
|
90
|
-
dimensions: {
|
|
91
|
-
width: number;
|
|
92
|
-
height: number;
|
|
93
|
-
aspectRatio: number;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
61
|
} | undefined;
|
|
97
62
|
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
98
63
|
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
@@ -103,13 +68,6 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
|
|
|
103
68
|
ogImage?: {
|
|
104
69
|
asset?: {
|
|
105
70
|
url: string;
|
|
106
|
-
metadata: {
|
|
107
|
-
dimensions: {
|
|
108
|
-
width: number;
|
|
109
|
-
height: number;
|
|
110
|
-
aspectRatio: number;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
71
|
} | undefined;
|
|
114
72
|
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
115
73
|
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
package/package.json
CHANGED
|
@@ -1,68 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@gluhar/app",
|
|
3
|
+
"version": "5.2.0",
|
|
4
|
+
"description": "Gluhar main package. This combines and configures @gluhar/theme, @gluhar/i18n, @gluhar/sanity and @gluhar/core into one main package. Provides numerous components, composables, utils and types.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/types.d.ts",
|
|
10
|
+
"import": "./dist/module.mjs",
|
|
11
|
+
"require": "./dist/module.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./utils/*": {
|
|
14
|
+
"types": "./dist/runtime/utils/*.d.ts",
|
|
15
|
+
"import": "./dist/runtime/utils/*.js"
|
|
16
|
+
},
|
|
17
|
+
"./types": {
|
|
18
|
+
"types": "./dist/runtime/types/index.d.ts",
|
|
19
|
+
"import": "./dist/runtime/types/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"main": "./dist/module.cjs",
|
|
23
|
+
"types": "./dist/types.d.ts",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"CHANGELOG.md"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"gluhar": "npm run gluhar --prefix ../.. -- --cwd=$PWD",
|
|
30
|
+
"build": "npm run gluhar build -- -t module",
|
|
31
|
+
"dev": "nuxi dev playground",
|
|
32
|
+
"dev:build": "nuxi build playground",
|
|
33
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
34
|
+
"lint": "eslint .",
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"test:watch": "vitest watch"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@gluhar/core": "^4.2.0",
|
|
40
|
+
"@gluhar/i18n": "^4.2.0",
|
|
41
|
+
"@gluhar/sanity": "^5.2.0",
|
|
42
|
+
"@gluhar/theme": "^4.1.0",
|
|
43
|
+
"@gluhar/v-gsap-nuxt": "^1.5.1",
|
|
44
|
+
"@nuxt/image": "^1.10.0",
|
|
45
|
+
"@nuxt/kit": "^3.13.1",
|
|
46
|
+
"@pinia/nuxt": "^0.5.4",
|
|
47
|
+
"@sanity/image-url": "^1.1.0",
|
|
48
|
+
"dayjs-nuxt": "^2.1.11",
|
|
49
|
+
"defu": "^6.1.4",
|
|
50
|
+
"lenis": "^1.3.11",
|
|
51
|
+
"pinia": "^2.2.2",
|
|
52
|
+
"v-gsap-nuxt": "^1.4.2"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@nuxt/devtools": "latest",
|
|
56
|
+
"@nuxt/eslint-config": "^0.5.6",
|
|
57
|
+
"@nuxt/module-builder": "^0.8.3",
|
|
58
|
+
"@nuxt/schema": "^3.13.1",
|
|
59
|
+
"@nuxt/test-utils": "^3.14.1",
|
|
60
|
+
"@types/node": "^20.16.5",
|
|
61
|
+
"changelogen": "^0.5.5",
|
|
62
|
+
"eslint": "^9.10.0",
|
|
63
|
+
"nuxt": "^3.13.1",
|
|
64
|
+
"vitest": "^2.0.5"
|
|
65
|
+
},
|
|
66
|
+
"gitHead": "10ebf6500c71e1beeceece4de90467b26aa67a21"
|
|
67
|
+
}
|