From 319f976d2b654b677eb700618d3bfbfe71eff5e7 Mon Sep 17 00:00:00 2001 From: Atakan Date: Sat, 8 Nov 2025 17:37:47 +0300 Subject: [PATCH] add blocks --- src/components/BlockViewer.vue | 156 +++++ src/layout/AppMenu.vue | 17 + src/router/index.js | 8 + src/views/utilities/Blocks.vue | 1080 ++++++++++++++++++++++++++++++++ 4 files changed, 1261 insertions(+) create mode 100644 src/components/BlockViewer.vue create mode 100644 src/views/utilities/Blocks.vue diff --git a/src/components/BlockViewer.vue b/src/components/BlockViewer.vue new file mode 100644 index 0000000..e610ed3 --- /dev/null +++ b/src/components/BlockViewer.vue @@ -0,0 +1,156 @@ + + + + + diff --git a/src/layout/AppMenu.vue b/src/layout/AppMenu.vue index 364fc1c..b6ebc5e 100644 --- a/src/layout/AppMenu.vue +++ b/src/layout/AppMenu.vue @@ -28,6 +28,23 @@ const model = ref([ { label: 'Misc', icon: 'pi pi-fw pi-circle', to: '/uikit/misc' } ] }, + { + label: 'Prime Blocks', + icon: 'pi pi-fw pi-prime', + items: [ + { + label: 'Free Blocks', + icon: 'pi pi-fw pi-eye', + to: '/blocks' + }, + { + label: 'All Blocks', + icon: 'pi pi-fw pi-globe', + url: 'https://blocks.primevue.org/', + target: '_blank' + } + ] + }, { label: 'Pages', icon: 'pi pi-fw pi-briefcase', diff --git a/src/router/index.js b/src/router/index.js index d3fdabd..0da389d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -89,6 +89,14 @@ const router = createRouter({ name: 'timeline', component: () => import('@/views/uikit/TimelineDoc.vue') }, + { + path: '/blocks', + name: 'blocks', + meta: { + breadcrumb: ['Prime Blocks', 'Free Blocks'] + }, + component: () => import('@/views/utilities/Blocks.vue') + }, { path: '/pages/empty', name: 'empty', diff --git a/src/views/utilities/Blocks.vue b/src/views/utilities/Blocks.vue new file mode 100644 index 0000000..10a6df7 --- /dev/null +++ b/src/views/utilities/Blocks.vue @@ -0,0 +1,1080 @@ + + +