-
-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathcom_Const.js
More file actions
53 lines (45 loc) · 2.04 KB
/
com_Const.js
File metadata and controls
53 lines (45 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Project Name : Visual Python
* Description : GUI-based Python code generator
* File Name : com_Const.js
* Author : Black Logic
* Note : Define constant value
* License : GPLv3 (GNU General Public License v3.0)
* Date : 2021. 08. 14
* Change Date :
*/
//============================================================================
// Define constant
//============================================================================
define ([
], function() {
"use strict";
class Constants { }
Constants.TOOLBAR_BTN_INFO = {
HELP: "Visual Python 2.2.8"
, ICON: "vp-main-icon"
, ID: "vpBtnToggle"
, NAME: "toggle-vp"
, PREFIX: "vp"
, ICON_CONTAINER: ""
}
//========================================================================
// Base Path Constants
//========================================================================
Constants.PATH_SEPARATOR = "/";
Constants.BASE_PATH = Jupyter.notebook.base_url + "nbextensions" + Constants.PATH_SEPARATOR + "visualpython" + Constants.PATH_SEPARATOR;
Constants.SOURCE_PATH = Constants.BASE_PATH + "js" + Constants.PATH_SEPARATOR;
Constants.IMAGE_PATH = Constants.BASE_PATH + "img" + Constants.PATH_SEPARATOR;
Constants.STYLE_PATH = Constants.BASE_PATH + "css" + Constants.PATH_SEPARATOR;
Constants.DATA_PATH = Constants.BASE_PATH + "data" + Constants.PATH_SEPARATOR;
Constants.PYTHON_PATH = Constants.BASE_PATH + "python" + Constants.PATH_SEPARATOR;
Constants.MAIN_CSS_URL = Constants.STYLE_PATH + "index.css";
Constants.VP_LIBRARIES_JSON_URL = Constants.DATA_PATH + "libraries.json";
//========================================================================
// HTML selectors
//========================================================================
Constants.VP_CONTAINER_ID = 'vp_wrapper';
Constants.JUPYTER_NOTEBOOK_ID = 'site';
Constants.JUPYTER_HEADER_ID = 'header';
return Constants;
});