Compare commits

..

No commits in common. "f0ff3e9ed5318260b251529072529b00dc7b29da" and "8948f76f169a4eb472a9782f29e5f8e17b93f6ef" have entirely different histories.

19 changed files with 120 additions and 241 deletions

View File

@ -48,7 +48,7 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 16
- name: Build frontend assets - name: Build frontend assets
shell: bash shell: bash

View File

@ -54,7 +54,7 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 16
- name: Build frontend assets - name: Build frontend assets
shell: bash shell: bash
@ -80,34 +80,29 @@ jobs:
# AC_USERNAME: ${{ secrets.AC_USERNAME }} # AC_USERNAME: ${{ secrets.AC_USERNAME }}
# AC_PASSWORD: ${{ secrets.AC_PASSWORD }} # AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
- name: Checkout create-image - name: Compress macOS app
uses: actions/checkout@v2 shell: bash
with: working-directory: ./build/bin
repository: create-dmg/create-dmg run: |
path: ./build/create-dmg mv tinyrdm.app "Tiny RDM.app"
ref: master zip -r TinyRDM-${{ steps.normalise_platform.outputs.tag }}.zip "Tiny RDM.app"
- name: Upload release asset (ZIP Package)
shell: bash
working-directory: ./build/bin/
run: |
filepath="TinyRDM-${{ steps.normalise_platform.outputs.tag }}.zip"
filename="TinyRDM_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.zip"
upload_url="https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.event.release.id }}/assets"
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Content-Type: application/zip" --data-binary @$filepath "$upload_url?name=$filename"
- name: Build macOS DMG - name: Build macOS DMG
shell: bash shell: bash
working-directory: ./build working-directory: ./build/bin
run: | run: |
mv bin/tinyrdm.app "bin/Tiny RDM.app" rm TinyRDM-${{ steps.normalise_platform.outputs.tag }}.zip
./create-dmg/create-dmg \ ln -s /Applications Applications
--no-internet-enable \ hdiutil create -volname "Tiny RDM" -srcfolder . -ov -format UDBZ TinyRDM-${{ steps.normalise_platform.outputs.tag }}.dmg
--volname "Tiny RDM" \
--volicon "bin/Tiny RDM.app/Contents/Resources/iconfile.icns" \
--background "dmg/background.tiff" \
--text-size 12 \
--window-pos 400 400 \
--window-size 660 450 \
--icon-size 80 \
--icon "Tiny RDM.app" 180 180 \
--hide-extension "Tiny RDM.app" \
--app-drop-link 480 180 \
--add-file "Repair" "dmg/fix-app" 230 290 \
--add-file "损坏修复" "dmg/fix-app_zh" 430 290 \
"bin/TinyRDM-${{ steps.normalise_platform.outputs.tag }}.dmg" \
"bin"
- name: Upload release asset (DMG Package) - name: Upload release asset (DMG Package)
shell: bash shell: bash

View File

@ -47,7 +47,7 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 16
- name: Build frontend assets - name: Build frontend assets
shell: bash shell: bash

View File

@ -24,12 +24,6 @@ Linux.</strong>
<img alt="screenshot" src="screenshots/dark_en.png"> <img alt="screenshot" src="screenshots/dark_en.png">
</picture> </picture>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="screenshots/dark_en2.png">
<source media="(prefers-color-scheme: light)" srcset="screenshots/light_en2.png">
<img alt="screenshot" src="screenshots/dark_en2.png">
</picture>
## Feature ## Feature
* Super lightweight, built on Webview2, without embedded browsers (Thanks * Super lightweight, built on Webview2, without embedded browsers (Thanks

View File

@ -20,12 +20,6 @@
<img alt="screenshot" src="screenshots/dark_zh.png"> <img alt="screenshot" src="screenshots/dark_zh.png">
</picture> </picture>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="screenshots/dark_zh2.png">
<source media="(prefers-color-scheme: light)" srcset="screenshots/light_zh2.png">
<img alt="screenshot" src="screenshots/dark_zh2.png">
</picture>
## 功能特性 ## 功能特性
* 极度轻量基于Webview2无内嵌浏览器感谢[Wails](https://github.com/wailsapp/wails) * 极度轻量基于Webview2无内嵌浏览器感谢[Wails](https://github.com/wailsapp/wails)

View File

@ -1,40 +0,0 @@
#!/bin/bash
clear
BLACK="\033[0;30m"
DARK_GRAY="\033[1;30m"
BLUE="\033[0;34m"
LIGHT_BLUE="\033[1;34m"
GREEN="\033[0;32m"
LIGHT_GREEN="\033[1;32m"
CYAN="\033[0;36m"
LIGHT_CYAN="\033[1;36m"
RED="\033[0;31m"
LIGHT_RED="\033[1;31m"
PURPLE="\033[0;35m"
LIGHT_PURPLE="\033[1;35m"
BROWN="\033[0;33m"
YELLOW="\033[0;33m"
LIGHT_GRAY="\033[0;37m"
WHITE="\033[1;37m"
NC="\033[0m"
parentPath=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
cd "$parentPath"
appPath=$( find "$parentPath" -name '*.app' -maxdepth 1)
appName=${appPath##*/}
appBashName=${appName// /\ }
appDIR="/Applications/${appBashName}"
echo -e "This tool fix these situations: \"${appBashName}\" is damaged and can't not be opened."
echo ""
if [ ! -d "$appDIR" ];then
echo ""
echo -e "Execution result: ${RED}You haven't installed ${appBashName} yet, please install it first.${NC}"
else
echo -e "${YELLOW}Please enter your login password, and then press enter. (The password is invisible during input)${NC}"
sudo spctl --master-disable
sudo xattr -rd com.apple.quarantine /Applications/"$appBashName"
sudo xattr -rc /Applications/"$appBashName"
sudo codesign --sign - --force --deep /Applications/"$appBashName"
echo -e "Execution result: ${GREEN}Already fixed! ${NC} ${appBashName} will work correctly.${NC}"
fi
echo -e "You can close this window now"

View File

@ -24,14 +24,14 @@ appPath=$( find "$parentPath" -name '*.app' -maxdepth 1)
appName=${appPath##*/} appName=${appPath##*/}
appBashName=${appName// /\ } appBashName=${appName// /\ }
appDIR="/Applications/${appBashName}" appDIR="/Applications/${appBashName}"
echo -e "『${appBashName} 提示已损坏,无法打开/ 来自身份不明的开发者』等问题修复工具" echo -e "『${appBashName} 已损坏,无法打开/ 来自身份不明的开发者』等问题修复工具"
echo "" echo ""
# 未安装APP时提醒安装已安装绕过公证 #未安装APP时提醒安装已安装绕过公证
if [ ! -d "$appDIR" ];then if [ ! -d "$appDIR" ];then
echo "" echo ""
echo -e "执行结果:${RED}您还未安装 ${appBashName} ,请先安装${NC}" echo -e "执行结果:${RED}您还未安装 ${appBashName} ,请先安装${NC}"
else else
# 绕过公证 #绕过公证
echo -e "${YELLOW}请输入开机密码,输入完成后按下回车键(输入过程中密码是看不见的)${NC}" echo -e "${YELLOW}请输入开机密码,输入完成后按下回车键(输入过程中密码是看不见的)${NC}"
sudo spctl --master-disable sudo spctl --master-disable
sudo xattr -rd com.apple.quarantine /Applications/"$appBashName" sudo xattr -rd com.apple.quarantine /Applications/"$appBashName"

View File

@ -12,12 +12,12 @@ import Detail from '@/components/icons/Detail.vue'
import ContentValueWrapper from '@/components/content_value/ContentValueWrapper.vue' import ContentValueWrapper from '@/components/content_value/ContentValueWrapper.vue'
import ContentCli from '@/components/content_value/ContentCli.vue' import ContentCli from '@/components/content_value/ContentCli.vue'
import Monitor from '@/components/icons/Monitor.vue' import Monitor from '@/components/icons/Monitor.vue'
import Pub from '@/components/icons/Pub.vue'
import ContentSlog from '@/components/content_value/ContentSlog.vue' import ContentSlog from '@/components/content_value/ContentSlog.vue'
import { decodeTypes, formatTypes } from '@/consts/value_view_type.js' import { decodeTypes, formatTypes } from '@/consts/value_view_type.js'
import ContentMonitor from '@/components/content_value/ContentMonitor.vue' import ContentMonitor from '@/components/content_value/ContentMonitor.vue'
import { decodeRedisKey } from '@/utils/key_convert.js' import { decodeRedisKey } from '@/utils/key_convert.js'
import ContentPubsub from '@/components/content_value/ContentPubsub.vue' import ContentPubsub from '@/components/content_value/ContentPubsub.vue'
import Subscribe from '@/components/icons/Subscribe.vue'
const themeVars = useThemeVars() const themeVars = useThemeVars()
@ -198,7 +198,7 @@ watch(
<template #tab> <template #tab>
<n-space :size="5" :wrap-item="false" align="center" inline justify="center"> <n-space :size="5" :wrap-item="false" align="center" inline justify="center">
<n-icon size="16"> <n-icon size="16">
<subscribe <pub
:inverse="selectedSubTab === BrowserTabType.PubMessage.toString()" :inverse="selectedSubTab === BrowserTabType.PubMessage.toString()"
:stroke-color="themeVars.tabColor" :stroke-color="themeVars.tabColor"
stroke-width="4" /> stroke-width="4" />

View File

@ -1,19 +1,5 @@
<script setup> <script setup>
import { import { cloneDeep, flatMap, get, isEmpty, map, mapValues, pickBy, slice, split, sum, toArray, toNumber } from 'lodash'
cloneDeep,
flatMap,
get,
isEmpty,
map,
mapValues,
pickBy,
random,
slice,
split,
sum,
toArray,
toNumber,
} from 'lodash'
import { computed, onMounted, onUnmounted, reactive, ref, shallowRef, toRaw, watch } from 'vue' import { computed, onMounted, onUnmounted, reactive, ref, shallowRef, toRaw, watch } from 'vue'
import IconButton from '@/components/common/IconButton.vue' import IconButton from '@/components/common/IconButton.vue'
import Filter from '@/components/icons/Filter.vue' import Filter from '@/components/icons/Filter.vue'
@ -133,59 +119,7 @@ const _updateChart = (info) => {
dataset2 = dataset2.concat(output) dataset2 = dataset2.concat(output)
dataset2 = slice(dataset2, Math.max(0, dataset2.length - statusHistory)) dataset2 = slice(dataset2, Math.max(0, dataset2.length - statusHistory))
networkRate.value = generateData(networkRate.value, timeLabels, [dataset1, dataset2]) networkRate.value = generateData(networkRate.value, timeLabels, [dataset1, dataset2])
} // console.log(dataset1, dataset2)
}
/**
* for mock activity data only
* @private
*/
const _mockChart = () => {
const timeLabels = []
for (let i = 0; i < 5; i++) {
timeLabels.push(dayjs().add(5, 'seconds').format('hh:mm:ss'))
}
// commands per seconds
{
const dataset = []
for (let i = 0; i < 5; i++) {
dataset.push(random(10, 200))
}
cmdRate.value = generateData(cmdRate.value, timeLabels, [dataset])
}
// connected clients
{
const dataset = []
for (let i = 0; i < 5; i++) {
dataset.push(random(10, 20))
}
connectedClients.value = generateData(connectedClients.value, timeLabels, [dataset])
}
// memory usage
{
const dataset = []
for (let i = 0; i < 5; i++) {
dataset.push(random(120 * 1024 * 1024, 200 * 1024 * 1024))
}
memoryUsage.value = generateData(memoryUsage.value, timeLabels, [dataset])
}
// network input/output rate
{
const dataset1 = []
for (let i = 0; i < 5; i++) {
dataset1.push(random(100, 1500))
}
const dataset2 = []
for (let i = 0; i < 5; i++) {
dataset2.push(random(200, 3000))
}
networkRate.value = generateData(networkRate.value, timeLabels, [dataset1, dataset2])
} }
} }
@ -238,7 +172,6 @@ onMounted(() => {
onToggleRefresh(true) onToggleRefresh(true)
} else { } else {
setTimeout(refreshInfo, 5000) setTimeout(refreshInfo, 5000)
// setTimeout(_mockChart, 1000)
} }
refreshInfo() refreshInfo()
}) })
@ -424,83 +357,40 @@ const networkRate = shallowRef({
], ],
}) })
const chartOption = computed(() => { const chartOption = {
return { responsive: true,
responsive: true, maintainAspectRatio: false,
maintainAspectRatio: false, events: [],
events: [], scales: {
scales: { y: {
x: { beginAtZero: true,
grid: { stepSize: 1024,
color: themeVars.value.borderColor, suggestedMin: 0,
}, ticks: {
ticks: { precision: 0,
color: themeVars.value.textColor3,
},
},
y: {
beginAtZero: true,
stepSize: 1024,
suggestedMin: 0,
grid: {
color: themeVars.value.borderColor,
},
ticks: {
color: themeVars.value.textColor3,
precision: 0,
},
}, },
}, },
plugins: { },
legend: { }
labels: {
color: themeVars.value.textColor2,
},
},
},
}
})
const byteChartOption = computed(() => { const byteChartOption = {
return { responsive: true,
responsive: true, maintainAspectRatio: false,
maintainAspectRatio: false, events: [],
events: [], scales: {
scales: { y: {
x: { beginAtZero: true,
grid: { suggestedMin: 0,
color: themeVars.value.borderColor, ticks: {
}, precision: 0,
ticks: { // format display y axios tag
color: themeVars.value.textColor3, callback: function (value, index, values) {
}, return formatBytes(value, 1)
},
y: {
beginAtZero: true,
stepSize: 1024,
suggestedMin: 0,
grid: {
color: themeVars.value.borderColor,
},
ticks: {
color: themeVars.value.textColor3,
precision: 0,
// format display y axios tag
callback: function (value, index, values) {
return formatBytes(value, 1)
},
}, },
}, },
}, },
plugins: { },
legend: { }
labels: {
color: themeVars.value.textColor2,
},
},
},
}
})
</script> </script>
<template> <template>

View File

@ -45,7 +45,7 @@ const keyOptions = computed(() => {
const onSavePreferences = async () => { const onSavePreferences = async () => {
const success = await prefStore.savePreferences() const success = await prefStore.savePreferences()
if (success) { if (success) {
// $message.success(i18n.t('dialogue.handle_succ')) $message.success(i18n.t('dialogue.handle_succ'))
dialogStore.closePreferencesDialog() dialogStore.closePreferencesDialog()
} }
} }

View File

@ -0,0 +1,46 @@
<script setup>
const props = defineProps({
inverse: {
type: Boolean,
default: false,
},
strokeWidth: {
type: [Number, String],
default: 3,
},
strokeColor: {
type: String,
default: 'currentColor',
},
})
</script>
<template>
<svg fill="none" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
<path
:stroke-width="props.strokeWidth"
d="M33 38H22V30H36V22H44V38H39L36 41L33 38Z"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round" />
<path
:fill="props.inverse ? 'currentColor' : 'none'"
:stroke-width="props.strokeWidth"
d="M4 6H36V30H17L13 34L9 30H4V6Z"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round" />
<path
:stroke="props.inverse ? props.strokeColor : 'currentColor'"
:stroke-width="props.strokeWidth"
d="M12 22H18"
stroke-linecap="round" />
<path
:stroke="props.inverse ? props.strokeColor : 'currentColor'"
:stroke-width="props.strokeWidth"
d="M12 14H24"
stroke-linecap="round" />
</svg>
</template>
<style lang="scss" scoped></style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB