This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<h1>ReactJS - Root + CADViewer Container Sample</h1> | |
<noscript>You need to enable JavaScript to run this app.</noscript> | |
<div id="root"></div> | |
<div id="floorPlan"></div> | |
<!-- | |
This HTML file is a template. | |
If you open it directly in the browser, you will see an empty page. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title>React App</title> | |
<script src="/cadviewer/app/js/jquery-2.2.3.js" type="text/javascript"></script> | |
<script src="/cadviewer/app/js/jquery.qtip.min.js" type="text/javascript"></script> | |
<script src="/cadviewer/app/js/popper.js" type="text/javascript"></script> | |
<script src="/cadviewer/app/js/bootstrap.min.js" type="text/javascript"></script> | |
<script src="/cadviewer/app/js/jquery-ui-1.11.4.min.js" type="text/javascript"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init_CADViewer(){ | |
// If CADViewer is on a child/nested component, it will fire off the initialization multiple times, | |
// therefore we clean the component and init array on repeat call to the component | |
//if (isCADViewerInitializedInAngular){ | |
// jQuery("floorPlan").empty(); | |
// floorplans_divs_Initialized = ["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]; | |
// } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import {findDOMNode } from 'react-dom'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import { render } from '@testing-library/react'; | |
import ResizeObserver from 'rc-resize-observer'; | |
// import { View } from 'react-native'; | |
export const appendScript = (scriptToAppend, filetype) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ServerUrl" : "http://localhost:3000", | |
"ServerFrontEndUrl" : "http://localhost:8000", | |
"ServerLocation" : "c:/nodejs/cadviewer/", | |
"fileLocation" : "c:/nodejs/cadviewer/converters/files/", | |
"fileLocationUrl" : "http://127.0.0.1:3000/converters/files/", | |
"converterLocation" : "c:/nodejs/cadviewer/converters/ax2020/windows/", | |
"ax2020_executable" : "AX2020_W32_20_05_26.exe", | |
"licenseLocation" : "c:/nodejs/cadviewer/converters/ax2020/windows/", | |
"xpathLocation" : "c:/nodejs/cadviewer/converters/xpath/", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CADVIEWER INSTALLATION FOLDERS | |
// Location of installation Front-End ServerUrl | |
var ServerUrl = "http://localhost:8000/"; // ReactJS, Windows | |
// var ServerLocation = "/usr/bin/nodejs/cadviewer/"; // NodeJS, Linux | |
var ServerLocation = "C:/nodejs/cadviewer/"; // NodeJS, Windows | |
// Location of installation BackEnd ServerUrl | |
var ServerBackEndUrl = "http://localhost:3000/"; // NodeJS, Windows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CADVIEWER INSTALLATION FOLDERS | |
// ON Under Linux replace c:\xampp\tomcat\webapps with /var/lib/tomcat{X} | |
// Location of installation Path | |
var ServerLocation = "C:\\xampp\\tomcat\\webapps\\cadviewer\\"; | |
// Location of installation Url | |
var ServerUrl = "http://localhost:8080/cadviewer/"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- <script src="../app/cv/CADViewer_PHPHandlerSettings.js" type="text/javascript"></script> --> | |
<script src="../app/cv/CADViewer_ServletHandlerSettings.js" type="text/javascript"></script> | |
<!-- <script src="../app/cv/CADViewer_AshxHandlerSettings.js" type="text/javascript"></script> --> | |
<!-- <script src="../app/cv/CADViewer_NodeJSHandlerSettings.js" type="text/javascript"></script> --> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- BELOW Define servlets that are included in CADViewer application --> | |
<!-- NOTE: Under Linux replace c:\xampp\tomcat\webapps with /var/lib/tomcat{X}. --> | |
<servlet> | |
<servlet-name>AppendServlet</servlet-name> | |
<servlet-class>AppendServlet</servlet-class> | |
</servlet> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init_CADViewer(){ | |
// If local scope only for bootstrap stylesheet is needed, then add to CADViewer here | |
// At the same time, remove reference: "node_modules/bootstrap/dist/css/bootstrap.min.css", from angular.json "styles":[] | |
/* | |
jQuery("<link/>", { | |
rel: "stylesheet", | |
type: "text/css", | |
href: "/assets/cadviewer/app/css/bootstrap.min.css" | |
}).appendTo("head"); |