@wssto2/vue-core 0.12.1 → 0.13.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/CHANGELOG.md +33 -0
- package/README.md +4 -2
- package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-CzQbD2Pc.js → AccessGate.vue_vue_type_script_setup_true_lang-DEzXovsY.js} +1 -1
- package/dist/{Activity-CdkJW68R.js → Activity-ChfxdvXf.js} +24 -23
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-lPj9hPqV.js} +33 -33
- package/dist/{Changes-DxK_QfiB.js → Changes-BCa43_mO.js} +18 -17
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-x0jyJ01f.js → CollectionPage.vue_vue_type_script_setup_true_lang-C1GCvyZx.js} +6 -6
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-C_ZytnW-.js → DataTable.vue_vue_type_script_setup_true_lang-B9r9M5Gt.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-CeNwBbJT.js → DateField.vue_vue_type_script_setup_true_lang-B5UUY1OO.js} +2 -2
- package/dist/{DeadLetters-DnA7LP1w.js → DeadLetters-wFTqhISU.js} +5 -5
- package/dist/{General-2matxl2Y.js → General-jW7u4MjH.js} +16 -15
- package/dist/{IncidentRecord-Bt3G4HlX.js → IncidentRecord-zTemLz2R.js} +6 -6
- package/dist/{IncidentsList-2iwgqp9J.js → IncidentsList-yu0xSMrH.js} +6 -6
- package/dist/{NewRolePage-DhGFwvk3.js → NewRolePage-CQ5UVaHs.js} +3 -3
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-B3UrXNqH.js → NumberField.vue_vue_type_script_setup_true_lang-YVgf5CP6.js} +1 -1
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-DbGZSNQc.js → PersonAccess.vue_vue_type_script_setup_true_lang-CWCt9_dM.js} +2 -2
- package/dist/{ProfilePage-CpuyDBAv.js → ProfilePage-Ca3x3UAH.js} +79 -77
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-DqGc3Jyo.js → RecordHeader.vue_vue_type_script_setup_true_lang-Do_ATJwT.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-DljhsTU4.js → ResourcePage.vue_vue_type_script_setup_true_lang-Coz91xht.js} +1 -1
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-C0FIotFA.js → RoleEditor.vue_vue_type_script_setup_true_lang-d_aaeXTT.js} +2 -2
- package/dist/{RolePage-DaNv049g.js → RolePage-BUj1w1m1.js} +5 -5
- package/dist/{RolesPage-6hlzJes_.js → RolesPage-NKzBUsrM.js} +3 -3
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-Dh3sXUt_.js → SectionNavigator.vue_vue_type_script_setup_true_lang-DfKEhTFv.js} +2 -2
- package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-FJbWxME_.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-4nbhEpv_.js} +10 -9
- package/dist/{ServiceAccountRecord-0-JF5lRx.js → ServiceAccountRecord-ClbyeLhL.js} +8 -8
- package/dist/{ServiceAccountsList-DcsnOcf-.js → ServiceAccountsList-B2VDnYxD.js} +5 -5
- package/dist/{Sessions-DgWhpk-i.js → Sessions-BjkciyHH.js} +23 -21
- package/dist/{SettingsPage-BXPWATYU.js → SettingsPage-Csb14qsx.js} +7 -7
- package/dist/{SignIn-DPoUwHZd.js → SignIn-DPFMv4C7.js} +14 -12
- package/dist/{SignInPage-OyrVemro.js → SignInPage-DukoFqkt.js} +2 -2
- package/dist/{SignIns-BMDrZVVp.js → SignIns-DvdpNkiS.js} +23 -22
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-D-Em4glH.js → TimeField.vue_vue_type_script_setup_true_lang-DpDXHH7u.js} +2 -2
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-ClZAAUMd.js → Timestamp.vue_vue_type_script_setup_true_lang-DlEUKWra.js} +1 -1
- package/dist/{UserRecord-BW-gdCqi.js → UserRecord-B9SeSWQh.js} +57 -55
- package/dist/{UsersList-B3ZF_1Dj.js → UsersList-CREG8q3l.js} +4 -4
- package/dist/access/index.js +4 -4
- package/dist/app/application.d.ts +14 -6
- package/dist/app/current.d.ts +11 -0
- package/dist/app/environment.d.ts +8 -0
- package/dist/app/index.d.ts +1 -0
- package/dist/app/index.js +14 -12
- package/dist/application-DomS6sbx.js +435 -0
- package/dist/collection/http.d.ts +16 -1
- package/dist/collection/index.d.ts +1 -1
- package/dist/collection/index.js +34 -32
- package/dist/content/Money.vue.d.ts +1 -1
- package/dist/content/index.js +151 -158
- package/dist/{contributions-CeG4bszd.js → contributions-obnyn03x.js} +1 -1
- package/dist/current-B0lHKTWr.js +17 -0
- package/dist/form/DateField.vue.d.ts +2 -2
- package/dist/form/DateTimeField.vue.d.ts +2 -2
- package/dist/form/MoneyField.vue.d.ts +1 -1
- package/dist/form/NumberField.vue.d.ts +1 -1
- package/dist/form/date/MonthYearPanel.vue.d.ts +1 -1
- package/dist/form/date/days.d.ts +3 -3
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +1111 -1081
- package/dist/form/zodErrorMap.d.ts +35 -0
- package/dist/format/format.d.ts +51 -6
- package/dist/format/index.d.ts +1 -1
- package/dist/format/index.js +1 -1
- package/dist/format-DoKs29bZ.js +118 -0
- package/dist/{guards-Biv_SlGn.js → guards-DGcSfTEh.js} +1 -1
- package/dist/http-DOEfFCDA.js +107 -0
- package/dist/i18n/index.js +15 -15
- package/dist/identity/index.d.ts +2 -0
- package/dist/identity/index.js +43 -40
- package/dist/identity/usePreferences.d.ts +19 -0
- package/dist/incidents/clientErrorReporter.d.ts +2 -1
- package/dist/incidents/index.js +1 -1
- package/dist/{index-kEHY7hcG.js → index-Be9Q1PB_.js} +78 -76
- package/dist/{index-Cq9TuOqH.js → index-DZikGJ8L.js} +457 -511
- package/dist/{index-ClJeyW3F.js → index-D_yyd4C2.js} +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/intlLocale.d.ts +5 -2
- package/dist/modules/identity/entities.d.ts +4 -0
- package/dist/modules/identity/routes.d.ts +5 -2
- package/dist/modules/identity/schemas.d.ts +6 -2
- package/dist/modules/incident/routes.d.ts +2 -0
- package/dist/modules/incident/schemas.d.ts +2 -0
- package/dist/{navigation-TnVFYRaX.js → navigation-CctcxT51.js} +1 -1
- package/dist/{neighbors-OyvGi233.js → neighbors-Csfan8Ho.js} +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/onboarding/Tip.vue.d.ts +41 -0
- package/dist/onboarding/index.d.ts +1 -0
- package/dist/onboarding/index.js +145 -0
- package/dist/onboarding/tips.d.ts +5 -0
- package/dist/page/index.js +3 -3
- package/dist/phone/index.js +74 -74
- package/dist/phone/phone.d.ts +3 -3
- package/dist/platform/httpSession.d.ts +1 -1
- package/dist/platform/index.d.ts +2 -0
- package/dist/platform/index.js +16 -13
- package/dist/platform/preferences.d.ts +35 -0
- package/dist/platform/session.d.ts +6 -1
- package/dist/platform-DtISOEt7.js +284 -0
- package/dist/playwright/session.d.ts +2 -0
- package/dist/preferences-hYhrw8Uy.js +91 -0
- package/dist/resource/index.d.ts +1 -0
- package/dist/resource/index.js +24 -8
- package/dist/resource/read.d.ts +16 -0
- package/dist/router/index.js +3 -3
- package/dist/{rowLayout-BsKEzEME.js → rowLayout-y1IB_h2r.js} +2 -2
- package/dist/{sections-CvUwZ-S1.js → sections-fkW_IJLc.js} +1 -1
- package/dist/{serverMessages-B6GHgi40.js → serverMessages-Ddghrewh.js} +1 -1
- package/dist/shell/darkMode.d.ts +13 -8
- package/dist/shell/index.js +396 -384
- package/dist/{state-6KSYsVw0.js → state-CXMexi0l.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/app.d.ts +11 -0
- package/dist/testing/format.d.ts +4 -2
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +96 -89
- package/dist/testing/platform.d.ts +2 -0
- package/dist/usePreferences-B8LIZp_f.js +47 -0
- package/dist/{useTypedEntry-C_Bk4sI0.js → useTypedEntry-DKs8I1yP.js} +279 -280
- package/package.json +6 -2
- package/src/styles/components.css +17 -0
- package/dist/application-CuzT-0vW.js +0 -420
- package/dist/format-D8KUBmbS.js +0 -87
- package/dist/http-Dm0uXY9O.js +0 -95
- package/dist/intlLocale-CeRU44qJ.js +0 -4
- package/dist/platform-BQOX_Ntw.js +0 -283
package/dist/identity/index.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export { usersRoutes } from "./users/routes";
|
|
|
35
35
|
export { default as ActionRow } from "./shared/ActionRow.vue";
|
|
36
36
|
export { default as SignInAsButton } from "./SignInAsButton.vue";
|
|
37
37
|
export { isSessionEnded, lockedUntil, returnToOwnAccount, signIn, signInAs } from "./signIn";
|
|
38
|
+
export { usePreferences } from "./usePreferences";
|
|
39
|
+
export type { UsedPreferences } from "./usePreferences";
|
|
38
40
|
export { parseIdentityUser } from "./user";
|
|
39
41
|
export type { IdentityUser } from "./user";
|
|
40
42
|
export { serviceAccountsFeature } from "./serviceaccounts/feature";
|
package/dist/identity/index.js
CHANGED
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { i as a } from "../preferences-hYhrw8Uy.js";
|
|
2
|
+
import { k as o, r as n, t as i, P as r, j as u, h as c, _ as d, q as S, i as g, U as A, v as f, w as l, x as p, y as m, z as I, A as R, o as x, B as y, C as P, n as U, s as v, e as D, g as E, b, f as w, D as F, E as B, c as C } from "../index-DZikGJ8L.js";
|
|
3
|
+
import { a as T, _ } from "../ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js";
|
|
4
|
+
import { i as k, l as N, r as O, s as j, a as q, u as z } from "../usePreferences-B8LIZp_f.js";
|
|
5
|
+
import { s as K } from "../routes-Beyr5NQo.js";
|
|
4
6
|
export {
|
|
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
|
-
|
|
7
|
+
T as ActionRow,
|
|
8
|
+
o as ChangeFeed,
|
|
9
|
+
n as DeactivateDialog,
|
|
10
|
+
i as NewUserDialog,
|
|
11
|
+
r as PERSON,
|
|
12
|
+
u as PageBar,
|
|
13
|
+
_ as SectionIntro,
|
|
14
|
+
c as SessionList,
|
|
15
|
+
d as SignInAsButton,
|
|
16
|
+
S as SignInList,
|
|
17
|
+
g as SignInTable,
|
|
18
|
+
A as USER_VIEWS,
|
|
19
|
+
f as embedHeaders,
|
|
20
|
+
l as embedSession,
|
|
21
|
+
p as identityFeature,
|
|
22
|
+
m as identityPlatform,
|
|
23
|
+
a as identityRoutes,
|
|
24
|
+
I as identitySessionAdapter,
|
|
25
|
+
k as isSessionEnded,
|
|
26
|
+
N as lockedUntil,
|
|
27
|
+
R as parseIdentityUser,
|
|
28
|
+
x as personActionsKey,
|
|
29
|
+
y as profileRoutes,
|
|
30
|
+
O as returnToOwnAccount,
|
|
31
|
+
P as serviceAccountsFeature,
|
|
32
|
+
U as serviceAccountsRoutes,
|
|
33
|
+
K as serviceaccountRoutes,
|
|
34
|
+
j as signIn,
|
|
35
|
+
q as signInAs,
|
|
36
|
+
v as statusTone,
|
|
37
|
+
D as usePersonActions,
|
|
38
|
+
E as usePersonSessions,
|
|
39
|
+
z as usePreferences,
|
|
40
|
+
b as useUserDialogs,
|
|
41
|
+
w as useUsersContext,
|
|
42
|
+
F as userList,
|
|
43
|
+
B as usersFeature,
|
|
44
|
+
C as usersRoutes
|
|
42
45
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Preferences, type PreferencesPatch } from "../platform";
|
|
2
|
+
/** `Preferences` as a component uses them: `save` never rejects. */
|
|
3
|
+
export interface UsedPreferences<T extends object> {
|
|
4
|
+
readonly value: Preferences<T>["value"];
|
|
5
|
+
/** Applies the patch at once and saves it (see `Preferences.save`). A refusal is taken back and said in a toast; resolves whether it was saved. */
|
|
6
|
+
save(patch: PreferencesPatch<T>): Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The signed-in person's stored preferences (`preferences` of the session payload, saved through go-core identity's
|
|
10
|
+
* `PUT /v1/auth/preferences`), typed with the application's own shape:
|
|
11
|
+
*
|
|
12
|
+
* const preferences = usePreferences<{ dark_mode: boolean; onboarding: { tips_dismissed: string[] } }>();
|
|
13
|
+
* preferences.value.value.dark_mode; // reactive
|
|
14
|
+
* await preferences.save({ dark_mode: true }); // at once on screen, then the server's merged answer
|
|
15
|
+
*
|
|
16
|
+
* A patch merges as JSON Merge Patch: objects merge, `null` deletes a key, arrays replace. Saves are sent one after another.
|
|
17
|
+
* Call it in `setup`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function usePreferences<T extends object = Record<string, unknown>>(): UsedPreferences<T>;
|
|
@@ -28,7 +28,8 @@ export declare const MAX_REPORTS_PER_SESSION = 20;
|
|
|
28
28
|
*
|
|
29
29
|
* createApplication({ platform, features, onError: clientErrorReporter({ platform, appVersion: __APP_VERSION__ }) })
|
|
30
30
|
*
|
|
31
|
-
* Reported: component errors, unhandled rejections
|
|
31
|
+
* Reported: component errors, unhandled rejections, window errors and errors the code handled itself (`report` of the application,
|
|
32
|
+
* sent with `source: "handled"` and its `detail`) that carry a real `Error` whose stack has a frame of the
|
|
32
33
|
* application's own origin. Not reported: failed requests (`ApiError`, of any kind: the server captures its own 5xx),
|
|
33
34
|
* `Script error.`, errors of extensions and other origins, failures of effects, loads and the router, and anything while nobody
|
|
34
35
|
* is signed in. Each error (message plus top frame) goes once per page session, at most 20 distinct ones. A report sends the message,
|
package/dist/incidents/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as p } from "./route-goWMxDUN.js";
|
|
2
|
-
import { d as V, p as
|
|
3
|
-
import { defineComponent as A, computed as O, onMounted as
|
|
2
|
+
import { d as V, p as L } from "./feature-DdUAfyi4.js";
|
|
3
|
+
import { defineComponent as A, computed as O, onMounted as U, watch as X, openBlock as S, createBlock as y, unref as e, withCtx as I, createElementVNode as B, createVNode as c, mergeProps as l, createCommentVNode as R, ref as F } from "vue";
|
|
4
4
|
import { d as j } from "./context-Ch1r4fdN.js";
|
|
5
5
|
import { useI18n as P } from "vue-i18n";
|
|
6
6
|
import { a as N } from "./FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js";
|
|
7
7
|
import { _ as G } from "./SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js";
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
8
|
+
import { _ as b } from "./TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js";
|
|
9
|
+
import { _ as x } from "./TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js";
|
|
10
10
|
import { u as K, _ as z } from "./useCommand-Ch_nx1AQ.js";
|
|
11
11
|
import { t as H } from "./toast-CqSDTWRX.js";
|
|
12
|
-
import { u as k } from "./platform-
|
|
13
|
-
import { d as Q, r as W,
|
|
12
|
+
import { u as k } from "./platform-DtISOEt7.js";
|
|
13
|
+
import { d as Q, r as W, a as Y } from "./http-DOEfFCDA.js";
|
|
14
14
|
import { _ as J } from "./AccountMenuItem.vue_vue_type_script_setup_true_lang-BIYgaihv.js";
|
|
15
15
|
import { d as Z } from "./defineRoutes-BGAdiIrt.js";
|
|
16
|
-
import { d as ee } from "./application-
|
|
16
|
+
import { d as ee } from "./application-DomS6sbx.js";
|
|
17
17
|
import { R as te } from "./client-Dg303Pmc.js";
|
|
18
18
|
import { a as ne } from "./error-CD7x0Jrz.js";
|
|
19
19
|
const v = {
|
|
@@ -24,8 +24,8 @@ const v = {
|
|
|
24
24
|
comment: p("POST", "/v1/incidents/:incidentID/comments", { permission: "incident:create" }),
|
|
25
25
|
update: p("PATCH", "/v1/incidents/:incidentID", { permission: "incident:update" }),
|
|
26
26
|
clientError: p("POST", "/v1/incidents/client-errors")
|
|
27
|
-
}, [ie, C] = j("vue-core.incidents"),
|
|
28
|
-
function
|
|
27
|
+
}, [ie, C] = j("vue-core.incidents"), M = "incident:view", se = "incident:create", je = "incident:update", re = "incident:manage";
|
|
28
|
+
function Ge(t) {
|
|
29
29
|
return Q({
|
|
30
30
|
id: "incidents",
|
|
31
31
|
stateVersion: 1,
|
|
@@ -76,8 +76,8 @@ function de(t) {
|
|
|
76
76
|
extra_json: ""
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
function
|
|
79
|
+
const Ke = () => ({ body: "", visibility: "public" });
|
|
80
|
+
function ze() {
|
|
81
81
|
return {
|
|
82
82
|
status: "",
|
|
83
83
|
severity: "",
|
|
@@ -90,7 +90,7 @@ function Ke() {
|
|
|
90
90
|
external_ticket_url: ""
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function He({ incident: t }) {
|
|
94
94
|
return {
|
|
95
95
|
status: t.status,
|
|
96
96
|
severity: t.severity,
|
|
@@ -103,7 +103,7 @@ function ze({ incident: t }) {
|
|
|
103
103
|
external_ticket_url: t.external_ticket_url ?? ""
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const Qe = {
|
|
107
107
|
new: "core.incidents.statuses.new",
|
|
108
108
|
triaged: "core.incidents.statuses.triaged",
|
|
109
109
|
in_progress: "core.incidents.statuses.in_progress",
|
|
@@ -115,19 +115,19 @@ const He = {
|
|
|
115
115
|
medium: "core.incidents.severities.medium",
|
|
116
116
|
high: "core.incidents.severities.high",
|
|
117
117
|
critical: "core.incidents.severities.critical"
|
|
118
|
-
},
|
|
118
|
+
}, We = {
|
|
119
119
|
user_report: "core.incidents.sources.user_report",
|
|
120
120
|
runtime_error: "core.incidents.sources.runtime_error",
|
|
121
121
|
client_error: "core.incidents.sources.client_error",
|
|
122
122
|
mixed: "core.incidents.sources.mixed"
|
|
123
|
-
},
|
|
123
|
+
}, Ye = {
|
|
124
124
|
new: "info",
|
|
125
125
|
triaged: "warning",
|
|
126
126
|
in_progress: "warning",
|
|
127
127
|
resolved: "positive",
|
|
128
128
|
ignored: "neutral",
|
|
129
129
|
duplicate: "neutral"
|
|
130
|
-
},
|
|
130
|
+
}, Je = {
|
|
131
131
|
low: "neutral",
|
|
132
132
|
medium: "info",
|
|
133
133
|
high: "warning",
|
|
@@ -142,19 +142,19 @@ const He = {
|
|
|
142
142
|
},
|
|
143
143
|
emits: ["created", "close"],
|
|
144
144
|
setup(t, { expose: n, emit: s }) {
|
|
145
|
-
const r = t, o = s, { t: i } = P(), { access:
|
|
145
|
+
const r = t, o = s, { t: i } = P(), { access: d } = k(), u = ae(), { appVersion: h } = C(), E = O(() => d.can(re)), w = O(() => Object.entries(le).map(([m, g]) => ({ value: m, label: i(g) }))), _ = K({
|
|
146
146
|
defaults: () => de(h),
|
|
147
147
|
validator: ce(["title", "description"], i("core.account.validation.required")),
|
|
148
|
-
run: (m, { idempotencyKey:
|
|
148
|
+
run: (m, { idempotencyKey: g }) => u.report(m, g),
|
|
149
149
|
done: (m) => {
|
|
150
150
|
H.success(i("core.incidents.toasts.report_success")), o("created", m);
|
|
151
151
|
}
|
|
152
152
|
}), a = _.form, D = () => _.present(), $ = () => _.dismiss();
|
|
153
|
-
return
|
|
153
|
+
return U(() => {
|
|
154
154
|
r.autoOpen && D();
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
}), n({ show: D, hide: $ }), (m,
|
|
155
|
+
}), X(() => _.open.value, (m, g) => {
|
|
156
|
+
g && !m && o("close");
|
|
157
|
+
}), n({ show: D, hide: $ }), (m, g) => (S(), y(e(z), {
|
|
158
158
|
command: e(_),
|
|
159
159
|
size: "md",
|
|
160
160
|
title: e(i)("core.incidents.report_modal.title"),
|
|
@@ -162,69 +162,69 @@ const He = {
|
|
|
162
162
|
"confirm-label": e(i)("core.incidents.report_modal.submit")
|
|
163
163
|
}, {
|
|
164
164
|
default: I(() => [
|
|
165
|
-
|
|
165
|
+
B("div", ue, [
|
|
166
166
|
c(e(N), null, {
|
|
167
167
|
default: I(() => [
|
|
168
|
-
c(e(
|
|
168
|
+
c(e(x), l(e(a).bind("title"), {
|
|
169
169
|
label: e(i)("core.incidents.fields.title"),
|
|
170
170
|
required: "",
|
|
171
171
|
"max-length": 255
|
|
172
172
|
}), null, 16, ["label"]),
|
|
173
|
-
c(e(
|
|
173
|
+
c(e(b), l(e(a).bind("description"), {
|
|
174
174
|
label: e(i)("core.incidents.fields.description"),
|
|
175
175
|
required: "",
|
|
176
176
|
rows: 4,
|
|
177
177
|
"max-length": 2e4
|
|
178
178
|
}), null, 16, ["label"]),
|
|
179
|
-
c(e(G),
|
|
179
|
+
c(e(G), l(e(a).bind("severity"), {
|
|
180
180
|
label: e(i)("core.incidents.fields.severity"),
|
|
181
181
|
options: w.value
|
|
182
182
|
}), null, 16, ["label", "options"])
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
185
185
|
}),
|
|
186
|
-
|
|
186
|
+
E.value ? (S(), y(e(N), {
|
|
187
187
|
key: 0,
|
|
188
188
|
header: e(i)("core.incidents.report_modal.advanced_fields")
|
|
189
189
|
}, {
|
|
190
190
|
default: I(() => [
|
|
191
|
-
c(e(
|
|
191
|
+
c(e(x), l(e(a).bind("affected_module"), {
|
|
192
192
|
label: e(i)("core.incidents.fields.affected_module"),
|
|
193
193
|
"max-length": 100
|
|
194
194
|
}), null, 16, ["label"]),
|
|
195
|
-
c(e(
|
|
195
|
+
c(e(x), l(e(a).bind("page_url"), {
|
|
196
196
|
label: e(i)("core.incidents.fields.page_url"),
|
|
197
197
|
"max-length": 1e3
|
|
198
198
|
}), null, 16, ["label"]),
|
|
199
|
-
c(e(
|
|
199
|
+
c(e(b), l(e(a).bind("steps_to_reproduce"), {
|
|
200
200
|
label: e(i)("core.incidents.fields.steps_to_reproduce"),
|
|
201
201
|
rows: 3,
|
|
202
202
|
"max-length": 2e4
|
|
203
203
|
}), null, 16, ["label"]),
|
|
204
|
-
c(e(
|
|
204
|
+
c(e(b), l(e(a).bind("expected_result"), {
|
|
205
205
|
label: e(i)("core.incidents.fields.expected_result"),
|
|
206
206
|
rows: 2,
|
|
207
207
|
"max-length": 2e4
|
|
208
208
|
}), null, 16, ["label"]),
|
|
209
|
-
c(e(
|
|
209
|
+
c(e(b), l(e(a).bind("actual_result"), {
|
|
210
210
|
label: e(i)("core.incidents.fields.actual_result"),
|
|
211
211
|
rows: 2,
|
|
212
212
|
"max-length": 2e4
|
|
213
213
|
}), null, 16, ["label"]),
|
|
214
|
-
c(e(
|
|
214
|
+
c(e(x), l(e(a).bind("browser_info"), {
|
|
215
215
|
label: e(i)("core.incidents.fields.browser_info"),
|
|
216
216
|
"max-length": 500
|
|
217
217
|
}), null, 16, ["label"]),
|
|
218
|
-
c(e(
|
|
218
|
+
c(e(x), l(e(a).bind("app_version"), {
|
|
219
219
|
label: e(i)("core.incidents.fields.app_version"),
|
|
220
220
|
"max-length": 100
|
|
221
221
|
}), null, 16, ["label"]),
|
|
222
|
-
c(e(
|
|
222
|
+
c(e(b), l(e(a).bind("frontend_error_message"), {
|
|
223
223
|
label: e(i)("core.incidents.fields.frontend_error_message"),
|
|
224
224
|
rows: 2,
|
|
225
225
|
"max-length": 2e3
|
|
226
226
|
}), null, 16, ["label"]),
|
|
227
|
-
c(e(
|
|
227
|
+
c(e(b), l(e(a).bind("frontend_stacktrace"), {
|
|
228
228
|
label: e(i)("core.incidents.fields.frontend_stacktrace"),
|
|
229
229
|
rows: 4,
|
|
230
230
|
"max-length": 2e4
|
|
@@ -258,82 +258,84 @@ const He = {
|
|
|
258
258
|
label: e(n)("core.incidents.report_modal.menu"),
|
|
259
259
|
icon: "alertTriangle",
|
|
260
260
|
"data-incident-report-menu-item": "",
|
|
261
|
-
onClick: i[0] || (i[0] = (
|
|
261
|
+
onClick: i[0] || (i[0] = (d) => e(r).reporting.value = !0)
|
|
262
262
|
}, null, 8, ["label"])) : R("", !0);
|
|
263
263
|
}
|
|
264
|
-
}),
|
|
265
|
-
index: { name: "incidents.index", path: "/incidents", component: () => import("./IncidentsList-
|
|
264
|
+
}), q = Z({
|
|
265
|
+
index: { name: "incidents.index", path: "/incidents", component: () => import("./IncidentsList-yu0xSMrH.js"), meta: { access: M, titleKey: "core.incidents.title" } },
|
|
266
266
|
details: {
|
|
267
267
|
name: "incidents.details",
|
|
268
268
|
path: "/incidents/:incidentID",
|
|
269
|
-
component: () => import("./IncidentRecord-
|
|
269
|
+
component: () => import("./IncidentRecord-zTemLz2R.js"),
|
|
270
270
|
// Previous / next record swaps the id in place.
|
|
271
|
-
meta: { access:
|
|
271
|
+
meta: { access: M, titleKey: "core.incidents.title", remountOnParam: "incidentID" }
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
|
-
function
|
|
274
|
+
function Ze(t = {}) {
|
|
275
275
|
return V({
|
|
276
276
|
id: "incidents",
|
|
277
|
-
routes:
|
|
278
|
-
context:
|
|
279
|
-
navigation: t.destination ? [{ destination: t.destination, to:
|
|
277
|
+
routes: q.records,
|
|
278
|
+
context: L(ie, { reporting: F(!1), appVersion: t.appVersion ?? "" }),
|
|
279
|
+
navigation: t.destination ? [{ destination: t.destination, to: q.index, within: ["incidents.details"] }] : [],
|
|
280
280
|
contributions: [
|
|
281
281
|
{ id: "incidents.report-menu", slot: "accountMenu", component: pe, scope: "authenticated", order: 40, optional: !0 },
|
|
282
282
|
{ id: "incidents.report-host", slot: "host", component: _e, scope: "authenticated", optional: !0 }
|
|
283
283
|
]
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
const fe = 2e3, ge = 2e4, be = 255, ve = 500, he = 100,
|
|
286
|
+
const fe = 2e3, ge = 2e4, be = 255, ve = 500, he = 100, Ee = 100, xe = 255, we = 20, Se = /* @__PURE__ */ new Set(["vue", "unhandledrejection", "window", "handled"]), f = (t, n) => t.slice(0, n), ye = (t) => /^script error\.?$/i.test(t.trim()), Ie = (t) => t.split(`
|
|
287
287
|
`).find((n) => /^\s*at\s|@\S/.test(n))?.trim() ?? "";
|
|
288
|
-
function
|
|
288
|
+
function et(t) {
|
|
289
289
|
const { platform: n, appVersion: s = "", onError: r = ee } = t, o = /* @__PURE__ */ new Set();
|
|
290
|
-
function i(
|
|
291
|
-
const { error: u } =
|
|
292
|
-
if (!
|
|
293
|
-
const h = t.origin ?? globalThis.location?.origin,
|
|
294
|
-
if (!h || h === "null" || !
|
|
290
|
+
function i(d) {
|
|
291
|
+
const { error: u } = d;
|
|
292
|
+
if (!Se.has(d.source) || !(u instanceof Error) || ne(u) || u.message.trim() === "" || ye(u.message)) return;
|
|
293
|
+
const h = t.origin ?? globalThis.location?.origin, E = u.stack ?? "";
|
|
294
|
+
if (!h || h === "null" || !E.includes(`${h}/`) || n.session.state.value.status !== "authenticated") return;
|
|
295
295
|
const w = `${u.message}
|
|
296
|
-
${
|
|
297
|
-
if (o.has(w) || o.size >=
|
|
296
|
+
${Ie(E)}`;
|
|
297
|
+
if (o.has(w) || o.size >= we) return;
|
|
298
298
|
o.add(w);
|
|
299
299
|
const _ = {
|
|
300
|
-
message:
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
300
|
+
message: f(u.message, fe),
|
|
301
|
+
source: d.source,
|
|
302
|
+
...d.detail && { detail: f(d.detail, xe) },
|
|
303
|
+
stack: f(E, ge),
|
|
304
|
+
route: f((d.route ?? "").split(/[?#]/)[0] ?? "", be),
|
|
305
|
+
browser: f(globalThis.navigator?.userAgent ?? "", ve),
|
|
306
|
+
app_version: f(s, he),
|
|
307
|
+
request_ids: n.http.recentRequestIds().slice(-te).map((a) => f(a, Ee))
|
|
306
308
|
};
|
|
307
309
|
n.http.request(v.clientError, _).catch(() => {
|
|
308
310
|
});
|
|
309
311
|
}
|
|
310
|
-
return (
|
|
312
|
+
return (d) => {
|
|
311
313
|
try {
|
|
312
|
-
i(
|
|
314
|
+
i(d);
|
|
313
315
|
} catch {
|
|
314
316
|
}
|
|
315
|
-
r(
|
|
317
|
+
r(d);
|
|
316
318
|
};
|
|
317
319
|
}
|
|
318
320
|
export {
|
|
319
321
|
se as C,
|
|
320
322
|
re as M,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
+
We as S,
|
|
324
|
+
je as U,
|
|
323
325
|
me as _,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
326
|
+
Ge as a,
|
|
327
|
+
Ye as b,
|
|
328
|
+
Qe as c,
|
|
329
|
+
Je as d,
|
|
328
330
|
le as e,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
331
|
+
ze as f,
|
|
332
|
+
Ke as g,
|
|
333
|
+
we as h,
|
|
334
|
+
q as i,
|
|
335
|
+
et as j,
|
|
334
336
|
v as k,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
+
Ze as l,
|
|
338
|
+
He as m,
|
|
337
339
|
ce as r,
|
|
338
340
|
ae as u
|
|
339
341
|
};
|