diff --git a/bower.json b/bower.json index ccb98a7a..f2fdb903 100644 --- a/bower.json +++ b/bower.json @@ -31,7 +31,8 @@ "satellizer": "~0.9.4", "angularjs-toaster": "~0.4.14", "ngletteravatar": "~3.0.1", - "angular-ui-router": "~0.2.15" + "angular-ui-router": "~0.2.15", + "angular-zeroclipboard": "~0.7.0" }, "devDependencies": { "angular-mocks": "~1.3", diff --git a/gulp/build.js b/gulp/build.js index 07ad3c5f..7553f5a0 100644 --- a/gulp/build.js +++ b/gulp/build.js @@ -136,7 +136,7 @@ gulp.task('dev:scripts', function () { }); gulp.task('build:extras', function () { - return gulp.src(['lemur/static/app/*.*', '!lemur/static/app/*.html']) + return gulp.src(['lemur/static/app/*.*', 'bower_components/zeroclipboard/dist/ZeroClipboard.swf', '!lemur/static/app/*.html']) .pipe(gulp.dest('lemur/static/dist')); }); diff --git a/lemur/static/app/angular/app.js b/lemur/static/app/angular/app.js index 386b696d..4eddecfd 100644 --- a/lemur/static/app/angular/app.js +++ b/lemur/static/app/angular/app.js @@ -14,9 +14,10 @@ var lemur = angular 'uiSwitch', 'mgo-angular-wizard', 'satellizer', - 'ngLetterAvatar' + 'ngLetterAvatar', + 'zeroclipboard' ]) - .config(function ($stateProvider, $urlRouterProvider, $authProvider) { + .config(function ($stateProvider, $urlRouterProvider, $authProvider, uiZeroclipConfigProvider) { $urlRouterProvider.otherwise('/welcome'); $stateProvider @@ -36,6 +37,11 @@ var lemur = angular authorizationEndpoint: 'https://example.com/as/authorization.oauth2', requiredUrlParams: ['scope'] }); + + // config ZeroClipboard + uiZeroclipConfigProvider.setZcConf({ + swfPath: 'ZeroClipboard.swf' + }); }); lemur.service('MomentService', function () { diff --git a/lemur/static/app/angular/welcome/welcome.html b/lemur/static/app/angular/welcome/welcome.html index c6bcd03f..ec91b8b6 100644 --- a/lemur/static/app/angular/welcome/welcome.html +++ b/lemur/static/app/angular/welcome/welcome.html @@ -10,17 +10,17 @@

Create

With Lemur you can create certificates from any authority; internal or external! Lemur does not issue certificates itself. Instead it acts as a broker, creating private keys and CSRs that are sent to external services.

-

View certificates »

+

View certificates »

Deploy

Once certificates have been created with Lemur, you can put them to use! Lemur has the ability to create destinations for certificates that allow them to be uploaded to and used by a variety of environments.

-

View Destinations »

+

View Destinations »

Authority

Have an internal Certificate Authority? Need an easy way to create an manage those authorities? Lemur has you covered!

-

View Authorities »

+

Dashboard role="button">View Authorities »