efront 3.10.5 → 3.10.7

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.
@@ -9,3 +9,4 @@
9
9
  params: options ::params-:key
10
10
  invoke: options ::invoke-:key?:params
11
11
  version: options ::version
12
+ uptime: options ::uptime
@@ -20,4 +20,9 @@
20
20
  <padding>
21
21
  服务器版本&nbsp;&nbsp;<span -text="String(version)"></span>
22
22
  </padding>
23
- </block>
23
+ </block>
24
+ <block>
25
+ <padding>
26
+ 启动时间&nbsp;&nbsp;<span -text="filterTime(hrtime)"></span>
27
+ </padding>
28
+ </block>
@@ -4,6 +4,8 @@ function main() {
4
4
  renderWithDefaults(page, {
5
5
  status: [],
6
6
  version: data.from("version"),
7
+ hrtime: data.from("uptime", a => Date.now() - a * 1000),
8
+ filterTime,
7
9
  async run(id, target) {
8
10
  target.setAttribute('pending', '')
9
11
  try {
@@ -1048,7 +1048,8 @@ function getItem(instanceId, onlyFromLocalStorage = false) {
1048
1048
  return data;
1049
1049
  }
1050
1050
  function hasItem(instanceId) {
1051
- return sessionStorage.getItem(instanceId) || localStorage.getItem(instanceId);
1051
+ const storageId = userPrefix + instanceId + pagePathName;
1052
+ return sessionStorage.getItem(storageId) || localStorage.getItem(storageId);
1052
1053
  }
1053
1054
  var instanceListenerMap = {};
1054
1055
  var fireListener = function (instanceId, data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.10.5",
3
+ "version": "3.10.7",
4
4
  "description": "一个开发工具,开放源代码,自带组件库和编译环境,可以用来开发web组件,web应用或nodejs模块,或做为已有代码的加密工具,也可以做为静态页面服务器或跨域中转服务器使用",
5
5
  "main": "public/efront.js",
6
6
  "directories": {