Merge pull request #37 from kevgliss/fixes

General fixes around build time issues
This commit is contained in:
kevgliss 2015-08-14 10:11:46 -07:00
commit 7554a86d23
6 changed files with 22 additions and 18 deletions

View File

@ -1,3 +1,3 @@
{ {
"directory": "lemur/static/app/vendor/bower_components" "directory": "bower_components"
} }

View File

@ -48,8 +48,8 @@ gulp.task('test', function (done) {
gulp.task('dev:fonts', function () { gulp.task('dev:fonts', function () {
var fileList = [ var fileList = [
'lemur/static/app/vendor/bower_components/bootstrap/dist/fonts/*', 'bower_components/bootstrap/dist/fonts/*',
'lemur/static/app/vendor/bower_components/fontawesome/fonts/*' 'bower_components/fontawesome/fonts/*'
]; ];
return gulp.src(fileList) return gulp.src(fileList)
@ -57,7 +57,7 @@ gulp.task('dev:fonts', function () {
}); });
gulp.task('dev:styles', function () { gulp.task('dev:styles', function () {
var baseContent = '@import "lemur/static/app/vendor/bower_components/bootstrap/less/bootstrap.less";@import "lemur/static/app/vendor/bower_components/bootswatch/$theme$/variables.less";@import "lemur/static/app/vendor/bower_components/bootswatch/$theme$/bootswatch.less";@import "lemur/static/app/vendor/bower_components/bootstrap/less/utilities.less";'; var baseContent = '@import "bower_components/bootstrap/less/bootstrap.less";@import "bower_components/bootswatch/$theme$/variables.less";@import "bower_components/bootswatch/$theme$/bootswatch.less";@import "bower_components/bootstrap/less/utilities.less";';
var isBootswatchFile = function (file) { var isBootswatchFile = function (file) {
var suffix = 'bootswatch.less'; var suffix = 'bootswatch.less';
@ -73,15 +73,15 @@ gulp.task('dev:styles', function () {
var fileList = [ var fileList = [
'lemur/static/app/styles/lemur.css', 'lemur/static/app/styles/lemur.css',
'lemur/static/app/vendor/bower_components/bootswatch/sandstone/bootswatch.less', 'bower_components/bootswatch/sandstone/bootswatch.less',
'lemur/static/app/vendor/bower_components/fontawesome/css/font-awesome.css', 'bower_components/fontawesome/css/font-awesome.css',
'lemur/static/app/vendor/bower_components/angular-spinkit/src/angular-spinkit.css', 'bower_components/angular-spinkit/src/angular-spinkit.css',
'lemur/static/app/vendor/bower_components/angular-chart.js/dist/angular-chart.css', 'bower_components/angular-chart.js/dist/angular-chart.css',
'lemur/static/app/vendor/bower_components/angular-loading-bar/src/loading-bar.css', 'bower_components/angular-loading-bar/src/loading-bar.css',
'lemur/static/app/vendor/bower_components/angular-ui-switch/angular-ui-switch.css', 'bower_components/angular-ui-switch/angular-ui-switch.css',
'lemur/static/app/vendor/bower_components/angular-wizard/dist/angular-wizard.css', 'bower_components/angular-wizard/dist/angular-wizard.css',
'lemur/static/app/vendor/bower_components/ng-table/ng-table.css', 'bower_components/ng-table/ng-table.css',
'lemur/static/app/vendor/bower_components/angularjs-toaster/toaster.css' 'bower_components/angularjs-toaster/toaster.css'
]; ];
return gulp.src(fileList) return gulp.src(fileList)

View File

@ -54,7 +54,7 @@ def configure_hook(app):
from lemur.decorators import crossdomain from lemur.decorators import crossdomain
if app.config.get('CORS'): if app.config.get('CORS'):
@app.after_request @app.after_request
@crossdomain(origin="http://localhost:3000", methods=['PUT', 'HEAD', 'GET', 'POST', 'OPTIONS', 'DELETE']) @crossdomain(origin=u"http://localhost:3000", methods=['PUT', 'HEAD', 'GET', 'POST', 'OPTIONS', 'DELETE'])
def after(response): def after(response):
return response return response

View File

@ -94,6 +94,11 @@
<input type="checkbox" ng-model="certificate.extensions.extendedKeyUsage.useServerAuthentication">Server Authentication <input type="checkbox" ng-model="certificate.extensions.extendedKeyUsage.useServerAuthentication">Server Authentication
</label> </label>
</div> </div>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="certificate.extensions.extendedKeyUsage.useClientAuthentication">Client Authentication
</label>
</div>
<div class="checkbox"> <div class="checkbox">
<label> <label>
<input type="checkbox" ng-model="certificate.extensions.extendedKeyUsage.useEmail">Email <input type="checkbox" ng-model="certificate.extensions.extendedKeyUsage.useEmail">Email

View File

@ -47,7 +47,7 @@
Common Name Common Name
</label> </label>
<div class="col-sm-10"> <div class="col-sm-10">
<input name="commonName" tooltip="If you need a certificate with multiple domains enter your primary domain here and the rest under 'Subject Alternate Names' in the next panel" ng-model="certificate.commonName" placeholder="Common Name" class="form-control" required/> <input name="commonName" tooltip="If you need a certificate with multiple domains enter your primary domain here and the rest under 'Subject Alternate Names' in the next few panels" ng-model="certificate.commonName" placeholder="Common Name" class="form-control" required/>
<p ng-show="trackingForm.commonName.$invalid && !trackingForm.commonName.$pristine" class="help-block">You must enter a common name</p> <p ng-show="trackingForm.commonName.$invalid && !trackingForm.commonName.$pristine" class="help-block">You must enter a common name</p>
</div> </div>
</div> </div>

View File

@ -72,7 +72,7 @@ class SmartInstall(install):
`build_static` which is required for JavaScript assets and other things. `build_static` which is required for JavaScript assets and other things.
""" """
def _needs_static(self): def _needs_static(self):
return not os.path.exists(os.path.join(ROOT, 'lemur-package.json')) return not os.path.exists(os.path.join(ROOT, 'lemur/static/dist'))
def run(self): def run(self):
if self._needs_static(): if self._needs_static():
@ -113,7 +113,7 @@ setup(
version='0.1', version='0.1',
author='Kevin Glisson', author='Kevin Glisson',
author_email='kglisson@netflix.com', author_email='kglisson@netflix.com',
long_description=open('README.rst').read(), long_description=open(os.path.join(ROOT, 'README.rst')).read(),
packages=['lemur'], packages=['lemur'],
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False,
@ -125,7 +125,6 @@ setup(
}, },
cmdclass={ cmdclass={
'build_static': BuildStatic, 'build_static': BuildStatic,
'develop': DevelopWithBuildStatic,
'sdist': SdistWithBuildStatic, 'sdist': SdistWithBuildStatic,
'install': SmartInstall 'install': SmartInstall