renusify 2.3.2 → 2.4.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/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 +58 -8
- package/components/form/text-editor/style.scss +6 -0
- package/components/highlight/index.js +1 -0
- package/components/highlight/index.vue +31 -0
- package/components/highlight/mixin.js +1106 -0
- package/components/highlight/style.scss +103 -0
- package/components/index.js +1 -0
- package/index.js +0 -2
- package/package.json +1 -1
- package/style/app.scss +13 -13
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@use "../../style/variables/base";
|
|
2
|
+
|
|
3
|
+
.#{base.$prefix}highlight {
|
|
4
|
+
direction: ltr;
|
|
5
|
+
text-align: left;
|
|
6
|
+
white-space: pre;
|
|
7
|
+
padding: 30px 20px;
|
|
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;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
|
|
16
|
+
&::selection {
|
|
17
|
+
background: #bdf5
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
> div {
|
|
21
|
+
display: flex;
|
|
22
|
+
overflow: auto
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> div :last-child {
|
|
26
|
+
flex: 1;
|
|
27
|
+
outline: none
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:before {
|
|
31
|
+
color: #6f9aff
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.highlight-numbers {
|
|
35
|
+
padding-left: 5px;
|
|
36
|
+
counter-reset: line;
|
|
37
|
+
|
|
38
|
+
div {
|
|
39
|
+
padding-right: 5px;
|
|
40
|
+
|
|
41
|
+
&::before {
|
|
42
|
+
color: #fff;
|
|
43
|
+
display: block;
|
|
44
|
+
content: counter(line);
|
|
45
|
+
opacity: .5;
|
|
46
|
+
text-align: right;
|
|
47
|
+
margin-right: 5px;
|
|
48
|
+
counter-increment: line
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.highlight-syn-cmnt {
|
|
54
|
+
font-style: italic
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
.highlight-lang-http .highlight-syn-kwd {
|
|
59
|
+
background: #25f;
|
|
60
|
+
color: #fff;
|
|
61
|
+
padding: 0px 5px;
|
|
62
|
+
border-radius: 5px
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.highlight-syn-deleted,
|
|
66
|
+
.highlight-syn-err,
|
|
67
|
+
.highlight-syn-var {
|
|
68
|
+
color: #ff5261
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.highlight-syn-section,
|
|
72
|
+
.highlight-syn-kwd {
|
|
73
|
+
color: #ff7cc6
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.highlight-syn-class {
|
|
77
|
+
color: #eab07c
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.highlight-numbers,
|
|
81
|
+
.highlight-syn-cmnt {
|
|
82
|
+
color: #7d828b
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.highlight-syn-insert,
|
|
86
|
+
.highlight-syn-type,
|
|
87
|
+
.highlight-syn-func,
|
|
88
|
+
.highlight-syn-bool {
|
|
89
|
+
color: #71d58a
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.highlight-syn-num {
|
|
93
|
+
color: #b581fd
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.highlight-syn-oper {
|
|
97
|
+
color: #80c6ff
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.highlight-syn-str {
|
|
101
|
+
color: #4dacfa
|
|
102
|
+
}
|
|
103
|
+
}
|
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 = {}
|
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
|
|