Skip to content

Commit

Permalink
feat: support proxy configuration
Browse files Browse the repository at this point in the history
Signed-off-by: The1111mp <[email protected]>
  • Loading branch information
1111mp committed Aug 28, 2024
1 parent 8a66d87 commit 80bbb29
Show file tree
Hide file tree
Showing 13 changed files with 200 additions and 124 deletions.
7 changes: 7 additions & 0 deletions @types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ declare global {
total: number;
}

interface Proxy {
enabled: boolean;
ip?: string;
port?: string;
}

interface Setting {
locale: string;
theme: Themes;
closer: Closer;
directory: string;
mirror: string;
proxy: Proxy;
}

type UpdateInfo = ElectronUpdateInfo | "update-not-available";
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
"electron-updater": "^6.2.1",
"framer-motion": "^11.3.19",
"got": "^14.4.2",
"http-proxy-agent": "^7.0.2",
"https-proxy-agent": "^7.0.5",
"intro.js": "^7.2.0",
"intro.js-react": "^1.0.0",
"is-plain-obj": "^4.1.0",
Expand Down Expand Up @@ -215,5 +217,6 @@
},
"devEngines": {
"node": ">=18.19"
}
},
"packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
}
Loading

0 comments on commit 80bbb29

Please sign in to comment.