@steedos/service-pages 2.5.3-beta.2 → 2.5.3-beta.20

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.
@@ -259,7 +259,7 @@
259
259
  record_id: data.recordId,
260
260
  formFactor: Steedos.isMobile() ? "SMALL" : "LARGE",
261
261
  context: {
262
- rootUrl: rootUrl.endsWith("/") ? rootUrl.substr(0, rootUrl.length-1) : rootUrl,
262
+ rootUrl: Meteor.isCordova ? (rootUrl.endsWith("/") ? rootUrl.substr(0, rootUrl.length-1) : rootUrl) : '',
263
263
  tenantId: Creator.USER_CONTEXT.spaceId,
264
264
  userId: Creator.USER_CONTEXT.userId,
265
265
  authToken: Creator.USER_CONTEXT.user.authToken,
@@ -276,6 +276,7 @@
276
276
  $scopeId : schema.name || schema.id
277
277
  }
278
278
  });
279
+ console.log(`defData`, defData)
279
280
 
280
281
  schema = lodash.defaultsDeep(defData , schema);
281
282
 
@@ -924,9 +925,9 @@
924
925
  "name": "globalFooter",
925
926
  "body": [
926
927
  {
927
- "type": "steedos-global-Footer",
928
+ "type": "steedos-global-footer",
928
929
  "id": "u:77851eb4aa89",
929
- "appId": "${app.id}"
930
+ "appId": appId
930
931
  },
931
932
  ]
932
933
  }
@@ -82,9 +82,9 @@ fields:
82
82
  description:
83
83
  listviews:
84
84
  all:
85
- label: All
85
+ label: All Pages
86
86
  recent:
87
- label: Recent
87
+ label: Recently Viewed
88
88
  actions:
89
89
  customPage:
90
90
  label: Custom Page
@@ -1,16 +1,17 @@
1
1
  /*
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2022-04-10 14:34:08
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2022-07-18 13:42:57
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2023-05-30 16:14:11
6
6
  * @Description:
7
7
  */
8
8
  const objectql = require('@steedos/objectql');
9
+ const register = require('@steedos/metadata-registrar');
9
10
  const auth = require('@steedos/auth');
10
11
  const _ = require('underscore');
11
12
  async function getAll() {
12
13
  const schema = objectql.getSteedosSchema();
13
- const configs = await objectql.registerPage.getAll(schema.broker)
14
+ const configs = await register.registerPage.getAll(schema.broker)
14
15
  const dataList = _.pluck(configs, 'metadata');
15
16
  let assignments = [];
16
17
  _.each(dataList, function (item) {
@@ -1,16 +1,17 @@
1
1
  /*
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2022-04-10 14:27:24
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2022-07-18 13:43:29
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2023-05-30 16:20:54
6
6
  * @Description:
7
7
  */
8
8
  const objectql = require('@steedos/objectql');
9
9
  const auth = require('@steedos/auth');
10
10
  const _ = require('underscore');
11
+ const register = require('@steedos/metadata-registrar');
11
12
  async function getAll(){
12
13
  const schema = objectql.getSteedosSchema();
13
- const configs = await objectql.registerPage.getAll(schema.broker)
14
+ const configs = await register.registerPage.getAll(schema.broker)
14
15
  const dataList = _.pluck(configs, 'metadata');
15
16
  let versions = [];
16
17
  _.each(dataList, function(item){
@@ -1,16 +1,17 @@
1
1
  /*
2
2
  * @Author: baozhoutao@hotoa.com
3
3
  * @Date: 2022-03-28 17:09:20
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2022-04-11 15:23:26
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2023-05-30 15:53:12
6
6
  * @Description:
7
7
  */
8
8
  const objectql = require('@steedos/objectql');
9
+ const register = require('@steedos/metadata-registrar');
9
10
  const auth = require('@steedos/auth');
10
11
  const _ = require('underscore');
11
12
  async function getAll(){
12
13
  const schema = objectql.getSteedosSchema();
13
- const configs = await objectql.registerPage.getAll(schema.broker)
14
+ const configs = await register.registerPage.getAll(schema.broker)
14
15
  const dataList = _.pluck(configs, 'metadata');
15
16
 
16
17
  _.each(dataList, function(item){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-pages",
3
- "version": "2.5.3-beta.2",
3
+ "version": "2.5.3-beta.20",
4
4
  "main": "package.service.js",
5
5
  "scripts": {},
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
11
- "gitHead": "321fe88aba6ddc3380a0d71eaa2e9a18186d49f8",
11
+ "gitHead": "32606d2d07b6e53a4d6c8ba079e6356f5a2dbb75",
12
12
  "dependencies": {
13
13
  "ejs": "^3.1.8"
14
14
  }