@shwfed/config 1.1.0 → 1.1.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
CHANGED
|
@@ -13,7 +13,7 @@ export default defineNuxtRouteMiddleware((to, from) => {
|
|
|
13
13
|
if (!value || Array.isArray(value)) return;
|
|
14
14
|
if (import.meta.client) {
|
|
15
15
|
const config = useRuntimeConfig().public.shwfed;
|
|
16
|
-
localStorage.setItem(config.ci.job, value);
|
|
16
|
+
localStorage.setItem(config.ci.job || "token", value);
|
|
17
17
|
}
|
|
18
18
|
const { [matchedKey]: _, ...remainingQuery } = to.query;
|
|
19
19
|
return navigateTo({ ...to, query: remainingQuery }, { replace: true });
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { HttpRequestBuilder } from './plugins/http/builder'
|
|
|
2
2
|
import type { Effect, Either } from 'effect'
|
|
3
3
|
import type { toast } from 'vue-sonner'
|
|
4
4
|
import type { ParseError, TypeError, EvaluationError } from './vendor/cel-js/lib/errors'
|
|
5
|
+
import type { Ai } from './plugins/ai'
|
|
5
6
|
|
|
6
7
|
interface HttpService {
|
|
7
8
|
get: (endpoint: string) => HttpRequestBuilder
|
|
@@ -17,6 +18,7 @@ declare module '#app' {
|
|
|
17
18
|
$cel: <T>(expression: string, context?: Record<string, unknown>) => Effect.Effect<T, ParseError | TypeError | EvaluationError>
|
|
18
19
|
$celCheck: (expression: string) => Either.Either<string, ParseError | TypeError>
|
|
19
20
|
$toast: typeof toast
|
|
21
|
+
$ai: Ai
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shwfed/config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Configurable UI for SHWFED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"typescript": "~6.0.3",
|
|
90
90
|
"vitest": "^4.1.6",
|
|
91
91
|
"vue": "^3.5.34",
|
|
92
|
+
"vue-router": "^5.0.7",
|
|
92
93
|
"vue-tsc": "^3.2.8"
|
|
93
94
|
},
|
|
94
95
|
"lint-staged": {
|