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

diff --git a/setup.py b/setup.py index 6b4282e8..ea7ef326 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ class SmartInstall(install): `build_static` which is required for JavaScript assets and other things. """ 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): if self._needs_static(): @@ -113,7 +113,7 @@ setup( version='0.1', author='Kevin Glisson', author_email='kglisson@netflix.com', - long_description=open('README.rst').read(), + long_description=open(os.path.join(ROOT, 'README.rst')).read(), packages=['lemur'], include_package_data=True, zip_safe=False, @@ -125,7 +125,6 @@ setup( }, cmdclass={ 'build_static': BuildStatic, - 'develop': DevelopWithBuildStatic, 'sdist': SdistWithBuildStatic, 'install': SmartInstall