0.0.42 • Published 3 years ago
mv-template-page v0.0.42
MV Template Page
Installation
yarn add mv-template-page
or
npm i mv-template-page
Example
<template>
<mv-template
:title="title"
:dashboard-ids="dashboardIds"
:token="configToken"
:is-dark="isDark"
:filters.sync="filters"
:update-filters.sync="updateFilters"
:code="code"
/>
</template>
<script>
import MvTemplate from 'mv-template-page'
export default {
components: {
MvTemplate,
},
data() {
return {
title: 'Dev Test Page',
configToken: `Bearer ${localStorage.getItem('accessToken')}`,
isDark: false,
dashboardIds: [
{
title: 'Summary',
id: '60dad4302722b900132f807e',
},
{
title: 'Analytics',
id: '60ebc0914a0a130012db902b',
},
],
filters: [
{
name: 'Filter-1',
operator: '=',
property: 'group_exams_gender',
propertyType: 'string',
value: 'male',
widgets: ['60c18c69c65520001422e662'],
_id: '60c61f3a471c96001211a619',
},
],
updateFilters: [
{
name: 'Filter-1',
value: 'male',
operator: '=',
},
],
code: 'PAGE-1',
}
},
}
</script>
Add New Page
- Create new folder under 'components' folder using this format 'page-code'
- Create 'MainComponent.vue' into component folder that you have already created. If you want to create other component for your new page, make sure it registered in this 'MainComponent.vue'
- 'MainComponent.vue' must have this props:
- title
- token
- dashboardIds
- isDark
- filters
- updateFilters
- Import your 'MainComponent.vue' into 'MVTemplate.vue' and create new code for your new component
Register your new code in MES swagger (temporary) : https://mes.machinevision.global:4600/mes/api/menu
0.0.42
3 years ago
0.0.40
3 years ago
0.0.41
3 years ago
0.0.39
3 years ago
0.0.38
3 years ago
0.0.37
3 years ago
0.0.35
3 years ago
0.0.36
3 years ago
0.0.32
3 years ago
0.0.33
3 years ago
0.0.34
3 years ago
0.0.20
3 years ago
0.0.21
3 years ago
0.0.22
3 years ago
0.0.24
3 years ago
0.0.25
3 years ago
0.0.15
3 years ago
0.0.16
3 years ago
0.0.17
3 years ago
0.0.18
3 years ago
0.0.30
3 years ago
0.0.31
3 years ago
0.0.26
3 years ago
0.0.27
3 years ago
0.0.28
3 years ago
0.0.29
3 years ago
0.0.14
3 years ago
0.0.13
3 years ago
0.0.12
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago