diff --git a/deploy/nginx/nginx.conf b/deploy/nginx/nginx.conf
index 5e47397e66e27f02f96543dbb952491c509b5531..843a6ec913215af3ca9eca6f5a8e2747763befce 100644
--- a/deploy/nginx/nginx.conf
+++ b/deploy/nginx/nginx.conf
@@ -141,20 +141,6 @@ http {
proxy_pass https://dsapi.osinfra.cn/;
}
- location ^~ /monitoring/ {
- proxy_set_header X-Forwarded-For $http_x_real_ip;
- add_header X-XSS-Protection "1; mode=block";
- add_header X-Frame-Options DENY;
- add_header X-Content-Type-Options nosniff;
- add_header Content-Security-Policy "script-src 'self'; object-src 'none'; frame-src 'none'";
- add_header Cache-Control "no-cache,no-store,must-revalidate";
- add_header Pragma no-cache;
- add_header Expires 0;
- proxy_redirect off;
-
- proxy_pass https://easysoftware-monitoring.test.osinfra.cn/;
- }
-
location ^~ /api-search/ {
proxy_set_header X-Forwarded-For $http_x_real_ip;
add_header X-XSS-Protection "1; mode=block";
@@ -168,20 +154,6 @@ http {
proxy_pass https://doc-search.test.osinfra.cn/;
}
-
- location ^~ /api-omapi/ {
- proxy_set_header X-Forwarded-For $http_x_real_ip;
- add_header X-XSS-Protection "1; mode=block";
- add_header X-Frame-Options DENY;
- add_header X-Content-Type-Options nosniff;
- add_header Content-Security-Policy "script-src 'self'; object-src 'none'; frame-src 'none'";
- add_header Cache-Control "no-cache,no-store,must-revalidate";
- add_header Pragma no-cache;
- add_header Expires 0;
-
- proxy_pass https://omapi.osinfra.cn/;
- }
-
error_page 401 402 403 405 406 407 413 414 /error.html;
error_page 404 /404.html;
diff --git a/public/error.html b/public/error.html
new file mode 100644
index 0000000000000000000000000000000000000000..ec92e45aae61a2c24d929dbd8896f096ddaee2d2
--- /dev/null
+++ b/public/error.html
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+ openEuler Easy Software
+
+
+
+
+
+

+
Error
+
+
+
diff --git a/src/@types/domain.ts b/src/@types/domain.ts
index 29d679e2dfd060120d4f899368b2dce8adb79c09..b1d770cba72d6c27e47617d9fbebef7546998359 100644
--- a/src/@types/domain.ts
+++ b/src/@types/domain.ts
@@ -1,14 +1,23 @@
export interface SearchAppT {
- name: string;
- os: string;
- arch: string;
- category: string;
- timeOrder: string;
+ pageNum: number;
+ pageSize: number;
+ os?: string | string[];
+ arch?: string | string[]
+ category?: string | string[];
+ timeOrder?: string;
+ nameOrder?: string;
}
-export interface PkgPageSizeT {
- pageNum?: number;
- pageSize?: number;
- timeOrder?: string;
+export interface SearchSQLT extends SearchAppT {
name: string;
}
+
+export interface SearchESParamsT extends SearchAppT {
+ keyword: string;
+ keywordType: string;
+ dataType: string;
+}
+
+export interface SearchUpstreamT extends SearchAppT {
+ eulerOsVersion: string;
+}
\ No newline at end of file
diff --git a/src/api/api-domain.ts b/src/api/api-domain.ts
index 2a6a90b9d74a04dde067acc8c55d49a623bdd389..91ac5c84163eec0fac74c053c7e3b2bf5f2317e8 100644
--- a/src/api/api-domain.ts
+++ b/src/api/api-domain.ts
@@ -1,7 +1,6 @@
import { request } from '@/shared/axios';
import type { AxiosResponse } from '@/shared/axios';
-
-
+import type { SearchSQLT } from '@/@types/domain';
interface ColumnT {
@@ -35,7 +34,7 @@ export function getSearchAllColumn(params: ColumnT) {
return request.get(url, { params }).then((res: AxiosResponse) => res?.data);
}
-export function getSearchAllFiled(params: any) {
+export function getSearchAllFiled(params: SearchSQLT) {
const url = `/api-query/field`;
return request.get(url, { params }).then((res: AxiosResponse) => res?.data);
}
@@ -49,14 +48,14 @@ export function getTags(id: string) {
//详情页
-export function getDetails(tabValue:string,id: string) {
+export function getDetails(tabValue: string, id: string) {
const url = `/api-query/${tabValue}?pkgId=${id}`;
return request.get(url).then((res: AxiosResponse) => res?.data);
}
//支持情况
-export function getVer(tabValue:string,id: string) {
+export function getVer(tabValue: string, id: string) {
const url = `/api-query/${tabValue}/eulerver?name=${id}`;
return request.get(url).then((res: AxiosResponse) => res?.data);
}
\ No newline at end of file
diff --git a/src/api/api-search.ts b/src/api/api-search.ts
index 5e0c2925cbc617671b6f42f07510e909f875703c..62e8771edf4ea349c2ab91e0d9d0d879b22d1d7b 100644
--- a/src/api/api-search.ts
+++ b/src/api/api-search.ts
@@ -1,12 +1,7 @@
import { request } from '@/shared/axios';
import type { AxiosResponse } from '@/shared/axios';
+import type { SearchESParamsT } from '@/@types/domain';
-interface SearchT {
- keyword: string;
- pageNum: number;
- pageSize: number;
- dataType: string;
-}
/**
* 搜索
@@ -19,7 +14,7 @@ interface SearchT {
* @return {Promise>} 返回一个 Promise,解析为提交的反馈信息是否成功的反馈信息
*/
-export function getSearchData(params: SearchT) {
+export function getSearchData(params: SearchESParamsT) {
const url = '/api-search/software/docs';
return request.post(url, params).then((res: AxiosResponse) => res?.data);
}
@@ -46,7 +41,7 @@ export function getSearchCount(params: {
-export function getSearchDataAll(params: SearchT) {
+export function getSearchDataAll(params: SearchESParamsT) {
const url = '/api-search/software/docsAll';
return request.post(url, params).then((res: AxiosResponse) => res?.data);
}
diff --git a/src/api/api-upstream.ts b/src/api/api-upstream.ts
index 0ec712e8a130c47dc6ba549e0ecadfee45712036..cb42094c8c5adfca3e073fc5c0c2ac6e674200e3 100644
--- a/src/api/api-upstream.ts
+++ b/src/api/api-upstream.ts
@@ -1,26 +1,13 @@
import { request } from '@/shared/axios';
import type { AxiosResponse } from '@/shared/axios';
-
-
-
-// export function getUpstream(name: string) {
-// const url = `/monitoring/api/v2/projects/?name=${name}`;
-// return request.get(url).then((res: AxiosResponse) => res?.data);
-// }
-
-export interface PkgPageSizeT {
- pageNum?: number;
- pageSize?: number;
- eulerOsVersion: string;
-}
-
+import type { SearchUpstreamT } from '@/@types/domain';
/**
* 上游兼容应用全景
- * @name getUpstream
+ * @name getUpstream
*/
-export function getUpstream(params: PkgPageSizeT) {
+export function getUpstream(params: SearchUpstreamT) {
const url = `/api-query/appVersion`;
return request.get(url, { params }).then((res: AxiosResponse) => res?.data);
}
diff --git a/src/assets/icon/icon-home.svg b/src/assets/icon/icon-home.svg
index bda3274de0c0db95ff58e91a18540dadc33a621d..bb697c8d9ad1683a1c7fe7f5ae8035d64e1b8adb 100644
--- a/src/assets/icon/icon-home.svg
+++ b/src/assets/icon/icon-home.svg
@@ -1,7 +1,6 @@