Skip to content

Commit

Permalink
migrate Table from el-table to agGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
wulff007 committed Jul 18, 2023
1 parent 342b97c commit d56b1db
Show file tree
Hide file tree
Showing 28 changed files with 3,385 additions and 2,284 deletions.
3,009 changes: 1,628 additions & 1,381 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tabbled-web",
"private": true,
"version": "0.3.37",
"version": "0.3.38",
"type": "module",
"license": "MIT",
"scripts": {
Expand All @@ -10,13 +10,18 @@
"preview": "vite preview"
},
"dependencies": {
"@ag-grid-enterprise/row-grouping": "^30.0.5",
"@ag-grid-enterprise/server-side-row-model": "^30.0.5",
"@codemirror/lang-html": "^6.4.3",
"@codemirror/lang-javascript": "^6.1.2",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/theme-one-dark": "^6.1.0",
"@tanstack/vue-table": "^8.9.1",
"@types/events": "^3.0.0",
"acebase": "^1.27.0",
"ag-grid-community": "^30.0.5",
"ag-grid-enterprise": "^30.0.5",
"ag-grid-vue3": "^30.0.5",
"axios": "^1.4.0",
"buffer": "^6.0.3",
"codemirror": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function logout() {
async function registerPages() {
pagesByAlias.value.clear()
let pages = await dsService.pageDataSource.getMany()
let pages = (await dsService.pageDataSource.getMany()).data
pages.forEach((item: PageConfigInterface) => {
addRoute(item.path, item);
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomFilterConstructor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ async function getLinkData(query?: string) {
opt['search'] = query
}
linkData.value = await linkDataSource.getMany(opt)
linkData.value = (await linkDataSource.getMany(opt)).data
isLoading.value = false
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/FieldEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ onMounted(async () => {
})
})
let items = await dsService.dsDataSource.getMany()
let items = (await dsService.dsDataSource.getMany()).data
items.forEach(item => {
console.log(item)
Expand Down
4 changes: 2 additions & 2 deletions src/components/HandlerEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ let emit = defineEmits(['update'])
onMounted(async() => {
let ds = dsService.functionDataSource
let data = await ds.getAll()
data.forEach(ds => {
let res = await ds.getMany()
res.data.forEach(ds => {
functions.value.push({
key: ds.id,
label: ds.title
Expand Down
2 changes: 1 addition & 1 deletion src/components/LinkSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async function getData(query?: string) {
opt['search'] = query
}
data.value = await dataSource.getMany(opt)
data.value = (await dataSource.getMany(opt)).data
isLoading.value = false;
}
Expand Down

0 comments on commit d56b1db

Please sign in to comment.