This library exports:
export { default as SegmentManagerModal } from '@/components/segmentManagerModal/SegmentManagerModal.vue'; export { default as CustomSegments } from '@/components/segmentManager/CustomSegments.vue'; export { default as StandardSegments } from '@/components/segmentManager/StandardSegments.vue'; export { useSegmentManagerStore } from '@/store/segmentManagerStore'; export { useCustomSegmentStore } from '@/store/customSegments/customSegmentStore';
If you experience update problems do not just pass the props but import the stores from this package and set the required values (which are the same as the props below)
When using the below components you will need to use the following props: For Standard segments: const props = defineProps({ baseUrl: { default: 'http://localhost:5000', type: String, required: true, }, tenantId: { default: '', type: String, required: true, }, brandId: { default: 1, type: Number, required: true, }, token: { default: '', type: String, required: true, }, });
For Custom Segments:
const props = defineProps({ segment: Object, customSegmentUrl: { default: 'http://localhost:5000', type: String, required: true, }, tenantId: { default: '', type: String, required: true, }, brandId: { default: 1, type: Number, required: true, }, token: { default: '', type: String, required: true, }, });
When using the whole modal component:
const props = defineProps({
baseUrl: {
default: 'http://localhost:5000',
type: String,
required: true,
},
customSegmentUrl: {
default: 'http://localhost:5000',
type: String,
required: true,
},
token: {
default: '',
type: String,
required: true,
},
tenantId: {
default: '',
type: String,
required: true,
},
brandId: {
default: 1,
type: Number,
required: true,
},
profile: {
required: true,
type: Object,
},
});
VSCode + Volar (and disable Vetur)
See Vite Configuration Reference.
npm installnpm run devnpm run buildRun Unit Tests and create coverage report with Vitest
npm run test:unitCompile and Hot-Reload documentation site for Development VuePress
npm run docs:devnpm run docs:build