Compare commits

...

4 Commits

Author SHA1 Message Date
Lykin fc67590bde fix: keep the app title unwrapped (#217) 2024-04-02 18:31:09 +08:00
Lykin 2e28c1b44b fix: context menu in the browser tree 2024-04-02 18:00:16 +08:00
Lykin c7c647d728 perf: use `exec.LookPath` to check the path of external application 2024-04-02 17:26:23 +08:00
Lykin 4fd73411de revert: update text description 2024-04-02 17:24:06 +08:00
15 changed files with 24 additions and 15 deletions

View File

@ -17,8 +17,10 @@ type PreferencesStorage struct {
}
func NewPreferences() *PreferencesStorage {
storage := NewLocalStore("preferences.yaml")
log.Printf("preferences path: %s\n", storage.ConfPath)
return &PreferencesStorage{
storage: NewLocalStore("preferences.yaml"),
storage: storage,
}
}

View File

@ -1,5 +1,9 @@
package convutil
import (
"os/exec"
)
type PhpConvert struct {
CmdConvert
}
@ -47,7 +51,7 @@ func NewPhpConvert() *PhpConvert {
}
var err error
if _, err = runCommand(c.DecodePath, "-v"); err != nil {
if _, err = exec.LookPath(c.DecodePath); err != nil {
return nil
}

View File

@ -1,5 +1,7 @@
package convutil
import "os/exec"
type PickleConvert struct {
CmdConvert
}
@ -40,9 +42,9 @@ func NewPickleConvert() *PickleConvert {
}
c.DecodePath, c.EncodePath = "python3", "python3"
var err error
if _, err = runCommand(c.DecodePath, "--version"); err != nil {
if _, err = exec.LookPath(c.DecodePath); err != nil {
c.DecodePath, c.EncodePath = "python", "python"
if _, err = runCommand(c.DecodePath, "--version"); err != nil {
if _, err = exec.LookPath(c.DecodePath); err != nil {
return nil
}
}

View File

@ -133,7 +133,7 @@ onMounted(async () => {
}">
<n-space :size="3" :wrap="false" :wrap-item="false" align="center">
<n-avatar :size="32" :src="iconUrl" color="#0000" style="min-width: 32px" />
<div style="min-width: 68px; font-weight: 800">Tiny RDM</div>
<div style="min-width: 68px; white-space: nowrap; font-weight: 800">Tiny RDM</div>
<transition name="fade">
<n-text v-if="tabStore.nav === 'browser'" class="ellipsis" strong style="font-size: 13px">
- {{ tabStore.currentTabName }}

View File

@ -496,8 +496,8 @@ const nodeProps = ({ option }) => {
return
}
contextMenuParam.show = false
contextMenuParam.options = markRaw(menuOptions[option.type] || [])
nextTick().then(() => {
contextMenuParam.options = markRaw(menuOptions[option.type] || [])
contextMenuParam.x = e.clientX
contextMenuParam.y = e.clientY
contextMenuParam.show = true

View File

@ -39,7 +39,7 @@
"font": "Font",
"font_tip": "Select or input font name",
"font_size": "Font Size",
"scan_size": "The Number of Elements per load",
"scan_size": "Default Size for SCAN",
"scan_size_tip": "Default return number of elements for SCAN/HSCAN/SSCAN/ZSCAN",
"key_icon_style": "Key Icon Style",
"key_icon_style0": "Compact",

View File

@ -39,7 +39,7 @@
"font": "Fuente",
"font_tip": "Seleccione o ingrese el nombre de la fuente",
"font_size": "Tamaño de fuente",
"scan_size": "Número de elementos por carga",
"scan_size": "Tamaño predeterminado para SCAN",
"scan_size_tip": "Número de elementos devueltos por los comandos SCAN/HSCAN/SSCAN/ZSCAN",
"key_icon_style": "Estilo de icono de clave",
"key_icon_style0": "Compacto",

View File

@ -39,7 +39,7 @@
"font": "Police",
"font_tip": "Sélectionner ou saisir le nom de la police",
"font_size": "Taille de la police",
"scan_size": "Nombre d'éléments par chargement",
"scan_size": "Taille par défaut pour SCAN",
"scan_size_tip": "Nombre d'éléments retournés par les commandes SCAN/HSCAN/SSCAN/ZSCAN",
"key_icon_style": "Style d'icône de clé",
"key_icon_style0": "Compact",

View File

@ -39,7 +39,7 @@
"font": "フォント",
"font_tip": "フォント名を選択または入力してください",
"font_size": "フォントサイズ",
"scan_size": "1回の読み込み数",
"scan_size": "SCANコマンドのデフォルトサイズ",
"scan_size_tip": "SCAN/HSCAN/SSCAN/ZSCAN コマンドで1回に返される要素の数",
"key_icon_style": "キーアイコンのスタイル",
"key_icon_style0": "コンパクトタイプ",

View File

@ -39,7 +39,7 @@
"font": "폰트",
"font_tip": "폰트 선택 또는 이름 입력",
"font_size": "폰트 크기",
"scan_size": "한 번에 로드되는 요소 수",
"scan_size": "SCAN 기본 크기",
"scan_size_tip": "SCAN/HSCAN/SSCAN/ZSCAN 명령에서 한 번에 반환되는 요소 수",
"key_icon_style": "키 아이콘 스타일",
"key_icon_style0": "간략한 타입",

View File

@ -39,7 +39,7 @@
"font": "Fonte",
"font_tip": "Selecione ou digite o nome da fonte",
"font_size": "Tamanho da Fonte",
"scan_size": "Número de elementos por carregamento",
"scan_size": "Tamanho Padrão para Comando SCAN",
"scan_size_tip": "Número de elementos retornados por vez pelos comandos SCAN/HSCAN/SSCAN/ZSCAN",
"key_icon_style": "Estilo do Ícone de Chave",
"key_icon_style0": "Compacto",

View File

@ -39,7 +39,7 @@
"font": "Шрифт",
"font_tip": "Выберите или введите название шрифта",
"font_size": "Размер шрифта",
"scan_size": "Количество элементов за одну загрузку",
"scan_size": "Размер по умолчанию для SCAN",
"scan_size_tip": "Количество элементов, возвращаемых за один раз командами SCAN/HSCAN/SSCAN/ZSCAN",
"key_icon_style": "Стиль значка ключа",
"key_icon_style0": "Компактный",

View File

@ -39,7 +39,7 @@
"font": "字体",
"font_tip": "请选择或手动输入字体名",
"font_size": "字体尺寸",
"scan_size": "单次加载数量",
"scan_size": "SCAN命令默认数量",
"scan_size_tip": "SCAN/HSCAN/SSCAN/ZSCAN 命令每次返回数量",
"key_icon_style": "键图标样式",
"key_icon_style0": "紧凑类型",

View File

@ -39,7 +39,7 @@
"font": "字型",
"font_tip": "請選擇或手動輸入字型名稱",
"font_size": "字型大小",
"scan_size": "單次載入數量",
"scan_size": "SCAN命令預設數量",
"scan_size_tip": "SCAN/HSCAN/SSCAN/ZSCAN 命令每次返回的元素數量",
"key_icon_style": "鍵圖示樣式",
"key_icon_style0": "緊湊類型",

View File

@ -117,6 +117,7 @@ func main() {
DisableFramelessWindowDecorations: true,
},
Linux: &linux.Options{
ProgramName: "Tiny RDM",
Icon: icon,
WebviewGpuPolicy: linux.WebviewGpuPolicyOnDemand,
WindowIsTranslucent: true,