Skip to content

Commit ec271ad

Browse files
committed
➕[Feat] Alter help codes
1 parent f0c5cb1 commit ec271ad

4 files changed

Lines changed: 26 additions & 7 deletions

File tree

data/libraries.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,6 +3063,20 @@
30633063
"color": 4,
30643064
"icon": "apps/apps_profiling.svg"
30653065
}
3066+
},
3067+
{
3068+
"id" : "apps_sample",
3069+
"type" : "function",
3070+
"level": 1,
3071+
"name" : "Sample App",
3072+
"tag" : "SAMPLE,OSSCA,APPS",
3073+
"path" : "visualpython - apps - sample",
3074+
"desc" : "Sample app for OSSCA",
3075+
"file" : "m_apps/SampleApp2.js",
3076+
"apps" : {
3077+
"color": 4,
3078+
"icon": "apps/apps_white.svg"
3079+
}
30663080
}
30673081
]
30683082
},

html/component/popupComponent.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@
8383

8484

8585
<!-- Help view box -->
86-
<div class="vp-popup-helpview-box vp-close-on-blur vp-scrollbar"></div>
86+
<div class="vp-popup-helpview-box vp-close-on-blur vp-scrollbar">
87+
88+
</div>
8789

8890

8991
<!-- Button box -->
9092
<div class="vp-popup-button-box">
9193
<button type="button" class="vp-button vp-popup-button" data-type="code">Code view</button>
9294
<button type="button" class="vp-button vp-popup-button" data-type="data">Data view</button>
93-
9495
<!-- 220919 -->
9596
<button type="button" class="vp-button vp-popup-button vp-popup-help" data-type="help" title="test">Help</button>
9697

js/com/component/PopupComponent.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ define([
6363
// show view box
6464
codeview: true,
6565
dataview: true,
66+
67+
// 220919
68+
helpview: true,
69+
6670
// show footer
6771
runButton: true,
6872
footer: true,

js/m_apps/SampleApp2.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Project Name : Visual Python
33
* Description : GUI-based Python code generator
4-
* File Name : SampleApp.js
4+
* File Name : SampleApp2.js
55
* Author : Black Logic
66
* Note : [앱 설명]
77
* License : GNU GPLv3 with Visual Python special exception
@@ -10,7 +10,7 @@
1010
*/
1111

1212
//============================================================================
13-
// [CLASS] SampleApp
13+
// [CLASS] SampleApp 2
1414
//============================================================================
1515
define([
1616
'vp_base/js/com/com_util',
@@ -20,9 +20,9 @@ define([
2020
], function(com_util, com_Const, com_String, PopupComponent) {
2121

2222
/**
23-
* SampleApp
23+
* SampleApp2
2424
*/
25-
class SampleApp extends PopupComponent {
25+
class SampleApp2 extends PopupComponent {
2626
_init() {
2727
super._init();
2828
/** Write codes executed before rendering */
@@ -56,5 +56,5 @@ define([
5656

5757
}
5858

59-
return SampleApp;
59+
return SampleApp2;
6060
});

0 commit comments

Comments
 (0)