efront 4.7.2 → 4.7.3
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/apps/pivot/api.yml +1 -1
- package/apps/pivot/cert/orders.xht +9 -2
- package/coms/pivot/plist.js +3 -3
- package/package.json +1 -1
- package/public/efront.js +1 -1
- package/readme-en.md +2 -0
- package/readme.md +2 -0
package/apps/pivot/api.yml
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
folder: options ::file-:opt:::path?:to
|
|
6
6
|
cluster: options ::cluster-list
|
|
7
7
|
clients: options ::cluster-list?:id
|
|
8
|
-
list: options :::type
|
|
8
|
+
list: options :::type*:idkey
|
|
9
9
|
edit: options :::type-:key?:value
|
|
10
10
|
add: options :::type-:key+:value
|
|
11
11
|
patch: options :::type-:key*:value
|
|
@@ -113,8 +113,15 @@
|
|
|
113
113
|
async openOrder(o) {
|
|
114
114
|
o = this.order = shallowClone(o);
|
|
115
115
|
if (!o || !o.oid) return;
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
try {
|
|
117
|
+
var order = await acme2.getOrder(o);
|
|
118
|
+
extend(o, order);
|
|
119
|
+
} catch (e) {
|
|
120
|
+
if (e.status === 404) {
|
|
121
|
+
o.removable = true;
|
|
122
|
+
}
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
118
125
|
if (o !== this.order) return;
|
|
119
126
|
if (o.certificate && !o.shouldupload) {
|
|
120
127
|
var identifiers = o.identifiers;
|
package/coms/pivot/plist.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
function load(type) {
|
|
2
|
-
return data.from("list", { type }, a => JSAM.parse(encode62.timedecode(a || '')));
|
|
1
|
+
function load(type, idkey) {
|
|
2
|
+
return data.from("list", { type, idkey: encode62.timeencode(idkey) }, a => JSAM.parse(encode62.timedecode(a || '')));
|
|
3
3
|
}
|
|
4
4
|
function remove(type, key) {
|
|
5
5
|
return data.from("edit", { type, key: encode62.timeencode(key), value: encode62.timeencode("") }).loading_promise;
|
|
@@ -38,7 +38,7 @@ function plist() {
|
|
|
38
38
|
if (!idkey) idkey = fields[0].key;
|
|
39
39
|
return frame$list(title, {
|
|
40
40
|
load() {
|
|
41
|
-
return load(type);
|
|
41
|
+
return load(type, idkey);
|
|
42
42
|
},
|
|
43
43
|
remove(o) {
|
|
44
44
|
return remove(type, o[idkey]);
|