-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add documentation support via github
- Loading branch information
Showing
18 changed files
with
280 additions
and
161 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
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,25 @@ | ||
|
||
angular.module('docs-directives', []); | ||
angular.module('docs-directives') | ||
|
||
.directive('msFaq', ['$http', function($http) { | ||
return { | ||
template: '<div id="docs" ng-bind-html="data"></div>'+ | ||
'<a class="edit-docs-btn no-href" href="{{githubURL}}" target="_blank">'+ | ||
'<i class="icon-pencil2"></i> Edit on Github'+ | ||
'</a>', | ||
link: function(scope, elem, attr) { | ||
var url = attr.msFaq; | ||
$http.get(url) | ||
.then(function(res) { | ||
var text = window.atob(res.data.content); | ||
scope.githubURL = res.data.html_url; | ||
|
||
var converter = new showdown.Converter(), | ||
html = converter.makeHtml(text); | ||
|
||
scope.data = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
<div ms-faq="https://api.github.com/repos/ModelSEED/Documentation/contents/faq.md" layout-margin></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<md-sidenav class="md-sidenav-left md-whiteframe-z2" | ||
md-component-id="left" | ||
md-is-locked-open="$mdMedia('min-width: 870px')" | ||
style="height: 100%;"> | ||
|
||
<md-toolbar ng-controller="LeftCtrl" style="background-color: #444;"> | ||
<div class="md-toolbar-tools"> | ||
<md-button class="md-icon-button" aria-label="Settings"> | ||
<md-icon class="material-icons">menu</md-icon> | ||
</md-button> | ||
<div class="logo"> | ||
<a ui-sref="home">Model<span>SEED<span></a> | ||
</div> | ||
</div> | ||
|
||
</md-toolbar> | ||
|
||
<md-content layout-padding> | ||
<div id="selected-models" ng-controller="SelectedData"> | ||
<div class="header"> | ||
<i class="icon-lab"></i> | ||
Model Analysis | ||
<span class="model-count" ng-controller="ModelCount">({{MV.models.length}})</span> | ||
|
||
</div> | ||
|
||
<hr class="no-margin"> | ||
|
||
<ul ng-show="MV.models.length" class="list-unstyled"> | ||
<li ng-repeat="item in MV.models track by $index" class="selected-model"> | ||
|
||
<div class="ellipsis selected-data-item" ng-click="makeActive($event)"> | ||
<a ui-sref=".modelPage({path: item.model})" | ||
class="model"> | ||
{{item.org}} | ||
</a> | ||
<i class="icon-close hover pointer" | ||
ng-click="MV.rm($index)"> | ||
</i> | ||
</div> | ||
|
||
<div class="ellipsis selected-data-item"> | ||
<a ui-sref=".fbaPage({path: item.fba})" | ||
class="fba" ng-click="makeActive($event)"> | ||
<span class="label label-fba">FBA</span> {{item.media}} | ||
</a> | ||
|
||
<i class="glyphicon glyphicon-cog hover pointer" | ||
ng-click="openFBAView($event, $index, item)"> | ||
</i> | ||
</div> | ||
</li> | ||
</ul> | ||
<div class="pull-right" ng-if="MV.models.length"> | ||
(<a ng-click="MV.rmAll()"> | ||
<small>Clear All</small> | ||
</a>) | ||
</div> | ||
|
||
<div ng-if="!MV.models.length" class="warning-msg"> | ||
|
||
</div> | ||
</div> | ||
</md-content> | ||
</md-sidenav> |
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,87 @@ | ||
|
||
<ul class="toolbar" > | ||
<li ng-class="{ active: $state.includes('app.biochem') }"> | ||
<a ui-sref="app.biochem"> | ||
<i class="icon-benzene"></i> <span hide-sm>Biochemistry</span> | ||
</a> | ||
</li> | ||
<li ng-class="{ active: $state.includes('app.reconstruct') }"> | ||
<a ui-sref="app.reconstruct"> | ||
<i class="icon-tools"></i> <span hide-sm>Reconstruct</span> | ||
</a> | ||
</li> | ||
<!--<li ng-class="{ active: $state.includes('app.myData') }"> | ||
<a ui-sref="app.myData({dir: '/'+$root.user})"> | ||
<i class="icon-archive2"></i> All Files | ||
</a> | ||
</li>--> | ||
<li ng-class="{ active: $state.includes('app.myModels') }"> | ||
<a ui-sref="app.myModels"> | ||
<i class="icon-folder-open-o"></i> <span hide-sm>My Models</span> | ||
</a> | ||
</li> | ||
|
||
<!-- | ||
<li ng-class="{ active: $state.includes('app.reconstruct') }"> | ||
<a ui-sref="app.reconstruct"> | ||
<i class="icon-tools"></i> Reconstruct | ||
</a> | ||
</li>--> | ||
<!--<li ng-class="{ active: $state.includes('app.publicModels') }"> | ||
<a ui-sref="app.publicModels"> | ||
<i class="icon-earth"></i> Public | ||
</a> | ||
</li>--> | ||
<!--<li ng-class="{ active: $state.includes('app.modelEditor')}" > | ||
<a ui-sref="app.modelEditor">Model Editor</a> | ||
</li>--> | ||
<!--<li ng-class="{ active: $state.includes('app.compare')}" > | ||
<a ui-sref="app.compare"> | ||
<i class="icon-lab"></i> | ||
Analysis | ||
<span class="model-count" ng-controller="ModelCount">({{MV.models.length}})</span> | ||
</a> | ||
</li>--> | ||
</ul> | ||
<span flex></span> | ||
|
||
|
||
<ul class="nav navbar-nav"> | ||
<li class="dropdown"> | ||
<a class="dropdown-toggle cursor" data-toggle="dropdown">More | ||
<i class="fa fa-caret-down"></i> | ||
</a> | ||
<ul class="dropdown-menu"> | ||
<li> | ||
<a ui-sref="app.myData({dir: '/'+$root.user})"> | ||
<i class="icon-archive2"></i> All My Files | ||
</a> | ||
</li> | ||
<li role="separator" class="divider"></li> | ||
<li> | ||
<a ui-sref="app.faq">FAQ</a> | ||
</li> | ||
<li> | ||
<a ui-sref="home">About</a> | ||
</li> | ||
<!--<li> | ||
<a ui-sref="app.api"><i class="fa fa-sign-out fa-fw"></i> API Documentation</a> | ||
</li>--> | ||
</ul> | ||
</li> | ||
<li ng-if="$root.user" class="dropdown" ng-controller="Login"> | ||
<a class="dropdown-toggle cursor" data-toggle="dropdown" style="padding-top: 5px; padding-bottom: 5px;"> | ||
{{$root.user.split('@')[0]}} | ||
<br> | ||
<small>@{{$root.user.split('@')[1] ? $root.user.split('@')[1] : ' RAST'}}</small> | ||
<i class="fa fa-caret-down vertical-center"></i> | ||
</a> | ||
<ul class="dropdown-menu"> | ||
<li> | ||
<a ng-click="logout()"> | ||
<i class="fa fa-sign-out fa-fw"></i> Logout | ||
</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> |
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
Oops, something went wrong.