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,358 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<link rel="stylesheet" href="index.css" type="text/css" media="screen" />
|
5
|
+
|
6
|
+
<script src="jquery-1.6.min.js" type="text/javascript"></script>
|
7
|
+
<script src="../dist/jquery.syntax.js" type="text/javascript"></script>
|
8
|
+
<script src="../dist/jquery.syntax.cache.js" type="text/javascript"></script>
|
9
|
+
|
10
|
+
<script type="text/javascript">
|
11
|
+
$(function() {
|
12
|
+
jQuery.syntax();
|
13
|
+
});
|
14
|
+
</script>
|
15
|
+
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
<h1>Syntax: Ruby</h1>
|
19
|
+
|
20
|
+
<h2>Ruby Script #1</h2>
|
21
|
+
|
22
|
+
<pre><code class="syntax brush-ruby">#!/usr/bin/env ruby
|
23
|
+
|
24
|
+
# Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
|
25
|
+
#
|
26
|
+
# This program is free software: you can redistribute it and/or modify
|
27
|
+
# it under the terms of the GNU General Public License as published by
|
28
|
+
# the Free Software Foundation, either version 3 of the License, or
|
29
|
+
# (at your option) any later version.
|
30
|
+
#
|
31
|
+
# This program is distributed in the hope that it will be useful,
|
32
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
33
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
34
|
+
# GNU General Public License for more details.
|
35
|
+
#
|
36
|
+
# You should have received a copy of the GNU General Public License
|
37
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
38
|
+
|
39
|
+
require 'rubygems'
|
40
|
+
|
41
|
+
require 'rexec'
|
42
|
+
require 'rexec/daemon'
|
43
|
+
|
44
|
+
require 'rubygems'
|
45
|
+
require 'rubydns'
|
46
|
+
|
47
|
+
# To run this command, use the standard daemon syntax as root
|
48
|
+
# ./daemon2.rb start
|
49
|
+
|
50
|
+
# You should be able to see that the server has dropped priviledges
|
51
|
+
# # ps aux | grep daemon2.rb
|
52
|
+
# daemon 16555 0.4 0.0 81392 2024 ?? S 3:35am 0:00.28 ruby ../test/daemon2.rb start
|
53
|
+
|
54
|
+
# Test using the following command
|
55
|
+
# dig @localhost test.mydomain.org
|
56
|
+
|
57
|
+
# You might need to change the user name "daemon". This can be a user name or a user id.
|
58
|
+
RUN_AS = "daemon"
|
59
|
+
|
60
|
+
# UDP Socket does per packet reverse lookups unless this is set.
|
61
|
+
UDPSocket.do_not_reverse_lookup = true
|
62
|
+
|
63
|
+
# We need to be root in order to bind to privileged port
|
64
|
+
if RExec.current_user != "root"
|
65
|
+
$stderr.puts "Sorry, this command needs to be run as root!"
|
66
|
+
exit 1
|
67
|
+
end
|
68
|
+
|
69
|
+
# The Daemon itself
|
70
|
+
class Server < RExec::Daemon::Base
|
71
|
+
@@var_directory = File.dirname(__FILE__)
|
72
|
+
|
73
|
+
def self.run
|
74
|
+
# Bind to port 53 (UDP)
|
75
|
+
socket = UDPSocket.new
|
76
|
+
socket.bind("0.0.0.0", 53)
|
77
|
+
|
78
|
+
# Drop priviledges
|
79
|
+
RExec.change_user(RUN_AS)
|
80
|
+
|
81
|
+
# Don't buffer output (for debug purposes)
|
82
|
+
$stderr.sync = true
|
83
|
+
|
84
|
+
# Use upstream DNS for name resolution (These ones are Orcon DNS in NZ)
|
85
|
+
$R = Resolv::DNS.new(:nameserver => ["60.234.1.1", "60.234.2.2"])
|
86
|
+
|
87
|
+
# Start the RubyDNS server
|
88
|
+
RubyDNS::run_server(:listen => [socket]) do
|
89
|
+
match("test.mydomain.org", :A) do |transaction|
|
90
|
+
transaction.respond!("10.0.0.80")
|
91
|
+
end
|
92
|
+
|
93
|
+
# Default DNS handler
|
94
|
+
otherwise do |transaction|
|
95
|
+
logger.info "Passthrough: #{transaction}"
|
96
|
+
transaction.passthrough!($R)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# RExec daemon runner
|
103
|
+
Server.daemonize</code></pre>
|
104
|
+
|
105
|
+
<h2>Ruby Script #2</h2>
|
106
|
+
|
107
|
+
<pre><code class="syntax brush-ruby">#!/usr/bin/env ruby
|
108
|
+
# Simple Operator Expression Parser
|
109
|
+
|
110
|
+
require 'set'
|
111
|
+
|
112
|
+
DEBUG = false
|
113
|
+
|
114
|
+
class Array
|
115
|
+
def map_to(with)
|
116
|
+
r = {}
|
117
|
+
|
118
|
+
each_with_index { |v,i| r[v] = with[i] }
|
119
|
+
|
120
|
+
return r
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
module Expression
|
125
|
+
class Context
|
126
|
+
def initialize(operators, values)
|
127
|
+
@values = values
|
128
|
+
@operators = operators
|
129
|
+
end
|
130
|
+
|
131
|
+
def value_of (key)
|
132
|
+
@values[key]
|
133
|
+
end
|
134
|
+
|
135
|
+
def call (op, args)
|
136
|
+
@operators.call(op, args)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class Constant
|
141
|
+
def initialize(value)
|
142
|
+
@value = value
|
143
|
+
end
|
144
|
+
|
145
|
+
def evaluate (ctx)
|
146
|
+
return @value
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
class Identifier
|
151
|
+
def initialize(name)
|
152
|
+
@name = name
|
153
|
+
end
|
154
|
+
|
155
|
+
def evaluate (ctx)
|
156
|
+
ctx.value_of(@name)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
class Operator
|
161
|
+
def initialize(name, args = [])
|
162
|
+
@name = name
|
163
|
+
@args = args
|
164
|
+
end
|
165
|
+
|
166
|
+
def name
|
167
|
+
@name
|
168
|
+
end
|
169
|
+
|
170
|
+
def evaluate (ctx)
|
171
|
+
ctx.call(@name, @args.collect { |a| a.evaluate(ctx) })
|
172
|
+
end
|
173
|
+
|
174
|
+
def args
|
175
|
+
@args
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
class Brackets
|
180
|
+
def initialize(node)
|
181
|
+
@node = node
|
182
|
+
end
|
183
|
+
|
184
|
+
def evaluate (ctx)
|
185
|
+
@node.evaluate(ctx)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
class Parser
|
190
|
+
def initialize(ops, expr)
|
191
|
+
@identifiers = []
|
192
|
+
@operators = ops
|
193
|
+
|
194
|
+
# Tokens and expressions line up
|
195
|
+
@expressions = []
|
196
|
+
@tokens = []
|
197
|
+
|
198
|
+
@top = nil
|
199
|
+
|
200
|
+
parse(expr)
|
201
|
+
end
|
202
|
+
|
203
|
+
def evaluate (ctx)
|
204
|
+
@expressions.collect do |expr|
|
205
|
+
expr != nil ? expr.evaluate(ctx) : nil
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
def identifiers
|
210
|
+
@identifiers
|
211
|
+
end
|
212
|
+
|
213
|
+
def tokens
|
214
|
+
@tokens
|
215
|
+
end
|
216
|
+
private
|
217
|
+
def parse(expr)
|
218
|
+
symbols = @operators.keys + ["(", ")"]
|
219
|
+
tokenizer = Regexp.union(Regexp.union(*symbols), /[A-Z]+/)
|
220
|
+
|
221
|
+
@tokens = expr.scan(tokenizer)
|
222
|
+
@expressions = [nil] * @tokens.size
|
223
|
+
|
224
|
+
@identifiers = Set.new(expr.scan(/[A-Z]+/))
|
225
|
+
|
226
|
+
@top, i = process_expression
|
227
|
+
|
228
|
+
if DEBUG
|
229
|
+
puts "Processed #{i} tokens..."
|
230
|
+
puts "Tokens: " + @tokens.join(" ")
|
231
|
+
puts @top.inspect
|
232
|
+
puts @expressions.inspect
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
def process_expression(i = 0)
|
237
|
+
ast = []
|
238
|
+
ops = {}
|
239
|
+
while i < @tokens.size
|
240
|
+
t = @tokens[i]
|
241
|
+
|
242
|
+
if t == "("
|
243
|
+
result, i = process_expression(i+1)
|
244
|
+
ast += result
|
245
|
+
elsif t == ")"
|
246
|
+
break
|
247
|
+
else
|
248
|
+
result = process_token(i)
|
249
|
+
ast << result
|
250
|
+
end
|
251
|
+
|
252
|
+
if result.class == Operator
|
253
|
+
ops[result.name] ||= []
|
254
|
+
# Store the index
|
255
|
+
ops[result.name] << (ast.size - 1)
|
256
|
+
end
|
257
|
+
|
258
|
+
i += 1
|
259
|
+
end
|
260
|
+
|
261
|
+
#puts ast.inspect
|
262
|
+
|
263
|
+
# We need to sort the list of operators now
|
264
|
+
# [c, infix, prefix, c]
|
265
|
+
|
266
|
+
@operators.order.each do |name|
|
267
|
+
op_kind = @operators.kind(name)
|
268
|
+
next unless ops[name]
|
269
|
+
|
270
|
+
ops[name].each do |loc|
|
271
|
+
op = ast[loc]
|
272
|
+
|
273
|
+
if op_kind == :prefix
|
274
|
+
rhs = find_subexpression(ast, loc, RHS_SEARCH)
|
275
|
+
op.args << ast[rhs]
|
276
|
+
ast[rhs] = nil
|
277
|
+
elsif op_kind == :infix
|
278
|
+
lhs = find_subexpression(ast, loc, LHS_SEARCH)
|
279
|
+
rhs = find_subexpression(ast, loc, RHS_SEARCH)
|
280
|
+
op.args << ast[lhs]
|
281
|
+
op.args << ast[rhs]
|
282
|
+
ast[lhs] = ast[rhs] = nil
|
283
|
+
elsif op_kind == :postfix
|
284
|
+
lhs = find_subexpression(ast, loc, LHS_SEARCH)
|
285
|
+
op.args << ast[lhs]
|
286
|
+
ast[rhs] = nil
|
287
|
+
end
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
return [ast.uniq, i]
|
292
|
+
end
|
293
|
+
|
294
|
+
RHS_SEARCH = 1
|
295
|
+
LHS_SEARCH = -1
|
296
|
+
|
297
|
+
def find_subexpression(ast, loc, dir)
|
298
|
+
while loc >= 0 && loc < ast.size
|
299
|
+
loc += dir
|
300
|
+
return loc if ast[loc] != nil
|
301
|
+
end
|
302
|
+
|
303
|
+
return nil
|
304
|
+
end
|
305
|
+
|
306
|
+
def process_token(i)
|
307
|
+
t = @tokens[i]
|
308
|
+
|
309
|
+
if @operators.key? t
|
310
|
+
tok = Operator.new(t)
|
311
|
+
elsif t.match /[A-Z]+/
|
312
|
+
tok = Identifier.new(t)
|
313
|
+
else
|
314
|
+
tok = Constant.new(t)
|
315
|
+
end
|
316
|
+
|
317
|
+
@expressions[i] = tok
|
318
|
+
return tok
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
TYPE = 0
|
323
|
+
FUNC = 1
|
324
|
+
class Operators
|
325
|
+
def initialize
|
326
|
+
@operators = {}
|
327
|
+
@order = []
|
328
|
+
end
|
329
|
+
|
330
|
+
def add(sym, kind, &block)
|
331
|
+
@operators[sym] = [kind, block]
|
332
|
+
@order << sym
|
333
|
+
end
|
334
|
+
|
335
|
+
def order
|
336
|
+
@order
|
337
|
+
end
|
338
|
+
|
339
|
+
def keys
|
340
|
+
@operators.keys
|
341
|
+
end
|
342
|
+
|
343
|
+
def key? k
|
344
|
+
@operators.key? k
|
345
|
+
end
|
346
|
+
|
347
|
+
def kind k
|
348
|
+
@operators[k][0]
|
349
|
+
end
|
350
|
+
|
351
|
+
def call(k, args)
|
352
|
+
@operators[k][1].call(*args)
|
353
|
+
end
|
354
|
+
end
|
355
|
+
end</code></pre>
|
356
|
+
|
357
|
+
</body>
|
358
|
+
</html>
|
@@ -0,0 +1,90 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<link rel="stylesheet" href="index.css" type="text/css" media="screen" />
|
5
|
+
|
6
|
+
<script src="jquery-1.6.min.js" type="text/javascript"></script>
|
7
|
+
<script src="../dist/jquery.syntax.js" type="text/javascript"></script>
|
8
|
+
<script src="../dist/jquery.syntax.cache.js" type="text/javascript"></script>
|
9
|
+
|
10
|
+
<script type="text/javascript">
|
11
|
+
$(function() {
|
12
|
+
jQuery.syntax();
|
13
|
+
});
|
14
|
+
</script>
|
15
|
+
</head>
|
16
|
+
<body>
|
17
|
+
<h1>Syntax: Python</h1>
|
18
|
+
|
19
|
+
<pre><code class="language-swift">//
|
20
|
+
// TTKeyboardViewController.swift
|
21
|
+
// Truth Tables
|
22
|
+
//
|
23
|
+
// Created by Samuel Williams on 16/10/16.
|
24
|
+
// Copyright © 2016 Orion Transfer Ltd. All rights reserved.
|
25
|
+
//
|
26
|
+
|
27
|
+
import UIKit
|
28
|
+
|
29
|
+
class TTKeyboardViewController: UIInputViewController {
|
30
|
+
var nextKeyboardButton : UIButton?
|
31
|
+
|
32
|
+
required init?(coder aDecoder: NSCoder) {
|
33
|
+
super.init(coder: aDecoder)
|
34
|
+
}
|
35
|
+
|
36
|
+
init() {
|
37
|
+
super.init(nibName: "TTKeyboardView", bundle: nil)
|
38
|
+
}
|
39
|
+
|
40
|
+
override func loadView() {
|
41
|
+
super.loadView()
|
42
|
+
|
43
|
+
self.view.translatesAutoresizingMaskIntoConstraints = false
|
44
|
+
}
|
45
|
+
|
46
|
+
override func viewDidLoad() {
|
47
|
+
super.viewDidLoad()
|
48
|
+
|
49
|
+
self.view.backgroundColor = UIColor.init(patternImage: UIImage.init(named: "Background.jpg")!)
|
50
|
+
|
51
|
+
// Perform custom UI setup here
|
52
|
+
// self.nextKeyboardButton = UIButton.init(type: .system)
|
53
|
+
//
|
54
|
+
// self.nextKeyboardButton?.setTitle(NSLocalizedString("Next Keyboard", comment: "Title for 'Next Keyboard' button"), for: .normal)
|
55
|
+
// self.nextKeyboardButton?.sizeToFit()
|
56
|
+
// self.nextKeyboardButton?.translatesAutoresizingMaskIntoConstraints = false
|
57
|
+
//
|
58
|
+
// self.nextKeyboardButton?.addTarget(self, action: #selector(self.handleInputModeList(from:with:)), for: .allTouchEvents)
|
59
|
+
//
|
60
|
+
// self.view.addSubview(self.nextKeyboardButton!)
|
61
|
+
//
|
62
|
+
// self.nextKeyboardButton?.leftAnchor.constraint(equalTo: self.view.leftAnchor).isActive = true
|
63
|
+
// self.nextKeyboardButton?.bottomAnchor.constraint(equalTo: self.view.bottomAnchor).isActive = true
|
64
|
+
}
|
65
|
+
|
66
|
+
@IBAction func inputPressed(_ sender: AnyObject?) {
|
67
|
+
if let button = sender as? UIButton! {
|
68
|
+
if let priorText = self.textDocumentProxy.documentContextBeforeInput {
|
69
|
+
if let lastCharacter = priorText.characters.last {
|
70
|
+
if lastCharacter != " " {
|
71
|
+
self.textDocumentProxy.insertText(" ")
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
self.textDocumentProxy.insertText(button.currentTitle!)
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
@IBAction func deletePressed(_ sender: AnyObject?) {
|
81
|
+
self.textDocumentProxy.deleteBackward()
|
82
|
+
}
|
83
|
+
|
84
|
+
@IBAction func donePressed(_ sender: AnyObject?) {
|
85
|
+
self.textDocumentProxy.insertText("\n")
|
86
|
+
}
|
87
|
+
}
|
88
|
+
</code></pre>
|
89
|
+
</body>
|
90
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
body {
|
2
|
+
font-size: 80%;
|
3
|
+
font-family: sans-serif;
|
4
|
+
padding: 1em 3em 1em;
|
5
|
+
}
|
6
|
+
|
7
|
+
div.title {
|
8
|
+
text-align: center;
|
9
|
+
}
|
10
|
+
|
11
|
+
h1 {
|
12
|
+
background-color: #eee;
|
13
|
+
border-bottom: 2px solid black;
|
14
|
+
border-top: 2px solid black;
|
15
|
+
padding: 10px;
|
16
|
+
|
17
|
+
text-align: center;
|
18
|
+
}
|