@steedos/standard-ui 2.5.13-beta.9 → 2.5.13

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,11 @@
1
+
2
+ Meteor.startup(function(){
3
+ Tracker.autorun(function(){
4
+ const space = db.spaces.findOne(Steedos.getSpaceId());
5
+ if(space && space.favicon){
6
+ const faviconLink = document.querySelector('link[rel="shortcut icon"]');
7
+ faviconLink.href = Steedos.absoluteUrl("/api/files/avatars/"+space.favicon);
8
+ console.log('update faviconLink.href', faviconLink.href)
9
+ }
10
+ })
11
+ })
@@ -2,7 +2,7 @@
2
2
  * @Author: 殷亮辉 yinlianghui@hotoa.com
3
3
  * @Date: 2023-05-16 17:00:38
4
4
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
5
- * @LastEditTime: 2023-09-07 13:23:57
5
+ * @LastEditTime: 2023-09-11 17:44:01
6
6
  */
7
7
  var buttonTriggerHistoryPathsChange;
8
8
 
@@ -19,7 +19,9 @@ function clearHistoryFilters(context, lastPath, paths) {
19
19
  // 是从记录详细界面直接切换到其他对象列表或其他应用时,进一步往上找,找到对象列表的path作为lastPath来清除对应的本地存储
20
20
  for(let i = paths.length - 1;i >= 0;i--){
21
21
  let tempPath = paths[i];
22
- if(!tempPath.params.record_id && tempPath.params.list_view_id){
22
+ // if(!tempPath.params.record_id && tempPath.params.list_view_id){
23
+ // 不可以判断list_view_id表示对象列表,因为有可以从应用程序微页面进入记录详细页面,需要清除应用程序微页面中的对象表格或对象列表组件中本地存储中保存的过滤条件
24
+ if(!tempPath.params.record_id){
23
25
  // record_id不存在,list_view_id存在表示对象列表页面
24
26
  lastPath = tempPath;
25
27
  break;
@@ -38,6 +38,8 @@
38
38
  const STEEDOS_PUBLIC_PAGE_ASSETURLS = "<%=STEEDOS_PUBLIC_PAGE_ASSETURLS%>";
39
39
  const STEEDOS_AMIS_VERSION= "<%=STEEDOS_AMIS_VERSION%>";
40
40
 
41
+ const platform = <%- JSON.stringify(platform) %>;
42
+
41
43
  if (`${STEEDOS_SENTRY_ENABLED}` != 'false') {
42
44
  loadJs(`${ROOT_URL}/sentry/sentry.min.js`, (script)=>{
43
45
  const nodeEnv = NODE_ENV || 'development';
@@ -53,7 +55,24 @@
53
55
  };
54
56
 
55
57
  loadJs(`${STEEDOS_UNPKG_URL}/lodash@4.17.21/lodash.min.js`, ()=>{
56
- window._ = window.lodash;
58
+ // window._ = window.lodash;
59
+ try {
60
+ if(platform.hostname){
61
+ if (!_.includes(platform.hostname.split(','), window.location.hostname)) {
62
+ setTimeout(function(){
63
+ const banners = document.getElementsByClassName("steedos-banners")[0];
64
+ if(banners){
65
+ banners.style.display = 'flex';
66
+ banners.style.justifyContent = 'center';
67
+ }
68
+ console.error(`环境变量ROOT_URL中的hostname(${window.location.hostname})与许可证中设置的不一致,请确认。`)
69
+ }, 3000)
70
+ }
71
+ }
72
+ } catch (error) {
73
+ console.error(error)
74
+ }
75
+
57
76
  });
58
77
  loadJs(`${STEEDOS_UNPKG_URL}/marked@4.0.17/marked.min.js`);
59
78
  loadJs(`${STEEDOS_UNPKG_URL}/crypto-js@4.1.1/crypto-js.js`);
@@ -129,4 +148,8 @@
129
148
  })
130
149
  }
131
150
 
151
+ if(ROOT_URL){
152
+ loadJs(`${ROOT_URL}/cordova.i18n.js`)
153
+ }
154
+
132
155
  })();
@@ -11,7 +11,6 @@ const fs = require('fs');
11
11
  const _ = require('lodash');
12
12
  const path = require('path');
13
13
 
14
-
15
14
  const getConfig = (key, platform)=>{
16
15
  if(platform === 'cordova'){
17
16
  let value = process.env[key];
@@ -47,7 +46,8 @@ router.get('/main_head.js', async function (req, res) {
47
46
  STEEDOS_VERSION: process.env.STEEDOS_VERSION,
48
47
  STEEDOS_LOCALE: "",
49
48
  STEEDOS_PUBLIC_PAGE_ASSETURLS: process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS,
50
- STEEDOS_AMIS_VERSION: process.env.STEEDOS_AMIS_VERSION
49
+ STEEDOS_AMIS_VERSION: process.env.STEEDOS_AMIS_VERSION,
50
+ platform: __meteor_runtime_config__.PUBLIC_SETTINGS?.platform || {}
51
51
  }
52
52
  const options = {}
53
53
  ejs.renderFile(filename, data, options, function(err, str){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.5.13-beta.9",
3
+ "version": "2.5.13",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,5 +12,5 @@
12
12
  "description": "steedos package",
13
13
  "repository": {},
14
14
  "license": "MIT",
15
- "gitHead": "3c7f9046326982d3fc836500382679e75e05ba18"
15
+ "gitHead": "70670f8b8ea0aad61e73a3258b5c8aaf6139c682"
16
16
  }
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2022-07-29 09:40:31
4
- * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2023-08-19 19:56:00
4
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
5
+ * @LastEditTime: 2023-09-11 15:45:29
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -52,8 +52,9 @@ module.exports = {
52
52
  {
53
53
  objectName: 'space_users',
54
54
  query: {
55
- fields: ['_id', 'user', 'name'],
56
- filters: [["user", "in", userIds]]
55
+ fields: ['_id', 'user', 'name', 'sort_no'],
56
+ filters: [["user", "in", userIds]],
57
+ sort: 'sort_no desc'
57
58
  },
58
59
  }
59
60
  );