0.0.42 • Published 5 years ago
mv-template-page v0.0.42
MV Template Page
Installation
yarn add mv-template-page
or
npm i mv-template-pageExample
<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
5 years ago
0.0.40
5 years ago
0.0.41
5 years ago
0.0.39
5 years ago
0.0.38
5 years ago
0.0.37
5 years ago
0.0.35
5 years ago
0.0.36
5 years ago
0.0.32
5 years ago
0.0.33
5 years ago
0.0.34
5 years ago
0.0.20
5 years ago
0.0.21
5 years ago
0.0.22
5 years ago
0.0.24
5 years ago
0.0.25
5 years ago
0.0.15
5 years ago
0.0.16
5 years ago
0.0.17
5 years ago
0.0.18
5 years ago
0.0.30
5 years ago
0.0.31
5 years ago
0.0.26
5 years ago
0.0.27
5 years ago
0.0.28
5 years ago
0.0.29
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago