Files
Jack ed55fa708d Update to 7.7.0
Since version 7.7.0, we recommend yours update python to 3.12.

[+] Using nginx technology to load static files improves access speed
[+] Refactor homepage, website, FTP, and database using vue3
[+] Table loading changed to skeleton screen
[+] Add Website statistics-v2 professional plug-in
[+] Add Home page - top 5 resource occupancy
[+] Add protection for Files management (requires Tamper-proof for Enterprise 3.7)
[+] Website, FTP, Databases page add program status
[+] Add FTP log analysis (only supports Centos)
[+] Add password-free login to phpMyAdmin
[+] Add Proxy Project in Website (Supported when web service uses Nginx)
[+] Add WP Toolkit (Pro version only)
[+] Redesigned Docker module
[+] Add WP Toolkit Protection
[+] Add WP Toolkit Backup and Restore
[+] Add WP Toolkit Migrated
[+] Add WP Toolkit Clone site (supports new domain and subdomain)
[+] Add WP Toolkit Create site from backup of other panel
[+] Add WP Toolkit support for Cron automatic backup (only save Local disk)
[+] Add WP Toolkit operation log
[+] Add Integrity check for WP Toolkit
[+] Add WP Toolkit plug-in management and themes management

[*] Optimize phpMyAdmin formula access method
[*] Optimize Home page PHP display problem
[*] Optimize jump to the login interface after the login expires
[*] Optimize automatic renewal of SSL at some times
[*] Optimize Let's Encrypt to increase application success rate

[-] Fix Logs Audit cannot be opened
[-] Fix apache URL rewrite issue
[-] Fix phpmyadmin installation problem
[-] Fix the problem that some servers cannot install software
[-] Fix upload file error
[-] Fix left menu hiding problem
[-] Fix aaPanel Mobile QR code display problem
[-] Fix problem that third-party plug-ins are not displayed in the App Store
[-] Fix issue where the menu bar is blank when opening new tabs
[-] Fixed panel not being accessible in some cases
[-] Fix the issue where Curl warning caused the inability to apply for SSL
[-] Fix Quota issues for Website, FTP, Databases
[-] Fix file interface display problem on mobile terminal
2024-07-19 11:25:10 +08:00

80 lines
2.7 KiB
Python

# coding: utf-8
# -------------------------------------------------------------------
# aaPanel
# -------------------------------------------------------------------
# Copyright (c) 2014-2099 aaPanel(www.aapanel.com) All rights reserved.
# -------------------------------------------------------------------
# Author: wzz <wzz@aapanel.com>
# -------------------------------------------------------------------
# ------------------------------
# Docker模型 - Docker应用
# ------------------------------
import public
import os
import time
import json
import re
from btdockerModelV2 import dk_public as dp
from btdockerModelV2.dockerBase import dockerBase
from public.validate import Param
class main(dockerBase):
def __init__(self):
pass
# 2024/2/20 下午 4:31 获取/搜索docker应用的列表
def get_app_list(self, get=None):
'''
@name 获取docker应用的列表
@author wzz <2024/2/20 下午 4:32>
@param "data":{"参数名":""} <数据类型> 参数描述
@return dict{"status":True/False,"msg":"提示信息"}
'''
try:
from btdockerModelV2 import registryModel as dr
dr.main().registry_list(get)
from panelPlugin import panelPlugin
pp = panelPlugin()
get.type = 10
# get.type = 16 # dev docker
# get.type = 14 # www docker
get.force = get.force if "force" in get and get.force else 0
if not hasattr(get, "query"):
get.query = ""
get.tojs = "soft.get_list"
# softList = pp.get_soft_list(get)
if get.query != "":
get.row = 1000
softList = pp.get_soft_list(get)
softList['list'] = self.struct_list(softList['list'])
softList['list'] = pp.get_page(softList['list']['data'], get)
else:
softList = pp.get_soft_list(get)
return public.return_message(0, 0, softList['list'])
except Exception as e:
# public.print_log("1111111111 进方法")
return public.return_message(-1, 0, e)
# 2024/2/20 下午 4:47 处理云端软件列表,只需要list中type=13的数据
def struct_list(self, softList: dict):
'''
@name 处理云端软件列表,只需要list中type=13的数据
@param softList:
@return:
'''
new_list = []
for i in softList['data']:
# if i['type'] == 14: # www docker
# if i['type'] == 16: # dev docker
if i['type'] == 10:
new_list.append(i)
softList['data'] = new_list
return softList