-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,959 additions
and
343 deletions.
There are no files selected for viewing
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,5 @@ | ||
{ | ||
"printWidth": 150, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
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,3 +1,6 @@ | ||
# 4.1.0 | ||
- [ ] MatterItem抽出通用组件 | ||
|
||
# 4.0.4 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<code_scheme name="Project" version="173" /> | ||
<!--<code_scheme name="Project" version="173" />--> |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
"version": "4.0.4", | ||
"private": true, | ||
"dependencies": { | ||
"@ahooksjs/use-url-state": "^3.5.1", | ||
"@ant-design/icons": "4.7.0", | ||
"@craco/craco": "6.4.3", | ||
"@types/echarts": "4.6.1", | ||
|
@@ -11,9 +12,11 @@ | |
"@types/react": "17.0.2", | ||
"@types/react-dom": "17.0.2", | ||
"@types/react-router-dom": "^5.3.3", | ||
"ahooks": "^3.8.0", | ||
"antd": "4.19.2", | ||
"axios": "^0.26.1", | ||
"axios": "^1.7.2", | ||
"comma-separated-values": "^3.6.4", | ||
"copy-to-clipboard": "^3.3.3", | ||
"craco-less": "2.0.0", | ||
"echarts": "4.8.0", | ||
"echarts-for-react": "2.0.16", | ||
|
@@ -46,7 +49,9 @@ | |
"devDependencies": { | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.2.2", | ||
"prettier": "^2.8.8" | ||
"postcss-flexbugs-fixes": "^5.0.2", | ||
"prettier": "^3.2.5", | ||
"react-app-alias": "^2.2.2" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
|
@@ -58,5 +63,6 @@ | |
"prettier --write", | ||
"git add" | ||
] | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" | ||
} |
This file was deleted.
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,20 +1,23 @@ | ||
import React from 'react'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import { ConfigProvider } from 'antd'; | ||
import Frame from './pages/Frame'; | ||
import en_US from 'antd/es/locale/en_US'; | ||
import React from 'react' | ||
import { BrowserRouter as Router } from 'react-router-dom' | ||
import { ConfigProvider } from 'antd' | ||
import Frame from './pages/Frame' | ||
import en_US from 'antd/es/locale/en_US' | ||
|
||
// global less 须放在Frame组件之后,不然会出现按需加载的less文件覆盖样式问题 | ||
import './App.less'; | ||
import './App.less' | ||
import GlobalContextProvider from '@/contexts/globalContext' | ||
|
||
function App() { | ||
return ( | ||
<Router> | ||
<ConfigProvider locale={en_US}> | ||
<Frame /> | ||
<GlobalContextProvider> | ||
<Frame /> | ||
</GlobalContextProvider> | ||
</ConfigProvider> | ||
</Router> | ||
); | ||
) | ||
} | ||
|
||
export default App; | ||
export default App |
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,16 @@ | ||
import { generateCRUDApi } from './util' | ||
import { IMatter } from '@/models/Matter' | ||
import { axios } from '@/setupAxios' | ||
|
||
const API_PREFIX = 'matter' | ||
|
||
export const matterCRUDApi = generateCRUDApi<{ | ||
listResponse: { | ||
data: IMatter[] | ||
total: number | ||
} | ||
}>(API_PREFIX) | ||
|
||
export const updateMatterPrivacy = (body: { spaceUuid: string; uuid: string; privacy: boolean }) => { | ||
return axios.post(`${API_PREFIX}/change/privacy`, body) | ||
} |
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,19 @@ | ||
import { axios } from '@/setupAxios' | ||
|
||
export const generateCRUDApi = < | ||
T extends { | ||
filters?: Record<string, unknown> | ||
listResponse?: any // list接口返回值 | ||
}, | ||
>( | ||
apiPrefix: string, | ||
) => { | ||
return { | ||
list: (filters?: T['filters']): Promise<T['listResponse']> => { | ||
return axios.get(`${apiPrefix}/page`) | ||
}, | ||
get: () => {}, | ||
save: () => {}, | ||
delete: () => {}, | ||
} | ||
} |
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.