waibu-db 1.0.17 → 1.0.19

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.
@@ -0,0 +1,5 @@
1
+ <% for (const ao of addOns) { %>
2
+ <c:div append-to="#sb-addons" margin="bottom-3">
3
+ <!-- include <%= ao.resource %>|<%= JSON.stringify(ao.data) %> -->
4
+ </c:div>
5
+ <% } %>
@@ -1,5 +1,5 @@
1
1
  <c:form>
2
- <c:include resource="waibuDb.partial:/crud/_form.html" />
2
+ <!-- include waibuDb.partial:/crud/_form.html -->
3
3
  <c:grid-row gutter="2" margin="top-2">
4
4
  <c:grid-col col="6-md">
5
5
  <c:wdb-btn-back />
@@ -16,4 +16,4 @@
16
16
  </c:grid-col>
17
17
  </c:grid-row>
18
18
  </c:form>
19
- <c:include resource="waibuDb.partial:/crud/_addons.html" />
19
+ <!-- include waibuDb.partial:/crud/_addons.html -->
@@ -1,5 +1,5 @@
1
1
  <c:div id="main-form">
2
- <c:include resource="waibuDb.partial:/crud/_form.html" />
2
+ <!-- include waibuDb.partial:/crud/_form.html -->
3
3
  </c:div>
4
4
  <c:grid-row gutter="2" margin="top-2">
5
5
  <c:grid-col col="6-lg">
@@ -18,4 +18,4 @@
18
18
  <c:wdb-btn-delete/>
19
19
  </c:grid-col>
20
20
  </c:grid-row>
21
- <c:include resource="waibuDb.partial:/crud/_addons.html" />
21
+ <!-- include waibuDb.partial:/crud/_addons.html -->
@@ -1,5 +1,5 @@
1
1
  <c:form id="main-form">
2
- <c:include resource="waibuDb.partial:/crud/_form.html" />
2
+ <!-- include waibuDb.partial:/crud/_form.html -->
3
3
  <c:grid-row gutter="2" margin="top-2">
4
4
  <c:grid-col col="6-lg">
5
5
  <c:wdb-btn-back />
@@ -16,4 +16,4 @@
16
16
  </c:grid-col>
17
17
  </c:grid-row>
18
18
  </c:form>
19
- <c:include resource="waibuDb.partial:/crud/_addons.html" />
19
+ <!-- include waibuDb.partial:/crud/_addons.html -->
@@ -15,5 +15,5 @@
15
15
  </c:grid-col>
16
16
  </c:grid-row>
17
17
  <c:wdb-table id="main-table" border body-divider strip responsive />
18
- <c:include resource="waibuDb.partial:/crud/_list-footer.html" />
19
- <c:include resource="waibuDb.partial:/crud/_addons.html" />
18
+ <!-- include waibuDb.partial:/crud/_list-footer.html -->
19
+ <!-- include waibuDb.partial:/crud/_addons.html -->
@@ -1,2 +1,2 @@
1
1
  <c:heading move-to="#fullTitle" type="5" t:content="%s - %s|<%= page.modelTitle %>|<%= _t('Add') %>" />
2
- <c:include resource="waibuDb.partial:/crud/add-handler.html" />
2
+ <!-- include waibuDb.partial:/crud/add-handler.html -->
@@ -1,2 +1,2 @@
1
1
  <c:heading move-to="#fullTitle" type="5" t:content="%s - %s|<%= page.modelTitle %>|<%= _t('Details') %>" />
2
- <c:include resource="waibuDb.partial:/crud/details-handler.html" />
2
+ <!-- include waibuDb.partial:/crud/details-handler.html -->
@@ -1,2 +1,2 @@
1
1
  <c:heading move-to="#fullTitle" type="5" t:content="%s - %s|<%= page.modelTitle %>|<%= _t('Edit') %>" />
2
- <c:include resource="waibuDb.partial:/crud/edit-handler.html" />
2
+ <!-- include waibuDb.partial:/crud/edit-handler.html -->
@@ -1,2 +1,2 @@
1
1
  <c:heading move-to="#fullTitle" type="5" t:content="%s - %s|<%= page.modelTitle %>|<%= _t('List') %>" />
2
- <c:include resource="waibuDb.partial:/crud/list-handler.html" />
2
+ <!-- include waibuDb.partial:/crud/list-handler.html -->
@@ -38,7 +38,7 @@ async function addOnsHandler ({ req, reply, data, schema }) {
38
38
  return map(opts, o => {
39
39
  return {
40
40
  data: { option: o.chartOpts, name: o.name },
41
- resource: 'waibuDb.partial:/crud/echarts-window.html'
41
+ resource: 'waibuDb.partial:/crud/~echarts-window.html'
42
42
  }
43
43
  })
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-db",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "DB Helper",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +0,0 @@
1
- <% for (const ao of addOns) { %>
2
- <c:div append-to="#sb-addons" margin="bottom-3">
3
- <c:include resource="<%= ao.resource %>" <% for (const k in ao.data) { print(k + '="' + ao.data[k] + '" ') } %>/>
4
- </c:div>
5
- <% } %>