├── .gitignore ├── LICENSE ├── iOS └── QTTT │ ├── .flowconfig │ ├── .gitignore │ ├── Podfile │ ├── QTTT.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── QTTT.xcscheme │ ├── QTTTTests │ ├── Info.plist │ └── QTTTTests.m │ ├── iOS │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── main.jsbundle │ └── main.m │ ├── index.ios.js │ ├── npm-shrinkwrap.json │ └── package.json ├── project.clj ├── readme.md ├── resources └── public │ ├── csshake.min.css │ ├── dev.html │ ├── font-awesome │ ├── css │ │ ├── font-awesome.css │ │ └── font-awesome.min.css │ └── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ └── styles.css ├── script └── ambly-repl └── src └── qttt ├── game.cljs ├── ui.cljs └── ui ├── om.cljs ├── om_ios.cljs ├── pre_om.cljs ├── quiescent.cljs └── reagent.cljs /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | /resources/public/gen 13 | .idea 14 | *.iml 15 | iOS/QTTT/Pods 16 | iOS/QTTT/Podfile.lock 17 | iOS/QTTT/QTTT.xcworkspace 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC 2 | LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM 3 | CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. 4 | 5 | 1. DEFINITIONS 6 | 7 | "Contribution" means: 8 | 9 | a) in the case of the initial Contributor, the initial code and 10 | documentation distributed under this Agreement, and 11 | 12 | b) in the case of each subsequent Contributor: 13 | 14 | i) changes to the Program, and 15 | 16 | ii) additions to the Program; 17 | 18 | where such changes and/or additions to the Program originate from and are 19 | distributed by that particular Contributor. A Contribution 'originates' from 20 | a Contributor if it was added to the Program by such Contributor itself or 21 | anyone acting on such Contributor's behalf. Contributions do not include 22 | additions to the Program which: (i) are separate modules of software 23 | distributed in conjunction with the Program under their own license 24 | agreement, and (ii) are not derivative works of the Program. 25 | 26 | "Contributor" means any person or entity that distributes the Program. 27 | 28 | "Licensed Patents" mean patent claims licensable by a Contributor which are 29 | necessarily infringed by the use or sale of its Contribution alone or when 30 | combined with the Program. 31 | 32 | "Program" means the Contributions distributed in accordance with this 33 | Agreement. 34 | 35 | "Recipient" means anyone who receives the Program under this Agreement, 36 | including all Contributors. 37 | 38 | 2. GRANT OF RIGHTS 39 | 40 | a) Subject to the terms of this Agreement, each Contributor hereby grants 41 | Recipient a non-exclusive, worldwide, royalty-free copyright license to 42 | reproduce, prepare derivative works of, publicly display, publicly perform, 43 | distribute and sublicense the Contribution of such Contributor, if any, and 44 | such derivative works, in source code and object code form. 45 | 46 | b) Subject to the terms of this Agreement, each Contributor hereby grants 47 | Recipient a non-exclusive, worldwide, royalty-free patent license under 48 | Licensed Patents to make, use, sell, offer to sell, import and otherwise 49 | transfer the Contribution of such Contributor, if any, in source code and 50 | object code form. This patent license shall apply to the combination of the 51 | Contribution and the Program if, at the time the Contribution is added by the 52 | Contributor, such addition of the Contribution causes such combination to be 53 | covered by the Licensed Patents. The patent license shall not apply to any 54 | other combinations which include the Contribution. No hardware per se is 55 | licensed hereunder. 56 | 57 | c) Recipient understands that although each Contributor grants the licenses 58 | to its Contributions set forth herein, no assurances are provided by any 59 | Contributor that the Program does not infringe the patent or other 60 | intellectual property rights of any other entity. Each Contributor disclaims 61 | any liability to Recipient for claims brought by any other entity based on 62 | infringement of intellectual property rights or otherwise. As a condition to 63 | exercising the rights and licenses granted hereunder, each Recipient hereby 64 | assumes sole responsibility to secure any other intellectual property rights 65 | needed, if any. For example, if a third party patent license is required to 66 | allow Recipient to distribute the Program, it is Recipient's responsibility 67 | to acquire that license before distributing the Program. 68 | 69 | d) Each Contributor represents that to its knowledge it has sufficient 70 | copyright rights in its Contribution, if any, to grant the copyright license 71 | set forth in this Agreement. 72 | 73 | 3. REQUIREMENTS 74 | 75 | A Contributor may choose to distribute the Program in object code form under 76 | its own license agreement, provided that: 77 | 78 | a) it complies with the terms and conditions of this Agreement; and 79 | 80 | b) its license agreement: 81 | 82 | i) effectively disclaims on behalf of all Contributors all warranties and 83 | conditions, express and implied, including warranties or conditions of title 84 | and non-infringement, and implied warranties or conditions of merchantability 85 | and fitness for a particular purpose; 86 | 87 | ii) effectively excludes on behalf of all Contributors all liability for 88 | damages, including direct, indirect, special, incidental and consequential 89 | damages, such as lost profits; 90 | 91 | iii) states that any provisions which differ from this Agreement are offered 92 | by that Contributor alone and not by any other party; and 93 | 94 | iv) states that source code for the Program is available from such 95 | Contributor, and informs licensees how to obtain it in a reasonable manner on 96 | or through a medium customarily used for software exchange. 97 | 98 | When the Program is made available in source code form: 99 | 100 | a) it must be made available under this Agreement; and 101 | 102 | b) a copy of this Agreement must be included with each copy of the Program. 103 | 104 | Contributors may not remove or alter any copyright notices contained within 105 | the Program. 106 | 107 | Each Contributor must identify itself as the originator of its Contribution, 108 | if any, in a manner that reasonably allows subsequent Recipients to identify 109 | the originator of the Contribution. 110 | 111 | 4. COMMERCIAL DISTRIBUTION 112 | 113 | Commercial distributors of software may accept certain responsibilities with 114 | respect to end users, business partners and the like. While this license is 115 | intended to facilitate the commercial use of the Program, the Contributor who 116 | includes the Program in a commercial product offering should do so in a 117 | manner which does not create potential liability for other Contributors. 118 | Therefore, if a Contributor includes the Program in a commercial product 119 | offering, such Contributor ("Commercial Contributor") hereby agrees to defend 120 | and indemnify every other Contributor ("Indemnified Contributor") against any 121 | losses, damages and costs (collectively "Losses") arising from claims, 122 | lawsuits and other legal actions brought by a third party against the 123 | Indemnified Contributor to the extent caused by the acts or omissions of such 124 | Commercial Contributor in connection with its distribution of the Program in 125 | a commercial product offering. The obligations in this section do not apply 126 | to any claims or Losses relating to any actual or alleged intellectual 127 | property infringement. In order to qualify, an Indemnified Contributor must: 128 | a) promptly notify the Commercial Contributor in writing of such claim, and 129 | b) allow the Commercial Contributor tocontrol, and cooperate with the 130 | Commercial Contributor in, the defense and any related settlement 131 | negotiations. The Indemnified Contributor may participate in any such claim 132 | at its own expense. 133 | 134 | For example, a Contributor might include the Program in a commercial product 135 | offering, Product X. That Contributor is then a Commercial Contributor. If 136 | that Commercial Contributor then makes performance claims, or offers 137 | warranties related to Product X, those performance claims and warranties are 138 | such Commercial Contributor's responsibility alone. Under this section, the 139 | Commercial Contributor would have to defend claims against the other 140 | Contributors related to those performance claims and warranties, and if a 141 | court requires any other Contributor to pay any damages as a result, the 142 | Commercial Contributor must pay those damages. 143 | 144 | 5. NO WARRANTY 145 | 146 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON 147 | AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER 148 | EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR 149 | CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A 150 | PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the 151 | appropriateness of using and distributing the Program and assumes all risks 152 | associated with its exercise of rights under this Agreement , including but 153 | not limited to the risks and costs of program errors, compliance with 154 | applicable laws, damage to or loss of data, programs or equipment, and 155 | unavailability or interruption of operations. 156 | 157 | 6. DISCLAIMER OF LIABILITY 158 | 159 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY 160 | CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, 161 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION 162 | LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 163 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 164 | ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE 165 | EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY 166 | OF SUCH DAMAGES. 167 | 168 | 7. GENERAL 169 | 170 | If any provision of this Agreement is invalid or unenforceable under 171 | applicable law, it shall not affect the validity or enforceability of the 172 | remainder of the terms of this Agreement, and without further action by the 173 | parties hereto, such provision shall be reformed to the minimum extent 174 | necessary to make such provision valid and enforceable. 175 | 176 | If Recipient institutes patent litigation against any entity (including a 177 | cross-claim or counterclaim in a lawsuit) alleging that the Program itself 178 | (excluding combinations of the Program with other software or hardware) 179 | infringes such Recipient's patent(s), then such Recipient's rights granted 180 | under Section 2(b) shall terminate as of the date such litigation is filed. 181 | 182 | All Recipient's rights under this Agreement shall terminate if it fails to 183 | comply with any of the material terms or conditions of this Agreement and 184 | does not cure such failure in a reasonable period of time after becoming 185 | aware of such noncompliance. If all Recipient's rights under this Agreement 186 | terminate, Recipient agrees to cease use and distribution of the Program as 187 | soon as reasonably practicable. However, Recipient's obligations under this 188 | Agreement and any licenses granted by Recipient relating to the Program shall 189 | continue and survive. 190 | 191 | Everyone is permitted to copy and distribute copies of this Agreement, but in 192 | order to avoid inconsistency the Agreement is copyrighted and may only be 193 | modified in the following manner. The Agreement Steward reserves the right to 194 | publish new versions (including revisions) of this Agreement from time to 195 | time. No one other than the Agreement Steward has the right to modify this 196 | Agreement. The Eclipse Foundation is the initial Agreement Steward. The 197 | Eclipse Foundation may assign the responsibility to serve as the Agreement 198 | Steward to a suitable separate entity. Each new version of the Agreement will 199 | be given a distinguishing version number. The Program (including 200 | Contributions) may always be distributed subject to the version of the 201 | Agreement under which it was received. In addition, after a new version of 202 | the Agreement is published, Contributor may elect to distribute the Program 203 | (including its Contributions) under the new version. Except as expressly 204 | stated in Sections 2(a) and 2(b) above, Recipient receives no rights or 205 | licenses to the intellectual property of any Contributor under this 206 | Agreement, whether expressly, by implication, estoppel or otherwise. All 207 | rights in the Program not expressly granted under this Agreement are 208 | reserved. 209 | 210 | This Agreement is governed by the laws of the State of New York and the 211 | intellectual property laws of the United States of America. No party to this 212 | Agreement will bring a legal action under this Agreement more than one year 213 | after the cause of action arose. Each party waives its rights to a jury trial 214 | in any resulting litigation. 215 | -------------------------------------------------------------------------------- /iOS/QTTT/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*.web.js 5 | .*/*.android.js 6 | 7 | # Some modules have their own node_modules with overlap 8 | .*/node_modules/node-haste/.* 9 | 10 | # Ignore react-tools where there are overlaps, but don't ignore anything that 11 | # react-native relies on 12 | .*/node_modules/react-tools/src/vendor/core/ExecutionEnvironment.js 13 | .*/node_modules/react-tools/src/browser/eventPlugins/ResponderEventPlugin.js 14 | .*/node_modules/react-tools/src/browser/ui/React.js 15 | .*/node_modules/react-tools/src/core/ReactInstanceHandles.js 16 | .*/node_modules/react-tools/src/event/EventPropagators.js 17 | 18 | # Ignore commoner tests 19 | .*/node_modules/react-tools/node_modules/commoner/test/.* 20 | 21 | # See https://github.com/facebook/flow/issues/442 22 | .*/react-tools/node_modules/commoner/lib/reader.js 23 | 24 | # Ignore jest 25 | .*/react-native/node_modules/jest-cli/.* 26 | 27 | [include] 28 | 29 | [libs] 30 | node_modules/react-native/Libraries/react-native/react-native-interface.js 31 | 32 | [options] 33 | module.system=haste 34 | -------------------------------------------------------------------------------- /iOS/QTTT/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # node.js 26 | # 27 | node_modules/ 28 | npm-debug.log 29 | -------------------------------------------------------------------------------- /iOS/QTTT/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | platform :ios, '8.0' 3 | 4 | pod "Ambly", "~> 0.6.0" 5 | pod "Bentho", "~> 0.4.0" 6 | -------------------------------------------------------------------------------- /iOS/QTTT/QTTT.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 008F07F31AC5B25A0029DE68 /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 008F07F21AC5B25A0029DE68 /* main.jsbundle */; }; 11 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 12 | 00C302E61ABCBA2D00DB3ED1 /* libRCTAdSupport.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */; }; 13 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 14 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 15 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 16 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 17 | 00E356F31AD99517003FC87E /* QTTTTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* QTTTTests.m */; }; 18 | 081EB579B371D1B55A2CAB44 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4FF2D35DC7EDA643511914B8 /* libPods.a */; }; 19 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 20 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 21 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 22 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 23 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 24 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 26 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 27 | ED7DA0EF1B05237200B2C654 /* out in Resources */ = {isa = PBXBuildFile; fileRef = ED7DA0EE1B05237200B2C654 /* out */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 34 | proxyType = 2; 35 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 36 | remoteInfo = RCTActionSheet; 37 | }; 38 | 00C302B31ABCB8E700DB3ED1 /* PBXContainerItemProxy */ = { 39 | isa = PBXContainerItemProxy; 40 | containerPortal = 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */; 41 | proxyType = 2; 42 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 43 | remoteInfo = RCTAdSupport; 44 | }; 45 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 46 | isa = PBXContainerItemProxy; 47 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 48 | proxyType = 2; 49 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 50 | remoteInfo = RCTGeolocation; 51 | }; 52 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 53 | isa = PBXContainerItemProxy; 54 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 55 | proxyType = 2; 56 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 57 | remoteInfo = RCTImage; 58 | }; 59 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 60 | isa = PBXContainerItemProxy; 61 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 62 | proxyType = 2; 63 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 64 | remoteInfo = RCTNetwork; 65 | }; 66 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 67 | isa = PBXContainerItemProxy; 68 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 69 | proxyType = 2; 70 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 71 | remoteInfo = RCTVibration; 72 | }; 73 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 74 | isa = PBXContainerItemProxy; 75 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 76 | proxyType = 1; 77 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 78 | remoteInfo = QTTT; 79 | }; 80 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 81 | isa = PBXContainerItemProxy; 82 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 83 | proxyType = 2; 84 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 85 | remoteInfo = RCTSettings; 86 | }; 87 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 88 | isa = PBXContainerItemProxy; 89 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 90 | proxyType = 2; 91 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 92 | remoteInfo = React; 93 | }; 94 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 95 | isa = PBXContainerItemProxy; 96 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 97 | proxyType = 2; 98 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 99 | remoteInfo = RCTLinking; 100 | }; 101 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 102 | isa = PBXContainerItemProxy; 103 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 104 | proxyType = 2; 105 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 106 | remoteInfo = RCTText; 107 | }; 108 | /* End PBXContainerItemProxy section */ 109 | 110 | /* Begin PBXFileReference section */ 111 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = main.jsbundle; path = iOS/main.jsbundle; sourceTree = ""; }; 112 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 113 | 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAdSupport.xcodeproj; path = "node_modules/react-native/Libraries/AdSupport/RCTAdSupport.xcodeproj"; sourceTree = ""; }; 114 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 115 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 116 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 117 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 118 | 00E356EE1AD99517003FC87E /* QTTTTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = QTTTTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 119 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 120 | 00E356F21AD99517003FC87E /* QTTTTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = QTTTTests.m; sourceTree = ""; }; 121 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 122 | 13B07F961A680F5B00A75B9A /* QTTT.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = QTTT.app; sourceTree = BUILT_PRODUCTS_DIR; }; 123 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = iOS/AppDelegate.h; sourceTree = ""; }; 124 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = iOS/AppDelegate.m; sourceTree = ""; }; 125 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 126 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = iOS/Images.xcassets; sourceTree = ""; }; 127 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = iOS/Info.plist; sourceTree = ""; }; 128 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = iOS/main.m; sourceTree = ""; }; 129 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 130 | 286DA75E7451848C7FE5D3A1 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; }; 131 | 4EAB827952A0714272001D00 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; }; 132 | 4FF2D35DC7EDA643511914B8 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 133 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 134 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 135 | ED7DA0EE1B05237200B2C654 /* out */ = {isa = PBXFileReference; lastKnownFileType = folder; name = out; path = ../../target/out; sourceTree = ""; }; 136 | /* End PBXFileReference section */ 137 | 138 | /* Begin PBXFrameworksBuildPhase section */ 139 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 140 | isa = PBXFrameworksBuildPhase; 141 | buildActionMask = 2147483647; 142 | files = ( 143 | ); 144 | runOnlyForDeploymentPostprocessing = 0; 145 | }; 146 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 147 | isa = PBXFrameworksBuildPhase; 148 | buildActionMask = 2147483647; 149 | files = ( 150 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 151 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 152 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 153 | 00C302E61ABCBA2D00DB3ED1 /* libRCTAdSupport.a in Frameworks */, 154 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 155 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 156 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 157 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 158 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 159 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 160 | 081EB579B371D1B55A2CAB44 /* libPods.a in Frameworks */, 161 | ); 162 | runOnlyForDeploymentPostprocessing = 0; 163 | }; 164 | /* End PBXFrameworksBuildPhase section */ 165 | 166 | /* Begin PBXGroup section */ 167 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 171 | ); 172 | name = Products; 173 | sourceTree = ""; 174 | }; 175 | 00C302B01ABCB8E700DB3ED1 /* Products */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */, 179 | ); 180 | name = Products; 181 | sourceTree = ""; 182 | }; 183 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 184 | isa = PBXGroup; 185 | children = ( 186 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 187 | ); 188 | name = Products; 189 | sourceTree = ""; 190 | }; 191 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 195 | ); 196 | name = Products; 197 | sourceTree = ""; 198 | }; 199 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 203 | ); 204 | name = Products; 205 | sourceTree = ""; 206 | }; 207 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 211 | ); 212 | name = Products; 213 | sourceTree = ""; 214 | }; 215 | 00E356EF1AD99517003FC87E /* QTTTTests */ = { 216 | isa = PBXGroup; 217 | children = ( 218 | 00E356F21AD99517003FC87E /* QTTTTests.m */, 219 | 00E356F01AD99517003FC87E /* Supporting Files */, 220 | ); 221 | path = QTTTTests; 222 | sourceTree = ""; 223 | }; 224 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 225 | isa = PBXGroup; 226 | children = ( 227 | 00E356F11AD99517003FC87E /* Info.plist */, 228 | ); 229 | name = "Supporting Files"; 230 | sourceTree = ""; 231 | }; 232 | 139105B71AF99BAD00B5F7CC /* Products */ = { 233 | isa = PBXGroup; 234 | children = ( 235 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 236 | ); 237 | name = Products; 238 | sourceTree = ""; 239 | }; 240 | 13B07FAE1A68108700A75B9A /* QTTT */ = { 241 | isa = PBXGroup; 242 | children = ( 243 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 244 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 245 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 246 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 247 | 13B07FB61A68108700A75B9A /* Info.plist */, 248 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 249 | 13B07FB71A68108700A75B9A /* main.m */, 250 | ); 251 | name = QTTT; 252 | sourceTree = ""; 253 | }; 254 | 13E24ABC8AA8FF743FF5F431 /* Frameworks */ = { 255 | isa = PBXGroup; 256 | children = ( 257 | 4FF2D35DC7EDA643511914B8 /* libPods.a */, 258 | ); 259 | name = Frameworks; 260 | sourceTree = ""; 261 | }; 262 | 146834001AC3E56700842450 /* Products */ = { 263 | isa = PBXGroup; 264 | children = ( 265 | 146834041AC3E56700842450 /* libReact.a */, 266 | ); 267 | name = Products; 268 | sourceTree = ""; 269 | }; 270 | 3FA677FFCC9CC7C9A0159A7C /* Pods */ = { 271 | isa = PBXGroup; 272 | children = ( 273 | 286DA75E7451848C7FE5D3A1 /* Pods.debug.xcconfig */, 274 | 4EAB827952A0714272001D00 /* Pods.release.xcconfig */, 275 | ); 276 | name = Pods; 277 | sourceTree = ""; 278 | }; 279 | 78C398B11ACF4ADC00677621 /* Products */ = { 280 | isa = PBXGroup; 281 | children = ( 282 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 283 | ); 284 | name = Products; 285 | sourceTree = ""; 286 | }; 287 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 288 | isa = PBXGroup; 289 | children = ( 290 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 291 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 292 | 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */, 293 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 294 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 295 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 296 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 297 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 298 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 299 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 300 | ); 301 | name = Libraries; 302 | sourceTree = ""; 303 | }; 304 | 832341B11AAA6A8300B99B32 /* Products */ = { 305 | isa = PBXGroup; 306 | children = ( 307 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 308 | ); 309 | name = Products; 310 | sourceTree = ""; 311 | }; 312 | 83CBB9F61A601CBA00E9B192 = { 313 | isa = PBXGroup; 314 | children = ( 315 | ED7DA0EE1B05237200B2C654 /* out */, 316 | 13B07FAE1A68108700A75B9A /* QTTT */, 317 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 318 | 00E356EF1AD99517003FC87E /* QTTTTests */, 319 | 83CBBA001A601CBA00E9B192 /* Products */, 320 | 3FA677FFCC9CC7C9A0159A7C /* Pods */, 321 | 13E24ABC8AA8FF743FF5F431 /* Frameworks */, 322 | ); 323 | indentWidth = 2; 324 | sourceTree = ""; 325 | tabWidth = 2; 326 | }; 327 | 83CBBA001A601CBA00E9B192 /* Products */ = { 328 | isa = PBXGroup; 329 | children = ( 330 | 13B07F961A680F5B00A75B9A /* QTTT.app */, 331 | 00E356EE1AD99517003FC87E /* QTTTTests.xctest */, 332 | ); 333 | name = Products; 334 | sourceTree = ""; 335 | }; 336 | /* End PBXGroup section */ 337 | 338 | /* Begin PBXNativeTarget section */ 339 | 00E356ED1AD99517003FC87E /* QTTTTests */ = { 340 | isa = PBXNativeTarget; 341 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "QTTTTests" */; 342 | buildPhases = ( 343 | 00E356EA1AD99517003FC87E /* Sources */, 344 | 00E356EB1AD99517003FC87E /* Frameworks */, 345 | 00E356EC1AD99517003FC87E /* Resources */, 346 | ); 347 | buildRules = ( 348 | ); 349 | dependencies = ( 350 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 351 | ); 352 | name = QTTTTests; 353 | productName = QTTTTests; 354 | productReference = 00E356EE1AD99517003FC87E /* QTTTTests.xctest */; 355 | productType = "com.apple.product-type.bundle.unit-test"; 356 | }; 357 | 13B07F861A680F5B00A75B9A /* QTTT */ = { 358 | isa = PBXNativeTarget; 359 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "QTTT" */; 360 | buildPhases = ( 361 | F08CA5525CB1B091B900BB8E /* Check Pods Manifest.lock */, 362 | 13B07F871A680F5B00A75B9A /* Sources */, 363 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 364 | 13B07F8E1A680F5B00A75B9A /* Resources */, 365 | 0ADDC83BEA85016065A78BC6 /* Copy Pods Resources */, 366 | ); 367 | buildRules = ( 368 | ); 369 | dependencies = ( 370 | ); 371 | name = QTTT; 372 | productName = "Hello World"; 373 | productReference = 13B07F961A680F5B00A75B9A /* QTTT.app */; 374 | productType = "com.apple.product-type.application"; 375 | }; 376 | /* End PBXNativeTarget section */ 377 | 378 | /* Begin PBXProject section */ 379 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 380 | isa = PBXProject; 381 | attributes = { 382 | LastUpgradeCheck = 0610; 383 | ORGANIZATIONNAME = Facebook; 384 | TargetAttributes = { 385 | 00E356ED1AD99517003FC87E = { 386 | CreatedOnToolsVersion = 6.2; 387 | TestTargetID = 13B07F861A680F5B00A75B9A; 388 | }; 389 | }; 390 | }; 391 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "QTTT" */; 392 | compatibilityVersion = "Xcode 3.2"; 393 | developmentRegion = English; 394 | hasScannedForEncodings = 0; 395 | knownRegions = ( 396 | en, 397 | Base, 398 | ); 399 | mainGroup = 83CBB9F61A601CBA00E9B192; 400 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 401 | projectDirPath = ""; 402 | projectReferences = ( 403 | { 404 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 405 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 406 | }, 407 | { 408 | ProductGroup = 00C302B01ABCB8E700DB3ED1 /* Products */; 409 | ProjectRef = 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */; 410 | }, 411 | { 412 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 413 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 414 | }, 415 | { 416 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 417 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 418 | }, 419 | { 420 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 421 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 422 | }, 423 | { 424 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 425 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 426 | }, 427 | { 428 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 429 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 430 | }, 431 | { 432 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 433 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 434 | }, 435 | { 436 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 437 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 438 | }, 439 | { 440 | ProductGroup = 146834001AC3E56700842450 /* Products */; 441 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 442 | }, 443 | ); 444 | projectRoot = ""; 445 | targets = ( 446 | 13B07F861A680F5B00A75B9A /* QTTT */, 447 | 00E356ED1AD99517003FC87E /* QTTTTests */, 448 | ); 449 | }; 450 | /* End PBXProject section */ 451 | 452 | /* Begin PBXReferenceProxy section */ 453 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 454 | isa = PBXReferenceProxy; 455 | fileType = archive.ar; 456 | path = libRCTActionSheet.a; 457 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 458 | sourceTree = BUILT_PRODUCTS_DIR; 459 | }; 460 | 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */ = { 461 | isa = PBXReferenceProxy; 462 | fileType = archive.ar; 463 | path = libRCTAdSupport.a; 464 | remoteRef = 00C302B31ABCB8E700DB3ED1 /* PBXContainerItemProxy */; 465 | sourceTree = BUILT_PRODUCTS_DIR; 466 | }; 467 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 468 | isa = PBXReferenceProxy; 469 | fileType = archive.ar; 470 | path = libRCTGeolocation.a; 471 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 472 | sourceTree = BUILT_PRODUCTS_DIR; 473 | }; 474 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 475 | isa = PBXReferenceProxy; 476 | fileType = archive.ar; 477 | path = libRCTImage.a; 478 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 479 | sourceTree = BUILT_PRODUCTS_DIR; 480 | }; 481 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 482 | isa = PBXReferenceProxy; 483 | fileType = archive.ar; 484 | path = libRCTNetwork.a; 485 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 486 | sourceTree = BUILT_PRODUCTS_DIR; 487 | }; 488 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 489 | isa = PBXReferenceProxy; 490 | fileType = archive.ar; 491 | path = libRCTVibration.a; 492 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 493 | sourceTree = BUILT_PRODUCTS_DIR; 494 | }; 495 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 496 | isa = PBXReferenceProxy; 497 | fileType = archive.ar; 498 | path = libRCTSettings.a; 499 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 500 | sourceTree = BUILT_PRODUCTS_DIR; 501 | }; 502 | 146834041AC3E56700842450 /* libReact.a */ = { 503 | isa = PBXReferenceProxy; 504 | fileType = archive.ar; 505 | path = libReact.a; 506 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 507 | sourceTree = BUILT_PRODUCTS_DIR; 508 | }; 509 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 510 | isa = PBXReferenceProxy; 511 | fileType = archive.ar; 512 | path = libRCTLinking.a; 513 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 514 | sourceTree = BUILT_PRODUCTS_DIR; 515 | }; 516 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 517 | isa = PBXReferenceProxy; 518 | fileType = archive.ar; 519 | path = libRCTText.a; 520 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 521 | sourceTree = BUILT_PRODUCTS_DIR; 522 | }; 523 | /* End PBXReferenceProxy section */ 524 | 525 | /* Begin PBXResourcesBuildPhase section */ 526 | 00E356EC1AD99517003FC87E /* Resources */ = { 527 | isa = PBXResourcesBuildPhase; 528 | buildActionMask = 2147483647; 529 | files = ( 530 | ); 531 | runOnlyForDeploymentPostprocessing = 0; 532 | }; 533 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 534 | isa = PBXResourcesBuildPhase; 535 | buildActionMask = 2147483647; 536 | files = ( 537 | 008F07F31AC5B25A0029DE68 /* main.jsbundle in Resources */, 538 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 539 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 540 | ED7DA0EF1B05237200B2C654 /* out in Resources */, 541 | ); 542 | runOnlyForDeploymentPostprocessing = 0; 543 | }; 544 | /* End PBXResourcesBuildPhase section */ 545 | 546 | /* Begin PBXShellScriptBuildPhase section */ 547 | 0ADDC83BEA85016065A78BC6 /* Copy Pods Resources */ = { 548 | isa = PBXShellScriptBuildPhase; 549 | buildActionMask = 2147483647; 550 | files = ( 551 | ); 552 | inputPaths = ( 553 | ); 554 | name = "Copy Pods Resources"; 555 | outputPaths = ( 556 | ); 557 | runOnlyForDeploymentPostprocessing = 0; 558 | shellPath = /bin/sh; 559 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; 560 | showEnvVarsInLog = 0; 561 | }; 562 | F08CA5525CB1B091B900BB8E /* Check Pods Manifest.lock */ = { 563 | isa = PBXShellScriptBuildPhase; 564 | buildActionMask = 2147483647; 565 | files = ( 566 | ); 567 | inputPaths = ( 568 | ); 569 | name = "Check Pods Manifest.lock"; 570 | outputPaths = ( 571 | ); 572 | runOnlyForDeploymentPostprocessing = 0; 573 | shellPath = /bin/sh; 574 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 575 | showEnvVarsInLog = 0; 576 | }; 577 | /* End PBXShellScriptBuildPhase section */ 578 | 579 | /* Begin PBXSourcesBuildPhase section */ 580 | 00E356EA1AD99517003FC87E /* Sources */ = { 581 | isa = PBXSourcesBuildPhase; 582 | buildActionMask = 2147483647; 583 | files = ( 584 | 00E356F31AD99517003FC87E /* QTTTTests.m in Sources */, 585 | ); 586 | runOnlyForDeploymentPostprocessing = 0; 587 | }; 588 | 13B07F871A680F5B00A75B9A /* Sources */ = { 589 | isa = PBXSourcesBuildPhase; 590 | buildActionMask = 2147483647; 591 | files = ( 592 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 593 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 594 | ); 595 | runOnlyForDeploymentPostprocessing = 0; 596 | }; 597 | /* End PBXSourcesBuildPhase section */ 598 | 599 | /* Begin PBXTargetDependency section */ 600 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 601 | isa = PBXTargetDependency; 602 | target = 13B07F861A680F5B00A75B9A /* QTTT */; 603 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 604 | }; 605 | /* End PBXTargetDependency section */ 606 | 607 | /* Begin PBXVariantGroup section */ 608 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 609 | isa = PBXVariantGroup; 610 | children = ( 611 | 13B07FB21A68108700A75B9A /* Base */, 612 | ); 613 | name = LaunchScreen.xib; 614 | path = iOS; 615 | sourceTree = ""; 616 | }; 617 | /* End PBXVariantGroup section */ 618 | 619 | /* Begin XCBuildConfiguration section */ 620 | 00E356F61AD99517003FC87E /* Debug */ = { 621 | isa = XCBuildConfiguration; 622 | buildSettings = { 623 | BUNDLE_LOADER = "$(TEST_HOST)"; 624 | FRAMEWORK_SEARCH_PATHS = ( 625 | "$(SDKROOT)/Developer/Library/Frameworks", 626 | "$(inherited)", 627 | ); 628 | GCC_PREPROCESSOR_DEFINITIONS = ( 629 | "DEBUG=1", 630 | "$(inherited)", 631 | ); 632 | INFOPLIST_FILE = QTTTTests/Info.plist; 633 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 634 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 635 | PRODUCT_NAME = "$(TARGET_NAME)"; 636 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/QTTT.app/QTTT"; 637 | }; 638 | name = Debug; 639 | }; 640 | 00E356F71AD99517003FC87E /* Release */ = { 641 | isa = XCBuildConfiguration; 642 | buildSettings = { 643 | BUNDLE_LOADER = "$(TEST_HOST)"; 644 | COPY_PHASE_STRIP = NO; 645 | FRAMEWORK_SEARCH_PATHS = ( 646 | "$(SDKROOT)/Developer/Library/Frameworks", 647 | "$(inherited)", 648 | ); 649 | INFOPLIST_FILE = QTTTTests/Info.plist; 650 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 651 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 652 | PRODUCT_NAME = "$(TARGET_NAME)"; 653 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/QTTT.app/QTTT"; 654 | }; 655 | name = Release; 656 | }; 657 | 13B07F941A680F5B00A75B9A /* Debug */ = { 658 | isa = XCBuildConfiguration; 659 | baseConfigurationReference = 286DA75E7451848C7FE5D3A1 /* Pods.debug.xcconfig */; 660 | buildSettings = { 661 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 662 | HEADER_SEARCH_PATHS = ( 663 | "$(inherited)", 664 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 665 | "$(SRCROOT)/node_modules/react-native/React/**", 666 | ); 667 | INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist"; 668 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 669 | OTHER_LDFLAGS = "${inherited}"; 670 | PRODUCT_NAME = QTTT; 671 | }; 672 | name = Debug; 673 | }; 674 | 13B07F951A680F5B00A75B9A /* Release */ = { 675 | isa = XCBuildConfiguration; 676 | baseConfigurationReference = 4EAB827952A0714272001D00 /* Pods.release.xcconfig */; 677 | buildSettings = { 678 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 679 | HEADER_SEARCH_PATHS = ( 680 | "$(inherited)", 681 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 682 | "$(SRCROOT)/node_modules/react-native/React/**", 683 | ); 684 | INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist"; 685 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 686 | OTHER_LDFLAGS = "${inherited}"; 687 | PRODUCT_NAME = QTTT; 688 | }; 689 | name = Release; 690 | }; 691 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 692 | isa = XCBuildConfiguration; 693 | buildSettings = { 694 | ALWAYS_SEARCH_USER_PATHS = NO; 695 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 696 | CLANG_CXX_LIBRARY = "libc++"; 697 | CLANG_ENABLE_MODULES = YES; 698 | CLANG_ENABLE_OBJC_ARC = YES; 699 | CLANG_WARN_BOOL_CONVERSION = YES; 700 | CLANG_WARN_CONSTANT_CONVERSION = YES; 701 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 702 | CLANG_WARN_EMPTY_BODY = YES; 703 | CLANG_WARN_ENUM_CONVERSION = YES; 704 | CLANG_WARN_INT_CONVERSION = YES; 705 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 706 | CLANG_WARN_UNREACHABLE_CODE = YES; 707 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 708 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 709 | COPY_PHASE_STRIP = NO; 710 | ENABLE_STRICT_OBJC_MSGSEND = YES; 711 | GCC_C_LANGUAGE_STANDARD = gnu99; 712 | GCC_DYNAMIC_NO_PIC = NO; 713 | GCC_OPTIMIZATION_LEVEL = 0; 714 | GCC_PREPROCESSOR_DEFINITIONS = ( 715 | "DEBUG=1", 716 | "$(inherited)", 717 | ); 718 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 719 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 720 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 721 | GCC_WARN_UNDECLARED_SELECTOR = YES; 722 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 723 | GCC_WARN_UNUSED_FUNCTION = YES; 724 | GCC_WARN_UNUSED_VARIABLE = YES; 725 | HEADER_SEARCH_PATHS = ( 726 | "$(inherited)", 727 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 728 | "$(SRCROOT)/node_modules/react-native/React/**", 729 | ); 730 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 731 | MTL_ENABLE_DEBUG_INFO = YES; 732 | ONLY_ACTIVE_ARCH = YES; 733 | SDKROOT = iphoneos; 734 | }; 735 | name = Debug; 736 | }; 737 | 83CBBA211A601CBA00E9B192 /* Release */ = { 738 | isa = XCBuildConfiguration; 739 | buildSettings = { 740 | ALWAYS_SEARCH_USER_PATHS = NO; 741 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 742 | CLANG_CXX_LIBRARY = "libc++"; 743 | CLANG_ENABLE_MODULES = YES; 744 | CLANG_ENABLE_OBJC_ARC = YES; 745 | CLANG_WARN_BOOL_CONVERSION = YES; 746 | CLANG_WARN_CONSTANT_CONVERSION = YES; 747 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 748 | CLANG_WARN_EMPTY_BODY = YES; 749 | CLANG_WARN_ENUM_CONVERSION = YES; 750 | CLANG_WARN_INT_CONVERSION = YES; 751 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 752 | CLANG_WARN_UNREACHABLE_CODE = YES; 753 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 754 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 755 | COPY_PHASE_STRIP = YES; 756 | ENABLE_NS_ASSERTIONS = NO; 757 | ENABLE_STRICT_OBJC_MSGSEND = YES; 758 | GCC_C_LANGUAGE_STANDARD = gnu99; 759 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 760 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 761 | GCC_WARN_UNDECLARED_SELECTOR = YES; 762 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 763 | GCC_WARN_UNUSED_FUNCTION = YES; 764 | GCC_WARN_UNUSED_VARIABLE = YES; 765 | HEADER_SEARCH_PATHS = ( 766 | "$(inherited)", 767 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 768 | "$(SRCROOT)/node_modules/react-native/React/**", 769 | ); 770 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 771 | MTL_ENABLE_DEBUG_INFO = NO; 772 | SDKROOT = iphoneos; 773 | VALIDATE_PRODUCT = YES; 774 | }; 775 | name = Release; 776 | }; 777 | /* End XCBuildConfiguration section */ 778 | 779 | /* Begin XCConfigurationList section */ 780 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "QTTTTests" */ = { 781 | isa = XCConfigurationList; 782 | buildConfigurations = ( 783 | 00E356F61AD99517003FC87E /* Debug */, 784 | 00E356F71AD99517003FC87E /* Release */, 785 | ); 786 | defaultConfigurationIsVisible = 0; 787 | defaultConfigurationName = Release; 788 | }; 789 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "QTTT" */ = { 790 | isa = XCConfigurationList; 791 | buildConfigurations = ( 792 | 13B07F941A680F5B00A75B9A /* Debug */, 793 | 13B07F951A680F5B00A75B9A /* Release */, 794 | ); 795 | defaultConfigurationIsVisible = 0; 796 | defaultConfigurationName = Release; 797 | }; 798 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "QTTT" */ = { 799 | isa = XCConfigurationList; 800 | buildConfigurations = ( 801 | 83CBBA201A601CBA00E9B192 /* Debug */, 802 | 83CBBA211A601CBA00E9B192 /* Release */, 803 | ); 804 | defaultConfigurationIsVisible = 0; 805 | defaultConfigurationName = Release; 806 | }; 807 | /* End XCConfigurationList section */ 808 | }; 809 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 810 | } 811 | -------------------------------------------------------------------------------- /iOS/QTTT/QTTT.xcodeproj/xcshareddata/xcschemes/QTTT.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /iOS/QTTT/QTTTTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /iOS/QTTT/QTTTTests/QTTTTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import "RCTAssert.h" 14 | #import "RCTRedBox.h" 15 | #import "RCTRootView.h" 16 | 17 | #define TIMEOUT_SECONDS 240 18 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 19 | 20 | @interface QTTTTests : XCTestCase 21 | 22 | @end 23 | 24 | @implementation QTTTTests 25 | 26 | 27 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 28 | { 29 | if (test(view)) { 30 | return YES; 31 | } 32 | for (UIView *subview in [view subviews]) { 33 | if ([self findSubviewInView:subview matching:test]) { 34 | return YES; 35 | } 36 | } 37 | return NO; 38 | } 39 | 40 | - (void)testRendersWelcomeScreen { 41 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 42 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 43 | BOOL foundElement = NO; 44 | NSString *redboxError = nil; 45 | 46 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 47 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 48 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 49 | 50 | redboxError = [[RCTRedBox sharedInstance] currentErrorMessage]; 51 | 52 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 53 | if ([view respondsToSelector:@selector(attributedText)]) { 54 | NSString *text = [(id)view attributedText].string; 55 | if ([text isEqualToString:TEXT_TO_LOOK_FOR]) { 56 | return YES; 57 | } 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 64 | XCTAssertTrue(foundElement, @"Cound't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /iOS/QTTT/iOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /iOS/QTTT/iOS/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import "RCTRootView.h" 13 | #import "RCTEventDispatcher.h" 14 | #import "ABYServer.h" 15 | #import "ABYContextManager.h" 16 | #import "BTHContextExecutor.h" 17 | 18 | @interface AppDelegate() 19 | 20 | @property (strong, nonatomic) ABYServer* replServer; 21 | @property (strong, nonatomic) ABYContextManager* contextManager; 22 | @property (strong, nonatomic) NSURL* compilerOutputDirectory; 23 | 24 | @end 25 | 26 | @implementation AppDelegate 27 | 28 | -(void)requireAppNamespaces:(JSContext*)context 29 | { 30 | [context evaluateScript:@"goog.require('qttt.ui.om_ios');"]; 31 | } 32 | 33 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 34 | { 35 | NSURL *jsCodeLocation; 36 | 37 | /** 38 | * Loading JavaScript code - uncomment the one you want. 39 | * 40 | * OPTION 1 41 | * Load from development server. Start the server from the repository root: 42 | * 43 | * $ npm start 44 | * 45 | * To run on device, change `localhost` to the IP address of your computer 46 | * (you can get this by typing `ifconfig` into the terminal and selecting the 47 | * `inet` value under `en0:`) and make sure your computer and iOS device are 48 | * on the same Wi-Fi network. 49 | */ 50 | 51 | //jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"]; 52 | 53 | /** 54 | * OPTION 2 55 | * Load from pre-bundled file on disk. To re-generate the static bundle 56 | * from the root of your project directory, run 57 | * 58 | * $ react-native bundle --minify 59 | * 60 | * see http://facebook.github.io/react-native/docs/runningondevice.html 61 | */ 62 | 63 | jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 64 | 65 | //RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 66 | // moduleName:@"QTTT" 67 | // launchOptions:launchOptions]; 68 | 69 | // Set up the compiler output directory 70 | self.compilerOutputDirectory = [[self privateDocumentsDirectory] URLByAppendingPathComponent:@"cljs-out"]; 71 | 72 | // Set up our context 73 | self.contextManager = [[ABYContextManager alloc] initWithContext:JSGlobalContextCreate(NULL) 74 | compilerOutputDirectory:self.compilerOutputDirectory]; 75 | 76 | 77 | // Inject our context into the BTHContextExecutor (it sets the static variable) 78 | [BTHContextExecutor setContext:self.contextManager.context]; 79 | 80 | // Set React Native to intstantiate our BTHContextExecutor, doing this by slipping the executorClass 81 | // assignement between alloc and initWithBundleURL:moduleProvider:launchOptions: 82 | RCTBridge *bridge = [RCTBridge alloc]; 83 | bridge.executorClass = [BTHContextExecutor class]; 84 | bridge = [bridge initWithBundleURL:jsCodeLocation 85 | moduleProvider:nil 86 | launchOptions:launchOptions]; 87 | 88 | // Set up a root view using the bridge defined above 89 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 90 | moduleName:@"QTTT"]; 91 | 92 | [[NSNotificationCenter defaultCenter] addObserver:self 93 | selector:@selector(contentDidAppear) 94 | name:RCTContentDidAppearNotification 95 | object:rootView]; 96 | 97 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 98 | UIViewController *rootViewController = [[UIViewController alloc] init]; 99 | rootViewController.view = rootView; 100 | self.window.rootViewController = rootViewController; 101 | [self.window makeKeyAndVisible]; 102 | 103 | return YES; 104 | } 105 | 106 | - (void)contentDidAppear 107 | { 108 | // Ensure private documents directory exists 109 | [self createDirectoriesUpTo:[self privateDocumentsDirectory]]; 110 | 111 | // Copy resources from bundle "out" to compilerOutputDirectory 112 | 113 | NSFileManager* fileManager = [NSFileManager defaultManager]; 114 | fileManager.delegate = self; 115 | 116 | // First blow away old compiler output directory 117 | [fileManager removeItemAtPath:self.compilerOutputDirectory.path error:nil]; 118 | 119 | // Copy files from bundle to compiler output driectory 120 | NSString *outPath = [[NSBundle mainBundle] pathForResource:@"out" ofType:nil]; 121 | [fileManager copyItemAtPath:outPath toPath:self.compilerOutputDirectory.path error:nil]; 122 | 123 | [self.contextManager setUpAmblyImportScript]; 124 | 125 | NSString* mainJsFilePath = [[self.compilerOutputDirectory URLByAppendingPathComponent:@"main" isDirectory:NO] URLByAppendingPathExtension:@"js"].path; 126 | 127 | NSURL* googDirectory = [self.compilerOutputDirectory URLByAppendingPathComponent:@"goog"]; 128 | 129 | [self.contextManager bootstrapWithDepsFilePath:mainJsFilePath 130 | googBasePath:[[googDirectory URLByAppendingPathComponent:@"base" isDirectory:NO] URLByAppendingPathExtension:@"js"].path]; 131 | 132 | JSContext* context = [JSContext contextWithJSGlobalContextRef:self.contextManager.context]; 133 | [self requireAppNamespaces:context]; 134 | 135 | JSValue* initFn = [self getValue:@"main" inNamespace:@"qttt.ui.om-ios" fromContext:context]; 136 | NSAssert(!initFn.isUndefined, @"Could not find the app init function"); 137 | [initFn callWithArguments:@[]]; 138 | 139 | // Send a nonsense UI event to get the UI going 140 | RCTRootView* rootView = (RCTRootView*)self.window.rootViewController.view; 141 | [rootView.bridge.modules[@"RCTEventDispatcher"] sendInputEventWithName:@"" body:@{@"target": @1}]; 142 | 143 | // Now that React Native has been initialized, fire up our REPL server 144 | self.replServer = [[ABYServer alloc] initWithContext:self.contextManager.context 145 | compilerOutputDirectory:self.compilerOutputDirectory]; 146 | BOOL successful = [self.replServer startListening]; 147 | if (!successful) { 148 | NSLog(@"Failed to start REPL server."); 149 | } 150 | 151 | 152 | } 153 | 154 | - (NSURL *)privateDocumentsDirectory 155 | { 156 | NSURL *libraryDirectory = [[[NSFileManager defaultManager] URLsForDirectory:NSLibraryDirectory inDomains:NSUserDomainMask] lastObject]; 157 | 158 | return [libraryDirectory URLByAppendingPathComponent:@"Private Documents"]; 159 | } 160 | 161 | - (void)createDirectoriesUpTo:(NSURL*)directory 162 | { 163 | if (![[NSFileManager defaultManager] fileExistsAtPath:[directory path]]) { 164 | NSError *error = nil; 165 | 166 | if (![[NSFileManager defaultManager] createDirectoryAtPath:[directory path] 167 | withIntermediateDirectories:YES 168 | attributes:nil 169 | error:&error]) { 170 | NSLog(@"Can't create directory %@ [%@]", [directory path], error); 171 | abort(); 172 | } 173 | } 174 | } 175 | 176 | - (JSValue*)getValue:(NSString*)name inNamespace:(NSString*)namespace fromContext:(JSContext*)context 177 | { 178 | JSValue* namespaceValue = nil; 179 | for (NSString* namespaceElement in [namespace componentsSeparatedByString: @"."]) { 180 | if (namespaceValue) { 181 | namespaceValue = namespaceValue[[self munge:namespaceElement]]; 182 | } else { 183 | namespaceValue = context[[self munge:namespaceElement]]; 184 | } 185 | } 186 | 187 | return namespaceValue[[self munge:name]]; 188 | } 189 | 190 | - (NSString*)munge:(NSString*)s 191 | { 192 | return [[[s stringByReplacingOccurrencesOfString:@"-" withString:@"_"] 193 | stringByReplacingOccurrencesOfString:@"!" withString:@"_BANG_"] 194 | stringByReplacingOccurrencesOfString:@"?" withString:@"_QMARK_"]; 195 | } 196 | 197 | @end 198 | -------------------------------------------------------------------------------- /iOS/QTTT/iOS/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /iOS/QTTT/iOS/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /iOS/QTTT/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /iOS/QTTT/iOS/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /iOS/QTTT/index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | */ 5 | 'use strict'; 6 | 7 | var React = require('react-native'); 8 | var { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View, 13 | } = React; 14 | 15 | var QTTT = React.createClass({ 16 | render: function() { 17 | return ( 18 | 19 | 20 | ); 21 | } 22 | }); 23 | 24 | var styles = StyleSheet.create({ 25 | container: { 26 | flex: 1, 27 | justifyContent: 'center', 28 | alignItems: 'center', 29 | backgroundColor: '#F5FCFF', 30 | }, 31 | welcome: { 32 | fontSize: 20, 33 | textAlign: 'center', 34 | margin: 10, 35 | }, 36 | instructions: { 37 | textAlign: 'center', 38 | color: '#333333', 39 | marginBottom: 5, 40 | }, 41 | }); 42 | 43 | AppRegistry.registerComponent('QTTT', () => QTTT); 44 | -------------------------------------------------------------------------------- /iOS/QTTT/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "QTTT", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node_modules/react-native/packager/packager.sh" 7 | }, 8 | "dependencies": { 9 | "react-native": "^0.6.0" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /project.clj: -------------------------------------------------------------------------------- 1 | (defproject qttt "0.1.0-SNAPSHOT" 2 | :description "Quantum Tic Tac Toe" 3 | :dependencies [[org.clojure/clojure "1.7.0-beta1"] 4 | [org.clojure/clojurescript "0.0-3196"] 5 | [reagent "0.5.0" :exclusions [cljsjs/react]] 6 | [org.omcljs/om "0.8.8":exclusions [cljsjs/react]] 7 | [org.omcljs/ambly "0.3.0"] 8 | [cljsjs/react-with-addons "0.12.2-7"] 9 | [quiescent "0.2.0-alpha1"] 10 | [com.cognitect/contextual "0.1.0"]] 11 | :plugins [[lein-cljsbuild "1.0.5"]] 12 | :clean-targets ^{:protect false} [:target-path :compile-path "resources/public/gen"] 13 | :cljsbuild {:builds {:dev {:source-paths ["src"] 14 | :compiler {:output-to "resources/public/gen/dev/main.js" 15 | :output-dir "resources/public/gen/dev" 16 | :asset-path "gen/dev" 17 | :main qttt.ui 18 | :optimizations :none 19 | :source-map true 20 | :foreign-libs [{:file-min "cljsjs/development/react-with-addons.inc.js", 21 | :file "cljsjs/development/react-with-addons.inc.js", 22 | :provides ["cljsjs.react"]}]}} 23 | :ios {:source-paths ["src"] 24 | :compiler {:output-to "target/out/main.js" 25 | :output-dir "target/out" 26 | :optimizations :none}}}}) 27 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Quantum Tic Tac Toe 2 | 3 | For rules on the game itself, see the 4 | [Wikipedia article](http://en.wikipedia.org/wiki/Quantum_tic-tac-toe) 5 | or the original 6 | [paper](http://qttt.googlecode.com/files/QT3-AJP%2010-20-06.pdf) 7 | published in the American Journal of Physics. 8 | 9 | This implementation is written in ClojureScript and ReactJS, and has 10 | three front-ends written using different UI libraries: 11 | 12 | - [Om](https://github.com/omcljs/om) 13 | - [Reagent](http://reagent-project.github.io) 14 | - [Quiescent](https://github.com/levand/quiescent) 15 | 16 | And, additionally in this fork, a port to React Native, based on the Om binding. (See the section at the bottom.) 17 | 18 | ## Running the Program 19 | 20 | Note: QTTT depends on a library, `com.cognitect/contextual` that may not yet 21 | be in public repositories. If not, you can install the dependency locally by cloning 22 | `https://github.com/levand/contextual.git` and running `lein install` in that repository. 23 | 24 | First, compile the ClojureScript: 25 | 26 | `lein cljsbuild` 27 | 28 | Then, visit the HTML page at `resources/public/dev.html`. 29 | 30 | You will need to select which UI library to view by passing a `lib` 31 | URL parameter. For example: 32 | 33 | - `dev.html?lib=om` 34 | - `dev.html?lib=reagent` 35 | - `dev.html?lib=quiescent` 36 | 37 | Play proceeds in turns. There is no win condition detection, yet, but 38 | all the other rules of the game are in place. 39 | 40 | ## Future Ideas 41 | 42 | Ideas for future expansion include: 43 | 44 | - Win condition detection 45 | - Network multiplayer 46 | - AI 47 | 48 | # React Native Port 49 | 50 | 1. From the top level run `lein cljsbuild once ios`. 51 | 2. `cd iOS/QTTT` 52 | 3. `npm install` 53 | 4. `pod install` 54 | 5. `open QTTT.xcworkspace` 55 | 6. Run on a simulator (iPhone 6 works great) 56 | 57 | ## REPL 58 | 59 | If you'd like to connect to the iOS app using a REPL, run `script/ambly-repl`. 60 | 61 | ## Demo 62 | 63 | Watch a quick demo of it running on iOS: 64 | 65 | [![QTTT](http://img.youtube.com/vi/7HtOTzllwTY/0.jpg)](https://www.youtube.com/watch?v=7HtOTzllwTY "Quantum Tic Tac Toe React Native Port") 66 | -------------------------------------------------------------------------------- /resources/public/dev.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Quantum Tic Tac Toe 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /resources/public/font-awesome/css/font-awesome.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | /* FONT PATH 6 | * -------------------------- */ 7 | @font-face { 8 | font-family: 'FontAwesome'; 9 | src: url('../fonts/fontawesome-webfont.eot?v=4.3.0'); 10 | src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg'); 11 | font-weight: normal; 12 | font-style: normal; 13 | } 14 | .fa { 15 | display: inline-block; 16 | font: normal normal normal 14px/1 FontAwesome; 17 | font-size: inherit; 18 | text-rendering: auto; 19 | -webkit-font-smoothing: antialiased; 20 | -moz-osx-font-smoothing: grayscale; 21 | transform: translate(0, 0); 22 | } 23 | /* makes the font 33% larger relative to the icon container */ 24 | .fa-lg { 25 | font-size: 1.33333333em; 26 | line-height: 0.75em; 27 | vertical-align: -15%; 28 | } 29 | .fa-2x { 30 | font-size: 2em; 31 | } 32 | .fa-3x { 33 | font-size: 3em; 34 | } 35 | .fa-4x { 36 | font-size: 4em; 37 | } 38 | .fa-5x { 39 | font-size: 5em; 40 | } 41 | .fa-fw { 42 | width: 1.28571429em; 43 | text-align: center; 44 | } 45 | .fa-ul { 46 | padding-left: 0; 47 | margin-left: 2.14285714em; 48 | list-style-type: none; 49 | } 50 | .fa-ul > li { 51 | position: relative; 52 | } 53 | .fa-li { 54 | position: absolute; 55 | left: -2.14285714em; 56 | width: 2.14285714em; 57 | top: 0.14285714em; 58 | text-align: center; 59 | } 60 | .fa-li.fa-lg { 61 | left: -1.85714286em; 62 | } 63 | .fa-border { 64 | padding: .2em .25em .15em; 65 | border: solid 0.08em #eeeeee; 66 | border-radius: .1em; 67 | } 68 | .pull-right { 69 | float: right; 70 | } 71 | .pull-left { 72 | float: left; 73 | } 74 | .fa.pull-left { 75 | margin-right: .3em; 76 | } 77 | .fa.pull-right { 78 | margin-left: .3em; 79 | } 80 | .fa-spin { 81 | -webkit-animation: fa-spin 2s infinite linear; 82 | animation: fa-spin 2s infinite linear; 83 | } 84 | .fa-pulse { 85 | -webkit-animation: fa-spin 1s infinite steps(8); 86 | animation: fa-spin 1s infinite steps(8); 87 | } 88 | @-webkit-keyframes fa-spin { 89 | 0% { 90 | -webkit-transform: rotate(0deg); 91 | transform: rotate(0deg); 92 | } 93 | 100% { 94 | -webkit-transform: rotate(359deg); 95 | transform: rotate(359deg); 96 | } 97 | } 98 | @keyframes fa-spin { 99 | 0% { 100 | -webkit-transform: rotate(0deg); 101 | transform: rotate(0deg); 102 | } 103 | 100% { 104 | -webkit-transform: rotate(359deg); 105 | transform: rotate(359deg); 106 | } 107 | } 108 | .fa-rotate-90 { 109 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); 110 | -webkit-transform: rotate(90deg); 111 | -ms-transform: rotate(90deg); 112 | transform: rotate(90deg); 113 | } 114 | .fa-rotate-180 { 115 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); 116 | -webkit-transform: rotate(180deg); 117 | -ms-transform: rotate(180deg); 118 | transform: rotate(180deg); 119 | } 120 | .fa-rotate-270 { 121 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); 122 | -webkit-transform: rotate(270deg); 123 | -ms-transform: rotate(270deg); 124 | transform: rotate(270deg); 125 | } 126 | .fa-flip-horizontal { 127 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1); 128 | -webkit-transform: scale(-1, 1); 129 | -ms-transform: scale(-1, 1); 130 | transform: scale(-1, 1); 131 | } 132 | .fa-flip-vertical { 133 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1); 134 | -webkit-transform: scale(1, -1); 135 | -ms-transform: scale(1, -1); 136 | transform: scale(1, -1); 137 | } 138 | :root .fa-rotate-90, 139 | :root .fa-rotate-180, 140 | :root .fa-rotate-270, 141 | :root .fa-flip-horizontal, 142 | :root .fa-flip-vertical { 143 | filter: none; 144 | } 145 | .fa-stack { 146 | position: relative; 147 | display: inline-block; 148 | width: 2em; 149 | height: 2em; 150 | line-height: 2em; 151 | vertical-align: middle; 152 | } 153 | .fa-stack-1x, 154 | .fa-stack-2x { 155 | position: absolute; 156 | left: 0; 157 | width: 100%; 158 | text-align: center; 159 | } 160 | .fa-stack-1x { 161 | line-height: inherit; 162 | } 163 | .fa-stack-2x { 164 | font-size: 2em; 165 | } 166 | .fa-inverse { 167 | color: #ffffff; 168 | } 169 | /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen 170 | readers do not read off random characters that represent icons */ 171 | .fa-glass:before { 172 | content: "\f000"; 173 | } 174 | .fa-music:before { 175 | content: "\f001"; 176 | } 177 | .fa-search:before { 178 | content: "\f002"; 179 | } 180 | .fa-envelope-o:before { 181 | content: "\f003"; 182 | } 183 | .fa-heart:before { 184 | content: "\f004"; 185 | } 186 | .fa-star:before { 187 | content: "\f005"; 188 | } 189 | .fa-star-o:before { 190 | content: "\f006"; 191 | } 192 | .fa-user:before { 193 | content: "\f007"; 194 | } 195 | .fa-film:before { 196 | content: "\f008"; 197 | } 198 | .fa-th-large:before { 199 | content: "\f009"; 200 | } 201 | .fa-th:before { 202 | content: "\f00a"; 203 | } 204 | .fa-th-list:before { 205 | content: "\f00b"; 206 | } 207 | .fa-check:before { 208 | content: "\f00c"; 209 | } 210 | .fa-remove:before, 211 | .fa-close:before, 212 | .fa-times:before { 213 | content: "\f00d"; 214 | } 215 | .fa-search-plus:before { 216 | content: "\f00e"; 217 | } 218 | .fa-search-minus:before { 219 | content: "\f010"; 220 | } 221 | .fa-power-off:before { 222 | content: "\f011"; 223 | } 224 | .fa-signal:before { 225 | content: "\f012"; 226 | } 227 | .fa-gear:before, 228 | .fa-cog:before { 229 | content: "\f013"; 230 | } 231 | .fa-trash-o:before { 232 | content: "\f014"; 233 | } 234 | .fa-home:before { 235 | content: "\f015"; 236 | } 237 | .fa-file-o:before { 238 | content: "\f016"; 239 | } 240 | .fa-clock-o:before { 241 | content: "\f017"; 242 | } 243 | .fa-road:before { 244 | content: "\f018"; 245 | } 246 | .fa-download:before { 247 | content: "\f019"; 248 | } 249 | .fa-arrow-circle-o-down:before { 250 | content: "\f01a"; 251 | } 252 | .fa-arrow-circle-o-up:before { 253 | content: "\f01b"; 254 | } 255 | .fa-inbox:before { 256 | content: "\f01c"; 257 | } 258 | .fa-play-circle-o:before { 259 | content: "\f01d"; 260 | } 261 | .fa-rotate-right:before, 262 | .fa-repeat:before { 263 | content: "\f01e"; 264 | } 265 | .fa-refresh:before { 266 | content: "\f021"; 267 | } 268 | .fa-list-alt:before { 269 | content: "\f022"; 270 | } 271 | .fa-lock:before { 272 | content: "\f023"; 273 | } 274 | .fa-flag:before { 275 | content: "\f024"; 276 | } 277 | .fa-headphones:before { 278 | content: "\f025"; 279 | } 280 | .fa-volume-off:before { 281 | content: "\f026"; 282 | } 283 | .fa-volume-down:before { 284 | content: "\f027"; 285 | } 286 | .fa-volume-up:before { 287 | content: "\f028"; 288 | } 289 | .fa-qrcode:before { 290 | content: "\f029"; 291 | } 292 | .fa-barcode:before { 293 | content: "\f02a"; 294 | } 295 | .fa-tag:before { 296 | content: "\f02b"; 297 | } 298 | .fa-tags:before { 299 | content: "\f02c"; 300 | } 301 | .fa-book:before { 302 | content: "\f02d"; 303 | } 304 | .fa-bookmark:before { 305 | content: "\f02e"; 306 | } 307 | .fa-print:before { 308 | content: "\f02f"; 309 | } 310 | .fa-camera:before { 311 | content: "\f030"; 312 | } 313 | .fa-font:before { 314 | content: "\f031"; 315 | } 316 | .fa-bold:before { 317 | content: "\f032"; 318 | } 319 | .fa-italic:before { 320 | content: "\f033"; 321 | } 322 | .fa-text-height:before { 323 | content: "\f034"; 324 | } 325 | .fa-text-width:before { 326 | content: "\f035"; 327 | } 328 | .fa-align-left:before { 329 | content: "\f036"; 330 | } 331 | .fa-align-center:before { 332 | content: "\f037"; 333 | } 334 | .fa-align-right:before { 335 | content: "\f038"; 336 | } 337 | .fa-align-justify:before { 338 | content: "\f039"; 339 | } 340 | .fa-list:before { 341 | content: "\f03a"; 342 | } 343 | .fa-dedent:before, 344 | .fa-outdent:before { 345 | content: "\f03b"; 346 | } 347 | .fa-indent:before { 348 | content: "\f03c"; 349 | } 350 | .fa-video-camera:before { 351 | content: "\f03d"; 352 | } 353 | .fa-photo:before, 354 | .fa-image:before, 355 | .fa-picture-o:before { 356 | content: "\f03e"; 357 | } 358 | .fa-pencil:before { 359 | content: "\f040"; 360 | } 361 | .fa-map-marker:before { 362 | content: "\f041"; 363 | } 364 | .fa-adjust:before { 365 | content: "\f042"; 366 | } 367 | .fa-tint:before { 368 | content: "\f043"; 369 | } 370 | .fa-edit:before, 371 | .fa-pencil-square-o:before { 372 | content: "\f044"; 373 | } 374 | .fa-share-square-o:before { 375 | content: "\f045"; 376 | } 377 | .fa-check-square-o:before { 378 | content: "\f046"; 379 | } 380 | .fa-arrows:before { 381 | content: "\f047"; 382 | } 383 | .fa-step-backward:before { 384 | content: "\f048"; 385 | } 386 | .fa-fast-backward:before { 387 | content: "\f049"; 388 | } 389 | .fa-backward:before { 390 | content: "\f04a"; 391 | } 392 | .fa-play:before { 393 | content: "\f04b"; 394 | } 395 | .fa-pause:before { 396 | content: "\f04c"; 397 | } 398 | .fa-stop:before { 399 | content: "\f04d"; 400 | } 401 | .fa-forward:before { 402 | content: "\f04e"; 403 | } 404 | .fa-fast-forward:before { 405 | content: "\f050"; 406 | } 407 | .fa-step-forward:before { 408 | content: "\f051"; 409 | } 410 | .fa-eject:before { 411 | content: "\f052"; 412 | } 413 | .fa-chevron-left:before { 414 | content: "\f053"; 415 | } 416 | .fa-chevron-right:before { 417 | content: "\f054"; 418 | } 419 | .fa-plus-circle:before { 420 | content: "\f055"; 421 | } 422 | .fa-minus-circle:before { 423 | content: "\f056"; 424 | } 425 | .fa-times-circle:before { 426 | content: "\f057"; 427 | } 428 | .fa-check-circle:before { 429 | content: "\f058"; 430 | } 431 | .fa-question-circle:before { 432 | content: "\f059"; 433 | } 434 | .fa-info-circle:before { 435 | content: "\f05a"; 436 | } 437 | .fa-crosshairs:before { 438 | content: "\f05b"; 439 | } 440 | .fa-times-circle-o:before { 441 | content: "\f05c"; 442 | } 443 | .fa-check-circle-o:before { 444 | content: "\f05d"; 445 | } 446 | .fa-ban:before { 447 | content: "\f05e"; 448 | } 449 | .fa-arrow-left:before { 450 | content: "\f060"; 451 | } 452 | .fa-arrow-right:before { 453 | content: "\f061"; 454 | } 455 | .fa-arrow-up:before { 456 | content: "\f062"; 457 | } 458 | .fa-arrow-down:before { 459 | content: "\f063"; 460 | } 461 | .fa-mail-forward:before, 462 | .fa-share:before { 463 | content: "\f064"; 464 | } 465 | .fa-expand:before { 466 | content: "\f065"; 467 | } 468 | .fa-compress:before { 469 | content: "\f066"; 470 | } 471 | .fa-plus:before { 472 | content: "\f067"; 473 | } 474 | .fa-minus:before { 475 | content: "\f068"; 476 | } 477 | .fa-asterisk:before { 478 | content: "\f069"; 479 | } 480 | .fa-exclamation-circle:before { 481 | content: "\f06a"; 482 | } 483 | .fa-gift:before { 484 | content: "\f06b"; 485 | } 486 | .fa-leaf:before { 487 | content: "\f06c"; 488 | } 489 | .fa-fire:before { 490 | content: "\f06d"; 491 | } 492 | .fa-eye:before { 493 | content: "\f06e"; 494 | } 495 | .fa-eye-slash:before { 496 | content: "\f070"; 497 | } 498 | .fa-warning:before, 499 | .fa-exclamation-triangle:before { 500 | content: "\f071"; 501 | } 502 | .fa-plane:before { 503 | content: "\f072"; 504 | } 505 | .fa-calendar:before { 506 | content: "\f073"; 507 | } 508 | .fa-random:before { 509 | content: "\f074"; 510 | } 511 | .fa-comment:before { 512 | content: "\f075"; 513 | } 514 | .fa-magnet:before { 515 | content: "\f076"; 516 | } 517 | .fa-chevron-up:before { 518 | content: "\f077"; 519 | } 520 | .fa-chevron-down:before { 521 | content: "\f078"; 522 | } 523 | .fa-retweet:before { 524 | content: "\f079"; 525 | } 526 | .fa-shopping-cart:before { 527 | content: "\f07a"; 528 | } 529 | .fa-folder:before { 530 | content: "\f07b"; 531 | } 532 | .fa-folder-open:before { 533 | content: "\f07c"; 534 | } 535 | .fa-arrows-v:before { 536 | content: "\f07d"; 537 | } 538 | .fa-arrows-h:before { 539 | content: "\f07e"; 540 | } 541 | .fa-bar-chart-o:before, 542 | .fa-bar-chart:before { 543 | content: "\f080"; 544 | } 545 | .fa-twitter-square:before { 546 | content: "\f081"; 547 | } 548 | .fa-facebook-square:before { 549 | content: "\f082"; 550 | } 551 | .fa-camera-retro:before { 552 | content: "\f083"; 553 | } 554 | .fa-key:before { 555 | content: "\f084"; 556 | } 557 | .fa-gears:before, 558 | .fa-cogs:before { 559 | content: "\f085"; 560 | } 561 | .fa-comments:before { 562 | content: "\f086"; 563 | } 564 | .fa-thumbs-o-up:before { 565 | content: "\f087"; 566 | } 567 | .fa-thumbs-o-down:before { 568 | content: "\f088"; 569 | } 570 | .fa-star-half:before { 571 | content: "\f089"; 572 | } 573 | .fa-heart-o:before { 574 | content: "\f08a"; 575 | } 576 | .fa-sign-out:before { 577 | content: "\f08b"; 578 | } 579 | .fa-linkedin-square:before { 580 | content: "\f08c"; 581 | } 582 | .fa-thumb-tack:before { 583 | content: "\f08d"; 584 | } 585 | .fa-external-link:before { 586 | content: "\f08e"; 587 | } 588 | .fa-sign-in:before { 589 | content: "\f090"; 590 | } 591 | .fa-trophy:before { 592 | content: "\f091"; 593 | } 594 | .fa-github-square:before { 595 | content: "\f092"; 596 | } 597 | .fa-upload:before { 598 | content: "\f093"; 599 | } 600 | .fa-lemon-o:before { 601 | content: "\f094"; 602 | } 603 | .fa-phone:before { 604 | content: "\f095"; 605 | } 606 | .fa-square-o:before { 607 | content: "\f096"; 608 | } 609 | .fa-bookmark-o:before { 610 | content: "\f097"; 611 | } 612 | .fa-phone-square:before { 613 | content: "\f098"; 614 | } 615 | .fa-twitter:before { 616 | content: "\f099"; 617 | } 618 | .fa-facebook-f:before, 619 | .fa-facebook:before { 620 | content: "\f09a"; 621 | } 622 | .fa-github:before { 623 | content: "\f09b"; 624 | } 625 | .fa-unlock:before { 626 | content: "\f09c"; 627 | } 628 | .fa-credit-card:before { 629 | content: "\f09d"; 630 | } 631 | .fa-rss:before { 632 | content: "\f09e"; 633 | } 634 | .fa-hdd-o:before { 635 | content: "\f0a0"; 636 | } 637 | .fa-bullhorn:before { 638 | content: "\f0a1"; 639 | } 640 | .fa-bell:before { 641 | content: "\f0f3"; 642 | } 643 | .fa-certificate:before { 644 | content: "\f0a3"; 645 | } 646 | .fa-hand-o-right:before { 647 | content: "\f0a4"; 648 | } 649 | .fa-hand-o-left:before { 650 | content: "\f0a5"; 651 | } 652 | .fa-hand-o-up:before { 653 | content: "\f0a6"; 654 | } 655 | .fa-hand-o-down:before { 656 | content: "\f0a7"; 657 | } 658 | .fa-arrow-circle-left:before { 659 | content: "\f0a8"; 660 | } 661 | .fa-arrow-circle-right:before { 662 | content: "\f0a9"; 663 | } 664 | .fa-arrow-circle-up:before { 665 | content: "\f0aa"; 666 | } 667 | .fa-arrow-circle-down:before { 668 | content: "\f0ab"; 669 | } 670 | .fa-globe:before { 671 | content: "\f0ac"; 672 | } 673 | .fa-wrench:before { 674 | content: "\f0ad"; 675 | } 676 | .fa-tasks:before { 677 | content: "\f0ae"; 678 | } 679 | .fa-filter:before { 680 | content: "\f0b0"; 681 | } 682 | .fa-briefcase:before { 683 | content: "\f0b1"; 684 | } 685 | .fa-arrows-alt:before { 686 | content: "\f0b2"; 687 | } 688 | .fa-group:before, 689 | .fa-users:before { 690 | content: "\f0c0"; 691 | } 692 | .fa-chain:before, 693 | .fa-link:before { 694 | content: "\f0c1"; 695 | } 696 | .fa-cloud:before { 697 | content: "\f0c2"; 698 | } 699 | .fa-flask:before { 700 | content: "\f0c3"; 701 | } 702 | .fa-cut:before, 703 | .fa-scissors:before { 704 | content: "\f0c4"; 705 | } 706 | .fa-copy:before, 707 | .fa-files-o:before { 708 | content: "\f0c5"; 709 | } 710 | .fa-paperclip:before { 711 | content: "\f0c6"; 712 | } 713 | .fa-save:before, 714 | .fa-floppy-o:before { 715 | content: "\f0c7"; 716 | } 717 | .fa-square:before { 718 | content: "\f0c8"; 719 | } 720 | .fa-navicon:before, 721 | .fa-reorder:before, 722 | .fa-bars:before { 723 | content: "\f0c9"; 724 | } 725 | .fa-list-ul:before { 726 | content: "\f0ca"; 727 | } 728 | .fa-list-ol:before { 729 | content: "\f0cb"; 730 | } 731 | .fa-strikethrough:before { 732 | content: "\f0cc"; 733 | } 734 | .fa-underline:before { 735 | content: "\f0cd"; 736 | } 737 | .fa-table:before { 738 | content: "\f0ce"; 739 | } 740 | .fa-magic:before { 741 | content: "\f0d0"; 742 | } 743 | .fa-truck:before { 744 | content: "\f0d1"; 745 | } 746 | .fa-pinterest:before { 747 | content: "\f0d2"; 748 | } 749 | .fa-pinterest-square:before { 750 | content: "\f0d3"; 751 | } 752 | .fa-google-plus-square:before { 753 | content: "\f0d4"; 754 | } 755 | .fa-google-plus:before { 756 | content: "\f0d5"; 757 | } 758 | .fa-money:before { 759 | content: "\f0d6"; 760 | } 761 | .fa-caret-down:before { 762 | content: "\f0d7"; 763 | } 764 | .fa-caret-up:before { 765 | content: "\f0d8"; 766 | } 767 | .fa-caret-left:before { 768 | content: "\f0d9"; 769 | } 770 | .fa-caret-right:before { 771 | content: "\f0da"; 772 | } 773 | .fa-columns:before { 774 | content: "\f0db"; 775 | } 776 | .fa-unsorted:before, 777 | .fa-sort:before { 778 | content: "\f0dc"; 779 | } 780 | .fa-sort-down:before, 781 | .fa-sort-desc:before { 782 | content: "\f0dd"; 783 | } 784 | .fa-sort-up:before, 785 | .fa-sort-asc:before { 786 | content: "\f0de"; 787 | } 788 | .fa-envelope:before { 789 | content: "\f0e0"; 790 | } 791 | .fa-linkedin:before { 792 | content: "\f0e1"; 793 | } 794 | .fa-rotate-left:before, 795 | .fa-undo:before { 796 | content: "\f0e2"; 797 | } 798 | .fa-legal:before, 799 | .fa-gavel:before { 800 | content: "\f0e3"; 801 | } 802 | .fa-dashboard:before, 803 | .fa-tachometer:before { 804 | content: "\f0e4"; 805 | } 806 | .fa-comment-o:before { 807 | content: "\f0e5"; 808 | } 809 | .fa-comments-o:before { 810 | content: "\f0e6"; 811 | } 812 | .fa-flash:before, 813 | .fa-bolt:before { 814 | content: "\f0e7"; 815 | } 816 | .fa-sitemap:before { 817 | content: "\f0e8"; 818 | } 819 | .fa-umbrella:before { 820 | content: "\f0e9"; 821 | } 822 | .fa-paste:before, 823 | .fa-clipboard:before { 824 | content: "\f0ea"; 825 | } 826 | .fa-lightbulb-o:before { 827 | content: "\f0eb"; 828 | } 829 | .fa-exchange:before { 830 | content: "\f0ec"; 831 | } 832 | .fa-cloud-download:before { 833 | content: "\f0ed"; 834 | } 835 | .fa-cloud-upload:before { 836 | content: "\f0ee"; 837 | } 838 | .fa-user-md:before { 839 | content: "\f0f0"; 840 | } 841 | .fa-stethoscope:before { 842 | content: "\f0f1"; 843 | } 844 | .fa-suitcase:before { 845 | content: "\f0f2"; 846 | } 847 | .fa-bell-o:before { 848 | content: "\f0a2"; 849 | } 850 | .fa-coffee:before { 851 | content: "\f0f4"; 852 | } 853 | .fa-cutlery:before { 854 | content: "\f0f5"; 855 | } 856 | .fa-file-text-o:before { 857 | content: "\f0f6"; 858 | } 859 | .fa-building-o:before { 860 | content: "\f0f7"; 861 | } 862 | .fa-hospital-o:before { 863 | content: "\f0f8"; 864 | } 865 | .fa-ambulance:before { 866 | content: "\f0f9"; 867 | } 868 | .fa-medkit:before { 869 | content: "\f0fa"; 870 | } 871 | .fa-fighter-jet:before { 872 | content: "\f0fb"; 873 | } 874 | .fa-beer:before { 875 | content: "\f0fc"; 876 | } 877 | .fa-h-square:before { 878 | content: "\f0fd"; 879 | } 880 | .fa-plus-square:before { 881 | content: "\f0fe"; 882 | } 883 | .fa-angle-double-left:before { 884 | content: "\f100"; 885 | } 886 | .fa-angle-double-right:before { 887 | content: "\f101"; 888 | } 889 | .fa-angle-double-up:before { 890 | content: "\f102"; 891 | } 892 | .fa-angle-double-down:before { 893 | content: "\f103"; 894 | } 895 | .fa-angle-left:before { 896 | content: "\f104"; 897 | } 898 | .fa-angle-right:before { 899 | content: "\f105"; 900 | } 901 | .fa-angle-up:before { 902 | content: "\f106"; 903 | } 904 | .fa-angle-down:before { 905 | content: "\f107"; 906 | } 907 | .fa-desktop:before { 908 | content: "\f108"; 909 | } 910 | .fa-laptop:before { 911 | content: "\f109"; 912 | } 913 | .fa-tablet:before { 914 | content: "\f10a"; 915 | } 916 | .fa-mobile-phone:before, 917 | .fa-mobile:before { 918 | content: "\f10b"; 919 | } 920 | .fa-circle-o:before { 921 | content: "\f10c"; 922 | } 923 | .fa-quote-left:before { 924 | content: "\f10d"; 925 | } 926 | .fa-quote-right:before { 927 | content: "\f10e"; 928 | } 929 | .fa-spinner:before { 930 | content: "\f110"; 931 | } 932 | .fa-circle:before { 933 | content: "\f111"; 934 | } 935 | .fa-mail-reply:before, 936 | .fa-reply:before { 937 | content: "\f112"; 938 | } 939 | .fa-github-alt:before { 940 | content: "\f113"; 941 | } 942 | .fa-folder-o:before { 943 | content: "\f114"; 944 | } 945 | .fa-folder-open-o:before { 946 | content: "\f115"; 947 | } 948 | .fa-smile-o:before { 949 | content: "\f118"; 950 | } 951 | .fa-frown-o:before { 952 | content: "\f119"; 953 | } 954 | .fa-meh-o:before { 955 | content: "\f11a"; 956 | } 957 | .fa-gamepad:before { 958 | content: "\f11b"; 959 | } 960 | .fa-keyboard-o:before { 961 | content: "\f11c"; 962 | } 963 | .fa-flag-o:before { 964 | content: "\f11d"; 965 | } 966 | .fa-flag-checkered:before { 967 | content: "\f11e"; 968 | } 969 | .fa-terminal:before { 970 | content: "\f120"; 971 | } 972 | .fa-code:before { 973 | content: "\f121"; 974 | } 975 | .fa-mail-reply-all:before, 976 | .fa-reply-all:before { 977 | content: "\f122"; 978 | } 979 | .fa-star-half-empty:before, 980 | .fa-star-half-full:before, 981 | .fa-star-half-o:before { 982 | content: "\f123"; 983 | } 984 | .fa-location-arrow:before { 985 | content: "\f124"; 986 | } 987 | .fa-crop:before { 988 | content: "\f125"; 989 | } 990 | .fa-code-fork:before { 991 | content: "\f126"; 992 | } 993 | .fa-unlink:before, 994 | .fa-chain-broken:before { 995 | content: "\f127"; 996 | } 997 | .fa-question:before { 998 | content: "\f128"; 999 | } 1000 | .fa-info:before { 1001 | content: "\f129"; 1002 | } 1003 | .fa-exclamation:before { 1004 | content: "\f12a"; 1005 | } 1006 | .fa-superscript:before { 1007 | content: "\f12b"; 1008 | } 1009 | .fa-subscript:before { 1010 | content: "\f12c"; 1011 | } 1012 | .fa-eraser:before { 1013 | content: "\f12d"; 1014 | } 1015 | .fa-puzzle-piece:before { 1016 | content: "\f12e"; 1017 | } 1018 | .fa-microphone:before { 1019 | content: "\f130"; 1020 | } 1021 | .fa-microphone-slash:before { 1022 | content: "\f131"; 1023 | } 1024 | .fa-shield:before { 1025 | content: "\f132"; 1026 | } 1027 | .fa-calendar-o:before { 1028 | content: "\f133"; 1029 | } 1030 | .fa-fire-extinguisher:before { 1031 | content: "\f134"; 1032 | } 1033 | .fa-rocket:before { 1034 | content: "\f135"; 1035 | } 1036 | .fa-maxcdn:before { 1037 | content: "\f136"; 1038 | } 1039 | .fa-chevron-circle-left:before { 1040 | content: "\f137"; 1041 | } 1042 | .fa-chevron-circle-right:before { 1043 | content: "\f138"; 1044 | } 1045 | .fa-chevron-circle-up:before { 1046 | content: "\f139"; 1047 | } 1048 | .fa-chevron-circle-down:before { 1049 | content: "\f13a"; 1050 | } 1051 | .fa-html5:before { 1052 | content: "\f13b"; 1053 | } 1054 | .fa-css3:before { 1055 | content: "\f13c"; 1056 | } 1057 | .fa-anchor:before { 1058 | content: "\f13d"; 1059 | } 1060 | .fa-unlock-alt:before { 1061 | content: "\f13e"; 1062 | } 1063 | .fa-bullseye:before { 1064 | content: "\f140"; 1065 | } 1066 | .fa-ellipsis-h:before { 1067 | content: "\f141"; 1068 | } 1069 | .fa-ellipsis-v:before { 1070 | content: "\f142"; 1071 | } 1072 | .fa-rss-square:before { 1073 | content: "\f143"; 1074 | } 1075 | .fa-play-circle:before { 1076 | content: "\f144"; 1077 | } 1078 | .fa-ticket:before { 1079 | content: "\f145"; 1080 | } 1081 | .fa-minus-square:before { 1082 | content: "\f146"; 1083 | } 1084 | .fa-minus-square-o:before { 1085 | content: "\f147"; 1086 | } 1087 | .fa-level-up:before { 1088 | content: "\f148"; 1089 | } 1090 | .fa-level-down:before { 1091 | content: "\f149"; 1092 | } 1093 | .fa-check-square:before { 1094 | content: "\f14a"; 1095 | } 1096 | .fa-pencil-square:before { 1097 | content: "\f14b"; 1098 | } 1099 | .fa-external-link-square:before { 1100 | content: "\f14c"; 1101 | } 1102 | .fa-share-square:before { 1103 | content: "\f14d"; 1104 | } 1105 | .fa-compass:before { 1106 | content: "\f14e"; 1107 | } 1108 | .fa-toggle-down:before, 1109 | .fa-caret-square-o-down:before { 1110 | content: "\f150"; 1111 | } 1112 | .fa-toggle-up:before, 1113 | .fa-caret-square-o-up:before { 1114 | content: "\f151"; 1115 | } 1116 | .fa-toggle-right:before, 1117 | .fa-caret-square-o-right:before { 1118 | content: "\f152"; 1119 | } 1120 | .fa-euro:before, 1121 | .fa-eur:before { 1122 | content: "\f153"; 1123 | } 1124 | .fa-gbp:before { 1125 | content: "\f154"; 1126 | } 1127 | .fa-dollar:before, 1128 | .fa-usd:before { 1129 | content: "\f155"; 1130 | } 1131 | .fa-rupee:before, 1132 | .fa-inr:before { 1133 | content: "\f156"; 1134 | } 1135 | .fa-cny:before, 1136 | .fa-rmb:before, 1137 | .fa-yen:before, 1138 | .fa-jpy:before { 1139 | content: "\f157"; 1140 | } 1141 | .fa-ruble:before, 1142 | .fa-rouble:before, 1143 | .fa-rub:before { 1144 | content: "\f158"; 1145 | } 1146 | .fa-won:before, 1147 | .fa-krw:before { 1148 | content: "\f159"; 1149 | } 1150 | .fa-bitcoin:before, 1151 | .fa-btc:before { 1152 | content: "\f15a"; 1153 | } 1154 | .fa-file:before { 1155 | content: "\f15b"; 1156 | } 1157 | .fa-file-text:before { 1158 | content: "\f15c"; 1159 | } 1160 | .fa-sort-alpha-asc:before { 1161 | content: "\f15d"; 1162 | } 1163 | .fa-sort-alpha-desc:before { 1164 | content: "\f15e"; 1165 | } 1166 | .fa-sort-amount-asc:before { 1167 | content: "\f160"; 1168 | } 1169 | .fa-sort-amount-desc:before { 1170 | content: "\f161"; 1171 | } 1172 | .fa-sort-numeric-asc:before { 1173 | content: "\f162"; 1174 | } 1175 | .fa-sort-numeric-desc:before { 1176 | content: "\f163"; 1177 | } 1178 | .fa-thumbs-up:before { 1179 | content: "\f164"; 1180 | } 1181 | .fa-thumbs-down:before { 1182 | content: "\f165"; 1183 | } 1184 | .fa-youtube-square:before { 1185 | content: "\f166"; 1186 | } 1187 | .fa-youtube:before { 1188 | content: "\f167"; 1189 | } 1190 | .fa-xing:before { 1191 | content: "\f168"; 1192 | } 1193 | .fa-xing-square:before { 1194 | content: "\f169"; 1195 | } 1196 | .fa-youtube-play:before { 1197 | content: "\f16a"; 1198 | } 1199 | .fa-dropbox:before { 1200 | content: "\f16b"; 1201 | } 1202 | .fa-stack-overflow:before { 1203 | content: "\f16c"; 1204 | } 1205 | .fa-instagram:before { 1206 | content: "\f16d"; 1207 | } 1208 | .fa-flickr:before { 1209 | content: "\f16e"; 1210 | } 1211 | .fa-adn:before { 1212 | content: "\f170"; 1213 | } 1214 | .fa-bitbucket:before { 1215 | content: "\f171"; 1216 | } 1217 | .fa-bitbucket-square:before { 1218 | content: "\f172"; 1219 | } 1220 | .fa-tumblr:before { 1221 | content: "\f173"; 1222 | } 1223 | .fa-tumblr-square:before { 1224 | content: "\f174"; 1225 | } 1226 | .fa-long-arrow-down:before { 1227 | content: "\f175"; 1228 | } 1229 | .fa-long-arrow-up:before { 1230 | content: "\f176"; 1231 | } 1232 | .fa-long-arrow-left:before { 1233 | content: "\f177"; 1234 | } 1235 | .fa-long-arrow-right:before { 1236 | content: "\f178"; 1237 | } 1238 | .fa-apple:before { 1239 | content: "\f179"; 1240 | } 1241 | .fa-windows:before { 1242 | content: "\f17a"; 1243 | } 1244 | .fa-android:before { 1245 | content: "\f17b"; 1246 | } 1247 | .fa-linux:before { 1248 | content: "\f17c"; 1249 | } 1250 | .fa-dribbble:before { 1251 | content: "\f17d"; 1252 | } 1253 | .fa-skype:before { 1254 | content: "\f17e"; 1255 | } 1256 | .fa-foursquare:before { 1257 | content: "\f180"; 1258 | } 1259 | .fa-trello:before { 1260 | content: "\f181"; 1261 | } 1262 | .fa-female:before { 1263 | content: "\f182"; 1264 | } 1265 | .fa-male:before { 1266 | content: "\f183"; 1267 | } 1268 | .fa-gittip:before, 1269 | .fa-gratipay:before { 1270 | content: "\f184"; 1271 | } 1272 | .fa-sun-o:before { 1273 | content: "\f185"; 1274 | } 1275 | .fa-moon-o:before { 1276 | content: "\f186"; 1277 | } 1278 | .fa-archive:before { 1279 | content: "\f187"; 1280 | } 1281 | .fa-bug:before { 1282 | content: "\f188"; 1283 | } 1284 | .fa-vk:before { 1285 | content: "\f189"; 1286 | } 1287 | .fa-weibo:before { 1288 | content: "\f18a"; 1289 | } 1290 | .fa-renren:before { 1291 | content: "\f18b"; 1292 | } 1293 | .fa-pagelines:before { 1294 | content: "\f18c"; 1295 | } 1296 | .fa-stack-exchange:before { 1297 | content: "\f18d"; 1298 | } 1299 | .fa-arrow-circle-o-right:before { 1300 | content: "\f18e"; 1301 | } 1302 | .fa-arrow-circle-o-left:before { 1303 | content: "\f190"; 1304 | } 1305 | .fa-toggle-left:before, 1306 | .fa-caret-square-o-left:before { 1307 | content: "\f191"; 1308 | } 1309 | .fa-dot-circle-o:before { 1310 | content: "\f192"; 1311 | } 1312 | .fa-wheelchair:before { 1313 | content: "\f193"; 1314 | } 1315 | .fa-vimeo-square:before { 1316 | content: "\f194"; 1317 | } 1318 | .fa-turkish-lira:before, 1319 | .fa-try:before { 1320 | content: "\f195"; 1321 | } 1322 | .fa-plus-square-o:before { 1323 | content: "\f196"; 1324 | } 1325 | .fa-space-shuttle:before { 1326 | content: "\f197"; 1327 | } 1328 | .fa-slack:before { 1329 | content: "\f198"; 1330 | } 1331 | .fa-envelope-square:before { 1332 | content: "\f199"; 1333 | } 1334 | .fa-wordpress:before { 1335 | content: "\f19a"; 1336 | } 1337 | .fa-openid:before { 1338 | content: "\f19b"; 1339 | } 1340 | .fa-institution:before, 1341 | .fa-bank:before, 1342 | .fa-university:before { 1343 | content: "\f19c"; 1344 | } 1345 | .fa-mortar-board:before, 1346 | .fa-graduation-cap:before { 1347 | content: "\f19d"; 1348 | } 1349 | .fa-yahoo:before { 1350 | content: "\f19e"; 1351 | } 1352 | .fa-google:before { 1353 | content: "\f1a0"; 1354 | } 1355 | .fa-reddit:before { 1356 | content: "\f1a1"; 1357 | } 1358 | .fa-reddit-square:before { 1359 | content: "\f1a2"; 1360 | } 1361 | .fa-stumbleupon-circle:before { 1362 | content: "\f1a3"; 1363 | } 1364 | .fa-stumbleupon:before { 1365 | content: "\f1a4"; 1366 | } 1367 | .fa-delicious:before { 1368 | content: "\f1a5"; 1369 | } 1370 | .fa-digg:before { 1371 | content: "\f1a6"; 1372 | } 1373 | .fa-pied-piper:before { 1374 | content: "\f1a7"; 1375 | } 1376 | .fa-pied-piper-alt:before { 1377 | content: "\f1a8"; 1378 | } 1379 | .fa-drupal:before { 1380 | content: "\f1a9"; 1381 | } 1382 | .fa-joomla:before { 1383 | content: "\f1aa"; 1384 | } 1385 | .fa-language:before { 1386 | content: "\f1ab"; 1387 | } 1388 | .fa-fax:before { 1389 | content: "\f1ac"; 1390 | } 1391 | .fa-building:before { 1392 | content: "\f1ad"; 1393 | } 1394 | .fa-child:before { 1395 | content: "\f1ae"; 1396 | } 1397 | .fa-paw:before { 1398 | content: "\f1b0"; 1399 | } 1400 | .fa-spoon:before { 1401 | content: "\f1b1"; 1402 | } 1403 | .fa-cube:before { 1404 | content: "\f1b2"; 1405 | } 1406 | .fa-cubes:before { 1407 | content: "\f1b3"; 1408 | } 1409 | .fa-behance:before { 1410 | content: "\f1b4"; 1411 | } 1412 | .fa-behance-square:before { 1413 | content: "\f1b5"; 1414 | } 1415 | .fa-steam:before { 1416 | content: "\f1b6"; 1417 | } 1418 | .fa-steam-square:before { 1419 | content: "\f1b7"; 1420 | } 1421 | .fa-recycle:before { 1422 | content: "\f1b8"; 1423 | } 1424 | .fa-automobile:before, 1425 | .fa-car:before { 1426 | content: "\f1b9"; 1427 | } 1428 | .fa-cab:before, 1429 | .fa-taxi:before { 1430 | content: "\f1ba"; 1431 | } 1432 | .fa-tree:before { 1433 | content: "\f1bb"; 1434 | } 1435 | .fa-spotify:before { 1436 | content: "\f1bc"; 1437 | } 1438 | .fa-deviantart:before { 1439 | content: "\f1bd"; 1440 | } 1441 | .fa-soundcloud:before { 1442 | content: "\f1be"; 1443 | } 1444 | .fa-database:before { 1445 | content: "\f1c0"; 1446 | } 1447 | .fa-file-pdf-o:before { 1448 | content: "\f1c1"; 1449 | } 1450 | .fa-file-word-o:before { 1451 | content: "\f1c2"; 1452 | } 1453 | .fa-file-excel-o:before { 1454 | content: "\f1c3"; 1455 | } 1456 | .fa-file-powerpoint-o:before { 1457 | content: "\f1c4"; 1458 | } 1459 | .fa-file-photo-o:before, 1460 | .fa-file-picture-o:before, 1461 | .fa-file-image-o:before { 1462 | content: "\f1c5"; 1463 | } 1464 | .fa-file-zip-o:before, 1465 | .fa-file-archive-o:before { 1466 | content: "\f1c6"; 1467 | } 1468 | .fa-file-sound-o:before, 1469 | .fa-file-audio-o:before { 1470 | content: "\f1c7"; 1471 | } 1472 | .fa-file-movie-o:before, 1473 | .fa-file-video-o:before { 1474 | content: "\f1c8"; 1475 | } 1476 | .fa-file-code-o:before { 1477 | content: "\f1c9"; 1478 | } 1479 | .fa-vine:before { 1480 | content: "\f1ca"; 1481 | } 1482 | .fa-codepen:before { 1483 | content: "\f1cb"; 1484 | } 1485 | .fa-jsfiddle:before { 1486 | content: "\f1cc"; 1487 | } 1488 | .fa-life-bouy:before, 1489 | .fa-life-buoy:before, 1490 | .fa-life-saver:before, 1491 | .fa-support:before, 1492 | .fa-life-ring:before { 1493 | content: "\f1cd"; 1494 | } 1495 | .fa-circle-o-notch:before { 1496 | content: "\f1ce"; 1497 | } 1498 | .fa-ra:before, 1499 | .fa-rebel:before { 1500 | content: "\f1d0"; 1501 | } 1502 | .fa-ge:before, 1503 | .fa-empire:before { 1504 | content: "\f1d1"; 1505 | } 1506 | .fa-git-square:before { 1507 | content: "\f1d2"; 1508 | } 1509 | .fa-git:before { 1510 | content: "\f1d3"; 1511 | } 1512 | .fa-hacker-news:before { 1513 | content: "\f1d4"; 1514 | } 1515 | .fa-tencent-weibo:before { 1516 | content: "\f1d5"; 1517 | } 1518 | .fa-qq:before { 1519 | content: "\f1d6"; 1520 | } 1521 | .fa-wechat:before, 1522 | .fa-weixin:before { 1523 | content: "\f1d7"; 1524 | } 1525 | .fa-send:before, 1526 | .fa-paper-plane:before { 1527 | content: "\f1d8"; 1528 | } 1529 | .fa-send-o:before, 1530 | .fa-paper-plane-o:before { 1531 | content: "\f1d9"; 1532 | } 1533 | .fa-history:before { 1534 | content: "\f1da"; 1535 | } 1536 | .fa-genderless:before, 1537 | .fa-circle-thin:before { 1538 | content: "\f1db"; 1539 | } 1540 | .fa-header:before { 1541 | content: "\f1dc"; 1542 | } 1543 | .fa-paragraph:before { 1544 | content: "\f1dd"; 1545 | } 1546 | .fa-sliders:before { 1547 | content: "\f1de"; 1548 | } 1549 | .fa-share-alt:before { 1550 | content: "\f1e0"; 1551 | } 1552 | .fa-share-alt-square:before { 1553 | content: "\f1e1"; 1554 | } 1555 | .fa-bomb:before { 1556 | content: "\f1e2"; 1557 | } 1558 | .fa-soccer-ball-o:before, 1559 | .fa-futbol-o:before { 1560 | content: "\f1e3"; 1561 | } 1562 | .fa-tty:before { 1563 | content: "\f1e4"; 1564 | } 1565 | .fa-binoculars:before { 1566 | content: "\f1e5"; 1567 | } 1568 | .fa-plug:before { 1569 | content: "\f1e6"; 1570 | } 1571 | .fa-slideshare:before { 1572 | content: "\f1e7"; 1573 | } 1574 | .fa-twitch:before { 1575 | content: "\f1e8"; 1576 | } 1577 | .fa-yelp:before { 1578 | content: "\f1e9"; 1579 | } 1580 | .fa-newspaper-o:before { 1581 | content: "\f1ea"; 1582 | } 1583 | .fa-wifi:before { 1584 | content: "\f1eb"; 1585 | } 1586 | .fa-calculator:before { 1587 | content: "\f1ec"; 1588 | } 1589 | .fa-paypal:before { 1590 | content: "\f1ed"; 1591 | } 1592 | .fa-google-wallet:before { 1593 | content: "\f1ee"; 1594 | } 1595 | .fa-cc-visa:before { 1596 | content: "\f1f0"; 1597 | } 1598 | .fa-cc-mastercard:before { 1599 | content: "\f1f1"; 1600 | } 1601 | .fa-cc-discover:before { 1602 | content: "\f1f2"; 1603 | } 1604 | .fa-cc-amex:before { 1605 | content: "\f1f3"; 1606 | } 1607 | .fa-cc-paypal:before { 1608 | content: "\f1f4"; 1609 | } 1610 | .fa-cc-stripe:before { 1611 | content: "\f1f5"; 1612 | } 1613 | .fa-bell-slash:before { 1614 | content: "\f1f6"; 1615 | } 1616 | .fa-bell-slash-o:before { 1617 | content: "\f1f7"; 1618 | } 1619 | .fa-trash:before { 1620 | content: "\f1f8"; 1621 | } 1622 | .fa-copyright:before { 1623 | content: "\f1f9"; 1624 | } 1625 | .fa-at:before { 1626 | content: "\f1fa"; 1627 | } 1628 | .fa-eyedropper:before { 1629 | content: "\f1fb"; 1630 | } 1631 | .fa-paint-brush:before { 1632 | content: "\f1fc"; 1633 | } 1634 | .fa-birthday-cake:before { 1635 | content: "\f1fd"; 1636 | } 1637 | .fa-area-chart:before { 1638 | content: "\f1fe"; 1639 | } 1640 | .fa-pie-chart:before { 1641 | content: "\f200"; 1642 | } 1643 | .fa-line-chart:before { 1644 | content: "\f201"; 1645 | } 1646 | .fa-lastfm:before { 1647 | content: "\f202"; 1648 | } 1649 | .fa-lastfm-square:before { 1650 | content: "\f203"; 1651 | } 1652 | .fa-toggle-off:before { 1653 | content: "\f204"; 1654 | } 1655 | .fa-toggle-on:before { 1656 | content: "\f205"; 1657 | } 1658 | .fa-bicycle:before { 1659 | content: "\f206"; 1660 | } 1661 | .fa-bus:before { 1662 | content: "\f207"; 1663 | } 1664 | .fa-ioxhost:before { 1665 | content: "\f208"; 1666 | } 1667 | .fa-angellist:before { 1668 | content: "\f209"; 1669 | } 1670 | .fa-cc:before { 1671 | content: "\f20a"; 1672 | } 1673 | .fa-shekel:before, 1674 | .fa-sheqel:before, 1675 | .fa-ils:before { 1676 | content: "\f20b"; 1677 | } 1678 | .fa-meanpath:before { 1679 | content: "\f20c"; 1680 | } 1681 | .fa-buysellads:before { 1682 | content: "\f20d"; 1683 | } 1684 | .fa-connectdevelop:before { 1685 | content: "\f20e"; 1686 | } 1687 | .fa-dashcube:before { 1688 | content: "\f210"; 1689 | } 1690 | .fa-forumbee:before { 1691 | content: "\f211"; 1692 | } 1693 | .fa-leanpub:before { 1694 | content: "\f212"; 1695 | } 1696 | .fa-sellsy:before { 1697 | content: "\f213"; 1698 | } 1699 | .fa-shirtsinbulk:before { 1700 | content: "\f214"; 1701 | } 1702 | .fa-simplybuilt:before { 1703 | content: "\f215"; 1704 | } 1705 | .fa-skyatlas:before { 1706 | content: "\f216"; 1707 | } 1708 | .fa-cart-plus:before { 1709 | content: "\f217"; 1710 | } 1711 | .fa-cart-arrow-down:before { 1712 | content: "\f218"; 1713 | } 1714 | .fa-diamond:before { 1715 | content: "\f219"; 1716 | } 1717 | .fa-ship:before { 1718 | content: "\f21a"; 1719 | } 1720 | .fa-user-secret:before { 1721 | content: "\f21b"; 1722 | } 1723 | .fa-motorcycle:before { 1724 | content: "\f21c"; 1725 | } 1726 | .fa-street-view:before { 1727 | content: "\f21d"; 1728 | } 1729 | .fa-heartbeat:before { 1730 | content: "\f21e"; 1731 | } 1732 | .fa-venus:before { 1733 | content: "\f221"; 1734 | } 1735 | .fa-mars:before { 1736 | content: "\f222"; 1737 | } 1738 | .fa-mercury:before { 1739 | content: "\f223"; 1740 | } 1741 | .fa-transgender:before { 1742 | content: "\f224"; 1743 | } 1744 | .fa-transgender-alt:before { 1745 | content: "\f225"; 1746 | } 1747 | .fa-venus-double:before { 1748 | content: "\f226"; 1749 | } 1750 | .fa-mars-double:before { 1751 | content: "\f227"; 1752 | } 1753 | .fa-venus-mars:before { 1754 | content: "\f228"; 1755 | } 1756 | .fa-mars-stroke:before { 1757 | content: "\f229"; 1758 | } 1759 | .fa-mars-stroke-v:before { 1760 | content: "\f22a"; 1761 | } 1762 | .fa-mars-stroke-h:before { 1763 | content: "\f22b"; 1764 | } 1765 | .fa-neuter:before { 1766 | content: "\f22c"; 1767 | } 1768 | .fa-facebook-official:before { 1769 | content: "\f230"; 1770 | } 1771 | .fa-pinterest-p:before { 1772 | content: "\f231"; 1773 | } 1774 | .fa-whatsapp:before { 1775 | content: "\f232"; 1776 | } 1777 | .fa-server:before { 1778 | content: "\f233"; 1779 | } 1780 | .fa-user-plus:before { 1781 | content: "\f234"; 1782 | } 1783 | .fa-user-times:before { 1784 | content: "\f235"; 1785 | } 1786 | .fa-hotel:before, 1787 | .fa-bed:before { 1788 | content: "\f236"; 1789 | } 1790 | .fa-viacoin:before { 1791 | content: "\f237"; 1792 | } 1793 | .fa-train:before { 1794 | content: "\f238"; 1795 | } 1796 | .fa-subway:before { 1797 | content: "\f239"; 1798 | } 1799 | .fa-medium:before { 1800 | content: "\f23a"; 1801 | } 1802 | -------------------------------------------------------------------------------- /resources/public/font-awesome/css/font-awesome.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.3.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0, 0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-genderless:before,.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"} -------------------------------------------------------------------------------- /resources/public/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfikes/qttt/ff560b37bad75e38fb1d1c65335bd02387445fd4/resources/public/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /resources/public/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfikes/qttt/ff560b37bad75e38fb1d1c65335bd02387445fd4/resources/public/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /resources/public/font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfikes/qttt/ff560b37bad75e38fb1d1c65335bd02387445fd4/resources/public/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /resources/public/font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfikes/qttt/ff560b37bad75e38fb1d1c65335bd02387445fd4/resources/public/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /resources/public/font-awesome/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfikes/qttt/ff560b37bad75e38fb1d1c65335bd02387445fd4/resources/public/font-awesome/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /resources/public/styles.css: -------------------------------------------------------------------------------- 1 | 2 | /* http://paletton.com/#uid=33x0u0kqQ-xgwLilSEty0uJzont */ 3 | 4 | body { 5 | background-color: black; 6 | color: #2675B1; 7 | font-family: "Lucida Console", Monaco, monospace; 8 | } 9 | 10 | .instructions { 11 | margin-left: auto; 12 | margin-right: auto; 13 | text-align: center; 14 | font-size: 130%; 15 | margin-bottom: 10px; 16 | color: #6DA6D2; 17 | } 18 | 19 | .repo-link { 20 | margin-left: auto; 21 | margin-right: auto; 22 | width: 500px; 23 | text-align: center; 24 | font-size: 150%; 25 | margin-top: 20px; 26 | } 27 | 28 | a , a.visited{ 29 | color: #6DA6D2; 30 | } 31 | 32 | .board-container { 33 | margin: 10px; 34 | } 35 | 36 | .board { 37 | width: 500px; 38 | height: 500px; 39 | margin-left: auto; 40 | margin-right: auto; 41 | border-collapse: collapse; 42 | } 43 | 44 | .board td { 45 | width: 33.3%; 46 | height: 33.3%; 47 | border: 3px solid #2675B1; 48 | } 49 | 50 | td { 51 | text-align: center; 52 | vertical-align: middle; 53 | } 54 | 55 | .superposition table { 56 | width: 100%; 57 | height: 100%; 58 | } 59 | 60 | .superposition td { 61 | border: 0px; 62 | } 63 | 64 | .player-x { 65 | color: #FFC929; 66 | } 67 | 68 | .player-o { 69 | color: #FF6629; 70 | } 71 | 72 | .classical .mark { 73 | font-size: 120px; 74 | vertical-align: -20px; 75 | } 76 | 77 | .mark { 78 | transition: all 100ms ease; 79 | } 80 | 81 | .mark .turn { 82 | font-size: 40%; 83 | } 84 | 85 | .superposition .mark { 86 | font-size: 30px; 87 | } 88 | 89 | .player-x.mark.highlight { 90 | color: #FFFFFF; 91 | text-shadow: 0 0 10px #FFDE7B , 0 0 20px #FFC929 , 0 0 30px #BB8C00; 92 | } 93 | 94 | .player-o.mark.highlight { 95 | color: #FFFFFF; 96 | text-shadow: 0 0 10px #FFA17B , 0 0 20px #FF6629 , 0 0 30px #BB3500; 97 | } 98 | 99 | 100 | /* React CSS Transitions */ 101 | 102 | .mark-transition-enter { 103 | opacity: 0.01; 104 | transition: opacity 70ms ease-in; 105 | } 106 | 107 | .mark-transition-enter.mark-transition-enter-active { 108 | opacity: 1; 109 | } 110 | 111 | .mark-transition-leave { 112 | opacity: 1; 113 | transition: opacity 70ms ease-out; 114 | } 115 | 116 | .mark-transition-leave.mark-transition-leave-active { 117 | opacity: 0.01; 118 | } 119 | -------------------------------------------------------------------------------- /script/ambly-repl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | type lein >/dev/null 2>&1 || { echo >&2 "I require lein but it's not installed. Aborting."; exit 1; } 4 | 5 | if hash rlwrap 2>/dev/null; then 6 | COMMAND="rlwrap lein" 7 | else 8 | COMMAND="lein" 9 | fi 10 | 11 | $COMMAND trampoline run -m clojure.main -e \ 12 | "(require '[cljs.repl :as repl]) 13 | (require '[ambly.core :as ambly]) 14 | (repl/repl (ambly/repl-env))" 15 | -------------------------------------------------------------------------------- /src/qttt/game.cljs: -------------------------------------------------------------------------------- 1 | (ns qttt.game 2 | "Logic relating to game state" 3 | (:require [clojure.set :as set])) 4 | 5 | (def num-cells 9) 6 | (def num-players 2) 7 | 8 | (def ^:dynamic *speculative* false) 9 | 10 | (comment 11 | ;; Game Data Structures 12 | 13 | ;; Game 14 | {:turn 0 15 | :player 0 16 | :pair [4 2] 17 | :board board 18 | :base game 19 | } 20 | 21 | ;; The board 22 | {0 cell 1 cell} 23 | 24 | ;; A cell 25 | {:entanglements {0 {:player 0 26 | :turn 0 27 | :pair [4 2] 28 | :focus false 29 | :collapsing true} 30 | 1 {:player 1 31 | :pair [4 2] 32 | :turn 1 33 | :focus true}} 34 | :classical {:player 0 35 | :turn 0 36 | :speculative true}}) 37 | 38 | (defn next-player 39 | [player] 40 | (mod (inc player) num-players)) 41 | 42 | (defn get-entanglements 43 | "Return information regarding cells entangled with the given cell. 44 | 45 | Return value is a seq of [cell turn] tuples, where turn 46 | is the turn the spooky mark was placed. Exclude 47 | entanglements which have a classical value already." 48 | 49 | [game cell] 50 | (->> (get-in game [:board cell :entanglements]) 51 | (vals) 52 | (keep (fn [e] (when-let [[pair-cell pair-subcell] (:pair e)] 53 | (when-not (get-in game [:board pair-cell :classical]) 54 | [pair-cell (:turn e)])))))) 55 | 56 | (defn index-of 57 | "Return the index of an item in a vector, if present. If not present return nil" 58 | [v item] 59 | (first (keep-indexed (fn [i val] 60 | (when (= val item) i)) 61 | v))) 62 | 63 | (defn cycle-search 64 | "Return a seq of cell cycles discovered. 65 | 66 | Tracks the turn of the entanglement just 67 | followed, to avoid backtracking immediately." 68 | [game cell visited from-turn] 69 | (set (mapcat (fn [[edge turn]] 70 | (when-not (= turn from-turn) 71 | (if-let [idx (index-of visited edge)] 72 | [(set (conj (subvec visited idx) cell))] 73 | (cycle-search game edge (conj visited cell) turn)))) 74 | (get-entanglements game cell)))) 75 | 76 | (defn detect-cycles 77 | "Return a sequence of all entanglement cycles present in the given board" 78 | [game] 79 | ;; Not 100% efficient, but we need some way of detecting multiple disjoint graphs. 80 | ;; Should be fine for small N. Using sets removes redundancies. If we run into perf 81 | ;; trouble we can track which nodes we've visited *at all* and never revisit them. 82 | (apply set/union (map #(cycle-search game % [] -1) (keys (:board game))))) 83 | 84 | (defn check-collapses 85 | "Given a game, check if there are any collapses happening 86 | and return an updated game accordingly" 87 | [game] 88 | (let [cycles (detect-cycles game)] 89 | (if (empty? cycles) 90 | (assoc game :collapsing false) 91 | (let [collapsing-cells (apply set/union cycles)] 92 | (reduce (fn [g cell] 93 | (let [collapsing-subcells 94 | (keep 95 | (fn [[sub e]] (when (contains? collapsing-cells (first (:pair e))) sub)) 96 | (get-in g [:board cell :entanglements]))] 97 | (reduce #(assoc-in %1 [:board cell :entanglements %2 :collapsing] true) g collapsing-subcells))) 98 | (assoc game :collapsing true) 99 | collapsing-cells))))) 100 | 101 | (defn legal-spooky-mark? 102 | "Return true if a spooky mark can be placed on the given cell and subcell" 103 | [game cell subcell] 104 | (and 105 | (not= cell (first (:pair game))) 106 | (nil? (get-in game [:board cell :entanglements subcell])))) 107 | 108 | (defn entangle 109 | "Given a cell, a subcell and the entangled cell and subcell, create an entanglement" 110 | [game cell subcell pair-cell pair-subcell] 111 | (if-not (legal-spooky-mark? game cell subcell) 112 | game 113 | (-> game 114 | ;; add the new spooky mark 115 | (assoc-in [:board cell :entanglements subcell] 116 | {:player (:player game) 117 | :turn (:turn game) 118 | :pair [pair-cell pair-subcell] 119 | :focus *speculative*}) 120 | ;; update the entangled spooky mark 121 | (update-in [:board pair-cell :entanglements pair-subcell] assoc 122 | :focus *speculative* 123 | :pair [cell subcell]) 124 | ;; remove the pair tracker 125 | (dissoc :pair) 126 | ;; change the player 127 | (update-in [:player] next-player) 128 | ;; update the turn 129 | (update-in [:turn] inc) 130 | ;; check for collapses 131 | (check-collapses)))) 132 | 133 | (defn valid-collapse? 134 | "Return true if the given cell and subcell represent 135 | a valid choice to collapse" 136 | [game cell subcell] 137 | (get-in game [:board cell :entanglements subcell :collapsing])) 138 | 139 | 140 | ;; will this work with the new data model? Or need refactoring? 141 | (defn observe 142 | "Define an observation as a tuple of [accepted-cell accepted-subcell], 143 | where the accepted subcell is that which will be observed and become classical. 144 | 145 | Given an observation, return a set of observations implied based 146 | on the accepted cell's entanglements." 147 | [game [accepted-cell accepted-subcell]] 148 | (set (map :pair 149 | (vals (dissoc (get-in game [:board accepted-cell :entanglements]) 150 | accepted-subcell))))) 151 | 152 | (defn observe-all 153 | "Given a set of observations, recursively calculate *all* observations inferred from entangled cells" 154 | [game observations] 155 | (loop [os observations] 156 | (let [next-os (apply set/union os (map #(observe game %) os))] 157 | (if (= next-os os) 158 | next-os 159 | (recur next-os))))) 160 | 161 | (defn resolve-collapse 162 | "Given a cell and subcell, resolve any collapse present in the game" 163 | [game cell subcell] 164 | (if-not (valid-collapse? game cell subcell) 165 | game 166 | (let [observations (observe-all game #{[cell subcell]}) 167 | observations (if *speculative* (disj observations [cell subcell]) 168 | observations)] 169 | (reduce (fn [game [cell subcell]] 170 | (let [e (get-in game [:board cell :entanglements subcell])] 171 | (assoc-in game [:board cell :classical] 172 | {:player (:player e) 173 | :turn (:turn e) 174 | :focus *speculative*}))) 175 | (if *speculative* 176 | (assoc-in game [:board cell :entanglements subcell :focus] true) 177 | (assoc game :collapsing false)) 178 | observations)))) 179 | 180 | (defn spooky-mark 181 | "Place a spooky mark at the given cell and subcell" 182 | [game cell subcell] 183 | (if-let [[pair-cell pair-subcell] (:pair game)] 184 | (entangle game cell subcell pair-cell pair-subcell) 185 | (if-not (legal-spooky-mark? game cell subcell) 186 | game 187 | (-> game 188 | (assoc :pair [cell subcell]) 189 | (assoc-in [:board cell :entanglements subcell] 190 | {:player (:player game) 191 | :turn (:turn game) 192 | :focus true}))))) 193 | 194 | (defn highlight 195 | "Focus the subcell and its entanglement" 196 | [game cell subcell] 197 | (-> (if-let [[pair-cell pair-subcell] 198 | (get-in game [:board cell :entanglements subcell :pair])] 199 | (assoc-in game [:board pair-cell :entanglements pair-subcell :focus] true) 200 | game) 201 | (assoc-in [:board cell :entanglements subcell :focus] true))) 202 | 203 | (defn play 204 | "Play an action at the given cell and subcell. 205 | What the action is depends on the game context." 206 | [game cell subcell] 207 | (if (:collapsing game) 208 | (resolve-collapse game cell subcell) 209 | (if (and *speculative* (get-in game [:board cell :entanglements subcell])) 210 | (highlight game cell subcell) 211 | (spooky-mark game cell subcell)))) 212 | 213 | (defn speculate 214 | "Make a play, but store the previous game state so the 'play' can be easily reverted" 215 | [game cell subcell] 216 | (binding [*speculative* true] 217 | (-> game 218 | (play cell subcell) 219 | (assoc :base game)))) 220 | 221 | (defn unspeculate 222 | "Restore the previous game state (if there was one)." 223 | [game] 224 | (if (:base game) (:base game) game)) 225 | 226 | (defn instructions 227 | "Return a tuple of [player phase] to use for printing out game instructions" 228 | [game] 229 | (let [game (if (:base game) (:base game) game) 230 | phase (cond 231 | (:collapsing game) "make an observation!!" 232 | (:pair game) "create a superposition" 233 | :else "place a mark")] 234 | [(:player game) phase])) 235 | 236 | (def new-game 237 | {:turn 0 238 | :player 0 239 | :board (zipmap (range num-cells) 240 | (repeat {:entanglements {}}))}) 241 | 242 | -------------------------------------------------------------------------------- /src/qttt/ui.cljs: -------------------------------------------------------------------------------- 1 | (ns qttt.ui 2 | (:require [goog.Uri :as uri] 3 | [qttt.ui.om :as om] 4 | [qttt.ui.reagent :as reagent] 5 | [qttt.ui.quiescent :as quiescent])) 6 | 7 | (enable-console-print!) 8 | 9 | (defn ^:export main 10 | [] 11 | (let [lib (keyword (.get (.getQueryData (goog.Uri. js/location)) "lib"))] 12 | (case lib 13 | :om (om/main) 14 | :reagent (reagent/main) 15 | :quiescent (quiescent/main) 16 | (js/alert "Please use the query string to set 'lib' to om, reagent or quiescent. For example, 'dev.html?lib=om'")))) 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/qttt/ui/om.cljs: -------------------------------------------------------------------------------- 1 | (ns qttt.ui.om 2 | (:require [om.core :as om] 3 | [om.dom :as d] 4 | [qttt.game :as game])) 5 | 6 | (def css-transition-group (js/React.createFactory js/React.addons.CSSTransitionGroup)) 7 | 8 | (defn class-name 9 | "Return a class name string given multiple CSS classes. Nil classes are filtered out." 10 | [& classes] 11 | (apply str (interpose " " (filter identity classes)))) 12 | 13 | (defn mark 14 | "Return a Om DOM node for a player's mark" 15 | [{:keys [player turn focus collapsing]}] 16 | (let [icon (if (= 0 player) "fa-plus" "fa-circle-o") 17 | player-class (if (= 0 player) "player-x" "player-o")] 18 | (d/span #js {:key (str player) 19 | :className (class-name "mark" player-class (when focus "highlight") 20 | (when collapsing "shake") (when collapsing "shake-constant"))} 21 | (d/span #js {:className (class-name "fa" icon)}) 22 | (d/span #js {:className "turn"} turn)))) 23 | 24 | (defn entanglement 25 | "Om component for an individual entanglement" 26 | [e owner] 27 | (let [[_ cell _ subcell] (om/path e) 28 | game-cursor (om/root-cursor (om/state e))] 29 | (reify 30 | om/IRender 31 | (render [this] 32 | (d/td #js {:className (class-name (if (empty? e) "empty-mark" "spooky-mark")) 33 | :onClick (fn [evt] 34 | (om/transact! game-cursor 35 | #(game/play (game/unspeculate %) cell subcell))) 36 | :onMouseEnter (fn [evt] 37 | (om/transact! game-cursor 38 | #(game/speculate % cell subcell))) 39 | :onMouseLeave (fn [evt] 40 | (om/transact! game-cursor game/unspeculate))} 41 | (css-transition-group #js {:transitionName "mark-transition"} 42 | (when-not (empty? e) (mark e)))))))) 43 | 44 | (defn superposition 45 | "Om component for a quantum cell" 46 | [cell owner] 47 | (reify 48 | om/IRender 49 | (render [this] 50 | (d/td #js {:className (class-name "superposition")} 51 | (apply d/table nil 52 | (map (fn [row] 53 | (apply d/tr nil 54 | (map (fn [idx] 55 | ;; Make sure were have a valid cursor 56 | (let [e (get-in cell [:entanglements idx] 57 | (get-in (assoc-in cell [:entanglements idx] {}) 58 | [:entanglements idx]))] 59 | (om/build entanglement e))) 60 | row))) 61 | (partition 3 (range 9)))))))) 62 | 63 | (defn classical 64 | "Om component for a classical cell" 65 | [cell owner] 66 | (reify 67 | om/IRender 68 | (render [this] 69 | (d/td #js {:className "classical"} 70 | (mark (:classical cell)))))) 71 | 72 | (defn cell 73 | "Om component for a square" 74 | [cell owner] 75 | (if (:classical cell) 76 | (classical cell owner) 77 | (superposition cell owner))) 78 | 79 | (defn instructions [game owner] 80 | (reify 81 | om/IRender 82 | (render [this] 83 | (let [[player phase] (game/instructions game) 84 | player-classes (if (zero? player) 85 | ["player-x" "fa-plus"] 86 | ["player-o" "fa-circle-o"])] 87 | (d/div #js {:className "instructions"} 88 | (d/span #js {:className (apply class-name "mark" "fa" player-classes)}) 89 | (str "'s turn: " phase)))))) 90 | 91 | (defn board [game owner] 92 | (reify 93 | om/IRender 94 | (render [this] 95 | (d/div #js {:className "board-container"} 96 | (om/build instructions game) 97 | (apply d/table #js {:className "board"} 98 | (map (fn [row] 99 | (apply d/tr nil 100 | (map (fn [idx] 101 | (om/build cell 102 | (get-in game [:board idx]))) row))) 103 | (partition 3 (range 9)))) 104 | (d/div #js {:className "repo-link"} 105 | (d/a #js {:href "http://github.com/levand/qttt"} 106 | "http://github.com/levand/qttt")))))) 107 | 108 | (defn screen [game owner] 109 | (reify 110 | om/IRender 111 | (render [this] 112 | (d/div #js {:className "play-area"} 113 | (om/build board game))))) 114 | 115 | 116 | (defn ^:export main 117 | [] 118 | (let [game-state (atom game/new-game)] 119 | (om/root 120 | screen 121 | game-state 122 | {:target (. js/document (getElementById "root"))}))) 123 | -------------------------------------------------------------------------------- /src/qttt/ui/om_ios.cljs: -------------------------------------------------------------------------------- 1 | (ns qttt.ui.om-ios 2 | (:require [qttt.ui.pre-om] 3 | [om.core :as om] 4 | [om.dom :as dont-use] 5 | [qttt.game :as game])) 6 | 7 | ;; Reset js/React back as the form above loads in an different React 8 | (set! js/React (js/require "react-native/Libraries/react-native/react-native")) 9 | 10 | (defn view 11 | [opts & children] 12 | (apply js/React.createElement js/React.View opts children)) 13 | 14 | (defn text 15 | [opts & children] 16 | (apply js/React.createElement js/React.Text opts children)) 17 | 18 | (defn touchable-without-feedback 19 | [opts & children] 20 | (apply js/React.createElement js/React.TouchableWithoutFeedback opts children)) 21 | 22 | (defn mark-text 23 | [{:keys [player]}] 24 | (if (= 0 player) 25 | "\u2795" 26 | "\u2B55")) 27 | 28 | (defn mark-color 29 | [e] 30 | (if (zero? (:player e)) 31 | "#FFC929" 32 | "#FF6629")) 33 | 34 | (defn entanglement 35 | "Om component for an individual entanglement" 36 | [e owner] 37 | (let [[_ cell _ subcell] (om/path e) 38 | game-cursor (om/root-cursor (om/state e))] 39 | (reify 40 | om/IRender 41 | (render [this] 42 | (touchable-without-feedback 43 | #js {:onPress (fn [evt] 44 | (om/transact! game-cursor 45 | #(game/play (game/unspeculate %) cell subcell))) 46 | :onPressIn (fn [evt] 47 | (om/transact! game-cursor 48 | #(game/speculate % cell subcell))) 49 | :onPressOut (fn [evt] 50 | (om/transact! game-cursor game/unspeculate))} 51 | (view #js {:style #js {:flexDirection "row" 52 | :width 30 53 | :height 30 54 | :justifyContent "center" 55 | :borderRadius 3 56 | :backgroundColor (cond 57 | (:focus e) "#333333" 58 | (:collapsing e) "#224433" 59 | :else "black")}} 60 | (text #js {:style #js {:color (mark-color e) :fontSize 18 :fontWeight (if (:focus e) "bold" "normal")}} 61 | (if (empty? e) "" (mark-text e))) 62 | (text #js {:style #js {:color "grey" :fontSize 6}} 63 | (:turn e)))))))) 64 | 65 | (defn superposition 66 | "Om component for a quantum cell" 67 | [cell owner] 68 | (reify 69 | om/IRender 70 | (render [this] 71 | (view nil 72 | (apply view #js {:style #js {:flexDirection "row" 73 | :borderColor "#2675B1" 74 | :borderWidth 1 75 | :justifyContent "center"}} 76 | (map (fn [row] 77 | (apply view nil 78 | (map (fn [idx] 79 | ;; Make sure were have a valid cursor 80 | (let [e (get-in cell [:entanglements idx] 81 | (get-in (assoc-in cell [:entanglements idx] {}) 82 | [:entanglements idx]))] 83 | (om/build entanglement e))) 84 | row))) 85 | (partition 3 (range 9)))))))) 86 | 87 | (defn classical 88 | "Om component for a classical cell" 89 | [cell owner] 90 | (reify 91 | om/IRender 92 | (render [this] 93 | (view #js {:style #js {:flexDirection "row" 94 | :borderColor "#2675B1" 95 | :borderWidth 1 96 | :justifyContent "center" 97 | :width 92 98 | :height 92 99 | :padding 5}} 100 | (text #js {:style #js {:textAlign "center" :color (mark-color (:classical cell)) :fontSize 60}} 101 | (mark-text (:classical cell))) 102 | (text #js {:style #js {:fontSize 8 :color "grey"}} 103 | (:turn (:classical cell))))))) 104 | 105 | (defn cell 106 | "Om component for a square" 107 | [cell owner] 108 | (if (:classical cell) 109 | (classical cell owner) 110 | (superposition cell owner))) 111 | 112 | (defn instructions [game owner] 113 | (reify 114 | om/IRender 115 | (render [this] 116 | (let [[player phase] (game/instructions game)] 117 | (view #js {:style #js {:flexDirection "row" 118 | :justifyContent "center"}} 119 | (text #js {:style #js {:flexDirection "row" 120 | :margin 20 121 | :color "#6DA6D2" 122 | :textAlign "center"}} 123 | (str (if (zero? player) "\u2795" "\u2B55") "'s turn: " phase))))))) 124 | 125 | (defn board [game owner] 126 | (reify 127 | om/IRender 128 | (render [this] 129 | (view nil 130 | (om/build instructions game) 131 | (apply view #js {:style #js {:flexDirection "row" 132 | :borderColor "#2675B1" 133 | :borderWidth 1}} 134 | (map (fn [row] 135 | (apply view {:style #js {:flexDirection "row"}} 136 | (map (fn [idx] 137 | (om/build cell 138 | (get-in game [:board idx]))) row))) 139 | (partition 3 (range 9)))) 140 | (text #js {:textAlign "center"} 141 | "http://github.com/levand/qttt"))))) 142 | 143 | (defn screen [game owner] 144 | (reify 145 | om/IRender 146 | (render [this] 147 | (view #js {:style #js {:flexDirection "row" 148 | :margin 20 149 | :backgroundColor "black" 150 | :justifyContent "center"}} 151 | (om/build board game))))) 152 | 153 | 154 | (defn ^:export main 155 | [] 156 | (let [game-state (atom game/new-game)] 157 | (om/root 158 | screen 159 | game-state 160 | {:target 1}))) -------------------------------------------------------------------------------- /src/qttt/ui/pre_om.cljs: -------------------------------------------------------------------------------- 1 | (ns qttt.ui.pre-om) 2 | 3 | ;; Need to set js/React first so that Om can load 4 | (set! js/React (js/require "react-native/Libraries/react-native/react-native")) 5 | -------------------------------------------------------------------------------- /src/qttt/ui/quiescent.cljs: -------------------------------------------------------------------------------- 1 | (ns qttt.ui.quiescent 2 | (:require [quiescent.core :as q] 3 | [quiescent.dom :as d] 4 | [contextual.core :as c] 5 | [qttt.game :as game])) 6 | 7 | (defn class-name 8 | "Return a class name string given multiple CSS classes. Nil classes are filtered out." 9 | [& classes] 10 | (apply str (interpose " " (filter identity classes)))) 11 | 12 | (defn mark 13 | [{:keys [player turn focus collapsing]}] 14 | (let [icon (if (= 0 player) "fa-plus" "fa-circle-o") 15 | player-class (if (= 0 player) "player-x" "player-o")] 16 | (d/span {:className (class-name "mark" player-class 17 | (when focus "highlight") 18 | (when collapsing "shake") 19 | (when collapsing "shake-constant"))} 20 | (d/span {:className (class-name "fa" icon)}) 21 | (d/span {:className "turn"} turn)))) 22 | 23 | (q/defcomponent Entanglement 24 | [e game-atom] 25 | (let [[_ cell _ subcell] (c/context e)] 26 | (d/td {:className (if (empty? e) "empty-mark" "spooky-mark") 27 | :onClick (fn [evt] 28 | (swap! game-atom #(game/play (game/unspeculate %) cell subcell))) 29 | :onMouseEnter (fn [evt] 30 | (swap! game-atom #(game/speculate % cell subcell))) 31 | :onMouseLeave (fn [evt] 32 | (swap! game-atom #(game/unspeculate %)))} 33 | (q/CSSTransitionGroup {:transitionName "mark-transition"} 34 | (when-not (empty? e) (mark e)))))) 35 | 36 | (defn superposition 37 | [cell game-atom] 38 | (d/td {:className "superposition"} 39 | (apply d/table {} 40 | (for [row (partition 3 (range 9))] 41 | (apply d/tr {} 42 | (for [idx row] 43 | (let [e (get-in cell [:entanglements idx] 44 | (c/contextualize {} (concat (c/context cell) 45 | [:entanglements idx])))] 46 | (Entanglement e game-atom)))))))) 47 | 48 | 49 | (defn classical 50 | [cell game-atom] 51 | (d/td {:className "classical"} (mark (:classical cell)))) 52 | 53 | (q/defcomponent Cell 54 | [cell game-atom] 55 | (if (:classical cell) 56 | (classical cell game-atom) 57 | (superposition cell game-atom))) 58 | 59 | (q/defcomponent Instructions 60 | [game] 61 | (let [[player phase] (game/instructions game) 62 | player-classes (if (zero? player) 63 | ["player-x" "fa-plus"] 64 | ["player-o" "fa-circle-o"])] 65 | (d/div {:className "instructions"} 66 | (d/span {:className (apply class-name "mark" "fa" player-classes)}) 67 | (str "'s turn: " phase)))) 68 | 69 | (q/defcomponent Board 70 | [game game-atom] 71 | (d/div {:className "board-container"} 72 | (Instructions game) 73 | (apply d/table {:className "board"} 74 | (for [row (partition 3 (range 9))] 75 | (apply d/tr {} 76 | (for [idx row] (Cell (get-in game [:board idx]) game-atom))))) 77 | (d/div {:className "repo-link"} 78 | (d/a {:href "http://github.com/levand/qttt"} "http://github.com/levand/qttt")))) 79 | 80 | (q/defcomponent Screen 81 | [game game-atom] 82 | (d/div {:className "play-area"} 83 | (Board (c/contextualize game) game-atom))) 84 | 85 | (defn render-loop 86 | "Render the main application. Called every frame." 87 | [game-state] 88 | (q/render (Screen @game-state game-state) 89 | (.getElementById js/document "root")) 90 | (.requestAnimationFrame js/window #(render-loop game-state))) 91 | 92 | (defn ^:export main 93 | [] 94 | (let [game-state (atom game/new-game)] 95 | (render-loop game-state))) 96 | -------------------------------------------------------------------------------- /src/qttt/ui/reagent.cljs: -------------------------------------------------------------------------------- 1 | (ns qttt.ui.reagent 2 | (:require [reagent.core :as r] 3 | [qttt.game :as game])) 4 | 5 | (def game (r/atom game/new-game)) 6 | 7 | (def css-transition-group (js/React.createFactory js/React.addons.CSSTransitionGroup)) 8 | 9 | (defn class-name 10 | "Return a class name string given multiple CSS classes. Nil classes are filtered out." 11 | [& classes] 12 | (apply str (interpose " " (filter identity classes)))) 13 | 14 | (defn mark 15 | [{:keys [player turn focus collapsing]}] 16 | (let [icon (if (= 0 player) "fa-plus" "fa-circle-o") 17 | player-class (if (= 0 player) "player-x" "player-o")] 18 | [:span {:class (class-name "mark" player-class 19 | (when focus "highlight") 20 | (when collapsing "shake") 21 | (when collapsing "shake-constant"))} 22 | [:span {:class (class-name "fa" icon)}] 23 | [:span.turn turn]])) 24 | 25 | (defn entanglement 26 | [e cell subcell] 27 | [:td {:class (if (empty? e) "empty-mark" "spooky-mark") 28 | :on-click (fn [evt] 29 | (swap! game #(game/play (game/unspeculate %) cell subcell))) 30 | :on-mouse-enter (fn [evt] 31 | (swap! game #(game/speculate % cell subcell))) 32 | :on-mouse-leave (fn [evt] 33 | (swap! game game/unspeculate))} 34 | (css-transition-group #js {:transitionName "mark-transition"} 35 | (when-not (empty? e) (r/as-element (mark e))))]) 36 | 37 | (defn superposition 38 | [cell cell-idx] 39 | [:td.superposition 40 | [:table (for [row (partition 3 (range 9))] 41 | ^{:key (str row)} 42 | [:tr (for [idx row] 43 | (let [e (get-in cell [:entanglements idx] {})] 44 | ^{:key idx} 45 | [entanglement e cell-idx idx]))])]]) 46 | 47 | (defn classical 48 | [cell cell-idx] 49 | [:td.classical (mark (:classical cell))]) 50 | 51 | (defn cell 52 | [cell cell-idx] 53 | (if (:classical cell) 54 | ^{:key cell-idx} [classical cell cell-idx] 55 | ^{:key cell-idx} [superposition cell cell-idx])) 56 | 57 | (defn instructions [game] 58 | (let [[player phase] (game/instructions game) 59 | player-classes (if (zero? player) 60 | ["player-x" "fa-plus"] 61 | ["player-o" "fa-circle-o"])] 62 | [:div.instructions 63 | [:span {:class (apply class-name "mark" "fa" player-classes)}] 64 | (str "'s turn: " phase)])) 65 | 66 | (defn board [game] 67 | [:div.board-container 68 | [instructions game] 69 | [:table.board (for [row (partition 3 (range 9))] 70 | ^{:key (str row)} 71 | [:tr (for [idx row] 72 | (cell (get-in game [:board idx]) idx))])] 73 | [:div.repo-link 74 | [:a {:href "http://github.com/levand/qttt"} "http://github.com/levand/qttt"]]]) 75 | 76 | (defn screen [] 77 | [:div.play-area [board @game]]) 78 | 79 | (defn ^:export main 80 | [] 81 | (r/render 82 | [screen] 83 | (. js/document (getElementById "root")))) 84 | --------------------------------------------------------------------------------