LingmoOS / lingmo-settings

The system settings application for LingmoOS uses LingmoUI as the interface style
GNU General Public License v3.0
3 stars 6 forks source link

[feat.] 完成重构更新 (#5) #7

Closed elysia-best closed 8 months ago

elysia-best commented 8 months ago

提交记录:

elysia-best commented 8 months ago

用到的Api接口

GET 获取更新信息

GET /api/update/latest

Response Examples

成功

{
    "code": 200,
    "message": "success",
    "data": [
        {
            "package_name": "liblingmo",
            "version": "1.9.10-1",
            "description": "Some Description",
            "changelog": "Some Text",
            "name": "LingmoOS Core Package",
            "update_date": "2014-05-03",
            "download_link": "http://mirrors.localtest.300c.top/ppa/polaris/pool/main/libl/liblingmo/liblingmo_1.9.10-1_amd64.deb",
            "filename": "liblingmo_1.9.10-1_amd64.deb"
        }
    ]
}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

HTTP Status Code 200

Name Type Required Restrictions Title description
» code integer true none none
» message string true none none
» data [object] true none none
»» package_name string true none 软件包名 none
»» version string true none 版本号 none
»» description string true none 软件包描述 none
»» changelog string true none 更新记录 none
»» name string false none 软件包人性化描述 none
»» update_date string false none 更新时间 none
»» download_link string false none 下载链接 none
»» filename string true none none
elysia-best commented 8 months ago

测试用镜像目录结构

qinyn@qinyn-ThinkPad-T490:/var/www/html/ppa/polaris$ tree
.
├── apt-fast.conf
├── conf
│   └── distributions
├── db
│   ├── checksums.db
│   ├── contents.cache.db
│   ├── packages.db
│   ├── references.db
│   ├── release.caches.db
│   └── version
├── dists
│   └── polaris
│       ├── contrib
│       │   ├── binary-amd64
│       │   │   ├── Packages
│       │   │   ├── Packages.gz
│       │   │   └── Release
│       │   └── source
│       │       ├── Release
│       │       └── Sources.gz
│       ├── InRelease
│       ├── main
│       │   ├── binary-amd64
│       │   │   ├── Packages
│       │   │   ├── Packages.gz
│       │   │   └── Release
│       │   └── source
│       │       ├── Release
│       │       └── Sources.gz
│       ├── non-free
│       │   ├── binary-amd64
│       │   │   ├── Packages
│       │   │   ├── Packages.gz
│       │   │   └── Release
│       │   └── source
│       │       ├── Release
│       │       └── Sources.gz
│       ├── Release
│       └── Release.gpg
├── lingmoos.list
├── logs
│   └── ppa.log
└── pool
    └── main
        ├── a
        │   └── appmotor
        │       └── appmotor_1.9.9_amd64.deb
        ├── c
        │   ├── cute-daemon
        │   │   └── cute-daemon_1.0.0_amd64.deb
        │   ├── cute-debinstaller
        │   │   └── cute-debinstaller_0.7-1_amd64.deb
        │   ├── cute-screenlocker
        │   │   └── cute-screenlocker_23.02.8_amd64.deb
        │   └── cute-sddm-theme
        │       └── cute-sddm-theme_23.02.8_amd64.deb
        ├── f
        │   └── fluentui
        │       └── fluentui_1.6.8_amd64.deb
        ├── k
        │   └── kwin
        │       ├── kwin-common_5.27.13-lingmo-b3_amd64.deb
        │       ├── kwin-data_5.27.13-lingmo-b3_all.deb
        │       ├── kwin-dev_5.27.13-lingmo-b3_amd64.deb
        │       ├── kwin-wayland_5.27.13-lingmo-b3_amd64.deb
        │       ├── kwin-x11_5.27.13-lingmo-b3_amd64.deb
        │       ├── libkwineffects14_5.27.13-lingmo-b3_amd64.deb
        │       ├── libkwinglutils14_5.27.13-lingmo-b3_amd64.deb
        │       ├── lingmo-kwin-common_5.27.13-lingmo-b3_amd64.deb
        │       ├── lingmo-kwin-data_5.27.13-lingmo-b3_all.deb
        │       ├── lingmo-kwin-dev_5.27.13-lingmo-b3_amd64.deb
        │       ├── lingmo-kwin-wayland_5.27.13-lingmo-b3_amd64.deb
        │       └── lingmo-kwin-x11_5.27.13-lingmo-b3_amd64.deb
        ├── l
        │   ├── lingmo-core
        │   │   └── lingmo-core_2.0.0_amd64.deb
        │   ├── lingmo-debinstaller
        │   │   └── lingmo-debinstaller_0.7-1_amd64.deb
        │   ├── lingmo-dock
        │   │   └── lingmo-dock_2.0.0_amd64.deb
        │   ├── lingmo-filemanager
        │   │   └── lingmo-filemanager_2.0.0-3_amd64.deb
        │   ├── lingmo-kwin-plugins
        │   │   └── lingmo-kwin-plugins_2.0.2_amd64.deb
        │   ├── lingmo-launcher
        │   │   └── lingmo-launcher_0.9_amd64.deb
        │   ├── lingmo-qt-plugins
        │   │   └── lingmo-qt-plugins_2.0.0_amd64.deb
        │   ├── lingmo-settings
        │   │   ├── lingmo-settings_2.0.9-1_amd64.deb
        │   │   └── lingmo-settings-dev_2.0.9-1_amd64.deb
        │   ├── lingmo-statusbar
        │   │   └── lingmo-statusbar_1.9.9-20_amd64.deb
        │   ├── lingmo-systemicons
        │   │   └── lingmo-systemicons_2.0.2-2_all.deb
        │   ├── lingmoui
        │   │   └── lingmoui_2.0.0_amd64.deb
        │   ├── lingmo-windows-plugins
        │   │   └── lingmo-windows-plugins_2.0.0_amd64.deb
        │   └── ling-terminal
        │       └── ling-terminal_8.62.2.235_amd64.deb
        └── libl
            └── liblingmo
                └── liblingmo_1.9.10-1_amd64.deb

44 directories, 61 files
elysia-best commented 8 months ago

注意事项

elysia-best commented 8 months ago

Fixes #5

elysia-best commented 8 months ago

镜像中用到的两个文件

Used files.zip

elysia-best commented 8 months ago

@lingmo-dream 可以测试了

elysia-best commented 8 months ago

我这边本地搭建的环境ok

lingmo-dream commented 8 months ago

@ganyuanzhen OK, do you have some test resources such as screenshots of the test? It is not convenient to test at the moment. Also, thank you for your hard work.