Skip to content

Commit

Permalink
Merge pull request #10 from CapsicoHealth/#1_first_proper_commit
Browse files Browse the repository at this point in the history
#1 first proper commit
  • Loading branch information
ldhasson authored Oct 6, 2023
2 parents 4d98d40 + b3c0399 commit d3d8e1b
Show file tree
Hide file tree
Showing 207 changed files with 94,083 additions and 21,585 deletions.
18 changes: 11 additions & 7 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>WebContent/static/floria.v2.0.OLD</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC/CapsicoBase/CapsicoWebStatic/WebContent/floria.v2.0</locationURI>
</link>
</linkedResources>
<filteredResources>
<filter>
<id>1685673814079</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
15 changes: 15 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=11
54 changes: 54 additions & 0 deletions WebContent/WEB-INF/classes/WebBasics.apps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ "apps":[
]
,"masterPaths":["/svc/Login"
,"/svc/Logout"
,"/svc/user/token"
,"/svc/tenantList"
,"/svc/user/guest/registration"
,"/svc/user/onboarding"
,"/svc/user/forgotPswd"
,"/svc/user/setPswd"
,"/svc/user/account"
,"/svc/admin/tenants"
,"/svc/admin/tenants/create"
,"/svc/admin/tenants/startJob"
,"/svc/admin/tenants/files/list"
,"/svc/admin/tenants/files"
,"/svc/admin/tenants/jobs"
,"/svc/admin/tenants/jobs/details"
,"/svc/admin/tenants/jobFiles/messages"
,"/svc/admin/user/invite"
,"/svc/admin/users"
,"/svc/admin/user/roles"
,"/svc/admin/user"
,"/svc/admin/user/validation"
,"/svc/Verifications"
,"/svc/test"
,"/svc/MyTenantList"
,"/svc/config"
,"/svc/SelectedTenant"
,"/svc/covid/data"
,"/svc/covid/history"
,"/svc/covid/symptoms/create"
,"/svc/formsapp/create"
]
,"authPassthroughs": [
"/home.jsp"
,"/svc/user/token"
,"/svc/Login"
,"/svc/Logout"
,"/svc/Signup"
,"/svc/user/forgotPswd"
,"/svc/user/setPswd"
,"/svc/user/guest/registration"
,"/svc/user/onboarding"
,"/svc/passwordRules"
,"/svc/Verifications"
,"/svc/test"
,"/svc/config"
,"/svc/covid/data"
,"/svc/covid/history"
,"/svc/covid/symptoms/create"
,"/svc/formsapp/create"
]
}
54 changes: 54 additions & 0 deletions WebContent/WEB-INF/classes/WebBasics.apps.json.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ "apps":[
]
,"masterPaths":["/svc/Login"
,"/svc/Logout"
,"/svc/user/token"
,"/svc/tenantList"
,"/svc/user/guest/registration"
,"/svc/user/onboarding"
,"/svc/user/forgotPswd"
,"/svc/user/setPswd"
,"/svc/user/account"
,"/svc/admin/tenants"
,"/svc/admin/tenants/create"
,"/svc/admin/tenants/startJob"
,"/svc/admin/tenants/files/list"
,"/svc/admin/tenants/files"
,"/svc/admin/tenants/jobs"
,"/svc/admin/tenants/jobs/details"
,"/svc/admin/tenants/jobFiles/messages"
,"/svc/admin/user/invite"
,"/svc/admin/users"
,"/svc/admin/user/roles"
,"/svc/admin/user"
,"/svc/admin/user/validation"
,"/svc/Verifications"
,"/svc/test"
,"/svc/MyTenantList"
,"/svc/config"
,"/svc/SelectedTenant"
,"/svc/covid/data"
,"/svc/covid/history"
,"/svc/covid/symptoms/create"
,"/svc/formsapp/create"
]
,"authPassthroughs": [
"/home.jsp"
,"/svc/user/token"
,"/svc/Login"
,"/svc/Logout"
,"/svc/Signup"
,"/svc/user/forgotPswd"
,"/svc/user/setPswd"
,"/svc/user/guest/registration"
,"/svc/user/onboarding"
,"/svc/passwordRules"
,"/svc/Verifications"
,"/svc/test"
,"/svc/config"
,"/svc/covid/data"
,"/svc/covid/history"
,"/svc/covid/symptoms/create"
,"/svc/formsapp/create"
]
}
129 changes: 64 additions & 65 deletions WebContent/error.jsp
Original file line number Diff line number Diff line change
@@ -1,65 +1,64 @@
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@page import="tilda.utils.HttpStatus"%>
<%@page import="tilda.utils.TextUtil"%>
<%@page import="java.util.Enumeration"%>

<%
HttpStatus Status = HttpStatus.parse((Integer) request.getAttribute("javax.servlet.error.status_code"));
String StatusMessage = (String) request.getAttribute("javax.servlet.error.message");
String PageTitle=Status._Code == HttpStatus.Unauthorized._Code ? "CapsicoHealth Login" : "CapsicoHealth error: "+Status._Code;
%>
<link rel="stylesheet" href="/static/dojo-release-1.16.4/dijit/themes/claro/claro.css"/>
<link rel="stylesheet" href="/static/css/dojoSimple.css"/>
<link rel="stylesheet" href="/static/css/tilda.css"/>

<STYLE>
.elegantShadow {
color: #131313;
letter-spacing: .1em;
font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 50px;
padding: 5px 10px 10px 20px;
margin: 10px 20px 10px 20px;
text-align: center;
text-transform: uppercase;
text-rendering: optimizeLegibility;
text-shadow: -1px -1px 0 #666, -2px 2px 1px #aaa, -3px 3px 1px #eee;
}
#ERR_MSG {
font-weight: normal;
text-transform: none;
letter-spacing: -1px;
font-size: 40%;
text-shadow: none;
}
</STYLE>

<DIV id="LogginBackground" class="fullCenter" style="width: 100%; height: 100%; overflow: hidden; z-index: 5;"></DIV>
<DIV id="LogginButton" class="fullCenter" style="width: 100%; height: 100%; font-size: 150%; overflow: hidden; z-index: 10;" >
<DIV class="fullCenter capsicoLogo">
<DIV class="elegantShadow">
<%
Throwable T = (Throwable) request.getAttribute("javax.servlet.error.exception");
if (T != null && TextUtil.isNullOrEmpty(T.getMessage()) == false)
out.println("<!-- "+T.getMessage()+" -->");
if (Status._Code == HttpStatus.Unauthorized._Code) { %>
Session Timeout
<DIV id="ERR_MSG">You were inactive for more than 20 minutes</DIV>
</DIV>
<CENTER><BUTTON class="buttonLogin" onClick="dojoSimple.PopupLogin.show(false, function() { document.location.reload();})" style="font-size: 75%; font-weight: bold;">Login again</BUTTON></CENTER>
</DIV>
<% } else if (Status._Code == HttpStatus.ResourceNotFound._Code) { %>
Page not found
<DIV id="ERR_MSG">You have reached this page in error or do not have access<BR>Use your browser's Back button</DIV>
</DIV>
</DIV>
<% } else { %>
<%=Status._Message%>
<DIV id="ERR_MSG"><%=StatusMessage%></DIV>
</DIV>
<CENTER style="position: relative; top: -15px;">&#x26a0; <%=Status._Code%></CENTER>
</DIV>
<% } %>
</DIV>
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@page import="tilda.utils.HttpStatus"%>
<%@page import="tilda.utils.TextUtil"%>
<%@page import="java.util.Enumeration"%>

<%
HttpStatus Status = HttpStatus.parse((Integer) request.getAttribute("javax.servlet.error.status_code"));
String StatusMessage = (String) request.getAttribute("javax.servlet.error.message");
String PageTitle=Status._Code == HttpStatus.Unauthorized._Code ? "CapsicoHealth Login" : "CapsicoHealth error: "+Status._Code;
%>
<link rel="stylesheet" href="/static/css/dojoSimple.css"/>
<link rel="stylesheet" href="/static/css/tilda.css"/>

<STYLE>
.elegantShadow {
color: #131313;
letter-spacing: .1em;
font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 50px;
padding: 5px 10px 10px 20px;
margin: 10px 20px 10px 20px;
text-align: center;
text-transform: uppercase;
text-rendering: optimizeLegibility;
text-shadow: -1px -1px 0 #666, -2px 2px 1px #aaa, -3px 3px 1px #eee;
}
#ERR_MSG {
font-weight: normal;
text-transform: none;
letter-spacing: -1px;
font-size: 40%;
text-shadow: none;
}
</STYLE>

<DIV id="LogginBackground" class="fullCenter" style="width: 100%; height: 100%; overflow: hidden; z-index: 5;"></DIV>
<DIV id="LogginButton" class="fullCenter" style="width: 100%; height: 100%; font-size: 150%; overflow: hidden; z-index: 10;" >
<DIV class="fullCenter capsicoLogo">
<DIV class="elegantShadow">
<%
Throwable T = (Throwable) request.getAttribute("javax.servlet.error.exception");
if (T != null && TextUtil.isNullOrEmpty(T.getMessage()) == false)
out.println("<!-- "+T.getMessage()+" -->");
if (Status._Code == HttpStatus.Unauthorized._Code) { %>
Session Timeout
<DIV id="ERR_MSG">You were inactive for more than 20 minutes</DIV>
</DIV>
<CENTER><BUTTON class="buttonLogin" onClick="FloriaLogin.PopupLogin.show(false, function() { document.location.reload();})" style="font-size: 75%; font-weight: bold;">Login again</BUTTON></CENTER>
</DIV>
<% } else if (Status._Code == HttpStatus.ResourceNotFound._Code) { %>
Page not found
<DIV id="ERR_MSG">You have reached this page in error or do not have access<BR>Use your browser's Back button</DIV>
</DIV>
</DIV>
<% } else { %>
<%=Status._Message%>
<DIV id="ERR_MSG"><%=StatusMessage%></DIV>
</DIV>
<CENTER style="position: relative; top: -15px;">&#x26a0; <%=Status._Code%></CENTER>
</DIV>
<% } %>
</DIV>
62 changes: 43 additions & 19 deletions WebContent/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>TIDE: Tilda Workbench</title>
<link rel="stylesheet" href="/static/dojo-release-1.16.4/dijit/themes/claro/claro.css"/>
<link rel="stylesheet" href="/static/css/dojoSimple.css"/>
<link rel="stylesheet" href="/static/css/tilda.css"/>

<link rel="stylesheet" href="/static/js/style.css"/>
</head>
<body class="claro">

Expand All @@ -23,7 +22,7 @@
<MAIN id="MAINCONTAINER_PROJECTS" class="mainContainerBody">
<DIV id="PROJECTS" class="column left" style="top:75px; bottom:75px; left:15%; width:70%; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin;">
<DIV class="tileHeader360g">
Projects <A href="javascript:TILDA_GLOBAL.addProject();"><IMG src="/static/img/add.gif"></A>
Projects <A href="javascript:TILDA_GLOBAL.addProject();" title="New Project"><IMG src="/static/img/add.gif"></A>
<span class="searchBox"><input class="searchInput" type="text" name="" placeholder="Search"></span>
</DIV>
<DIV id="PROJECT_LIST" class="tileGroup360g"><IMG src="/static/img/progress.gif"></DIV>
Expand All @@ -33,14 +32,30 @@
<MAIN id="MAINCONTAINER_SCHEMAS" class="mainContainerBody" style="display:none;">
<DIV id="SCHEMAS" class="column left" style="top:75px; bottom:75px; left:5px; width:18%; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin;">
<DIV class="tileHeader360g">
Entities <A href="javascript:TILDA_GLOBAL.addProject();"><IMG src="/static/img/add.gif"></A>
Schemas <A href="javascript:TILDA_GLOBAL.addSchema();" title="New Schema"><IMG src="/static/img/add.gif"></A>
<span class="searchBox"><input class="searchInput" type="text" name="" placeholder="Search"></span>
</DIV>
<DIV id="ENTITY_LIST"><IMG src="/static/img/progress.gif"></DIV>
<DIV id="SCHEMA_LIST"><IMG src="/static/img/progress.gif"></DIV>
</DIV>
<DIV id="EDITORS" class="column right" style="top:75px; bottom:75px; left:20%; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin;">
<DIV id="EDITOR"></DIV>
</MAIN>

<MAIN id="MAINCONTAINER_ENTITIES" class="mainContainerBody" style="display:none;">
<DIV id="ENTITIES" class="column left" style="top:75px; bottom:25px; left:5px; width:18%; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin;">
<DIV class="tileHeader360g">
Entities <A href="javascript:TILDA_GLOBAL.addEntity();" title="New Entity"><IMG src="/static/img/add.gif"></A>
<span class="searchBox"><input id="ENTITIES_SEARCH" class="searchInput" type="text" name="" placeholder="Search"></span>
</DIV>
<DIV id="ENTITY_LIST"><IMG src="/static/img/progress.gif"></DIV>
</DIV>
<DIV id="EDITORS" class="column right" style="top:75px; bottom:25px; left:20%; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin;">
<!--
<textarea id="EDITOR" wrap="off" style="tab-size:4; width:98%; height:98%;"></textarea >
-->
<DIV id="ER_EDITOR" style="position: relative; width:98%; height:98%;">
<button id="ER_EDITOR_ADD_CANVAS_BUTTON">Add New Canvas</button>
<div id="ER_EDITOR_CANVAS_TABS"></DIV>
<div id="ER_EDITOR_CANVAS_CONTAINER" class="canvas"></div>
</DIV>
</MAIN>

<FOOTER id="MAINCONTAINER_FOOTER">
Expand All @@ -53,30 +68,39 @@

</div>

<scriptX src="https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs/loader.js"></scriptX>
<script src="/static/jslibs/jquery/3.6.0/jquery.min.js"></script>
<script src="/static/jslibs/lodash.js/4.17.21/lodash.min.js"></script>
<script src="/static/jslibs/backbone.js/1.4.0/backbone-min.js"></script>
<script src="/static/jslibs/jointjs/3.4.2/joint.min.js"></script>
<script src="/static/js/joint.shapes.uml.js"></script>

<SCRIPT> var djConfig = { isDebug: false, locale: 'en-us', parseOnLoad: false, disableFlashStorage:true, parseWidgets:false, baseUrl: "/static/",
packages: [ { name: "dojo", location: "dojo-release-1.16.4/dojo" },
{ name: "dijit", location: "dojo-release-1.16.4/dijit" },
{ name: "dojox", location: "dojo-release-1.16.4/dojox" },
{ name: "floria", location: "floria.v2.0" },
{ name: "js", location: "js" },
{ name: "json", location: "json" }
]
};
window.CapsicoDojoSimpleLibJS = "floria.v2.0/dojoSimple";
</SCRIPT>
<script src="/static/dojo-release-1.16.4/dojo/dojo.js"></script>
<SCRIPT type="module">
import { projects } from "/static/js/module-projects.js";

window.TILDA_GLOBAL = {
addProject: function()
{
projects.addProject("PROJECT_LIST");
}
,addSchema: function()
{
alert("not implemented yet");
}
,addEntity: function()
{
alert("not implemented yet");
}
};
projects.start("PROJECT_LIST");

</SCRIPT>
<!--
<script src="https://cdn.jsdelivr.net/npm/sceditor@3/minified/sceditor.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.0.min.js"></script>
-->



</body>
</html>
Expand Down
Loading

0 comments on commit d3d8e1b

Please sign in to comment.