Skip to content

Commit

Permalink
Merge pull request #12 from Wtower/v0-2-0
Browse files Browse the repository at this point in the history
Version 0.2.0
  • Loading branch information
Wtower authored Dec 14, 2016
2 parents 4e2f0ea + 34ed9aa commit 0ce5a7a
Show file tree
Hide file tree
Showing 21 changed files with 1,044 additions and 26 deletions.
15 changes: 13 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# Node.js
node_modules
coverage
.idea/
npm-debug.log

# Coverage
coverage/

# IDE
.idea/

# Gulp build intermediate files
build/css/gentelella.*.css
build/partials.js
# .min files do not count in github language
# https://github.com/github/linguist/blob/master/lib/linguist/vendor.yml#L56
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,17 @@ Use:

npm install -S ng-gentelella

Then include the `node_modules/ng-gentelella/gentelella` js files in your html or build system (eg gulp).
### Static files

Also make the above folder public or have a build system copy its html files in order for the templates to
be available for Angular. Expose them as `/static/gentelella`:
Built files are conveniently provided under the `build/` directory. These include all gentelella and ng-gentelella
css and js files.

```
app.use('/static/ng-gentelella', express.static(path.join(__dirname, 'node_modules', 'ng-gentelella', 'gentelella')));
```
Otherwise, include the `node_modules/ng-gentelella/gentelella` js files in your html or build system (eg gulp).
It is recommended that you include the templates path `node_modules/*ng-gentelella/gentelella/**/*.html` using
[some html2js module]
(http://stackoverflow.com/questions/21103724/angular-directive-templateurl-relative-to-js-file/41140644#41140644).
Alternatively you can expose the template files as `/ng-gentelella` with
`app.use('/ng-gentelella', express.static(path.join(__dirname, 'node_modules', 'ng-gentelella')));`.

### Develop

Expand Down
8 changes: 8 additions & 0 deletions build/css/style.min.css

Large diffs are not rendered by default.

318 changes: 318 additions & 0 deletions build/js/index.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
angular
.module('formFieldCheckbox')
.component('formFieldCheckbox', {
templateUrl: 'static/ng-gentelella/form-field-checkbox/form-field-checkbox.template.html',
templateUrl: 'ng-gentelella/gentelella/form-field-checkbox/form-field-checkbox.template.html',
bindings: {
fieldId: '@',
fieldLabel: '@',
Expand Down
2 changes: 1 addition & 1 deletion gentelella/form-field-image/form-field-image.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
angular
.module('formFieldImage')
.component('formFieldImage', {
templateUrl: 'static/ng-gentelella/form-field-image/form-field-image.template.html',
templateUrl: 'ng-gentelella/gentelella/form-field-image/form-field-image.template.html',
bindings: {
fieldId: '@',
fieldLabel: '@',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
angular
.module('formFieldSelect')
.component('formFieldSelect', {
templateUrl: 'static/ng-gentelella/form-field-select/form-field-select.template.html',
templateUrl: 'ng-gentelella/gentelella/form-field-select/form-field-select.template.html',
bindings: {
fieldId: '@',
fieldLabel: '@',
Expand Down
2 changes: 1 addition & 1 deletion gentelella/form-field-text/form-field-text.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
angular
.module('formFieldText')
.component('formFieldText', {
templateUrl: 'static/ng-gentelella/form-field-text/form-field-text.template.html',
templateUrl: 'ng-gentelella/gentelella/form-field-text/form-field-text.template.html',
bindings: {
fieldId: '@',
fieldType: '@',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
angular
.module('gaDashboardCounter')
.component('gaDashboardCounter', {
templateUrl: 'static/ng-gentelella/ga-dashboard-counter/ga-dashboard-counter.template.html',
templateUrl: 'ng-gentelella/gentelella/ga-dashboard-counter/ga-dashboard-counter.template.html',
bindings: {
counterIcon: '@',
counterVar: '<',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
angular
.module('gaDashboardGraphFlot')
.component('gaDashboardGraphFlot', {
templateUrl: 'static/ng-gentelella/ga-dashboard-graph-flot/ga-dashboard-graph-flot.template.html',
templateUrl: 'ng-gentelella/gentelella/ga-dashboard-graph-flot/ga-dashboard-graph-flot.template.html',
bindings: {
graphTitle: '@',
graphSubTitle: '@',
Expand Down
2 changes: 1 addition & 1 deletion gentelella/ga-paginate/ga-paginate.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
angular
.module('gaPaginate')
.component('gaPaginate', {
templateUrl: 'static/ng-gentelella/ga-paginate/ga-paginate.template.html',
templateUrl: 'ng-gentelella/gentelella/ga-paginate/ga-paginate.template.html',
bindings: {
paginateList: '<',
paginateLimit: '=',
Expand Down
2 changes: 1 addition & 1 deletion gentelella/ga-panel-actions/ga-panel-actions.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
angular
.module('gaPanelActions')
.component('gaPanelActions', {
templateUrl: 'static/ng-gentelella/ga-panel-actions/ga-panel-actions.template.html',
templateUrl: 'ng-gentelella/gentelella/ga-panel-actions/ga-panel-actions.template.html',
bindings: {
actionForm: '<',
actionCloseUrl: '@',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
angular
.module('gaPanelTableFormBody')
.component('gaPanelTableFormBody', {
templateUrl: 'static/ng-gentelella/ga-panel-table-form-body/ga-panel-table-form-body.template.html',
templateUrl: 'ng-gentelella/gentelella/ga-panel-table-form-body/ga-panel-table-form-body.template.html',
bindings: {
bodyId: '@',
bodyValue: '='
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
angular
.module('gaPanelTableForm')
.component('gaPanelTableForm', {
templateUrl: 'static/ng-gentelella/ga-panel-table-form/ga-panel-table-form.template.html',
templateUrl: 'ng-gentelella/gentelella/ga-panel-table-form/ga-panel-table-form.template.html',
bindings: {
panelTitle: '@',
panelSubTitle: '@',
Expand Down
2 changes: 1 addition & 1 deletion gentelella/ga-panel/ga-panel.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
angular
.module('gaPanel')
.component('gaPanel', {
templateUrl: 'static/ng-gentelella/ga-panel/ga-panel.template.html',
templateUrl: 'ng-gentelella/gentelella/ga-panel/ga-panel.template.html',
bindings: {
panelTitle: '@',
panelSubTitle: '@',
Expand Down
2 changes: 1 addition & 1 deletion gentelella/ga-progress/ga-progress.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
angular
.module('gaProgress')
.component('gaProgress', {
templateUrl: 'static/ng-gentelella/ga-progress/ga-progress.template.html',
templateUrl: 'ng-gentelella/gentelella/ga-progress/ga-progress.template.html',
bindings: {
progressSize: '@',
progressValue: '<'
Expand Down
28 changes: 28 additions & 0 deletions gentelella/gentelella.generic.sass
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
// Gentelella adapted theme
//
.login_content form div p a
margin: 0

.profile_img i
font-size: 44px
padding-left: 7px

.user-profile i
margin-right: 4px

.dropdown-usermenu button
color: #5A738E
background: transparent
text-align: left
font-size: 12px
padding: 12px 20px
border: none

&:hover
color: #262626
background: #f5f5f5

i
font-size: 15px

ul.nav.child_menu
display: block

.label-link
padding: 7px 0 !important

Expand Down
Loading

0 comments on commit 0ce5a7a

Please sign in to comment.