Comments (4)
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.
Alternatively, it should be redistributed as part of the repo.
from vorto.
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.
PS: This also solves one more issue #57
from vorto.
Replaced with angular swagger ui for better responsiveness.
Created pull request. CQ needs to be created.
from vorto.
Related Issues (20)
- Adding Links does not work for model_creator users HOT 5
- Introduce a tree-like "model explore" view based on namespace hierarchy
- Gather model statistics anonymously
- Sporadic occurrence of NPE in stack traces in productive environments HOT 2
- Granularize user preferences with regards to notifications
- Analyze "user upgrade" functionality and consider whether it can be removed
- Choosing Functionblocks from the UI on model creation is broken HOT 3
- Ditto Generator ignores 'multiple' keyword for objects
- Consider whether feasible to automatically set a user's e-mail with the information from the OAuth provider login at first signup
- Add warning of quota limits to dashboard tutorial
- Change all hard-coded references to vorto.eclipse.org to https://vorto.eclipseprojects.io HOT 1
- Authentication Error in the Vorto Dashboard
- ConstraintRule undefined on Model Property doc
- Broken link in documentation HOT 1
- Error when starting local repository via docker-compose
- Electing a new project lead HOT 1
- log4shell log4j RCE vunlerability HOT 2
- vorto.eclipse.org from tutorial not reachable HOT 7
- Is this project still active? HOT 1
- Vorto repo link https://vorto.eclipse.org/ is invalid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vorto.