@nixweb/nixloc-ui 1.10.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@nixweb/nixloc-ui/package.json +88 -88
- package/@nixweb/nixloc-ui/src/App.vue +13 -13
- package/@nixweb/nixloc-ui/src/component/forms/Button.vue +163 -163
- package/@nixweb/nixloc-ui/src/component/forms/CheckboxGroup.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/forms/CheckboxServer.vue +192 -192
- package/@nixweb/nixloc-ui/src/component/forms/CheckboxSimple.vue +60 -60
- package/@nixweb/nixloc-ui/src/component/forms/Color.vue +38 -38
- package/@nixweb/nixloc-ui/src/component/forms/DateTime.vue +170 -170
- package/@nixweb/nixloc-ui/src/component/forms/Dropdown.vue +236 -236
- package/@nixweb/nixloc-ui/src/component/forms/EditorHtml.vue +132 -132
- package/@nixweb/nixloc-ui/src/component/forms/FileUpload.vue +170 -170
- package/@nixweb/nixloc-ui/src/component/forms/InputDecimal.vue +153 -153
- package/@nixweb/nixloc-ui/src/component/forms/InputNumber.vue +160 -160
- package/@nixweb/nixloc-ui/src/component/forms/InputPassword.vue +148 -148
- package/@nixweb/nixloc-ui/src/component/forms/InputText.vue +174 -174
- package/@nixweb/nixloc-ui/src/component/forms/Modal.vue +57 -57
- package/@nixweb/nixloc-ui/src/component/forms/RadioGroup.vue +91 -91
- package/@nixweb/nixloc-ui/src/component/forms/Select.vue +378 -378
- package/@nixweb/nixloc-ui/src/component/forms/SelectStatic.vue +198 -198
- package/@nixweb/nixloc-ui/src/component/forms/Slider.vue +18 -18
- package/@nixweb/nixloc-ui/src/component/forms/TextArea.vue +138 -138
- package/@nixweb/nixloc-ui/src/component/layout/Alert.vue +88 -88
- package/@nixweb/nixloc-ui/src/component/layout/Badge.vue +111 -111
- package/@nixweb/nixloc-ui/src/component/layout/FixedBar.vue +103 -103
- package/@nixweb/nixloc-ui/src/component/layout/Header.vue +56 -56
- package/@nixweb/nixloc-ui/src/component/layout/LoadingFullPage.vue +27 -27
- package/@nixweb/nixloc-ui/src/component/layout/Menu.vue +287 -287
- package/@nixweb/nixloc-ui/src/component/layout/Molded.vue +30 -30
- package/@nixweb/nixloc-ui/src/component/layout/Panel.vue +185 -185
- package/@nixweb/nixloc-ui/src/component/layout/Popover.vue +126 -126
- package/@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue +57 -57
- package/@nixweb/nixloc-ui/src/component/layout/Wizard.vue +211 -211
- package/@nixweb/nixloc-ui/src/component/shared/Collapse.vue +131 -131
- package/@nixweb/nixloc-ui/src/component/shared/ExportPDF.vue +116 -116
- package/@nixweb/nixloc-ui/src/component/shared/HorizontalFilter.vue +64 -64
- package/@nixweb/nixloc-ui/src/component/shared/Loading.vue +107 -107
- package/@nixweb/nixloc-ui/src/component/shared/LoadingMoreButton.vue +23 -23
- package/@nixweb/nixloc-ui/src/component/shared/Messages.vue +109 -109
- package/@nixweb/nixloc-ui/src/component/shared/PDFViewer.vue +24 -24
- package/@nixweb/nixloc-ui/src/component/shared/Pagination.vue +108 -108
- package/@nixweb/nixloc-ui/src/component/shared/ProgressBar.vue +25 -25
- package/@nixweb/nixloc-ui/src/component/shared/QueryButton.vue +66 -66
- package/@nixweb/nixloc-ui/src/component/shared/Search.vue +174 -174
- package/@nixweb/nixloc-ui/src/component/shared/Table.vue +174 -174
- package/@nixweb/nixloc-ui/src/component/shared/TableButton.vue +36 -36
- package/@nixweb/nixloc-ui/src/component/shared/TableTotalization.vue +47 -47
- package/@nixweb/nixloc-ui/src/component/shared/Tip.vue +42 -42
- package/@nixweb/nixloc-ui/src/component/shared/Toast.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/shared/VerticalFilter.vue +97 -97
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/AddRule.vue +203 -203
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/DynamicComponentList.vue +70 -70
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/QueryBuilder.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/utilities.js +21 -21
- package/@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue +429 -429
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateConfiguration.vue +64 -64
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithTable.vue +62 -62
- package/@nixweb/nixloc-ui/src/config/axios.js +9 -9
- package/@nixweb/nixloc-ui/src/config/dicas.js +14 -14
- package/@nixweb/nixloc-ui/src/config/router.js +13 -13
- package/@nixweb/nixloc-ui/src/config/token.js +14 -14
- package/@nixweb/nixloc-ui/src/main.js +23 -23
- package/@nixweb/nixloc-ui/src/store/modules/generic.js +815 -815
- package/@nixweb/nixloc-ui/src/store/modules/validation.js +38 -38
- package/@nixweb/nixloc-ui/src/store/store.js +13 -13
- package/package.json +1 -1
- package/src/component/forms/InputDecimal.vue +18 -5
- package/src/component/training/CourseView.vue +16 -7
- package/src/component/value-objects/Address.vue +35 -19
- package/src/store/modules/generic.js +0 -1
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div>
|
|
4
|
-
<slot name="content-buttons"></slot>
|
|
5
|
-
<br v-if="templateList.dragAndDrop" />
|
|
6
|
-
<div v-if="showSearch">
|
|
7
|
-
<Search />
|
|
8
|
-
<br />
|
|
9
|
-
</div>
|
|
10
|
-
<ListViewWithDataHandler
|
|
11
|
-
:templateList="templateList"
|
|
12
|
-
:propsParam="propsParam"
|
|
13
|
-
:showMolded="false"
|
|
14
|
-
:showHorizontalFilter="showHorizontalFilter"
|
|
15
|
-
:buttonRemove="buttonRemove"
|
|
16
|
-
>
|
|
17
|
-
<div slot="content-buttons-table-header">
|
|
18
|
-
<slot name="content-buttons-table-header"></slot>
|
|
19
|
-
</div>
|
|
20
|
-
<div slot="content-filter-horizontal">
|
|
21
|
-
<slot name="content-filter-horizontal"></slot>
|
|
22
|
-
</div>
|
|
23
|
-
<div slot="content-buttons-table">
|
|
24
|
-
<slot name="content-buttons-table"></slot>
|
|
25
|
-
</div>
|
|
26
|
-
</ListViewWithDataHandler>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script>
|
|
32
|
-
import Search from "../shared/Search.vue";
|
|
33
|
-
|
|
34
|
-
import ListViewWithDataHandler from "@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue";
|
|
35
|
-
|
|
36
|
-
import { mapGetters, mapMutations } from "vuex";
|
|
37
|
-
|
|
38
|
-
export default {
|
|
39
|
-
name: "ViewTemplateConfiguration",
|
|
40
|
-
components: { Search, ListViewWithDataHandler },
|
|
41
|
-
props: {
|
|
42
|
-
templateList: Object,
|
|
43
|
-
propsParam: Object,
|
|
44
|
-
showSearch: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: true,
|
|
47
|
-
},
|
|
48
|
-
showHorizontalFilter: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: true,
|
|
51
|
-
},
|
|
52
|
-
buttonRemove: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: true,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
created() {
|
|
58
|
-
this.addLoading("loadingLine");
|
|
59
|
-
},
|
|
60
|
-
methods: {
|
|
61
|
-
...mapMutations("generic", ["addLoading"]),
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div>
|
|
4
|
+
<slot name="content-buttons"></slot>
|
|
5
|
+
<br v-if="templateList.dragAndDrop" />
|
|
6
|
+
<div v-if="showSearch">
|
|
7
|
+
<Search />
|
|
8
|
+
<br />
|
|
9
|
+
</div>
|
|
10
|
+
<ListViewWithDataHandler
|
|
11
|
+
:templateList="templateList"
|
|
12
|
+
:propsParam="propsParam"
|
|
13
|
+
:showMolded="false"
|
|
14
|
+
:showHorizontalFilter="showHorizontalFilter"
|
|
15
|
+
:buttonRemove="buttonRemove"
|
|
16
|
+
>
|
|
17
|
+
<div slot="content-buttons-table-header">
|
|
18
|
+
<slot name="content-buttons-table-header"></slot>
|
|
19
|
+
</div>
|
|
20
|
+
<div slot="content-filter-horizontal">
|
|
21
|
+
<slot name="content-filter-horizontal"></slot>
|
|
22
|
+
</div>
|
|
23
|
+
<div slot="content-buttons-table">
|
|
24
|
+
<slot name="content-buttons-table"></slot>
|
|
25
|
+
</div>
|
|
26
|
+
</ListViewWithDataHandler>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
import Search from "../shared/Search.vue";
|
|
33
|
+
|
|
34
|
+
import ListViewWithDataHandler from "@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue";
|
|
35
|
+
|
|
36
|
+
import { mapGetters, mapMutations } from "vuex";
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
name: "ViewTemplateConfiguration",
|
|
40
|
+
components: { Search, ListViewWithDataHandler },
|
|
41
|
+
props: {
|
|
42
|
+
templateList: Object,
|
|
43
|
+
propsParam: Object,
|
|
44
|
+
showSearch: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true,
|
|
47
|
+
},
|
|
48
|
+
showHorizontalFilter: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: true,
|
|
51
|
+
},
|
|
52
|
+
buttonRemove: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: true,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
created() {
|
|
58
|
+
this.addLoading("loadingLine");
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
...mapMutations("generic", ["addLoading"]),
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
</script>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<Panel
|
|
4
|
-
:module="panel.module"
|
|
5
|
-
:title="panel.title"
|
|
6
|
-
:showFilter="panel.showFilter"
|
|
7
|
-
:showSearch="panel.showSearch"
|
|
8
|
-
:showButtons="panel.showButtons"
|
|
9
|
-
>
|
|
10
|
-
<div slot="content-buttons">
|
|
11
|
-
<slot name="content-buttons"></slot>
|
|
12
|
-
</div>
|
|
13
|
-
<div slot="content-main">
|
|
14
|
-
<slot name="content-main"></slot>
|
|
15
|
-
</div>
|
|
16
|
-
</Panel>
|
|
17
|
-
<SaveCancel :formName="panel.formName" />
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel";
|
|
23
|
-
import SaveCancel from "@nixweb/nixloc-ui/src/component/shared/SaveCancel";
|
|
24
|
-
|
|
25
|
-
export default {
|
|
26
|
-
name: "ViewTemplateCrud",
|
|
27
|
-
components: { Panel, SaveCancel },
|
|
28
|
-
props: {
|
|
29
|
-
panel: Object,
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<Panel
|
|
4
|
+
:module="panel.module"
|
|
5
|
+
:title="panel.title"
|
|
6
|
+
:showFilter="panel.showFilter"
|
|
7
|
+
:showSearch="panel.showSearch"
|
|
8
|
+
:showButtons="panel.showButtons"
|
|
9
|
+
>
|
|
10
|
+
<div slot="content-buttons">
|
|
11
|
+
<slot name="content-buttons"></slot>
|
|
12
|
+
</div>
|
|
13
|
+
<div slot="content-main">
|
|
14
|
+
<slot name="content-main"></slot>
|
|
15
|
+
</div>
|
|
16
|
+
</Panel>
|
|
17
|
+
<SaveCancel :formName="panel.formName" />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel";
|
|
23
|
+
import SaveCancel from "@nixweb/nixloc-ui/src/component/shared/SaveCancel";
|
|
24
|
+
|
|
25
|
+
export default {
|
|
26
|
+
name: "ViewTemplateCrud",
|
|
27
|
+
components: { Panel, SaveCancel },
|
|
28
|
+
props: {
|
|
29
|
+
panel: Object,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
</script>
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<Panel :module="panel.module" :title="panel.title" :showVerticalFilter="panel.showVerticalFilter"
|
|
4
|
-
:showSearch="panel.showSearch" :showButtons="panel.showButtons">
|
|
5
|
-
<div slot="content-filter-vertical">
|
|
6
|
-
<slot name="content-filter-vertical"></slot>
|
|
7
|
-
</div>
|
|
8
|
-
<div slot="content-buttons">
|
|
9
|
-
<slot name="content-buttons"></slot>
|
|
10
|
-
</div>
|
|
11
|
-
<div slot="content-main">
|
|
12
|
-
<slot name="content-between-search-table"></slot>
|
|
13
|
-
<FilterQuery v-if="filters.length > 0" :filters="filters" v-model="stringFilter" />
|
|
14
|
-
<Molded>
|
|
15
|
-
<ListViewWithDataHandler :templateList="templateList"
|
|
16
|
-
:propsParam="{ ...propsParam, stringFilter: JSON.stringify(stringFilter) }" :isFilterStorage="true"
|
|
17
|
-
:buttonRemove="buttonRemove">
|
|
18
|
-
<div slot="content-buttons-table-header">
|
|
19
|
-
<slot name="content-buttons-table-header"></slot>
|
|
20
|
-
</div>
|
|
21
|
-
<div slot="content-filter-horizontal">
|
|
22
|
-
<slot name="content-filter-horizontal"></slot>
|
|
23
|
-
</div>
|
|
24
|
-
<div slot="content-buttons-table">
|
|
25
|
-
<slot name="content-buttons-table"></slot>
|
|
26
|
-
</div>
|
|
27
|
-
</ListViewWithDataHandler>
|
|
28
|
-
</Molded>
|
|
29
|
-
</div>
|
|
30
|
-
</Panel>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel.vue";
|
|
36
|
-
import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded";
|
|
37
|
-
import ListViewWithDataHandler from "@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue";
|
|
38
|
-
import FilterQuery from '@nixweb/nixloc-ui/src/component/shared/filter-builder/FilterQuery.vue'
|
|
39
|
-
|
|
40
|
-
export default {
|
|
41
|
-
name: "TemplateView",
|
|
42
|
-
components: { Panel, Molded, ListViewWithDataHandler, FilterQuery },
|
|
43
|
-
props: {
|
|
44
|
-
panel: Object,
|
|
45
|
-
templateList: Object,
|
|
46
|
-
propsParam: Object,
|
|
47
|
-
filters: {
|
|
48
|
-
type: Array,
|
|
49
|
-
default: [],
|
|
50
|
-
},
|
|
51
|
-
buttonRemove: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: true,
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
data() {
|
|
57
|
-
return {
|
|
58
|
-
stringFilter: [],
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<Panel :module="panel.module" :title="panel.title" :showVerticalFilter="panel.showVerticalFilter"
|
|
4
|
+
:showSearch="panel.showSearch" :showButtons="panel.showButtons">
|
|
5
|
+
<div slot="content-filter-vertical">
|
|
6
|
+
<slot name="content-filter-vertical"></slot>
|
|
7
|
+
</div>
|
|
8
|
+
<div slot="content-buttons">
|
|
9
|
+
<slot name="content-buttons"></slot>
|
|
10
|
+
</div>
|
|
11
|
+
<div slot="content-main">
|
|
12
|
+
<slot name="content-between-search-table"></slot>
|
|
13
|
+
<FilterQuery v-if="filters.length > 0" :filters="filters" v-model="stringFilter" />
|
|
14
|
+
<Molded>
|
|
15
|
+
<ListViewWithDataHandler :templateList="templateList"
|
|
16
|
+
:propsParam="{ ...propsParam, stringFilter: JSON.stringify(stringFilter) }" :isFilterStorage="true"
|
|
17
|
+
:buttonRemove="buttonRemove">
|
|
18
|
+
<div slot="content-buttons-table-header">
|
|
19
|
+
<slot name="content-buttons-table-header"></slot>
|
|
20
|
+
</div>
|
|
21
|
+
<div slot="content-filter-horizontal">
|
|
22
|
+
<slot name="content-filter-horizontal"></slot>
|
|
23
|
+
</div>
|
|
24
|
+
<div slot="content-buttons-table">
|
|
25
|
+
<slot name="content-buttons-table"></slot>
|
|
26
|
+
</div>
|
|
27
|
+
</ListViewWithDataHandler>
|
|
28
|
+
</Molded>
|
|
29
|
+
</div>
|
|
30
|
+
</Panel>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel.vue";
|
|
36
|
+
import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded";
|
|
37
|
+
import ListViewWithDataHandler from "@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue";
|
|
38
|
+
import FilterQuery from '@nixweb/nixloc-ui/src/component/shared/filter-builder/FilterQuery.vue'
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
name: "TemplateView",
|
|
42
|
+
components: { Panel, Molded, ListViewWithDataHandler, FilterQuery },
|
|
43
|
+
props: {
|
|
44
|
+
panel: Object,
|
|
45
|
+
templateList: Object,
|
|
46
|
+
propsParam: Object,
|
|
47
|
+
filters: {
|
|
48
|
+
type: Array,
|
|
49
|
+
default: [],
|
|
50
|
+
},
|
|
51
|
+
buttonRemove: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: true,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
data() {
|
|
57
|
+
return {
|
|
58
|
+
stringFilter: [],
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
</script>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import axios from "axios";
|
|
2
|
-
|
|
3
|
-
const BASE_URL = process.env.VUE_APP_API_URL;
|
|
4
|
-
|
|
5
|
-
const api = axios.create({
|
|
6
|
-
baseURL: BASE_URL,
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export default api;
|
|
1
|
+
import axios from "axios";
|
|
2
|
+
|
|
3
|
+
const BASE_URL = process.env.VUE_APP_API_URL;
|
|
4
|
+
|
|
5
|
+
const api = axios.create({
|
|
6
|
+
baseURL: BASE_URL,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export default api;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const dicas = [];
|
|
2
|
-
|
|
3
|
-
const manutencao = [
|
|
4
|
-
// { formName: "opcoesFaturamento", field: "unificar", title: "Unificar Cliente", description: "Ao marcar essa opção" },
|
|
5
|
-
|
|
6
|
-
];
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
manutencao.forEach(function (obj) {
|
|
10
|
-
dicas.push(obj);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
const dicas = [];
|
|
2
|
+
|
|
3
|
+
const manutencao = [
|
|
4
|
+
// { formName: "opcoesFaturamento", field: "unificar", title: "Unificar Cliente", description: "Ao marcar essa opção" },
|
|
5
|
+
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
manutencao.forEach(function (obj) {
|
|
10
|
+
dicas.push(obj);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
15
|
export default dicas;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import Router from 'vue-router'
|
|
3
|
-
|
|
4
|
-
Vue.use(Router)
|
|
5
|
-
|
|
6
|
-
const router = new Router({
|
|
7
|
-
mode: 'history',
|
|
8
|
-
routes: [
|
|
9
|
-
{ path: '/', redirect: { name: "" } },
|
|
10
|
-
|
|
11
|
-
],
|
|
12
|
-
})
|
|
13
|
-
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import Router from 'vue-router'
|
|
3
|
+
|
|
4
|
+
Vue.use(Router)
|
|
5
|
+
|
|
6
|
+
const router = new Router({
|
|
7
|
+
mode: 'history',
|
|
8
|
+
routes: [
|
|
9
|
+
{ path: '/', redirect: { name: "" } },
|
|
10
|
+
|
|
11
|
+
],
|
|
12
|
+
})
|
|
13
|
+
|
|
14
14
|
export default router
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export default class Token {
|
|
2
|
-
|
|
3
|
-
tokenHeaders() {
|
|
4
|
-
return {
|
|
5
|
-
"Content-Type": "application/json",
|
|
6
|
-
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
tokenHeadersFormData() {
|
|
10
|
-
return {
|
|
11
|
-
"Content-Type": "multipart/form-data",
|
|
12
|
-
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
13
|
-
};
|
|
14
|
-
}
|
|
1
|
+
export default class Token {
|
|
2
|
+
|
|
3
|
+
tokenHeaders() {
|
|
4
|
+
return {
|
|
5
|
+
"Content-Type": "application/json",
|
|
6
|
+
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
tokenHeadersFormData() {
|
|
10
|
+
return {
|
|
11
|
+
"Content-Type": "multipart/form-data",
|
|
12
|
+
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
15
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import App from './App.vue'
|
|
3
|
-
import router from './config/router'
|
|
4
|
-
import store from './store/store'
|
|
5
|
-
|
|
6
|
-
import BootstrapVue from 'bootstrap-vue'
|
|
7
|
-
import VueLoading from "vue-loading-template";
|
|
8
|
-
import VueTheMask from 'vue-the-mask'
|
|
9
|
-
|
|
10
|
-
import 'bootstrap/dist/css/bootstrap.css'
|
|
11
|
-
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
|
12
|
-
|
|
13
|
-
Vue.use(BootstrapVue)
|
|
14
|
-
Vue.use(VueLoading)
|
|
15
|
-
Vue.use(VueTheMask)
|
|
16
|
-
|
|
17
|
-
Vue.config.productionTip = false
|
|
18
|
-
|
|
19
|
-
new Vue({
|
|
20
|
-
router,
|
|
21
|
-
store,
|
|
22
|
-
render: h => h(App),
|
|
23
|
-
}).$mount('#app')
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App.vue'
|
|
3
|
+
import router from './config/router'
|
|
4
|
+
import store from './store/store'
|
|
5
|
+
|
|
6
|
+
import BootstrapVue from 'bootstrap-vue'
|
|
7
|
+
import VueLoading from "vue-loading-template";
|
|
8
|
+
import VueTheMask from 'vue-the-mask'
|
|
9
|
+
|
|
10
|
+
import 'bootstrap/dist/css/bootstrap.css'
|
|
11
|
+
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
|
12
|
+
|
|
13
|
+
Vue.use(BootstrapVue)
|
|
14
|
+
Vue.use(VueLoading)
|
|
15
|
+
Vue.use(VueTheMask)
|
|
16
|
+
|
|
17
|
+
Vue.config.productionTip = false
|
|
18
|
+
|
|
19
|
+
new Vue({
|
|
20
|
+
router,
|
|
21
|
+
store,
|
|
22
|
+
render: h => h(App),
|
|
23
|
+
}).$mount('#app')
|