mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 10:40:57 +00:00
Change script location.
Split js code. Added cache and changed loading mechanism for js sources.
This commit is contained in:
55
script/pages/editor/api/index.js
Normal file
55
script/pages/editor/api/index.js
Normal file
@@ -0,0 +1,55 @@
|
||||
|
||||
// Global version needs to force reload scripts from server.
|
||||
globalVersion = 75;
|
||||
|
||||
{
|
||||
let asyncFilesLoad = null;
|
||||
function onloadEditor() {
|
||||
console.log("onload() call");
|
||||
asyncFilesLoad();
|
||||
preLoadPage();
|
||||
postLoadPage();
|
||||
}
|
||||
|
||||
let modulDir = "pages/editor/";
|
||||
|
||||
doInclude ([
|
||||
include ("shared/utils.js"),
|
||||
|
||||
include ("entities/graph/api/index.js"),
|
||||
include ("features/draw_graph/api/index.js"),
|
||||
include ("features/algorithms/api/index.js"),
|
||||
|
||||
include ("features/base_handler/index.js"),
|
||||
include ("features/default_handler/index.js"),
|
||||
include ("features/add_vertices_handler/index.js"),
|
||||
include ("features/connect_vertices_handler/index.js"),
|
||||
include ("features/delete_objects_handler/index.js"),
|
||||
include ("features/algorithm_handler/index.js"),
|
||||
|
||||
include ("features/serialization/api/index.js"),
|
||||
|
||||
include ("features/enum_vertices/EnumVertices.js"),
|
||||
|
||||
include ("model/texts.js", modulDir),
|
||||
include ("model/Application.js", modulDir),
|
||||
include ("ui/main.js", modulDir)],
|
||||
onloadEditor);
|
||||
|
||||
|
||||
asyncFilesLoad = function () {
|
||||
doIncludeAsync ([
|
||||
include ("shared/canvas2svg.js"),
|
||||
include ("features/group_rename_handler/index.js"),
|
||||
include ("features/saved_graph_handler/index.js"),
|
||||
include ("features/saved_graph_image_handler/index.js"),
|
||||
include ("features/show_adjacency_matrix/index.js"),
|
||||
include ("features/show_distance_matrix/index.js"),
|
||||
include ("features/show_incidence_matrix/index.js"),
|
||||
include ("features/setup_background_style/index.js"),
|
||||
include ("features/setup_edge_style/index.js"),
|
||||
include ("features/setup_vertex_style/index.js"),
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
2031
script/pages/editor/api/index.js.cache
Normal file
2031
script/pages/editor/api/index.js.cache
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user