trusty-cms 4.3.4 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +22 -12
  4. data/app/assets/stylesheets/admin/partials/_content.scss +1 -0
  5. data/app/controllers/admin/assets_controller.rb +5 -1
  6. data/app/models/asset.rb +39 -48
  7. data/app/models/asset_type.rb +6 -2
  8. data/app/views/admin/assets/edit.html.haml +5 -3
  9. data/config/database.yml +2 -2
  10. data/config/locales/en.yml +1 -0
  11. data/coverage/index.html +1 -1
  12. data/lib/trusty_cms/deprecation.rb +13 -0
  13. data/lib/trusty_cms.rb +1 -1
  14. data/node_modules/path-parse/index.js +17 -35
  15. data/node_modules/path-parse/package.json +1 -1
  16. data/node_modules/postcss/CHANGELOG.md +27 -0
  17. data/node_modules/postcss/README.md +21 -0
  18. data/node_modules/postcss/lib/at-rule.js +2 -4
  19. data/node_modules/postcss/lib/comment.js +2 -4
  20. data/node_modules/postcss/lib/container.js +27 -122
  21. data/node_modules/postcss/lib/css-syntax-error.js +5 -7
  22. data/node_modules/postcss/lib/declaration.js +2 -4
  23. data/node_modules/postcss/lib/input.js +3 -5
  24. data/node_modules/postcss/lib/lazy-result.js +10 -17
  25. data/node_modules/postcss/lib/map-generator.js +10 -17
  26. data/node_modules/postcss/lib/node.js +2 -4
  27. data/node_modules/postcss/lib/parser.js +2 -4
  28. data/node_modules/postcss/lib/postcss.d.ts +25 -19
  29. data/node_modules/postcss/lib/previous-map.js +17 -6
  30. data/node_modules/postcss/lib/processor.js +16 -15
  31. data/node_modules/postcss/lib/result.js +2 -4
  32. data/node_modules/postcss/lib/root.js +10 -17
  33. data/node_modules/postcss/lib/rule.js +2 -4
  34. data/node_modules/postcss/lib/stringifier.js +2 -4
  35. data/node_modules/postcss/lib/warning.js +2 -4
  36. data/node_modules/postcss/package.json +16 -12
  37. data/spec/dummy/log/test.log +542 -443
  38. data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
  39. data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +1 -1
  40. data/trusty_cms.gemspec +2 -1
  41. data/vendor/extensions/clipped-extension/lib/clipped/engine.rb +1 -1
  42. metadata +31 -307
  43. data/config/initializers/interpolation.rb +0 -6
  44. data/node_modules/path-parse/test.js +0 -77
  45. data/node_modules/postcss/docs/api/assets/scripts.min.js +0 -8
  46. data/node_modules/postcss/docs/api/assets/styles.min.css +0 -1
  47. data/node_modules/postcss/docs/api/index.html +0 -22716
  48. data/spec/dummy/log/development.log +0 -158
  49. data/spec/dummy/node_modules/jquery/AUTHORS.txt +0 -327
  50. data/spec/dummy/node_modules/jquery/LICENSE.txt +0 -20
  51. data/spec/dummy/node_modules/jquery/README.md +0 -62
  52. data/spec/dummy/node_modules/jquery/bower.json +0 -14
  53. data/spec/dummy/node_modules/jquery/dist/jquery.js +0 -10872
  54. data/spec/dummy/node_modules/jquery/dist/jquery.min.js +0 -2
  55. data/spec/dummy/node_modules/jquery/dist/jquery.min.map +0 -1
  56. data/spec/dummy/node_modules/jquery/dist/jquery.slim.js +0 -8777
  57. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.js +0 -2
  58. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.map +0 -1
  59. data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  60. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2478
  61. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  62. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  63. data/spec/dummy/node_modules/jquery/package.json +0 -117
  64. data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +0 -103
  65. data/spec/dummy/node_modules/jquery/src/ajax/load.js +0 -77
  66. data/spec/dummy/node_modules/jquery/src/ajax/script.js +0 -74
  67. data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +0 -5
  68. data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  69. data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +0 -5
  70. data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +0 -170
  71. data/spec/dummy/node_modules/jquery/src/ajax.js +0 -873
  72. data/spec/dummy/node_modules/jquery/src/attributes/attr.js +0 -141
  73. data/spec/dummy/node_modules/jquery/src/attributes/classes.js +0 -186
  74. data/spec/dummy/node_modules/jquery/src/attributes/prop.js +0 -143
  75. data/spec/dummy/node_modules/jquery/src/attributes/support.js +0 -33
  76. data/spec/dummy/node_modules/jquery/src/attributes/val.js +0 -191
  77. data/spec/dummy/node_modules/jquery/src/attributes.js +0 -13
  78. data/spec/dummy/node_modules/jquery/src/callbacks.js +0 -236
  79. data/spec/dummy/node_modules/jquery/src/core/DOMEval.js +0 -43
  80. data/spec/dummy/node_modules/jquery/src/core/access.js +0 -72
  81. data/spec/dummy/node_modules/jquery/src/core/camelCase.js +0 -23
  82. data/spec/dummy/node_modules/jquery/src/core/init.js +0 -129
  83. data/spec/dummy/node_modules/jquery/src/core/isAttached.js +0 -26
  84. data/spec/dummy/node_modules/jquery/src/core/nodeName.js +0 -13
  85. data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +0 -65
  86. data/spec/dummy/node_modules/jquery/src/core/parseXML.js +0 -30
  87. data/spec/dummy/node_modules/jquery/src/core/ready-no-deferred.js +0 -97
  88. data/spec/dummy/node_modules/jquery/src/core/ready.js +0 -86
  89. data/spec/dummy/node_modules/jquery/src/core/readyException.js +0 -13
  90. data/spec/dummy/node_modules/jquery/src/core/stripAndCollapse.js +0 -14
  91. data/spec/dummy/node_modules/jquery/src/core/support.js +0 -20
  92. data/spec/dummy/node_modules/jquery/src/core/toType.js +0 -20
  93. data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +0 -7
  94. data/spec/dummy/node_modules/jquery/src/core.js +0 -400
  95. data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +0 -26
  96. data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +0 -74
  97. data/spec/dummy/node_modules/jquery/src/css/curCSS.js +0 -65
  98. data/spec/dummy/node_modules/jquery/src/css/finalPropName.js +0 -42
  99. data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  100. data/spec/dummy/node_modules/jquery/src/css/showHide.js +0 -105
  101. data/spec/dummy/node_modules/jquery/src/css/support.js +0 -133
  102. data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +0 -5
  103. data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +0 -17
  104. data/spec/dummy/node_modules/jquery/src/css/var/isHiddenWithinTree.js +0 -34
  105. data/spec/dummy/node_modules/jquery/src/css/var/rboxStyle.js +0 -7
  106. data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +0 -7
  107. data/spec/dummy/node_modules/jquery/src/css/var/swap.js +0 -26
  108. data/spec/dummy/node_modules/jquery/src/css.js +0 -494
  109. data/spec/dummy/node_modules/jquery/src/data/Data.js +0 -162
  110. data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +0 -19
  111. data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +0 -7
  112. data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +0 -7
  113. data/spec/dummy/node_modules/jquery/src/data.js +0 -180
  114. data/spec/dummy/node_modules/jquery/src/deferred/exceptionHook.js +0 -21
  115. data/spec/dummy/node_modules/jquery/src/deferred.js +0 -399
  116. data/spec/dummy/node_modules/jquery/src/deprecated/ajax-event-alias.js +0 -22
  117. data/spec/dummy/node_modules/jquery/src/deprecated/event.js +0 -48
  118. data/spec/dummy/node_modules/jquery/src/deprecated.js +0 -87
  119. data/spec/dummy/node_modules/jquery/src/dimensions.js +0 -57
  120. data/spec/dummy/node_modules/jquery/src/effects/Tween.js +0 -125
  121. data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +0 -15
  122. data/spec/dummy/node_modules/jquery/src/effects.js +0 -701
  123. data/spec/dummy/node_modules/jquery/src/event/focusin.js +0 -58
  124. data/spec/dummy/node_modules/jquery/src/event/support.js +0 -11
  125. data/spec/dummy/node_modules/jquery/src/event/trigger.js +0 -201
  126. data/spec/dummy/node_modules/jquery/src/event.js +0 -892
  127. data/spec/dummy/node_modules/jquery/src/exports/amd.js +0 -26
  128. data/spec/dummy/node_modules/jquery/src/exports/global.js +0 -34
  129. data/spec/dummy/node_modules/jquery/src/jquery.js +0 -41
  130. data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +0 -32
  131. data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +0 -106
  132. data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +0 -32
  133. data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -22
  134. data/spec/dummy/node_modules/jquery/src/manipulation/support.js +0 -41
  135. data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -5
  136. data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +0 -8
  137. data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
  138. data/spec/dummy/node_modules/jquery/src/manipulation.js +0 -480
  139. data/spec/dummy/node_modules/jquery/src/offset.js +0 -238
  140. data/spec/dummy/node_modules/jquery/src/queue/delay.js +0 -24
  141. data/spec/dummy/node_modules/jquery/src/queue.js +0 -145
  142. data/spec/dummy/node_modules/jquery/src/selector-native.js +0 -241
  143. data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +0 -19
  144. data/spec/dummy/node_modules/jquery/src/selector.js +0 -3
  145. data/spec/dummy/node_modules/jquery/src/serialize.js +0 -136
  146. data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +0 -97
  147. data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +0 -22
  148. data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -8
  149. data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +0 -17
  150. data/spec/dummy/node_modules/jquery/src/traversing.js +0 -198
  151. data/spec/dummy/node_modules/jquery/src/var/ObjectFunctionString.js +0 -7
  152. data/spec/dummy/node_modules/jquery/src/var/arr.js +0 -5
  153. data/spec/dummy/node_modules/jquery/src/var/class2type.js +0 -6
  154. data/spec/dummy/node_modules/jquery/src/var/document.js +0 -5
  155. data/spec/dummy/node_modules/jquery/src/var/documentElement.js +0 -7
  156. data/spec/dummy/node_modules/jquery/src/var/flat.js +0 -16
  157. data/spec/dummy/node_modules/jquery/src/var/fnToString.js +0 -7
  158. data/spec/dummy/node_modules/jquery/src/var/getProto.js +0 -5
  159. data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +0 -7
  160. data/spec/dummy/node_modules/jquery/src/var/indexOf.js +0 -7
  161. data/spec/dummy/node_modules/jquery/src/var/isFunction.js +0 -13
  162. data/spec/dummy/node_modules/jquery/src/var/isWindow.js +0 -8
  163. data/spec/dummy/node_modules/jquery/src/var/pnum.js +0 -5
  164. data/spec/dummy/node_modules/jquery/src/var/push.js +0 -7
  165. data/spec/dummy/node_modules/jquery/src/var/rcheckableType.js +0 -5
  166. data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +0 -9
  167. data/spec/dummy/node_modules/jquery/src/var/rnothtmlwhite.js +0 -8
  168. data/spec/dummy/node_modules/jquery/src/var/slice.js +0 -7
  169. data/spec/dummy/node_modules/jquery/src/var/support.js +0 -6
  170. data/spec/dummy/node_modules/jquery/src/var/toString.js +0 -7
  171. data/spec/dummy/node_modules/jquery/src/wrap.js +0 -78
  172. data/spec/dummy/node_modules/jquery-ui-bundle/AUTHORS.txt +0 -333
  173. data/spec/dummy/node_modules/jquery-ui-bundle/LICENSE.txt +0 -43
  174. data/spec/dummy/node_modules/jquery-ui-bundle/external/jquery/jquery.js +0 -11008
  175. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_444444_256x240.png +0 -0
  176. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_555555_256x240.png +0 -0
  177. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777620_256x240.png +0 -0
  178. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777777_256x240.png +0 -0
  179. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_cc0000_256x240.png +0 -0
  180. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_ffffff_256x240.png +0 -0
  181. data/spec/dummy/node_modules/jquery-ui-bundle/index.html +0 -559
  182. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.css +0 -1312
  183. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.js +0 -18706
  184. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.css +0 -7
  185. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.js +0 -13
  186. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.css +0 -886
  187. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.min.css +0 -5
  188. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.css +0 -443
  189. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.min.css +0 -5
  190. data/spec/dummy/node_modules/jquery-ui-bundle/package.json +0 -33
  191. data/spec/dummy/node_modules/jquery-ujs/CONTRIBUTING.md +0 -109
  192. data/spec/dummy/node_modules/jquery-ujs/MIT-LICENSE +0 -20
  193. data/spec/dummy/node_modules/jquery-ujs/README.md +0 -86
  194. data/spec/dummy/node_modules/jquery-ujs/RELEASE.md +0 -23
  195. data/spec/dummy/node_modules/jquery-ujs/bower.json +0 -19
  196. data/spec/dummy/node_modules/jquery-ujs/package.json +0 -26
  197. data/spec/dummy/node_modules/jquery-ujs/src/rails.js +0 -555
@@ -1,97 +0,0 @@
1
- define( [
2
- "../core",
3
- "../var/document",
4
- "../var/isFunction"
5
- ], function( jQuery, document, isFunction ) {
6
-
7
- "use strict";
8
-
9
- var readyCallbacks = [],
10
- whenReady = function( fn ) {
11
- readyCallbacks.push( fn );
12
- },
13
- executeReady = function( fn ) {
14
-
15
- // Prevent errors from freezing future callback execution (gh-1823)
16
- // Not backwards-compatible as this does not execute sync
17
- window.setTimeout( function() {
18
- fn.call( document, jQuery );
19
- } );
20
- };
21
-
22
- jQuery.fn.ready = function( fn ) {
23
- whenReady( fn );
24
- return this;
25
- };
26
-
27
- jQuery.extend( {
28
-
29
- // Is the DOM ready to be used? Set to true once it occurs.
30
- isReady: false,
31
-
32
- // A counter to track how many items to wait for before
33
- // the ready event fires. See #6781
34
- readyWait: 1,
35
-
36
- ready: function( wait ) {
37
-
38
- // Abort if there are pending holds or we're already ready
39
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
40
- return;
41
- }
42
-
43
- // Remember that the DOM is ready
44
- jQuery.isReady = true;
45
-
46
- // If a normal DOM Ready event fired, decrement, and wait if need be
47
- if ( wait !== true && --jQuery.readyWait > 0 ) {
48
- return;
49
- }
50
-
51
- whenReady = function( fn ) {
52
- readyCallbacks.push( fn );
53
-
54
- while ( readyCallbacks.length ) {
55
- fn = readyCallbacks.shift();
56
- if ( isFunction( fn ) ) {
57
- executeReady( fn );
58
- }
59
- }
60
- };
61
-
62
- whenReady();
63
- }
64
- } );
65
-
66
- // Make jQuery.ready Promise consumable (gh-1778)
67
- jQuery.ready.then = jQuery.fn.ready;
68
-
69
- /**
70
- * The ready event handler and self cleanup method
71
- */
72
- function completed() {
73
- document.removeEventListener( "DOMContentLoaded", completed );
74
- window.removeEventListener( "load", completed );
75
- jQuery.ready();
76
- }
77
-
78
- // Catch cases where $(document).ready() is called
79
- // after the browser event has already occurred.
80
- // Support: IE9-10 only
81
- // Older IE sometimes signals "interactive" too soon
82
- if ( document.readyState === "complete" ||
83
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
84
-
85
- // Handle it asynchronously to allow scripts the opportunity to delay ready
86
- window.setTimeout( jQuery.ready );
87
-
88
- } else {
89
-
90
- // Use the handy event callback
91
- document.addEventListener( "DOMContentLoaded", completed );
92
-
93
- // A fallback to window.onload, that will always work
94
- window.addEventListener( "load", completed );
95
- }
96
-
97
- } );
@@ -1,86 +0,0 @@
1
- define( [
2
- "../core",
3
- "../var/document",
4
- "../core/readyException",
5
- "../deferred"
6
- ], function( jQuery, document ) {
7
-
8
- "use strict";
9
-
10
- // The deferred used on DOM ready
11
- var readyList = jQuery.Deferred();
12
-
13
- jQuery.fn.ready = function( fn ) {
14
-
15
- readyList
16
- .then( fn )
17
-
18
- // Wrap jQuery.readyException in a function so that the lookup
19
- // happens at the time of error handling instead of callback
20
- // registration.
21
- .catch( function( error ) {
22
- jQuery.readyException( error );
23
- } );
24
-
25
- return this;
26
- };
27
-
28
- jQuery.extend( {
29
-
30
- // Is the DOM ready to be used? Set to true once it occurs.
31
- isReady: false,
32
-
33
- // A counter to track how many items to wait for before
34
- // the ready event fires. See #6781
35
- readyWait: 1,
36
-
37
- // Handle when the DOM is ready
38
- ready: function( wait ) {
39
-
40
- // Abort if there are pending holds or we're already ready
41
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
42
- return;
43
- }
44
-
45
- // Remember that the DOM is ready
46
- jQuery.isReady = true;
47
-
48
- // If a normal DOM Ready event fired, decrement, and wait if need be
49
- if ( wait !== true && --jQuery.readyWait > 0 ) {
50
- return;
51
- }
52
-
53
- // If there are functions bound, to execute
54
- readyList.resolveWith( document, [ jQuery ] );
55
- }
56
- } );
57
-
58
- jQuery.ready.then = readyList.then;
59
-
60
- // The ready event handler and self cleanup method
61
- function completed() {
62
- document.removeEventListener( "DOMContentLoaded", completed );
63
- window.removeEventListener( "load", completed );
64
- jQuery.ready();
65
- }
66
-
67
- // Catch cases where $(document).ready() is called
68
- // after the browser event has already occurred.
69
- // Support: IE <=9 - 10 only
70
- // Older IE sometimes signals "interactive" too soon
71
- if ( document.readyState === "complete" ||
72
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
73
-
74
- // Handle it asynchronously to allow scripts the opportunity to delay ready
75
- window.setTimeout( jQuery.ready );
76
-
77
- } else {
78
-
79
- // Use the handy event callback
80
- document.addEventListener( "DOMContentLoaded", completed );
81
-
82
- // A fallback to window.onload, that will always work
83
- window.addEventListener( "load", completed );
84
- }
85
-
86
- } );
@@ -1,13 +0,0 @@
1
- define( [
2
- "../core"
3
- ], function( jQuery ) {
4
-
5
- "use strict";
6
-
7
- jQuery.readyException = function( error ) {
8
- window.setTimeout( function() {
9
- throw error;
10
- } );
11
- };
12
-
13
- } );
@@ -1,14 +0,0 @@
1
- define( [
2
- "../var/rnothtmlwhite"
3
- ], function( rnothtmlwhite ) {
4
- "use strict";
5
-
6
- // Strip and collapse whitespace according to HTML spec
7
- // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
8
- function stripAndCollapse( value ) {
9
- var tokens = value.match( rnothtmlwhite ) || [];
10
- return tokens.join( " " );
11
- }
12
-
13
- return stripAndCollapse;
14
- } );
@@ -1,20 +0,0 @@
1
- define( [
2
- "../var/document",
3
- "../var/support"
4
- ], function( document, support ) {
5
-
6
- "use strict";
7
-
8
- // Support: Safari 8 only
9
- // In Safari 8 documents created via document.implementation.createHTMLDocument
10
- // collapse sibling forms: the second one becomes a child of the first one.
11
- // Because of that, this security measure has to be disabled in Safari 8.
12
- // https://bugs.webkit.org/show_bug.cgi?id=137337
13
- support.createHTMLDocument = ( function() {
14
- var body = document.implementation.createHTMLDocument( "" ).body;
15
- body.innerHTML = "<form></form><form></form>";
16
- return body.childNodes.length === 2;
17
- } )();
18
-
19
- return support;
20
- } );
@@ -1,20 +0,0 @@
1
- define( [
2
- "../var/class2type",
3
- "../var/toString"
4
- ], function( class2type, toString ) {
5
-
6
- "use strict";
7
-
8
- function toType( obj ) {
9
- if ( obj == null ) {
10
- return obj + "";
11
- }
12
-
13
- // Support: Android <=2.3 only (functionish RegExp)
14
- return typeof obj === "object" || typeof obj === "function" ?
15
- class2type[ toString.call( obj ) ] || "object" :
16
- typeof obj;
17
- }
18
-
19
- return toType;
20
- } );
@@ -1,7 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- // rsingleTag matches a string consisting of a single HTML element with no attributes
5
- // and captures the element's name
6
- return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
7
- } );
@@ -1,400 +0,0 @@
1
- /* global Symbol */
2
- // Defining this global in .eslintrc.json would create a danger of using the global
3
- // unguarded in another place, it seems safer to define global only for this module
4
-
5
- define( [
6
- "./var/arr",
7
- "./var/getProto",
8
- "./var/slice",
9
- "./var/flat",
10
- "./var/push",
11
- "./var/indexOf",
12
- "./var/class2type",
13
- "./var/toString",
14
- "./var/hasOwn",
15
- "./var/fnToString",
16
- "./var/ObjectFunctionString",
17
- "./var/support",
18
- "./var/isFunction",
19
- "./var/isWindow",
20
- "./core/DOMEval",
21
- "./core/toType"
22
- ], function( arr, getProto, slice, flat, push, indexOf,
23
- class2type, toString, hasOwn, fnToString, ObjectFunctionString,
24
- support, isFunction, isWindow, DOMEval, toType ) {
25
-
26
- "use strict";
27
-
28
- var
29
- version = "3.5.0",
30
-
31
- // Define a local copy of jQuery
32
- jQuery = function( selector, context ) {
33
-
34
- // The jQuery object is actually just the init constructor 'enhanced'
35
- // Need init if jQuery is called (just allow error to be thrown if not included)
36
- return new jQuery.fn.init( selector, context );
37
- };
38
-
39
- jQuery.fn = jQuery.prototype = {
40
-
41
- // The current version of jQuery being used
42
- jquery: version,
43
-
44
- constructor: jQuery,
45
-
46
- // The default length of a jQuery object is 0
47
- length: 0,
48
-
49
- toArray: function() {
50
- return slice.call( this );
51
- },
52
-
53
- // Get the Nth element in the matched element set OR
54
- // Get the whole matched element set as a clean array
55
- get: function( num ) {
56
-
57
- // Return all the elements in a clean array
58
- if ( num == null ) {
59
- return slice.call( this );
60
- }
61
-
62
- // Return just the one element from the set
63
- return num < 0 ? this[ num + this.length ] : this[ num ];
64
- },
65
-
66
- // Take an array of elements and push it onto the stack
67
- // (returning the new matched element set)
68
- pushStack: function( elems ) {
69
-
70
- // Build a new jQuery matched element set
71
- var ret = jQuery.merge( this.constructor(), elems );
72
-
73
- // Add the old object onto the stack (as a reference)
74
- ret.prevObject = this;
75
-
76
- // Return the newly-formed element set
77
- return ret;
78
- },
79
-
80
- // Execute a callback for every element in the matched set.
81
- each: function( callback ) {
82
- return jQuery.each( this, callback );
83
- },
84
-
85
- map: function( callback ) {
86
- return this.pushStack( jQuery.map( this, function( elem, i ) {
87
- return callback.call( elem, i, elem );
88
- } ) );
89
- },
90
-
91
- slice: function() {
92
- return this.pushStack( slice.apply( this, arguments ) );
93
- },
94
-
95
- first: function() {
96
- return this.eq( 0 );
97
- },
98
-
99
- last: function() {
100
- return this.eq( -1 );
101
- },
102
-
103
- even: function() {
104
- return this.pushStack( jQuery.grep( this, function( _elem, i ) {
105
- return ( i + 1 ) % 2;
106
- } ) );
107
- },
108
-
109
- odd: function() {
110
- return this.pushStack( jQuery.grep( this, function( _elem, i ) {
111
- return i % 2;
112
- } ) );
113
- },
114
-
115
- eq: function( i ) {
116
- var len = this.length,
117
- j = +i + ( i < 0 ? len : 0 );
118
- return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
119
- },
120
-
121
- end: function() {
122
- return this.prevObject || this.constructor();
123
- },
124
-
125
- // For internal use only.
126
- // Behaves like an Array's method, not like a jQuery method.
127
- push: push,
128
- sort: arr.sort,
129
- splice: arr.splice
130
- };
131
-
132
- jQuery.extend = jQuery.fn.extend = function() {
133
- var options, name, src, copy, copyIsArray, clone,
134
- target = arguments[ 0 ] || {},
135
- i = 1,
136
- length = arguments.length,
137
- deep = false;
138
-
139
- // Handle a deep copy situation
140
- if ( typeof target === "boolean" ) {
141
- deep = target;
142
-
143
- // Skip the boolean and the target
144
- target = arguments[ i ] || {};
145
- i++;
146
- }
147
-
148
- // Handle case when target is a string or something (possible in deep copy)
149
- if ( typeof target !== "object" && !isFunction( target ) ) {
150
- target = {};
151
- }
152
-
153
- // Extend jQuery itself if only one argument is passed
154
- if ( i === length ) {
155
- target = this;
156
- i--;
157
- }
158
-
159
- for ( ; i < length; i++ ) {
160
-
161
- // Only deal with non-null/undefined values
162
- if ( ( options = arguments[ i ] ) != null ) {
163
-
164
- // Extend the base object
165
- for ( name in options ) {
166
- copy = options[ name ];
167
-
168
- // Prevent Object.prototype pollution
169
- // Prevent never-ending loop
170
- if ( name === "__proto__" || target === copy ) {
171
- continue;
172
- }
173
-
174
- // Recurse if we're merging plain objects or arrays
175
- if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
176
- ( copyIsArray = Array.isArray( copy ) ) ) ) {
177
- src = target[ name ];
178
-
179
- // Ensure proper type for the source value
180
- if ( copyIsArray && !Array.isArray( src ) ) {
181
- clone = [];
182
- } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
183
- clone = {};
184
- } else {
185
- clone = src;
186
- }
187
- copyIsArray = false;
188
-
189
- // Never move original objects, clone them
190
- target[ name ] = jQuery.extend( deep, clone, copy );
191
-
192
- // Don't bring in undefined values
193
- } else if ( copy !== undefined ) {
194
- target[ name ] = copy;
195
- }
196
- }
197
- }
198
- }
199
-
200
- // Return the modified object
201
- return target;
202
- };
203
-
204
- jQuery.extend( {
205
-
206
- // Unique for each copy of jQuery on the page
207
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
208
-
209
- // Assume jQuery is ready without the ready module
210
- isReady: true,
211
-
212
- error: function( msg ) {
213
- throw new Error( msg );
214
- },
215
-
216
- noop: function() {},
217
-
218
- isPlainObject: function( obj ) {
219
- var proto, Ctor;
220
-
221
- // Detect obvious negatives
222
- // Use toString instead of jQuery.type to catch host objects
223
- if ( !obj || toString.call( obj ) !== "[object Object]" ) {
224
- return false;
225
- }
226
-
227
- proto = getProto( obj );
228
-
229
- // Objects with no prototype (e.g., `Object.create( null )`) are plain
230
- if ( !proto ) {
231
- return true;
232
- }
233
-
234
- // Objects with prototype are plain iff they were constructed by a global Object function
235
- Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
236
- return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
237
- },
238
-
239
- isEmptyObject: function( obj ) {
240
- var name;
241
-
242
- for ( name in obj ) {
243
- return false;
244
- }
245
- return true;
246
- },
247
-
248
- // Evaluates a script in a provided context; falls back to the global one
249
- // if not specified.
250
- globalEval: function( code, options, doc ) {
251
- DOMEval( code, { nonce: options && options.nonce }, doc );
252
- },
253
-
254
- each: function( obj, callback ) {
255
- var length, i = 0;
256
-
257
- if ( isArrayLike( obj ) ) {
258
- length = obj.length;
259
- for ( ; i < length; i++ ) {
260
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
261
- break;
262
- }
263
- }
264
- } else {
265
- for ( i in obj ) {
266
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
267
- break;
268
- }
269
- }
270
- }
271
-
272
- return obj;
273
- },
274
-
275
- // results is for internal usage only
276
- makeArray: function( arr, results ) {
277
- var ret = results || [];
278
-
279
- if ( arr != null ) {
280
- if ( isArrayLike( Object( arr ) ) ) {
281
- jQuery.merge( ret,
282
- typeof arr === "string" ?
283
- [ arr ] : arr
284
- );
285
- } else {
286
- push.call( ret, arr );
287
- }
288
- }
289
-
290
- return ret;
291
- },
292
-
293
- inArray: function( elem, arr, i ) {
294
- return arr == null ? -1 : indexOf.call( arr, elem, i );
295
- },
296
-
297
- // Support: Android <=4.0 only, PhantomJS 1 only
298
- // push.apply(_, arraylike) throws on ancient WebKit
299
- merge: function( first, second ) {
300
- var len = +second.length,
301
- j = 0,
302
- i = first.length;
303
-
304
- for ( ; j < len; j++ ) {
305
- first[ i++ ] = second[ j ];
306
- }
307
-
308
- first.length = i;
309
-
310
- return first;
311
- },
312
-
313
- grep: function( elems, callback, invert ) {
314
- var callbackInverse,
315
- matches = [],
316
- i = 0,
317
- length = elems.length,
318
- callbackExpect = !invert;
319
-
320
- // Go through the array, only saving the items
321
- // that pass the validator function
322
- for ( ; i < length; i++ ) {
323
- callbackInverse = !callback( elems[ i ], i );
324
- if ( callbackInverse !== callbackExpect ) {
325
- matches.push( elems[ i ] );
326
- }
327
- }
328
-
329
- return matches;
330
- },
331
-
332
- // arg is for internal usage only
333
- map: function( elems, callback, arg ) {
334
- var length, value,
335
- i = 0,
336
- ret = [];
337
-
338
- // Go through the array, translating each of the items to their new values
339
- if ( isArrayLike( elems ) ) {
340
- length = elems.length;
341
- for ( ; i < length; i++ ) {
342
- value = callback( elems[ i ], i, arg );
343
-
344
- if ( value != null ) {
345
- ret.push( value );
346
- }
347
- }
348
-
349
- // Go through every key on the object,
350
- } else {
351
- for ( i in elems ) {
352
- value = callback( elems[ i ], i, arg );
353
-
354
- if ( value != null ) {
355
- ret.push( value );
356
- }
357
- }
358
- }
359
-
360
- // Flatten any nested arrays
361
- return flat( ret );
362
- },
363
-
364
- // A global GUID counter for objects
365
- guid: 1,
366
-
367
- // jQuery.support is not used in Core but other projects attach their
368
- // properties to it so it needs to exist.
369
- support: support
370
- } );
371
-
372
- if ( typeof Symbol === "function" ) {
373
- jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
374
- }
375
-
376
- // Populate the class2type map
377
- jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
378
- function( _i, name ) {
379
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
380
- } );
381
-
382
- function isArrayLike( obj ) {
383
-
384
- // Support: real iOS 8.2 only (not reproducible in simulator)
385
- // `in` check used to prevent JIT error (gh-2145)
386
- // hasOwn isn't used here due to false negatives
387
- // regarding Nodelist length in IE
388
- var length = !!obj && "length" in obj && obj.length,
389
- type = toType( obj );
390
-
391
- if ( isFunction( obj ) || isWindow( obj ) ) {
392
- return false;
393
- }
394
-
395
- return type === "array" || length === 0 ||
396
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
397
- }
398
-
399
- return jQuery;
400
- } );
@@ -1,26 +0,0 @@
1
- define( function() {
2
-
3
- "use strict";
4
-
5
- function addGetHookIf( conditionFn, hookFn ) {
6
-
7
- // Define the hook, we'll check on the first run if it's really needed.
8
- return {
9
- get: function() {
10
- if ( conditionFn() ) {
11
-
12
- // Hook not needed (or it's not possible to use it due
13
- // to missing dependency), remove it.
14
- delete this.get;
15
- return;
16
- }
17
-
18
- // Hook needed; redefine it so that the support test is not executed again.
19
- return ( this.get = hookFn ).apply( this, arguments );
20
- }
21
- };
22
- }
23
-
24
- return addGetHookIf;
25
-
26
- } );