Compare commits
2 Commits
b825dcd4d5
...
2e6312e84f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e6312e84f | ||
|
|
5637a34169 |
29
package-lock.json
generated
29
package-lock.json
generated
@@ -15,6 +15,7 @@
|
||||
"@lobehub/ui": "^1.137.4",
|
||||
"@mui/material": "^5.14.7",
|
||||
"@radix-ui/react-accordion": "^1.1.2",
|
||||
"@radix-ui/react-alert-dialog": "^1.0.5",
|
||||
"@radix-ui/react-checkbox": "^1.0.4",
|
||||
"@radix-ui/react-dialog": "^1.0.4",
|
||||
"@radix-ui/react-dropdown-menu": "^2.0.5",
|
||||
@@ -1846,6 +1847,34 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@radix-ui/react-alert-dialog": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmmirror.com/@radix-ui/react-alert-dialog/-/react-alert-dialog-1.0.5.tgz",
|
||||
"integrity": "sha512-OrVIOcZL0tl6xibeuGt5/+UxoT2N27KCFOPjFyfXMnchxSHZ/OW7cCX2nGlIYJrbHK/fczPcFzAwvNBB6XBNMA==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@radix-ui/primitive": "1.0.1",
|
||||
"@radix-ui/react-compose-refs": "1.0.1",
|
||||
"@radix-ui/react-context": "1.0.1",
|
||||
"@radix-ui/react-dialog": "1.0.5",
|
||||
"@radix-ui/react-primitive": "1.0.3",
|
||||
"@radix-ui/react-slot": "1.0.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "*",
|
||||
"@types/react-dom": "*",
|
||||
"react": "^16.8 || ^17.0 || ^18.0",
|
||||
"react-dom": "^16.8 || ^17.0 || ^18.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react": {
|
||||
"optional": true
|
||||
},
|
||||
"@types/react-dom": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@radix-ui/react-arrow": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.0.3.tgz",
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"@lobehub/ui": "^1.137.4",
|
||||
"@mui/material": "^5.14.7",
|
||||
"@radix-ui/react-accordion": "^1.1.2",
|
||||
"@radix-ui/react-alert-dialog": "^1.0.5",
|
||||
"@radix-ui/react-checkbox": "^1.0.4",
|
||||
"@radix-ui/react-dialog": "^1.0.4",
|
||||
"@radix-ui/react-dropdown-menu": "^2.0.5",
|
||||
|
||||
@@ -39,7 +39,7 @@ export default function FilesPage() {
|
||||
const [open, setOpen] = useState(false)
|
||||
const [title, setTitle] = useState('')
|
||||
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search, reload, filterData, refreshData,loadData } = useTable((param) =>
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search, reload, filterData, refreshData,loadData } = useTable({}, (param) =>
|
||||
readFileByLibDatabase({ ...param, id, name: param.keyword }).then(res => {
|
||||
setHasPermission(res.writeable)
|
||||
return res
|
||||
|
||||
@@ -127,7 +127,7 @@ export default function FileLibPage() {
|
||||
const [open, setOpen] = useState(false);
|
||||
const { user } = useContext(userContext);
|
||||
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search, reload } = useTable((param) =>
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search, reload } = useTable({},(param) =>
|
||||
readFileLibDatabase(param.page, param.pageSize, param.keyword)
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ export default function MoveModal({ data, open, setOpen, reload }) {
|
||||
}))
|
||||
}
|
||||
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search} = useTable((param) =>
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search} = useTable({},(param) =>
|
||||
readFileLibDatabase(param.page, 10000, param.keyword, '', '1')
|
||||
)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import moveIcon from "../../assets/knowledge/move-icon.png";
|
||||
import exportIcon from "../../assets/knowledge/export-icon.png";
|
||||
import deleteIcon from "../../assets/knowledge/delete-icon.png";
|
||||
import noFolderIcon from "../../assets/knowledge/no-folder-icon.png";
|
||||
|
||||
import { useNavigate } from "react-router-dom";
|
||||
export default function FileLibPage() {
|
||||
const [open, setOpen] = useState(false);
|
||||
const [renameOpen, setRenameOpen] = useState(false);
|
||||
@@ -30,7 +30,7 @@ export default function FileLibPage() {
|
||||
const [data, setData] = useState({})
|
||||
const navigate = useNavigate()
|
||||
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search, reload } = useTable((param) =>
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search, reload } = useTable({},(param) =>
|
||||
readFileLibDatabase(param.page, 10000, param.keyword, parentId)
|
||||
)
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ export default function FilesPage() {
|
||||
const [type, setType] = useState(1)
|
||||
const [data, setData] = useState({})
|
||||
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search, reload, filterData, refreshData } = useTable((param) =>
|
||||
const { page, pageSize, data: datalist, total, loading, setPage, search, reload, filterData, refreshData } = useTable({}, (param) =>
|
||||
readFileByLibDatabase({ ...param, id, name: param.keyword }).then(res => {
|
||||
setHasPermission(res.writeable)
|
||||
return res
|
||||
|
||||
@@ -14,7 +14,7 @@ export const Finetune = ({ rtClick, gpuClick }) => {
|
||||
const { setSuccessData } = useContext(alertContext);
|
||||
const { t } = useTranslation()
|
||||
|
||||
const { page, pageSize, data: tasks, total, setPage, search, reload, filterData } = useTable((param) =>
|
||||
const { page, pageSize, data: tasks, total, setPage, search, reload, filterData } = useTable({}, (param) =>
|
||||
getTasksApi({
|
||||
page: param.page,
|
||||
limit: param.pageSize,
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function Users(params) {
|
||||
const { user } = useContext(userContext);
|
||||
const { t } = useTranslation()
|
||||
|
||||
const { page, pageSize, data: users, total, loading, setPage, search, reload } = useTable((param) =>
|
||||
const { page, pageSize, data: users, total, loading, setPage, search, reload } = useTable({},(param) =>
|
||||
getUsersApi(param.keyword, param.page, param.pageSize)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user