mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Fixed all reported errors, deduped some code in the picker components. However, these edits were small enough that I'm positive they work.
28 lines
501 B
JavaScript
28 lines
501 B
JavaScript
/* global SwaggerUIBundle, SwaggerUIStandalonePreset */
|
|
function HideTopbarPlugin()
|
|
{
|
|
return {
|
|
components: {
|
|
Topbar: function() { return null }
|
|
}
|
|
}
|
|
}
|
|
|
|
const swaggerUi = SwaggerUIBundle({
|
|
url: Grocy.OpenApi.SpecUrl,
|
|
dom_id: '#swagger-ui',
|
|
deepLinking: true,
|
|
presets: [
|
|
SwaggerUIBundle.presets.apis,
|
|
SwaggerUIStandalonePreset
|
|
],
|
|
plugins: [
|
|
SwaggerUIBundle.plugins.DownloadUrl,
|
|
HideTopbarPlugin
|
|
],
|
|
layout: 'StandaloneLayout',
|
|
docExpansion: "list"
|
|
});
|
|
|
|
window.ui = swaggerUi;
|