utopia-wiki 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/development.yml +62 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.yarnrc +1 -0
- data/Gemfile +4 -0
- data/README.md +46 -0
- data/bake/utopia/wiki.rb +13 -0
- data/lib/components/.yarn-integrity +19 -0
- data/lib/components/jquery-litebox/README.md +66 -0
- data/lib/components/jquery-litebox/bower.json +27 -0
- data/lib/components/jquery-litebox/dist/jquery.litebox.css +23 -0
- data/lib/components/jquery-litebox/dist/jquery.litebox.gallery.css +48 -0
- data/lib/components/jquery-litebox/dist/jquery.litebox.js +30 -0
- data/lib/components/jquery-litebox/example/index.html +69 -0
- data/lib/components/jquery-litebox/example/jquery.min.js +4 -0
- data/lib/components/jquery-litebox/example/sample_images/large/IMG_3340.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/large/IMG_3341.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/large/IMG_3344.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/large/IMG_3351.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3340.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3341.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3344.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3351.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/small/IMG_3340.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/small/IMG_3341.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/small/IMG_3344.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/small/IMG_3351.jpg +0 -0
- data/lib/components/jquery-litebox/package.json +29 -0
- data/lib/components/jquery-syntax/Gemfile +5 -0
- data/lib/components/jquery-syntax/LICENSE.txt +19 -0
- data/lib/components/jquery-syntax/NOTES.txt +20 -0
- data/lib/components/jquery-syntax/README.md +95 -0
- data/lib/components/jquery-syntax/Rakefile +211 -0
- data/lib/components/jquery-syntax/bower.json +25 -0
- data/lib/components/jquery-syntax/config.ru +4 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.apache.css +12 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.applescript.css +5 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.assembly.css +8 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.bash-script.css +6 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.bash.css +4 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.clang.css +6 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.css.css +14 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.diff.css +16 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.html.css +5 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.ocaml.css +3 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.protobuf.css +2 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.python.css +6 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.ruby.css +2 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.xml.css +18 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.core.css +58 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.editor.css +6 -0
- data/lib/components/jquery-syntax/dist/base/theme.js +1 -0
- data/lib/components/jquery-syntax/dist/bright/jquery.syntax.core.css +27 -0
- data/lib/components/jquery-syntax/dist/bright/theme.js +1 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.apache.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.applescript.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.assembly.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.bash-script.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.bash.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.basic.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.clang.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.csharp.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.css.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.diff.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.go.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.haskell.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.html.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.io.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.java.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.javascript.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.kai.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.lisp.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.lua.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.nginx.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ocaml.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ooc.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.pascal.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.perl5.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.php-script.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.php.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.plain.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.protobuf.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.python.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ruby.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.scala.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.smalltalk.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.sql.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.super-collider.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.swift.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.trenni.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.xml.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.yaml.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.cache.js +7 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.core.js +34 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.editor.js +11 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.js +8 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.min.js +13 -0
- data/lib/components/jquery-syntax/dist/paper/jquery.syntax.core.css +31 -0
- data/lib/components/jquery-syntax/dist/paper/theme.js +1 -0
- data/lib/components/jquery-syntax/examples/ex.applescript.html +120 -0
- data/lib/components/jquery-syntax/examples/ex.asm.html +43 -0
- data/lib/components/jquery-syntax/examples/ex.bash.html +139 -0
- data/lib/components/jquery-syntax/examples/ex.clang.html +337 -0
- data/lib/components/jquery-syntax/examples/ex.css.html +48 -0
- data/lib/components/jquery-syntax/examples/ex.diff.html +1226 -0
- data/lib/components/jquery-syntax/examples/ex.editor.html +28 -0
- data/lib/components/jquery-syntax/examples/ex.html.html +134 -0
- data/lib/components/jquery-syntax/examples/ex.javascript.html +330 -0
- data/lib/components/jquery-syntax/examples/ex.ooc.html +119 -0
- data/lib/components/jquery-syntax/examples/ex.php.html +54 -0
- data/lib/components/jquery-syntax/examples/ex.python.html +1510 -0
- data/lib/components/jquery-syntax/examples/ex.ruby.html +358 -0
- data/lib/components/jquery-syntax/examples/ex.swift.html +90 -0
- data/lib/components/jquery-syntax/examples/index.css +18 -0
- data/lib/components/jquery-syntax/examples/jquery-1.6.min.js +16 -0
- data/lib/components/jquery-syntax/examples/tests.html +71 -0
- data/lib/components/jquery-syntax/examples/wrapping-flex.html +71 -0
- data/lib/components/jquery-syntax/examples/wrapping.html +181 -0
- data/lib/components/jquery-syntax/ext/closure/COPYING +202 -0
- data/lib/components/jquery-syntax/ext/closure/README +292 -0
- data/lib/components/jquery-syntax/ext/closure/compiler.jar +0 -0
- data/lib/components/jquery-syntax/ext/theme.rb +85 -0
- data/lib/components/jquery-syntax/install.yaml +9 -0
- data/lib/components/jquery-syntax/jQuery.Syntax.artx/Preview/preview.png +0 -0
- data/lib/components/jquery-syntax/jQuery.Syntax.artx/doc.thread +0 -0
- data/lib/components/jquery-syntax/package.json +31 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.apache.js +41 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.applescript.js +57 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.assembly.js +37 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.bash-script.js +67 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.bash.js +33 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.basic.js +51 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.clang.js +89 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.csharp.js +47 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.css.js +80 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.diff.js +24 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.go.js +47 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.haskell.js +45 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.html.js +66 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.io.js +45 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.java.js +45 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.javascript.js +42 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.kai.js +29 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.lisp.js +34 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.lua.js +44 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.nginx.js +30 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.ocaml.js +73 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.ooc.js +46 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.pascal.js +51 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.perl5.js +52 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.php-script.js +48 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.php.js +15 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.plain.js +10 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.protobuf.js +43 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.python.js +44 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.ruby.js +77 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.scala.js +44 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.smalltalk.js +29 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.sql.js +31 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.super-collider.js +57 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.swift.js +55 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.trenni.js +35 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.xml.js +50 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.yaml.js +29 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.core.js +1114 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.editor.js +291 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.js +258 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.apache.sass +23 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.applescript.sass +11 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.assembly.sass +16 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.bash-script.sass +14 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.bash.sass +11 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.clang.sass +12 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.css.sass +25 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.diff.sass +25 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.html.sass +12 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.ocaml.sass +8 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.protobuf.sass +7 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.python.sass +12 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.ruby.sass +9 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.xml.sass +30 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.core.sass +86 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.editor.sass +12 -0
- data/lib/components/jquery-syntax/themes/bright/_config.yaml +2 -0
- data/lib/components/jquery-syntax/themes/bright/jquery.syntax.core.sass +42 -0
- data/lib/components/jquery-syntax/themes/paper/_config.yaml +2 -0
- data/lib/components/jquery-syntax/themes/paper/jquery.syntax.core.sass +47 -0
- data/lib/components/jquery/AUTHORS.txt +327 -0
- data/lib/components/jquery/LICENSE.txt +20 -0
- data/lib/components/jquery/README.md +62 -0
- data/lib/components/jquery/bower.json +14 -0
- data/lib/components/jquery/dist/jquery.js +10872 -0
- data/lib/components/jquery/dist/jquery.min.js +2 -0
- data/lib/components/jquery/dist/jquery.min.map +1 -0
- data/lib/components/jquery/dist/jquery.slim.js +8777 -0
- data/lib/components/jquery/dist/jquery.slim.min.js +2 -0
- data/lib/components/jquery/dist/jquery.slim.min.map +1 -0
- data/lib/components/jquery/external/sizzle/LICENSE.txt +36 -0
- data/lib/components/jquery/external/sizzle/dist/sizzle.js +2478 -0
- data/lib/components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/lib/components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/lib/components/jquery/package.json +117 -0
- data/lib/components/jquery/src/ajax.js +873 -0
- data/lib/components/jquery/src/ajax/jsonp.js +103 -0
- data/lib/components/jquery/src/ajax/load.js +77 -0
- data/lib/components/jquery/src/ajax/script.js +74 -0
- data/lib/components/jquery/src/ajax/var/location.js +5 -0
- data/lib/components/jquery/src/ajax/var/nonce.js +5 -0
- data/lib/components/jquery/src/ajax/var/rquery.js +5 -0
- data/lib/components/jquery/src/ajax/xhr.js +170 -0
- data/lib/components/jquery/src/attributes.js +13 -0
- data/lib/components/jquery/src/attributes/attr.js +141 -0
- data/lib/components/jquery/src/attributes/classes.js +186 -0
- data/lib/components/jquery/src/attributes/prop.js +143 -0
- data/lib/components/jquery/src/attributes/support.js +33 -0
- data/lib/components/jquery/src/attributes/val.js +191 -0
- data/lib/components/jquery/src/callbacks.js +236 -0
- data/lib/components/jquery/src/core.js +400 -0
- data/lib/components/jquery/src/core/DOMEval.js +43 -0
- data/lib/components/jquery/src/core/access.js +72 -0
- data/lib/components/jquery/src/core/camelCase.js +23 -0
- data/lib/components/jquery/src/core/init.js +129 -0
- data/lib/components/jquery/src/core/isAttached.js +26 -0
- data/lib/components/jquery/src/core/nodeName.js +13 -0
- data/lib/components/jquery/src/core/parseHTML.js +65 -0
- data/lib/components/jquery/src/core/parseXML.js +30 -0
- data/lib/components/jquery/src/core/ready-no-deferred.js +97 -0
- data/lib/components/jquery/src/core/ready.js +86 -0
- data/lib/components/jquery/src/core/readyException.js +13 -0
- data/lib/components/jquery/src/core/stripAndCollapse.js +14 -0
- data/lib/components/jquery/src/core/support.js +20 -0
- data/lib/components/jquery/src/core/toType.js +20 -0
- data/lib/components/jquery/src/core/var/rsingleTag.js +7 -0
- data/lib/components/jquery/src/css.js +494 -0
- data/lib/components/jquery/src/css/addGetHookIf.js +26 -0
- data/lib/components/jquery/src/css/adjustCSS.js +74 -0
- data/lib/components/jquery/src/css/curCSS.js +65 -0
- data/lib/components/jquery/src/css/finalPropName.js +42 -0
- data/lib/components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/lib/components/jquery/src/css/showHide.js +105 -0
- data/lib/components/jquery/src/css/support.js +133 -0
- data/lib/components/jquery/src/css/var/cssExpand.js +5 -0
- data/lib/components/jquery/src/css/var/getStyles.js +17 -0
- data/lib/components/jquery/src/css/var/isHiddenWithinTree.js +34 -0
- data/lib/components/jquery/src/css/var/rboxStyle.js +7 -0
- data/lib/components/jquery/src/css/var/rnumnonpx.js +7 -0
- data/lib/components/jquery/src/css/var/swap.js +26 -0
- data/lib/components/jquery/src/data.js +180 -0
- data/lib/components/jquery/src/data/Data.js +162 -0
- data/lib/components/jquery/src/data/var/acceptData.js +19 -0
- data/lib/components/jquery/src/data/var/dataPriv.js +7 -0
- data/lib/components/jquery/src/data/var/dataUser.js +7 -0
- data/lib/components/jquery/src/deferred.js +399 -0
- data/lib/components/jquery/src/deferred/exceptionHook.js +21 -0
- data/lib/components/jquery/src/deprecated.js +87 -0
- data/lib/components/jquery/src/deprecated/ajax-event-alias.js +22 -0
- data/lib/components/jquery/src/deprecated/event.js +48 -0
- data/lib/components/jquery/src/dimensions.js +57 -0
- data/lib/components/jquery/src/effects.js +701 -0
- data/lib/components/jquery/src/effects/Tween.js +125 -0
- data/lib/components/jquery/src/effects/animatedSelector.js +15 -0
- data/lib/components/jquery/src/event.js +892 -0
- data/lib/components/jquery/src/event/focusin.js +58 -0
- data/lib/components/jquery/src/event/support.js +11 -0
- data/lib/components/jquery/src/event/trigger.js +201 -0
- data/lib/components/jquery/src/exports/amd.js +26 -0
- data/lib/components/jquery/src/exports/global.js +34 -0
- data/lib/components/jquery/src/jquery.js +41 -0
- data/lib/components/jquery/src/manipulation.js +480 -0
- data/lib/components/jquery/src/manipulation/_evalUrl.js +32 -0
- data/lib/components/jquery/src/manipulation/buildFragment.js +106 -0
- data/lib/components/jquery/src/manipulation/getAll.js +32 -0
- data/lib/components/jquery/src/manipulation/setGlobalEval.js +22 -0
- data/lib/components/jquery/src/manipulation/support.js +41 -0
- data/lib/components/jquery/src/manipulation/var/rscriptType.js +5 -0
- data/lib/components/jquery/src/manipulation/var/rtagName.js +8 -0
- data/lib/components/jquery/src/manipulation/wrapMap.js +30 -0
- data/lib/components/jquery/src/offset.js +238 -0
- data/lib/components/jquery/src/queue.js +145 -0
- data/lib/components/jquery/src/queue/delay.js +24 -0
- data/lib/components/jquery/src/selector-native.js +241 -0
- data/lib/components/jquery/src/selector-sizzle.js +19 -0
- data/lib/components/jquery/src/selector.js +3 -0
- data/lib/components/jquery/src/serialize.js +136 -0
- data/lib/components/jquery/src/traversing.js +198 -0
- data/lib/components/jquery/src/traversing/findFilter.js +97 -0
- data/lib/components/jquery/src/traversing/var/dir.js +22 -0
- data/lib/components/jquery/src/traversing/var/rneedsContext.js +8 -0
- data/lib/components/jquery/src/traversing/var/siblings.js +17 -0
- data/lib/components/jquery/src/var/ObjectFunctionString.js +7 -0
- data/lib/components/jquery/src/var/arr.js +5 -0
- data/lib/components/jquery/src/var/class2type.js +6 -0
- data/lib/components/jquery/src/var/document.js +5 -0
- data/lib/components/jquery/src/var/documentElement.js +7 -0
- data/lib/components/jquery/src/var/flat.js +16 -0
- data/lib/components/jquery/src/var/fnToString.js +7 -0
- data/lib/components/jquery/src/var/getProto.js +5 -0
- data/lib/components/jquery/src/var/hasOwn.js +7 -0
- data/lib/components/jquery/src/var/indexOf.js +7 -0
- data/lib/components/jquery/src/var/isFunction.js +13 -0
- data/lib/components/jquery/src/var/isWindow.js +8 -0
- data/lib/components/jquery/src/var/pnum.js +5 -0
- data/lib/components/jquery/src/var/push.js +7 -0
- data/lib/components/jquery/src/var/rcheckableType.js +5 -0
- data/lib/components/jquery/src/var/rcssNum.js +9 -0
- data/lib/components/jquery/src/var/rnothtmlwhite.js +8 -0
- data/lib/components/jquery/src/var/slice.js +7 -0
- data/lib/components/jquery/src/var/support.js +6 -0
- data/lib/components/jquery/src/var/toString.js +7 -0
- data/lib/components/jquery/src/wrap.js +78 -0
- data/lib/utopia/wiki.rb +80 -0
- data/lib/utopia/wiki/version.rb +27 -0
- data/package.json +6 -0
- data/pages/_editor.xnode +21 -0
- data/pages/_heading.xnode +2 -0
- data/pages/_listing.xnode +23 -0
- data/pages/_navigation.xnode +33 -0
- data/pages/_page.xnode +32 -0
- data/pages/_thumbnail.xnode +8 -0
- data/pages/controller.rb +77 -0
- data/pages/create.xnode +15 -0
- data/pages/edit.xnode +10 -0
- data/pages/errors/exception.xnode +5 -0
- data/pages/errors/file-not-found.xnode +5 -0
- data/pages/links.yaml +2 -0
- data/pages/show.xnode +15 -0
- data/public/.nojekyll +0 -0
- data/public/_components/jquery-litebox/jquery.litebox.css +23 -0
- data/public/_components/jquery-litebox/jquery.litebox.gallery.css +48 -0
- data/public/_components/jquery-litebox/jquery.litebox.js +30 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.apache.css +12 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.applescript.css +5 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.assembly.css +8 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash-script.css +6 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash.css +4 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.clang.css +6 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.css.css +14 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.diff.css +16 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.html.css +5 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.ocaml.css +3 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.protobuf.css +2 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.python.css +6 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.ruby.css +2 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.xml.css +18 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.core.css +58 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.editor.css +6 -0
- data/public/_components/jquery-syntax/base/theme.js +1 -0
- data/public/_components/jquery-syntax/bright/jquery.syntax.core.css +27 -0
- data/public/_components/jquery-syntax/bright/theme.js +1 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.apache.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.applescript.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.assembly.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.bash-script.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.bash.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.basic.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.clang.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.csharp.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.css.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.diff.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.go.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.haskell.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.html.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.io.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.java.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.javascript.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.kai.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.lisp.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.lua.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.nginx.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.ocaml.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.ooc.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.pascal.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.perl5.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.php-script.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.php.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.plain.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.protobuf.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.python.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.ruby.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.scala.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.smalltalk.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.sql.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.super-collider.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.swift.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.xml.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.yaml.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.cache.js +7 -0
- data/public/_components/jquery-syntax/jquery.syntax.core.js +34 -0
- data/public/_components/jquery-syntax/jquery.syntax.editor.js +11 -0
- data/public/_components/jquery-syntax/jquery.syntax.js +8 -0
- data/public/_components/jquery-syntax/jquery.syntax.min.js +13 -0
- data/public/_components/jquery-syntax/paper/jquery.syntax.core.css +31 -0
- data/public/_components/jquery-syntax/paper/theme.js +1 -0
- data/public/_components/jquery/jquery.js +10872 -0
- data/public/_components/jquery/jquery.min.js +2 -0
- data/public/_components/jquery/jquery.min.map +1 -0
- data/public/_components/jquery/jquery.slim.js +8777 -0
- data/public/_components/jquery/jquery.slim.min.js +2 -0
- data/public/_components/jquery/jquery.slim.min.map +1 -0
- data/public/_static/icon.png +0 -0
- data/public/_static/site.css +191 -0
- data/utopia-wiki.gemspec +39 -0
- data/wiki/Gemfile +10 -0
- data/wiki/config.ru +7 -0
- data/wiki/pages/_logos/Async.png +0 -0
- data/wiki/pages/_logos/Falcon.png +0 -0
- data/wiki/pages/_logos/Utopia.png +0 -0
- data/wiki/pages/index.en.md +62 -0
- data/wiki/pages/index.md +57 -0
- data/wiki/pages/links.yaml +2 -0
- data/wiki/pages/usage/merging/index.md +3 -0
- data/yarn.lock +22 -0
- metadata +675 -0
@@ -0,0 +1,145 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"./data/var/dataPriv",
|
4
|
+
"./deferred",
|
5
|
+
"./callbacks"
|
6
|
+
], function( jQuery, dataPriv ) {
|
7
|
+
|
8
|
+
"use strict";
|
9
|
+
|
10
|
+
jQuery.extend( {
|
11
|
+
queue: function( elem, type, data ) {
|
12
|
+
var queue;
|
13
|
+
|
14
|
+
if ( elem ) {
|
15
|
+
type = ( type || "fx" ) + "queue";
|
16
|
+
queue = dataPriv.get( elem, type );
|
17
|
+
|
18
|
+
// Speed up dequeue by getting out quickly if this is just a lookup
|
19
|
+
if ( data ) {
|
20
|
+
if ( !queue || Array.isArray( data ) ) {
|
21
|
+
queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
|
22
|
+
} else {
|
23
|
+
queue.push( data );
|
24
|
+
}
|
25
|
+
}
|
26
|
+
return queue || [];
|
27
|
+
}
|
28
|
+
},
|
29
|
+
|
30
|
+
dequeue: function( elem, type ) {
|
31
|
+
type = type || "fx";
|
32
|
+
|
33
|
+
var queue = jQuery.queue( elem, type ),
|
34
|
+
startLength = queue.length,
|
35
|
+
fn = queue.shift(),
|
36
|
+
hooks = jQuery._queueHooks( elem, type ),
|
37
|
+
next = function() {
|
38
|
+
jQuery.dequeue( elem, type );
|
39
|
+
};
|
40
|
+
|
41
|
+
// If the fx queue is dequeued, always remove the progress sentinel
|
42
|
+
if ( fn === "inprogress" ) {
|
43
|
+
fn = queue.shift();
|
44
|
+
startLength--;
|
45
|
+
}
|
46
|
+
|
47
|
+
if ( fn ) {
|
48
|
+
|
49
|
+
// Add a progress sentinel to prevent the fx queue from being
|
50
|
+
// automatically dequeued
|
51
|
+
if ( type === "fx" ) {
|
52
|
+
queue.unshift( "inprogress" );
|
53
|
+
}
|
54
|
+
|
55
|
+
// Clear up the last queue stop function
|
56
|
+
delete hooks.stop;
|
57
|
+
fn.call( elem, next, hooks );
|
58
|
+
}
|
59
|
+
|
60
|
+
if ( !startLength && hooks ) {
|
61
|
+
hooks.empty.fire();
|
62
|
+
}
|
63
|
+
},
|
64
|
+
|
65
|
+
// Not public - generate a queueHooks object, or return the current one
|
66
|
+
_queueHooks: function( elem, type ) {
|
67
|
+
var key = type + "queueHooks";
|
68
|
+
return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
|
69
|
+
empty: jQuery.Callbacks( "once memory" ).add( function() {
|
70
|
+
dataPriv.remove( elem, [ type + "queue", key ] );
|
71
|
+
} )
|
72
|
+
} );
|
73
|
+
}
|
74
|
+
} );
|
75
|
+
|
76
|
+
jQuery.fn.extend( {
|
77
|
+
queue: function( type, data ) {
|
78
|
+
var setter = 2;
|
79
|
+
|
80
|
+
if ( typeof type !== "string" ) {
|
81
|
+
data = type;
|
82
|
+
type = "fx";
|
83
|
+
setter--;
|
84
|
+
}
|
85
|
+
|
86
|
+
if ( arguments.length < setter ) {
|
87
|
+
return jQuery.queue( this[ 0 ], type );
|
88
|
+
}
|
89
|
+
|
90
|
+
return data === undefined ?
|
91
|
+
this :
|
92
|
+
this.each( function() {
|
93
|
+
var queue = jQuery.queue( this, type, data );
|
94
|
+
|
95
|
+
// Ensure a hooks for this queue
|
96
|
+
jQuery._queueHooks( this, type );
|
97
|
+
|
98
|
+
if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
|
99
|
+
jQuery.dequeue( this, type );
|
100
|
+
}
|
101
|
+
} );
|
102
|
+
},
|
103
|
+
dequeue: function( type ) {
|
104
|
+
return this.each( function() {
|
105
|
+
jQuery.dequeue( this, type );
|
106
|
+
} );
|
107
|
+
},
|
108
|
+
clearQueue: function( type ) {
|
109
|
+
return this.queue( type || "fx", [] );
|
110
|
+
},
|
111
|
+
|
112
|
+
// Get a promise resolved when queues of a certain type
|
113
|
+
// are emptied (fx is the type by default)
|
114
|
+
promise: function( type, obj ) {
|
115
|
+
var tmp,
|
116
|
+
count = 1,
|
117
|
+
defer = jQuery.Deferred(),
|
118
|
+
elements = this,
|
119
|
+
i = this.length,
|
120
|
+
resolve = function() {
|
121
|
+
if ( !( --count ) ) {
|
122
|
+
defer.resolveWith( elements, [ elements ] );
|
123
|
+
}
|
124
|
+
};
|
125
|
+
|
126
|
+
if ( typeof type !== "string" ) {
|
127
|
+
obj = type;
|
128
|
+
type = undefined;
|
129
|
+
}
|
130
|
+
type = type || "fx";
|
131
|
+
|
132
|
+
while ( i-- ) {
|
133
|
+
tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
|
134
|
+
if ( tmp && tmp.empty ) {
|
135
|
+
count++;
|
136
|
+
tmp.empty.add( resolve );
|
137
|
+
}
|
138
|
+
}
|
139
|
+
resolve();
|
140
|
+
return defer.promise( obj );
|
141
|
+
}
|
142
|
+
} );
|
143
|
+
|
144
|
+
return jQuery;
|
145
|
+
} );
|
@@ -0,0 +1,24 @@
|
|
1
|
+
define( [
|
2
|
+
"../core",
|
3
|
+
"../queue",
|
4
|
+
"../effects" // Delay is optional because of this dependency
|
5
|
+
], function( jQuery ) {
|
6
|
+
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
// Based off of the plugin by Clint Helfers, with permission.
|
10
|
+
// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
|
11
|
+
jQuery.fn.delay = function( time, type ) {
|
12
|
+
time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
|
13
|
+
type = type || "fx";
|
14
|
+
|
15
|
+
return this.queue( type, function( next, hooks ) {
|
16
|
+
var timeout = window.setTimeout( next, time );
|
17
|
+
hooks.stop = function() {
|
18
|
+
window.clearTimeout( timeout );
|
19
|
+
};
|
20
|
+
} );
|
21
|
+
};
|
22
|
+
|
23
|
+
return jQuery.fn.delay;
|
24
|
+
} );
|
@@ -0,0 +1,241 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"./var/document",
|
4
|
+
"./var/documentElement",
|
5
|
+
"./var/hasOwn",
|
6
|
+
"./var/indexOf"
|
7
|
+
], function( jQuery, document, documentElement, hasOwn, indexOf ) {
|
8
|
+
|
9
|
+
"use strict";
|
10
|
+
|
11
|
+
/*
|
12
|
+
* Optional (non-Sizzle) selector module for custom builds.
|
13
|
+
*
|
14
|
+
* Note that this DOES NOT SUPPORT many documented jQuery
|
15
|
+
* features in exchange for its smaller size:
|
16
|
+
*
|
17
|
+
* Attribute not equal selector
|
18
|
+
* Positional selectors (:first; :eq(n); :odd; etc.)
|
19
|
+
* Type selectors (:input; :checkbox; :button; etc.)
|
20
|
+
* State-based selectors (:animated; :visible; :hidden; etc.)
|
21
|
+
* :has(selector)
|
22
|
+
* :not(complex selector)
|
23
|
+
* custom selectors via Sizzle extensions
|
24
|
+
* Leading combinators (e.g., $collection.find("> *"))
|
25
|
+
* Reliable functionality on XML fragments
|
26
|
+
* Requiring all parts of a selector to match elements under context
|
27
|
+
* (e.g., $div.find("div > *") now matches children of $div)
|
28
|
+
* Matching against non-elements
|
29
|
+
* Reliable sorting of disconnected nodes
|
30
|
+
* querySelectorAll bug fixes (e.g., unreliable :focus on WebKit)
|
31
|
+
*
|
32
|
+
* If any of these are unacceptable tradeoffs, either use Sizzle or
|
33
|
+
* customize this stub for the project's specific needs.
|
34
|
+
*/
|
35
|
+
|
36
|
+
var hasDuplicate, sortInput,
|
37
|
+
rhtmlSuffix = /HTML$/i,
|
38
|
+
sortStable = jQuery.expando.split( "" ).sort( sortOrder ).join( "" ) === jQuery.expando,
|
39
|
+
matches = documentElement.matches ||
|
40
|
+
documentElement.webkitMatchesSelector ||
|
41
|
+
documentElement.mozMatchesSelector ||
|
42
|
+
documentElement.oMatchesSelector ||
|
43
|
+
documentElement.msMatchesSelector,
|
44
|
+
|
45
|
+
// CSS string/identifier serialization
|
46
|
+
// https://drafts.csswg.org/cssom/#common-serializing-idioms
|
47
|
+
rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,
|
48
|
+
fcssescape = function( ch, asCodePoint ) {
|
49
|
+
if ( asCodePoint ) {
|
50
|
+
|
51
|
+
// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
|
52
|
+
if ( ch === "\0" ) {
|
53
|
+
return "\uFFFD";
|
54
|
+
}
|
55
|
+
|
56
|
+
// Control characters and (dependent upon position) numbers get escaped as code points
|
57
|
+
return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
|
58
|
+
}
|
59
|
+
|
60
|
+
// Other potentially-special ASCII characters get backslash-escaped
|
61
|
+
return "\\" + ch;
|
62
|
+
};
|
63
|
+
|
64
|
+
function sortOrder( a, b ) {
|
65
|
+
|
66
|
+
// Flag for duplicate removal
|
67
|
+
if ( a === b ) {
|
68
|
+
hasDuplicate = true;
|
69
|
+
return 0;
|
70
|
+
}
|
71
|
+
|
72
|
+
// Sort on method existence if only one input has compareDocumentPosition
|
73
|
+
var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
|
74
|
+
if ( compare ) {
|
75
|
+
return compare;
|
76
|
+
}
|
77
|
+
|
78
|
+
// Calculate position if both inputs belong to the same document
|
79
|
+
compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
|
80
|
+
a.compareDocumentPosition( b ) :
|
81
|
+
|
82
|
+
// Otherwise we know they are disconnected
|
83
|
+
1;
|
84
|
+
|
85
|
+
// Disconnected nodes
|
86
|
+
if ( compare & 1 ) {
|
87
|
+
|
88
|
+
// Choose the first element that is related to our preferred document
|
89
|
+
if ( a === document || a.ownerDocument === document &&
|
90
|
+
jQuery.contains( document, a ) ) {
|
91
|
+
return -1;
|
92
|
+
}
|
93
|
+
if ( b === document || b.ownerDocument === document &&
|
94
|
+
jQuery.contains( document, b ) ) {
|
95
|
+
return 1;
|
96
|
+
}
|
97
|
+
|
98
|
+
// Maintain original order
|
99
|
+
return sortInput ?
|
100
|
+
( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
|
101
|
+
0;
|
102
|
+
}
|
103
|
+
|
104
|
+
return compare & 4 ? -1 : 1;
|
105
|
+
}
|
106
|
+
|
107
|
+
function uniqueSort( results ) {
|
108
|
+
var elem,
|
109
|
+
duplicates = [],
|
110
|
+
j = 0,
|
111
|
+
i = 0;
|
112
|
+
|
113
|
+
hasDuplicate = false;
|
114
|
+
sortInput = !sortStable && results.slice( 0 );
|
115
|
+
results.sort( sortOrder );
|
116
|
+
|
117
|
+
if ( hasDuplicate ) {
|
118
|
+
while ( ( elem = results[ i++ ] ) ) {
|
119
|
+
if ( elem === results[ i ] ) {
|
120
|
+
j = duplicates.push( i );
|
121
|
+
}
|
122
|
+
}
|
123
|
+
while ( j-- ) {
|
124
|
+
results.splice( duplicates[ j ], 1 );
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
// Clear input after sorting to release objects
|
129
|
+
// See https://github.com/jquery/sizzle/pull/225
|
130
|
+
sortInput = null;
|
131
|
+
|
132
|
+
return results;
|
133
|
+
}
|
134
|
+
|
135
|
+
function escape( sel ) {
|
136
|
+
return ( sel + "" ).replace( rcssescape, fcssescape );
|
137
|
+
}
|
138
|
+
|
139
|
+
jQuery.extend( {
|
140
|
+
uniqueSort: uniqueSort,
|
141
|
+
unique: uniqueSort,
|
142
|
+
escapeSelector: escape,
|
143
|
+
find: function( selector, context, results, seed ) {
|
144
|
+
var elem, nodeType,
|
145
|
+
i = 0;
|
146
|
+
|
147
|
+
results = results || [];
|
148
|
+
context = context || document;
|
149
|
+
|
150
|
+
// Same basic safeguard as Sizzle
|
151
|
+
if ( !selector || typeof selector !== "string" ) {
|
152
|
+
return results;
|
153
|
+
}
|
154
|
+
|
155
|
+
// Early return if context is not an element or document
|
156
|
+
if ( ( nodeType = context.nodeType ) !== 1 && nodeType !== 9 ) {
|
157
|
+
return [];
|
158
|
+
}
|
159
|
+
|
160
|
+
if ( seed ) {
|
161
|
+
while ( ( elem = seed[ i++ ] ) ) {
|
162
|
+
if ( jQuery.find.matchesSelector( elem, selector ) ) {
|
163
|
+
results.push( elem );
|
164
|
+
}
|
165
|
+
}
|
166
|
+
} else {
|
167
|
+
jQuery.merge( results, context.querySelectorAll( selector ) );
|
168
|
+
}
|
169
|
+
|
170
|
+
return results;
|
171
|
+
},
|
172
|
+
text: function( elem ) {
|
173
|
+
var node,
|
174
|
+
ret = "",
|
175
|
+
i = 0,
|
176
|
+
nodeType = elem.nodeType;
|
177
|
+
|
178
|
+
if ( !nodeType ) {
|
179
|
+
|
180
|
+
// If no nodeType, this is expected to be an array
|
181
|
+
while ( ( node = elem[ i++ ] ) ) {
|
182
|
+
|
183
|
+
// Do not traverse comment nodes
|
184
|
+
ret += jQuery.text( node );
|
185
|
+
}
|
186
|
+
} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
|
187
|
+
|
188
|
+
// Use textContent for elements
|
189
|
+
return elem.textContent;
|
190
|
+
} else if ( nodeType === 3 || nodeType === 4 ) {
|
191
|
+
return elem.nodeValue;
|
192
|
+
}
|
193
|
+
|
194
|
+
// Do not include comment or processing instruction nodes
|
195
|
+
|
196
|
+
return ret;
|
197
|
+
},
|
198
|
+
contains: function( a, b ) {
|
199
|
+
var adown = a.nodeType === 9 ? a.documentElement : a,
|
200
|
+
bup = b && b.parentNode;
|
201
|
+
return a === bup || !!( bup && bup.nodeType === 1 && adown.contains( bup ) );
|
202
|
+
},
|
203
|
+
isXMLDoc: function( elem ) {
|
204
|
+
var namespace = elem.namespaceURI,
|
205
|
+
documentElement = ( elem.ownerDocument || elem ).documentElement;
|
206
|
+
|
207
|
+
// Assume HTML when documentElement doesn't yet exist, such as inside
|
208
|
+
// document fragments.
|
209
|
+
return !rhtmlSuffix.test( namespace ||
|
210
|
+
documentElement && documentElement.nodeName ||
|
211
|
+
"HTML" );
|
212
|
+
},
|
213
|
+
expr: {
|
214
|
+
attrHandle: {},
|
215
|
+
match: {
|
216
|
+
bool: new RegExp( "^(?:checked|selected|async|autofocus|autoplay|controls|defer" +
|
217
|
+
"|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$", "i" ),
|
218
|
+
needsContext: /^[\x20\t\r\n\f]*[>+~]/
|
219
|
+
}
|
220
|
+
}
|
221
|
+
} );
|
222
|
+
|
223
|
+
jQuery.extend( jQuery.find, {
|
224
|
+
matches: function( expr, elements ) {
|
225
|
+
return jQuery.find( expr, null, null, elements );
|
226
|
+
},
|
227
|
+
matchesSelector: function( elem, expr ) {
|
228
|
+
return matches.call( elem, expr );
|
229
|
+
},
|
230
|
+
attr: function( elem, name ) {
|
231
|
+
var fn = jQuery.expr.attrHandle[ name.toLowerCase() ],
|
232
|
+
|
233
|
+
// Don't get fooled by Object.prototype properties (jQuery #13807)
|
234
|
+
value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?
|
235
|
+
fn( elem, name, jQuery.isXMLDoc( elem ) ) :
|
236
|
+
undefined;
|
237
|
+
return value !== undefined ? value : elem.getAttribute( name );
|
238
|
+
}
|
239
|
+
} );
|
240
|
+
|
241
|
+
} );
|
@@ -0,0 +1,19 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"../external/sizzle/dist/sizzle"
|
4
|
+
], function( jQuery, Sizzle ) {
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
jQuery.find = Sizzle;
|
9
|
+
jQuery.expr = Sizzle.selectors;
|
10
|
+
|
11
|
+
// Deprecated
|
12
|
+
jQuery.expr[ ":" ] = jQuery.expr.pseudos;
|
13
|
+
jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
|
14
|
+
jQuery.text = Sizzle.getText;
|
15
|
+
jQuery.isXMLDoc = Sizzle.isXML;
|
16
|
+
jQuery.contains = Sizzle.contains;
|
17
|
+
jQuery.escapeSelector = Sizzle.escape;
|
18
|
+
|
19
|
+
} );
|
@@ -0,0 +1,136 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"./core/toType",
|
4
|
+
"./var/rcheckableType",
|
5
|
+
"./var/isFunction",
|
6
|
+
"./core/init",
|
7
|
+
"./traversing", // filter
|
8
|
+
"./attributes/prop"
|
9
|
+
], function( jQuery, toType, rcheckableType, isFunction ) {
|
10
|
+
|
11
|
+
"use strict";
|
12
|
+
|
13
|
+
var
|
14
|
+
rbracket = /\[\]$/,
|
15
|
+
rCRLF = /\r?\n/g,
|
16
|
+
rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
|
17
|
+
rsubmittable = /^(?:input|select|textarea|keygen)/i;
|
18
|
+
|
19
|
+
function buildParams( prefix, obj, traditional, add ) {
|
20
|
+
var name;
|
21
|
+
|
22
|
+
if ( Array.isArray( obj ) ) {
|
23
|
+
|
24
|
+
// Serialize array item.
|
25
|
+
jQuery.each( obj, function( i, v ) {
|
26
|
+
if ( traditional || rbracket.test( prefix ) ) {
|
27
|
+
|
28
|
+
// Treat each array item as a scalar.
|
29
|
+
add( prefix, v );
|
30
|
+
|
31
|
+
} else {
|
32
|
+
|
33
|
+
// Item is non-scalar (array or object), encode its numeric index.
|
34
|
+
buildParams(
|
35
|
+
prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
|
36
|
+
v,
|
37
|
+
traditional,
|
38
|
+
add
|
39
|
+
);
|
40
|
+
}
|
41
|
+
} );
|
42
|
+
|
43
|
+
} else if ( !traditional && toType( obj ) === "object" ) {
|
44
|
+
|
45
|
+
// Serialize object item.
|
46
|
+
for ( name in obj ) {
|
47
|
+
buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
|
48
|
+
}
|
49
|
+
|
50
|
+
} else {
|
51
|
+
|
52
|
+
// Serialize scalar item.
|
53
|
+
add( prefix, obj );
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
// Serialize an array of form elements or a set of
|
58
|
+
// key/values into a query string
|
59
|
+
jQuery.param = function( a, traditional ) {
|
60
|
+
var prefix,
|
61
|
+
s = [],
|
62
|
+
add = function( key, valueOrFunction ) {
|
63
|
+
|
64
|
+
// If value is a function, invoke it and use its return value
|
65
|
+
var value = isFunction( valueOrFunction ) ?
|
66
|
+
valueOrFunction() :
|
67
|
+
valueOrFunction;
|
68
|
+
|
69
|
+
s[ s.length ] = encodeURIComponent( key ) + "=" +
|
70
|
+
encodeURIComponent( value == null ? "" : value );
|
71
|
+
};
|
72
|
+
|
73
|
+
if ( a == null ) {
|
74
|
+
return "";
|
75
|
+
}
|
76
|
+
|
77
|
+
// If an array was passed in, assume that it is an array of form elements.
|
78
|
+
if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
|
79
|
+
|
80
|
+
// Serialize the form elements
|
81
|
+
jQuery.each( a, function() {
|
82
|
+
add( this.name, this.value );
|
83
|
+
} );
|
84
|
+
|
85
|
+
} else {
|
86
|
+
|
87
|
+
// If traditional, encode the "old" way (the way 1.3.2 or older
|
88
|
+
// did it), otherwise encode params recursively.
|
89
|
+
for ( prefix in a ) {
|
90
|
+
buildParams( prefix, a[ prefix ], traditional, add );
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
// Return the resulting serialization
|
95
|
+
return s.join( "&" );
|
96
|
+
};
|
97
|
+
|
98
|
+
jQuery.fn.extend( {
|
99
|
+
serialize: function() {
|
100
|
+
return jQuery.param( this.serializeArray() );
|
101
|
+
},
|
102
|
+
serializeArray: function() {
|
103
|
+
return this.map( function() {
|
104
|
+
|
105
|
+
// Can add propHook for "elements" to filter or add form elements
|
106
|
+
var elements = jQuery.prop( this, "elements" );
|
107
|
+
return elements ? jQuery.makeArray( elements ) : this;
|
108
|
+
} )
|
109
|
+
.filter( function() {
|
110
|
+
var type = this.type;
|
111
|
+
|
112
|
+
// Use .is( ":disabled" ) so that fieldset[disabled] works
|
113
|
+
return this.name && !jQuery( this ).is( ":disabled" ) &&
|
114
|
+
rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
|
115
|
+
( this.checked || !rcheckableType.test( type ) );
|
116
|
+
} )
|
117
|
+
.map( function( _i, elem ) {
|
118
|
+
var val = jQuery( this ).val();
|
119
|
+
|
120
|
+
if ( val == null ) {
|
121
|
+
return null;
|
122
|
+
}
|
123
|
+
|
124
|
+
if ( Array.isArray( val ) ) {
|
125
|
+
return jQuery.map( val, function( val ) {
|
126
|
+
return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
|
127
|
+
} );
|
128
|
+
}
|
129
|
+
|
130
|
+
return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
|
131
|
+
} ).get();
|
132
|
+
}
|
133
|
+
} );
|
134
|
+
|
135
|
+
return jQuery;
|
136
|
+
} );
|