@cooperco/nuxt-layer-base 1.0.0 → 1.0.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/.env +10 -0
- package/.nuxt/app.config.mjs +21 -0
- package/.nuxt/components.d.ts +126 -0
- package/.nuxt/dev/index.mjs +3013 -0
- package/.nuxt/dev/index.mjs.map +1 -0
- package/.nuxt/dist/server/client.manifest.mjs +1 -0
- package/.nuxt/dist/server/server.mjs +1 -0
- package/.nuxt/eslint-typegen.d.ts +9474 -0
- package/.nuxt/eslint.config.d.mts +9 -0
- package/.nuxt/eslint.config.mjs +53 -0
- package/.nuxt/i18n-route-resources.mjs +3 -0
- package/.nuxt/imports.d.ts +34 -0
- package/.nuxt/manifest/latest.json +1 -0
- package/.nuxt/manifest/meta/11e69554-8b10-4927-b475-a1b7f6b2bbac.json +1 -0
- package/.nuxt/manifest/meta/dev.json +1 -0
- package/.nuxt/nitro.json +17 -0
- package/.nuxt/nuxt.d.ts +20 -0
- package/.nuxt/nuxt.json +9 -0
- package/.nuxt/nuxt.node.d.ts +13 -0
- package/.nuxt/nuxt.shared.d.ts +5 -0
- package/.nuxt/schema/nuxt.schema.d.ts +17 -0
- package/.nuxt/schema/nuxt.schema.json +3 -0
- package/.nuxt/tsconfig.app.json +226 -0
- package/.nuxt/tsconfig.app.tsbuildinfo +1 -0
- package/.nuxt/tsconfig.json +228 -0
- package/.nuxt/tsconfig.node.json +131 -0
- package/.nuxt/tsconfig.node.tsbuildinfo +1 -0
- package/.nuxt/tsconfig.server.json +162 -0
- package/.nuxt/tsconfig.server.tsbuildinfo +1 -0
- package/.nuxt/tsconfig.shared.json +182 -0
- package/.nuxt/tsconfig.shared.tsbuildinfo +1 -0
- package/.nuxt/types/app.config.d.ts +35 -0
- package/.nuxt/types/build.d.ts +25 -0
- package/.nuxt/types/builder-env.d.ts +1 -0
- package/.nuxt/types/i18n-plugin.d.ts +123 -0
- package/.nuxt/types/imports.d.ts +387 -0
- package/.nuxt/types/middleware.d.ts +11 -0
- package/.nuxt/types/modules.d.ts +87 -0
- package/.nuxt/types/nitro-config.d.ts +14 -0
- package/.nuxt/types/nitro-imports.d.ts +162 -0
- package/.nuxt/types/nitro-nuxt.d.ts +59 -0
- package/.nuxt/types/nitro-routes.d.ts +20 -0
- package/.nuxt/types/nitro.d.ts +3 -0
- package/.nuxt/types/plugins.d.ts +41 -0
- package/.nuxt/types/runtime-config.d.ts +102 -0
- package/.nuxt/types/vue-shim.d.ts +0 -0
- package/README.md +217 -0
- package/Users//devin//AppData//Local//JetBrains//WebStorm2025.2//terminal//history//nuxt-layers-history +736 -0
- package/Users//devin//AppData//Local//JetBrains//WebStorm2025.2//terminal//history//nuxt-layers-history1 +0 -0
- package/app/composables/useLoggly.ts +28 -0
- package/app/plugins/loggly.client.ts +70 -0
- package/nuxt.config.ts +24 -2
- package/package.json +7 -4
- package/server/api/loggly.post.ts +58 -0
- package/server/plugins/loggly.ts +46 -0
package/.env
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Example environment variables for Loggly when developing the base layer directly.
|
|
2
|
+
# NOTE: This file is not used by consuming apps that extend the layer.
|
|
3
|
+
# For the top-level playground app in this repo, put your env in: playground/.env
|
|
4
|
+
# For your own app, put env in your app root (e.g. .env or .env.local).
|
|
5
|
+
|
|
6
|
+
# LOGGLY_ENABLED=true
|
|
7
|
+
# LOGGLY_TOKEN=your-loggly-customer-token
|
|
8
|
+
# LOGGLY_TAGS=nuxt,base,app-name,env
|
|
9
|
+
# LOG_LEVEL=info
|
|
10
|
+
# LOGGLY_ENDPOINT=https://logs-01.loggly.com/inputs
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
import { defuFn } from 'defu'
|
|
3
|
+
|
|
4
|
+
const inlineConfig = {
|
|
5
|
+
"nuxt": {}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/** client **/
|
|
9
|
+
import { _replaceAppConfig } from '#app/config'
|
|
10
|
+
|
|
11
|
+
// Vite - webpack is handled directly in #app/config
|
|
12
|
+
if (import.meta.dev && !import.meta.nitro && import.meta.hot) {
|
|
13
|
+
import.meta.hot.accept((newModule) => {
|
|
14
|
+
_replaceAppConfig(newModule.default)
|
|
15
|
+
})
|
|
16
|
+
}
|
|
17
|
+
/** client-end **/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export default /*@__PURE__*/ defuFn(inlineConfig)
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
|
|
2
|
+
import type { DefineComponent, SlotsType } from 'vue'
|
|
3
|
+
type IslandComponent<T extends DefineComponent> = T & DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>>
|
|
4
|
+
type HydrationStrategies = {
|
|
5
|
+
hydrateOnVisible?: IntersectionObserverInit | true
|
|
6
|
+
hydrateOnIdle?: number | true
|
|
7
|
+
hydrateOnInteraction?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap> | true
|
|
8
|
+
hydrateOnMediaQuery?: string
|
|
9
|
+
hydrateAfter?: number
|
|
10
|
+
hydrateWhen?: boolean
|
|
11
|
+
hydrateNever?: true
|
|
12
|
+
}
|
|
13
|
+
type LazyComponent<T> = (T & DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }>)
|
|
14
|
+
interface _GlobalComponents {
|
|
15
|
+
'NuxtWelcome': typeof import("../node_modules/nuxt/dist/app/components/welcome.vue")['default']
|
|
16
|
+
'NuxtLayout': typeof import("../node_modules/nuxt/dist/app/components/nuxt-layout")['default']
|
|
17
|
+
'NuxtErrorBoundary': typeof import("../node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']
|
|
18
|
+
'ClientOnly': typeof import("../node_modules/nuxt/dist/app/components/client-only")['default']
|
|
19
|
+
'DevOnly': typeof import("../node_modules/nuxt/dist/app/components/dev-only")['default']
|
|
20
|
+
'ServerPlaceholder': typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default']
|
|
21
|
+
'NuxtLink': typeof import("../node_modules/nuxt/dist/app/components/nuxt-link")['default']
|
|
22
|
+
'NuxtLoadingIndicator': typeof import("../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']
|
|
23
|
+
'NuxtTime': typeof import("../node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']
|
|
24
|
+
'NuxtRouteAnnouncer': typeof import("../node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']
|
|
25
|
+
'NuxtImg': typeof import("../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']
|
|
26
|
+
'NuxtPicture': typeof import("../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']
|
|
27
|
+
'NuxtLinkLocale': typeof import("../node_modules/@nuxtjs/i18n/dist/runtime/components/NuxtLinkLocale")['default']
|
|
28
|
+
'SwitchLocalePathLink': typeof import("../node_modules/@nuxtjs/i18n/dist/runtime/components/SwitchLocalePathLink")['default']
|
|
29
|
+
'NuxtPage': typeof import("../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']
|
|
30
|
+
'NoScript': typeof import("../node_modules/nuxt/dist/head/runtime/components")['NoScript']
|
|
31
|
+
'Link': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Link']
|
|
32
|
+
'Base': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Base']
|
|
33
|
+
'Title': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Title']
|
|
34
|
+
'Meta': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Meta']
|
|
35
|
+
'Style': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Style']
|
|
36
|
+
'Head': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Head']
|
|
37
|
+
'Html': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Html']
|
|
38
|
+
'Body': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Body']
|
|
39
|
+
'NuxtIsland': typeof import("../node_modules/nuxt/dist/app/components/nuxt-island")['default']
|
|
40
|
+
'NuxtRouteAnnouncer': typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default']
|
|
41
|
+
'LazyNuxtWelcome': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/welcome.vue")['default']>
|
|
42
|
+
'LazyNuxtLayout': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-layout")['default']>
|
|
43
|
+
'LazyNuxtErrorBoundary': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']>
|
|
44
|
+
'LazyClientOnly': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/client-only")['default']>
|
|
45
|
+
'LazyDevOnly': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/dev-only")['default']>
|
|
46
|
+
'LazyServerPlaceholder': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default']>
|
|
47
|
+
'LazyNuxtLink': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-link")['default']>
|
|
48
|
+
'LazyNuxtLoadingIndicator': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']>
|
|
49
|
+
'LazyNuxtTime': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']>
|
|
50
|
+
'LazyNuxtRouteAnnouncer': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']>
|
|
51
|
+
'LazyNuxtImg': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']>
|
|
52
|
+
'LazyNuxtPicture': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']>
|
|
53
|
+
'LazyNuxtLinkLocale': LazyComponent<typeof import("../node_modules/@nuxtjs/i18n/dist/runtime/components/NuxtLinkLocale")['default']>
|
|
54
|
+
'LazySwitchLocalePathLink': LazyComponent<typeof import("../node_modules/@nuxtjs/i18n/dist/runtime/components/SwitchLocalePathLink")['default']>
|
|
55
|
+
'LazyNuxtPage': LazyComponent<typeof import("../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']>
|
|
56
|
+
'LazyNoScript': LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['NoScript']>
|
|
57
|
+
'LazyLink': LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Link']>
|
|
58
|
+
'LazyBase': LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Base']>
|
|
59
|
+
'LazyTitle': LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Title']>
|
|
60
|
+
'LazyMeta': LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Meta']>
|
|
61
|
+
'LazyStyle': LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Style']>
|
|
62
|
+
'LazyHead': LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Head']>
|
|
63
|
+
'LazyHtml': LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Html']>
|
|
64
|
+
'LazyBody': LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Body']>
|
|
65
|
+
'LazyNuxtIsland': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-island")['default']>
|
|
66
|
+
'LazyNuxtRouteAnnouncer': LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default']>
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare module 'vue' {
|
|
70
|
+
export interface GlobalComponents extends _GlobalComponents { }
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export const NuxtWelcome: typeof import("../node_modules/nuxt/dist/app/components/welcome.vue")['default']
|
|
74
|
+
export const NuxtLayout: typeof import("../node_modules/nuxt/dist/app/components/nuxt-layout")['default']
|
|
75
|
+
export const NuxtErrorBoundary: typeof import("../node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']
|
|
76
|
+
export const ClientOnly: typeof import("../node_modules/nuxt/dist/app/components/client-only")['default']
|
|
77
|
+
export const DevOnly: typeof import("../node_modules/nuxt/dist/app/components/dev-only")['default']
|
|
78
|
+
export const ServerPlaceholder: typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default']
|
|
79
|
+
export const NuxtLink: typeof import("../node_modules/nuxt/dist/app/components/nuxt-link")['default']
|
|
80
|
+
export const NuxtLoadingIndicator: typeof import("../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']
|
|
81
|
+
export const NuxtTime: typeof import("../node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']
|
|
82
|
+
export const NuxtRouteAnnouncer: typeof import("../node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']
|
|
83
|
+
export const NuxtImg: typeof import("../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']
|
|
84
|
+
export const NuxtPicture: typeof import("../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']
|
|
85
|
+
export const NuxtLinkLocale: typeof import("../node_modules/@nuxtjs/i18n/dist/runtime/components/NuxtLinkLocale")['default']
|
|
86
|
+
export const SwitchLocalePathLink: typeof import("../node_modules/@nuxtjs/i18n/dist/runtime/components/SwitchLocalePathLink")['default']
|
|
87
|
+
export const NuxtPage: typeof import("../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']
|
|
88
|
+
export const NoScript: typeof import("../node_modules/nuxt/dist/head/runtime/components")['NoScript']
|
|
89
|
+
export const Link: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Link']
|
|
90
|
+
export const Base: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Base']
|
|
91
|
+
export const Title: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Title']
|
|
92
|
+
export const Meta: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Meta']
|
|
93
|
+
export const Style: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Style']
|
|
94
|
+
export const Head: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Head']
|
|
95
|
+
export const Html: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Html']
|
|
96
|
+
export const Body: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Body']
|
|
97
|
+
export const NuxtIsland: typeof import("../node_modules/nuxt/dist/app/components/nuxt-island")['default']
|
|
98
|
+
export const NuxtRouteAnnouncer: typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default']
|
|
99
|
+
export const LazyNuxtWelcome: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/welcome.vue")['default']>
|
|
100
|
+
export const LazyNuxtLayout: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-layout")['default']>
|
|
101
|
+
export const LazyNuxtErrorBoundary: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']>
|
|
102
|
+
export const LazyClientOnly: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/client-only")['default']>
|
|
103
|
+
export const LazyDevOnly: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/dev-only")['default']>
|
|
104
|
+
export const LazyServerPlaceholder: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default']>
|
|
105
|
+
export const LazyNuxtLink: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-link")['default']>
|
|
106
|
+
export const LazyNuxtLoadingIndicator: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']>
|
|
107
|
+
export const LazyNuxtTime: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']>
|
|
108
|
+
export const LazyNuxtRouteAnnouncer: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']>
|
|
109
|
+
export const LazyNuxtImg: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']>
|
|
110
|
+
export const LazyNuxtPicture: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']>
|
|
111
|
+
export const LazyNuxtLinkLocale: LazyComponent<typeof import("../node_modules/@nuxtjs/i18n/dist/runtime/components/NuxtLinkLocale")['default']>
|
|
112
|
+
export const LazySwitchLocalePathLink: LazyComponent<typeof import("../node_modules/@nuxtjs/i18n/dist/runtime/components/SwitchLocalePathLink")['default']>
|
|
113
|
+
export const LazyNuxtPage: LazyComponent<typeof import("../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']>
|
|
114
|
+
export const LazyNoScript: LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['NoScript']>
|
|
115
|
+
export const LazyLink: LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Link']>
|
|
116
|
+
export const LazyBase: LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Base']>
|
|
117
|
+
export const LazyTitle: LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Title']>
|
|
118
|
+
export const LazyMeta: LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Meta']>
|
|
119
|
+
export const LazyStyle: LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Style']>
|
|
120
|
+
export const LazyHead: LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Head']>
|
|
121
|
+
export const LazyHtml: LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Html']>
|
|
122
|
+
export const LazyBody: LazyComponent<typeof import("../node_modules/nuxt/dist/head/runtime/components")['Body']>
|
|
123
|
+
export const LazyNuxtIsland: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/nuxt-island")['default']>
|
|
124
|
+
export const LazyNuxtRouteAnnouncer: LazyComponent<typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default']>
|
|
125
|
+
|
|
126
|
+
export const componentNames: string[]
|