/* * 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.4.9" , ICON: "vp-main-icon" , ID: "vpBtnToggle" , NAME: "toggle-vp" , PREFIX: "vp" , ICON_CONTAINER: "" } //======================================================================== // Base Path Constants //======================================================================== Constants.PATH_SEPARATOR = "/"; // CHROME: edited // Constants.BASE_PATH = Jupyter.notebook.base_url + "nbextensions" + Constants.PATH_SEPARATOR + "visualpython" + Constants.PATH_SEPARATOR; Constants.BASE_PATH = vpBase + "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; });