Client only added some pages for build issues

pull/3420/head
Bahadir Sofuoglu 2022-09-13 19:41:47 +03:00
parent 1c71b5d1e9
commit 5b66ed1093
4 changed files with 23 additions and 19 deletions

View File

@ -1,4 +1,5 @@
<template> <template>
<ClientOnly>
<div> <div>
<div class="content-section introduction"> <div class="content-section introduction">
<div class="feature-intro"> <div class="feature-intro">
@ -32,11 +33,10 @@
</DataTable> </DataTable>
</div> </div>
</div> </div>
<ClientOnly>
<AppDoc name="DataTablePaginatorDemo" :sources="sources" :service="['CustomerService']" :data="['customers-large']" github="datatable/DataTablePaginatorDemo.vue" /> <AppDoc name="DataTablePaginatorDemo" :sources="sources" :service="['CustomerService']" :data="['customers-large']" github="datatable/DataTablePaginatorDemo.vue" />
</ClientOnly>
</div> </div>
</ClientOnly>
</template> </template>
<script> <script>

View File

@ -1,7 +1,9 @@
<template> <template>
<div>
<span v-if="showEditor" class="flex justify-content-end"> <span v-if="showEditor" class="flex justify-content-end">
<SplitButton :model="items" label="Edit in CodeSandbox" class="liveEditorSplitButton" @click="openDefaultCSB" v-show="false" /> <SplitButton :model="items" label="Edit in CodeSandbox" class="liveEditorSplitButton" @click="openDefaultCSB" v-show="false" />
</span> </span>
</div>
</template> </template>
<script> <script>
@ -109,7 +111,7 @@ export default {
let extIndexCSS = extFiles['index.css'] || ''; let extIndexCSS = extFiles['index.css'] || '';
delete extFiles['index.css']; delete extFiles['index.css'];
const dependencies = packageJson ? packageJson.devDependencies : {}; const dependencies = packageJson ? packageJson.devDependencies : {};
let defaultCss = { let defaultCss = {

View File

@ -3,7 +3,7 @@ const services = {
export default class CountryService { export default class CountryService {
getCountries() { getCountries() {
return fetch('demo/data/countries.json').then(res => res.json()) return useFetch('demo/data/countries.json').then(res => res.json())
.then(d => d.data); .then(d => d.data);
} }
} }
@ -12,28 +12,28 @@ export default class CountryService {
export default class CustomerService { export default class CustomerService {
getCustomersSmall() { getCustomersSmall() {
return fetch('demo/data/customers-small.json').then(res => res.json()) return useFetch('demo/data/customers-small.json').then(res => res.json())
.then(d => d.data); .then(d => d.data);
} }
getCustomersMedium() { getCustomersMedium() {
return fetch('demo/data/customers-medium.json').then(res => res.json()) return useFetch('demo/data/customers-medium.json').then(res => res.json())
.then(d => d.data); .then(d => d.data);
} }
getCustomersLarge() { getCustomersLarge() {
return fetch('demo/data/customers-large.json').then(res => res.json()) return useFetch('demo/data/customers-large.json').then(res => res.json())
.then(d => d.data); .then(d => d.data);
} }
getCustomersXLarge() { getCustomersXLarge() {
return fetch('demo/data/customers-xlarge.json').then(res => res.json()) return useFetch('demo/data/customers-xlarge.json').then(res => res.json())
.then(d => d.data); .then(d => d.data);
} }
getCustomers(params) { getCustomers(params) {
const queryParams = params ? Object.keys(params).map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k])).join('&') : ''; const queryParams = params ? Object.keys(params).map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k])).join('&') : '';
return fetch('https://www.primefaces.org/data/customers?' + queryParams).then(res => res.json()) return useFetch('https://www.primefaces.org/data/customers?' + queryParams).then(res => res.json())
} }
} }
`, `,
@ -41,7 +41,7 @@ export default class CustomerService {
export default class EventService { export default class EventService {
getEvents() { getEvents() {
return fetch('demo/data/events.json').then(res => res.json()) return useFetch('demo/data/events.json').then(res => res.json())
.then(d => d.data); .then(d => d.data);
} }
} }
@ -50,12 +50,12 @@ export default class EventService {
export default class NodeService { export default class NodeService {
getTreeTableNodes() { getTreeTableNodes() {
return fetch('demo/data/treetablenodes.json').then(res => res.json()) return useFetch('demo/data/treetablenodes.json').then(res => res.json())
.then(d => d.root); .then(d => d.root);
} }
getTreeNodes() { getTreeNodes() {
return fetch('demo/data/treenodes.json').then(res => res.json()) return useFetch('demo/data/treenodes.json').then(res => res.json())
.then(d => d.root); .then(d => d.root);
} }
} }
@ -64,7 +64,7 @@ export default class NodeService {
export default class PhotoService { export default class PhotoService {
getImages() { getImages() {
return fetch('demo/data/photos.json').then(res => res.json()) return useFetch('demo/data/photos.json').then(res => res.json())
.then(d => d.data); .then(d => d.data);
} }
} }
@ -73,15 +73,15 @@ export default class PhotoService {
export default class ProductService { export default class ProductService {
getProductsSmall() { getProductsSmall() {
return fetch('demo/data/products-small.json').then(res => res.json()).then(d => d.data); return useFetch('demo/data/products-small.json').then(res => res.json()).then(d => d.data);
} }
getProducts() { getProducts() {
return fetch('demo/data/products.json').then(res => res.json()).then(d => d.data); return useFetch('demo/data/products.json').then(res => res.json()).then(d => d.data);
} }
getProductsWithOrdersSmall() { getProductsWithOrdersSmall() {
return fetch('demo/data/products-orders-small.json').then(res => res.json()).then(d => d.data); return useFetch('demo/data/products-orders-small.json').then(res => res.json()).then(d => d.data);
} }
} }

View File

@ -1,4 +1,5 @@
<template> <template>
<ClientOnly>
<div> <div>
<div class="content-section introduction"> <div class="content-section introduction">
<div class="feature-intro"> <div class="feature-intro">
@ -92,7 +93,7 @@
</div> </div>
</div> </div>
<ClientOnly>
<AppDoc <AppDoc
name="VuelidateFormDemo" name="VuelidateFormDemo"
:sources="sources" :sources="sources"
@ -101,8 +102,9 @@
github="validation/VuelidateFormDemo.vue" github="validation/VuelidateFormDemo.vue"
:dependencies="{ '@vuelidate/core': '^2.0.0-alpha.14', '@vuelidate/validators': '^2.0.0-alpha.12' }" :dependencies="{ '@vuelidate/core': '^2.0.0-alpha.14', '@vuelidate/validators': '^2.0.0-alpha.12' }"
/> />
</ClientOnly>
</div> </div>
</ClientOnly>
</template> </template>
<script> <script>