Skip to content

Commit

Permalink
Upgrade swagger ui to v5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Jul 29, 2023
1 parent bc604f4 commit 1e819b5
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/oapi/src/swagger_ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use salvo_core::{async_trait, Depot, Error, FlowCtrl, Handler, Request, Response
use serde::Serialize;

#[derive(RustEmbed)]
#[folder = "src/swagger_ui/v5.1.3"]
#[folder = "src/swagger_ui/v5.2.0"]
struct SwaggerUiDist;

const INDEX_TMPL: &str = r#"
Expand Down
3 changes: 0 additions & 3 deletions crates/oapi/src/swagger_ui/v5.1.3/swagger-ui-bundle.js

This file was deleted.

2 changes: 0 additions & 2 deletions crates/oapi/src/swagger_ui/v5.1.3/swagger-ui.js

This file was deleted.

19 changes: 19 additions & 0 deletions crates/oapi/src/swagger_ui/v5.2.0/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" />
<link rel="stylesheet" type="text/css" href="index.css" />
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
</head>

<body>
<div id="swagger-ui"></div>
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script src="./swagger-initializer.js" charset="UTF-8"> </script>
</body>
</html>
3 changes: 3 additions & 0 deletions crates/oapi/src/swagger_ui/v5.2.0/swagger-ui-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions crates/oapi/src/swagger_ui/v5.2.0/swagger-ui.js

Large diffs are not rendered by default.

0 comments on commit 1e819b5

Please sign in to comment.