Skip to content

Commit

Permalink
upgrade third party js dependencies in yacas-gui
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzmazur committed Feb 15, 2018
1 parent a9c7678 commit fef0de7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
21 changes: 14 additions & 7 deletions cyacas/yacas-gui/resources/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
include (${CMAKE_ROOT}/Modules/ExternalProject.cmake)
include (ExternalProject)

ExternalProject_Add (yacas-gui_codemirror
PREFIX external_packages
URL https://github.com/codemirror/CodeMirror/archive/5.23.0.zip
CONFIGURE_COMMAND ""
URL https://github.com/codemirror/CodeMirror/archive/5.34.0.zip
CONFIGURE_COMMAND npm install --no-progress
BUILD_IN_SOURCE 1
BUILD_COMMAND npm install --no-progress
BUILD_COMMAND npm run-script build
INSTALL_COMMAND "")

ExternalProject_Add (yacas-gui_flot
Expand All @@ -17,7 +17,7 @@ ExternalProject_Add (yacas-gui_flot

ExternalProject_Add (yacas-gui_three
PREFIX external_packages
URL https://github.com/mrdoob/three.js/archive/r84.zip
URL https://github.com/mrdoob/three.js/archive/r90.zip
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND "")
Expand All @@ -31,7 +31,7 @@ ExternalProject_Add (yacas-gui_vis

ExternalProject_Add (yacas-gui_mathjax
PREFIX external_packages
URL https://github.com/mathjax/MathJax/archive/2.7.0.zip
URL https://github.com/mathjax/MathJax/archive/2.7.3.zip
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND "")
Expand Down Expand Up @@ -62,7 +62,14 @@ if (NOT APPLE)

install (FILES ${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_flot/jquery.flot.js ${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_flot/jquery.flot.resize.js DESTINATION share/yacas/resources/flot)

install (FILES ${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/build/three.min.js ${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/examples/js/Detector.js ${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/examples/js/controls/TrackballControls.js ${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/examples/js/renderers/CanvasRenderer.js ${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/examples/js/renderers/Projector.js DESTINATION share/yacas/resources/three)
install (FILES
${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/build/three.min.js
${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/examples/js/Detector.js
${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/examples/js/controls/TrackballControls.js
${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/examples/js/renderers/CanvasRenderer.js
${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/examples/js/renderers/Projector.js
${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_three/examples/js/utils/SceneUtils.js
DESTINATION share/yacas/resources/three)

install (FILES ${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_vis/dist/vis.min.css ${CMAKE_BINARY_DIR}/cyacas/yacas-gui/resources/external_packages/src/yacas-gui_vis/dist/vis.min.js DESTINATION share/yacas/resources/vis)

Expand Down
1 change: 1 addition & 0 deletions cyacas/yacas-gui/resources/yacas_gui.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<script type="text/javascript" src="three/TrackballControls.js"></script>
<script type="text/javascript" src="three/Projector.js"></script>
<script type="text/javascript" src="three/CanvasRenderer.js"></script>
<script type="text/javascript" src="three/SceneUtils.js"></script>
<script type="text/javascript" src="plot3d/delaunay.js"></script>
<script type="text/javascript" src="plot3d/plot3d.js"></script>
<script type="text/javascript" src="mathbar/mathBar.js"></script>
Expand Down
4 changes: 1 addition & 3 deletions cyacas/yacas-gui/resources/yacas_gui/yacas_gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ function addInputEditor(lineid, number, value, rootElementID) {
return editor;
}



function addOutput(lineid, number, rootElementID) {
var outputID = "output_" + lineid;

Expand All @@ -220,7 +218,7 @@ function addOutput(lineid, number, rootElementID) {
$row.append("<td><div id='" + outputID + "' ></div></td>");

$(rootElementID).append($row);
$("#" + outputID).append("<img src='yagy_ui/progressbar.indicator.gif' width='20' ></img>");
$("#" + outputID).append("<img src='yacas_gui/progressbar.indicator.gif' width='20' ></img>");
}

function addSideEffects(number, side_effects, rootElementID) {
Expand Down

0 comments on commit fef0de7

Please sign in to comment.