prettier warnings fixed
parent
f060c3a940
commit
ee8e35aabd
|
@ -2,8 +2,10 @@
|
||||||
build
|
build
|
||||||
coverage
|
coverage
|
||||||
dist
|
dist
|
||||||
out
|
|
||||||
public
|
public
|
||||||
styles
|
styles
|
||||||
node_modules
|
node_modules
|
||||||
.vscode
|
.vscode
|
||||||
|
dist
|
||||||
|
.nuxt
|
||||||
|
.output
|
|
@ -17,6 +17,7 @@ const fileModules = {},
|
||||||
veturAttributes = {};
|
veturAttributes = {};
|
||||||
|
|
||||||
const files = fs.readdirSync(componentPath);
|
const files = fs.readdirSync(componentPath);
|
||||||
|
|
||||||
files.forEach((file) => {
|
files.forEach((file) => {
|
||||||
const { name } = path.parse(file);
|
const { name } = path.parse(file);
|
||||||
|
|
||||||
|
@ -123,11 +124,13 @@ const createWebTypes = (component) => {
|
||||||
|
|
||||||
const createVeturTags = (component) => {
|
const createVeturTags = (component) => {
|
||||||
const attributes = [];
|
const attributes = [];
|
||||||
|
|
||||||
if (component.props) {
|
if (component.props) {
|
||||||
component.props.forEach((comp) => {
|
component.props.forEach((comp) => {
|
||||||
attributes.push(comp.name);
|
attributes.push(comp.name);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attributes.length > 0) {
|
if (attributes.length > 0) {
|
||||||
veturTags[component.name] = {
|
veturTags[component.name] = {
|
||||||
description: component.description,
|
description: component.description,
|
||||||
|
@ -154,10 +157,13 @@ Object.keys(fileModules).forEach((p) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const webTypesJson = JSON.stringify(webTypes, null, 2);
|
const webTypesJson = JSON.stringify(webTypes, null, 2);
|
||||||
|
|
||||||
fs.writeFileSync(path.resolve(distDir, 'web-types.json'), webTypesJson);
|
fs.writeFileSync(path.resolve(distDir, 'web-types.json'), webTypesJson);
|
||||||
|
|
||||||
const veturTagsJson = JSON.stringify(veturTags, null, 2);
|
const veturTagsJson = JSON.stringify(veturTags, null, 2);
|
||||||
|
|
||||||
fs.writeFileSync(path.resolve(distDir, 'vetur-tags.json'), veturTagsJson);
|
fs.writeFileSync(path.resolve(distDir, 'vetur-tags.json'), veturTagsJson);
|
||||||
|
|
||||||
const veturAttributesJson = JSON.stringify(veturAttributes, null, 2);
|
const veturAttributesJson = JSON.stringify(veturAttributes, null, 2);
|
||||||
|
|
||||||
fs.writeFileSync(path.resolve(distDir, 'vetur-attributes.json'), veturAttributesJson);
|
fs.writeFileSync(path.resolve(distDir, 'vetur-attributes.json'), veturAttributesJson);
|
||||||
|
|
|
@ -32,15 +32,6 @@ export default {
|
||||||
sidebarActive: false
|
sidebarActive: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
if (this.isOutdatedIE()) {
|
|
||||||
this.$toast.add({
|
|
||||||
severity: 'warn',
|
|
||||||
summary: 'Limited Functionality',
|
|
||||||
detail: 'Although PrimeVue supports IE11, ThemeSwitcher in this application cannot be not fully supported by your browser. Please use a modern browser for the best experience of the showcase.'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
watch: {
|
watch: {
|
||||||
$route: {
|
$route: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
|
@ -59,6 +50,15 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.isOutdatedIE()) {
|
||||||
|
this.$toast.add({
|
||||||
|
severity: 'warn',
|
||||||
|
summary: 'Limited Functionality',
|
||||||
|
detail: 'Although PrimeVue supports IE11, ThemeSwitcher in this application cannot be not fully supported by your browser. Please use a modern browser for the best experience of the showcase.'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onMenuButtonClick() {
|
onMenuButtonClick() {
|
||||||
if (this.sidebarActive) {
|
if (this.sidebarActive) {
|
||||||
|
@ -94,6 +94,7 @@ export default {
|
||||||
},
|
},
|
||||||
isOutdatedIE() {
|
isOutdatedIE() {
|
||||||
let ua = window.navigator.userAgent;
|
let ua = window.navigator.userAgent;
|
||||||
|
|
||||||
if (ua.indexOf('MSIE ') > 0 || ua.indexOf('Trident/') > 0) {
|
if (ua.indexOf('MSIE ') > 0 || ua.indexOf('Trident/') > 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
|
const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
|
||||||
|
|
||||||
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
||||||
|
|
|
@ -12,6 +12,7 @@ const $fullCalendar = {
|
||||||
Vue.config.globalProperties.$fullCalendar = FullCalendar;
|
Vue.config.globalProperties.$fullCalendar = FullCalendar;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default defineNuxtPlugin((nuxtApp) => {
|
export default defineNuxtPlugin((nuxtApp) => {
|
||||||
nuxtApp.vueApp.use($fullCalendar);
|
nuxtApp.vueApp.use($fullCalendar);
|
||||||
});
|
});
|
||||||
|
|
|
@ -144,6 +144,7 @@ function addSFC() {
|
||||||
.forEach(({ name: folderName }) => {
|
.forEach(({ name: folderName }) => {
|
||||||
fs.readdirSync(path.resolve(__dirname, './components/' + folderName)).forEach((file) => {
|
fs.readdirSync(path.resolve(__dirname, './components/' + folderName)).forEach((file) => {
|
||||||
let name = file.split(/(.vue)$|(.js)$/)[0].toLowerCase();
|
let name = file.split(/(.vue)$|(.js)$/)[0].toLowerCase();
|
||||||
|
|
||||||
if (/\.vue$/.test(file) && name === folderName) {
|
if (/\.vue$/.test(file) && name === folderName) {
|
||||||
addEntry(folderName, file, name);
|
addEntry(folderName, file, name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ export default class CustomerService {
|
||||||
.map((k) => encodeURIComponent(k) + '=' + encodeURIComponent(params[k]))
|
.map((k) => encodeURIComponent(k) + '=' + encodeURIComponent(params[k]))
|
||||||
.join('&')
|
.join('&')
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
return fetch('https://www.primefaces.org/data/customers?' + queryParams).then((res) => res.json());
|
return fetch('https://www.primefaces.org/data/customers?' + queryParams).then((res) => res.json());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue