This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(*): fix misplaced style in mobile
- Fix misplaced style in mobile - Change Table to ProTable(support table header hidden or not) - Add dir: constants(move constants from intf/ to constants/)
- Loading branch information
Showing
16 changed files
with
690 additions
and
154 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
{ | ||
"name": "zlib-web", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"@ant-design/colors": "^6.0.0", | ||
"@ant-design/icons": "^4.8.0", | ||
"@tanstack/react-query": "^4.19.1", | ||
"antd": "^5.0.5", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.4.5" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.13", | ||
"@types/react": "^18.0.26", | ||
"@types/react-dom": "^18.0.9", | ||
"@vitejs/plugin-react": "^3.0.0", | ||
"autoprefixer": "^10.4.13", | ||
"postcss": "^8.4.20", | ||
"tailwindcss": "^3.2.4", | ||
"typescript": "^4.9.4", | ||
"vite": "^4.0.0" | ||
} | ||
"name": "zlib-web", | ||
"private": true, | ||
"version": "0.0.2", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"@ant-design/colors": "^6.0.0", | ||
"@ant-design/icons": "^4.8.0", | ||
"@ant-design/pro-components": "^2.3.47", | ||
"@tanstack/react-query": "^4.20.4", | ||
"antd": "^5.0.7", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.4.5" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.15", | ||
"@types/react": "^18.0.26", | ||
"@types/react-dom": "^18.0.9", | ||
"@vitejs/plugin-react": "^3.0.0", | ||
"autoprefixer": "^10.4.13", | ||
"postcss": "^8.4.20", | ||
"tailwindcss": "^3.2.4", | ||
"typescript": "^4.9.4", | ||
"vite": "^4.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { ProSchemaValueEnumObj } from "@ant-design/pro-components"; | ||
import { IExtOpt } from "@intf"; | ||
|
||
/** | ||
* 高级检索弹出框扩展名选项列表 | ||
* | ||
* @type {*} | ||
*/ | ||
const EXT_OPT: Array<IExtOpt> = [ | ||
{ | ||
value: "azw3", | ||
label: ".azw3", | ||
}, | ||
{ | ||
value: "epub", | ||
label: ".epub", | ||
}, | ||
{ | ||
value: "mobi", | ||
label: ".mobi", | ||
}, | ||
{ | ||
value: "pdf", | ||
label: ".pdf", | ||
}, | ||
{ | ||
value: "txt", | ||
label: ".txt", | ||
}, | ||
]; | ||
|
||
/** | ||
* 表格扩展名选项列表 | ||
* | ||
* @type {*} | ||
*/ | ||
const EXT_FILTERS: ProSchemaValueEnumObj = { | ||
azw3: { | ||
text: ".azw3", | ||
}, | ||
epub: { | ||
text: ".epub", | ||
}, | ||
mobi: { | ||
text: ".mobi", | ||
}, | ||
pdf: { | ||
text: ".pdf", | ||
}, | ||
txt: { | ||
text: ".txt", | ||
}, | ||
}; | ||
|
||
export { EXT_FILTERS, EXT_OPT }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { EXT_FILTERS, EXT_OPT } from "./extension"; | ||
import { RESULT_COLS } from "./results"; | ||
|
||
/** | ||
* 最小宽度 | ||
* | ||
* @type {*} | ||
*/ | ||
const MIN_WIDTH: string = "480px"; | ||
|
||
/** | ||
* IPFS服务器域名枚举 | ||
* | ||
* @enum {number} | ||
*/ | ||
enum DomainName { | ||
Cloudflare = "cloudflare-ipfs.com", | ||
Dweb = "dweb.link", | ||
Ipfs = "ipfs.io", | ||
Pinata = "gateway.pinata.cloud", | ||
} | ||
|
||
export { RESULT_COLS, DomainName, EXT_OPT, MIN_WIDTH, EXT_FILTERS }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.