Skip to content

Commit

Permalink
packages: Add vue-draggable-resizable
Browse files Browse the repository at this point in the history
This library makes it easy to add dragging and resizing on any component.
  • Loading branch information
rafaellehmkuhl committed Jan 3, 2025
1 parent 32eaa8b commit 92a289b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"uuid": "^8.3.2",
"vue": "^3.4.21",
"vue-draggable-plus": "^0.2.0-beta.2",
"vue-draggable-resizable": "3.0.0",
"vue-router": "^4.0.14",
"vue-virtual-scroller": "^2.0.0-beta.8",
"vue3-slider": "^1.9.0",
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as Sentry from '@sentry/vue'
import FloatingVue from 'floating-vue'
import { createPinia } from 'pinia'
import { createApp } from 'vue'
import VueDraggableResizable from 'vue-draggable-resizable'
import VueVirtualScroller from 'vue-virtual-scroller'

import { app_version } from '@/libs/cosmos'
Expand Down Expand Up @@ -47,6 +48,7 @@ if (window.localStorage.getItem('cockpit-enable-usage-statistics-telemetry') &&
}

app.component('FontAwesomeIcon', FontAwesomeIcon)
app.component('VueDraggableResizable', VueDraggableResizable)
app.use(router).use(vuetify).use(createPinia()).use(FloatingVue).use(VueVirtualScroller)
app.mount('#app')

Expand Down
6 changes: 6 additions & 0 deletions src/types/shims.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ declare module 'vue-virtual-scroller' {

export default plugin
}

declare module 'vue-draggable-resizable' {
import { DefineComponent } from 'vue'
const component: DefineComponent<Record<string, never>>
export default component
}

0 comments on commit 92a289b

Please sign in to comment.