Commit Graph

348 Commits

Author SHA1 Message Date
Tony Tam
978588a8d4 updated package, rebuilt 2015-03-28 17:17:11 -07:00
Tony Tam
0c6fcde0c1 rebuilt 2015-03-27 18:51:45 -07:00
Mohsen Azimi
3de0b36a4e Fix JSHint issues 2015-03-26 13:09:08 -07:00
Mohsen Azimi
d451c2b539 Add link innerText 2015-03-26 13:08:23 -07:00
Mohsen Azimi
c157fe41c1 Add support for downloading via Blob 2015-03-26 13:06:33 -07:00
Mohsen Azimi
6b8f6e2827 Add file download to try operation 2015-03-26 11:41:06 -07:00
Mohsen Azimi
445e0353ca Append .json to v1 spec files to enforce Content-Type when serving in test 2015-03-25 12:49:57 -07:00
Mohsen Azimi
99eaf4eb23 Use SwaggerJS from npm
* Uses npm to download latest swagger-js (for now. When swagger-js is
   released we will replace git address with actual swagger-ui)

* Uses `postinstall` to generate `browser` folder of swagger-ui. This
 can go when swagger-ui is published.
2015-03-25 12:49:39 -07:00
Mohsen Azimi
6523318f88 Rename redirectUrl optoon to oauth2RedirectUrl 2015-03-24 13:33:40 -07:00
Mohsen Azimi
ede1faa0c8 Add ability to override redirectUrl in swagger-oauth
Fixes #457
2015-03-24 13:33:18 -07:00
Mohsen Azimi
b58eee10e7 Fix JSHint issues 2015-03-23 16:00:43 -07:00
Mohsen Azimi
93c18d59b8 Make SwaggerUi UMD compatible 2015-03-23 14:28:14 -07:00
Tony Tam
38ac8428d1 rebuilt 2015-03-17 16:29:02 -07:00
Mohsen Azimi
9b409f75b8 Encode/decode tags before using it in the URL
Fixes #994

Conflicts:
	dist/swagger-ui.min.js
2015-03-17 14:14:28 -07:00
Mohsen Azimi
f49c1689d2 Move backward compatibility to swaggerUi.js and warn users about API changes 2015-03-17 12:10:28 -07:00
Mohsen Azimi
d61cf24ae0 Append swagger-auth global functions to window and don't break backward 2015-03-16 15:07:14 -07:00
Mohsen Azimi
8c6e3a6d95 Append Docs to window for now
also remove expection for global swaggerUi from JSHint
2015-03-16 13:58:05 -07:00
Mohsen Azimi
51bbbf03db Remove all references to swaggerUi global instance 2015-03-16 13:52:38 -07:00
Mohsen Azimi
66adb0d508 Remove global auth object references and fix header api key adding mechanism
Fixes #1033
2015-03-16 13:45:08 -07:00
Mohsen Azimi
9ed1ad88ec Pass router to all views 2015-03-16 11:08:28 -07:00
Mohsen Azimi
4e22ff8b96 Wrap all SwaggerUI code in a iife
to avoid leaking globals other than SwaggerUi and swaggerUi

TODO: we should remove swaggerUi global dependency too
2015-03-12 17:51:44 -07:00
Mohsen Azimi
07ac7fcf95 Fix all JSHint errors 2015-03-12 16:50:57 -07:00
Mohsen Azimi
096cd120a4 Some cleanup in Docs.js
Doc.js is ignored in JSHint so we are not cleaning it up entirely!
2015-03-12 16:46:51 -07:00
Mohsen Azimi
dac83b71c8 Remove global views
Append all views to SwaggerUi.Views object
2015-03-12 16:42:23 -07:00
Mohsen Azimi
8440833f6c Remove [].forEach calls 2015-03-12 16:22:19 -07:00
Mohsen Azimi
f35bbc7ec1 Fix binding error in swagger-js file 2015-03-12 16:22:19 -07:00
Mohsen Azimi
9ad29d72b0 remove coffeescript from build process 2015-03-12 16:22:19 -07:00
Jeremy Whitlock
bdb181cb08 Update swagger-js with latest
* For the e2e tests to run, we had to enable CORS in http-server.  The
  release of http-server that supports CORS hasn't come out yet so we
  have to use http-server@master until then.  Here is the commit I speak
  of: 30f4d1e008
2015-03-11 14:17:11 -06:00
Tony Tam
5ba40f3285 Merge pull request #1018 from mohsen1/favicon
Update favicon with official logo and HiDPI support
2015-03-11 12:59:10 -07:00
Mohsen Azimi
7786919ba1 Fix issue with $.contains in Firefox 2015-03-10 14:34:09 -07:00
Mohsen Azimi
7006e86fa5 Remove global references to swaggerUi object
By passing parent view as an option to child views, child views can
access parent views and eventually can access model of MainView

There is alos a new domEl option available for SwaggerUI constructor.
User can send domEl instead of dom_id to specifiy which element they
want to render to
2015-03-10 11:16:08 -07:00
Mohsen Azimi
dee699833f Update favicon with official logo and HiDPI support 2015-03-09 18:07:35 -07:00
Mohsen Azimi
998cfc72b1 Bring back "Raw" link for 1.2 specs 2015-03-06 14:33:54 -08:00
Mohsen Azimi
3e9ef059ec Render externalDocs when it's available 2015-03-05 13:51:16 -08:00
Mohsen Azimi
eeb83a40bd Render response headers
Fixes #930
2015-03-05 10:50:38 -08:00
Tony Tam
d40172c1fb Merge pull request #973 from nunovieira/print.css_2.0
add print style sheet
2015-03-03 16:41:32 -08:00
Mohsen Azimi
33d5331e60 Merge branch 'master' of https://github.com/CatLabInteractive/swagger-ui into CatLabInteractive-master
Conflicts:
	dist/lib/swagger-oauth.js
	dist/swagger-ui.js
	dist/swagger-ui.min.js
	lib/swagger-oauth.js
2015-03-02 10:15:48 -08:00
Mohsen Azimi
98eaa42820 update dependency and test in node 0.12 2015-02-28 09:00:14 -08:00
Nuno Vieira
f10c0ff405 add print style sheet 2015-02-27 18:18:14 +00:00
Tony Tam
a7e7d09e75 made space-delimited 2015-02-27 09:42:05 -08:00
Tony Tam
779db5da6a reverted files 2015-02-27 09:42:04 -08:00
Tony Tam
8f0d89c54a updated js lib 2015-02-27 09:42:04 -08:00
Mohsen Azimi
ef55b90541 user gulp-order to produce ordered template 2015-02-27 09:41:58 -08:00
Mohsen Azimi
13ac198da2 Add 'required' class to list parameter if it's required
Fixes #700
2015-02-27 09:41:53 -08:00
Mohsen Azimi
8da938b9f8 Set marked options to render GFM correctly
Fixes #825
2015-02-27 09:41:44 -08:00
Mohsen Azimi
7622b38426 Add underscore source map file
Fixes #949
2015-02-27 09:41:37 -08:00
Tony Tam
d37befe1b0 updated client for remote ref support 2015-02-27 09:41:25 -08:00
Tony Tam
96672c4e45 updated version 2015-02-27 09:41:16 -08:00
Tony Tam
4c989141b5 rebuilt 2015-02-27 09:41:02 -08:00
Tony Tam
7caac4f4ae updated version, client 2015-02-27 09:40:45 -08:00