Browse Source

chore: remove primevue dependencies

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2716/head
Pranav C 3 years ago
parent
commit
c2f8514852
  1. 65
      packages/nc-gui-v2/package-lock.json
  2. 6
      packages/nc-gui-v2/package.json
  3. 41
      packages/nc-gui-v2/pages/form.vue
  4. 4
      packages/nc-gui-v2/pages/projects/create.vue
  5. 17
      packages/nc-gui-v2/pages/sample.vue

65
packages/nc-gui-v2/package-lock.json generated

@ -5,11 +5,9 @@
"packages": {
"": {
"dependencies": {
"@nuxtjs/toast": "^3.3.1",
"nocodb-sdk": "file:../nocodb-sdk",
"nuxt3-store": "^1.0.0",
"primeflex": "3.2.0",
"primeicons": "5.0.0",
"primevue": "3.10.0",
"vuetify": "^3.0.0-alpha.13"
},
"devDependencies": {
@ -1280,6 +1278,14 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/@nuxtjs/toast": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/@nuxtjs/toast/-/toast-3.3.1.tgz",
"integrity": "sha512-b9JpyjSw5ZOyjskBvNc4NEebe0qxB6LivBlO84gHOnsaF23rLkJoBfVNDcXwGNDl7vm09yM4WqBGTkm/OQ0ZCQ==",
"dependencies": {
"vue-toasted": "^1.1.28"
}
},
"node_modules/@rollup/plugin-alias": {
"version": "3.1.9",
"resolved": "https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-3.1.9.tgz",
@ -9365,25 +9371,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/primeflex": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/primeflex/-/primeflex-3.2.0.tgz",
"integrity": "sha512-GjVNrp2k/MbO/vqs0wYUjsM6ejexymbGmtEzFpib5JEuwhL6HVJoxr3tmuAaL8RnOWNOPecVFauF2RqP2UXOhw=="
},
"node_modules/primeicons": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/primeicons/-/primeicons-5.0.0.tgz",
"integrity": "sha512-heygWF0X5HFI1otlZE62pp6ye7sZ8om78J9au2BRkg8O7Y8AHTZ9qKMRzchZUHLe8zUAvdi6hZzzm9XxgwIExw=="
},
"node_modules/primevue": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/primevue/-/primevue-3.10.0.tgz",
"integrity": "sha512-tZwzdg0gVOpohFAzPWuIQ7OoNZ1/g6EcY29xn6KzuZ/p8HDiGmg2ChpTUpPaLIJplD+1FyInIo8uvA4YtRulGg==",
"peerDependencies": {
"primeicons": "^5.0.0",
"vue": "^3.0.0"
}
},
"node_modules/process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@ -11550,6 +11537,11 @@
"vue": "^3.2.0"
}
},
"node_modules/vue-toasted": {
"version": "1.1.28",
"resolved": "https://registry.npmjs.org/vue-toasted/-/vue-toasted-1.1.28.tgz",
"integrity": "sha512-UUzr5LX51UbbiROSGZ49GOgSzFxaMHK6L00JV8fir/CYNJCpIIvNZ5YmS4Qc8Y2+Z/4VVYRpeQL2UO0G800Raw=="
},
"node_modules/vue/node_modules/@vue/shared": {
"version": "3.2.33",
"resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.33.tgz",
@ -12858,6 +12850,14 @@
}
}
},
"@nuxtjs/toast": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/@nuxtjs/toast/-/toast-3.3.1.tgz",
"integrity": "sha512-b9JpyjSw5ZOyjskBvNc4NEebe0qxB6LivBlO84gHOnsaF23rLkJoBfVNDcXwGNDl7vm09yM4WqBGTkm/OQ0ZCQ==",
"requires": {
"vue-toasted": "^1.1.28"
}
},
"@rollup/plugin-alias": {
"version": "3.1.9",
"resolved": "https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-3.1.9.tgz",
@ -18783,22 +18783,6 @@
"resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-6.0.0.tgz",
"integrity": "sha512-6UqkYefdogmzqAZWzJ7laYeJnaXDy2/J+ZqiiMtS7t7OfpXWTlaeGMwX8U6EFvPV/YWWEKRkS8hKS4k60WHTOg=="
},
"primeflex": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/primeflex/-/primeflex-3.2.0.tgz",
"integrity": "sha512-GjVNrp2k/MbO/vqs0wYUjsM6ejexymbGmtEzFpib5JEuwhL6HVJoxr3tmuAaL8RnOWNOPecVFauF2RqP2UXOhw=="
},
"primeicons": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/primeicons/-/primeicons-5.0.0.tgz",
"integrity": "sha512-heygWF0X5HFI1otlZE62pp6ye7sZ8om78J9au2BRkg8O7Y8AHTZ9qKMRzchZUHLe8zUAvdi6hZzzm9XxgwIExw=="
},
"primevue": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/primevue/-/primevue-3.10.0.tgz",
"integrity": "sha512-tZwzdg0gVOpohFAzPWuIQ7OoNZ1/g6EcY29xn6KzuZ/p8HDiGmg2ChpTUpPaLIJplD+1FyInIo8uvA4YtRulGg==",
"requires": {}
},
"process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@ -20389,6 +20373,11 @@
"@vue/devtools-api": "^6.0.0"
}
},
"vue-toasted": {
"version": "1.1.28",
"resolved": "https://registry.npmjs.org/vue-toasted/-/vue-toasted-1.1.28.tgz",
"integrity": "sha512-UUzr5LX51UbbiROSGZ49GOgSzFxaMHK6L00JV8fir/CYNJCpIIvNZ5YmS4Qc8Y2+Z/4VVYRpeQL2UO0G800Raw=="
},
"vuetify": {
"version": "3.0.0-beta.5",
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-3.0.0-beta.5.tgz",

6
packages/nc-gui-v2/package.json

@ -15,11 +15,9 @@
"sass-loader": "^10.3.0"
},
"dependencies": {
"@nuxtjs/toast": "^3.3.1",
"nocodb-sdk": "file:../nocodb-sdk",
"nuxt3-store": "^1.0.0",
"vuetify": "^3.0.0-alpha.13",
"primevue": "3.10.0",
"primeflex": "3.2.0",
"primeicons": "5.0.0"
"vuetify": "^3.0.0-alpha.13"
}
}

41
packages/nc-gui-v2/pages/form.vue

@ -1,41 +0,0 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useToast } from 'primevue/usetoast'
const text = ref()
const toast = useToast()
const greet = () => {
toast.add({ severity: 'info', summary: `Hello ${text.value}` })
}
</script>
<template>
<div class="container">
<Card style="width:500px">
<template #title>
Signup
</template>
<template #content>
<InputText v-model="value" type="text" label="Email" />
</template>
<template #footer>
<Button label="Small" icon="pi pi-check" class="p-button-sm" />
</template>
</Card>
</div>
</template>
<style lang="scss">
.container {
margin: 0 auto;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
div {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 1rem;
}
}
</style>

4
packages/nc-gui-v2/pages/projects/create.vue

@ -6,7 +6,7 @@ const name = ref('')
const loading = ref(false)
const valid = ref(false)
const { $api } = useNuxtApp()
const { $api, $toast } = useNuxtApp()
const $router = useRouter()
const { user } = useUser()
@ -26,7 +26,7 @@ const createProject = async () => {
}
catch (e) {
// todo: toast
// this.$toast.error(await this._extractSdkResponseErrorMsg(e)).goAway(3000)
$toast.error(await this._extractSdkResponseErrorMsg(e)).goAway(3000)
}
loading.value = false
}

17
packages/nc-gui-v2/pages/sample.vue

@ -1,17 +0,0 @@
<script>
export default {
name: 'Dashboard',
}
</script>
<template>
<div>
<Sidebar :visible="true" position="left" :dismissable="false">
Content
</Sidebar>
</div>
</template>
<style scoped>
</style>
Loading…
Cancel
Save