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
4 years ago
0.0.35
4 years ago
0.0.36
4 years ago
0.0.32
4 years ago
0.0.33
4 years ago
0.0.34
4 years ago
0.0.20
4 years ago
0.0.21
4 years ago
0.0.22
4 years ago
0.0.24
4 years ago
0.0.25
4 years ago
0.0.15
4 years ago
0.0.16
4 years ago
0.0.17
4 years ago
0.0.18
4 years ago
0.0.30
4 years ago
0.0.31
4 years ago
0.0.26
4 years ago
0.0.27
4 years ago
0.0.28
4 years ago
0.0.29
4 years ago
0.0.14
4 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago