renusify 2.3.2 → 2.4.1
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/components/bar/scss/toolbar.scss +0 -1
- package/components/calendar/month.vue +2 -2
- package/components/calendar/year.vue +2 -2
- package/components/codeEditor/highlightCss.vue +12 -24
- package/components/codeEditor/highlightHtml.vue +14 -29
- package/components/codeEditor/highlightJs.vue +14 -25
- package/components/codeEditor/index.vue +214 -205
- package/components/codeEditor/mixin.js +1 -42
- package/components/form/dateInput/month.vue +2 -2
- package/components/form/dateInput/year.vue +2 -2
- package/components/form/jsonInput/index.vue +29 -19
- package/components/form/text-editor/index.vue +65 -8
- package/components/form/text-editor/style.scss +6 -0
- package/components/highlight/index.js +1 -0
- package/components/highlight/index.vue +46 -0
- package/components/highlight/mixin.js +1132 -0
- package/components/highlight/style.scss +107 -0
- package/components/index.js +1 -0
- package/components/nestable/NestableItem.vue +6 -4
- package/index.js +0 -2
- package/package.json +1 -1
- package/style/app.scss +13 -13
- package/style/variables/base.scss +10 -10
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@use "../../style/variables/base";
|
|
2
|
+
|
|
3
|
+
.#{base.$prefix}highlight {
|
|
4
|
+
direction: ltr;
|
|
5
|
+
text-align: left;
|
|
6
|
+
white-space: pre;
|
|
7
|
+
padding: 20px !important;
|
|
8
|
+
color: #f8f8f2;
|
|
9
|
+
background: #1a1a1c;
|
|
10
|
+
box-shadow: 0 0 5px #fff;
|
|
11
|
+
text-shadow: none;
|
|
12
|
+
font: normal 18px Consolas, "Courier New", Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
13
|
+
line-height: 24px !important;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
|
|
16
|
+
&::selection {
|
|
17
|
+
background: #bdf5
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.highlight-name {
|
|
21
|
+
border-bottom: 1px solid !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.highlight-code > div {
|
|
25
|
+
display: flex;
|
|
26
|
+
overflow: auto
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.highlight-code > div :last-child {
|
|
30
|
+
flex: 1;
|
|
31
|
+
outline: none
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:before {
|
|
35
|
+
color: #6f9aff
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.highlight-numbers {
|
|
39
|
+
padding-left: 5px;
|
|
40
|
+
counter-reset: line;
|
|
41
|
+
|
|
42
|
+
div {
|
|
43
|
+
padding-right: 5px;
|
|
44
|
+
|
|
45
|
+
&::before {
|
|
46
|
+
color: #fff;
|
|
47
|
+
display: block;
|
|
48
|
+
content: counter(line);
|
|
49
|
+
opacity: .5;
|
|
50
|
+
text-align: right;
|
|
51
|
+
margin-right: 5px;
|
|
52
|
+
counter-increment: line
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.highlight-syn-cmnt {
|
|
58
|
+
font-style: italic
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
&.highlight-lang-http .highlight-syn-kwd {
|
|
63
|
+
background: #25f;
|
|
64
|
+
color: #fff;
|
|
65
|
+
padding: 0px 5px;
|
|
66
|
+
border-radius: 5px
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.highlight-syn-deleted,
|
|
70
|
+
.highlight-syn-err,
|
|
71
|
+
.highlight-syn-var {
|
|
72
|
+
color: #ff5261
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.highlight-syn-section,
|
|
76
|
+
.highlight-syn-kwd {
|
|
77
|
+
color: #ff7cc6
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.highlight-syn-class {
|
|
81
|
+
color: #eab07c
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.highlight-numbers,
|
|
85
|
+
.highlight-syn-cmnt {
|
|
86
|
+
color: #7d828b
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.highlight-syn-insert,
|
|
90
|
+
.highlight-syn-type,
|
|
91
|
+
.highlight-syn-func,
|
|
92
|
+
.highlight-syn-bool {
|
|
93
|
+
color: #71d58a
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.highlight-syn-num {
|
|
97
|
+
color: #b581fd
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.highlight-syn-oper {
|
|
101
|
+
color: #80c6ff
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.highlight-syn-str {
|
|
105
|
+
color: #4dacfa
|
|
106
|
+
}
|
|
107
|
+
}
|
package/components/index.js
CHANGED
|
@@ -79,6 +79,7 @@ export * as rTimeAgo from './timeAgo/index.js'
|
|
|
79
79
|
export * as rTimeline from './timeline/index.js'
|
|
80
80
|
export * as rTour from './tour/index.js'
|
|
81
81
|
export * as rTree from './tree/index.js'
|
|
82
|
+
export * as rHighlight from './highlight/index.js'
|
|
82
83
|
|
|
83
84
|
export const _register = (app, components) => {
|
|
84
85
|
let d = {}
|
|
@@ -23,10 +23,13 @@
|
|
|
23
23
|
>
|
|
24
24
|
<r-icon v-html="$r.icons.delete"></r-icon>
|
|
25
25
|
</r-btn-confirm>
|
|
26
|
+
<r-btn v-if="hasChildren" icon text @click="closed=!closed">
|
|
27
|
+
<r-icon v-html="closed?$r.icons.plus:$r.icons.minus"></r-icon>
|
|
28
|
+
</r-btn>
|
|
29
|
+
<r-btn v-else icon text></r-btn>
|
|
26
30
|
<slot :item="item">{{ item }}</slot>
|
|
27
31
|
</div>
|
|
28
|
-
|
|
29
|
-
<div v-if="hasChildren" class="nestable-list ms-5">
|
|
32
|
+
<div v-if="hasChildren&&!closed" class="nestable-list ms-5">
|
|
30
33
|
<template
|
|
31
34
|
v-for="(child, childIndex) in item[childrenProp]"
|
|
32
35
|
:key="childIndex"
|
|
@@ -90,9 +93,9 @@ export default {
|
|
|
90
93
|
return {
|
|
91
94
|
breakPoint: null,
|
|
92
95
|
moveDown: false,
|
|
96
|
+
closed:false
|
|
93
97
|
};
|
|
94
98
|
},
|
|
95
|
-
|
|
96
99
|
computed: {
|
|
97
100
|
isDragging() {
|
|
98
101
|
return (
|
|
@@ -116,7 +119,6 @@ export default {
|
|
|
116
119
|
];
|
|
117
120
|
},
|
|
118
121
|
},
|
|
119
|
-
|
|
120
122
|
methods: {
|
|
121
123
|
del(item) {
|
|
122
124
|
this.$emit("delete", item);
|
package/index.js
CHANGED
|
@@ -68,7 +68,6 @@ export default {
|
|
|
68
68
|
'en': {
|
|
69
69
|
first_day: 0,
|
|
70
70
|
time_zone_offset: -480,/*Standard timezone offset minutes -07:00*/
|
|
71
|
-
daylight_saving_time: true,
|
|
72
71
|
localizeName: 'en-US',
|
|
73
72
|
timeZone: 'America/Los_Angeles',
|
|
74
73
|
rtl: false
|
|
@@ -76,7 +75,6 @@ export default {
|
|
|
76
75
|
'fa': {
|
|
77
76
|
first_day: 6,
|
|
78
77
|
time_zone_offset: 210,//Standard timezone offset minutes +03:30
|
|
79
|
-
daylight_saving_time: false,
|
|
80
78
|
localizeName: 'fa-IR',
|
|
81
79
|
timeZone: 'Asia/Tehran',
|
|
82
80
|
calendar: 'persian',
|
package/package.json
CHANGED
package/style/app.scss
CHANGED
|
@@ -16,13 +16,13 @@ html {
|
|
|
16
16
|
|
|
17
17
|
& {
|
|
18
18
|
text-rendering: optimizeLegibility;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
-webkit-font-smoothing: antialiased;
|
|
20
|
+
-moz-osx-font-smoothing: grayscale;
|
|
21
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
overflow-y: scroll;
|
|
24
|
+
overflow-x: hidden;
|
|
25
|
+
-webkit-text-size-adjust: 100%;
|
|
26
26
|
scroll-behavior: smooth;
|
|
27
27
|
}
|
|
28
28
|
;
|
|
@@ -150,27 +150,27 @@ $color-text: var(--color-on-one);
|
|
|
150
150
|
@include mixins.typography(base.$headings, 'display-3')
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.headline-1 {
|
|
153
|
+
.headline-1, h1 {
|
|
154
154
|
@include mixins.typography(base.$headings, 'headline-1')
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
.headline-2 {
|
|
157
|
+
.headline-2, h2 {
|
|
158
158
|
@include mixins.typography(base.$headings, 'headline-2')
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.headline-3 {
|
|
161
|
+
.headline-3, h3 {
|
|
162
162
|
@include mixins.typography(base.$headings, 'headline-3')
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.title-1 {
|
|
165
|
+
.title-1, h4 {
|
|
166
166
|
@include mixins.typography(base.$headings, 'title-1')
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
.title-2 {
|
|
169
|
+
.title-2, h5 {
|
|
170
170
|
@include mixins.typography(base.$headings, 'title-2');
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
.title-3 {
|
|
173
|
+
.title-3, h6 {
|
|
174
174
|
@include mixins.typography(base.$headings, 'title-3');
|
|
175
175
|
}
|
|
176
176
|
|
|
@@ -143,35 +143,35 @@ $headings: (
|
|
|
143
143
|
'display-1': (
|
|
144
144
|
'size': 4.75rem,
|
|
145
145
|
'weight': 400,
|
|
146
|
-
'line-height':
|
|
146
|
+
'line-height': 6rem,
|
|
147
147
|
'letter-spacing': -0.02rem,
|
|
148
148
|
'text-transform': false
|
|
149
149
|
),
|
|
150
150
|
'display-2': (
|
|
151
151
|
'size': 3.75rem,
|
|
152
152
|
'weight': 400,
|
|
153
|
-
'line-height':
|
|
153
|
+
'line-height': 5.3rem,
|
|
154
154
|
'letter-spacing': 0,
|
|
155
155
|
'text-transform': false
|
|
156
156
|
),
|
|
157
157
|
'display-3': (
|
|
158
158
|
'size': 3rem,
|
|
159
159
|
'weight': 400,
|
|
160
|
-
'line-height':
|
|
160
|
+
'line-height': 4.3rem,
|
|
161
161
|
'letter-spacing': 0,
|
|
162
162
|
'text-transform': false
|
|
163
163
|
),
|
|
164
164
|
'headline-1': (
|
|
165
165
|
'size': 2.66rem,
|
|
166
166
|
'weight': 400,
|
|
167
|
-
'line-height': 3.
|
|
167
|
+
'line-height': 3.6rem,
|
|
168
168
|
'letter-spacing': 0,
|
|
169
169
|
'text-transform': false
|
|
170
170
|
),
|
|
171
171
|
'headline-2': (
|
|
172
172
|
'size': 2.33rem,
|
|
173
173
|
'weight': 400,
|
|
174
|
-
'line-height':
|
|
174
|
+
'line-height': 3.2rem,
|
|
175
175
|
'letter-spacing': 0,
|
|
176
176
|
'text-transform': false
|
|
177
177
|
),
|
|
@@ -192,7 +192,7 @@ $headings: (
|
|
|
192
192
|
'title-2': (
|
|
193
193
|
'size': 1.33rem,
|
|
194
194
|
'weight': 500,
|
|
195
|
-
'line-height':
|
|
195
|
+
'line-height': 1.9rem,
|
|
196
196
|
'letter-spacing': 0.0125rem,
|
|
197
197
|
'text-transform': false
|
|
198
198
|
),
|
|
@@ -206,7 +206,7 @@ $headings: (
|
|
|
206
206
|
'body-1': (
|
|
207
207
|
'size': 1.33rem,
|
|
208
208
|
'weight': 400,
|
|
209
|
-
'line-height':
|
|
209
|
+
'line-height': 1.8rem,
|
|
210
210
|
'letter-spacing': 0.042rem,
|
|
211
211
|
'text-transform': false
|
|
212
212
|
),
|
|
@@ -227,21 +227,21 @@ $headings: (
|
|
|
227
227
|
'label-1': (
|
|
228
228
|
'size': 1.15rem,
|
|
229
229
|
'weight': 500,
|
|
230
|
-
'line-height': 1.
|
|
230
|
+
'line-height': 1.5rem,
|
|
231
231
|
'letter-spacing': 0.008rem,
|
|
232
232
|
'text-transform': uppercase
|
|
233
233
|
),
|
|
234
234
|
'label-2': (
|
|
235
235
|
'size':1rem,
|
|
236
236
|
'weight': 500,
|
|
237
|
-
'line-height': 1.
|
|
237
|
+
'line-height': 1.2rem,
|
|
238
238
|
'letter-spacing': 0.042rem,
|
|
239
239
|
'text-transform': uppercase
|
|
240
240
|
),
|
|
241
241
|
'label-3': (
|
|
242
242
|
'size': 0.85rem,
|
|
243
243
|
'weight': 500,
|
|
244
|
-
'line-height': 1.
|
|
244
|
+
'line-height': 1.1rem,
|
|
245
245
|
'letter-spacing': 0.042rem,
|
|
246
246
|
'text-transform': uppercase
|
|
247
247
|
)
|