duqing2026 commited on
Commit
b5be83c
·
1 Parent(s): 85cae67

小优化

Browse files
__pycache__/app.cpython-314.pyc CHANGED
Binary files a/__pycache__/app.cpython-314.pyc and b/__pycache__/app.cpython-314.pyc differ
 
templates/index.html CHANGED
@@ -217,7 +217,7 @@
217
  class="w-full h-full object-contain"
218
  :class="{'opacity-20': !previewUrl}">
219
  </div>
220
- <span class="truncate">My Website Title</span>
221
  <i class="fas fa-times text-xs text-slate-400 ml-auto"></i>
222
  </div>
223
  <div class="w-32 bg-slate-300/50 rounded-t-lg px-3 py-2 flex items-center space-x-2">
@@ -240,7 +240,7 @@
240
  class="w-full h-full object-contain"
241
  :class="{'opacity-20': !previewUrl}">
242
  </div>
243
- <span class="text-white text-xs font-medium drop-shadow-md">My App</span>
244
  </div>
245
  </div>
246
  </div>
@@ -326,6 +326,12 @@
326
  if (bgColor.value !== 'transparent') {
327
  code += `\n<meta name="theme-color" content="${bgColor.value}">`;
328
  }
 
 
 
 
 
 
329
  return code;
330
  });
331
 
 
217
  class="w-full h-full object-contain"
218
  :class="{'opacity-20': !previewUrl}">
219
  </div>
220
+ <span class="truncate">{{ siteName || 'My Website Title' }}</span>
221
  <i class="fas fa-times text-xs text-slate-400 ml-auto"></i>
222
  </div>
223
  <div class="w-32 bg-slate-300/50 rounded-t-lg px-3 py-2 flex items-center space-x-2">
 
240
  class="w-full h-full object-contain"
241
  :class="{'opacity-20': !previewUrl}">
242
  </div>
243
+ <span class="text-white text-xs font-medium drop-shadow-md">{{ shortName || 'My App' }}</span>
244
  </div>
245
  </div>
246
  </div>
 
326
  if (bgColor.value !== 'transparent') {
327
  code += `\n<meta name="theme-color" content="${bgColor.value}">`;
328
  }
329
+ if (siteName.value) {
330
+ code += `\n<meta name="application-name" content="${siteName.value}">`;
331
+ }
332
+ if (shortName.value) {
333
+ code += `\n<meta name="apple-mobile-web-app-title" content="${shortName.value}">`;
334
+ }
335
  return code;
336
  });
337