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.
@@ -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
- var order = await acme2.getOrder(o);
117
- extend(o, order);
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;
@@ -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]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.7.2",
3
+ "version": "4.7.3",
4
4
  "description": "简化前端开发,优化web性能",
5
5
  "main": "public/efront.js",
6
6
  "directories": {