Repository navigation
๐จ Palette: ์๋ฐฉํฅ ํ ์คํธ(BiDi) ์ง์ ์ถ๊ฐ #457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 3 commits
5ee98c0
0795997
d257bc1
0a606d8
4c35f1a
d405c3e
2def4a1
5c5d99a
b5e84f4
075e8b2
79f92bc
4e29074
ada594b
f52e000
17aa965
3dc61ba
76a4dfb
5e71c87
defdbfd
73c74bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -315,7 +315,7 @@ fun process_ignore_file(curr_dir: File, dirFilesNames: Array<String>? = null): S | |
| // โก Bolt Performance Optimization: ๋๋ ํ ๋ฆฌ ๋ชฉ๋ก์ Set์ ์ถ๊ฐํ๊ธฐ ์ํด ํํฐ๋ง๋ง ํ ๋๋ ์ ๋ ฌ์ด ๋ถํ์ํ๋ฏ๋ก .sorted()๋ฅผ ์ ๊ฑฐํ์ฌ O(N log N) ์ค๋ฒํค๋๋ฅผ ๋ฐฉ์งํฉ๋๋ค. | ||
| val list = dirFilesNames ?: curr_dir.list() | ||
| list?.forEach { | ||
| val current = it | ||
| val current = it.trim() | ||
| val pathCurrent = try { | ||
| java.nio.file.Paths.get(current) | ||
| } catch (_: java.nio.file.InvalidPathException) { | ||
|
|
@@ -340,16 +340,17 @@ fun process_ignore_file(curr_dir: File, dirFilesNames: Array<String>? = null): S | |
|
|
||
| // ๋ณด์ ํฅ์: dot-like prefixes and case variants of known sensitive names are excluded. | ||
| (dirFilesNames ?: curr_dir.list())?.forEach { | ||
| val normalizedName = it.toLowerCase(java.util.Locale.ROOT) | ||
| val fileName = it.trim() | ||
| val normalizedName = fileName.toLowerCase(java.util.Locale.ROOT) | ||
| if ( | ||
| it.isHiddenFile() || | ||
| fileName.isHiddenFile() || | ||
| normalizedName in Constants.defaultSensitiveFileNamesLowercase || | ||
| normalizedName.endsWith("~") || | ||
| Constants.defaultSensitiveExtensions.any { extension -> | ||
| normalizedName.endsWith(extension) | ||
| } | ||
| ) { | ||
| files_to_exclude.add(it) | ||
| files_to_exclude.add(fileName) | ||
|
opencode-agent[bot] marked this conversation as resolved.
|
||
| } | ||
| } | ||
|
|
||
|
|
@@ -415,10 +416,10 @@ fun process_dir(curr_dir: File, excludeSet: Set<String>? = null, dirFiles: Array | |
| </head> | ||
| <body> | ||
| <main> | ||
| <h1>${directoryName.escapeHtml()}</h1> | ||
| <h1 dir="auto">${directoryName.escapeHtml()}</h1> | ||
| <nav aria-label="๋๋ ํ ๋ฆฌ ๋ชฉ๋ก"> | ||
| <ul role="list"> | ||
| <li><a class="dir-link" href="./.." aria-label="์์ ๋๋ ํ ๋ฆฌ๋ก ์ด๋" title="์์ ๋๋ ํ ๋ฆฌ๋ก ์ด๋"><span class="icon" aria-hidden="true">↰</span> <span>..</span></a></li> | ||
| <li><a class="dir-link" href="./.." aria-label="์์ ๋๋ ํ ๋ฆฌ๋ก ์ด๋" title="์์ ๋๋ ํ ๋ฆฌ๋ก ์ด๋"><span class="icon" aria-hidden="true">↰</span> <span dir="auto">..</span></a></li> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Master already moved the parent link to a |
||
| """ | ||
|
|
||
| val index_middle = fun():String{ | ||
|
|
@@ -448,14 +449,14 @@ fun process_dir(curr_dir: File, excludeSet: Set<String>? = null, dirFiles: Array | |
| val encodedHref = if (isLinkedDirectory) { "./${fileName.urlEncodePath()}/" } else { "./${fileName.urlEncodePath()}" } | ||
| val ariaLabel = "${fileName} ${if (isLinkedDirectory) { "๋๋ ํ ๋ฆฌ" } else { "ํ์ผ" }}".escapeHtml() | ||
| val icon = if (isLinkedDirectory) { "📁" } else { "📄" } | ||
| l.append(""" <li><a class="dir-link" href="${encodedHref}" aria-label="${ariaLabel}" title="${ariaLabel}"><span class="icon" aria-hidden="true">${icon}</span> <span>${fileName.escapeHtml()}</span></a></li>""") | ||
| l.append(""" <li><a class="dir-link" href="${encodedHref}" aria-label="${ariaLabel}" title="${ariaLabel}"><span class="icon" aria-hidden="true">${icon}</span> <span dir="auto">${fileName.escapeHtml()}</span></a></li>""") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| l.append('\n') | ||
| } | ||
| } | ||
| } | ||
|
|
||
| if(l.isEmpty()){ | ||
| l.append(""" <li><div class="empty-dir" role="status"><span class="icon" aria-hidden="true">📂</span> <span>์ด ๋๋ ํ ๋ฆฌ๋ ๋น์ด ์์ต๋๋ค.</span></div></li>""") | ||
| l.append(""" <li><div class="empty-dir" role="status"><span class="icon" aria-hidden="true">📂</span> <span dir="auto">์ด ๋๋ ํ ๋ฆฌ๋ ๋น์ด ์์ต๋๋ค.</span></div></li>""") | ||
| l.append('\n') | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.