This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(grunt): use Angular UI publisher
- Loading branch information
1 parent
a9e641d
commit d18a7d1
Showing
6 changed files
with
210 additions
and
41 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
bower_components | ||
dist | ||
out |
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,134 @@ | ||
<section id="layout" ng-app="doc.ui-layout"> | ||
|
||
<!-- =Minimal code | ||
--------------------------------------------------------------------------- --> | ||
<div id="demo-mini"> | ||
<div class="page-header"> | ||
<h1>Minimal code</h1> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div style="position: relative; height: 220px;"> | ||
<div ui-layout class="layout-mock"> | ||
<div class="center-back"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-6" ng-controller="PlunkerCtrl" | ||
ng-init=" | ||
vendor_css=['https://rawgithub.com/angular-ui/ui-layout/master/src/ui-layout.css']; | ||
vendor_js=['https://rawgithub.com/angular-ui/ui-layout/master/src/ui-layout.js']; | ||
" | ||
> | ||
<div class="pull-right"> | ||
<button class="btn btn-info" ng-click="edit('1.2.6', 'UI.Layout', 'ui-layout')"> | ||
<i class="glyphicon glyphicon-edit"></i> Edit in plunker | ||
</button> | ||
</div> | ||
|
||
<tabset> | ||
<tab heading="Markup"> | ||
<div plunker-content="markup"> | ||
<pre class="prettyprint"><div ui-layout class="layout-mock"> | ||
<div class="center-back"></div> | ||
</div></pre> | ||
</div> | ||
</tab> | ||
<tab heading="CSS"> | ||
<div plunker-content="css"> | ||
<pre class="prettyprint">.layout-mock *:not(.ui-splitbar){ | ||
background : #eee no-repeat center; | ||
} | ||
|
||
.layout-mock .center-back{ | ||
background-image: url("http://placehold.it/400x300/eee/666&text=CENTER"); | ||
}</pre> | ||
</div> | ||
</tab> | ||
</tabset> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
<!-- =Holy grail | ||
--------------------------------------------------------------------------- --> | ||
<div id="demo-mini"> | ||
<div class="page-header"> | ||
<h1>Holy grail demo</h1> | ||
</div> | ||
|
||
<div style="position: relative; height: 500px;"> | ||
|
||
<div ui-layout class="layout-mock"> | ||
<header class="north-back"></header> | ||
<ui-layout options="{ flow : 'column' }"> | ||
<sidebar class="east-back"></sidebar> | ||
<div class="center-back"></div> | ||
<sidebar class="west-back"></sidebar> | ||
</ui-layout> | ||
<footer class="south-back"></footer> | ||
</div> | ||
|
||
</div> | ||
|
||
<hr> | ||
|
||
<div ng-controller="PlunkerCtrl" | ||
ng-init=" | ||
vendor_css=['https://rawgithub.com/angular-ui/ui-layout/master/src/ui-layout.css']; | ||
vendor_js=['https://rawgithub.com/angular-ui/ui-layout/master/src/ui-layout.js']; | ||
" | ||
> | ||
<div class="pull-right"> | ||
<button class="btn btn-info" ng-click="edit('1.2.6', 'UI.Layout', 'ui-layout')"> | ||
<i class="glyphicon glyphicon-edit"></i> Edit in plunker | ||
</button> | ||
</div> | ||
|
||
<tabset> | ||
<tab heading="Markup"> | ||
<div plunker-content="markup"> | ||
<pre class="prettyprint"><div ui-layout class="layout-mock"> | ||
<header class="north-back"></header> | ||
<ui-layout options="{ flow : 'column' }"> | ||
<sidebar class="east-back"></sidebar> | ||
<div class="center-back"></div> | ||
<sidebar class="west-back"></sidebar> | ||
</ui-layout> | ||
<footer class="south-back"></footer> | ||
</div></pre> | ||
</div> | ||
</tab> | ||
<tab heading="CSS"> | ||
<div plunker-content="css"> | ||
<pre class="prettyprint">.layout-mock *:not(.ui-splitbar){ | ||
background : #eee no-repeat center; | ||
} | ||
|
||
|
||
.layout-mock .center-back{ | ||
background-image: url("http://placehold.it/400x300/eee/666&text=CENTER"); | ||
} | ||
.layout-mock .north-back{ | ||
background-image: url("http://placehold.it/400x300/eee/666&text=NORTH"); | ||
} | ||
.layout-mock .south-back{ | ||
background-image: url("http://placehold.it/400x300/eee/666&text=SOUTH"); | ||
} | ||
.layout-mock .east-back{ | ||
background-image: url("http://placehold.it/400x300/eee/666&text=EAST"); | ||
} | ||
.layout-mock .west-back{ | ||
background-image: url("http://placehold.it/400x300/eee/666&text=WEST"); | ||
} | ||
</pre> | ||
</div> | ||
</tab> | ||
</tabset> | ||
</div> | ||
</div> | ||
|
||
</section> |
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,17 @@ | ||
/* jshint node:true */ | ||
|
||
'use strict'; | ||
|
||
var fs = require('fs'); | ||
|
||
module.exports = function() { | ||
|
||
return { | ||
humaName : 'UI.Layout', | ||
repoName : 'ui-layout', | ||
inlineHTML : fs.readFileSync(__dirname + '/demo/demo.html'), | ||
inlineJS : 'angular.module(\'doc.ui-layout\', [\'ui.layout\', \'prettifyDirective\', \'ui.bootstrap\', \'plunker\' ]);', | ||
css : ['demo/demo.css', 'dist/ui-layout.css'], | ||
js : ['dist/ui-layout.js'] | ||
}; | ||
}; |