-
-
Notifications
You must be signed in to change notification settings - Fork 922
Upgrade Swagger UI to v3 (React inside) #1138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3c98315
to
c47a93d
Compare
Those diffs :/. Reminds me of #768. |
Yes but the new version improve things, we delete all previous files and there is only 2 JS files now. |
Oh yeah that's nice, I didn't saw that on first look. We may be able to reduce those to 1 file in the |
<script src="{{ asset('bundles/apiplatform/swagger-ui/lib/marked.js') }}"></script> | ||
<script src="{{ asset('bundles/apiplatform/swagger-ui/lib/swagger-oauth.js') }}"></script> | ||
<script src="{{ asset('bundles/apiplatform/init-swagger-ui.js') }}"></script> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outch, are we obliged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should import it... we shouln't need internet to load the Ui
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd still work when offline, the fallback font would just be used.
c47a93d
to
8528ad3
Compare
8528ad3
to
5684bae
Compare
Why are we digging ourselves a new hole? As I've mentioned in #1149 (comment) and #1149 (comment), I believe this should live in a separate project. |
Well, I'm not against splitting this piece of code in another project later. But for 2.1 it will stay in core. |
Btw this PR removes ~ 12k lines of JS and CSS, we're on the good path isn't it? |
Uh oh!
There was an error while loading. Please reload this page.