Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
TemplateProjects
FullstackTemplate-Formkit-Tailwind
Commits
389a98c2
Commit
389a98c2
authored
1 year ago
by
Somnath Ghorpade
Browse files
Options
Downloads
Patches
Plain Diff
Added prime vue support in formkit project.
parent
e0d7b84c
Branches
primevue_development
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
app/package.json
+1
-0
app/package.json
app/src/main.js
+5
-0
app/src/main.js
app/src/router.js
+6
-0
app/src/router.js
app/src/views/Home.vue
+9
-0
app/src/views/Home.vue
app/src/views/PrimeVueTable.vue
+61
-0
app/src/views/PrimeVueTable.vue
with
82 additions
and
0 deletions
app/package.json
+
1
−
0
View file @
389a98c2
...
...
@@ -22,6 +22,7 @@
"material-design-icons"
:
"^3.0.1"
,
"pinia"
:
"^2.1.3"
,
"pinia-plugin-persistedstate"
:
"^3.1.0"
,
"primevue"
:
"^3.31.0"
,
"readline-sync"
:
"^1.4.10"
,
"register-service-worker"
:
"^1.6.2"
,
"sass"
:
"^1.54.4"
,
...
...
This diff is collapsed.
Click to expand it.
app/src/main.js
+
5
−
0
View file @
389a98c2
...
...
@@ -16,7 +16,10 @@ import VueClipboard from 'vue3-clipboard'
const
piniaStore
=
createPinia
()
const
isProduction
=
process
.
env
.
NODE_ENV
===
'
production
'
piniaStore
.
use
(
piniaPluginPersistedstate
)
import
primeVue
from
'
primevue/config
'
import
'
../node_modules/primevue/resources/themes/lara-light-blue/theme.css
'
import
'
../node_modules/primevue/resources/primevue.min.css
'
var
vm
=
createApp
({
render
:
()
=>
h
(
App
),
})
...
...
@@ -24,6 +27,8 @@ window.app = vm
vm
.
use
(
piniaStore
)
vm
.
$router
=
router
vm
.
use
(
i18n
)
vm
.
use
(
primeVue
)
vm
.
use
(
router
)
vm
.
use
(
plugin
,
defaultConfig
(
formKitConfig
))
vm
.
use
(
defaultConfig
)
...
...
This diff is collapsed.
Click to expand it.
app/src/router.js
+
6
−
0
View file @
389a98c2
...
...
@@ -59,6 +59,12 @@ export default createRouter({
component
:
loadView
(
"
Home
"
),
meta
:
{
title
:
"
Home
"
,
lang
:
"
en
"
,
icon
:
"
mdi mdi-home-outline
"
},
},
{
path
:
"
/primeVueComponent
"
,
name
:
"
PrimeVueTable
"
,
component
:
loadView
(
"
PrimeVueTable
"
),
meta
:
{
title
:
"
PrimeVueTable
"
,
lang
:
"
en
"
,
icon
:
"
mdi mdi-home-outline
"
},
},
{
path
:
"
/formkitcomposition
"
,
name
:
"
FormKitComposition
"
,
...
...
This diff is collapsed.
Click to expand it.
app/src/views/Home.vue
+
9
−
0
View file @
389a98c2
...
...
@@ -7,6 +7,15 @@
LIST OF CORE FUNCTIONALITIES
</p>
<div
class=
"grid grid-cols-3 gap-4"
>
<div
class=
"card flex flex-row items-center justify-between"
@
click=
"$router.push(
{name: 'PrimeVueTable'})">
<div
class=
"flex flex-row items-center"
>
<i
class=
"isax isax-bold-stickynote me-2"
></i>
<div
class=
"card-title"
>
Prime Vue Table
</div>
</div>
<i
class=
"isax isax-bold-arrow-right"
></i>
</div>
<div
class=
"card flex flex-row items-center justify-between"
@
click=
"$router.push(
{name: 'TOTP'})">
<div
class=
"flex flex-row items-center"
>
<i
class=
"isax isax-bold-timer me-2"
></i>
...
...
This diff is collapsed.
Click to expand it.
app/src/views/PrimeVueTable.vue
0 → 100644
+
61
−
0
View file @
389a98c2
<
template
>
<div
id=
"mTable"
class=
"container-fluid"
>
<div
class=
"row justify-content-center"
>
<div
class=
"col-4"
>
<div
class=
"box-login"
>
<div
class=
"p-card p-component"
>
<h3
class=
"mb-4"
>
{{
msg
}}
</h3>
<DataTable
:id=
"idTable"
:value=
"itemList"
responsiveLayout=
"scroll"
>
<Column
field=
"id"
header=
"id"
></Column>
<Column
field=
"age"
header=
"age"
></Column>
</DataTable>
</div>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
MQL
from
"
@/plugins/mql.js
"
import
DataTable
from
"
primevue/datatable
"
import
Column
from
"
primevue/column
"
export
default
{
name
:
"
MTable
"
,
data
()
{
return
{
itemList
:
[],
}
},
components
:
{
DataTable
,
Column
,
},
mounted
()
{
this
.
getActivityData
()
},
methods
:
{
// call for activity specific mql
getActivityData
()
{
new
MQL
()
.
setActivity
(
"
o.[query_1el1NAwh6nMeZl1PhbzhP1TyQLf]
"
)
.
setData
({})
.
fetch
(
""
)
.
then
((
rs
)
=>
{
let
res
=
rs
.
getActivity
(
"
query_1el1NAwh6nMeZl1PhbzhP1TyQLf
"
,
true
)
if
(
rs
.
isValid
(
"
query_1el1NAwh6nMeZl1PhbzhP1TyQLf
"
))
{
// Write some intelligent logic here
console
.
log
(
"
Data Received:
"
,
res
)
console
.
log
(
res
)
this
.
itemList
=
res
}
else
{
rs
.
showErrorToast
(
"
query_1el1NAwh6nMeZl1PhbzhP1TyQLf
"
)
}
})
},
},
}
</
script
>
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets