Skip to content

Commit 00bc7a6

Browse files
author
‘angeynik’
committed
Доработана конфигурация сборки отдельно для local и server
1 parent 48aa847 commit 00bc7a6

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

vue-app/example.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ VUE_APP_LOG_LEVEL='dev' // 'prod', 'dev', 'info', 'error'
77
VUE_APP_LIM_SCHEDULE_ITEM=10
88
VUE_APP_LIM_NOTIFICATION_ITEM=6
99
VUE_APP_LIM_STATISTIC_ITEM=1
10+
11+
# Доступные разделы приложения (true/false)
12+
VUE_APP_FEATURE_DASHBOARD=true
13+
VUE_APP_FEATURE_CONFIGURATION=true
14+
VUE_APP_FEATURE_ABOUT=true

vue-app/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",
7+
"serve:local": "vue-cli-service serve --mode local",
78
"build": "vue-cli-service build",
9+
"build:local": "vue-cli-service build --mode local",
810
"lint": "vue-cli-service lint",
911
"test:unit": "jest",
1012
"test:unit:watch": "jest --watch",

vue-app/src/ConFiguration.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- ConFiguration.vue — Раздел настроек системы -->
2+
<template>
3+
<div class="app">
4+
<!-- Здесь будет header аналогичный DashBoard, добавить по аналогии -->
5+
<div class="configuration-placeholder">
6+
<h2>Configuration</h2>
7+
<p>Раздел в разработке</p>
8+
</div>
9+
</div>
10+
</template>
11+
12+
<script>
13+
import logger from '@/store/modules/logger.js';
14+
15+
export default {
16+
name: 'Configuration',
17+
18+
mounted() {
19+
logger.info('[Configuration] - mounted - Раздел Configuration загружен');
20+
},
21+
};
22+
</script>
23+
24+
<style lang="css" src="@/assets/mainStyle.css"></style>

0 commit comments

Comments
 (0)