Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ reviews:

path_filters:
- '!**/*.svg'
- '!**/desktop.ini'

path_instructions:
# ── 全局审美与架构 ──────────────────────────────────────────────────
Expand Down
2 changes: 1 addition & 1 deletion .esh/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,170
IconResource=%SystemRoot%\System32\SHELL32.dll,170
[ViewState]
Mode=
Vid=
Expand Down
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,278
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/actions/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,261
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/actions/fount-ci/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,165
[ViewState]
Mode=
Vid=
FolderType=Generic
2 changes: 1 addition & 1 deletion .github/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,276
IconResource=%SystemRoot%\System32\SHELL32.dll,276
[ViewState]
Mode=
Vid=
Expand Down
6 changes: 6 additions & 0 deletions .github/pages/badges/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,287
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,189
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/login_info/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,47
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/protocol/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,150
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/readme/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,1
[ViewState]
Mode=
Vid=
FolderType=Documents
6 changes: 6 additions & 0 deletions .github/pages/scripts/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,261
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/test/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,171
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/test/frontend/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,189
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/values_update/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,69
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/wait/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,297
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/wait/install/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,122
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/wait/install/error/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,235
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/pages/wait/install/templates/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,189
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/workflows/default_data/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,132
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/workflows/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,297
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions .github/workflows/scripts/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,261
[ViewState]
Mode=
Vid=
FolderType=Generic
2 changes: 1 addition & 1 deletion .vscode/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,70
IconResource=%SystemRoot%\System32\SHELL32.dll,70
[ViewState]
Mode=
Vid=
Expand Down
2 changes: 1 addition & 1 deletion default/default_desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,54
IconResource=%SystemRoot%\System32\SHELL32.dll,54
[ViewState]
Mode=
Vid=
Expand Down
2 changes: 1 addition & 1 deletion default/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,134
IconResource=%SystemRoot%\System32\SHELL32.dll,134
[ViewState]
Mode=
Vid=
Expand Down
2 changes: 1 addition & 1 deletion default/git_desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,14
IconResource=%SystemRoot%\System32\SHELL32.dll,14
[ViewState]
Mode=
Vid=
Expand Down
2 changes: 1 addition & 1 deletion default/node_modules_desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,135
IconResource=%SystemRoot%\System32\SHELL32.dll,135
[ViewState]
Mode=
Vid=
Expand Down
2 changes: 1 addition & 1 deletion docs/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,1
IconResource=%SystemRoot%\System32\SHELL32.dll,1
[ViewState]
Mode=
Vid=
Expand Down
2 changes: 1 addition & 1 deletion imgs/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,318
IconResource=%SystemRoot%\System32\SHELL32.dll,318
[ViewState]
Mode=
Vid=
Expand Down
6 changes: 6 additions & 0 deletions imgs/icon_anime/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,141
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions imgs/icon_anime/fluid/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,261
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions imgs/icon_anime/gesture/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,159
[ViewState]
Mode=
Vid=
FolderType=Generic
6 changes: 6 additions & 0 deletions imgs/icon_anime/test/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=%SystemRoot%\System32\SHELL32.dll,171
[ViewState]
Mode=
Vid=
FolderType=Generic
2 changes: 1 addition & 1 deletion path/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,24
IconResource=%SystemRoot%\System32\SHELL32.dll,24
[ViewState]
Mode=
Vid=
Expand Down
8 changes: 4 additions & 4 deletions path/fount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ get_best_locale() {
echo "en-UK" # 默认
}

# 加载本地化数据
# 加载本地化数据(调用方勿 export,否则某些 Linux 会撞 ARG_MAX)
# shellcheck disable=SC2120
load_locale_data() {
if [ -z "$FOUNT_LOCALE" ]; then
Expand All @@ -122,7 +122,7 @@ load_locale_data() {
fi
fi
if command -v jq &>/dev/null; then
cat "$locale_file"
jq -c '.fountConsole.path // {}' "$locale_file"
else
echo "{}" # 如果 jq 不可用,则返回空 json
fi
Expand Down Expand Up @@ -222,12 +222,12 @@ apply_i18n_backticks() {

get_i18n() {
local key="$1"
# 普通 shell 变量缓存即可;子 shell 会继承,勿 export(ARG_MAX)
if [ -z "$FOUNT_LOCALE_DATA" ]; then
FOUNT_LOCALE_DATA=$(load_locale_data)
export FOUNT_LOCALE_DATA
fi
local translation
translation=$(echo "$FOUNT_LOCALE_DATA" | jq -r ".fountConsole.path.$key // .\"$key\" // \"$key\"")
translation=$(printf '%s' "$FOUNT_LOCALE_DATA" | jq -r --arg key "$key" 'getpath($key | split(".")) // $key')

shift
while [ $# -gt 0 ]; do
Expand Down
2 changes: 1 addition & 1 deletion src/decl/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,156
IconResource=%SystemRoot%\System32\SHELL32.dll,156
[ViewState]
Mode=
Vid=
Expand Down
31 changes: 15 additions & 16 deletions src/decl/locale_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4209,22 +4209,6 @@ export type LocaleData = {
label: string
}
}
edit: {
apply: string
brush: string
brushColor: {
title: string
'aria-label': string
}
brushSize: {
title: string
'aria-label': string
}
cancel: string
crop: string
image: string
mosaic: string
}
}
feed: {
refresh: {
Expand Down Expand Up @@ -5597,6 +5581,21 @@ export type LocaleData = {
'aria-label': string
}
}
imageEditor: {
apply: string
brush: string
brushColor: {
title: string
'aria-label': string
}
brushSize: {
title: string
'aria-label': string
}
crop: string
image: string
mosaic: string
}
common: {
cancel: string
create: string
Expand Down
2 changes: 1 addition & 1 deletion src/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,72
IconResource=%SystemRoot%\System32\SHELL32.dll,72
[ViewState]
Mode=
Vid=
Expand Down
2 changes: 1 addition & 1 deletion src/log_viewer/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\Windows\System32\cmd.exe,0
IconResource=%SystemRoot%\cmd.exe,0
[ViewState]
Mode=
Vid=
Expand Down
2 changes: 1 addition & 1 deletion src/public/desktop.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,148
IconResource=%SystemRoot%\System32\SHELL32.dll,148
[ViewState]
Mode=
Vid=
Expand Down
31 changes: 15 additions & 16 deletions src/public/locales/ar-SA.json
Original file line number Diff line number Diff line change
Expand Up @@ -4234,22 +4234,6 @@
"followers7d": "متابعون لأكثر من 7 أيام",
"label": "من يستطيع الرد"
}
},
"edit": {
"apply": "تطبيق",
"brush": "فرشاة",
"brushColor": {
"title": "لون الفرشاة",
"aria-label": "لون الفرشاة"
},
"brushSize": {
"title": "سُمك الفرشاة",
"aria-label": "سُمك الفرشاة"
},
"cancel": "إلغاء",
"crop": "اقتصاص",
"image": "تعديل",
"mosaic": "تمويه"
}
},
"feed": {
Expand Down Expand Up @@ -5617,6 +5601,21 @@
"aria-label": "الإشعارات"
}
},
"imageEditor": {
"apply": "تطبيق",
"brush": "فرشاة",
"brushColor": {
"title": "لون الفرشاة",
"aria-label": "لون الفرشاة"
},
"brushSize": {
"title": "سُمك الفرشاة",
"aria-label": "سُمك الفرشاة"
},
"crop": "اقتصاص",
"image": "تعديل",
"mosaic": "تمويه"
},
"common": {
"cancel": "إلغاء",
"create": "إنشاء",
Expand Down
Loading
Loading