Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#830: First spike of welcome page and option to turn it on/off in pre…
…ference.
- Loading branch information
Showing
7 changed files
with
117 additions
and
2 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,29 @@ | ||
<h3 class="help-header">Welcome to <img class='no-shadow' ng-src='{{branding.appLogo}}'>{{branding.appName}} </h3> | ||
|
||
Don't cha wish your console was <a href="http://www.youtube.com/watch?v=YNSxNsr4wmA">hawt like me</a>? I'm <i>hawt</i> so you can stay cool! | ||
|
||
<b>{{branding.appName}}</b> is a lightweight and <a href="http://hawt.io/plugins/index.html">modular</a> HTML5 web console with <a href="http://hawt.io/plugins/index.html">lots of plugins</a> for managing your Java stuff | ||
|
||
##### General Navigation ##### | ||
Primary navigation in [{{branding.appName}}](http://hawt.io "{{branding.appName}}") is via the top navigation bar. | ||
|
||
![Main Navigation Bar](app/core/doc/img/main-nav.png "Main Navigation Bar") | ||
|
||
Clicking on a navigation link will take you to that plugin's main page. | ||
|
||
<i class='yellow text-shadowed icon-warning-sign'></i> **Note:** The available links in the navigation bar depend on what plugins are available and what JMX MBeans are available in the JVM, and so may differ from what is shown here. | ||
|
||
##### Getting Help ##### | ||
Click the Help icon (<i class='icon-question-sign'></i>) in the main navigation bar to access [{{branding.appName}}](http://hawt.io "{{branding.appName}}")'s help system. Browse the available help topics for plugin-specific documentation using the help navigation bar on the left. | ||
|
||
![Help Topic Navigation Bar](app/core/doc/img/help-topic-nav.png "Help Topic Navigation Bar") | ||
|
||
Available sub-topics for each plugin can be selected via the secondary navigation bar above the help display area. | ||
|
||
![Help Sub-Topic Navigation Bar](app/core/doc/img/help-subtopic-nav.png "Help Sub-Topic Navigation Bar") | ||
|
||
##### Preferences ##### | ||
Click the Preferences icon (<i class='icon-cogs'></i>) in the main navigation bar to access the [Preferences](#/preferences) page. Available configuration options include, but not limited to: | ||
|
||
|
||
|
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,16 @@ | ||
<div ng-controller="Core.WelcomeController"> | ||
<div class="row-fluid"> | ||
<div class="span8"> | ||
<div class="row welcome-display"> | ||
<!-- the html to display as welcome page --> | ||
<div compile="html"></div> | ||
</div> | ||
|
||
<!-- TODO: have a nicer button --> | ||
<div> | ||
<button type="button" class="close" ng-click="stopShowingWelcomePage()">Do not show welcome page on startup</button> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> |
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,38 @@ | ||
/** | ||
* @module Core | ||
*/ | ||
module Core { | ||
|
||
export function WelcomeController($scope, $location, branding, localStorage) { | ||
|
||
var log:Logging.Logger = Logger.get("Welcome"); | ||
|
||
$scope.stopShowingWelcomePage = () => { | ||
log.info("Stop showing welcome page"); | ||
localStorage['showWelcomePage'] = false; | ||
|
||
log.info("Redirecting to default page"); | ||
$location.path("/"); | ||
}; | ||
|
||
// load the welcome.md file | ||
$.ajax({ | ||
url: "app/core/doc/welcome.md", | ||
dataType: 'html', | ||
cache: false, | ||
success: function (data, textStatus, jqXHR) { | ||
$scope.html = "Unable to download welcome.md"; | ||
if (angular.isDefined(data)) { | ||
$scope.html = marked(data); | ||
$scope.branding = branding; | ||
} | ||
Core.$apply($scope); | ||
}, | ||
error: function (jqXHR, textStatus, errorThrown) { | ||
$scope.html = "Unable to download welcome.md"; | ||
Core.$apply($scope); | ||
} | ||
}) | ||
} | ||
|
||
} |
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