Skip to content

Commit

Permalink
fixup! fixup! perf: Switch to vite for bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl committed Mar 12, 2024
1 parent 7b1d7a8 commit 2f41b4c
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
root: true,
extends: [
'@nextcloud',
'@nextcloud/eslint-config/typescript',
],
rules: {
'jsdoc/require-jsdoc': 'off',
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default {
},
},
watch: {
'$route'(to, from) {
'$route'(to) {
this.routing(to)
},
},
Expand Down
8 changes: 5 additions & 3 deletions src/shared/assets/icons/IconTables.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
</span>
</template>

<script>
export default {
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
name: 'IconTables',
props: {
title: {
Expand All @@ -33,5 +35,5 @@ export default {
default: 24,
},
},
}
})
</script>
File renamed without changes.
29 changes: 29 additions & 0 deletions src/store/api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* @copyright Copyright (c) 2024 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'

import type { getTablesResponse } from '../types/index.ts'

export const listTables = async (): Promise<getTablesResponse> => {
return axios.get(generateUrl('/apps/tables/table'))
}
2 changes: 1 addition & 1 deletion src/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { showError } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/style.css'
import data from './data.js'
import displayError from '../shared/utils/displayError.js'
import { NODE_TYPE_TABLE, NODE_TYPE_VIEW } from '../shared/constants.js'
import { NODE_TYPE_TABLE, NODE_TYPE_VIEW } from '../shared/constants.ts'

Vue.use(Vuex)

Expand Down

0 comments on commit 2f41b4c

Please sign in to comment.