Skip to content

Commit

Permalink
1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobaidadada committed Jan 8, 2025
1 parent 1420317 commit c0fdd81
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filecat",
"version": "1.1.1",
"version": "1.1.2",
"description": "filecat 文件管理器",
"author": "xiaobaidadada",
"scripts": {
Expand Down Expand Up @@ -46,6 +46,9 @@
"浏览器代理",
"简洁",
"日志",
"http代理工具",
"http",
"post",
"log",
"filebrowser",
"administrator",
Expand Down
1 change: 1 addition & 0 deletions src/common/req/sys.pojo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface staticSysPojo {
cpu_phy_core_num:number
cpu_speed_hz:number
pid_ppid:string;
user:string;
}

// 物理信息
Expand Down
2 changes: 1 addition & 1 deletion src/main/domain/net/net.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class NetService {
break;
case 'put':
case 'post': {
if (pojo.form_data_list) {
if (pojo.form_data_list && pojo.form_data_list.length > 0 && pojo.body_type === http_body_type.form) {
option['multipart'] = true;
const form = {};
const files = {};
Expand Down
1 change: 1 addition & 0 deletions src/main/domain/sys/sys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class SysService {
cpu_phy_core_num: cpu.physicalCores,
cpu_speed_hz: cpu.speedMax,
pid_ppid:`${process.pid};${process.ppid}`,
user:process.env['USER'] ?? process.env['USERNAME'],
})
}

Expand Down
1 change: 1 addition & 0 deletions src/web/project/component/sys/Sys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export function Sys(props) {
<TextLine left={`cpu ${t("物理核心")}`} right={sys.cpu_phy_core_num}/>
<TextLine left={`cpu ${t("最大")}hz`} right={sys.cpu_speed_hz}/>
<TextLine left={`当前系统:pid;ppid`} right={sys.pid_ppid}/>
<TextLine left={`运行用户`} right={sys.user}/>
</Card>
</Column>}
{disk && <Column>
Expand Down
22 changes: 11 additions & 11 deletions src/web/project/component/toolbox/Http.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ export function Http() {
}
}
if(item.form_data_list )
set_form_data_list(JSON.parse(item.form_data_list as string))
set_form_data_list(JSON.parse(item.form_data_list as string))
if (item.json_data)
http_json_value = JSON.parse(item.json_data);
http_json_value = JSON.parse(item.json_data);
if(item.data)
http_row_value = item.data;
http_row_value = item.data;
if (item.body_type) {
set_body_type(item.body_type);
if (item.header_type === 2) {
Expand Down Expand Up @@ -443,14 +443,14 @@ export function Http() {
</Column>
<Column>
<NavIndexContainer getItems={getItems} save={saveItems}
clickItem={clickItem}
items={[
{key: "name", preName: t("名字")},
{key: "url", preName: "url"},
{key: "method", preName: "method"},
{key: "headers", preName: "headers"},
{key: "data", preName: "data"},
{key: "form_data_list", preName: "form_data_list"}]}/>
clickItem={clickItem}
items={[
{key: "name", preName: t("名字")},
{key: "url", preName: "url"},
{key: "method", preName: "method"},
{key: "headers", preName: "headers"},
{key: "data", preName: "data"},
{key: "form_data_list", preName: "form_data_list"}]}/>
</Column>
</Row>
</Dashboard>
Expand Down

0 comments on commit c0fdd81

Please sign in to comment.