@antelopejs/dms 0.20.9-next.980.g387bb19 → 0.20.9-next.983.g0bd3fa6
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 +37 -0
- package/frontend-vue/layers/dms-auth/app/build/composables/useAuthFormError.ts +17 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/2fa.vue +1 -1
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot-validation.vue +1 -1
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/validate.vue +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.21.0
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/AntelopeJS/dms/compare/v0.20.8...v0.21.0)
|
|
6
|
+
|
|
7
|
+
### 🔥 Performance
|
|
8
|
+
|
|
9
|
+
- **dms:** Count, filter and page role holders in the database query ([#1118](https://github.com/AntelopeJS/dms/pull/1118))
|
|
10
|
+
|
|
11
|
+
### 🩹 Fixes
|
|
12
|
+
|
|
13
|
+
- **dms:** Draw no request-sending input from a fetched confirm dialog ([#1091](https://github.com/AntelopeJS/dms/pull/1091))
|
|
14
|
+
- **dms:** Judge a block's request targets inside the builder engine for agent calls ([#1090](https://github.com/AntelopeJS/dms/pull/1090))
|
|
15
|
+
- **dms:** Write column references instead of row values in mapped modules ([#1104](https://github.com/AntelopeJS/dms/pull/1104))
|
|
16
|
+
- **dms:** Clear account cookies a previous session secret sealed ([#1130](https://github.com/AntelopeJS/dms/pull/1130))
|
|
17
|
+
- **dms:** Emit the e2e types with TypeScript 6 to keep their TSDoc ([#1133](https://github.com/AntelopeJS/dms/pull/1133))
|
|
18
|
+
- **dms:** Wait for the dev dashboard to serve a new backend's module set ([#1134](https://github.com/AntelopeJS/dms/pull/1134))
|
|
19
|
+
|
|
20
|
+
### 💅 Refactors
|
|
21
|
+
|
|
22
|
+
- **interface-dms-builder:** Remove the SampleDatabaseRows operation ([#1129](https://github.com/AntelopeJS/dms/pull/1129))
|
|
23
|
+
|
|
24
|
+
### 📖 Documentation
|
|
25
|
+
|
|
26
|
+
- Drop the reverted pull request pairs from the 16 November changelogs ([#1128](https://github.com/AntelopeJS/dms/pull/1128))
|
|
27
|
+
|
|
28
|
+
### 📦 Build
|
|
29
|
+
|
|
30
|
+
- Build and typecheck with TypeScript 7 through antelopejs-tsc ([#1132](https://github.com/AntelopeJS/dms/pull/1132))
|
|
31
|
+
|
|
32
|
+
#### ⚠️ Breaking Changes
|
|
33
|
+
|
|
34
|
+
- **interface-dms-builder:** Remove the SampleDatabaseRows operation ([#1129](https://github.com/AntelopeJS/dms/pull/1129))
|
|
35
|
+
|
|
36
|
+
### ❤️ Contributors
|
|
37
|
+
|
|
38
|
+
- Antony Rizzitelli
|
|
39
|
+
|
|
3
40
|
## v0.20.8
|
|
4
41
|
|
|
5
42
|
[compare changes](https://github.com/AntelopeJS/dms/compare/v0.20.7...v0.20.8)
|
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
} from "#dms-core/app/composables/useFieldErrors";
|
|
7
7
|
import { resolveApiErrorMessage } from "#dms-core/app/composables/resolveApiError";
|
|
8
8
|
|
|
9
|
+
const CORE_ERROR_KEY = "error.500.description";
|
|
10
|
+
|
|
9
11
|
export interface AuthFormError {
|
|
10
12
|
title: string;
|
|
11
13
|
description: string;
|
|
@@ -40,12 +42,23 @@ export interface AuthFieldErrorTarget {
|
|
|
40
42
|
*/
|
|
41
43
|
export function useAuthFormError() {
|
|
42
44
|
const errorPresenter = useApiErrorPresenter();
|
|
45
|
+
const { i18n } = getPluginI18n();
|
|
43
46
|
const formError = ref<AuthFormError | null>(null);
|
|
44
47
|
|
|
45
|
-
|
|
48
|
+
/**
|
|
49
|
+
* A page served to a visitor carries only the messages its render read,
|
|
50
|
+
* and the presenter's lookups do not complete that catalog: the error
|
|
51
|
+
* messages are loaded before any is resolved.
|
|
52
|
+
*/
|
|
53
|
+
async function loadErrorMessages(): Promise<void> {
|
|
54
|
+
if (!i18n.te(CORE_ERROR_KEY)) await i18n.setLocale(i18n.locale.value);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function showFormError(
|
|
46
58
|
error: Parameters<typeof resolveApiErrorMessage>[0],
|
|
47
59
|
titleKey: string,
|
|
48
|
-
): void {
|
|
60
|
+
): Promise<void> {
|
|
61
|
+
await loadErrorMessages();
|
|
49
62
|
const notice = errorPresenter.resolveError(error, {
|
|
50
63
|
fallbackKey: titleKey,
|
|
51
64
|
});
|
|
@@ -85,9 +98,10 @@ export function useAuthFormError() {
|
|
|
85
98
|
});
|
|
86
99
|
const form = target.form?.value;
|
|
87
100
|
if (fields.length === 0 || (!target.show && !form)) {
|
|
88
|
-
showFormError(error, titleKey);
|
|
101
|
+
await showFormError(error, titleKey);
|
|
89
102
|
return false;
|
|
90
103
|
}
|
|
104
|
+
await loadErrorMessages();
|
|
91
105
|
clearFormError();
|
|
92
106
|
const messages = fields.map((entry) => ({
|
|
93
107
|
name: entry.field,
|
|
@@ -132,7 +132,7 @@ async function requestForgotPassword() {
|
|
|
132
132
|
color: "success",
|
|
133
133
|
});
|
|
134
134
|
} catch (error: unknown) {
|
|
135
|
-
showFormError(error, "page.validate.error_title");
|
|
135
|
+
await showFormError(error, "page.validate.error_title");
|
|
136
136
|
} finally {
|
|
137
137
|
isLoading.value = false;
|
|
138
138
|
}
|
|
@@ -117,7 +117,7 @@ async function requestEmailValidation() {
|
|
|
117
117
|
color: "success",
|
|
118
118
|
});
|
|
119
119
|
} catch (error: unknown) {
|
|
120
|
-
showFormError(error, "page.validate.error_title");
|
|
120
|
+
await showFormError(error, "page.validate.error_title");
|
|
121
121
|
} finally {
|
|
122
122
|
isLoading.value = false;
|
|
123
123
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/dms",
|
|
3
|
-
"version": "0.20.9-next.
|
|
3
|
+
"version": "0.20.9-next.983.g0bd3fa6",
|
|
4
4
|
"description": "AntelopeJS DMS. Plug in your PostgreSQL, MySQL, MariaDB, MongoDB or RethinkDB database and your coding agent builds a back office and analytics dashboard as typed TypeScript. Real-time updates on the data the DMS manages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -90,7 +90,6 @@
|
|
|
90
90
|
"@antelopejs/interface-data-api": ">=0.8.0 <0.9.0",
|
|
91
91
|
"@antelopejs/interface-database": ">=0.4.0 <0.5.0",
|
|
92
92
|
"@antelopejs/interface-database-decorators": ">=0.5.2 <0.6.0",
|
|
93
|
-
"@antelopejs/interface-dms-builder": "0.5.3-next.973.gcfa363a",
|
|
94
93
|
"@antelopejs/interface-email": ">=0.2.1 <0.3.0",
|
|
95
94
|
"@antelopejs/interface-file-storage": ">=0.1.4 <0.2.0",
|
|
96
95
|
"@csstools/css-tokenizer": "4.0.0",
|
|
@@ -113,6 +112,7 @@
|
|
|
113
112
|
"ua-parser-js": "^2.0.9",
|
|
114
113
|
"zod": "^3.25.0",
|
|
115
114
|
"zod-to-json-schema": "~3.24.6",
|
|
115
|
+
"@antelopejs/interface-dms-builder": "^0.6.0",
|
|
116
116
|
"@antelopejs/interface-dms": "^0.14.4"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"optional": true
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
|
-
"gitHead": "
|
|
212
|
+
"gitHead": "0bd3fa6341ded9740943739ae41d4f0a23dffb9b",
|
|
213
213
|
"scripts": {
|
|
214
214
|
"build": "pnpm --filter @antelopejs/interface-dms --filter @antelopejs/interface-dms-builder build && rimraf dist && antelopejs-tsc && tsc-alias && tsc -p bin/tsconfig.types.json",
|
|
215
215
|
"dev": "ajs project run --inspect -w -p playground",
|