From 0cf6b232ac9cf128ee9183a27c08f4f74ab2e2e6 Mon Sep 17 00:00:00 2001 From: grakiss Date: Thu, 28 Sep 2017 03:47:54 -0400 Subject: add api&web services for cvp JIRA: DOVETAIL-512 add api&web services for cvp Change-Id: I9ef9525e980fe61dc3108035ef9a3ff8783b2697 Signed-off-by: grakiss --- .../testapi-ui/assets/lib/jquery/.bower.json | 25 + .../testapi-ui/assets/lib/jquery/AUTHORS.txt | 301 ++++++++ .../testapi-ui/assets/lib/jquery/LICENSE.txt | 36 + .../static/testapi-ui/assets/lib/jquery/README.md | 67 ++ .../static/testapi-ui/assets/lib/jquery/bower.json | 14 + .../assets/lib/jquery/external/sizzle/LICENSE.txt | 36 + .../assets/lib/jquery/src/.eslintrc.json | 5 + .../testapi-ui/assets/lib/jquery/src/ajax.js | 855 +++++++++++++++++++++ .../testapi-ui/assets/lib/jquery/src/ajax/jsonp.js | 102 +++ .../testapi-ui/assets/lib/jquery/src/ajax/load.js | 76 ++ .../assets/lib/jquery/src/ajax/parseXML.js | 30 + .../assets/lib/jquery/src/ajax/script.js | 77 ++ .../assets/lib/jquery/src/ajax/var/location.js | 5 + .../assets/lib/jquery/src/ajax/var/nonce.js | 7 + .../assets/lib/jquery/src/ajax/var/rquery.js | 5 + .../testapi-ui/assets/lib/jquery/src/ajax/xhr.js | 169 ++++ .../testapi-ui/assets/lib/jquery/src/attributes.js | 13 + .../assets/lib/jquery/src/attributes/attr.js | 141 ++++ .../assets/lib/jquery/src/attributes/classes.js | 174 +++++ .../assets/lib/jquery/src/attributes/prop.js | 143 ++++ .../assets/lib/jquery/src/attributes/support.js | 33 + .../assets/lib/jquery/src/attributes/val.js | 190 +++++ .../testapi-ui/assets/lib/jquery/src/callbacks.js | 234 ++++++ .../testapi-ui/assets/lib/jquery/src/core.js | 476 ++++++++++++ .../assets/lib/jquery/src/core/DOMEval.js | 16 + .../assets/lib/jquery/src/core/access.js | 70 ++ .../testapi-ui/assets/lib/jquery/src/core/init.js | 128 +++ .../assets/lib/jquery/src/core/nodeName.js | 13 + .../assets/lib/jquery/src/core/parseHTML.js | 65 ++ .../lib/jquery/src/core/ready-no-deferred.js | 96 +++ .../testapi-ui/assets/lib/jquery/src/core/ready.js | 86 +++ .../assets/lib/jquery/src/core/readyException.js | 13 + .../assets/lib/jquery/src/core/stripAndCollapse.js | 14 + .../assets/lib/jquery/src/core/support.js | 20 + .../assets/lib/jquery/src/core/var/rsingleTag.js | 6 + .../static/testapi-ui/assets/lib/jquery/src/css.js | 438 +++++++++++ .../assets/lib/jquery/src/css/addGetHookIf.js | 26 + .../assets/lib/jquery/src/css/adjustCSS.js | 71 ++ .../testapi-ui/assets/lib/jquery/src/css/curCSS.js | 65 ++ .../lib/jquery/src/css/hiddenVisibleSelectors.js | 15 + .../assets/lib/jquery/src/css/showHide.js | 105 +++ .../assets/lib/jquery/src/css/support.js | 89 +++ .../assets/lib/jquery/src/css/var/cssExpand.js | 5 + .../assets/lib/jquery/src/css/var/getStyles.js | 17 + .../lib/jquery/src/css/var/isHiddenWithinTree.js | 34 + .../assets/lib/jquery/src/css/var/rmargin.js | 5 + .../assets/lib/jquery/src/css/var/rnumnonpx.js | 7 + .../assets/lib/jquery/src/css/var/swap.js | 26 + .../testapi-ui/assets/lib/jquery/src/data.js | 179 +++++ .../testapi-ui/assets/lib/jquery/src/data/Data.js | 161 ++++ .../assets/lib/jquery/src/data/var/acceptData.js | 19 + .../assets/lib/jquery/src/data/var/dataPriv.js | 7 + .../assets/lib/jquery/src/data/var/dataUser.js | 7 + .../testapi-ui/assets/lib/jquery/src/deferred.js | 391 ++++++++++ .../lib/jquery/src/deferred/exceptionHook.js | 21 + .../testapi-ui/assets/lib/jquery/src/deprecated.js | 40 + .../testapi-ui/assets/lib/jquery/src/dimensions.js | 56 ++ .../testapi-ui/assets/lib/jquery/src/effects.js | 699 +++++++++++++++++ .../assets/lib/jquery/src/effects/Tween.js | 123 +++ .../lib/jquery/src/effects/animatedSelector.js | 15 + .../testapi-ui/assets/lib/jquery/src/event.js | 746 ++++++++++++++++++ .../testapi-ui/assets/lib/jquery/src/event/ajax.js | 22 + .../assets/lib/jquery/src/event/alias.js | 29 + .../assets/lib/jquery/src/event/focusin.js | 55 ++ .../assets/lib/jquery/src/event/support.js | 11 + .../assets/lib/jquery/src/event/trigger.js | 185 +++++ .../assets/lib/jquery/src/exports/amd.js | 26 + .../assets/lib/jquery/src/exports/global.js | 34 + .../testapi-ui/assets/lib/jquery/src/jquery.js | 41 + .../assets/lib/jquery/src/manipulation.js | 488 ++++++++++++ .../assets/lib/jquery/src/manipulation/_evalUrl.js | 23 + .../lib/jquery/src/manipulation/buildFragment.js | 104 +++ .../assets/lib/jquery/src/manipulation/getAll.js | 32 + .../lib/jquery/src/manipulation/setGlobalEval.js | 22 + .../assets/lib/jquery/src/manipulation/support.js | 35 + .../jquery/src/manipulation/var/rcheckableType.js | 5 + .../lib/jquery/src/manipulation/var/rscriptType.js | 5 + .../lib/jquery/src/manipulation/var/rtagName.js | 5 + .../assets/lib/jquery/src/manipulation/wrapMap.js | 29 + .../testapi-ui/assets/lib/jquery/src/offset.js | 229 ++++++ .../testapi-ui/assets/lib/jquery/src/queue.js | 145 ++++ .../assets/lib/jquery/src/queue/delay.js | 24 + .../assets/lib/jquery/src/selector-native.js | 237 ++++++ .../assets/lib/jquery/src/selector-sizzle.js | 19 + .../testapi-ui/assets/lib/jquery/src/selector.js | 3 + .../testapi-ui/assets/lib/jquery/src/serialize.js | 130 ++++ .../testapi-ui/assets/lib/jquery/src/traversing.js | 191 +++++ .../assets/lib/jquery/src/traversing/findFilter.js | 106 +++ .../assets/lib/jquery/src/traversing/var/dir.js | 22 + .../lib/jquery/src/traversing/var/rneedsContext.js | 8 + .../lib/jquery/src/traversing/var/siblings.js | 17 + .../lib/jquery/src/var/ObjectFunctionString.js | 7 + .../testapi-ui/assets/lib/jquery/src/var/arr.js | 5 + .../assets/lib/jquery/src/var/class2type.js | 6 + .../testapi-ui/assets/lib/jquery/src/var/concat.js | 7 + .../assets/lib/jquery/src/var/document.js | 5 + .../assets/lib/jquery/src/var/documentElement.js | 7 + .../assets/lib/jquery/src/var/fnToString.js | 7 + .../assets/lib/jquery/src/var/getProto.js | 5 + .../testapi-ui/assets/lib/jquery/src/var/hasOwn.js | 7 + .../assets/lib/jquery/src/var/indexOf.js | 7 + .../testapi-ui/assets/lib/jquery/src/var/pnum.js | 5 + .../testapi-ui/assets/lib/jquery/src/var/push.js | 7 + .../assets/lib/jquery/src/var/rcssNum.js | 9 + .../assets/lib/jquery/src/var/rnothtmlwhite.js | 8 + .../testapi-ui/assets/lib/jquery/src/var/slice.js | 7 + .../assets/lib/jquery/src/var/support.js | 6 + .../assets/lib/jquery/src/var/toString.js | 7 + .../testapi-ui/assets/lib/jquery/src/wrap.js | 77 ++ 109 files changed, 9579 insertions(+) create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/.bower.json create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/AUTHORS.txt create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/LICENSE.txt create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/README.md create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/bower.json create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/external/sizzle/LICENSE.txt create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/.eslintrc.json create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/jsonp.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/load.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/parseXML.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/script.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/var/location.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/var/nonce.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/var/rquery.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/xhr.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/attr.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/classes.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/prop.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/support.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/val.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/callbacks.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/DOMEval.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/access.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/init.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/nodeName.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/parseHTML.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready-no-deferred.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/readyException.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/stripAndCollapse.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/support.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/var/rsingleTag.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/addGetHookIf.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/adjustCSS.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/curCSS.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/hiddenVisibleSelectors.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/showHide.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/support.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/cssExpand.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/getStyles.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/isHiddenWithinTree.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/rmargin.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/rnumnonpx.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/swap.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/data.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/data/Data.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/data/var/acceptData.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/data/var/dataPriv.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/data/var/dataUser.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/deferred.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/deferred/exceptionHook.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/deprecated.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/dimensions.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/effects.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/effects/Tween.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/effects/animatedSelector.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/event.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/event/ajax.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/event/alias.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/event/focusin.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/event/support.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/event/trigger.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/exports/amd.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/exports/global.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/jquery.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/_evalUrl.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/buildFragment.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/getAll.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/setGlobalEval.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/support.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/var/rcheckableType.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/var/rscriptType.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/var/rtagName.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/wrapMap.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/offset.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/queue.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/queue/delay.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/selector-native.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/selector-sizzle.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/selector.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/serialize.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing/findFilter.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing/var/dir.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing/var/rneedsContext.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing/var/siblings.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/ObjectFunctionString.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/arr.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/class2type.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/concat.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/document.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/documentElement.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/fnToString.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/getProto.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/hasOwn.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/indexOf.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/pnum.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/push.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/rcssNum.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/rnothtmlwhite.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/slice.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/support.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/var/toString.js create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/wrap.js (limited to 'cvp/3rd_party/static/testapi-ui/assets/lib/jquery') diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/.bower.json b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/.bower.json new file mode 100644 index 00000000..28bf959a --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/.bower.json @@ -0,0 +1,25 @@ +{ + "name": "jquery", + "main": "dist/jquery.js", + "license": "MIT", + "ignore": [ + "package.json" + ], + "keywords": [ + "jquery", + "javascript", + "browser", + "library" + ], + "homepage": "https://github.com/jquery/jquery-dist", + "version": "3.2.1", + "_release": "3.2.1", + "_resolution": { + "type": "version", + "tag": "3.2.1", + "commit": "77d2a51d0520d2ee44173afdf4e40a9201f5964e" + }, + "_source": "https://github.com/jquery/jquery-dist.git", + "_target": ">= 1.9.1", + "_originalSource": "jquery" +} \ No newline at end of file diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/AUTHORS.txt b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/AUTHORS.txt new file mode 100644 index 00000000..c32c25f9 --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/AUTHORS.txt @@ -0,0 +1,301 @@ +Authors ordered by first contribution. + +John Resig +Gilles van den Hoven +Michael Geary +Stefan Petre +Yehuda Katz +Corey Jewett +Klaus Hartl +Franck Marcia +Jörn Zaefferer +Paul Bakaus +Brandon Aaron +Mike Alsup +Dave Methvin +Ed Engelhardt +Sean Catchpole +Paul Mclanahan +David Serduke +Richard D. Worth +Scott González +Ariel Flesler +Jon Evans +TJ Holowaychuk +Michael Bensoussan +Robert Katić +Louis-Rémi Babé +Earle Castledine +Damian Janowski +Rich Dougherty +Kim Dalsgaard +Andrea Giammarchi +Mark Gibson +Karl Swedberg +Justin Meyer +Ben Alman +James Padolsey +David Petersen +Batiste Bieler +Alexander Farkas +Rick Waldron +Filipe Fortes +Neeraj Singh +Paul Irish +Iraê Carvalho +Matt Curry +Michael Monteleone +Noah Sloan +Tom Viner +Douglas Neiner +Adam J. Sontag +Dave Reed +Ralph Whitbeck +Carl Fürstenberg +Jacob Wright +J. Ryan Stinnett +unknown +temp01 +Heungsub Lee +Colin Snover +Ryan W Tenney +Pinhook +Ron Otten +Jephte Clain +Anton Matzneller +Alex Sexton +Dan Heberden +Henri Wiechers +Russell Holbrook +Julian Aubourg +Gianni Alessandro Chiappetta +Scott Jehl +James Burke +Jonas Pfenniger +Xavi Ramirez +Jared Grippe +Sylvester Keil +Brandon Sterne +Mathias Bynens +Timmy Willison <4timmywil@gmail.com> +Corey Frang +Digitalxero +Anton Kovalyov +David Murdoch +Josh Varner +Charles McNulty +Jordan Boesch +Jess Thrysoee +Michael Murray +Lee Carpenter +Alexis Abril +Rob Morgan +John Firebaugh +Sam Bisbee +Gilmore Davidson +Brian Brennan +Xavier Montillet +Daniel Pihlstrom +Sahab Yazdani +avaly +Scott Hughes +Mike Sherov +Greg Hazel +Schalk Neethling +Denis Knauf +Timo Tijhof +Steen Nielsen +Anton Ryzhov +Shi Chuan +Berker Peksag +Toby Brain +Matt Mueller +Justin +Daniel Herman +Oleg Gaidarenko +Richard Gibson +Rafaël Blais Masson +cmc3cn <59194618@qq.com> +Joe Presbrey +Sindre Sorhus +Arne de Bree +Vladislav Zarakovsky +Andrew E Monat +Oskari +Joao Henrique de Andrade Bruni +tsinha +Matt Farmer +Trey Hunner +Jason Moon +Jeffery To +Kris Borchers +Vladimir Zhuravlev +Jacob Thornton +Chad Killingsworth +Nowres Rafid +David Benjamin +Uri Gilad +Chris Faulkner +Elijah Manor +Daniel Chatfield +Nikita Govorov +Wesley Walser +Mike Pennisi +Markus Staab +Dave Riddle +Callum Macrae +Benjamin Truyman +James Huston +Erick Ruiz de Chávez +David Bonner +Akintayo Akinwunmi +MORGAN +Ismail Khair +Carl Danley +Mike Petrovich +Greg Lavallee +Daniel Gálvez +Sai Lung Wong +Tom H Fuertes +Roland Eckl +Jay Merrifield +Allen J Schmidt Jr +Jonathan Sampson +Marcel Greter +Matthias Jäggli +David Fox +Yiming He +Devin Cooper +Paul Ramos +Rod Vagg +Bennett Sorbo +Sebastian Burkhard +Zachary Adam Kaplan +nanto_vi +nanto +Danil Somsikov +Ryunosuke SATO +Jean Boussier +Adam Coulombe +Andrew Plummer +Mark Raddatz +Isaac Z. Schlueter +Karl Sieburg +Pascal Borreli +Nguyen Phuc Lam +Dmitry Gusev +Michał Gołębiowski +Li Xudong +Steven Benner +Tom H Fuertes +Renato Oliveira dos Santos +ros3cin +Jason Bedard +Kyle Robinson Young +Chris Talkington +Eddie Monge +Terry Jones +Jason Merino +Jeremy Dunck +Chris Price +Guy Bedford +Amey Sakhadeo +Mike Sidorov +Anthony Ryan +Dominik D. Geyer +George Kats +Lihan Li +Ronny Springer +Chris Antaki +Marian Sollmann +njhamann +Ilya Kantor +David Hong +John Paul +Jakob Stoeck +Christopher Jones +Forbes Lindesay +S. Andrew Sheppard +Leonardo Balter +Roman Reiß +Benjy Cui +Rodrigo Rosenfeld Rosas +John Hoven +Philip Jägenstedt +Christian Kosmowski +Liang Peng +TJ VanToll +Senya Pugach +Aurelio De Rosa +Nazar Mokrynskyi +Amit Merchant +Jason Bedard +Arthur Verschaeve +Dan Hart +Bin Xin +David Corbacho +Veaceslav Grimalschi +Daniel Husar +Frederic Hemberger +Ben Toews +Aditya Raghavan +Victor Homyakov +Shivaji Varma +Nicolas HENRY +Anne-Gaelle Colom +George Mauer +Leonardo Braga +Stephen Edgar +Thomas Tortorini +Winston Howes +Jon Hester +Alexander O'Mara +Bastian Buchholz +Arthur Stolyar +Calvin Metcalf +Mu Haibao +Richard McDaniel +Chris Rebert +Gabriel Schulhof +Gilad Peleg +Martin Naumann +Marek Lewandowski +Bruno Pérel +Reed Loden +Daniel Nill +Yongwoo Jeon +Sean Henderson +Richard Kraaijenhagen +Connor Atherton +Gary Ye +Christian Grete +Liza Ramo +Julian Alexander Murillo +Joelle Fleurantin +Jae Sung Park +Jun Sun +Josh Soref +Henry Wong +Jon Dufresne +Martijn W. van der Lee +Devin Wilson +Steve Mao +Zack Hall +Bernhard M. Wiedemann +Todor Prikumov +Jha Naman +William Robinet +Alexander Lisianoi +Vitaliy Terziev +Joe Trumbull +Alexander K +Damian Senn +Ralin Chimev +Felipe Sateler +Christophe Tafani-Dereeper +Manoj Kumar +David Broder-Rodgers +Alex Louden +Alex Padilla +南漂一卒 +karan-96 diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/LICENSE.txt b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/LICENSE.txt new file mode 100644 index 00000000..e4e5e00e --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/LICENSE.txt @@ -0,0 +1,36 @@ +Copyright JS Foundation and other contributors, https://js.foundation/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/jquery + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/README.md b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/README.md new file mode 100644 index 00000000..09a4273e --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/README.md @@ -0,0 +1,67 @@ +# jQuery + +> jQuery is a fast, small, and feature-rich JavaScript library. + +For information on how to get started and how to use jQuery, please see [jQuery's documentation](http://api.jquery.com/). +For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery). + +If upgrading, please see the [blog post for 3.2.1](https://blog.jquery.com/2017/03/20/jquery-3-2-1-now-available/). This includes notable differences from the previous version and a more readable changelog. + +## Including jQuery + +Below are some of the most common ways to include jQuery. + +### Browser + +#### Script tag + +```html + +``` + +#### Babel + +[Babel](http://babeljs.io/) is a next generation JavaScript compiler. One of the features is the ability to use ES6/ES2015 modules now, even though browsers do not yet support this feature natively. + +```js +import $ from "jquery"; +``` + +#### Browserify/Webpack + +There are several ways to use [Browserify](http://browserify.org/) and [Webpack](https://webpack.github.io/). For more information on using these tools, please refer to the corresponding project's documention. In the script, including jQuery will usually look like this... + +```js +var $ = require("jquery"); +``` + +#### AMD (Asynchronous Module Definition) + +AMD is a module format built for the browser. For more information, we recommend [require.js' documentation](http://requirejs.org/docs/whyamd.html). + +```js +define(["jquery"], function($) { + +}); +``` + +### Node + +To include jQuery in [Node](nodejs.org), first install with npm. + +```sh +npm install jquery +``` + +For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](https://github.com/tmpvar/jsdom). This can be useful for testing purposes. + +```js +require("jsdom").env("", function(err, window) { + if (err) { + console.error(err); + return; + } + + var $ = require("jquery")(window); +}); +``` diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/bower.json b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/bower.json new file mode 100644 index 00000000..95798d5a --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/bower.json @@ -0,0 +1,14 @@ +{ + "name": "jquery", + "main": "dist/jquery.js", + "license": "MIT", + "ignore": [ + "package.json" + ], + "keywords": [ + "jquery", + "javascript", + "browser", + "library" + ] +} \ No newline at end of file diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/external/sizzle/LICENSE.txt b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/external/sizzle/LICENSE.txt new file mode 100644 index 00000000..dd7ce940 --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/external/sizzle/LICENSE.txt @@ -0,0 +1,36 @@ +Copyright jQuery Foundation and other contributors, https://jquery.org/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/sizzle + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/.eslintrc.json b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/.eslintrc.json new file mode 100644 index 00000000..3a4a3d25 --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "root": true, + + "extends": "../.eslintrc-browser.json" +} diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax.js b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax.js new file mode 100644 index 00000000..36f707d7 --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax.js @@ -0,0 +1,855 @@ +define( [ + "./core", + "./var/document", + "./var/rnothtmlwhite", + "./ajax/var/location", + "./ajax/var/nonce", + "./ajax/var/rquery", + + "./core/init", + "./ajax/parseXML", + "./event/trigger", + "./deferred", + "./serialize" // jQuery.param +], function( jQuery, document, rnothtmlwhite, location, nonce, rquery ) { + +"use strict"; + +var + r20 = /%20/g, + rhash = /#.*$/, + rantiCache = /([?&])_=[^&]*/, + rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, + + // #7653, #8125, #8152: local protocol detection + rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, + rnoContent = /^(?:GET|HEAD)$/, + rprotocol = /^\/\//, + + /* Prefilters + * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) + * 2) These are called: + * - BEFORE asking for a transport + * - AFTER param serialization (s.data is a string if s.processData is true) + * 3) key is the dataType + * 4) the catchall symbol "*" can be used + * 5) execution will start with transport dataType and THEN continue down to "*" if needed + */ + prefilters = {}, + + /* Transports bindings + * 1) key is the dataType + * 2) the catchall symbol "*" can be used + * 3) selection will start with transport dataType and THEN go to "*" if needed + */ + transports = {}, + + // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression + allTypes = "*/".concat( "*" ), + + // Anchor tag for parsing the document origin + originAnchor = document.createElement( "a" ); + originAnchor.href = location.href; + +// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport +function addToPrefiltersOrTransports( structure ) { + + // dataTypeExpression is optional and defaults to "*" + return function( dataTypeExpression, func ) { + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + var dataType, + i = 0, + dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; + + if ( jQuery.isFunction( func ) ) { + + // For each dataType in the dataTypeExpression + while ( ( dataType = dataTypes[ i++ ] ) ) { + + // Prepend if requested + if ( dataType[ 0 ] === "+" ) { + dataType = dataType.slice( 1 ) || "*"; + ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); + + // Otherwise append + } else { + ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); + } + } + } + }; +} + +// Base inspection function for prefilters and transports +function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { + + var inspected = {}, + seekingTransport = ( structure === transports ); + + function inspect( dataType ) { + var selected; + inspected[ dataType ] = true; + jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { + var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); + if ( typeof dataTypeOrTransport === "string" && + !seekingTransport && !inspected[ dataTypeOrTransport ] ) { + + options.dataTypes.unshift( dataTypeOrTransport ); + inspect( dataTypeOrTransport ); + return false; + } else if ( seekingTransport ) { + return !( selected = dataTypeOrTransport ); + } + } ); + return selected; + } + + return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); +} + +// A special extend for ajax options +// that takes "flat" options (not to be deep extended) +// Fixes #9887 +function ajaxExtend( target, src ) { + var key, deep, + flatOptions = jQuery.ajaxSettings.flatOptions || {}; + + for ( key in src ) { + if ( src[ key ] !== undefined ) { + ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; + } + } + if ( deep ) { + jQuery.extend( true, target, deep ); + } + + return target; +} + +/* Handles responses to an ajax request: + * - finds the right dataType (mediates between content-type and expected dataType) + * - returns the corresponding response + */ +function ajaxHandleResponses( s, jqXHR, responses ) { + + var ct, type, finalDataType, firstDataType, + contents = s.contents, + dataTypes = s.dataTypes; + + // Remove auto dataType and get content-type in the process + while ( dataTypes[ 0 ] === "*" ) { + dataTypes.shift(); + if ( ct === undefined ) { + ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); + } + } + + // Check if we're dealing with a known content-type + if ( ct ) { + for ( type in contents ) { + if ( contents[ type ] && contents[ type ].test( ct ) ) { + dataTypes.unshift( type ); + break; + } + } + } + + // Check to see if we have a response for the expected dataType + if ( dataTypes[ 0 ] in responses ) { + finalDataType = dataTypes[ 0 ]; + } else { + + // Try convertible dataTypes + for ( type in responses ) { + if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { + finalDataType = type; + break; + } + if ( !firstDataType ) { + firstDataType = type; + } + } + + // Or just use first one + finalDataType = finalDataType || firstDataType; + } + + // If we found a dataType + // We add the dataType to the list if needed + // and return the corresponding response + if ( finalDataType ) { + if ( finalDataType !== dataTypes[ 0 ] ) { + dataTypes.unshift( finalDataType ); + } + return responses[ finalDataType ]; + } +} + +/* Chain conversions given the request and the original response + * Also sets the responseXXX fields on the jqXHR instance + */ +function ajaxConvert( s, response, jqXHR, isSuccess ) { + var conv2, current, conv, tmp, prev, + converters = {}, + + // Work with a copy of dataTypes in case we need to modify it for conversion + dataTypes = s.dataTypes.slice(); + + // Create converters map with lowercased keys + if ( dataTypes[ 1 ] ) { + for ( conv in s.converters ) { + converters[ conv.toLowerCase() ] = s.converters[ conv ]; + } + } + + current = dataTypes.shift(); + + // Convert to each sequential dataType + while ( current ) { + + if ( s.responseFields[ current ] ) { + jqXHR[ s.responseFields[ current ] ] = response; + } + + // Apply the dataFilter if provided + if ( !prev && isSuccess && s.dataFilter ) { + response = s.dataFilter( response, s.dataType ); + } + + prev = current; + current = dataTypes.shift(); + + if ( current ) { + + // There's only work to do if current dataType is non-auto + if ( current === "*" ) { + + current = prev; + + // Convert response if prev dataType is non-auto and differs from current + } else if ( prev !== "*" && prev !== current ) { + + // Seek a direct converter + conv = converters[ prev + " " + current ] || converters[ "* " + current ]; + + // If none found, seek a pair + if ( !conv ) { + for ( conv2 in converters ) { + + // If conv2 outputs current + tmp = conv2.split( " " ); + if ( tmp[ 1 ] === current ) { + + // If prev can be converted to accepted input + conv = converters[ prev + " " + tmp[ 0 ] ] || + converters[ "* " + tmp[ 0 ] ]; + if ( conv ) { + + // Condense equivalence converters + if ( conv === true ) { + conv = converters[ conv2 ]; + + // Otherwise, insert the intermediate dataType + } else if ( converters[ conv2 ] !== true ) { + current = tmp[ 0 ]; + dataTypes.unshift( tmp[ 1 ] ); + } + break; + } + } + } + } + + // Apply converter (if not an equivalence) + if ( conv !== true ) { + + // Unless errors are allowed to bubble, catch and return them + if ( conv && s.throws ) { + response = conv( response ); + } else { + try { + response = conv( response ); + } catch ( e ) { + return { + state: "parsererror", + error: conv ? e : "No conversion from " + prev + " to " + current + }; + } + } + } + } + } + } + + return { state: "success", data: response }; +} + +jQuery.extend( { + + // Counter for holding the number of active queries + active: 0, + + // Last-Modified header cache for next request + lastModified: {}, + etag: {}, + + ajaxSettings: { + url: location.href, + type: "GET", + isLocal: rlocalProtocol.test( location.protocol ), + global: true, + processData: true, + async: true, + contentType: "application/x-www-form-urlencoded; charset=UTF-8", + + /* + timeout: 0, + data: null, + dataType: null, + username: null, + password: null, + cache: null, + throws: false, + traditional: false, + headers: {}, + */ + + accepts: { + "*": allTypes, + text: "text/plain", + html: "text/html", + xml: "application/xml, text/xml", + json: "application/json, text/javascript" + }, + + contents: { + xml: /\bxml\b/, + html: /\bhtml/, + json: /\bjson\b/ + }, + + responseFields: { + xml: "responseXML", + text: "responseText", + json: "responseJSON" + }, + + // Data converters + // Keys separate source (or catchall "*") and destination types with a single space + converters: { + + // Convert anything to text + "* text": String, + + // Text to html (true = no transformation) + "text html": true, + + // Evaluate text as a json expression + "text json": JSON.parse, + + // Parse text as xml + "text xml": jQuery.parseXML + }, + + // For options that shouldn't be deep extended: + // you can add your own custom options here if + // and when you create one that shouldn't be + // deep extended (see ajaxExtend) + flatOptions: { + url: true, + context: true + } + }, + + // Creates a full fledged settings object into target + // with both ajaxSettings and settings fields. + // If target is omitted, writes into ajaxSettings. + ajaxSetup: function( target, settings ) { + return settings ? + + // Building a settings object + ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : + + // Extending ajaxSettings + ajaxExtend( jQuery.ajaxSettings, target ); + }, + + ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), + ajaxTransport: addToPrefiltersOrTransports( transports ), + + // Main method + ajax: function( url, options ) { + + // If url is an object, simulate pre-1.5 signature + if ( typeof url === "object" ) { + options = url; + url = undefined; + } + + // Force options to be an object + options = options || {}; + + var transport, + + // URL without anti-cache param + cacheURL, + + // Response headers + responseHeadersString, + responseHeaders, + + // timeout handle + timeoutTimer, + + // Url cleanup var + urlAnchor, + + // Request state (becomes false upon send and true upon completion) + completed, + + // To know if global events are to be dispatched + fireGlobals, + + // Loop variable + i, + + // uncached part of the url + uncached, + + // Create the final options object + s = jQuery.ajaxSetup( {}, options ), + + // Callbacks context + callbackContext = s.context || s, + + // Context for global events is callbackContext if it is a DOM node or jQuery collection + globalEventContext = s.context && + ( callbackContext.nodeType || callbackContext.jquery ) ? + jQuery( callbackContext ) : + jQuery.event, + + // Deferreds + deferred = jQuery.Deferred(), + completeDeferred = jQuery.Callbacks( "once memory" ), + + // Status-dependent callbacks + statusCode = s.statusCode || {}, + + // Headers (they are sent all at once) + requestHeaders = {}, + requestHeadersNames = {}, + + // Default abort message + strAbort = "canceled", + + // Fake xhr + jqXHR = { + readyState: 0, + + // Builds headers hashtable if needed + getResponseHeader: function( key ) { + var match; + if ( completed ) { + if ( !responseHeaders ) { + responseHeaders = {}; + while ( ( match = rheaders.exec( responseHeadersString ) ) ) { + responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; + } + } + match = responseHeaders[ key.toLowerCase() ]; + } + return match == null ? null : match; + }, + + // Raw string + getAllResponseHeaders: function() { + return completed ? responseHeadersString : null; + }, + + // Caches the header + setRequestHeader: function( name, value ) { + if ( completed == null ) { + name = requestHeadersNames[ name.toLowerCase() ] = + requestHeadersNames[ name.toLowerCase() ] || name; + requestHeaders[ name ] = value; + } + return this; + }, + + // Overrides response content-type header + overrideMimeType: function( type ) { + if ( completed == null ) { + s.mimeType = type; + } + return this; + }, + + // Status-dependent callbacks + statusCode: function( map ) { + var code; + if ( map ) { + if ( completed ) { + + // Execute the appropriate callbacks + jqXHR.always( map[ jqXHR.status ] ); + } else { + + // Lazy-add the new callbacks in a way that preserves old ones + for ( code in map ) { + statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; + } + } + } + return this; + }, + + // Cancel the request + abort: function( statusText ) { + var finalText = statusText || strAbort; + if ( transport ) { + transport.abort( finalText ); + } + done( 0, finalText ); + return this; + } + }; + + // Attach deferreds + deferred.promise( jqXHR ); + + // Add protocol if not provided (prefilters might expect it) + // Handle falsy url in the settings object (#10093: consistency with old signature) + // We also use the url parameter if available + s.url = ( ( url || s.url || location.href ) + "" ) + .replace( rprotocol, location.protocol + "//" ); + + // Alias method option to type as per ticket #12004 + s.type = options.method || options.type || s.method || s.type; + + // Extract dataTypes list + s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; + + // A cross-domain request is in order when the origin doesn't match the current origin. + if ( s.crossDomain == null ) { + urlAnchor = document.createElement( "a" ); + + // Support: IE <=8 - 11, Edge 12 - 13 + // IE throws exception on accessing the href property if url is malformed, + // e.g. http://example.com:80x/ + try { + urlAnchor.href = s.url; + + // Support: IE <=8 - 11 only + // Anchor's host property isn't correctly set when s.url is relative + urlAnchor.href = urlAnchor.href; + s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== + urlAnchor.protocol + "//" + urlAnchor.host; + } catch ( e ) { + + // If there is an error parsing the URL, assume it is crossDomain, + // it can be rejected by the transport if it is invalid + s.crossDomain = true; + } + } + + // Convert data if not already a string + if ( s.data && s.processData && typeof s.data !== "string" ) { + s.data = jQuery.param( s.data, s.traditional ); + } + + // Apply prefilters + inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); + + // If request was aborted inside a prefilter, stop there + if ( completed ) { + return jqXHR; + } + + // We can fire global events as of now if asked to + // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) + fireGlobals = jQuery.event && s.global; + + // Watch for a new set of requests + if ( fireGlobals && jQuery.active++ === 0 ) { + jQuery.event.trigger( "ajaxStart" ); + } + + // Uppercase the type + s.type = s.type.toUpperCase(); + + // Determine if request has content + s.hasContent = !rnoContent.test( s.type ); + + // Save the URL in case we're toying with the If-Modified-Since + // and/or If-None-Match header later on + // Remove hash to simplify url manipulation + cacheURL = s.url.replace( rhash, "" ); + + // More options handling for requests with no content + if ( !s.hasContent ) { + + // Remember the hash so we can put it back + uncached = s.url.slice( cacheURL.length ); + + // If data is available, append data to url + if ( s.data ) { + cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; + + // #9682: remove data so that it's not used in an eventual retry + delete s.data; + } + + // Add or update anti-cache param if needed + if ( s.cache === false ) { + cacheURL = cacheURL.replace( rantiCache, "$1" ); + uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; + } + + // Put hash and anti-cache on the URL that will be requested (gh-1732) + s.url = cacheURL + uncached; + + // Change '%20' to '+' if this is encoded form body content (gh-2658) + } else if ( s.data && s.processData && + ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { + s.data = s.data.replace( r20, "+" ); + } + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + if ( jQuery.lastModified[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); + } + if ( jQuery.etag[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); + } + } + + // Set the correct header, if data is being sent + if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { + jqXHR.setRequestHeader( "Content-Type", s.contentType ); + } + + // Set the Accepts header for the server, depending on the dataType + jqXHR.setRequestHeader( + "Accept", + s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? + s.accepts[ s.dataTypes[ 0 ] ] + + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : + s.accepts[ "*" ] + ); + + // Check for headers option + for ( i in s.headers ) { + jqXHR.setRequestHeader( i, s.headers[ i ] ); + } + + // Allow custom headers/mimetypes and early abort + if ( s.beforeSend && + ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { + + // Abort if not done already and return + return jqXHR.abort(); + } + + // Aborting is no longer a cancellation + strAbort = "abort"; + + // Install callbacks on deferreds + completeDeferred.add( s.complete ); + jqXHR.done( s.success ); + jqXHR.fail( s.error ); + + // Get transport + transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); + + // If no transport, we auto-abort + if ( !transport ) { + done( -1, "No Transport" ); + } else { + jqXHR.readyState = 1; + + // Send global event + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); + } + + // If request was aborted inside ajaxSend, stop there + if ( completed ) { + return jqXHR; + } + + // Timeout + if ( s.async && s.timeout > 0 ) { + timeoutTimer = window.setTimeout( function() { + jqXHR.abort( "timeout" ); + }, s.timeout ); + } + + try { + completed = false; + transport.send( requestHeaders, done ); + } catch ( e ) { + + // Rethrow post-completion exceptions + if ( completed ) { + throw e; + } + + // Propagate others as results + done( -1, e ); + } + } + + // Callback for when everything is done + function done( status, nativeStatusText, responses, headers ) { + var isSuccess, success, error, response, modified, + statusText = nativeStatusText; + + // Ignore repeat invocations + if ( completed ) { + return; + } + + completed = true; + + // Clear timeout if it exists + if ( timeoutTimer ) { + window.clearTimeout( timeoutTimer ); + } + + // Dereference transport for early garbage collection + // (no matter how long the jqXHR object will be used) + transport = undefined; + + // Cache response headers + responseHeadersString = headers || ""; + + // Set readyState + jqXHR.readyState = status > 0 ? 4 : 0; + + // Determine if successful + isSuccess = status >= 200 && status < 300 || status === 304; + + // Get response data + if ( responses ) { + response = ajaxHandleResponses( s, jqXHR, responses ); + } + + // Convert no matter what (that way responseXXX fields are always set) + response = ajaxConvert( s, response, jqXHR, isSuccess ); + + // If successful, handle type chaining + if ( isSuccess ) { + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + modified = jqXHR.getResponseHeader( "Last-Modified" ); + if ( modified ) { + jQuery.lastModified[ cacheURL ] = modified; + } + modified = jqXHR.getResponseHeader( "etag" ); + if ( modified ) { + jQuery.etag[ cacheURL ] = modified; + } + } + + // if no content + if ( status === 204 || s.type === "HEAD" ) { + statusText = "nocontent"; + + // if not modified + } else if ( status === 304 ) { + statusText = "notmodified"; + + // If we have data, let's convert it + } else { + statusText = response.state; + success = response.data; + error = response.error; + isSuccess = !error; + } + } else { + + // Extract error from statusText and normalize for non-aborts + error = statusText; + if ( status || !statusText ) { + statusText = "error"; + if ( status < 0 ) { + status = 0; + } + } + } + + // Set data for the fake xhr object + jqXHR.status = status; + jqXHR.statusText = ( nativeStatusText || statusText ) + ""; + + // Success/Error + if ( isSuccess ) { + deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); + } else { + deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); + } + + // Status-dependent callbacks + jqXHR.statusCode( statusCode ); + statusCode = undefined; + + if ( fireGlobals ) { + globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", + [ jqXHR, s, isSuccess ? success : error ] ); + } + + // Complete + completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); + + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); + + // Handle the global AJAX counter + if ( !( --jQuery.active ) ) { + jQuery.event.trigger( "ajaxStop" ); + } + } + } + + return jqXHR; + }, + + getJSON: function( url, data, callback ) { + return jQuery.get( url, data, callback, "json" ); + }, + + getScript: function( url, callback ) { + return jQuery.get( url, undefined, callback, "script" ); + } +} ); + +jQuery.each( [ "get", "post" ], function( i, method ) { + jQuery[ method ] = function( url, data, callback, type ) { + + // Shift arguments if data argument was omitted + if ( jQuery.isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + // The url can be an options object (which then must have .url) + return jQuery.ajax( jQuery.extend( { + url: url, + type: method, + dataType: type, + data: data, + success: callback + }, jQuery.isPlainObject( url ) && url ) ); + }; +} ); + +return jQuery; +} ); diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/jsonp.js b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/jsonp.js new file mode 100644 index 00000000..8c406e72 --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/jsonp.js @@ -0,0 +1,102 @@ +define( [ + "../core", + "./var/nonce", + "./var/rquery", + "../ajax" +], function( jQuery, nonce, rquery ) { + +"use strict"; + +var oldCallbacks = [], + rjsonp = /(=)\?(?=&|$)|\?\?/; + +// Default jsonp settings +jQuery.ajaxSetup( { + jsonp: "callback", + jsonpCallback: function() { + var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) ); + this[ callback ] = true; + return callback; + } +} ); + +// Detect, normalize options and install callbacks for jsonp requests +jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { + + var callbackName, overwritten, responseContainer, + jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ? + "url" : + typeof s.data === "string" && + ( s.contentType || "" ) + .indexOf( "application/x-www-form-urlencoded" ) === 0 && + rjsonp.test( s.data ) && "data" + ); + + // Handle iff the expected data type is "jsonp" or we have a parameter to set + if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) { + + // Get callback name, remembering preexisting value associated with it + callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ? + s.jsonpCallback() : + s.jsonpCallback; + + // Insert callback into url or form data + if ( jsonProp ) { + s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName ); + } else if ( s.jsonp !== false ) { + s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; + } + + // Use data converter to retrieve json after script execution + s.converters[ "script json" ] = function() { + if ( !responseContainer ) { + jQuery.error( callbackName + " was not called" ); + } + return responseContainer[ 0 ]; + }; + + // Force json dataType + s.dataTypes[ 0 ] = "json"; + + // Install callback + overwritten = window[ callbackName ]; + window[ callbackName ] = function() { + responseContainer = arguments; + }; + + // Clean-up function (fires after converters) + jqXHR.always( function() { + + // If previous value didn't exist - remove it + if ( overwritten === undefined ) { + jQuery( window ).removeProp( callbackName ); + + // Otherwise restore preexisting value + } else { + window[ callbackName ] = overwritten; + } + + // Save back as free + if ( s[ callbackName ] ) { + + // Make sure that re-using the options doesn't screw things around + s.jsonpCallback = originalSettings.jsonpCallback; + + // Save the callback name for future use + oldCallbacks.push( callbackName ); + } + + // Call if it was a function and we have a response + if ( responseContainer && jQuery.isFunction( overwritten ) ) { + overwritten( responseContainer[ 0 ] ); + } + + responseContainer = overwritten = undefined; + } ); + + // Delegate to script + return "script"; + } +} ); + +} ); diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/load.js b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/load.js new file mode 100644 index 00000000..3ce3a5aa --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/load.js @@ -0,0 +1,76 @@ +define( [ + "../core", + "../core/stripAndCollapse", + "../core/parseHTML", + "../ajax", + "../traversing", + "../manipulation", + "../selector" +], function( jQuery, stripAndCollapse ) { + +"use strict"; + +/** + * Load a url into a page + */ +jQuery.fn.load = function( url, params, callback ) { + var selector, type, response, + self = this, + off = url.indexOf( " " ); + + if ( off > -1 ) { + selector = stripAndCollapse( url.slice( off ) ); + url = url.slice( 0, off ); + } + + // If it's a function + if ( jQuery.isFunction( params ) ) { + + // We assume that it's the callback + callback = params; + params = undefined; + + // Otherwise, build a param string + } else if ( params && typeof params === "object" ) { + type = "POST"; + } + + // If we have elements to modify, make the request + if ( self.length > 0 ) { + jQuery.ajax( { + url: url, + + // If "type" variable is undefined, then "GET" method will be used. + // Make value of this field explicit since + // user can override it through ajaxSetup method + type: type || "GET", + dataType: "html", + data: params + } ).done( function( responseText ) { + + // Save response for use in complete callback + response = arguments; + + self.html( selector ? + + // If a selector was specified, locate the right elements in a dummy div + // Exclude scripts to avoid IE 'Permission Denied' errors + jQuery( "
" ).append( jQuery.parseHTML( responseText ) ).find( selector ) : + + // Otherwise use the full result + responseText ); + + // If the request succeeds, this function gets "data", "status", "jqXHR" + // but they are ignored because response was set above. + // If it fails, this function gets "jqXHR", "status", "error" + } ).always( callback && function( jqXHR, status ) { + self.each( function() { + callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] ); + } ); + } ); + } + + return this; +}; + +} ); diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/parseXML.js b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/parseXML.js new file mode 100644 index 00000000..acf7ab25 --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/parseXML.js @@ -0,0 +1,30 @@ +define( [ + "../core" +], function( jQuery ) { + +"use strict"; + +// Cross-browser xml parsing +jQuery.parseXML = function( data ) { + var xml; + if ( !data || typeof data !== "string" ) { + return null; + } + + // Support: IE 9 - 11 only + // IE throws on parseFromString with invalid input. + try { + xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); + } catch ( e ) { + xml = undefined; + } + + if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; +}; + +return jQuery.parseXML; + +} ); diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/script.js b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/script.js new file mode 100644 index 00000000..6e0d21e9 --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/script.js @@ -0,0 +1,77 @@ +define( [ + "../core", + "../var/document", + "../ajax" +], function( jQuery, document ) { + +"use strict"; + +// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) +jQuery.ajaxPrefilter( function( s ) { + if ( s.crossDomain ) { + s.contents.script = false; + } +} ); + +// Install script dataType +jQuery.ajaxSetup( { + accepts: { + script: "text/javascript, application/javascript, " + + "application/ecmascript, application/x-ecmascript" + }, + contents: { + script: /\b(?:java|ecma)script\b/ + }, + converters: { + "text script": function( text ) { + jQuery.globalEval( text ); + return text; + } + } +} ); + +// Handle cache's special case and crossDomain +jQuery.ajaxPrefilter( "script", function( s ) { + if ( s.cache === undefined ) { + s.cache = false; + } + if ( s.crossDomain ) { + s.type = "GET"; + } +} ); + +// Bind script tag hack transport +jQuery.ajaxTransport( "script", function( s ) { + + // This transport only deals with cross domain requests + if ( s.crossDomain ) { + var script, callback; + return { + send: function( _, complete ) { + script = jQuery( "