diff --git a/.bowerrc b/.bowerrc index 6a408552..44491d3d 100644 --- a/.bowerrc +++ b/.bowerrc @@ -1,3 +1,3 @@ { - "directory": "lemur/static/app/vendor/bower_components" + "directory": "bower_components" } diff --git a/gulp/build.js b/gulp/build.js index 54112294..07ad3c5f 100644 --- a/gulp/build.js +++ b/gulp/build.js @@ -48,8 +48,8 @@ gulp.task('test', function (done) { gulp.task('dev:fonts', function () { var fileList = [ - 'lemur/static/app/vendor/bower_components/bootstrap/dist/fonts/*', - 'lemur/static/app/vendor/bower_components/fontawesome/fonts/*' + 'bower_components/bootstrap/dist/fonts/*', + 'bower_components/fontawesome/fonts/*' ]; return gulp.src(fileList) @@ -57,7 +57,7 @@ gulp.task('dev:fonts', 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 suffix = 'bootswatch.less'; @@ -73,15 +73,15 @@ gulp.task('dev:styles', function () { var fileList = [ 'lemur/static/app/styles/lemur.css', - 'lemur/static/app/vendor/bower_components/bootswatch/sandstone/bootswatch.less', - 'lemur/static/app/vendor/bower_components/fontawesome/css/font-awesome.css', - 'lemur/static/app/vendor/bower_components/angular-spinkit/src/angular-spinkit.css', - 'lemur/static/app/vendor/bower_components/angular-chart.js/dist/angular-chart.css', - 'lemur/static/app/vendor/bower_components/angular-loading-bar/src/loading-bar.css', - 'lemur/static/app/vendor/bower_components/angular-ui-switch/angular-ui-switch.css', - 'lemur/static/app/vendor/bower_components/angular-wizard/dist/angular-wizard.css', - 'lemur/static/app/vendor/bower_components/ng-table/ng-table.css', - 'lemur/static/app/vendor/bower_components/angularjs-toaster/toaster.css' + 'bower_components/bootswatch/sandstone/bootswatch.less', + 'bower_components/fontawesome/css/font-awesome.css', + 'bower_components/angular-spinkit/src/angular-spinkit.css', + 'bower_components/angular-chart.js/dist/angular-chart.css', + 'bower_components/angular-loading-bar/src/loading-bar.css', + 'bower_components/angular-ui-switch/angular-ui-switch.css', + 'bower_components/angular-wizard/dist/angular-wizard.css', + 'bower_components/ng-table/ng-table.css', + 'bower_components/angularjs-toaster/toaster.css' ]; return gulp.src(fileList) diff --git a/lemur/__init__.py b/lemur/__init__.py index 5d91aacf..24cb6ef1 100644 --- a/lemur/__init__.py +++ b/lemur/__init__.py @@ -54,7 +54,7 @@ def configure_hook(app): from lemur.decorators import crossdomain if app.config.get('CORS'): @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): return response diff --git a/lemur/static/app/angular/certificates/certificate/options.tpl.html b/lemur/static/app/angular/certificates/certificate/options.tpl.html index 794aaf6e..cef3904a 100644 --- a/lemur/static/app/angular/certificates/certificate/options.tpl.html +++ b/lemur/static/app/angular/certificates/certificate/options.tpl.html @@ -94,6 +94,11 @@ Server Authentication +
You must enter a common name