From 80f68b136aee14409de22285d3fe937788c1120b Mon Sep 17 00:00:00 2001 From: shylinux Date: Sat, 27 May 2023 12:19:37 +0800 Subject: [PATCH] opt some --- etc/init.shy | 31 ++++++++---- src/main.js | 4 +- src/template/web.chat.header/mobile.css | 13 +++-- src/template/web.chat.header/white.css | 2 +- usr/local/export/web.chat.river/hash.json | 62 +++++++++++++++++++++++ 5 files changed, 97 insertions(+), 15 deletions(-) diff --git a/etc/init.shy b/etc/init.shy index 7c91c3ed..2bcf8d14 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -4,6 +4,7 @@ spide create name "com" link "http://2021.shylinux.com:9020" dream create name 20221205-sshd repos https://shylinux.com/x/sshd binary http://2021.shylinux.com:9020/chat/pod/20221205-sshd dream create name 20230511-golang-story repos https://shylinux.com/x/golang-story binary http://2021.shylinux.com:9020/chat/pod/20230511-golang-story + dream create name 20230511-docker-story repos https://shylinux.com/x/docker-story binary http://2021.shylinux.com:9020/chat/pod/20230511-docker-story dream create name 20230511-linux-story repos https://shylinux.com/x/linux-story binary http://2021.shylinux.com:9020/chat/pod/20230511-linux-story dream create name 20230511-nginx-story repos https://shylinux.com/x/nginx-story binary http://2021.shylinux.com:9020/chat/pod/20230511-nginx-story dream create name 20230511-redis-story repos https://shylinux.com/x/redis-story binary http://2021.shylinux.com:9020/chat/pod/20230511-redis-story @@ -24,27 +25,39 @@ ~web.chat.macos applications install "dream" web.dream icon "usr/icons/Mission Control.png" applications install "compile" web.code.compile icon "usr/icons/go.png" - applications install "repos" web.code.git.service icon "usr/icons/git.jpg" + applications install "repos" web.code.git.repos icon "usr/icons/git.jpg" applications install "Preferences" web.chat.macos.opens args "System Preferences" icon "usr/icons/System Preferences.png" applications install "QuickTime" web.chat.macos.opens args "QuickTime Player" icon "usr/icons/QuickTime Player.png" applications install "Activity" web.chat.macos.opens args "Activity Monitor" icon "usr/icons/Activity Monitor.png" applications install "Preview" web.chat.macos.opens args "Preview" ~aaa - role white void web.code.git.trend - role white void web.code.git.spide + role whiteblack web.wiki.draw + role whiteblack web.wiki.feel + role whiteblack web.wiki.data + role whiteblack web.chat.favor + role whiteblack web.chat.macos.desktop + role whiteblack web.chat.macos.applications + role whiteblack web.chat.macos.notifications + role whiteblack web.chat.macos.searchs + role whiteblack web.chat.macos.menu + role whiteblack web.chat.macos.dock + role whiteblack web.code.git.trend + role whiteblack web.code.git.spide + role white void web.chat.macos.desktop action command + role white void web.chat.macos.desktop action run + role white void web.wiki.draw action command + role white void web.wiki.draw action run + role white void /require/usr/icebergs + role white void /require/usr/icons + role white void usr/local/image + role white void usr/local/export ~gdb event listen event serve.start cmd web.serve event listen event serve.start cmd web.broad - # event listen event dream.create cmd web.code.xterm event listen event dream.create cmd web.code.tmux.session event listen event dream.create cmd web.chat.macos.notifications - # event listen event dream.create cmd web.chat.iframe - # event listen event dream.tables cmd web.wiki.word - # event listen event dream.tables cmd web.wiki.draw - # event listen event dream.tables cmd web.chat.macos.desktop - # event listen event dream.tables cmd web.team.plan ~ssh target web.chat.macos diff --git a/src/main.js b/src/main.js index c3bee5ea..89d23995 100644 --- a/src/main.js +++ b/src/main.js @@ -5,10 +5,10 @@ Volcanos({river: { project: {name: "研发群", storm: { studio: {name: "研发 studio", index: ["web.code.vimer", "web.code.git.status", "web.chat.favor", "web.team.plan", "web.wiki.word"]}, }}, - profile: {name: "测试群", storm: { + profile: {name: "测试群", type: aaa.TECH, storm: { release: {name: "发布 release", index: ["web.code.compile", "web.code.publish", "web.code.pprof", "web.code.bench", "web.dream", "web.space", "web.code.git.service", "web.code.git.status"]}, }}, - operate: {name: "运维群", storm: { + operate: {name: "运维群", type: aaa.TECH, storm: { web: {name: "应用 web", index: ["broad", "serve", "space", "dream", "share"]}, aaa: {name: "权限 aaa", index: ["offer", "email", "user", "totp", "sess", "role"]}, cli: {name: "系统 cli", index: ["qrcode", "daemon", "runtime", "cli.procstat", "cli.procinfo", "mirrors", "signal", "timer", "routine", "log.debug"]}, diff --git a/src/template/web.chat.header/mobile.css b/src/template/web.chat.header/mobile.css index 9429a9cc..97a0f021 100644 --- a/src/template/web.chat.header/mobile.css +++ b/src/template/web.chat.header/mobile.css @@ -7,14 +7,19 @@ body.mobile form.option>div.item.icon.next { font-size:26px; } body.mobile form.option>div.item.textarea { height:unset; } body.mobile form.option>div.item.button>input { display:none; } body.mobile form.option>div.button.icons>input { display:none; } +body.mobile fieldset:not(.panel):not(.input):not(.play)>div.action>div:not(.icons) { display:none; } +body.mobile fieldset.plugin:not(.float):not(.full):not(.cmd)>form.option>div.icon { display:block; } +body.mobile fieldset.plugin:not(.float):not(.full):not(.cmd)>form.option>div.button>span.icon { display:block; } +body.mobile fieldset.plugin:not(.float):not(.full):not(.cmd)>div.action>div.button>span.icon { display:inline-block; } +body.mobile fieldset.plugin:not(.float):not(.full):not(.cmd)>div.action>div.button>input { display:none; } body.mobile form.option>div.button>span.icon { line-height:32px; font-size:32px; height:32px; } +body.mobile div.action>div.button>span.icon { line-height:32px; font-size:32px; height:32px; } body.mobile fieldset>div.status { max-height:32px; } body.mobile div.item.text>span.icon.delete { top:4px; } body.mobile div.action>div.item { margin:0; height:32px; } body.mobile div.carte div.item { padding:10px; } body.mobile table.content th { padding:6px; } body.mobile table.content { width:100%; } -body.mobile fieldset:not(.panel):not(.input):not(.play)>div.action { display:none; } body.mobile fieldset.plugin:not(.float):not(.full):not(.cmd) { margin:10px 0; } body.mobile fieldset.Action>div.output>fieldset.plugin:not(.float):not(.full):not(.cmd)>legend { margin:10px; } body.mobile fieldset.Header { padding:0; width:100%; position:fixed; top:0; } @@ -25,8 +30,10 @@ body.mobile fieldset.Header div.output div.search>input { font-size:2.2rem; back body.mobile fieldset.Header div.output div.item.text.title.search { display:none; } body.mobile fieldset.Header div.output div.item:not(.avatar) { padding:0px 10px; } body.mobile fieldset.Search>div.action>div.item.filter>input { width:100%; } -body.mobile fieldset.River { min-width:240px; position:fixed; top:48px; z-index:10; } -body.mobile fieldset.River>div.output { font-size:1.4rem; width:320px; } +/* body.mobile fieldset.River { min-width:240px; position:fixed; top:48px; z-index:10; } */ +body.mobile fieldset.River { position:fixed; top:48px; z-index:10; } +/* body.mobile fieldset.River>div.output { font-size:1.4rem; width:320px; } */ +body.mobile fieldset.River>div.output { font-size:1.4rem; min-width:240px; } body.mobile fieldset.Action { margin-top:48px; } body.mobile.landscape fieldset.Action { margin-top:0; } body.mobile fieldset.Action.cmd { margin-top:0; margin-bottom:0; } diff --git a/src/template/web.chat.header/white.css b/src/template/web.chat.header/white.css index adc491e9..549fafab 100644 --- a/src/template/web.chat.header/white.css +++ b/src/template/web.chat.header/white.css @@ -1,7 +1,7 @@ body.white { background-color:white; color:black; } body.white legend { background-color:#ffffffc2; } body.white input { background-color:#ffffff7d; color:black; } -body.white textarea { background-color:white; color:black; } +body.white textarea { background-color:#ffffff7d; color:black; } body.white div.item:hover { background-color:aliceblue; } body.white div.item.select { background-color:aliceblue; } body.white table.content tr:hover { background-color:skyblue; } diff --git a/usr/local/export/web.chat.river/hash.json b/usr/local/export/web.chat.river/hash.json index 9f421d71..79fad663 100644 --- a/usr/local/export/web.chat.river/hash.json +++ b/usr/local/export/web.chat.river/hash.json @@ -1,4 +1,66 @@ { + "2c6718": { + "hash": { + "69444b": { + "hash": {}, + "list": [ + { + "id": 1, + "index": "cli.runtime", + "time": "2023-05-27 10:06:40.497" + } + ], + "meta": { + "count": 1, + "name": "hi", + "text": "hello", + "time": "2023-05-27 10:06:34.740" + } + } + }, + "meta": { + "name": "hi", + "text": "hello", + "time": "2023-05-26 19:26:14.274", + "type": "void" + } + }, + "5363c6": { + "hash": { + "15d611": { + "hash": {}, + "list": [ + { + "id": 1, + "index": "aaa.user", + "time": "2023-05-26 18:43:28.085" + }, + { + "id": 2, + "index": "aaa.offer", + "time": "2023-05-26 18:43:41.861" + }, + { + "id": 3, + "index": "aaa.email", + "time": "2023-05-26 18:44:11.349" + } + ], + "meta": { + "count": 3, + "name": "招聘", + "text": "hello", + "time": "2023-05-26 18:43:20.992" + } + } + }, + "meta": { + "name": "人力系统", + "text": "hello", + "time": "2023-05-26 18:43:07.900", + "type": "tech" + } + }, "644924": { "hash": { "386dc0": {