ember-adminlte-theme
v0.2.8
Published
ember cli adminLte theme ui
Downloads
131
Readme
Ember-admin-lte-theme
admin bootstrap ui theme
Supports ember 2.1.x
Installation
git clone [email protected]:huxinghai1988/ember-adminlte-theme.git
this repositorynpm install ember-adminlte-theme
vi package.json
"devDependencies": { "ember-adminlte-theme": "0.2.0" }
Using
add component for application.hbs
<div class="wrapper">
{{main-header}}
{{main-sidebar}}
{{#content-wrapper}}
{{outlet}}
{{/content-wrapper}}
{{main-footer}}
{{control-sidebar}}
</div>
config import plugins ember-cli-build.js
var app = new EmberApp(defaults, {
adminLTE: {
plugins: ['morris', 'icheck', 'datepicker',
'bootstrap-wysihtml5', 'daterangepicker', 'jvectormap',
'select2', 'input-mask'
]
}
});
Running
ember server
- Visit your app at http://localhost:4200.
- Visit example at http://localhost:4200/example/index.html
Example index CSP questions
//config/environment.js
contentSecurityPolicyHeader: 'Content-Security-Policy',
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self' 'unsafe-inline' *",
'font-src': "'self' 'unsafe-inline' maxcdn.bootstrapcdn.com fonts.googleapis.com fonts.gstatic.com",
'connect-src': "'self' *",
'img-src': "'self' * data:",
'style-src': "'self' 'unsafe-inline' maxcdn.bootstrapcdn.com fonts.googleapis.com"
}
Preview Image
Running Tests
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.