From ee32bd83462ede146b10ca7ae75a6661eaac371c Mon Sep 17 00:00:00 2001 From: shy Date: Sun, 9 Jun 2024 23:32:10 +0800 Subject: [PATCH] add some --- base/web/matrix.go | 4 ++-- base/web/matrix.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/web/matrix.go b/base/web/matrix.go index 1524630e..54e435ab 100644 --- a/base/web/matrix.go +++ b/base/web/matrix.go @@ -33,7 +33,7 @@ func _matrix_list(m *ice.Message, domain, typ string, value ice.Maps, fields ... break } value[DOMAIN] = domain - kit.If(value[mdb.STATUS] == cli.STOP, func() { value[mdb.ICONS] = nfs.USR_ICONS_ICEBERGS }) + kit.If(value[mdb.STATUS] == cli.STOP, func() { value[mdb.ICONS] = nfs.P + nfs.USR_ICONS_ICEBERGS }) kit.If(value[mdb.STATUS] == cli.STOP && istech, func() { button = []ice.Any{cli.START, mdb.REMOVE} }) m.PushRecord(value, fields...).PushButton(button...) case SERVER, ORIGIN: @@ -132,7 +132,7 @@ func init() { m.Options("space.timeout", mdb.Config(m, cli.TIMEOUT), "dream.simple", ice.TRUE) list, icons, types := _matrix_list(m, "", MYSELF, ice.Maps{ mdb.TIME: ice.Info.Make.Time, - mdb.ICONS: ice.SRC_MAIN_ICO, + mdb.ICONS: nfs.P + ice.SRC_MAIN_ICO, nfs.MODULE: ice.Info.Make.Module, nfs.VERSION: ice.Info.Make.Versions(), aaa.ACCESS: m.Option(ice.MSG_USERROLE), diff --git a/base/web/matrix.js b/base/web/matrix.js index 9f41d06b..268766f2 100644 --- a/base/web/matrix.js +++ b/base/web/matrix.js @@ -27,7 +27,7 @@ Volcanos(chat.ONIMPORT, { item: function(can, item, list) { var name = item.name, domain = item.domain, worker = list[name][""], server = list[""][domain]; item["server.type"] = server.type function cb(action) { return function(event) { can.Update(can.request(event, item), [ctx.ACTION, action]) } } return {view: [[html.ITEM, item.type, item.status, can.onimport.style(can, item, list)]], list: [ - {img: can.misc.Resource(can, item.icons, can.core.Keys(item.domain, item.name)), onclick: cb(web.DESKTOP)}, + {img: item.icons, onclick: cb(web.DESKTOP)}, {view: wiki.TITLE, list: [ {text: item.name||item.domain||location.host, onclick: cb(web.OPEN)}, item.status != cli.STOP && can.onappend.label(can, item, {version: icon.version, time: icon.compile, access: "bi bi-file-lock"}),