Skip to content

Commit

Permalink
view content and config update
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Jul 29, 2018
1 parent 1ef3854 commit 57b5f86
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 9 deletions.
1 change: 1 addition & 0 deletions app/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func init() {
//__________________________________________________________________________
aah.AddTemplateFunc(template.FuncMap{
"docurlc": util.TmplDocURLc,
"docurl": util.TmplRDocURL,
"docediturl": util.TmplDocEditURL,
"absrequrl": util.TmplAbsReqURL,
"vergteq": util.TmplVerGtEq,
Expand Down
5 changes: 5 additions & 0 deletions app/util/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ func TmplDocURLc(viewArgs map[string]interface{}, key string) template.HTML {
return template.HTML(fmt.Sprintf("/%s/%s", version, fileName))
}

// TmplRDocURL method returns the doc relative url with give prefix.
func TmplRDocURL(rootPrefix template.URL, key string) template.URL {
return template.URL(fmt.Sprintf("%s%s/%s", string(rootPrefix), releases[0], aah.AppConfig().StringDefault(key, "")))
}

// TmplDocEditURL method compose github documentation edit URL
func TmplDocEditURL(docFile string) template.URL {
var pattern string
Expand Down
2 changes: 1 addition & 1 deletion config/aah.conf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ link {
github = "https://github.com/go-aah/aah"
github_org = "https://github.com/go-aah"
twitter = "https://twitter.com/aahframework"
stackoverflow = "https://stackoverflow.com/questions/tagged/aahframework"
stackoverflow = "https://stackoverflow.com/questions/tagged/aah"
mailling_list = "https://groups.google.com/forum/#!forum/aahframework"
mailling_list_security = "https://groups.google.com/forum/#!forum/aahframework-security"
gitter = "https://gitter.im/aahframework/community"
Expand Down
4 changes: 4 additions & 0 deletions static/css/aah.css
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,10 @@ pre, code {
margin-top: 75px;
}

.ft-16em {
font-size: 1.6em !important;
}

.footer {
margin-top: 70px;
font-size: 13px;
Expand Down
4 changes: 2 additions & 2 deletions views/pages/site/features.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ <h2 class="no-anchor">SPA and Mobile app support</h2>
<h2 class="no-anchor">Real-time app support</h2>
<p>aah supports real-time application architecture.</p>
<ul class="list-unstyled">
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;WebSocket</li>
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;Server-Sent Events (SSE) - upcoming</li>
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;WebSocket - Bidirectional</li>
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;Server-Sent Events (SSE) - Unidirectional [upcoming]</li>
</ul>
</div>
<div class="col-xs-12 col-lg-6">
Expand Down
2 changes: 1 addition & 1 deletion views/pages/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h5 class="no-anchor">Uncompromising Security</h5>
<div class="col-xs-12 col-sm-6 col-md-3 col-lg-3">
<i class="fas fa-reply fa-3x aah-color" aria-hidden="true"></i>
<h5 class="no-anchor">Powerful Reply</h5>
<p>RESTful or Render with your choice of view engine - Enhanced Go, Pug (Jade), many more to come.</p>
<p>RESTful or Render with your choice of view engine - Enhanced Go template, many more to come.</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-3 col-lg-3">
<i class="fas fa-tachometer-alt fa-3x aah-color" aria-hidden="true"></i>
Expand Down
14 changes: 9 additions & 5 deletions views/pages/site/security.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>Security</h1>
<p>build uncompromised security into your application</p>
</div>
<div class="aah-security-section">
<p class="summary">aah is a security aware framework and its easy to use. It was inspired by <a href="https://shiro.apache.org/" target="_blank">Apache Shiro security library</a>.</p>
<p class="summary text-center ft-16em">aah is a security aware framework. Enterprise-grade features and easy to use.</p><br>
<p class="summary">aah takes security very seriously, you’re welcome to do peer review of aah’s 100% open source code to ensure nobody’s aah application is ever compromised or hacked. As an application developer you’re responsible for any security breaches. I do my best to make sure aah application is as secure as possible.</p>
<div class="">
<h3>What aah automatically does?</h3>
Expand All @@ -38,16 +38,20 @@ <h3>What aah automatically does?</h3>
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;All errors and traces from application gets logged into log file, not exposed outside on environment profile prod.</li>
</ul>
</div>
<div class="">
<div>
<h3>Introducing Authentication and Authorization</h3>
<p>Powerful security feature yet easy to use with application code base and view files.</p>
<p>Powerful security feature yet easy to use with application code base and view files. It is inspired by <a href="https://shiro.apache.org/" target="_blank">Apache Shiro security library</a>.</p>
<ul class="list-unstyled">
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;Cool session management for web applications and stateless for RESTful.</li>
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;You can implement Role based or Permission based or Role and Permissions based</li>
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;OOTB supported auth schemes are Form Auth, Basic Auth and Generic Auth.</li>
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;aah supports ACL, RBAC, ABAC, or custom (name your own). This is the capabilities of aah security design.</li>
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;OOTB supported auth schemes are Form Auth, Basic Auth, OAuth2 and Generic Auth.</li>
<li><i class="fas fa-angle-right" aria-hidden="true"></i>&nbsp;Mutliple auth-schemes within application and each can be mapped per route basis.</li>
</ul>
</div>
<div><br><br>
{{ $docRoot := (rurl . "docs.index") }}
<p class="text-center">Learn more about <a href="{{ docurl $docRoot "docs.security_terminology" }}">Security - Terminology</a>, <a href="{{ docurl $docRoot "docs.security_design" }}">Security - Design</a>, <a href="{{ docurl $docRoot "docs.authc" }}">Authentication</a>, <a href="{{ docurl $docRoot "docs.authz" }}">Authorization</a></p>
</div>
</div>
</div>
{{- end }}

0 comments on commit 57b5f86

Please sign in to comment.