mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 22:53:54 +03:00
Swap swagger-ui with swagger-ui-dist (#13777)
* Swap swagger-ui with swagger-ui-dist The prebuilt version of swagger-ui is identical to the regular one but brings the benefit of faster webpack compilation and less npm dependencies so it npm installs will speed up too. * use bundle file directly
This commit is contained in:
parent
b1cf7f4df1
commit
253add883d
3 changed files with 22 additions and 881 deletions
897
package-lock.json
generated
897
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -36,7 +36,7 @@
|
||||||
"postcss": "8.1.10",
|
"postcss": "8.1.10",
|
||||||
"raw-loader": "4.0.2",
|
"raw-loader": "4.0.2",
|
||||||
"sortablejs": "1.12.0",
|
"sortablejs": "1.12.0",
|
||||||
"swagger-ui": "3.37.2",
|
"swagger-ui-dist": "3.37.2",
|
||||||
"terser-webpack-plugin": "4.2.3",
|
"terser-webpack-plugin": "4.2.3",
|
||||||
"tributejs": "5.1.3",
|
"tributejs": "5.1.3",
|
||||||
"vue": "2.6.12",
|
"vue": "2.6.12",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import SwaggerUI from 'swagger-ui';
|
import SwaggerUI from 'swagger-ui-dist/swagger-ui-es-bundle.js';
|
||||||
import 'swagger-ui/dist/swagger-ui.css';
|
import 'swagger-ui-dist/swagger-ui.css';
|
||||||
|
|
||||||
window.addEventListener('load', async () => {
|
window.addEventListener('load', async () => {
|
||||||
const url = document.getElementById('swagger-ui').dataset.source;
|
const url = document.getElementById('swagger-ui').dataset.source;
|
||||||
|
|
Loading…
Reference in a new issue