@gluhar/app 5.0.7 → 5.0.9

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.
@@ -1,122 +0,0 @@
1
- import type { Seo } from "@gluhar/sanity/types";
2
- export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
3
- defaultSeo: import("vue").Ref<{
4
- title?: import("@gluhar/i18n/types").LocaleString | undefined;
5
- description?: import("@gluhar/i18n/types").LocaleString | undefined;
6
- ogImage?: {
7
- asset?: {
8
- url: string;
9
- metadata: {
10
- dimensions: {
11
- width: number;
12
- height: number;
13
- aspectRatio: number;
14
- };
15
- };
16
- } | undefined;
17
- caption?: import("@gluhar/i18n/types").LocaleString | undefined;
18
- alt?: import("@gluhar/i18n/types").LocaleString | undefined;
19
- } | undefined;
20
- }, Seo | {
21
- title?: import("@gluhar/i18n/types").LocaleString | undefined;
22
- description?: import("@gluhar/i18n/types").LocaleString | undefined;
23
- ogImage?: {
24
- asset?: {
25
- url: string;
26
- metadata: {
27
- dimensions: {
28
- width: number;
29
- height: number;
30
- aspectRatio: number;
31
- };
32
- };
33
- } | undefined;
34
- caption?: import("@gluhar/i18n/types").LocaleString | undefined;
35
- alt?: import("@gluhar/i18n/types").LocaleString | undefined;
36
- } | undefined;
37
- }>;
38
- setDefaultSeo: (seo: Seo) => void;
39
- mobileMenuActive: import("vue").Ref<boolean, boolean>;
40
- toggleMobileMenu: () => void;
41
- closeMobileMenu: () => void;
42
- }, "defaultSeo" | "mobileMenuActive">, Pick<{
43
- defaultSeo: import("vue").Ref<{
44
- title?: import("@gluhar/i18n/types").LocaleString | undefined;
45
- description?: import("@gluhar/i18n/types").LocaleString | undefined;
46
- ogImage?: {
47
- asset?: {
48
- url: string;
49
- metadata: {
50
- dimensions: {
51
- width: number;
52
- height: number;
53
- aspectRatio: number;
54
- };
55
- };
56
- } | undefined;
57
- caption?: import("@gluhar/i18n/types").LocaleString | undefined;
58
- alt?: import("@gluhar/i18n/types").LocaleString | undefined;
59
- } | undefined;
60
- }, Seo | {
61
- title?: import("@gluhar/i18n/types").LocaleString | undefined;
62
- description?: import("@gluhar/i18n/types").LocaleString | undefined;
63
- ogImage?: {
64
- asset?: {
65
- url: string;
66
- metadata: {
67
- dimensions: {
68
- width: number;
69
- height: number;
70
- aspectRatio: number;
71
- };
72
- };
73
- } | undefined;
74
- caption?: import("@gluhar/i18n/types").LocaleString | undefined;
75
- alt?: import("@gluhar/i18n/types").LocaleString | undefined;
76
- } | undefined;
77
- }>;
78
- setDefaultSeo: (seo: Seo) => void;
79
- mobileMenuActive: import("vue").Ref<boolean, boolean>;
80
- toggleMobileMenu: () => void;
81
- closeMobileMenu: () => void;
82
- }, never>, Pick<{
83
- defaultSeo: import("vue").Ref<{
84
- title?: import("@gluhar/i18n/types").LocaleString | undefined;
85
- description?: import("@gluhar/i18n/types").LocaleString | undefined;
86
- ogImage?: {
87
- asset?: {
88
- url: string;
89
- metadata: {
90
- dimensions: {
91
- width: number;
92
- height: number;
93
- aspectRatio: number;
94
- };
95
- };
96
- } | undefined;
97
- caption?: import("@gluhar/i18n/types").LocaleString | undefined;
98
- alt?: import("@gluhar/i18n/types").LocaleString | undefined;
99
- } | undefined;
100
- }, Seo | {
101
- title?: import("@gluhar/i18n/types").LocaleString | undefined;
102
- description?: import("@gluhar/i18n/types").LocaleString | undefined;
103
- ogImage?: {
104
- asset?: {
105
- url: string;
106
- metadata: {
107
- dimensions: {
108
- width: number;
109
- height: number;
110
- aspectRatio: number;
111
- };
112
- };
113
- } | undefined;
114
- caption?: import("@gluhar/i18n/types").LocaleString | undefined;
115
- alt?: import("@gluhar/i18n/types").LocaleString | undefined;
116
- } | undefined;
117
- }>;
118
- setDefaultSeo: (seo: Seo) => void;
119
- mobileMenuActive: import("vue").Ref<boolean, boolean>;
120
- toggleMobileMenu: () => void;
121
- closeMobileMenu: () => void;
122
- }, "setDefaultSeo" | "toggleMobileMenu" | "closeMobileMenu">>;
@@ -1,21 +0,0 @@
1
- import { defineStore, ref } from "#imports";
2
- export const useGStore = defineStore("gluhar", () => {
3
- const defaultSeo = ref({});
4
- const setDefaultSeo = (seo) => {
5
- defaultSeo.value = seo;
6
- };
7
- const mobileMenuActive = ref(false);
8
- const toggleMobileMenu = () => {
9
- mobileMenuActive.value = !mobileMenuActive.value;
10
- };
11
- const closeMobileMenu = () => {
12
- mobileMenuActive.value = false;
13
- };
14
- return {
15
- defaultSeo,
16
- setDefaultSeo,
17
- mobileMenuActive,
18
- toggleMobileMenu,
19
- closeMobileMenu
20
- };
21
- });
@@ -1 +0,0 @@
1
- export {};
File without changes
@@ -1,3 +0,0 @@
1
- import type { SanityPage } from "@gluhar/sanity/types";
2
- export declare const getCanonicalUrl: (page: SanityPage | null) => string;
3
- export declare const defaultSeoQuery = "\n *[_id == \"defaultSeo\"]{\n ...,\n ogImage{\n ...,\n asset->\n }\n }[0]\n";
@@ -1,22 +0,0 @@
1
- import { useRuntimeConfig } from "#imports";
2
- import { envMode } from "@gluhar/core/utils/common";
3
- export const getCanonicalUrl = (page) => {
4
- const prod = envMode() === "prod";
5
- const config = useRuntimeConfig().public;
6
- const websiteUrl = (prod ? config.baseUrl?.toString() : config.devUrl?.toString()) || "http://localhost:3000";
7
- if (!page?.slug) return websiteUrl;
8
- const { _type } = page;
9
- const slug = page.slug.current;
10
- const path = _type === "page" ? slug : `${_type}s/${slug}`;
11
- const url = new URL(path, websiteUrl);
12
- return url.toString();
13
- };
14
- export const defaultSeoQuery = `
15
- *[_id == "defaultSeo"]{
16
- ...,
17
- ogImage{
18
- ...,
19
- asset->
20
- }
21
- }[0]
22
- `;
package/dist/types.d.mts DELETED
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module.js'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { type GluharAppOptions, default } from './module.js'
package/dist/types.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { type GluharAppOptions, default } from './module'