@nixweb/nixloc-ui 0.0.292 → 0.0.294
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/package.json +1 -1
- package/src/component/layout/FixedBar.vue +5 -15
- package/src/component/layout/Molded.vue +2 -1
- package/src/component/layout/NewAccount.vue +2 -2
- package/src/component/layout/NewHeader.vue +26 -29
- package/src/component/layout/NewIconMolded.vue +19 -8
- package/src/component/layout/NewMenu.vue +192 -170
- package/src/component/layout/Panel.vue +9 -9
- package/src/component/shared/CodeEditor.vue +62 -14
- package/src/component/shared/DocumentEditor.vue +20 -70
- package/src/component/shared/DocumentPreview.vue +24 -4
- package/src/component/shared/LoadingCard.vue +65 -0
- package/src/component/shared/ProgressBar.vue +4 -1
- package/src/component/shared/Table.vue +22 -3
- package/src/component/shared/TableItem.vue +3 -1
- package/src/component/shared/ToggleTheme.vue +128 -0
- package/src/store/modules/generic.js +8 -0
package/package.json
CHANGED
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div
|
|
4
|
-
|
|
5
|
-
class="bar side-by-side"
|
|
6
|
-
:style="
|
|
7
|
-
'min-height:' + height + 'px; background-color:' + backgroundColor
|
|
8
|
-
"
|
|
9
|
-
:class="{
|
|
3
|
+
<div v-show="!isLoading('panel')" class="bar side-by-side" :style="'min-height:' + height + 'px; background-color:' + backgroundColor
|
|
4
|
+
" :class="{
|
|
10
5
|
top: position == 'top',
|
|
11
6
|
footer: position == 'footer',
|
|
12
7
|
none: position == 'none',
|
|
13
|
-
}"
|
|
14
|
-
>
|
|
8
|
+
}">
|
|
15
9
|
<div class="size">
|
|
16
10
|
<div :class="{ 'side-by-side': showButtonClose }">
|
|
17
11
|
<slot></slot>
|
|
18
12
|
</div>
|
|
19
|
-
<div
|
|
20
|
-
|
|
21
|
-
class="close-icon"
|
|
22
|
-
v-if="position == 'top' && showButtonClose"
|
|
23
|
-
@click="close"
|
|
24
|
-
>
|
|
13
|
+
<div :class="{ 'side-by-side': showButtonClose }" class="close-icon" v-if="position == 'top' && showButtonClose"
|
|
14
|
+
@click="close">
|
|
25
15
|
<i class="fa-regular fa-xmark"></i>
|
|
26
16
|
</div>
|
|
27
17
|
</div>
|
|
@@ -19,11 +19,12 @@ export default {
|
|
|
19
19
|
.molded {
|
|
20
20
|
border: 1px solid #e8eaed;
|
|
21
21
|
background-color: white;
|
|
22
|
-
border-radius:
|
|
22
|
+
border-radius: 10px !important;
|
|
23
23
|
padding: 10px;
|
|
24
24
|
padding-top: 15px;
|
|
25
25
|
padding-left: 30px;
|
|
26
26
|
padding-right: 30px;
|
|
27
27
|
padding-bottom: 10px;
|
|
28
|
+
box-shadow: 0px 10px 100px -6px rgb(0 0 0 / 5%);
|
|
28
29
|
}
|
|
29
30
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<div class="icon-logout" @click="execute">
|
|
4
|
-
<i class="fa-solid fa-right-from-bracket"></i>
|
|
4
|
+
<i class="fa-duotone fa-solid fa-right-from-bracket"></i>
|
|
5
5
|
</div>
|
|
6
6
|
<div class="profile-container" v-if="hideShow">
|
|
7
7
|
<div class="item-header text-center">
|
|
@@ -67,7 +67,7 @@ export default {
|
|
|
67
67
|
width: 40px;
|
|
68
68
|
height: 40px;
|
|
69
69
|
border-radius: 12px;
|
|
70
|
-
color: #
|
|
70
|
+
color: #F0134D;
|
|
71
71
|
font-size: 22px;
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -1,63 +1,60 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div :class="['top', { collapsed:
|
|
3
|
+
<div :class="['top', { collapsed: menuCollapsed, notCollapsed: !menuCollapsed }]">
|
|
4
4
|
<div class="side-by-side top-space">
|
|
5
5
|
<slot></slot>
|
|
6
6
|
</div>
|
|
7
|
+
<div class="side-by-side div-theme">
|
|
8
|
+
<ToggleTheme />
|
|
9
|
+
</div>
|
|
7
10
|
</div>
|
|
8
|
-
<br />
|
|
9
11
|
</div>
|
|
10
12
|
</template>
|
|
11
13
|
|
|
12
14
|
<script>
|
|
13
15
|
|
|
14
|
-
import
|
|
16
|
+
import ToggleTheme from "@nixweb/nixloc-ui/src/component/shared/ToggleTheme.vue";
|
|
17
|
+
|
|
18
|
+
import { mapState } from "vuex";
|
|
15
19
|
|
|
16
20
|
export default {
|
|
17
21
|
name: "Top",
|
|
22
|
+
components: {
|
|
23
|
+
ToggleTheme
|
|
24
|
+
},
|
|
18
25
|
props: {
|
|
19
26
|
backgroundColor: {
|
|
20
27
|
type: String,
|
|
21
28
|
default: "#4680A5",
|
|
22
29
|
},
|
|
23
30
|
},
|
|
24
|
-
data() {
|
|
25
|
-
return {
|
|
26
|
-
isSidebarCollapsed: false
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
31
|
computed: {
|
|
30
|
-
...
|
|
31
|
-
},
|
|
32
|
-
watch: {
|
|
33
|
-
event: {
|
|
34
|
-
handler(event) {
|
|
35
|
-
if (event.name == "isSidebarCollapsed") {
|
|
36
|
-
this.isSidebarCollapsed = event.data;
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
deep: true,
|
|
40
|
-
},
|
|
32
|
+
...mapState("generic", ["menuCollapsed"]),
|
|
41
33
|
},
|
|
42
34
|
};
|
|
43
35
|
</script>
|
|
44
36
|
|
|
45
37
|
<style scoped>
|
|
46
38
|
.top {
|
|
47
|
-
padding-top: 4px;
|
|
48
|
-
left: 298px;
|
|
49
|
-
right: 10px;
|
|
50
|
-
height: 55px;
|
|
51
|
-
top: 5px;
|
|
52
|
-
border-radius: 18px;
|
|
53
|
-
border-bottom: 0px solid #eff0f1;
|
|
54
|
-
box-shadow: 0px 10px 30px -6px rgb(0 0 0 / 10%);
|
|
55
39
|
position: fixed;
|
|
40
|
+
padding-left: 30px;
|
|
41
|
+
padding-top: 5px;
|
|
42
|
+
right: 0px;
|
|
43
|
+
height: 58px;
|
|
56
44
|
transition: all 0.3s ease;
|
|
57
|
-
|
|
45
|
+
background-color: #FAFAFC;
|
|
46
|
+
z-index: 1000;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.top.notCollapsed {
|
|
50
|
+
left: 270px;
|
|
58
51
|
}
|
|
59
52
|
|
|
60
53
|
.top.collapsed {
|
|
61
|
-
left:
|
|
54
|
+
left: 65px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.div-theme {
|
|
58
|
+
margin-left: 15px;
|
|
62
59
|
}
|
|
63
60
|
</style>
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div v-for="icon in icons" class="molded-icon side-by-side" @click="executeEvent(icon.eventName)" v-b-tooltip.hover
|
|
4
4
|
:title="icon.tooltip">
|
|
5
|
-
<div
|
|
6
|
-
'icon-active-
|
|
7
|
-
|
|
8
|
-
}">
|
|
5
|
+
<div :class="{
|
|
6
|
+
'icon-active-header': moduleActive === icon.module,
|
|
7
|
+
}" class="icon-molded-icon">
|
|
9
8
|
<i :class="icon.icon"></i>
|
|
10
9
|
</div>
|
|
11
10
|
</div>
|
|
@@ -21,7 +20,7 @@ export default {
|
|
|
21
20
|
icons: Array,
|
|
22
21
|
},
|
|
23
22
|
data() {
|
|
24
|
-
return {
|
|
23
|
+
return { moduleActive: "" };
|
|
25
24
|
},
|
|
26
25
|
methods: {
|
|
27
26
|
...mapMutations("generic", ["addEvent"]),
|
|
@@ -29,12 +28,15 @@ export default {
|
|
|
29
28
|
this.addEvent({
|
|
30
29
|
name: eventName,
|
|
31
30
|
});
|
|
31
|
+
this.addEvent({
|
|
32
|
+
name: "cleanMenuSelected",
|
|
33
|
+
});
|
|
32
34
|
},
|
|
33
35
|
},
|
|
34
36
|
watch: {
|
|
35
37
|
$route: {
|
|
36
38
|
handler: function (router) {
|
|
37
|
-
this.
|
|
39
|
+
this.moduleActive = router.matched[0].props.default.module;
|
|
38
40
|
},
|
|
39
41
|
deep: true,
|
|
40
42
|
},
|
|
@@ -49,12 +51,21 @@ export default {
|
|
|
49
51
|
margin-left: 10px;
|
|
50
52
|
margin-top: 4px;
|
|
51
53
|
cursor: pointer;
|
|
52
|
-
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
.icon-molded-icon {
|
|
56
57
|
font-size: 20px;
|
|
57
58
|
margin-left: 10px;
|
|
58
|
-
color: #
|
|
59
|
+
color: #2C3453;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.module-active {
|
|
63
|
+
border-radius: 50px;
|
|
64
|
+
background-color: #2C3453;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.icon-active-header {
|
|
68
|
+
color: #D98621;
|
|
69
|
+
font-size: 22px;
|
|
59
70
|
}
|
|
60
71
|
</style>
|