Skip to content

Commit ed06588

Browse files
authored
Merge pull request #133 from visualpython/release
Release v2.2.2
2 parents f55056b + c87caba commit ed06588

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2137
-3783
lines changed

bin/visualpy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ f_main() {
7474
# Install Visual Python
7575
#=============================================================================
7676
f_install() {
77+
mkdir -p ${PATH_DST}/${VP_NAME}
78+
7779
RES=`f_check_extension`
7880
# 1 = Jupyter Extension is not actived
7981
# 2 = visualpython does not exist
8082
# 3 = visualpython exists
8183

82-
mkdir -p ${PATH_DST}/${VP_NAME}
83-
8484
if [ ${RES} -eq 1 ]; then
8585
f_print_not_extension
8686
elif [ ${RES} -eq 2 ]; then

bin/visualpy.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ rem #=========================================================================
8181
rem # Install Visual Python
8282
rem #=========================================================================
8383
:f_install
84+
if not exist "%PATH_DST%" (
85+
mkdir "%PATH_DST%"
86+
)
87+
8488
call :f_check_extension RES
8589
rem # 1 = Jupyter Extension is not actived
8690
rem # 2 = visualpython does not exist

css/component/dataSelector.css

Lines changed: 53 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
1-
/* Code Preview */
1+
/* DataSelector target*/
2+
.vp-ds-box {
3+
display: inline-block;
4+
}
5+
.vp-ds-filter {
6+
position: relative;
7+
width: 20px;
8+
height: 20px;
9+
right: 25px;
10+
cursor: pointer;
11+
}
12+
.vp-ds-box input.vp-ds-target {
13+
padding-right: 23px;
14+
}
15+
.vp-ds-box input.vp-ds-target:disabled {
16+
background: var(--light-gray-color) !important;
17+
cursor: not-allowed;
18+
}
19+
.vp-ds-box input.vp-ds-target:disabled + .vp-ds-filter {
20+
cursor: not-allowed;
21+
}
22+
.vp-ds-item:hover {
23+
background: var(--light-gray-color);
24+
color: var(--font-highlight);
25+
cursor: pointer;
26+
}
27+
/* DataSelector popup */
228
.vp-dataselector {
29+
display: none;
330
position: absolute;
4-
top: calc(50% - 200px);
5-
left: calc(50% - 200px);
6-
width: 400px;
7-
height: 400px;
31+
top: calc(50% - 225px);
32+
left: calc(50% - 300px);
33+
width: 600px;
34+
height: 450px;
835
background: white;
936
border: 1px solid var(--border-gray-color);
1037
z-index: 999;
@@ -13,48 +40,46 @@
1340
font-size: 14px;
1441
color: var(--font-primary);
1542
}
43+
.vp-ds-data-box {
44+
width: 100%;
45+
height: 100px;
46+
align-content: baseline;
47+
align-items: center;
48+
}
49+
.vp-ds-type-box,
1650
.vp-ds-variable-box {
17-
border: 1px solid var(--border-gray-color);
51+
border: 0.25px solid var(--border-gray-color);
1852
height: 100px;
1953
grid-row-gap: 0px;
54+
align-content: baseline;
2055
}
56+
.vp-ds-type-item,
2157
.vp-ds-var-item {
58+
padding-left: 5px;
2259
height: 25px;
60+
line-height: 25px;
2361
border-bottom: 1px solid var(--border-gray-color);
2462
}
63+
.vp-ds-type-item:hover,
2564
.vp-ds-var-item:hover {
2665
background: var(--light-gray-color);
2766
color: var(--font-highlight);
2867
cursor: pointer;
2968
}
69+
.vp-ds-type-item.selected,
3070
.vp-ds-var-item.selected {
3171
background: var(--light-gray-color);
3272
color: var(--font-highlight);
3373
font-weight: bold;
3474
}
35-
.vp-ds-var-data {
36-
padding-left: 5px;
37-
}
38-
.vp-ds-var-type {
39-
border-left: 1px solid var(--border-gray-color);
40-
padding-left: 5px;
41-
}
4275
.vp-ds-option-box {
43-
44-
}
45-
.vp-ds-preview {
46-
width: 100%;
47-
height: 35px;
48-
background-image: repeating-linear-gradient( to right, var(--grid-line-color) 0, var(--grid-line-color) 0.25px, transparent 1px, transparent 5px ), repeating-linear-gradient( to bottom, var(--grid-line-color) 0, var(--grid-line-color) 0.25px, transparent 1px, transparent 5px );
49-
background-color: white;
50-
border: 0.25px solid #E4E4E4;
51-
}
52-
.vp-ds-preview textarea {
53-
display: none;
76+
height: calc(100% - 140px);
77+
margin-top: 10px;
5478
}
55-
.vp-ds-preview .CodeMirror-code .cm-variable {
56-
background-color: rgba(47, 133, 90, 0.2);
79+
.vp-ds-option-inner-box {
80+
height: calc(100% - 30px);
5781
}
58-
.vp-ds-preview .CodeMirror-code .cm-string {
59-
background-color: rgba(246, 173, 85, 0.2);
82+
.vp-nd-row-box,
83+
.vp-nd-col-box {
84+
height: 160px;
6085
}

css/component/multiSelector.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.vp-cs-select-container {
22
width: 100%;
3-
height: 100%;
3+
height: calc(100% - 25px);
44
display: grid;
55
grid-template-columns: calc(47% - 15px) 50px calc(47% - 15px);
66
grid-auto-rows: 100%;
@@ -20,7 +20,8 @@
2020
overflow-x: hidden;
2121
}
2222
.vp-cs-select-box.left {
23-
width: 160px;
23+
/* width: 160px; */
24+
width: 100%;
2425
height: calc(100% - 32px);
2526
}
2627
.vp-cs-select-item {

css/component/popupComponent.css

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -363,28 +363,6 @@
363363
background-image: url('');
364364
}
365365

366-
/* error box */
367-
.vp-popup-data-error-box {
368-
margin: 7px;
369-
padding: 10px;
370-
background: #FFFFFF;
371-
border: 0.25px solid #E4E4E4;
372-
box-shadow: 1px 1px 2px rgb(0 0 0 / 10%);
373-
border-radius: 2px;
374-
}
375-
.vp-popup-data-error-box i.fa-exclamation-triangle {
376-
color: #F37704;
377-
}
378-
.vp-popup-data-error-box-title {
379-
color: #F37704;
380-
font-weight: bold;
381-
}
382-
.vp-popup-data-error-box pre {
383-
background: #eeeeee;
384-
margin: 0px;
385-
padding: 7px;
386-
}
387-
388366
/* inner popup */
389367
.vp-inner-popup-box {
390368
position: absolute;

css/m_apps/frame.css

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -208,26 +208,6 @@
208208
white-space: -o-pre-wrap; /* Opera 7 */
209209
word-wrap: break-all; /* Internet Explorer 5.5+ */
210210
}
211-
.vp-fe-info-error-box {
212-
margin: 7px;
213-
padding: 10px;
214-
background: #FFFFFF;
215-
border: 0.25px solid #C4C4C4;
216-
box-shadow: 1px 1px 2px rgb(0 0 0 / 10%);
217-
border-radius: 2px;
218-
}
219-
.vp-fe-info-error-box i.fa-exclamation-triangle {
220-
color: #F37704;
221-
}
222-
.vp-fe-info-error-box-title {
223-
color: #F37704;
224-
font-weight: bold;
225-
}
226-
.vp-fe-info-error-box pre {
227-
background: #eeeeee;
228-
margin: 0px;
229-
padding: 7px;
230-
}
231211
.vp-fe-preview-box {
232212
display: none;
233213
width: 100%;

css/m_apps/subset.css

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
}
9595
.vp-ds-tab-page-box {
9696
display: grid;
97-
grid-template-rows: 30px calc(100% - 50px);
98-
grid-row-gap: 20px;
97+
grid-template-rows: 30px calc(100% - 30px);
98+
grid-row-gap: 5px;
9999
border: 0.25px solid #E4E4E4;
100100
padding: 15px;
101101
}
@@ -270,24 +270,4 @@
270270
}
271271
.vp-ds-data-view-box table {
272272
height: 100%;
273-
}
274-
.vp-ds-data-error-box {
275-
margin: 7px;
276-
padding: 10px;
277-
background: #FFFFFF;
278-
border: 0.25px solid #E4E4E4;
279-
box-shadow: 1px 1px 2px rgb(0 0 0 / 10%);
280-
border-radius: 2px;
281-
}
282-
.vp-ds-data-error-box i.fa-exclamation-triangle {
283-
color: #F37704;
284-
}
285-
.vp-ds-data-error-box-title {
286-
color: #F37704;
287-
font-weight: bold;
288-
}
289-
.vp-ds-data-error-box pre {
290-
background: #eeeeee;
291-
margin: 0px;
292-
padding: 7px;
293273
}

css/m_visualize/seaborn.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.vp-chart-setting {
22
float: right;
33
color: var(--gray-color);
4+
padding-top: 5px;
45
padding-right: 5px;
56
cursor: pointer;
67
}
@@ -57,11 +58,8 @@
5758
grid-row-gap: 5px;
5859
grid-column-gap: 15px;
5960
align-items: baseline;
60-
align-content: center;
61+
align-content: baseline;
6162
height: 100%;
62-
}
63-
.vp-chart-left-box {
64-
6563
}
6664
.vp-chart-left-box > label {
6765
margin-bottom: 0px;
@@ -82,6 +80,10 @@
8280
width: 100%;
8381
height: calc(100% - 30px);
8482
}
83+
.vp-chart-preview-content:empty::after {
84+
content: 'No preview image';
85+
color: var(--gray-color);
86+
}
8587
.vp-chart-preview-box img {
8688
width: 100%;
8789
height: 100%;

css/m_visualize/wordCloud.css

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/* word cloud styles */
2+
.vp-wc-body {
3+
display: grid;
4+
grid-template-columns: calc(50% - 8px) calc(50% - 8px);
5+
grid-template-rows: 1fr;
6+
grid-row-gap: 5px;
7+
grid-column-gap: 15px;
8+
align-items: baseline;
9+
align-content: baseline;
10+
height: 100%;
11+
}
12+
.vp-wc-left-box label {
13+
margin-bottom: 0px;
14+
}
15+
.vp-wc-left-box,
16+
.vp-wc-right-box {
17+
height: calc(100% - 10px);
18+
}
19+
.vp-wc-option-box {
20+
height: calc(100% - 30px);
21+
}
22+
.vp-tab-bar {
23+
width: 100%;
24+
overflow-y: hidden;
25+
}
26+
.vp-tab-item {
27+
display: inline-block;
28+
position: relative;
29+
width: 85px;
30+
height: 30px;
31+
line-height: 30px;
32+
background: var(--light-gray-color);
33+
cursor: pointer;
34+
border: 0.24px solid #E4E4E4;
35+
box-sizing: border-box;
36+
border-radius: 2px 2px 0px 0px;
37+
font-weight: bold;
38+
text-align: center;
39+
}
40+
.vp-tab-item.vp-focus {
41+
color: var(--font-highlight);
42+
background: white;
43+
border-bottom: 3px solid #FFCF73;
44+
}
45+
.vp-tab-page {
46+
width: 100%;
47+
height: 100%;
48+
}
49+
.vp-tab-page-box {
50+
height: calc(100% - 30px);
51+
min-height: 352px;
52+
align-content: baseline;
53+
}
54+
.vp-wc-preview-title {
55+
line-height: 30px;
56+
}
57+
.vp-wc-preview-option {
58+
float: right;
59+
padding-right: 5px;
60+
}
61+
.vp-wc-preview-box {
62+
min-height: 352px;
63+
width: 100%;
64+
height: calc(100% - 30px);
65+
}
66+
.vp-wc-preview-content:empty::after {
67+
content: 'No preview image';
68+
color: var(--gray-color);
69+
}
70+
.vp-wc-preview-box img {
71+
width: 100%;
72+
height: 100%;
73+
}
74+
.vp-tab-page label {
75+
margin-bottom: 0px;
76+
}
77+
.vp-wc-setting-footer {
78+
position: absolute;
79+
left: 20px;
80+
bottom: 15px;
81+
}

css/root.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,31 @@ hr.vp-extra-menu-line {
486486
box-sizing: border-box;
487487
box-shadow: 2px 2px 8px rgb(0 0 0 / 10%);
488488
z-index: 10;
489+
padding: 5px;
489490
}
490491
.vp-vs-item:hover {
491492
background: var(--light-gray-color);
492493
color: var(--font-highlight);
493494
cursor: pointer;
495+
}
496+
/* Data error box */
497+
.vp-data-error-box {
498+
margin: 7px;
499+
padding: 10px;
500+
background: #FFFFFF;
501+
border: 0.25px solid #E4E4E4;
502+
box-shadow: 1px 1px 2px rgb(0 0 0 / 10%);
503+
border-radius: 2px;
504+
}
505+
.vp-data-error-box i.fa-exclamation-triangle {
506+
color: #F37704;
507+
}
508+
.vp-data-error-box-title {
509+
color: #F37704;
510+
font-weight: bold;
511+
}
512+
.vp-data-error-box pre {
513+
background: #eeeeee;
514+
margin: 0px;
515+
padding: 7px;
494516
}

0 commit comments

Comments
 (0)