GitHub Actions
commited on
Commit
Β·
9851df5
1
Parent(s):
9ae9702
Auto-deploy from GitHub Actions - 2025-12-12 07:40:57
Browse files- templates/index.html +6 -0
- templates/webnovels.html +5 -0
templates/index.html
CHANGED
|
@@ -1709,6 +1709,12 @@
|
|
| 1709 |
|
| 1710 |
// API μλ΅μ { files: [...], model_stats: {...} } νν
|
| 1711 |
let files = data.files || [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1712 |
console.log('[μΉμμ€ λͺ©λ‘] νμΌ κ°μ:', files.length);
|
| 1713 |
|
| 1714 |
// νμΌμ΄ μμΌλ©΄ μ 체 νμΌ μ¬μ‘°ν λ‘μ§ μ κ±° (μ¬μ©μ μμ²μ λ°λΌ)
|
|
|
|
| 1709 |
|
| 1710 |
// API μλ΅μ { files: [...], model_stats: {...} } νν
|
| 1711 |
let files = data.files || [];
|
| 1712 |
+
|
| 1713 |
+
// κ°λλ€μ μ λ ¬ (κΈ°λ³Έκ°)
|
| 1714 |
+
files.sort((a, b) => {
|
| 1715 |
+
return a.original_filename.localeCompare(b.original_filename, 'ko');
|
| 1716 |
+
});
|
| 1717 |
+
|
| 1718 |
console.log('[μΉμμ€ λͺ©λ‘] νμΌ κ°μ:', files.length);
|
| 1719 |
|
| 1720 |
// νμΌμ΄ μμΌλ©΄ μ 체 νμΌ μ¬μ‘°ν λ‘μ§ μ κ±° (μ¬μ©μ μμ²μ λ°λΌ)
|
templates/webnovels.html
CHANGED
|
@@ -932,6 +932,11 @@
|
|
| 932 |
// API μλ΅μ { files: [...], model_stats: {...} } νν
|
| 933 |
allWebnovels = data.files || [];
|
| 934 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 935 |
if (!Array.isArray(allWebnovels)) {
|
| 936 |
console.error('μμμΉ λͺ»ν μλ΅ νμ:', data);
|
| 937 |
throw new Error('μΉμμ€ λͺ©λ‘ νμμ΄ μ¬λ°λ₯΄μ§ μμ΅λλ€.');
|
|
|
|
| 932 |
// API μλ΅μ { files: [...], model_stats: {...} } νν
|
| 933 |
allWebnovels = data.files || [];
|
| 934 |
|
| 935 |
+
// κ°λλ€μ μ λ ¬ (κΈ°λ³Έκ°)
|
| 936 |
+
allWebnovels.sort((a, b) => {
|
| 937 |
+
return a.original_filename.localeCompare(b.original_filename, 'ko');
|
| 938 |
+
});
|
| 939 |
+
|
| 940 |
if (!Array.isArray(allWebnovels)) {
|
| 941 |
console.error('μμμΉ λͺ»ν μλ΅ νμ:', data);
|
| 942 |
throw new Error('μΉμμ€ λͺ©λ‘ νμμ΄ μ¬λ°λ₯΄μ§ μμ΅λλ€.');
|