Skip to content

Commit

Permalink
更新1.2.0
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit f6c4e5c18170f5699a680113c5591b80833548d8
Author: Sun <[email protected]>
Date:   Wed Dec 27 17:33:49 2023 +0800

    更新正式版本1.2.0

commit ebf493d6b1da02dd516a2cb5d0f61f70aaab242f
Author: Sun <[email protected]>
Date:   Tue Dec 26 15:43:32 2023 +0800

    增加通过后端获取网站图标

commit 2462b364c2dca3648ea79a32d9305a8df86402b8
Author: Sun <[email protected]>
Date:   Tue Dec 26 13:21:16 2023 +0800

    优化导出导出提示语

commit 71f7cbb48ddc2c7c660f6cd57579422e99195fe1
Author: Sun <[email protected]>
Date:   Tue Dec 26 13:15:45 2023 +0800

    加载图片增加loading

commit 546ad3c93e935262ee5959be075371127343b663
Author: Sun <[email protected]>
Date:   Tue Dec 26 12:45:11 2023 +0800

    优化文件管理返回的路径带有.的问题

commit 322c3f01cd0fbc2b21bd1e12f07d069a9dbc031e
Author: Sun <[email protected]>
Date:   Tue Dec 26 12:29:42 2023 +0800

    修复

commit 8a718378a843bdd78d43b42ddd987ce5b1741000
Author: Sun <[email protected]>
Date:   Wed Dec 20 13:44:28 2023 +0800

    更新说明文件

commit 9295bd6
Author: Sun <[email protected]>
Date:   Wed Dec 20 11:51:57 2023 +0800

    更新1.2.0-beta23-12-20

commit 17d61f1
Merge: 9697541 9e53e74
Author: Sun <[email protected]>
Date:   Wed Dec 20 11:32:16 2023 +0800

    Merge branch 'dev' of https://github.com/hslr-s/sun-panel into dev

commit 9e53e74
Author: 红烧猎人 <[email protected]>
Date:   Wed Dec 20 11:29:34 2023 +0800

    Create LICENSE

commit 9697541
Author: Sun <[email protected]>
Date:   Wed Dec 20 11:23:20 2023 +0800

    增加编辑模式点击图标修改图标数据

commit a6045d7
Author: Sun <[email protected]>
Date:   Wed Dec 20 11:11:51 2023 +0800

    优化添加图标的时候增加loading避免多次点击并添加

commit 1e8ae7a
Author: Sun <[email protected]>
Date:   Wed Dec 20 10:53:31 2023 +0800

    修改配置文件更改上传文件夹,路由没有监听的bug

commit e21185e
Author: Sun <[email protected]>
Date:   Wed Dec 20 10:52:56 2023 +0800

    优化内置app的文字说明

commit 266a819
Author: Sun <[email protected]>
Date:   Tue Dec 19 20:46:38 2023 +0800

    重新调整各个内置应用的样式适配app启动器

commit f9f9ebe
Author: Sun <[email protected]>
Date:   Tue Dec 19 20:45:57 2023 +0800

    升级naive-ui到2.36.0版本

commit 0c4ff7c
Author: Sun <[email protected]>
Date:   Tue Dec 19 16:50:38 2023 +0800

    登录时账号首尾去空格

commit b55da5a
Author: Sun <[email protected]>
Date:   Tue Dec 19 12:07:01 2023 +0800

    完成上传文件管理器

commit 6355b9f
Author: Sun <[email protected]>
Date:   Tue Dec 19 11:44:12 2023 +0800

    修改配置同步云端为保存

commit c3d2dd9
Author: Sun <[email protected]>
Date:   Tue Dec 19 11:43:21 2023 +0800

    基础完成上传文件管理

commit 775c98a
Author: Sun <[email protected]>
Date:   Mon Dec 18 22:08:50 2023 +0800

    增加上传文件管理的内置应用

commit 79780fa
Author: Sun <[email protected]>
Date:   Mon Dec 18 13:45:06 2023 +0800

    开发文件删除和文件列表

commit 3d2eac7
Author: Sun <[email protected]>
Date:   Sun Dec 17 20:01:48 2023 +0800

    修改启动后输出生成配置文件的错误级别

commit 083a34c
Author: Sun <[email protected]>
Date:   Sun Dec 17 17:17:52 2023 +0800

    修复恢复默认背景色无效的问题

commit a933d5f
Author: Sun <[email protected]>
Date:   Sun Dec 17 16:40:25 2023 +0800

    优化 图标编辑组件并增加根据网址url提取图标

commit 2cd5c1c
Author: Sun <[email protected]>
Date:   Sat Dec 16 21:48:41 2023 +0800

    增加ico文件上传支持

commit 7b8bd20
Author: Sun <[email protected]>
Date:   Sat Dec 16 21:23:54 2023 +0800

    优化窗口尺寸

commit 7191817
Author: Sun <[email protected]>
Date:   Sat Dec 16 21:16:38 2023 +0800

    启动器左侧菜单根据屏幕自动伸缩

commit a060982
Author: Sun <[email protected]>
Date:   Sat Dec 16 21:12:54 2023 +0800

    排序模式禁用左右键点击

commit 6a8b8b5
Author: Sun <[email protected]>
Date:   Sat Dec 16 13:47:25 2023 +0800

    全新图标排序方式,减少首页全局按钮
    Squashed commit of the following:

    commit f2ae66b7539e84f7f88fb739150775d2d4fd0107
    Author: Sun <[email protected]>
    Date:   Sat Dec 16 13:45:46 2023 +0800

        优化添加图标的方式和编辑弹窗的添加编辑逻辑

    commit 09a89002274b693bbf4cc1c25bd50f8791a5d3b4
    Author: Sun <[email protected]>
    Date:   Fri Dec 15 21:12:34 2023 +0800

        优化保存排序

    commit 08cb6f53ef448dcfb0858b329656eba48265f6e4
    Author: Sun <[email protected]>
    Date:   Fri Dec 15 21:04:09 2023 +0800

        取消全局排序模式,组单独排序

    commit 080926d28bc4c15796d4fe956e6f865a9ac505d4
    Author: Sun <[email protected]>
    Date:   Fri Dec 15 17:26:45 2023 +0800

        重新调整图标显示

    commit 1eb5a712c2917a0f35897a6444b5643a3eb0d809
    Author: Sun <[email protected]>
    Date:   Fri Dec 15 13:38:30 2023 +0800

        增加分组hover状态监听

commit 1ef17b5
Author: Sun <[email protected]>
Date:   Thu Dec 14 22:27:36 2023 +0800

    解决旧版本升级导致刷新后丢失登录的问题

commit 5692900
Author: Sun <[email protected]>
Date:   Thu Dec 14 13:44:35 2023 +0800

    更新1.2.0-beta23-12-14

commit a1c7e98
Author: Sun <[email protected]>
Date:   Thu Dec 14 13:43:35 2023 +0800

    优化部分提示内容以及构建的测试

commit 62ca5f8
Author: Sun <[email protected]>
Date:   Thu Dec 14 12:47:25 2023 +0800

    优化手机端时钟样式

commit a2ef23f
Author: Sun <[email protected]>
Date:   Thu Dec 14 12:22:19 2023 +0800

    增加快捷图标搜索的开关

commit a419803
Author: Sun <[email protected]>
Date:   Thu Dec 14 11:52:52 2023 +0800

    优化代码

commit aee0329
Author: Sun <[email protected]>
Date:   Thu Dec 14 11:06:32 2023 +0800

    更换设置组件为app启动器,增加内置应用的概念
    Squashed commit of the following:

    commit a5e40ae3ccce65eb3208474dbc0fdd9850146195
    Author: Sun <[email protected]>
    Date:   Thu Dec 14 11:04:39 2023 +0800

        删除设置设置等组件完成替换app启动器

    commit c2aedae0862abdbe2bafabfb46a1aafdc30fe3a2
    Author: Sun <[email protected]>
    Date:   Thu Dec 14 10:48:20 2023 +0800

        迁移设置的内置应用到组件apps,增加app启动器

    commit adcabcc46fe4fee4a094250a78d2b1f0b1e012ba
    Author: Sun <[email protected]>
    Date:   Wed Dec 13 23:13:44 2023 +0800

        完成新的设置功能

    commit b1193e2252c69bd9bfb697ea587d706ccebf9346
    Author: Sun <[email protected]>
    Date:   Wed Dec 13 20:05:02 2023 +0800

        初步完成了设置组件的升级版本

commit f35223f
Author: Sun <[email protected]>
Date:   Sun Dec 10 18:45:23 2023 +0800

    更换dockerfile基础镜像
    Squashed commit of the following:

    commit bd72276
    Author: Sun <[email protected]>
    Date:   Sun Dec 10 17:56:33 2023 +0800

        更换后端alpine基础镜像3.18旧版本,新版本导致sqlite3报错

    commit e5a2855
    Author: Sun <[email protected]>
    Date:   Sun Dec 10 14:38:21 2023 +0800

        后端 尝试升级sqlite解决编译失败的问题

    commit e1789e9
    Author: Sun <[email protected]>
    Date:   Sun Dec 10 13:43:56 2023 +0800

        尝试修改go.mod 版本号排查问题

    commit f80eea9
    Author: Sun <[email protected]>
    Date:   Sun Dec 10 13:30:19 2023 +0800

        调试编译错误

    commit f1596cc
    Author: Sun <[email protected]>
    Date:   Sun Dec 10 13:23:12 2023 +0800

        增加编译调试信息

    commit 314b816
    Author: Sun <[email protected]>
    Date:   Sun Dec 10 13:11:22 2023 +0800

        取消golang国内镜像尝试,编译镜像

    commit 809e4ab
    Author: Sun <[email protected]>
    Date:   Sun Dec 10 10:58:50 2023 +0800

        更新1.2.0-beta23-12-10
        Squashed commit of the following:

        commit ba962f6
        Author: Sun <[email protected]>
        Date:   Sun Dec 10 10:57:40 2023 +0800

            更新1.2.0-beta23-12-10

        commit f9c9d44
        Author: Sun <[email protected]>
        Date:   Sun Dec 10 10:57:21 2023 +0800

            优化导入文件筛选类型

        commit 0f103b8
        Author: Sun <[email protected]>
        Date:   Sun Dec 10 10:38:09 2023 +0800

            编译前的优化

        commit 380575f
        Author: Sun <[email protected]>
        Date:   Sat Dec 9 23:31:33 2023 +0800

            解决并发请求导致两个默认分组的bug

        commit 09ee3e4
        Author: Sun <[email protected]>
        Date:   Sat Dec 9 22:28:40 2023 +0800

            增加导入导出图标
            Squashed commit of the following:

            commit b4a755aaf6eff6665866c1f08441f42a296ec81f
            Author: Sun <[email protected]>
            Date:   Sat Dec 9 22:18:49 2023 +0800

                导出导入完成

            commit 7be0436b18e1fee1c33013e27cadc838071b86a9
            Author: Sun <[email protected]>
            Date:   Sat Dec 9 21:24:23 2023 +0800

                增加批量添加图标接口

            commit 96e15348aea83a0e0c9420c7182f7448f9482b10
            Author: Sun <[email protected]>
            Date:   Sat Dec 9 21:23:55 2023 +0800

                导入导出图标完成

            commit 3fd4d29a4c6c1cc3090f1f5bbc6a1154a8923bbb
            Author: Sun <[email protected]>
            Date:   Sat Dec 9 20:00:57 2023 +0800

                优化代码加入相关loading

            commit 2938eea93601ae1df92842f1f02f7471e0f0e85d
            Author: Sun <[email protected]>
            Date:   Sat Dec 9 19:17:53 2023 +0800

                完成基础的导出,支持跨模块

            commit 4c96702cd449bf7a6224cb2d6aa5117de75f24fd
            Author: Sun <[email protected]>
            Date:   Sat Dec 9 14:58:49 2023 +0800

                初步完成导出导入工具和测试

        commit 45bf44f
        Author: Sun <[email protected]>
        Date:   Fri Dec 8 21:19:00 2023 +0800

            更换本地化svg图标显示方案
            Squashed commit of the following:

            commit e0241985b55fa39145abd2c468735bdf5182d57e
            Author: Sun <[email protected]>
            Date:   Fri Dec 8 21:04:06 2023 +0800

                更换直接使用本地svg的方案

            commit d20e11cd303240a6fdbce66a94c45956a28a175d
            Merge: 67023d0 f0e4257
            Author: Sun <[email protected]>
            Date:   Fri Dec 8 16:22:19 2023 +0800

                Merge branch 'dev' into feature/icon

            commit 67023d0ce494b46460729cf39a45af8c9fd10124
            Author: Sun <[email protected]>
            Date:   Fri Dec 8 12:17:45 2023 +0800

                修改原图标组件为在线图标组件

            commit 379441c869489fdf44cb92a0cace75f9e5318915
            Author: Sun <[email protected]>
            Date:   Fri Dec 8 12:14:59 2023 +0800

                适配本地化图标

            commit da6feaa655e792d176f56777e089393f7658eda2
            Author: Sun <[email protected]>
            Date:   Fri Dec 8 12:14:07 2023 +0800

                图标本地化

            commit 02d84f66069653dedfc35578b1b26dad6edac0e3
            Author: Sun <[email protected]>
            Date:   Thu Dec 7 23:09:41 2023 +0800

                增加离线图标库(源svgicon组件)的兼容并增加在线图标库组件

        commit f0e4257
        Author: Sun <[email protected]>
        Date:   Fri Dec 8 13:16:42 2023 +0800

            删除暂时无用语言包

        commit 60983b9
        Author: Sun <[email protected]>
        Date:   Fri Dec 8 13:15:03 2023 +0800

            删除无用文件

commit ba962f6
Author: Sun <[email protected]>
Date:   Sun Dec 10 10:57:40 2023 +0800

    更新1.2.0-beta23-12-10

commit f9c9d44
Author: Sun <[email protected]>
Date:   Sun Dec 10 10:57:21 2023 +0800

    优化导入文件筛选类型

commit 0f103b8
Author: Sun <[email protected]>
Date:   Sun Dec 10 10:38:09 2023 +0800

    编译前的优化

commit 380575f
Author: Sun <[email protected]>
Date:   Sat Dec 9 23:31:33 2023 +0800

    解决并发请求导致两个默认分组的bug

commit 09ee3e4
Author: Sun <[email protected]>
Date:   Sat Dec 9 22:28:40 2023 +0800

    增加导入导出图标
    Squashed commit of the following:

    commit b4a755aaf6eff6665866c1f08441f42a296ec81f
    Author: Sun <[email protected]>
    Date:   Sat Dec 9 22:18:49 2023 +0800

        导出导入完成

    commit 7be0436b18e1fee1c33013e27cadc838071b86a9
    Author: Sun <[email protected]>
    Date:   Sat Dec 9 21:24:23 2023 +0800

        增加批量添加图标接口

    commit 96e15348aea83a0e0c9420c7182f7448f9482b10
    Author: Sun <[email protected]>
    Date:   Sat Dec 9 21:23:55 2023 +0800

        导入导出图标完成

    commit 3fd4d29a4c6c1cc3090f1f5bbc6a1154a8923bbb
    Author: Sun <[email protected]>
    Date:   Sat Dec 9 20:00:57 2023 +0800

        优化代码加入相关loading

    commit 2938eea93601ae1df92842f1f02f7471e0f0e85d
    Author: Sun <[email protected]>
    Date:   Sat Dec 9 19:17:53 2023 +0800

        完成基础的导出,支持跨模块

    commit 4c96702cd449bf7a6224cb2d6aa5117de75f24fd
    Author: Sun <[email protected]>
    Date:   Sat Dec 9 14:58:49 2023 +0800

        初步完成导出导入工具和测试

commit 45bf44f
Author: Sun <[email protected]>
Date:   Fri Dec 8 21:19:00 2023 +0800

    更换本地化svg图标显示方案
    Squashed commit of the following:

    commit e0241985b55fa39145abd2c468735bdf5182d57e
    Author: Sun <[email protected]>
    Date:   Fri Dec 8 21:04:06 2023 +0800

        更换直接使用本地svg的方案

    commit d20e11cd303240a6fdbce66a94c45956a28a175d
    Merge: 67023d0 f0e4257
    Author: Sun <[email protected]>
    Date:   Fri Dec 8 16:22:19 2023 +0800

        Merge branch 'dev' into feature/icon

    commit 67023d0ce494b46460729cf39a45af8c9fd10124
    Author: Sun <[email protected]>
    Date:   Fri Dec 8 12:17:45 2023 +0800

        修改原图标组件为在线图标组件

    commit 379441c869489fdf44cb92a0cace75f9e5318915
    Author: Sun <[email protected]>
    Date:   Fri Dec 8 12:14:59 2023 +0800

        适配本地化图标

    commit da6feaa655e792d176f56777e089393f7658eda2
    Author: Sun <[email protected]>
    Date:   Fri Dec 8 12:14:07 2023 +0800

        图标本地化

    commit 02d84f66069653dedfc35578b1b26dad6edac0e3
    Author: Sun <[email protected]>
    Date:   Thu Dec 7 23:09:41 2023 +0800

        增加离线图标库(源svgicon组件)的兼容并增加在线图标库组件

commit f0e4257
Author: Sun <[email protected]>
Date:   Fri Dec 8 13:16:42 2023 +0800

    删除暂时无用语言包

commit 60983b9
Author: Sun <[email protected]>
Date:   Fri Dec 8 13:15:03 2023 +0800

    删除无用文件

commit 2f0b230
Author: Sun <[email protected]>
Date:   Fri Dec 8 12:19:11 2023 +0800

    图标本地化处理
    Squashed commit of the following:

    commit 67023d0ce494b46460729cf39a45af8c9fd10124
    Author: Sun <[email protected]>
    Date:   Fri Dec 8 12:17:45 2023 +0800

        修改原图标组件为在线图标组件

    commit 379441c869489fdf44cb92a0cace75f9e5318915
    Author: Sun <[email protected]>
    Date:   Fri Dec 8 12:14:59 2023 +0800

        适配本地化图标

    commit da6feaa655e792d176f56777e089393f7658eda2
    Author: Sun <[email protected]>
    Date:   Fri Dec 8 12:14:07 2023 +0800

        图标本地化

    commit 02d84f66069653dedfc35578b1b26dad6edac0e3
    Author: Sun <[email protected]>
    Date:   Thu Dec 7 23:09:41 2023 +0800

        增加离线图标库(源svgicon组件)的兼容并增加在线图标库组件

commit 524230b
Author: Sun <[email protected]>
Date:   Thu Dec 7 14:58:23 2023 +0800

    修改自动构建文件版本号的问题

commit c03be7e
Author: Sun <[email protected]>
Date:   Thu Dec 7 14:07:03 2023 +0800

    解决偶然出现刷新页面后登录失效的问题

commit a48c6ee
Author: Sun <[email protected]>
Date:   Thu Dec 7 11:16:11 2023 +0800

    修复 账号管理页面语言包未适配的问题

commit 1392a5d
Author: Sun <[email protected]>
Date:   Thu Dec 7 00:26:21 2023 +0800

    编译增加musl的amd64版本

commit ee49f4f
Author: Sun <[email protected]>
Date:   Wed Dec 6 16:22:45 2023 +0800

    1.2.0-beta23-12-6编译前修正

commit ba13f99
Merge: 4e4c6c2 e393366
Author: Sun <[email protected]>
Date:   Wed Dec 6 15:55:37 2023 +0800

    Merge branch 'dev' into feature/visitor

commit e393366
Author: Sun <[email protected]>
Date:   Wed Dec 6 15:55:21 2023 +0800

    重新适配新版国际化文件

commit 54aa74d
Author: Sun <[email protected]>
Date:   Wed Dec 6 15:54:08 2023 +0800

    修复创建用户无法保存成功昵称

commit 484fe27
Author: Sun <[email protected]>
Date:   Wed Dec 6 15:53:23 2023 +0800

    修改 密码增加成功提示

commit 29a100a
Author: Sun <[email protected]>
Date:   Wed Dec 6 15:38:16 2023 +0800

    增加修改密码和修改昵称的功能 设置的账号信息页面国际化适配

commit 99e9365
Author: Sun <[email protected]>
Date:   Wed Dec 6 15:29:38 2023 +0800

    修改配置文件默认端口提示

commit 8c1a0d6
Author: Sun <[email protected]>
Date:   Tue Dec 5 21:33:39 2023 +0800

    增加上下边距百分比调整

commit 4e4c6c2
Merge: 8a3ff34 0231d76
Author: Sun <[email protected]>
Date:   Tue Dec 5 15:53:20 2023 +0800

    Merge branch 'dev' into feature/visitor

commit 0231d76
Author: Sun <[email protected]>
Date:   Tue Dec 5 15:10:37 2023 +0800

    公开模式隐藏右键中的敏感菜单

commit 3560f8f
Author: Sun <[email protected]>
Date:   Tue Dec 5 15:05:39 2023 +0800

    修改语法,改为对象传值法

commit 2ec1277
Author: Sun <[email protected]>
Date:   Mon Dec 4 20:50:20 2023 +0800

    初步测试完成访客模式
    Squashed commit of the following:

    commit 8a3ff34
    Author: Sun <[email protected]>
    Date:   Mon Dec 4 20:47:44 2023 +0800

        访客模式基本完成

    commit b067b20
    Author: Sun <[email protected]>
    Date:   Mon Dec 4 16:43:12 2023 +0800

        适配访客模式

    commit ed6dcdf
    Author: Sun <[email protected]>
    Date:   Mon Dec 4 14:17:51 2023 +0800

        调整auth store并优化auth使用逻辑

    commit be92c33
    Author: Sun <[email protected]>
    Date:   Sun Dec 3 21:47:43 2023 +0800

        优化登录接口不返回密码等数据

    commit e75a020
    Author: Sun <[email protected]>
    Date:   Sun Dec 3 21:08:51 2023 +0800

        初步完成访客模式

    commit c6805c9
    Author: Sun <[email protected]>
    Date:   Sat Dec 2 22:26:08 2023 +0800

        增加访客模式的获取和设置接口

commit 8a3ff34
Author: Sun <[email protected]>
Date:   Mon Dec 4 20:47:44 2023 +0800

    访客模式基本完成

commit b067b20
Author: Sun <[email protected]>
Date:   Mon Dec 4 16:43:12 2023 +0800

    适配访客模式

commit ed6dcdf
Author: Sun <[email protected]>
Date:   Mon Dec 4 14:17:51 2023 +0800

    调整auth store并优化auth使用逻辑

commit be92c33
Author: Sun <[email protected]>
Date:   Sun Dec 3 21:47:43 2023 +0800

    优化登录接口不返回密码等数据

commit e75a020
Author: Sun <[email protected]>
Date:   Sun Dec 3 21:08:51 2023 +0800

    初步完成访客模式

commit c6805c9
Author: Sun <[email protected]>
Date:   Sat Dec 2 22:26:08 2023 +0800

    增加访客模式的获取和设置接口

commit d81c86e
Author: Sun <[email protected]>
Date:   Sat Dec 2 15:24:42 2023 +0800

    搜索框增加清空搜索内容按钮并国际化支持

commit 1223502
Author: Sun <[email protected]>
Date:   Sat Dec 2 14:30:37 2023 +0800

    管理员页面适配国际化并增加角色列

commit a0211b4
Author: Sun <[email protected]>
Date:   Sat Dec 2 12:05:33 2023 +0800

    命令行重置密码改为重置管理员密码

commit 1825f93
Merge: 34370a4 6f8ba4e
Author: Sun <[email protected]>
Date:   Fri Dec 1 21:17:04 2023 +0800

    Merge branch 'bug' into dev

commit 6f8ba4e
Author: Sun <[email protected]>
Date:   Fri Dec 1 21:16:18 2023 +0800

    修复用户首次无云端数据将使用默认数据

commit 34370a4
Author: Sun <[email protected]>
Date:   Fri Dec 1 20:34:28 2023 +0800

    用户编辑窗口增加权限的保存并适配国际化

commit 393a809
Author: Sun <[email protected]>
Date:   Fri Dec 1 20:03:22 2023 +0800

    取消登录调试

commit 38ec834
Author: Sun <[email protected]>
Date:   Fri Dec 1 20:03:10 2023 +0800

    修复仅有一个管理员账号的时候删除拦截未成功的问题

commit 7c5130a
Author: Sun <[email protected]>
Date:   Fri Dec 1 19:59:20 2023 +0800

    完成平台管理账号并在删除至少保留一个管理平台的账号

commit 907f93b
Author: Sun <[email protected]>
Date:   Fri Dec 1 19:30:22 2023 +0800

    用户管理增加管理权限可以操作,并取消账号的邮箱限制

commit 41f5d20
Author: Sun <[email protected]>
Date:   Fri Dec 1 12:28:32 2023 +0800

    适配登录页面语言国际化

commit 7e54a46
Merge: ae310fc 74bc8c0
Author: 红烧猎人 <[email protected]>
Date:   Thu Nov 30 22:53:10 2023 +0800

    Merge pull request #28 from gitlyp/feature/frontEndSearch

    feature: 新增前端搜索功能

commit ae310fc
Author: Sun <[email protected]>
Date:   Thu Nov 30 12:02:43 2023 +0800

    更新构建文件

commit c0838cc
Merge: 57f54bd a62a4f5
Author: Sun <[email protected]>
Date:   Thu Nov 30 10:40:29 2023 +0800

    Merge branch 'master' into dev

commit 74bc8c0
Author: Rock.L <[email protected]>
Date:   Wed Nov 29 18:03:47 2023 +0800

    feature: 新增前端搜索功能

    ts编译报错解决

commit 57f54bd
Merge: 4443f7c 3154b67
Author: Sun <[email protected]>
Date:   Wed Nov 29 10:51:32 2023 +0800

    Merge branch 'master' into dev

commit ca15d15
Author: Rock.L <[email protected]>
Date:   Wed Nov 29 10:35:13 2023 +0800

    feature: 新增前端搜索功能

    fix:排序时禁用前端搜索功能

commit 6834788
Author: Rock.L <[email protected]>
Date:   Tue Nov 28 23:31:08 2023 +0800

    feature: 新增前端搜索功能

    新增前端搜索功能

commit 4443f7c
Author: Sun <[email protected]>
Date:   Tue Nov 28 22:10:49 2023 +0800

    美化关于页

commit 95ca46d
Author: Sun <[email protected]>
Date:   Tue Nov 28 21:59:48 2023 +0800

    更新版本号,更新说明文件增加新版预览截图

commit 052e5f8
Author: Sun <[email protected]>
Date:   Tue Nov 28 21:06:52 2023 +0800

    修复后端mkdirAll权限的问题

commit ace57d5
Author: Sun <[email protected]>
Date:   Tue Nov 28 20:59:35 2023 +0800

    修改配置文件

commit 099015f
Author: Sun <[email protected]>
Date:   Tue Nov 28 14:10:39 2023 +0800

    增加docker-compose文件

commit e229003
Author: Sun <[email protected]>
Date:   Tue Nov 28 13:53:20 2023 +0800

    提交更新日志文件

commit e8736b8
Author: Sun <[email protected]>
Date:   Tue Nov 28 13:49:38 2023 +0800

    增加隐藏小图标

commit 038af3a
Author: Sun <[email protected]>
Date:   Tue Nov 28 13:49:04 2023 +0800

    优化 密码限制

commit 4cd15a3
Author: Sun <[email protected]>
Date:   Tue Nov 28 12:34:59 2023 +0800

    增加反馈入口

commit daf6aea
Merge: 3edfadd b057e25
Author: Sun <[email protected]>
Date:   Mon Nov 27 22:19:59 2023 +0800

    Merge branch 'master' into dev

commit 3edfadd
Author: Sun <[email protected]>
Date:   Mon Nov 27 22:17:08 2023 +0800

    修改docker的编译镜像和运行镜像为alpine,兼容极空间设备

commit 3445f97
Author: Sun <[email protected]>
Date:   Mon Nov 27 13:58:59 2023 +0800

    修复前端编译错误

commit 3ef0201
Author: Sun <[email protected]>
Date:   Mon Nov 27 13:56:12 2023 +0800

    更新beta版本号

commit 620f0f1
Author: Sun <[email protected]>
Date:   Mon Nov 27 13:53:46 2023 +0800

    修复 添加图标成功后遗留旧数据的问题

commit 55d877d
Author: Sun <[email protected]>
Date:   Mon Nov 27 13:41:55 2023 +0800

    增加置顶按钮

commit f28dd63
Author: Sun <[email protected]>
Date:   Mon Nov 27 12:56:14 2023 +0800

    优化roundmodal的样式和手机端设置样式

commit c19ce17
Author: Sun <[email protected]>
Date:   Mon Nov 27 11:06:44 2023 +0800

    优化手机端logo文字显示问题

commit 018dabb
Author: Sun <[email protected]>
Date:   Mon Nov 27 10:51:02 2023 +0800

    更新说明文件

commit 02239e3
Author: Sun <[email protected]>
Date:   Sun Nov 26 22:59:11 2023 +0800

    优化 登录页面

commit 6aa92e8
Author: Sun <[email protected]>
Date:   Sat Nov 25 23:59:40 2023 +0800

    增加编译脚本

commit d93df81
Author: Sun <[email protected]>
Date:   Sat Nov 25 15:48:00 2023 +0800

    修改相关logo图片

commit 036a56d
Merge: 7018872 feacc89
Author: Sun <[email protected]>
Date:   Fri Nov 24 16:00:23 2023 +0800

    Merge branch 'master' into dev

commit 7018872
Author: Sun <[email protected]>
Date:   Fri Nov 24 15:31:31 2023 +0800

    更新版本标签

commit 4fae97d
Author: Sun <[email protected]>
Date:   Fri Nov 24 15:07:39 2023 +0800

    更新版本1.1.0 测试版

commit 890a3c3
Author: Sun <[email protected]>
Date:   Fri Nov 24 14:31:26 2023 +0800

    右键菜单新增打开局域网或者互联网地址,优化分组管理图标不统一的问题

commit 4f014cf
Author: Sun <[email protected]>
Date:   Fri Nov 24 13:33:43 2023 +0800

    增加 关联删除,优化添加密码长度限制20

commit 5658e6c
Author: Sun <[email protected]>
Date:   Fri Nov 24 12:09:41 2023 +0800

    增加更新日志

commit f142d1b
Author: Sun <[email protected]>
Date:   Fri Nov 24 12:09:30 2023 +0800

    添加应用图标验证分组信息必填

commit 2ff2b6b
Author: Sun <[email protected]>
Date:   Thu Nov 23 23:45:10 2023 +0800

    优化关于页面,及更新版本序号为2

commit c9b482b
Author: Sun <[email protected]>
Date:   Thu Nov 23 22:12:13 2023 +0800

    优化关于设置版本号

commit ed70059
Author: Sun <[email protected]>
Date:   Thu Nov 23 21:41:22 2023 +0800

    修复分组管理不能滚动的问题

commit faa4222
Author: Sun <[email protected]>
Date:   Thu Nov 23 21:24:34 2023 +0800

    修复分组写死的问题

commit 4f2d0c8
Author: Sun <[email protected]>
Date:   Thu Nov 23 20:24:39 2023 +0800

    初步尝试构建测试版本

commit 596bed1
Author: Sun <[email protected]>
Date:   Thu Nov 23 19:24:05 2023 +0800

    修复搜索框配置bug,云端没有默认值,前端打不开搜索引擎选择栏

commit 489fbf7
Author: Sun <[email protected]>
Date:   Thu Nov 23 19:22:57 2023 +0800

    增加logo和版本打印,修复模块配置的索引报错

commit 263dab6
Author: Sun <[email protected]>
Date:   Wed Nov 22 23:02:37 2023 +0800

    调整排序样式

commit c0adf33
Author: Sun <[email protected]>
Date:   Wed Nov 22 22:58:18 2023 +0800

    说明文件增加logo

commit 721d22e
Author: Sun <[email protected]>
Date:   Wed Nov 22 22:40:40 2023 +0800

    更换logo

commit 4df58fe
Author: Sun <[email protected]>
Date:   Wed Nov 22 22:38:27 2023 +0800

    完善关于页面

commit 63777f0
Author: Sun <[email protected]>
Date:   Wed Nov 22 21:12:14 2023 +0800

    字体为纯白色的时候,详情图标会根据背景的明暗度计算字体颜色

commit f328dc7
Author: Sun <[email protected]>
Date:   Wed Nov 22 17:21:40 2023 +0800

    详情图标居中

commit 663f37b
Author: Sun <[email protected]>
Date:   Wed Nov 22 16:45:11 2023 +0800

    将图标单独拆分为子组件应用图标

commit 30cd5ab
Author: Sun <[email protected]>
Date:   Wed Nov 22 13:36:32 2023 +0800

    增加详情图标隐藏描述信息等设置

commit 945a94e
Author: Sun <[email protected]>
Date:   Wed Nov 22 12:28:46 2023 +0800

    优化图标背景色:支持透明图标并更换背景颜色字段

commit 437053f
Author: Sun <[email protected]>
Date:   Wed Nov 22 11:20:56 2023 +0800

    完善搜索框

commit a9914f8
Author: Sun <[email protected]>
Date:   Wed Nov 22 01:27:16 2023 +0800

    关闭模块配置相关接口开发模式

commit 2a9e22d
Author: Sun <[email protected]>
Date:   Wed Nov 22 01:24:09 2023 +0800

    完成搜索框的样式和模块配置的state等api对接

commit 7f77165
Author: Sun <[email protected]>
Date:   Wed Nov 22 00:45:25 2023 +0800

    增加搜索引擎图标

commit a0e0039
Author: Sun <[email protected]>
Date:   Tue Nov 21 19:54:36 2023 +0800

    增加 模块配置表

commit 0178697
Author: Sun <[email protected]>
Date:   Tue Nov 21 13:10:39 2023 +0800

    图标标题加粗

commit 7a2d896
Author: Sun <[email protected]>
Date:   Tue Nov 21 12:53:39 2023 +0800

    增加图标的预设颜色

commit a6c3120
Author: Sun <[email protected]>
Date:   Tue Nov 21 12:18:46 2023 +0800

    增加遮罩

commit 84d3db8
Author: Sun <[email protected]>
Date:   Tue Nov 21 11:05:24 2023 +0800

    极简小图标增加鼠标悬浮详情

commit 666a6a1
Author: Sun <[email protected]>
Date:   Mon Nov 20 23:33:10 2023 +0800

    修复 sort字段未修改归0的问题

commit 71afd53
Author: Sun <[email protected]>
Date:   Mon Nov 20 23:32:48 2023 +0800

    适配纯透明图标,增强图标背景色,增加图标url连接支持

commit 619c5e2
Author: Sun <[email protected]>
Date:   Mon Nov 20 22:37:43 2023 +0800

    修复 每次修改图标都重置了排序号

commit 8a17f1c
Author: Sun <[email protected]>
Date:   Mon Nov 20 21:21:20 2023 +0800

    分组为空的时候显示添加图标的图标

commit 755cf3d
Author: Sun <[email protected]>
Date:   Mon Nov 20 20:52:45 2023 +0800

    首页图标排序完成

commit 5ccf23c
Author: Sun <[email protected]>
Date:   Mon Nov 20 14:30:12 2023 +0800

    添加修改图标适配分组

commit 47209d7
Author: Sun <[email protected]>
Date:   Mon Nov 20 11:06:32 2023 +0800

    保存分组和分组排序已经完成

commit 17403de
Merge: d0d88eb 980d81a
Author: Sun <[email protected]>
Date:   Sun Nov 19 23:38:00 2023 +0800

    Merge branch 'master' into dev

commit d0d88eb
Merge: 728dbc8 47b479c
Author: Sun <[email protected]>
Date:   Sun Nov 19 11:13:34 2023 +0800

    Merge branch 'docker-build' into dev

commit 47b479c
Author: Sun <[email protected]>
Date:   Sun Nov 19 11:12:54 2023 +0800

    修改前端程序名

commit 728dbc8
Author: Sun <[email protected]>
Date:   Thu Nov 16 13:44:47 2023 +0800

    新增删除应用分组和修改应用分组,以及图标真正的按组读取

commit a3dbd94
Author: Sun <[email protected]>
Date:   Wed Nov 15 22:49:58 2023 +0800

    增加图标组api

commit de21f3f
Author: Sun <[email protected]>
Date:   Wed Nov 15 22:49:44 2023 +0800

    重新划分应用盒子的结构

commit 7c40911
Author: Sun <[email protected]>
Date:   Wed Nov 15 22:27:07 2023 +0800

    [后端] 增加应用分组

commit ebf9500
Merge: acedcb3 97d4f83
Author: Sun <[email protected]>
Date:   Wed Nov 15 20:38:05 2023 +0800

    Merge branch 'feature/drag' into dev

commit acedcb3
Merge: f105e10 c84eae3
Author: Sun <[email protected]>
Date:   Wed Nov 15 20:37:26 2023 +0800

    Merge branch 'master' into dev

commit 97d4f83
Author: Sun <[email protected]>
Date:   Wed Nov 15 20:36:19 2023 +0800

    更新软件包

commit 5108f65
Author: Sun <[email protected]>
Date:   Wed Nov 15 20:30:39 2023 +0800

    简单监听了一下拖拽

commit dae9aea
Merge: 396db51 f672034
Author: Sun <[email protected]>
Date:   Wed Nov 15 10:01:00 2023 +0800

    Merge branch 'master' into feature/drag

commit 396db51
Author: Sun <[email protected]>
Date:   Wed Nov 15 00:08:02 2023 +0800

    历史性时刻,拖拽图标

commit f105e10
Author: Sun <[email protected]>
Date:   Tue Nov 14 11:35:52 2023 +0800

    尝试增加一个分组标题

commit 7e2354f
Author: Sun <[email protected]>
Date:   Sun Nov 12 23:07:37 2023 +0800

    优化 枚举引用错误

commit 27e85b7
Author: Sun <[email protected]>
Date:   Sun Nov 12 23:06:50 2023 +0800

    优化路由

commit fef4628
Author: Sun <[email protected]>
Date:   Sun Nov 12 21:28:57 2023 +0800

    更换enums的位置
  • Loading branch information
hslr-s committed Dec 27, 2023
1 parent a62a4f5 commit c9e05a5
Show file tree
Hide file tree
Showing 130 changed files with 5,070 additions and 2,581 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ coverage
*.njsproj
*.sln
*.sw?
.pnpm-store

# Environment variables files
/service/.env
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
Expand Down
22 changes: 17 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# build front-end
# build frontend
FROM node AS web_image

# 华为源
# RUN npm config set registry https://repo.huaweicloud.com/repository/npm/

RUN npm install pnpm -g

WORKDIR /build
Expand All @@ -16,24 +19,30 @@ COPY . /build
RUN pnpm run build

# build backend
FROM golang:1.21-alpine as server_image
# 最新alpine3.19导致sqlite3编译失败(https://github.com/mattn/go-sqlite3/issues/1164,
# 临时解决方案:https://github.com/mattn/go-sqlite3/pull/1177)
# sun-panel暂时解决方案使用golang:1.21-alpine3.18(因旧版本使用没问题,短期内较稳定)
FROM golang:1.21-alpine3.18 as server_image

WORKDIR /build

COPY ./service .

RUN apk add --no-cache bash curl gcc git go musl-dev
# 中国国内源
# RUN sed -i "[email protected]@mirrors.aliyun.com@g" /etc/apk/repositories \
# && go env -w GOPROXY=https://goproxy.cn,direct

RUN apk add --no-cache bash curl gcc git musl-dev

# 执行指令 关闭链接确认
RUN go env -w GO111MODULE=on \
&& go env -w GOPROXY=https://goproxy.cn,direct \
&& export PATH=$PATH:/go/bin \
&& go install -a -v github.com/go-bindata/go-bindata/...@latest \
&& go install -a -v github.com/elazarl/go-bindata-assetfs/...@latest \
&& go-bindata-assetfs -o=assets/bindata.go -pkg=assets assets/... \
&& go build -o sun-panel --ldflags="-X sun-panel/global.RUNCODE=release -X sun-panel/global.ISDOCKER=docker" main.go



# run_image
FROM alpine

Expand All @@ -43,6 +52,9 @@ COPY --from=web_image /build/dist /app/web

COPY --from=server_image /build/sun-panel /app/sun-panel

# 中国国内源
# RUN sed -i "[email protected]@mirrors.aliyun.com@g" /etc/apk/repositories

RUN apk add --no-cache bash ca-certificates su-exec tzdata \
&& chmod +x ./sun-panel \
&& ./sun-panel -config
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 红烧猎人

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
90 changes: 23 additions & 67 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Sun-Panel

<a href="https://github.com/hslr-s/sun-panel.git">Github</a> | <a href="https://gitee.com/hslr/sun-panel.git">Gitee</a> | <a href="https://hub.docker.com/r/hslr/sun-panel">Docker Hub</a> | <a href="https://www.bilibili.com/video/BV1AC4y1U7va">B站视频</a>
<a href="https://github.com/hslr-s/sun-panel.git">Github</a> | <a href="https://gitee.com/hslr/sun-panel.git">Gitee</a> | <a href="https://hub.docker.com/r/hslr/sun-panel">Docker Hub</a> | <a href="https://www.bilibili.com/video/BV1AC4y1U7va">bilibili</a> | <a href="https://www.youtube.com/channel/UCKwbFmKU25R602z6P2fgPYg">YouTube</a>

一个服务器、NAS导航面板、Homepage、浏览器首页。

Expand All @@ -23,18 +23,14 @@
- 支持网页内置小窗口打开(部分网站屏蔽此功能)
- 占用资源小

## 🎨 演示(demo)
## 🧊 最新完整文档(DOC)

[最新完整文档(DOC)](https://sun-panel-doc.enianteam.com/)

演示站说明:
1. 服务器资源有限请不要上传特大图片文件
2. 方便他人访问,请不要修改主账号密码
3. 数据不定期清理,请不要作为主力导航页使用
4. 请不要放违规内容

演示地址:[点此跳转](http://sunpaneldemo.enianteam.com/#/)
## 🎨 演示(demo)

账号密码: [默认账号密码](#默认账号密码)
账号:[email protected] 密码:12345678
[查看演示站](https://sun-panel-doc.enianteam.com/introduce/demo_site.html)

## 🐳 联系作者&交流群
开发者:**[红烧猎人](https://blog.enianteam.com/u/sun/content/11)**
Expand All @@ -45,19 +41,21 @@

## 🍵 打赏

开源不易,如果该项目对您有帮助,您可以选择对我打赏[[点此去打赏页面](./doc/donate.md)],在寒冷的冬天让我喝上一杯热乎乎的奶茶❤️
> 开源开发不易,如果觉得我的项目有帮到你,欢迎给我[打赏](./doc/donate.md)或者请我喝个奶茶☕(如果可以备注下您的昵称或者名字),你的支持就是我的动力,谢谢
## 🫓 后面想做的事
| | |
| ------------ | ------------ |
| <img height="300" src="./doc/images/donate/weixin.png"/> | <img height="300" src="./doc/images/donate/alipay.png" /> |

先画个饼
## 🫓 TODO

- [x] 分组,拖拽排序
- [ ] 导入导出功能
- [ ] 增加访客账号
- [x] 导入导出功能
- [x] 增加访客账号
- [x] 帐号解除邮箱限制
- [x] 对上传的文件管理(针对账户增强重复利用,节省空间)
- [ ] 用户自定义搜索框搜索引擎
- [ ] 搜索框样式自定义(背景颜色,文字颜色)
- [ ] 帐号解除邮箱限制
- [ ] 对上传的文件管理(针对账户增强重复利用,节省空间)
- [ ] 多国语言支持
- [ ] 服务器监控
- [ ] docker管理器
Expand Down Expand Up @@ -131,12 +129,12 @@
|/app/runtime|运行日志(不推荐挂载)|

1. 拉取镜像
```
```sh
docker pull hslr/sun-panel
```

2. 直接下载运行
```
```sh
docker run -d --restart=always -p 3002:3002 \
-v ~/docker_data/sun-panel/conf:/app/conf \
-v ~/docker_data/sun-panel/uploads:/app/uploads \
Expand All @@ -148,55 +146,13 @@ hslr/sun-panel

### 自编译运行

#### 前端
```
# 开发运行
pnpm dev
# 编译打包(打包后生成dist目录,若需要结合后端使用请改成web)
pnpm build
```

#### 后端

1.正式编译程序前先进入`service`

2.按照[静态资源编译教程](./service/assets/readme.md)编译后端静态文件
[请参考完整文档](https://sun-panel-doc.enianteam.com/deploy/compile.html)

3.正式编译
```
# 进入后端项目
cd service
# 开发运行
go run main.go
# 编译打包
go build -o sun-panel main.go
```

#### docker windows本地开发编译运行

```
// 编译
docker build -t sun-panel .
// 运行 D:\docker\data\sun-panel 为本地运行的路径
docker run --rm -d -p 3003:3002 -v D:\docker\data\sun-panel\conf:/app/conf -v D:\docker\data\sun-panel\runtime:/app/runtime -v D:\docker\data\sun-panel\uploads:/app/uploads -v D:\docker\data\sun-panel\database:/app/database --name sun-panel sun-panel
```

## 🎉 图标、壁纸网站推荐

图标:
- [阿里巴巴矢量图标](https://www.iconfont.cn/)
- [Icons8](https://icons8.com/)
- [Vectorjunky](https://www.iconfinder.com/)
## ❤️ 感谢

壁纸:
- [Wallhaven](https://wallhaven.cc/)
- [Wallpaperscraft](https://wallpaperscraft.com/)
- [Wallpaper Abyss](https://wall.alphacoders.com/)
- [Roc](https://github.com/RocCheng)提供自动构建多平台docker镜像[方案](https://github.com/hslr-s/sun-panel/issues/9#issuecomment-1817433439)
- [jackloves111](https://github.com/jackloves111)帮助构建基础文档

## ❤️ 感谢

- [Roc](https://github.com/RocCheng)提供自动构建多平台docker镜像[方案](https://github.com/hslr-s/sun-panel/issues/9#issuecomment-1817433439)
## LICENSE
[MIT](./LICENSE)
72 changes: 70 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ REPO=$(
pwd
)
COMMIT_SHA=$(git rev-parse --short HEAD)
VERSION=$(git describe --tags)
# VERSION="0.1.1"
# VERSION=$(git describe --tags)
VERSION="v${cut -d '|' -f 2 ./service/assets/version}"
LATEST_TAG=$(git describe --tags --abbrev=0)
FRONTEND="false"
BINARY="false"
RELEASE="false"
Expand All @@ -18,6 +19,7 @@ debugInfo() {
echo "Release: $RELEASE"
echo "Version: $VERSION"
echo "Commit: $COMMIT_SHA"
echo "LATEST_TAG: $LATEST_TAG"
}

buildFrontend() {
Expand Down Expand Up @@ -61,6 +63,8 @@ _build() {

if [ -n "$VERSION" ]; then
outPath="sun-panel_${VERSION}_${os}_${arch}"
elif [ -n "$LATEST_TAG" ]; then
outPath="sun-panel_${LATEST_TAG}_${os}_${arch}"
else
outPath="sun-panel_${COMMIT_SHA}_${os}_${arch}"
fi
Expand All @@ -82,6 +86,67 @@ _build() {
rm -rf "${pathRelease}/${outPath}"
}

# 定义函数BuildReleaseLinuxMusl,用于构建正式版Linux-musl平台的二进制文件(参考Alist构建方案)
buildReleaseLinuxMusl() {
cd $REPO/service
ldflags="-X sun-panel/global.RUNCODE=release"
pathRelease=$REPO/release
# 清理.git目录,创建build目录,并下载交叉编译工具
# rm -rf .git/
# mkdir -p "build"
muslflags="--extldflags '-static -fpic' $ldflags"
BASE="https://musl.nn.ci/"
# FILES=(x86_64-linux-musl-cross aarch64-linux-musl-cross mips-linux-musl-cross mips64-linux-musl-cross mips64el-linux-musl-cross mipsel-linux-musl-cross powerpc64le-linux-musl-cross s390x-linux-musl-cross)
FILES=(x86_64-linux-musl-cross)
for i in "${FILES[@]}"; do
url="${BASE}${i}.tgz"
curl -L -o "${i}.tgz" "${url}"
tar xf "${i}.tgz" --strip-components 1 -C /usr/local
rm -f "${i}.tgz"
done
# OS_ARCHES=(linux-musl-amd64 linux-musl-arm64 linux-musl-mips linux-musl-mips64 linux-musl-mips64le linux-musl-mipsle linux-musl-ppc64le linux-musl-s390x)
# CGO_ARGS=(x86_64-linux-musl-gcc aarch64-linux-musl-gcc mips-linux-musl-gcc mips64-linux-musl-gcc mips64el-linux-musl-gcc mipsel-linux-musl-gcc powerpc64le-linux-musl-gcc s390x-linux-musl-gcc)

# 暂时仅编译amd64
OS_ARCHES=(linux-musl-amd64)
CGO_ARGS=(x86_64-linux-musl-gcc)


for i in "${!OS_ARCHES[@]}"; do
os_arch=${OS_ARCHES[$i]}
cgo_cc=${CGO_ARGS[$i]}
echo building for ${os_arch}
export GOOS=${os_arch%%-*}
export GOARCH=${os_arch##*-}
export CC=${cgo_cc}
export CGO_ENABLED=1

if [ -n "$VERSION" ]; then
outPath="sun-panel_${VERSION}_${GOOS}_musl_${GOARCH}"
elif [ -n "$LATEST_TAG" ]; then
outPath="sun-panel_${LATEST_TAG}_${GOOS}_musl_${GOARCH}"
else
outPath="sun-panel_${COMMIT_SHA}_${GOOS}_musl_${GOARCH}"
fi

outname="${pathRelease}/${outPath}/sun-panel"

go build -o "${outname}" -ldflags="$muslflags" main.go
# go build -o "${outname}" -ldflags="$muslflags" -tags=jsoniter main.go
done

cd $pathRelease
# copy front file
cp -r "${REPO}/dist" "${pathRelease}/${outPath}/web"

echo "Release ${outPath}"

mv $outname $outPath/sun-panel
tar -zcvf "${pathRelease}/${outPath}.tar.gz" $outPath

rm -rf "${pathRelease}/${outPath}"
}

release() {
cd $REPO/service
## List of architectures and OS to test coss compilation.
Expand All @@ -91,6 +156,9 @@ release() {
for each_osarch in ${SUPPORTED_OSARCH}; do
_build "${each_osarch}"
done

# 临时方案解决centos无法运行的问题
buildReleaseLinuxMusl
}

usage() {
Expand Down
2 changes: 1 addition & 1 deletion doc/donate.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> 开源不易,如果觉得我的项目有帮到你,欢迎给我打赏或者请我喝个奶茶☕,打赏不准超过你工资的一半。你的支持就是我的动力,谢谢。
> 开源不易,如果觉得我的项目有帮到你,欢迎给我打赏或者请我喝个奶茶☕(如果可以备注下您的昵称或者名字),打赏不准超过你工资的一半。你的支持就是我的动力,谢谢。
| | |
| ------------ | ------------ |
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"katex": "^0.16.4",
"markdown-it": "^13.0.1",
"moment": "^2.29.4",
"naive-ui": "^2.34.3",
"naive-ui": "^2.36.0",
"pinia": "^2.0.33",
"vue": "^3.2.47",
"vue-draggable-plus": "^0.2.6",
Expand Down Expand Up @@ -62,6 +62,7 @@
"typescript": "~4.9.5",
"vite": "^4.2.0",
"vite-plugin-pwa": "^0.14.4",
"vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^1.2.0"
},
"lint-staged": {
Expand Down
Loading

0 comments on commit c9e05a5

Please sign in to comment.