diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 836336e6..192ee466 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -128,7 +128,6 @@ function clean(cb) // It can also be used within the `series()` composition. function build(cb) { - // body omitted return parallel( js, css, @@ -136,7 +135,9 @@ function build(cb) viewjs, resourceFileCopy, copyLocales, - makeLocales)(cb); + makeLocales, + openApi, + )(cb); } function publish(cb) @@ -230,6 +231,14 @@ function copyLocales(cb) )(cb); } +function openApi(cb) +{ + return parallel( + icb => src(['./node_modules/swagger-ui-dist/*.js', './node_modules/swagger-ui-dist/*.js.map']).pipe(dest('./public/js')), + icb => src(['./node_modules/swagger-ui-dist/*.css', './node_modules/swagger-ui-dist/*.css.map']).pipe(dest('./public/css')), + )(cb); +} + function live(cb) { watch('./scss/**/*.scss', css); @@ -302,5 +311,6 @@ export publish, release, bundle, - makeLocales + makeLocales, + openApi } \ No newline at end of file diff --git a/js/viewjs/openapiui.js b/js/viewjs/openapiui.js index 1b87eb6c..1165e415 100644 --- a/js/viewjs/openapiui.js +++ b/js/viewjs/openapiui.js @@ -24,5 +24,4 @@ const swaggerUi = SwaggerUIBundle({ docExpansion: "list" }); -window.ui = swaggerUi; - +window.ui = swaggerUi; \ No newline at end of file diff --git a/views/manageapikeys.blade.php b/views/manageapikeys.blade.php index 1c902ac6..00b5dbd3 100644 --- a/views/manageapikeys.blade.php +++ b/views/manageapikeys.blade.php @@ -90,6 +90,7 @@ data-apikey-id="{{ $apiKey->id }}" data-apikey-apikey="{{ $apiKey->api_key }}" data-toggle="tooltip" + data-boundary="viewport" title="{{ $__t('Delete this item') }}"> @@ -98,6 +99,7 @@ data-apikey-key="{{ $apiKey->api_key }}" data-apikey-type="{{ $apiKey->key_type }}" data-toggle="tooltip" + data-boundary="viewport" title="{{ $__t('Show a QR-Code for this API key') }}"> diff --git a/views/openapiui.blade.php b/views/openapiui.blade.php index 3ef40d56..f7146024 100644 --- a/views/openapiui.blade.php +++ b/views/openapiui.blade.php @@ -20,7 +20,7 @@