From a34e9e285b9c87e9a107ef3aa61e7a2c75c92b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 26 Jun 2023 10:35:00 +0300 Subject: [PATCH] Revert "global pt doc" This reverts commit fb157c4fde0df4f7ddd779fcfbab509500378127. --- doc/passthrough/BasicDoc.vue | 73 --------------- doc/passthrough/GlobalPTDoc.vue | 34 ------- pages/passthrough/index.vue | 33 ------- plugins/primeVue.js | 160 +------------------------------- 4 files changed, 1 insertion(+), 299 deletions(-) delete mode 100644 doc/passthrough/BasicDoc.vue delete mode 100644 doc/passthrough/GlobalPTDoc.vue delete mode 100644 pages/passthrough/index.vue diff --git a/doc/passthrough/BasicDoc.vue b/doc/passthrough/BasicDoc.vue deleted file mode 100644 index aaf150cd5..000000000 --- a/doc/passthrough/BasicDoc.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - diff --git a/doc/passthrough/GlobalPTDoc.vue b/doc/passthrough/GlobalPTDoc.vue deleted file mode 100644 index 3aecde834..000000000 --- a/doc/passthrough/GlobalPTDoc.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/pages/passthrough/index.vue b/pages/passthrough/index.vue deleted file mode 100644 index abbc346f8..000000000 --- a/pages/passthrough/index.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/plugins/primeVue.js b/plugins/primeVue.js index 4a6b5dba4..bf1f72d3b 100644 --- a/plugins/primeVue.js +++ b/plugins/primeVue.js @@ -107,166 +107,8 @@ import DocSectionText from '@/components/doc/DocSectionText'; import CodeHighlight from '@/components/layout/CodeHighlight'; import DevelopmentSection from '@/components/layout/DevelopmentSection'; -const pt = { - avatargroup: { - root: { - class: 'flex' - } - }, - avatar: { - root: ({ parent }) => ({ - style: parent.instance !== undefined ? 'margin-left: -1rem' : null - }) - }, - button: { - root: ({ context }) => { - // context.disabled - } - }, - checkbox: { - root: ({ context }) => { - // context.checked - // context.focused - // context.disabled - } - }, - datatable: { - root: { class: 'ddddd1' }, - columnGroup: { - root: { class: 'deneme88' } - }, - headerRow: { class: 'xxx' }, - row: { - root: ({ row }) => ({ class: row.context.index === 1 ? 'xxxx4' : 'xxxx5' }) - }, - column: { - root: { class: 'column333' } - } - }, - accordion: { - root: - // console.log(instance), - { - class: 'root' - }, - tab: { - root: { - class: 'tab-root' - }, - header: { - class: 'tab-header' - }, - headerAction: { - class: 'tab-header-action' - } - } - // header: { - // class: 'header-class' - // }, - // headerAction: ({ instance }) => { - // console.log('jwkdhuv'); - // console.log(instance); - // } - }, - // accordiontab: { - // root: { - // class: 'tab-root' - // }, - // header: { - // class: 'root-header' - // } - // }, - directives: { - ripple: { - css: { - root: { - class: 'deneme', - style: { - // display: 'block', - // position: 'absolute', - background: 'rgba(75, 175, 80, 0.9)' - // borderRadius: '100%', - // transform: 'scale(0)', - // pointerEvents: 'none' - } - } - }, - hooks: { - mounted: ($el, el, binding) => { - // console.log('mounted', $el); - }, - unmounted: (el) => { - // console.log('unmounted', el); - } - } - }, - badge: { - css: { - root: { - class: 'bg-cyan-500' - } - }, - hooks: { - mounted: ($el) => { - // console.log($el); - }, - updated: ($el) => { - // console.log($el); - } - } - }, - tooltip: { - hooks: { - beforeMount: (el, binding) => {}, - unmounted: (el) => { - // console.log('unmounted'); - }, - beforeUpdate() { - // console.log('before update'); - }, - updated: (el, options) => { - // console.log('global updated'); - } - }, - css: { - // root: { - // class: 'deneme', - // style: { - // position: 'absolute' - // } - // }, - text: { - class: 'text-2xl' - } - } - }, - focustrap: { - css: { - root: { - class: 'xxxxxx' - }, - firstFocusableElement: { - class: 'yyyyyy' - } - }, - hooks: { - mounted: ($el) => { - // console.log($el); - } - } - }, - styleclass: { - hooks: { - mounted(a, b, c, d, e) { - // console.log(e); - } - } - } - } -}; - export default defineNuxtPlugin((nuxtApp) => { - nuxtApp.vueApp.use(PrimeVue, { ripple: true, pt }); + nuxtApp.vueApp.use(PrimeVue, { ripple: true }); nuxtApp.vueApp.use(ToastService); nuxtApp.vueApp.use(ConfirmationService);