Anyon 27ad3ff7ce feat(static): 同步 v8 前端静态资源
同步 v8 运行所需的公开静态资源与主题样式,保留目标仓库中需要跟踪的发布产物。

主要内容:

- 更新登录页、控制台主题、布局变量和短工具类样式。

- 同步 layui、ckeditor、editor、jquery area 等前端依赖文件。

- 移除 v6 admin/require 静态入口,改为 v8 static/system 资源组织。

- 保留测试依赖的 public/static/theme 编译结果,确保目标仓库可直接验证。
2026-05-08 15:30:57 +08:00

47 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// +----------------------------------------------------------------------
// | Static Plugin for ThinkAdmin
// +----------------------------------------------------------------------
// | 官方网站: https://thinkadmin.top
// +----------------------------------------------------------------------
// | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// | 免责声明 ( https://thinkadmin.top/disclaimer )
// +----------------------------------------------------------------------
// | gitee 代码仓库https://gitee.com/zoujingli/think-plugs-static
// | github 代码仓库https://github.com/zoujingli/think-plugs-static
// +----------------------------------------------------------------------
// | 自定义后台扩展脚本,需要在加载 system.js 后载入
// | 使用 composer require zoujingli/think-plugs-static 时不会更新此文件
// +----------------------------------------------------------------------
$(function () {
window.$body = $('body');
/*! 初始化异步加载的内容扩展动作 */
// $body.on('reInit', function (evt, $dom) {
// console.log('Event.reInit', $dom);
// });
/*! 追加模块加载示例 */
// $.module.use(['vue', 'md5'], function (vue, md5) {
// console.log(vue)
// console.log(md5.hash('content'))
// });
/*! 其他 javascript 脚本代码 */
// 显示表格图片
window.showTableImage = function (image, circle, size, title) {
return $.layTable.showImage(image, circle, size, title);
};
// 显示商品规格
window.showSpec = function (spec) {
let names = [];
return layui.each(spec.split(';;'), function (i, vv) {
names.push(vv.split('::').pop());
}), names.join(' ');
}
});