wcz-test 6.24.7 → 6.24.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.
- package/dist/ApprovalStatus-lESbUD_x.js +6 -0
- package/dist/DialogsContext-2Yy6yhzQ.js +5 -0
- package/dist/DialogsHooks-DWkC9zAf.js +113 -0
- package/dist/FileHooks-kGkVKOf9.js +2694 -0
- package/dist/FileMeta-Bzeo3ie9.js +17 -0
- package/dist/RouterListItemButton-C_SG0uka.js +17 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/client.js +8 -9
- package/dist/components.js +632 -1454
- package/dist/env-4ZoUrNqp.js +27 -0
- package/dist/exports/server.d.ts +0 -3
- package/dist/hooks.js +371 -985
- package/dist/index.js +1580 -2940
- package/dist/models.js +147 -164
- package/dist/queries.js +519 -911
- package/dist/queryClient--EvGPhnh.js +5 -0
- package/dist/server.js +40 -63
- package/dist/session-7yb0BETM.js +75 -0
- package/dist/{chunks/utils-MD9YwOtu.js → utils-CZraUjBd.js} +24 -34
- package/dist/utils.js +6 -7
- package/dist/vite.js +31 -40
- package/package.json +3 -6
- package/dist/chunks/ApprovalStatus-BtAVFn5p.js +0 -8
- package/dist/chunks/ApprovalStatus-BtAVFn5p.js.map +0 -1
- package/dist/chunks/DialogsContext-DoU_8Eeu.js +0 -6
- package/dist/chunks/DialogsContext-DoU_8Eeu.js.map +0 -1
- package/dist/chunks/DialogsHooks-DOT0O_b4.js +0 -278
- package/dist/chunks/DialogsHooks-DOT0O_b4.js.map +0 -1
- package/dist/chunks/FileHooks-DCnXvUtq.js +0 -3554
- package/dist/chunks/FileHooks-DCnXvUtq.js.map +0 -1
- package/dist/chunks/FileMeta-G1oT3mYK.js +0 -18
- package/dist/chunks/FileMeta-G1oT3mYK.js.map +0 -1
- package/dist/chunks/RouterListItemButton-DTYXk1kh.js +0 -35
- package/dist/chunks/RouterListItemButton-DTYXk1kh.js.map +0 -1
- package/dist/chunks/env-gsqZ6zZD.js +0 -30
- package/dist/chunks/env-gsqZ6zZD.js.map +0 -1
- package/dist/chunks/queryClient-CNvC95mU.js +0 -6
- package/dist/chunks/queryClient-CNvC95mU.js.map +0 -1
- package/dist/chunks/session-vW7WZadj.js +0 -91
- package/dist/chunks/session-vW7WZadj.js.map +0 -1
- package/dist/chunks/utils-MD9YwOtu.js.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/hooks.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/models.js.map +0 -1
- package/dist/queries.js.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/utils.js.map +0 -1
- package/dist/vite.js.map +0 -1
package/dist/server.js
CHANGED
|
@@ -1,92 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { s as
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const state = generateState();
|
|
10
|
-
const codeVerifier = generateCodeVerifier();
|
|
11
|
-
const scopes = ["openid", "profile", "offline_access", "User.Read"];
|
|
12
|
-
const authorizationURL = entraId.createAuthorizationURL(state, codeVerifier, scopes);
|
|
13
|
-
setCookie("entra_oauth_state", state, {
|
|
14
|
-
secure: serverEnv.NODE_ENV === "production",
|
|
1
|
+
import { setCookie as u, getCookie as d, deleteCookie as l } from "@tanstack/react-start/server";
|
|
2
|
+
import { generateState as m, generateCodeVerifier as f, decodeIdToken as k } from "arctic";
|
|
3
|
+
import { s as p } from "./env-4ZoUrNqp.js";
|
|
4
|
+
import { e as h, s as g, a as w } from "./session-7yb0BETM.js";
|
|
5
|
+
const C = async (e) => {
|
|
6
|
+
const o = new URL(e.url).searchParams.get("redirect_uri") || "/", r = m(), s = f(), a = ["openid", "profile", "offline_access", "User.Read"], n = h.createAuthorizationURL(r, s, a);
|
|
7
|
+
return u("entra_oauth_state", r, {
|
|
8
|
+
secure: p.NODE_ENV === "production",
|
|
15
9
|
path: "/",
|
|
16
|
-
httpOnly:
|
|
10
|
+
httpOnly: !0,
|
|
17
11
|
sameSite: "lax",
|
|
18
|
-
maxAge:
|
|
12
|
+
maxAge: 600
|
|
19
13
|
// 10 minutes
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
secure: serverEnv.NODE_ENV === "production",
|
|
14
|
+
}), u("entra_code_verifier", s, {
|
|
15
|
+
secure: p.NODE_ENV === "production",
|
|
23
16
|
path: "/",
|
|
24
|
-
httpOnly:
|
|
17
|
+
httpOnly: !0,
|
|
25
18
|
sameSite: "lax",
|
|
26
|
-
maxAge:
|
|
19
|
+
maxAge: 600
|
|
27
20
|
// 10 minutes,
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
secure: serverEnv.NODE_ENV === "production",
|
|
21
|
+
}), u("entra_redirect_uri", o, {
|
|
22
|
+
secure: p.NODE_ENV === "production",
|
|
31
23
|
path: "/",
|
|
32
|
-
httpOnly:
|
|
24
|
+
httpOnly: !0,
|
|
33
25
|
sameSite: "lax",
|
|
34
|
-
maxAge:
|
|
26
|
+
maxAge: 600
|
|
35
27
|
// 10 minutes,
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const url = new URL(request.url);
|
|
41
|
-
const code = url.searchParams.get("code");
|
|
42
|
-
if (!code) return new Response("Missing code", {
|
|
28
|
+
}), Response.redirect(n.href);
|
|
29
|
+
}, E = async (e) => {
|
|
30
|
+
const t = new URL(e.url), o = t.searchParams.get("code");
|
|
31
|
+
if (!o) return new Response("Missing code", {
|
|
43
32
|
status: 400
|
|
44
33
|
});
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
const codeVerifier = getCookie("entra_code_verifier") ?? null;
|
|
48
|
-
const redirectUri = getCookie("entra_redirect_uri") ?? "/";
|
|
49
|
-
if (!state || !storedState || !codeVerifier || !redirectUri) throw new Response("Missing entra oauth data in cookies", {
|
|
34
|
+
const r = t.searchParams.get("state"), s = d("entra_oauth_state") ?? null, a = d("entra_code_verifier") ?? null, n = d("entra_redirect_uri") ?? "/";
|
|
35
|
+
if (!r || !s || !a || !n) throw new Response("Missing entra oauth data in cookies", {
|
|
50
36
|
status: 400
|
|
51
37
|
});
|
|
52
|
-
if (
|
|
38
|
+
if (r !== s) return new Response("Invalid oauth state", {
|
|
53
39
|
status: 400
|
|
54
40
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const idToken = tokens.idToken();
|
|
60
|
-
const claims = decodeIdToken(idToken);
|
|
61
|
-
await setSessionCookie({
|
|
62
|
-
refreshToken: tokens.refreshToken(),
|
|
41
|
+
l("entra_oauth_state"), l("entra_code_verifier"), l("entra_redirect_uri");
|
|
42
|
+
const i = await h.validateAuthorizationCode(o, a), _ = i.idToken(), c = k(_);
|
|
43
|
+
return await g({
|
|
44
|
+
refreshToken: i.refreshToken(),
|
|
63
45
|
user: {
|
|
64
|
-
id:
|
|
65
|
-
name:
|
|
66
|
-
email:
|
|
46
|
+
id: c.oid,
|
|
47
|
+
name: c.name.split("/")[0],
|
|
48
|
+
email: c.preferred_username
|
|
67
49
|
}
|
|
68
|
-
})
|
|
69
|
-
await setSessionAccessTokenCookie(tokens.accessToken());
|
|
70
|
-
return new Response(null, {
|
|
50
|
+
}), await w(i.accessToken()), new Response(null, {
|
|
71
51
|
status: 302,
|
|
72
52
|
headers: {
|
|
73
|
-
Location:
|
|
53
|
+
Location: n
|
|
74
54
|
}
|
|
75
55
|
});
|
|
76
|
-
}
|
|
77
|
-
const
|
|
78
|
-
const url = new URL(request.url);
|
|
56
|
+
}, L = async (e) => {
|
|
57
|
+
const t = new URL(e.url);
|
|
79
58
|
return new Response(null, {
|
|
80
59
|
status: 302,
|
|
81
60
|
headers: {
|
|
82
|
-
Location:
|
|
61
|
+
Location: t.href
|
|
83
62
|
}
|
|
84
63
|
});
|
|
85
64
|
};
|
|
86
65
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
logout
|
|
66
|
+
E as callback,
|
|
67
|
+
C as login,
|
|
68
|
+
L as logout
|
|
91
69
|
};
|
|
92
|
-
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { redirect as a } from "@tanstack/react-router";
|
|
2
|
+
import { getCookie as E, deleteCookie as _, setCookie as S } from "@tanstack/react-start/server";
|
|
3
|
+
import T from "jsonwebtoken";
|
|
4
|
+
import * as e from "zod";
|
|
5
|
+
import c from "zod";
|
|
6
|
+
import "jwks-rsa";
|
|
7
|
+
import { MicrosoftEntraId as C } from "arctic";
|
|
8
|
+
import { s as o } from "./env-4ZoUrNqp.js";
|
|
9
|
+
const f = new C(o.MICROSOFT_TENANT_ID, o.MICROSOFT_CLIENT_ID, o.MICROSOFT_CLIENT_SECRET, o.MICROSOFT_REDIRECT_URI), u = e.object({
|
|
10
|
+
id: e.string(),
|
|
11
|
+
name: e.string(),
|
|
12
|
+
email: e.email(),
|
|
13
|
+
groups: e.array(e.string())
|
|
14
|
+
});
|
|
15
|
+
e.object({
|
|
16
|
+
id: e.string(),
|
|
17
|
+
displayName: e.string(),
|
|
18
|
+
jobTitle: e.string(),
|
|
19
|
+
mail: e.email(),
|
|
20
|
+
mobilePhone: e.string()
|
|
21
|
+
});
|
|
22
|
+
const r = "session", p = "access_token", m = "/", I = c.object({
|
|
23
|
+
refreshToken: c.string(),
|
|
24
|
+
user: u.omit({
|
|
25
|
+
groups: !0
|
|
26
|
+
})
|
|
27
|
+
}), O = async (s) => {
|
|
28
|
+
const t = E(r);
|
|
29
|
+
if (!t)
|
|
30
|
+
throw a({
|
|
31
|
+
href: `/api/auth/login?redirect_uri=${encodeURIComponent(s ?? m)}`
|
|
32
|
+
});
|
|
33
|
+
const n = T.verify(t, o.SESSION_SECRET), i = I.safeParse(n);
|
|
34
|
+
if (!i.success)
|
|
35
|
+
throw _(r), a({
|
|
36
|
+
href: `/api/auth/login?redirect_uri=${encodeURIComponent(s ?? m)}`
|
|
37
|
+
});
|
|
38
|
+
return i.data;
|
|
39
|
+
}, A = async () => {
|
|
40
|
+
const s = E(p);
|
|
41
|
+
if (s) return s;
|
|
42
|
+
const t = await O(), n = await f.refreshAccessToken(t.refreshToken, []);
|
|
43
|
+
return await k({
|
|
44
|
+
...t,
|
|
45
|
+
refreshToken: n.refreshToken()
|
|
46
|
+
}), await g(n.accessToken()), n.accessToken();
|
|
47
|
+
}, k = async (s) => {
|
|
48
|
+
const t = T.sign(s, o.SESSION_SECRET, {
|
|
49
|
+
expiresIn: "7d"
|
|
50
|
+
});
|
|
51
|
+
S(r, t, {
|
|
52
|
+
secure: o.NODE_ENV === "production",
|
|
53
|
+
path: "/",
|
|
54
|
+
httpOnly: !0,
|
|
55
|
+
sameSite: "lax",
|
|
56
|
+
maxAge: 10080 * 60
|
|
57
|
+
// 7 days
|
|
58
|
+
});
|
|
59
|
+
}, g = async (s) => {
|
|
60
|
+
S(p, s, {
|
|
61
|
+
secure: o.NODE_ENV === "production",
|
|
62
|
+
path: "/",
|
|
63
|
+
httpOnly: !0,
|
|
64
|
+
sameSite: "lax",
|
|
65
|
+
maxAge: 300
|
|
66
|
+
// 5 minutes
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
g as a,
|
|
71
|
+
f as e,
|
|
72
|
+
A as g,
|
|
73
|
+
O as r,
|
|
74
|
+
k as s
|
|
75
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
class Platform {
|
|
1
|
+
import r from "axios";
|
|
2
|
+
import { c as s } from "./env-4ZoUrNqp.js";
|
|
3
|
+
const l = "#00506E", g = "#64DC00";
|
|
4
|
+
class p {
|
|
6
5
|
static get isAndroid() {
|
|
7
6
|
return /android/i.test(this.userAgent);
|
|
8
7
|
}
|
|
@@ -16,23 +15,23 @@ class Platform {
|
|
|
16
15
|
return /Macintosh|MacIntel|MacPPC|Mac68K/.test(this.userAgent);
|
|
17
16
|
}
|
|
18
17
|
static get userAgent() {
|
|
19
|
-
return typeof navigator
|
|
18
|
+
return typeof navigator > "u" ? "" : navigator.userAgent;
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
|
-
const
|
|
21
|
+
const h = () => ({
|
|
23
22
|
meta: [{
|
|
24
23
|
charSet: "utf-8"
|
|
25
24
|
}, {
|
|
26
25
|
name: "viewport",
|
|
27
26
|
content: "width=device-width, initial-scale=1"
|
|
28
27
|
}, {
|
|
29
|
-
title:
|
|
28
|
+
title: s.VITE_APP_TITLE
|
|
30
29
|
}, {
|
|
31
30
|
name: "og:type",
|
|
32
31
|
content: "website"
|
|
33
32
|
}, {
|
|
34
33
|
name: "og:title",
|
|
35
|
-
content:
|
|
34
|
+
content: s.VITE_APP_TITLE
|
|
36
35
|
}, {
|
|
37
36
|
name: "og:image",
|
|
38
37
|
content: "/favicon-32x32.png"
|
|
@@ -58,34 +57,25 @@ const rootRouteHead = () => ({
|
|
|
58
57
|
rel: "icon",
|
|
59
58
|
href: "/favicon.ico"
|
|
60
59
|
}]
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
baseURL: clientEnv.VITE_API_URL
|
|
60
|
+
}), u = r.create({
|
|
61
|
+
baseURL: s.VITE_API_URL
|
|
64
62
|
// TODO: Not working in children projects
|
|
65
|
-
})
|
|
66
|
-
const getFieldStatus = (field) => {
|
|
63
|
+
}), A = (e) => {
|
|
67
64
|
const {
|
|
68
|
-
meta
|
|
69
|
-
} =
|
|
70
|
-
const isTouched = meta.isTouched;
|
|
71
|
-
const hasError = !!meta.errors.length;
|
|
72
|
-
const helperText = meta.errors[0]?.message;
|
|
65
|
+
meta: t
|
|
66
|
+
} = e.state, n = t.isTouched, a = !!t.errors.length, i = t.errors[0]?.message;
|
|
73
67
|
return {
|
|
74
|
-
isTouched,
|
|
75
|
-
hasError,
|
|
76
|
-
helperText
|
|
68
|
+
isTouched: n,
|
|
69
|
+
hasError: a,
|
|
70
|
+
helperText: i
|
|
77
71
|
};
|
|
78
|
-
};
|
|
79
|
-
const toKebabCase = (str) => {
|
|
80
|
-
return str.replaceAll(/([a-z])([A-Z])/g, "$1-$2").replaceAll(/[\s_]+/g, "-").replaceAll(/[^a-zA-Z0-9-]/g, "").toLowerCase().replaceAll(/-+/g, "-").replaceAll(/(^-|-$)/g, "");
|
|
81
|
-
};
|
|
72
|
+
}, f = (e) => e.replaceAll(/([a-z])([A-Z])/g, "$1-$2").replaceAll(/[\s_]+/g, "-").replaceAll(/[^a-zA-Z0-9-]/g, "").toLowerCase().replaceAll(/-+/g, "-").replaceAll(/(^-|-$)/g, "");
|
|
82
73
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
74
|
+
p as P,
|
|
75
|
+
l as W,
|
|
76
|
+
g as a,
|
|
77
|
+
A as g,
|
|
78
|
+
u as h,
|
|
79
|
+
h as r,
|
|
80
|
+
f as t
|
|
90
81
|
};
|
|
91
|
-
//# sourceMappingURL=utils-MD9YwOtu.js.map
|
package/dist/utils.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { uuidv7 } from "uuidv7";
|
|
2
|
-
import { h } from "./
|
|
3
|
-
import { createEnv } from "@t3-oss/env-core";
|
|
1
|
+
import { uuidv7 as e } from "uuidv7";
|
|
2
|
+
import { h as p } from "./utils-CZraUjBd.js";
|
|
3
|
+
import { createEnv as m } from "@t3-oss/env-core";
|
|
4
4
|
export {
|
|
5
|
-
createEnv,
|
|
6
|
-
|
|
7
|
-
uuidv7
|
|
5
|
+
m as createEnv,
|
|
6
|
+
p as httpClient,
|
|
7
|
+
e as uuidv7
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/vite.js
CHANGED
|
@@ -1,65 +1,56 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
let localesPath;
|
|
1
|
+
import t from "node:fs";
|
|
2
|
+
import n from "node:path";
|
|
3
|
+
function S() {
|
|
4
|
+
const s = "virtual:wcz-layout", l = "\0" + s;
|
|
5
|
+
let e;
|
|
7
6
|
return {
|
|
8
7
|
name: "vite:wcz-layout",
|
|
9
8
|
enforce: "pre",
|
|
10
|
-
configResolved(
|
|
11
|
-
|
|
9
|
+
configResolved(r) {
|
|
10
|
+
e = n.resolve(r.root, "src/locales");
|
|
12
11
|
},
|
|
13
12
|
config() {
|
|
14
13
|
return {
|
|
15
14
|
optimizeDeps: {
|
|
16
|
-
exclude: [
|
|
15
|
+
exclude: [s]
|
|
17
16
|
},
|
|
18
17
|
ssr: {
|
|
19
18
|
noExternal: ["@mui/*"]
|
|
19
|
+
},
|
|
20
|
+
resolve: {
|
|
21
|
+
dedupe: ["react", "react-dom", "react-is", "@emotion/*", "@mui/*"]
|
|
20
22
|
}
|
|
21
23
|
};
|
|
22
24
|
},
|
|
23
|
-
resolveId(
|
|
24
|
-
|
|
25
|
-
return null;
|
|
25
|
+
resolveId(r) {
|
|
26
|
+
return r === s ? l : null;
|
|
26
27
|
},
|
|
27
|
-
load(
|
|
28
|
-
if (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
const files = fs.readdirSync(localesPath);
|
|
39
|
-
const jsonFiles = files.filter((f) => f.endsWith(".json"));
|
|
40
|
-
const resources = {};
|
|
41
|
-
for (const file of jsonFiles) {
|
|
42
|
-
const lang = path.basename(file, ".json");
|
|
43
|
-
const filePath = path.join(localesPath, file);
|
|
28
|
+
load(r) {
|
|
29
|
+
if (r !== l) return null;
|
|
30
|
+
t.existsSync(e) || t.mkdirSync(e, {
|
|
31
|
+
recursive: !0
|
|
32
|
+
});
|
|
33
|
+
const a = n.join(e, "en.json");
|
|
34
|
+
t.existsSync(a) || t.writeFileSync(a, JSON.stringify({}));
|
|
35
|
+
const d = t.readdirSync(e).filter((o) => o.endsWith(".json")), i = {};
|
|
36
|
+
for (const o of d) {
|
|
37
|
+
const u = n.basename(o, ".json"), f = n.join(e, o);
|
|
44
38
|
try {
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
translation: translations
|
|
39
|
+
const c = t.readFileSync(f, "utf-8"), y = JSON.parse(c);
|
|
40
|
+
i[u] = {
|
|
41
|
+
translation: y
|
|
49
42
|
};
|
|
50
|
-
} catch (
|
|
51
|
-
console.error(`[vite:layout] Error parsing ${
|
|
52
|
-
resources[lang] = {
|
|
43
|
+
} catch (c) {
|
|
44
|
+
console.error(`[vite:layout] Error parsing ${o}:`, c), i[u] = {
|
|
53
45
|
translation: {}
|
|
54
46
|
};
|
|
55
47
|
}
|
|
56
|
-
this.addWatchFile(
|
|
48
|
+
this.addWatchFile(f);
|
|
57
49
|
}
|
|
58
|
-
return `export const resources = ${JSON.stringify(
|
|
50
|
+
return `export const resources = ${JSON.stringify(i)};`;
|
|
59
51
|
}
|
|
60
52
|
};
|
|
61
53
|
}
|
|
62
54
|
export {
|
|
63
|
-
viteWczLayout
|
|
55
|
+
S as viteWczLayout
|
|
64
56
|
};
|
|
65
|
-
//# sourceMappingURL=vite.js.map
|
package/package.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wcz-test",
|
|
3
|
-
"version": "6.24.
|
|
3
|
+
"version": "6.24.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "dist/index.js",
|
|
8
|
-
"module": "dist/index.js",
|
|
9
|
-
"types": "dist/exports/index.d.ts",
|
|
10
7
|
"exports": {
|
|
11
8
|
".": {
|
|
12
9
|
"types": "./dist/exports/index.d.ts",
|
|
@@ -59,7 +56,6 @@
|
|
|
59
56
|
},
|
|
60
57
|
"dependencies": {
|
|
61
58
|
"@t3-oss/env-core": "^0.13.10",
|
|
62
|
-
"@types/pg": "^8.16.0",
|
|
63
59
|
"arctic": "^3.7.0",
|
|
64
60
|
"axios": "^1.13.2",
|
|
65
61
|
"file-saver": "^2.0.5",
|
|
@@ -67,7 +63,6 @@
|
|
|
67
63
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
68
64
|
"jsonwebtoken": "^9.0.3",
|
|
69
65
|
"jwks-rsa": "^3.2.0",
|
|
70
|
-
"pg": "^8.16.3",
|
|
71
66
|
"react-dropzone": "^14.3.8",
|
|
72
67
|
"react-i18next": "^16.5.0",
|
|
73
68
|
"react-intersection-observer": "^10.0.0",
|
|
@@ -82,6 +77,7 @@
|
|
|
82
77
|
"@types/file-saver": "^2.0.7",
|
|
83
78
|
"@types/jsonwebtoken": "^9.0.10",
|
|
84
79
|
"@types/node": "^24.10.2",
|
|
80
|
+
"@types/pg": "^8.16.0",
|
|
85
81
|
"@types/react": "^19.2.7",
|
|
86
82
|
"@types/react-dom": "^19.2.3",
|
|
87
83
|
"@vitejs/plugin-react": "^5.1.2",
|
|
@@ -111,6 +107,7 @@
|
|
|
111
107
|
"@tanstack/react-router-ssr-query": "1.x",
|
|
112
108
|
"@tanstack/react-start": "1.x",
|
|
113
109
|
"dayjs": "1.x",
|
|
110
|
+
"pg": "8.x",
|
|
114
111
|
"react": "19.x",
|
|
115
112
|
"react-dom": "19.x",
|
|
116
113
|
"zod": "4.x"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import z__default from "zod";
|
|
2
|
-
const ApprovalStepResult = z__default.enum(["NotAvailable", "FutureApproval", "WaitingForApproval", "Approved", "Rejected", "Skipped", "Withdrawn", "Cancelled"]);
|
|
3
|
-
const ApprovalStatus = z__default.enum(["WaitingForApproval", "Approved", "PartiallyApproved", "Rejected", "Withdrawn", "Cancelled"]);
|
|
4
|
-
export {
|
|
5
|
-
ApprovalStepResult as A,
|
|
6
|
-
ApprovalStatus as a
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=ApprovalStatus-BtAVFn5p.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApprovalStatus-BtAVFn5p.js","sources":["../../src/models/approval/ApprovalStepResult.ts","../../src/models/approval/ApprovalStatus.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const ApprovalStepResult = z.enum([\n \"NotAvailable\",\n \"FutureApproval\",\n \"WaitingForApproval\",\n \"Approved\",\n \"Rejected\",\n \"Skipped\",\n \"Withdrawn\",\n \"Cancelled\"\n]);","import z from \"zod\";\n\nexport const ApprovalStatus = z.enum([\n \"WaitingForApproval\",\n \"Approved\",\n \"PartiallyApproved\",\n \"Rejected\",\n \"Withdrawn\",\n \"Cancelled\"\n]);"],"names":["ApprovalStepResult","z","enum","ApprovalStatus"],"mappings":";AAEO,MAAMA,qBAAqBC,WAAEC,KAAK,CACrC,gBACA,kBACA,sBACA,YACA,YACA,WACA,aACA,WAAW,CACd;ACTM,MAAMC,iBAAiBF,WAAEC,KAAK,CACjC,sBACA,YACA,qBACA,YACA,aACA,WAAW,CACd;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogsContext-DoU_8Eeu.js","sources":["../../src/contexts/DialogsContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { CloseDialog, OpenDialog } from \"../hooks/DialogsHooks\";\n\nexport interface DialogsContextValue {\n open: OpenDialog;\n close: CloseDialog;\n}\n\nexport const DialogsContext = createContext<DialogsContextValue>({} as DialogsContextValue);"],"names":["DialogsContext","createContext"],"mappings":";AAQO,MAAMA,iBAAiBC,cAAmC,CAAA,CAAyB;"}
|