Commit Graph

37 Commits

Author SHA1 Message Date
Shelby Sanders 1294b53f5c Merge remote-tracking branch 'upstream/master' into validate_param_enum
* upstream/master: (53 commits)
  1.8.0
  Add opts.omitProtocolInBaseUrl
  Fix tests broken by fa3035c (#96)
  Fix model description getting lost
  1.7.2
  Allow submitting token input with empty value to remove token.
  Fix duplicate stylesheet issue
  Fix explorer tests for different line endings on Windows
  1.7.1
  Remove unused external font "Droid Sans".
  1.7.0
  Made API doc of class use the http.path of the class if available, or the name of the class as a fallback
  v1.6.4
  Prevent double slash in the resource URLs
  v1.6.3
  Allow `uiDirs` to be defined as a String
  Fix bad CLA URL in CONTRIBUTING.md
  Add X-UA-Compatible tag
  v1.6.2
  Move 200 response to `type` on the operation object. See #75.
  ...
2015-07-02 11:19:18 -07:00
Shelby Sanders 1bf7c27a56 Merge remote-tracking branch 'upstream/master' into validate_param_enum 2015-07-02 11:03:27 -07:00
Samuel Reed b7c14b7a09 Allow submitting token input with empty value to remove token. 2015-03-06 12:32:45 +07:00
Pradnya Baviskar 5d4d25e853 Fix duplicate stylesheet issue 2015-02-27 15:44:04 +05:30
Miroslav Bajtoš 6028f70fda Remove unused external font "Droid Sans".
We are shipping a custom style that uses "Ubuntu" instead of "Droid
Sans", thus there is no need to download the "Droid Sans" font
from Google's CDN.

This change should improve explorer's loading time in the situations
where the external URL takes too long to load or cannot be loaded at
all, for example when running behind a restricting proxy.
2015-02-18 15:14:41 +01:00
Raymond Feng 9a9b7899a0 Merge pull request #72 from STRML/lsToken
Save accessToken in localStorage. Fixes #47
2015-01-06 09:41:46 -08:00
Nick Van Dyck 4aa5fd372f Add X-UA-Compatible tag
Allows people to open the explorer in IE without constantly changing the document mode.
2014-12-26 20:56:15 +01:00
Samuel Reed ce76f17ee1 Save accessToken in localStorage. Fixes #47 2014-11-10 10:11:25 +00:00
Miroslav Bajtoš d212741638 loopbackStyles: improve spacing in small window
Improve spacing of page elements when the browser window is small.
2014-10-16 10:34:41 +02:00
Shelby Sanders 8563dd0463 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Sort endpoints by letter.
  Add syntax highlighting styles & highlight threshold.
  Add contribution guidelines
  Bump version
  Fix how the array of models is iterated
  Bump version
  Make sure nested/referenced models in array are mapped to swagger
  Make sure nested/referenced models are mapped to swagger
  Bump version
  Newest Swagger UI requires application/x-www-form-urlencoded.
  Use `dist` property from swagger-ui package.
  Fixed undefined modelClass when using polymorphic relations
  Bump version
  Fix the type name for a property if model class is used

Conflicts:
	lib/model-helper.js
	lib/swagger.js
	public/css/loopbackStyles.css
2014-10-07 11:57:15 -07:00
Samuel Reed 0a35cdb4af Sort endpoints by letter.
Merged from swagger-ui's index.html.

Previously, endpoints were sorted in the order they were defined.
2014-10-07 13:56:30 +02:00
Samuel Reed ad68695009 Add syntax highlighting styles & highlight threshold.
Previously, highlighting classes were being added to the DOM but had no CSS
so the user just saw black - a lot of CPU usage for nothing.

These styles now attractively and minimally style resposes so long as
they are below a certain threshold, as well as model schemas.

The highlightSizeThreshold fixes the long hang users would
see when large responses were returned.
2014-10-07 11:07:41 +02:00
Shelby Sanders 2d6f7aebe8 Added padding to content well in order to counteract changes in SwaggerUI 2014-09-29 19:43:56 -07:00
Shelby Sanders 1a96d84035 Corrected issues with merge of 2.x changes 2014-08-04 20:09:07 -07:00
Shelby Sanders 9693150c8b Corrected issues with merge of 2.x changes 2014-08-04 20:04:41 -07:00
Shelby Sanders ae8858c66b Corrected issues with merge of 2.x changes 2014-08-04 20:02:00 -07:00
Shelby Sanders 24d77f027d Corrected issues with merge of 2.x changes 2014-08-04 19:56:58 -07:00
Shelby Sanders 696e387ff3 Corrected issues with merge of 2.x changes 2014-08-04 19:44:12 -07:00
Samuel Reed 86d79584f9 Load swagger ui from `swagger-ui` package instead.
Added option `swaggerDistRoot` for specific file overrides.

Conflicts:
	README.md
	example/simple.js
	index.js
	package.json
	public/css/screen.css
	public/images/logo_small.png
	public/index.html
	public/lib/loadSwaggerUI.js
2014-08-04 19:22:55 -07:00
Shelby Sanders 2c737d40b6 Merge remote-tracking branch 'upstream/master'
* upstream/master: (38 commits)
  Bump version
  res.send deprecated - updated to res.status
  Remove hidden properties from definition.
  Bump version
  Ensure models from relations are included
  1.2.4
  model-helper: handle arrays with undefined items
  1.2.3
  model-helper: handle array types with no item type
  Bump version
  Properly convert complex return types.
  Bump version
  Fix up loopback.rest() model definition hack.
  Bump version and update deps
  s/accessToken/access_token in authorization key name
  Fix resources if the explorer is at a deep path.
  Fix debug namespace, express version.
  Remove forgotten TODO.
  Simplify `accepts` and `returns` hacks.
  More consise type tests
  ...

Conflicts:
	public/css/loopbackStyles.css
	public/css/screen.css
	public/index.html
	public/lib/loadSwaggerUI.js
	public/lib/swagger.js
	public/swagger-ui.js
	public/swagger-ui.min.js
2014-08-04 18:11:36 -07:00
Shelby Sanders c1a0eb5192 Upgraded to SwaggerUI 2.0.18 2014-07-30 11:40:45 -07:00
Shelby Sanders 17e8b7b919 Added support for toggling Model and Schema, and added support for primitives in StatusCodeView 2014-07-28 21:36:28 -07:00
Shelby Sanders 15aa4e9ae5 Ensure Response Content Type is shown regardless of Response Class 2014-07-16 14:30:32 -07:00
Shelby Sanders 0e223845e5 Reverted to use special loading logic from loopback-explorer 2014-07-14 22:07:14 -07:00
Shelby Sanders ed044468f7 Reverted to use special loading logic from loopback-explorer 2014-07-14 21:57:39 -07:00
Shelby Sanders 0f4bf489d9 Updated to latest Swagger-UI for better responseMessage signature handling 2014-07-14 21:48:46 -07:00
Samuel Reed fcd1926758 s/accessToken/access_token in authorization key name 2014-07-14 15:40:05 -05:00
Shelby Sanders 59afbb1f32 Upgraded to latest Swagger-UI for 1.2 support 2014-07-12 23:09:00 -07:00
Shelby Sanders 5a07b80b6b Upgraded to latest Swagger-UI for 1.2 support 2014-07-12 23:04:13 -07:00
Shelby Sanders a9c1152c74 Correct description of collections of object and nested 2014-07-10 05:07:43 -07:00
Samuel Reed a6afe13b08 Restore existing styles.
TODO extract overrides instead of replacing styles wholesale.
2014-07-09 12:03:34 -05:00
Samuel Reed 5f22982200 Allow easy setting of accessToken in explorer UI. 2014-07-09 11:45:44 -05:00
Shelby Sanders 88c330a503 Add indication of response being a collection 2014-07-09 03:36:41 -07:00
Samuel Reed 56003f0178 Load swagger ui from `swagger-ui` package instead.
Added option `swaggerDistRoot` for specific file overrides.
2014-07-04 14:28:47 -05:00
Miroslav Bajtos a33c067ffa Support custom basePath
Recognize the `basePath` passed to swagger extension and use it in
the webpage to construct the correct `discoveryUrl`.
2013-11-29 16:26:16 +01:00
Miroslav Bajtos 3ebbcedcd9 Convert public/index.html from CRLF to LF.
No code changes.
2013-11-29 16:21:42 +01:00
Ritchie Martori f3d6cb9b54 Initial explorer 2013-11-05 11:16:59 -08:00