-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked landing page to emphasize editor / dashboard.
- Loading branch information
Showing
7 changed files
with
193 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!doctype html> | ||
<html class="no-js" lang="en" dir="ltr"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>CaSS Concept Editor</title> | ||
<link rel="stylesheet" href="css/jquery-ui.min.css"> | ||
<link rel="stylesheet" href="css/foundation.min.css"> | ||
<link rel="stylesheet" href="css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="css/cass-ui.css"> | ||
</head> | ||
|
||
<body> | ||
<div> | ||
<!-- MAIN MENU --> | ||
<div class="sticky" data-sticky data-margin-top="0"> | ||
<div id="main-menu"> | ||
<div class="grid-container full"> | ||
<!-- Mobile menu --> | ||
<div class="title-bar" data-responsive-toggle="animated-menu" data-hide-for="medium"> | ||
<button class="menu-icon" type="button" data-toggle></button> | ||
<div class="title-bar-title">Menu</div> | ||
</div> | ||
<div class="top-bar" id="animated-menu" data-animate="hinge-in-from-top hinge-out-from-top"> | ||
<div class="top-bar-left"> | ||
<ul class="dropdown menu" data-dropdown-menu> | ||
<li class="menu-text"><a title="CaSS Home" href="cass-ui-home.html"><img src="img/CASS-Logo-website-white_3.png"></a></li> | ||
</ul> | ||
</div> | ||
<div class="top-bar-right"> | ||
<ul class="dropdown menu" data-dropdown-menu> | ||
<li><a title="CaSS Explorer Home" onclick="goToCassUiHomePage()"><i class="fa fa-home" aria-hidden="true"></i></a></li> | ||
<li> | ||
<a href="#"><i class="fa fa-user-circle"></i> <span id="cassUiLoggedInName"></span></a> | ||
<ul class="menu vertical"> | ||
<li><a onclick="logoutCassUi()">Logout</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!--END MAIN MENU --> | ||
|
||
<!--CONTENTS--> | ||
<div class="cassUiIframeContainer"> | ||
<iframe id="prfExpIFrame" class="cassUiIframe" style="background-color:white;"></iframe> | ||
</div> | ||
<!--END CONTENTS--> | ||
|
||
</div> | ||
|
||
<script src="js/vendor/jquery.js"></script> | ||
<script src="js/vendor/foundation.js"></script> | ||
<script src="js/cass/cass.min.js"></script> | ||
<script src="js/util/cass-ui-util.js"></script> | ||
<script src="js/util/cass-ui-session-util.js"></script> | ||
<script src="js/page/cass-ui-concept-editor-ctr.js"></script> | ||
|
||
</body> | ||
|
||
</html> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
//************************************************************************************************** | ||
// CASS UI Profile Explorer Functions | ||
//************************************************************************************************** | ||
|
||
//************************************************************************************************** | ||
// Constants | ||
|
||
const ADD_CEASN_DATA_FIELDS = false; | ||
const CEASN_FIELD_TOGGLE = "ceasnDataFields=true"; | ||
|
||
const PRF_EXP_IFRAME = "#prfExpIFrame"; | ||
const PRF_EXP_IFRAME_SOURCE = "cass-editor/index.html?concepts=true&tlaProfile=true&user=wait&editIframe=true"; | ||
|
||
const WAITING_MESSAGE = "waiting"; | ||
const INIT_FWK_EXP_MESSAGE = "initFrameworkExplorer"; | ||
|
||
const INIT_IDENTITY_ACTION = "identity"; | ||
|
||
const CASSUI_FWK_EXP_PAGE = "cass-ui-concept-editor-ctr.html"; | ||
|
||
//************************************************************************************************** | ||
// Variables | ||
|
||
//************************************************************************************************** | ||
// Page Functions | ||
//************************************************************************************************** | ||
|
||
function handleInitFrameworkExplorerMessage(frameworkId) { | ||
debugMessage("handleInitFrameworkExplorerMessage storing framework id: " + frameworkId); | ||
storeFrameworkToExploreInfo(frameworkId); | ||
location.replace(CASSUI_FWK_EXP_PAGE); | ||
} | ||
|
||
function sendIdentityInitializeMessage() { | ||
$(PRF_EXP_IFRAME)[0].contentWindow.postMessage(JSON.stringify({ | ||
action: INIT_IDENTITY_ACTION, | ||
identity: loggedInPpkPem | ||
}), window.location.origin); | ||
} | ||
|
||
$(PRF_EXP_IFRAME).ready(function () { | ||
$(window).on("message", function (event) { | ||
if (event.originalEvent.data.message == WAITING_MESSAGE) { | ||
sendIdentityInitializeMessage(); | ||
} else if (event.originalEvent.data.message == INIT_FWK_EXP_MESSAGE) { | ||
handleInitFrameworkExplorerMessage(event.originalEvent.data.frameworkId); | ||
} | ||
}); | ||
}); | ||
|
||
function getEditorIframeSourceLink() { | ||
var ifs = PRF_EXP_IFRAME_SOURCE; | ||
if (ADD_CEASN_DATA_FIELDS) ifs += "&" + CEASN_FIELD_TOGGLE; | ||
ifs += "&origin="+ window.location.origin + "&server=" + selectedServer; | ||
debugMessage("Opening cass concept editor iFrame with: " + ifs); | ||
return ifs; | ||
} | ||
|
||
function init() { | ||
loadCassUiSessionState(); | ||
$(PRF_EXP_IFRAME).attr("src", getEditorIframeSourceLink()); | ||
setCassUiMainMenuUserName(); | ||
} | ||
|
||
//************************************************************************************************** | ||
// Document on ready | ||
//************************************************************************************************** | ||
|
||
$(document).ready(function () { | ||
init(); | ||
}); |
This file contains 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
This file contains 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