Coder Social home page Coder Social logo

Comments (4)

aedelmann avatar aedelmann commented on May 24, 2024

seems like the swagger-ui.js is quite big in size (couple of MB) which takes quite a bit to download.
To resolve this, I would suggest to preload it on landing page, where it is not required immediately and has time in the background to be downloaded.

from vorto.

aedelmann avatar aedelmann commented on May 24, 2024

Alternatively, it should be redistributed as part of the repo.

from vorto.

nagavijays avatar nagavijays commented on May 24, 2024

Is it possible to use different UI instead of the default.
Can I suggest https://github.com/Orange-OpenSource/angular-swagger-ui.
License: MIT
On initial test it took ~11 seconds with 6 REST endpoints.

Following are the scripts/styles used for testing. Not sure which one has got Eclipse CQ approved.

<script src="webjars/jquery/2.1.1/jquery.js"></script>
<script src="webjars/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script type="text/javascript" src="webjars/bootstrap-material-design/0.3.0/js/ripples.min.js"></script>
<script type="text/javascript" src="webjars/bootstrap-material-design/0.3.0/js/material.min.js"></script>
<script type="text/javascript" src="webjars/angularjs/1.3.8/angular.min.js"></script>
<script type="text/javascript" src="webjars/angularjs/1.3.8/angular-route.min.js"></script>
<script type="text/javascript" src="webjars/angularjs/1.3.8/angular-resource.min.js"></script>
<script type="text/javascript" src="webjars/angularjs/1.3.8/angular-sanitize.min.js"></script>
<script type="text/javascript" src="webjars/angular-swagger-ui/0.2.7/dist/scripts/swagger-ui.min.js"></script>

<link rel="stylesheet" href="webjars/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="webjars/bootstrap-material-design/0.3.0/css/ripples.min.css">
<link rel="stylesheet" href="webjars/bootstrap-material-design/0.3.0/css/roboto.min.css">
<link rel="stylesheet" href="webjars/bootstrap-material-design/0.3.0/css/material.min.css">
<link rel="stylesheet" href="webjars/angular-swagger-ui/0.2.7/dist/css/swagger-ui.min.css">

See comparison results with current and angular-swagger ui.

Angular Swagger Results:
angular-swagger

Current Results:
swagger-ui

PS: This also solves one more issue #57

from vorto.

nagavijays avatar nagavijays commented on May 24, 2024

Replaced with angular swagger ui for better responsiveness.
Created pull request. CQ needs to be created.

from vorto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.