Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d771ab

Browse files
author
minjk-bl
committed
Add default allocate variables
1 parent939c523 commit8d771ab

File tree

5 files changed

+27
-15
lines changed

5 files changed

+27
-15
lines changed

‎visualpython/data/m_library/pandasLibrary.js‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ define([
179179
"output":true,
180180
"component":[
181181
"data_select"
182-
]
182+
],
183+
"value":"vp_df"
183184
},
184185
{
185186
"name":"encoding",
@@ -3526,7 +3527,8 @@ define([
35263527
"output":true,
35273528
"component":[
35283529
"data_select"
3529-
]
3530+
],
3531+
"value":"vp_df"
35303532
},
35313533
{
35323534
"name":"typ",
@@ -3683,7 +3685,8 @@ define([
36833685
"output":true,
36843686
"component":[
36853687
"data_select"
3686-
]
3688+
],
3689+
"value":"vp_df"
36873690
}
36883691
]
36893692
},
@@ -6536,7 +6539,8 @@ define([
65366539
"output":true,
65376540
"component":[
65386541
"data_select"
6539-
]
6542+
],
6543+
"value":"vp_df"
65406544
},
65416545
{
65426546
"name":"sheet_name",
@@ -6722,7 +6726,8 @@ define([
67226726
"output":true,
67236727
"component":[
67246728
"data_select"
6725-
]
6729+
],
6730+
"value":"vp_df"
67266731
},
67276732
{
67286733
"name":"format",
@@ -6767,7 +6772,8 @@ define([
67676772
"output":true,
67686773
"component":[
67696774
"data_select"
6770-
]
6775+
],
6776+
"value":"vp_df"
67716777
},
67726778
{
67736779
"name":"usecols",

‎visualpython/html/m_apps/file.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
</tr>
7676
<tr>
7777
<td><labelfor="vp_sampleReturn">Allocate to</label></td>
78-
<td><inputtype="text"class="vp-input input-single"id="vp_sampleReturn"placeholder=""value=""title=""></td>
78+
<td><inputtype="text"class="vp-input input-single"id="vp_sampleReturn"placeholder=""value="vp_df"title=""></td>
7979
</tr>
8080
</tbody>
8181
</table>

‎visualpython/html/m_apps/sweetviz.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222
</div>
2323
<labelfor="vp_pfReturn"class="vp-orange-text">Allocate to</label>
24-
<inputtype="text"id="vp_pfReturn"class="vp-input vp-sv-input"placeholder="New variable name"required="true">
24+
<inputtype="text"id="vp_pfReturn"class="vp-input vp-sv-input"placeholder="New variable name"required="true"value="report">
2525
<labelfor="vp_pfPath">File path</label>
2626
<div>
2727
<inputtype="text"id="vp_pfPath"class="vp-input vp-sv-input"placeholder="SWEETVIZ_REPORT.html">

‎visualpython/js/m_apps/File.js‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ define([
177177
"data_select"
178178
],
179179
"output":true,
180-
"required":true
180+
"required":true,
181+
"value":'vp_df'
181182
}
182183
]
183184
}
@@ -235,9 +236,14 @@ define([
235236
type='open';
236237
}
237238

239+
letextensionList=[];
240+
if(that.state.fileExtension!==''){
241+
extensionList=[that.state.fileExtension];
242+
}
243+
238244
letfileNavi=newFileNavigation({
239245
type:type,
240-
extensions:[that.state.fileExtension],
246+
extensions:extensionList,
241247
finish:function(filesPath,status,error){
242248
let{file, path}=filesPath[0];
243249
that.state.selectedFile=file;
@@ -310,7 +316,7 @@ define([
310316
letpage=$(fileHtml);
311317

312318
letallocateSelector=newDataSelector({
313-
pageThis:this,id:'vp_sampleReturn',placeholder:'Variable name'
319+
pageThis:this,id:'vp_sampleReturn',placeholder:'Variable name',value:'vp_df'
314320
});
315321
$(page).find('#vp_sampleReturn').replaceWith(allocateSelector.toTagString());
316322

‎visualpython/js/m_apps/Frame.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ define([
3737
this.state={
3838
originObj:'',
3939
tempObj:'_vp',
40-
returnObj:'_vp',
40+
returnObj:'vp_df',
4141
inplace:false,
4242
menu:'',
4343
menuItem:'',
@@ -176,7 +176,7 @@ define([
176176
// initialize state values
177177
that.state.originObj=origin;
178178
that.state.tempObj='_vp';
179-
that.state.returnObj=that.state.tempObj;
179+
that.state.returnObj='vp_df';
180180
if(that.state.inplace===true){
181181
that.state.returnObj=origin;
182182
}
@@ -228,7 +228,7 @@ define([
228228
// check/uncheck inplace
229229
$(this.wrapSelector('#inplace')).on('change',function(){
230230
letchecked=$(this).prop('checked');
231-
letreturnVariable='_vp';
231+
letreturnVariable='vp_df';
232232
if(checked===true){
233233
returnVariable=that.state.originObj;
234234
}
@@ -1122,7 +1122,7 @@ define([
11221122
letpage=$(frameHtml);
11231123

11241124
letallocateSelector=newDataSelector({
1125-
pageThis:this,id:'vp_feReturn',placeholder:'Variable name',required:true,value:'_vp'
1125+
pageThis:this,id:'vp_feReturn',placeholder:'Variable name',required:true,value:'vp_df'
11261126
});
11271127
$(page).find('#vp_feReturn').replaceWith(allocateSelector.toTagString());
11281128

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp