mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-09-05 15:36:45 +08:00
feat(static): 实现静态资源版本化和模板全局变量支持
- 在Dockerfile中添加默认环境变量配置 - 新增静态资源URL版本化管理功能 - 更新所有模板文件使用static_url函数替代硬编码路径 - 优化错误日志页面移动端按钮布局和响应式设计 - 简化异常处理器返回格式 BREAKING CHANGE: 静态资源URL格式变更,需要重新部署以确保资源正确加载
This commit is contained in:
@@ -809,7 +809,7 @@ endblock %} {% block head_extra_styles %}
|
||||
|
||||
<h1 class="text-3xl font-extrabold text-center text-gray-800 mb-4">
|
||||
<img
|
||||
src="/static/icons/logo.png"
|
||||
src="{{ static_url('icons/logo.png') }}"
|
||||
alt="Gemini Balance Logo"
|
||||
class="h-9 inline-block align-middle mr-2"
|
||||
/>
|
||||
@@ -2870,7 +2870,7 @@ endblock %} {% block head_extra_styles %}
|
||||
</div>
|
||||
|
||||
{% endblock %} {% block body_scripts %}
|
||||
<script src="/static/js/config_editor.js"></script>
|
||||
<script src="{{ static_url('js/config_editor.js') }}"></script>
|
||||
<!-- 增强下拉框样式和交互性 -->
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
Reference in New Issue
Block a user