Commit Graph

46 Commits

Author SHA1 Message Date
Kenny John Jacob
3fa3e2d89d Update add-plugin.md (#4620)
Fixed some spacing
2018-06-11 16:53:18 -07:00
kyle
bf5acc1f40 fix(topbar): remove href from Swagger logo (#4566)
Fixes #4527.

- this `href` didn't serve any visible or known purpose
- it was added before prior to 3.0.0 and has not been modified since
  - see UX 8ab65d3b
- the `Link` was kept, since the anchor was needed to preserve the current layout.
2018-05-17 16:00:26 -07:00
Ville Skyttä
14473dd51d fix: misc. spelling errors (#4421) 2018-04-09 15:58:52 -07:00
kyle
83232dc2d8 v3.12.0 (#4282)
* Use `parameterWithMeta` to get parameter data in <ParameterRow>

* Prefer specPath when fetching resolved subtrees in OperationContainer

* Add test for OAS3 callback rendering

* Remove debugger statement

* Pass base resolution URL directly to Swagger-Client subtree resolver

* Remove accidental comment

* Migrate additional options

* Don't default to empty Map when getting subtree

* fix(validateParam): check for ImList type before using count method

* Use `replaceState` to update `urls.primaryName`

This gives us the stateful URL we want, without:
(a) refreshing the page on update
(b) creating a long, useless history for the user
(c) implying that browser history is two-way bound
    to Swagger-UI (it isn't, we don't have a router)

* Add `fn.opsFilter` docs and internal API versioning note

* restrict `x-example` functionality to Swagger 2.0

* polish Authorize + Close buttons

* add tachyons; use it for padding the new Reset button

* v3.12.0

* rebuild dist
2018-03-02 21:13:00 -08:00
Grégoire Charvet 黑瓜
71d7c1a5ab Fix deeplinking for topbar plugin (#4181)
* Fix deeplinking for topbar plugin

* Lint & added tests for search parsing/serialization
2018-02-26 21:46:18 -08:00
Fabian Picone
d9c60d7d25 fix(docs): typo (#4183) 2018-02-02 20:56:02 -08:00
kyle
8f3535b5ff Merge branch 'master' into zopflipng 2018-01-03 18:55:00 -06:00
Ville Skyttä
8c4b511227 Run *.png through zopflipng -m 2017-12-16 22:42:14 +02:00
Kyle Shockey
85c83931c4 Move configs plugin to core 2017-12-14 20:17:31 -08:00
Kyle Shockey
b5c713a72b Eliminate require.context usage 2017-12-14 20:17:31 -08:00
Kyle Shockey
d063987883 Use React.cloneElement to give array elements keys instead of hardcoding 2017-11-08 22:41:29 -08:00
takaaki.iida
6664058dbe https://github.com/swagger-api/swagger-ui/issues/3871 adding a key prop to solve React.js warning 2017-11-07 20:03:56 +09:00
kyle
a95f138da7 Merge branch 'master' into feature/configsPlugin 2017-11-01 20:56:58 -07:00
kyle
8f0b498374 Update add-plugin.md 2017-10-26 10:59:06 -07:00
kyle
71c33d0af8 Update topbar.jsx 2017-10-26 10:57:36 -07:00
Josh Ponelat
50b318c5d9 Create a configs plugin
This starts to migrate configs to state
2017-10-25 09:59:54 +02:00
shockey
0010bf20a6 Update add-plugin.md 2017-07-21 16:04:58 -07:00
shockey
c82f85f123 Update topbar.jsx 2017-07-21 16:01:52 -07:00
Owen Conti
b1605a0177 Merge branch 'master' into bug/3329-duplicate-css
# Conflicts:
#	make-webpack-config.js
2017-07-17 18:49:19 -06:00
shockey
f916e3c208 Topbar: Remove unused filter and layoutSelectors 2017-07-13 22:19:17 -07:00
Minasokoni
8b5c2cc409 moved filter search to layout 2017-07-13 21:48:20 -07:00
Kyle Shockey
28f7a15fe9 Use state instead of component hand-down for managing filter 2017-07-11 21:54:56 -07:00
Owen Conti
7000c20765 Moved split-pane-mode.less file into a .scss file. Removed remaining unused .less files. Removed reference to less file in webpack config. Removed dependency on less-loader. Updated standalone and bundle builds to no longer compile any styles. 2017-07-11 20:17:06 -06:00
Gwyn Judd
c3f9c094d1 Added maxRows and filter support
Useful for the display of very large swagger specs. Can limit the number of operations to a smaller value and search
2017-07-11 09:38:20 +12:00
RVKen
d36f0a6dbd fix eslint issues 2017-06-29 04:37:19 +02:00
Kyle Shockey
afec3af4e0 Rename variable: "selectedName" -> "primaryName" 2017-06-27 17:29:03 -07:00
Kyle Shockey
158c899176 "name" -> "urls.primaryName" 2017-06-27 17:26:24 -07:00
Kyle Shockey
c423a68cfc Update selectedIndex when a new URL is loaded 2017-06-27 17:15:13 -07:00
Jesse Mandel
8cd5007812 Use select value to avoid react warning 2017-06-26 23:04:42 -07:00
Jesse Mandel
41e4d98a4c Properly added name config
Now access it through getConfigs
Documented it in README
2017-06-26 22:49:57 -07:00
shockey
b942d08923 "Select a URL" -> "Select a spec" 2017-06-23 16:26:41 -07:00
Minasokoni
73df4922f4 minimal update to styling 2017-06-21 08:22:48 -07:00
Jesse Mandel
2e40f59cad Updated Topbar with a select option if urls is passed.
Can use `?name=NAME` to preselect.
2017-06-20 15:31:36 -07:00
Javier Mendiara Cañardo
53986d60bc Move filterConfigs to core
Fixes #3056
2017-05-10 18:17:37 +02:00
Minasokoni
6b5063ead1 Merge branch 'searchbar-fix' of github.com:Minasokoni/swagger-ui into searchbar-fix 2017-05-02 11:02:24 -07:00
Minasokoni
018491b4a7 removed semicolon 2017-05-02 11:02:14 -07:00
Robert Barnwell
74b4a3d598 Merge branch 'master' into searchbar-fix 2017-05-02 10:40:31 -07:00
Minasokoni
51b04b3a26 preventDefault the form 2017-05-02 10:38:35 -07:00
Robert Barnwell
8a1e447f0f Merge branch 'master' into searchbar-update 2017-04-28 08:39:16 -07:00
Minasokoni
ca808e9d18 updated searchbar sizing 2017-04-28 08:36:32 -07:00
Anna Bodnia
cfb9ddd675 removed not used variable 2017-04-07 15:43:25 +03:00
Anna Bodnia
8130168c97 config passed with configUrl in constructor 2017-04-07 15:17:27 +03:00
Kyle Shockey
e1fcbfbf09 Linter error fixes 2017-03-23 16:36:45 -07:00
Kyle Shockey
f195d01184 Autofix ESLint problems 2017-03-22 20:40:05 -07:00
Anna Bodnia
26d5305404 fetch spec from url provided in query parameter 2017-03-19 13:28:10 +02:00
Ron
f22a628934 in with the new 2017-03-17 21:17:53 -07:00