├── .github ├── FUNDING.yml └── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── custom.md │ └── feature_request.md ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── assets ├── codercat.jpg ├── logo.gif ├── nyantocat.gif └── old_logo.gif ├── manifest.json ├── package.json ├── styles.css ├── sw.js └── travis.js /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: postwoman-io 2 | open_collective: postwoman 3 | patreon: liyasthomas 4 | ko_fi: liyasthomas 5 | custom: https://www.paypal.me/liyascthomas 6 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | **Describe the bug** 8 | A clear and concise description of what the bug is. 9 | 10 | **To Reproduce** 11 | Steps to reproduce the behavior: 12 | 1. Go to '...' 13 | 2. Click on '....' 14 | 3. Scroll down to '....' 15 | 4. See error 16 | 17 | **Expected behavior** 18 | A clear and concise description of what you expected to happen. 19 | 20 | **Screenshots** 21 | If applicable, add screenshots to help explain your problem. 22 | 23 | **Desktop (please complete the following information):** 24 | - OS: [e.g. iOS] 25 | - Browser [e.g. chrome, safari] 26 | - Version [e.g. 22] 27 | 28 | **Smartphone (please complete the following information):** 29 | - Device: [e.g. iPhone6] 30 | - OS: [e.g. iOS8.1] 31 | - Browser [e.g. stock browser, safari] 32 | - Version [e.g. 22] 33 | 34 | **Additional context** 35 | Add any other context about the problem here. 36 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Custom issue template 3 | about: Describe this issue template's purpose here. 4 | 5 | --- 6 | 7 | 8 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | **Is your feature request related to a problem? Please describe.** 8 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 9 | 10 | **Describe the solution you'd like** 11 | A clear and concise description of what you want to happen. 12 | 13 | **Describe alternatives you've considered** 14 | A clear and concise description of any alternative solutions or features you've considered. 15 | 16 | **Additional context** 17 | Add any other context or screenshots about the feature request here. 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Firebase 2 | .firebaserc 3 | firebase.json 4 | 5 | # Logs 6 | logs 7 | *.log 8 | npm-debug.log* 9 | yarn-debug.log* 10 | yarn-error.log* 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | 24 | # nyc test coverage 25 | .nyc_output 26 | 27 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 28 | .grunt 29 | 30 | # Bower dependency directory (https://bower.io/) 31 | bower_components 32 | 33 | # node-waf configuration 34 | .lock-wscript 35 | 36 | # Compiled binary addons (http://nodejs.org/api/addons.html) 37 | build/Release 38 | 39 | # Dependency directories 40 | node_modules/ 41 | jspm_packages/ 42 | 43 | # Typescript v1 declaration files 44 | typings/ 45 | 46 | # Optional npm cache directory 47 | .npm 48 | 49 | # Optional eslint cache 50 | .eslintcache 51 | 52 | # Optional REPL history 53 | .node_repl_history 54 | 55 | # Output of 'npm pack' 56 | *.tgz 57 | 58 | # Yarn Integrity file 59 | .yarn-integrity 60 | 61 | # dotenv environment variables file 62 | .env 63 | 64 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "node" 4 | notifications: 5 | webhooks: https://www.travisbuddy.com 6 | env: 7 | - MY_VAR=EverythignIsAwesome 8 | - NODE_ENV=TEST -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | # Title 3 | ### Description by [Liyas Thomas](https://github.com/liyasthomas) 4 | 5 | --- 6 | 7 | # 1.0.0 8 | 9 | ## This is it, Title 1.0.0! 10 | We are finally out of beta, therefore many bugs were fixed and camera received a brand new look. 11 | 12 | * **NEW**: Camera redesign 13 | * **NEW**: Camera redesign 14 | * **NEW**: macOS and iOS support 15 | * **IMPROVEMENT**: Major improvements 16 | * **IMPROVEMENT**: Updated libraries 17 | * **FIX**: Fixed many bugs and crashes 18 | * **FIX**: Graphic glitches 19 | * **FIX**: Statusbar too dark 20 | * **TRANSLATION**: Updated translations 21 | * **REVERT**: Brought back the "Help" button 22 | * **OTHER**: Removed all analytics 23 | 24 | --- 25 | 26 | # 0.9.0 27 | 28 | ## I worked a lot on Web apps, WebAR, WebGL & PWAs 29 | So I think Lvr is now ready to be released :) 30 | 31 | I will keep the usual branch model. 32 | 33 | * Stable release on `master` branch 34 | 35 | --- 36 | 37 | ## Thanks 38 | * [Google](https://www.google.com) - for [Polymer](https://polymer-project.org) 39 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at liyascthomas@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Introduction 2 | 3 | ### Write something nice here! 4 | 5 | >First off, thank you for considering contributing to Active Admin. It's people like you that make Active Admin such a great tool. 6 | 7 | [source: [Active Admin](https://github.com/activeadmin/activeadmin/blob/master/CONTRIBUTING.md)] **Need more inspiration?** [1] [Read The Docs](http://read-the-docs.readthedocs.org/en/latest/contribute.html) [2] [Mustache.js](https://github.com/janl/mustache.js/#contributing) 8 | 9 | ### Tell them why they should read your guidelines. 10 | 11 | >Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue, assessing changes, and helping you finalize your pull requests. 12 | 13 | [source: [Hoodie](https://github.com/hoodiehq/hoodie/blob/master/CONTRIBUTING.md)] 14 | 15 | ### Explain what kinds of contributions you are looking for. 16 | 17 | Keep an open mind! Improving documentation, bug triaging, or writing tutorials are all examples of helpful contributions that mean less work for you. 18 | 19 | > Elasticsearch is an open source project and we love to receive contributions from our community — you! There are many ways to contribute, from writing tutorials or blog posts, improving the documentation, submitting bug reports and feature requests or writing code which can be incorporated into Elasticsearch itself. 20 | 21 | [source: [Elasticsearch](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md)] **Need more inspiration?** [1] [Devise](https://github.com/plataformatec/devise/wiki/Contributing) [2] [Geocoder](https://github.com/alexreisner/geocoder#known-issue) (“known issue”) 22 | 23 | ### Explain contributions you are NOT looking for (if any). 24 | 25 | Again, defining this up front means less work for you. If someone ignores your guide and submits something you don’t want, you can simply close it and point to your policy. 26 | 27 | > Please, don't use the issue tracker for [support questions]. Check whether the #pocoo IRC channel on Freenode can help with your issue. If your problem is not strictly Werkzeug or Flask specific, #python is generally more active. Stack Overflow is also worth considering. 28 | 29 | [source: [Flask](https://github.com/pallets/flask/blob/master/CONTRIBUTING.rst)] **Need more inspiration?** [1] [cucumber-ruby](https://github.com/cucumber/cucumber-ruby/blob/master/CONTRIBUTING.md#about-to-create-a-new-github-issue) [2] [Read the Docs](http://read-the-docs.readthedocs.org/en/latest/open-source-philosophy.html#unsupported) 30 | 31 | # Ground Rules 32 | ### Set expectations for behavior (yours, and theirs). 33 | This includes not just how to communicate with others (being respectful, considerate, etc) but also technical responsibilities (importance of testing, project dependencies, etc). Mention and link to your code of conduct, if you have one. 34 | 35 | > Responsibilities 36 | > * Ensure cross-platform compatibility for every change that's accepted. Windows, Mac, Debian & Ubuntu Linux. 37 | > * Ensure that code that goes into core meets all requirements in this checklist: https://gist.github.com/audreyr/4feef90445b9680475f2 38 | > * Create issues for any major changes and enhancements that you wish to make. Discuss things transparently and get community feedback. 39 | > * Don't add any classes to the codebase unless absolutely needed. Err on the side of using functions. 40 | > * Keep feature versions as small as possible, preferably one new feature per version. 41 | > * Be welcoming to newcomers and encourage diverse new contributors from all backgrounds. See the [Python Community Code of Conduct](https://www.python.org/psf/codeofconduct/). 42 | 43 | [source: [cookiecutter](https://github.com/audreyr/cookiecutter/blob/master/CONTRIBUTING.rst)] **Need more inspiration?** [1] [Celery](https://github.com/celery/celery/blob/master/CONTRIBUTING.rst#community-code-of-conduct) [2] [geocoder](https://github.com/alexreisner/geocoder#contributing) 44 | 45 | # Your First Contribution 46 | Help people who are new to your project understand where they can be most helpful. This is also a good time to let people know if you follow a label convention for flagging beginner issues. 47 | 48 | > Unsure where to begin contributing to Atom? You can start by looking through these beginner and help-wanted issues: 49 | > Beginner issues - issues which should only require a few lines of code, and a test or two. 50 | > Help wanted issues - issues which should be a bit more involved than beginner issues. 51 | > Both issue lists are sorted by total number of comments. While not perfect, number of comments is a reasonable proxy for impact a given change will have. 52 | 53 | [source: [Atom](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#your-first-code-contribution)] **Need more inspiration?** [1] [Read the Docs](http://docs.readthedocs.org/en/latest/contribute.html#contributing-to-development) [2] [Django](https://docs.djangoproject.com/en/dev/internals/contributing/new-contributors/#first-steps) (scroll down to "Guidelines" as well) 54 | 55 | ### Bonus points: Add a link to a resource for people who have never contributed to open source before. 56 | Here are a couple of friendly tutorials you can include: http://makeapullrequest.com/ and http://www.firsttimersonly.com/ 57 | 58 | > Working on your first Pull Request? You can learn how from this *free* series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github). 59 | 60 | [source: [React](https://github.com/facebook/react/blob/master/CONTRIBUTING.md#pull-requests)] 61 | 62 | As a side note, it helps to use newcomer-friendly language throughout the rest of your document. Here are a couple of examples from [Active Admin](https://github.com/activeadmin/activeadmin/blob/master/CONTRIBUTING.md): 63 | 64 | >At this point, you're ready to make your changes! Feel free to ask for help; everyone is a beginner at first :smile_cat: 65 | > 66 | >If a maintainer asks you to "rebase" your PR, they're saying that a lot of code has changed, and that you need to update your branch so it's easier to merge. 67 | 68 | # Getting started 69 | ### Give them a quick walkthrough of how to submit a contribution. 70 | How you write this is up to you, but some things you may want to include: 71 | 72 | * Let them know if they need to sign a CLA, agree to a DCO, or get any other legal stuff out of the way 73 | * If tests are required for contributions, let them know, and explain how to run the tests 74 | * If you use anything other than GitHub to manage issues (ex. JIRA or Trac), let them know which tools they’ll need to contribute 75 | 76 | >For something that is bigger than a one or two line fix: 77 | 78 | >1. Create your own fork of the code 79 | >2. Do the changes in your fork 80 | >3. If you like the change and think the project could use it: 81 | * Be sure you have followed the code style for the project. 82 | * Sign the Contributor License Agreement, CLA, with the jQuery Foundation. 83 | * Note the jQuery Foundation Code of Conduct. 84 | * Send a pull request indicating that you have a CLA on file. 85 | 86 | [source: [Requirejs](http://requirejs.org/docs/contributing.html)] **Need more inspiration?** [1] [Active Admin](https://github.com/activeadmin/activeadmin/blob/master/CONTRIBUTING.md#1-where-do-i-go-from-here) [2] [Node.js](https://github.com/nodejs/node/blob/master/CONTRIBUTING.md#code-contributions) [3] [Ember.js](https://github.com/emberjs/ember.js/blob/master/CONTRIBUTING.md#pull-requests) 87 | 88 | ### If you have a different process for small or "obvious" fixes, let them know. 89 | 90 | > Small contributions such as fixing spelling errors, where the content is small enough to not be considered intellectual property, can be submitted by a contributor as a patch, without a CLA. 91 | > 92 | >As a rule of thumb, changes are obvious fixes if they do not introduce any new functionality or creative thinking. As long as the change does not affect functionality, some likely examples include the following: 93 | >* Spelling / grammar fixes 94 | >* Typo correction, white space and formatting changes 95 | >* Comment clean up 96 | >* Bug fixes that change default return values or error codes stored in constants 97 | >* Adding logging messages or debugging output 98 | >* Changes to ‘metadata’ files like Gemfile, .gitignore, build scripts, etc. 99 | >* Moving source files from one directory or package to another 100 | 101 | [source: [Chef](https://github.com/chef/chef/blob/master/CONTRIBUTING.md#chef-obvious-fix-policy)] **Need more inspiration?** [1] [Puppet](https://github.com/puppetlabs/puppet/blob/master/CONTRIBUTING.md#making-trivial-changes) 102 | 103 | # How to report a bug 104 | ### Explain security disclosures first! 105 | At bare minimum, include this sentence: 106 | > If you find a security vulnerability, do NOT open an issue. Email XXXX instead. 107 | 108 | If you don’t want to use your personal contact information, set up a “security@” email address. Larger projects might have more formal processes for disclosing security, including encrypted communication. (Disclosure: I am not a security expert.) 109 | 110 | > Any security issues should be submitted directly to security@travis-ci.org 111 | > In order to determine whether you are dealing with a security issue, ask yourself these two questions: 112 | > * Can I access something that's not mine, or something I shouldn't have access to? 113 | > * Can I disable something for other people? 114 | > 115 | > If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just email us at security@travis-ci.org. 116 | 117 | [source: [Travis CI](https://github.com/travis-ci/travis-ci/blob/master/CONTRIBUTING.md)] **Need more inspiration?** [1] [Celery](https://github.com/celery/celery/blob/master/CONTRIBUTING.rst#security) [2] [Express.js](https://github.com/expressjs/express/blob/master/Security.md) 118 | 119 | ### Tell your contributors how to file a bug report. 120 | You can even include a template so people can just copy-paste (again, less work for you). 121 | 122 | > When filing an issue, make sure to answer these five questions: 123 | > 124 | > 1. What version of Go are you using (go version)? 125 | > 2. What operating system and processor architecture are you using? 126 | > 3. What did you do? 127 | > 4. What did you expect to see? 128 | > 5. What did you see instead? 129 | > General questions should go to the golang-nuts mailing list instead of the issue tracker. The gophers there will answer or ask you to file an issue if you've tripped over a bug. 130 | 131 | [source: [Go](https://github.com/golang/go/blob/master/CONTRIBUTING.md#filing-issues)] **Need more inspiration?** [1] [Celery](https://github.com/celery/celery/blob/master/CONTRIBUTING.rst#other-bugs ) [2] [Atom](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#reporting-bugs) (includes template) 132 | 133 | # How to suggest a feature or enhancement 134 | ### If you have a particular roadmap, goals, or philosophy for development, share it here. 135 | This information will give contributors context before they make suggestions that may not align with the project’s needs. 136 | 137 | > The Express philosophy is to provide small, robust tooling for HTTP servers, making it a great solution for single page applications, web sites, hybrids, or public HTTP APIs. 138 | > 139 | > Express does not force you to use any specific ORM or template engine. With support for over 14 template engines via Consolidate.js, you can quickly craft your perfect framework. 140 | 141 | [source: [Express](https://github.com/expressjs/express#philosophy)] **Need more inspiration?** [Active Admin](https://github.com/activeadmin/activeadmin#goals) 142 | 143 | ### Explain your desired process for suggesting a feature. 144 | If there is back-and-forth or signoff required, say so. Ask them to scope the feature, thinking through why it’s needed and how it might work. 145 | 146 | > If you find yourself wishing for a feature that doesn't exist in Elasticsearch, you are probably not alone. There are bound to be others out there with similar needs. Many of the features that Elasticsearch has today have been added because our users saw the need. Open an issue on our issues list on GitHub which describes the feature you would like to see, why you need it, and how it should work. 147 | 148 | [source: [Elasticsearch](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md#feature-requests)] **Need more inspiration?** [1] [Hoodie](https://github.com/hoodiehq/hoodie/blob/master/CONTRIBUTING.md#feature-requests) [2] [Ember.js](https://github.com/emberjs/ember.js/blob/master/CONTRIBUTING.md#requesting-a-feature) 149 | 150 | # Code review process 151 | ### Explain how a contribution gets accepted after it’s been submitted. 152 | Who reviews it? Who needs to sign off before it’s accepted? When should a contributor expect to hear from you? How can contributors get commit access, if at all? 153 | 154 | > The core team looks at Pull Requests on a regular basis in a weekly triage meeting that we hold in a public Google Hangout. The hangout is announced in the weekly status updates that are sent to the puppet-dev list. Notes are posted to the Puppet Community community-triage repo and include a link to a YouTube recording of the hangout. 155 | > After feedback has been given we expect responses within two weeks. After two weeks we may close the pull request if it isn't showing any activity. 156 | 157 | [source: [Puppet](https://github.com/puppetlabs/puppet/blob/master/CONTRIBUTING.md#submitting-changes)] **Need more inspiration?** [1] [Meteor](https://meteor.hackpad.com/Responding-to-GitHub-Issues-SKE2u3tkSiH ) [2] [Express.js](https://github.com/expressjs/express/blob/master/Contributing.md#becoming-a-committer) 158 | 159 | # Community 160 | If there are other channels you use besides GitHub to discuss contributions, mention them here. You can also list the author, maintainers, and/or contributors here, or set expectations for response time. 161 | 162 | > You can chat with the core team on https://gitter.im/cucumber/cucumber. We try to have office hours on Fridays. 163 | 164 | [source: [cucumber-ruby](https://github.com/cucumber/cucumber-ruby/blob/master/CONTRIBUTING.md#talking-with-other-devs)] **Need more inspiration?** 165 | [1] [Chef](https://github.com/chef/chef/blob/master/CONTRIBUTING.md#-developer-office-hours) [2] [Cookiecutter](https://github.com/audreyr/cookiecutter#community) 166 | 167 | # BONUS: Code, commit message and labeling conventions 168 | These sections are not necessary, but can help streamline the contributions you receive. 169 | 170 | ### Explain your preferred style for code, if you have any. 171 | 172 | **Need inspiration?** [1] [Requirejs](http://requirejs.org/docs/contributing.html#codestyle) [2] [Elasticsearch](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md#contributing-to-the-elasticsearch-codebase) 173 | 174 | ### Explain if you use any commit message conventions. 175 | 176 | **Need inspiration?** [1] [Angular](https://github.com/angular/material/blob/master/.github/CONTRIBUTING.md#submit) [2] [Node.js](https://github.com/nodejs/node/blob/master/CONTRIBUTING.md#step-3-commit) 177 | 178 | ### Explain if you use any labeling conventions for issues. 179 | 180 | **Need inspiration?** [1] [StandardIssueLabels](https://github.com/wagenet/StandardIssueLabels#standardissuelabels) [2] [Atom](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#issue-and-pull-request-labels) 181 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Liyas Thomas 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ``` 2 | When I wrote this, only God and I understood what I was doing. Now, only God knows. 3 | ``` 4 |
5 | Liyas Thomas 6 |
7 |

Liyas Thomas

8 | Built with ❤︎ by 9 | liyasthomas and 10 | contributors 11 | 12 |
13 | 14 | --- 15 | 16 | [![Build Status](https://travis-ci.org/liyasthomas/templates.svg?branch=master)](https://travis-ci.org/liyasthomas/templates) [![GitHub release](https://img.shields.io/github/release/liyasthomas/templates/all.svg)](https://github.com/liyasthomas/templates/releases/latest) [![repo size](https://img.shields.io/github/repo-size/liyasthomas/templates.svg)](https://github.com/liyasthomas/templates/archive/master.zip) [![license](https://img.shields.io/github/license/liyasthomas/templates.svg)](https://github.com/liyasthomas/templates/blob/master/LICENSE) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/liyasthomas/templates/issues) [![Website](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=website)](https://liyas-thomas.firebaseapp.com) [![Donate](https://img.shields.io/badge/$-donate-ff69b4.svg)](https://www.paypal.me/liyascthomas) 17 | 18 | # Templates Templates 19 | 20 | ### Description by [Liyas Thomas](https://github.com/liyasthomas) 21 | 22 |
23 |
24 | Templates 25 |
26 |
27 | 28 | ### Features :sparkles: 29 | 30 | :eyeglasses: **Virtual Reality made simple**: Description 1 31 | 32 | :heart: **Declarative HTML**: Description 2 33 | 34 | :electric_plug: **Entity-Component Architecture**: Description 3 35 | 36 | :zap: **Performance**: Description 4 37 | 38 | :globe_with_meridians: **Cross-Platform**: Description 5 39 | 40 | --- 41 | 42 | ## Getting started 43 | 44 | These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. 45 | 46 |
47 |
48 | Templates 49 |
50 |
51 | 52 | ### Prerequisites 53 | 54 | What things you need to install the software and how to install them. 55 | 56 | * A device which supports [WebGL](https://caniuse.com/#feat=webgl) and [WebRTC](https://caniuse.com/#feat=stream) with a working camera input 57 | * Internet connection 58 | * A web browser 59 | * [Wonder](https://en.wikipedia.org/wiki/Wonder_(emotion))! :heart: 60 | 61 |
62 |
63 | Templates 64 |
65 |
66 |
67 | 68 | ### Demo: Try it on mobile :iphone: 69 | 70 | It works on all platforms. Android, iOS and Windows phone. It runs on **any browser with [WebGL](https://caniuse.com/#feat=webgl) and [WebRTC](https://caniuse.com/#feat=stream)** (for iOS, you need to update to iOS 11). 71 | 72 | Try on your phone in only two easy steps, check it out! 73 | 74 | 1. Step 1 75 | 2. Step 2 76 | 77 | You're done! 78 | 79 |
80 |
81 | Templates 82 |
83 |
84 | 85 | ### Installing 86 | 87 | A step by step series of examples that tell you've to get a development environment running. 88 | 89 | 1. Download the whole zip/clone the repository. 90 | 2. Unzip and make changes. 91 | 3. Save and deploy to any hosting platforms like Firebase, GitHub pages etc. 92 | 93 | --- 94 | 95 | ## Running the tests 96 | 97 | Explain how to run the automated tests for this system. 98 | 99 | ### Break down into end to end tests 100 | 101 | Explain what these tests test and why. 102 | 103 | ``` 104 | Will be explained later 105 | ``` 106 | 107 | ### And coding style tests 108 | 109 | Explain what these tests test and why. 110 | 111 | ``` 112 | Will be explained later 113 | ``` 114 | 115 | --- 116 | 117 | ## Deployment 118 | 119 | Add additional notes about how to deploy this on a live system. 120 | 121 | ``` 122 | Will be explained later 123 | ``` 124 | 125 | --- 126 | 127 | ## Built with 128 | 129 | * **[Sample](https://www.google.com)** - Sample 130 | * [Sample](https://www.google.com) - Sample 131 | * **[Chromium](https://github.com/chromium/chromium)** - Thanks for being so fast! 132 | * HTML - For the web framework 133 | * CSS - For styling components 134 | 135 | --- 136 | 137 | ## Contributing 138 | 139 | Please read [CONTRIBUTING](CONTRIBUTING.md) for details on our [CODE OF CONDUCT](CODE_OF_CONDUCT.md), and the process for submitting pull requests to us. 140 | 141 | --- 142 | 143 | ## Continuous Integration 144 | 145 | We use [Travis CI](https://travis-ci.com) for continuous integration. Check out our [Travis CI Status](https://travis-ci.org/liyasthomas/templates). 146 | 147 | --- 148 | 149 | ## Versioning 150 | 151 | This project is developed by [Liyas Thomas](https://github.com/liyasthomas) using the [Semantic Versioning specification](https://semver.org). For the versions available, see the [releases on this repository](https://github.com/liyasthomas/templates/releases). 152 | 153 | --- 154 | 155 | ## Change log 156 | 157 | See the [CHANGELOG](CHANGELOG.md) file for details. 158 | 159 | --- 160 | 161 | ## Authors 162 | 163 | ### Lead Developers 164 | * [**Liyas Thomas**](https://github.com/liyasthomas) - *Author* 165 | 166 | ### Testing and Debugging 167 | * [Liyas Thomas](https://github.com/liyasthomas) 168 | 169 | ### Contributors 170 | * [Liyas Thomas](https://github.com/liyasthomas) 171 | 172 | ### Thanks 173 | * [Sample](https://www.google.com) - For [Sample](https://www.google.com) 174 | 175 | See the list of [contributors](https://github.com/liyasthomas/templates/graphs/contributors) who participated in this project. 176 | 177 | --- 178 | 179 | ## License 180 | 181 | This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details. 182 | 183 | --- 184 | 185 | ## Acknowledgments 186 | 187 | * Hat tip to anyone who's code was used 188 | * Inspirations: 189 | * [Sample](https://www.google.com) 190 | -------------------------------------------------------------------------------- /assets/codercat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liyasthomas/templates/6b88f50d93f97b92f0903f74a4f7fc75d05d4f46/assets/codercat.jpg -------------------------------------------------------------------------------- /assets/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liyasthomas/templates/6b88f50d93f97b92f0903f74a4f7fc75d05d4f46/assets/logo.gif -------------------------------------------------------------------------------- /assets/nyantocat.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liyasthomas/templates/6b88f50d93f97b92f0903f74a4f7fc75d05d4f46/assets/nyantocat.gif -------------------------------------------------------------------------------- /assets/old_logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liyasthomas/templates/6b88f50d93f97b92f0903f74a4f7fc75d05d4f46/assets/old_logo.gif -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Templates", 3 | "short_name": "Templates", 4 | "description": "My collection of reusable templates and assets", 5 | "scope": "/templates/", 6 | "start_url": "/templates/", 7 | "display": "standalone", 8 | "orientation": "any", 9 | "theme_color": "#fff", 10 | "background_color": "#fff", 11 | "icons": [ 12 | { 13 | "src": "assets/images/favicon.png", 14 | "sizes": "512x512", 15 | "type": "image/png" 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "templates", 3 | "repository": { 4 | "type": "git", 5 | "url": "https://github.com/liyasthomas/templates.git" 6 | }, 7 | "description": "My collection of reusable templates and assets by Liyas Thomas", 8 | "author": "@liyasthomas", 9 | "version": "1.0.0", 10 | "devDependencies": { 11 | "jshint": "^2.10.2" 12 | }, 13 | "scripts": { 14 | "test": "jshint travis.js" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /styles.css: -------------------------------------------------------------------------------- 1 | html { 2 | box-sizing: border-box; 3 | } 4 | 5 | *, 6 | *::before, 7 | *::after { 8 | box-sizing: inherit; 9 | } 10 | 11 | body, 12 | h1, 13 | h2, 14 | h3, 15 | h4, 16 | h5, 17 | h6, 18 | ul, 19 | ol, 20 | li, 21 | p, 22 | pre, 23 | blockquote, 24 | figure, 25 | hr { 26 | margin: 0; 27 | padding: 0; 28 | } 29 | 30 | ul { 31 | list-style: none; 32 | } 33 | 34 | input, 35 | textarea, 36 | select, 37 | button { 38 | color: inherit; 39 | letter-spacing: inherit; 40 | font: inherit; 41 | } 42 | -------------------------------------------------------------------------------- /sw.js: -------------------------------------------------------------------------------- 1 | importScripts('https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js'); 2 | if (workbox) { 3 | console.log(`Yay! Workbox is loaded 🎉`); 4 | } else { 5 | console.log(`Boo! Workbox didn't load 😬`); 6 | } 7 | workbox.routing.registerRoute( 8 | new RegExp('.*\.js'), 9 | new workbox.strategies.NetworkFirst() 10 | ); 11 | workbox.routing.registerRoute( 12 | // Cache CSS files. 13 | /\.css$/, 14 | // Use cache but update in the background. 15 | new workbox.strategies.StaleWhileRevalidate({ 16 | // Use a custom cache name. 17 | cacheName: 'css-cache', 18 | }) 19 | ); 20 | workbox.routing.registerRoute( 21 | // Cache image files. 22 | /\.(?:png|jpg|jpeg|svg|gif)$/, 23 | // Use the cache if it's available. 24 | new workbox.strategies.CacheFirst({ 25 | // Use a custom cache name. 26 | cacheName: 'image-cache', 27 | plugins: [ 28 | new workbox.expiration.Plugin({ 29 | // Cache only 20 images. 30 | maxEntries: 20, 31 | // Cache for a maximum of a week. 32 | maxAgeSeconds: 7 * 24 * 60 * 60, 33 | }) 34 | ], 35 | }) 36 | ); 37 | workbox.precaching.precacheAndRoute([ 38 | '/templates/assets/css/style.min.css', 39 | '/templates/assets/js/script.min.js', 40 | { 41 | url: '/templates/index.html', 42 | revision: '383676' 43 | }, 44 | ]); 45 | var CACHE_VERSION = 1; 46 | var CURRENT_CACHES = { 47 | prefetch: 'prefetch-cache-v' + CACHE_VERSION 48 | }; 49 | self.addEventListener('install', function (event) { 50 | var now = Date.now(); 51 | var urlsToPrefetch = [ 52 | 'index.html' 53 | ]; 54 | // All of these logging statements should be visible via the "Inspect" interface 55 | // for the relevant SW accessed via chrome://serviceworker-internals 56 | console.log('Handling install event. Resources to prefetch:', urlsToPrefetch); 57 | event.waitUntil( 58 | caches.open(CURRENT_CACHES.prefetch).then(function (cache) { 59 | var cachePromises = urlsToPrefetch.map(function (urlToPrefetch) { 60 | // This constructs a new URL object using the service worker's script location as the base 61 | // for relative URLs. 62 | var url = new URL(urlToPrefetch, location.href); 63 | // Append a cache-bust=TIMESTAMP URL parameter to each URL's query string. 64 | // This is particularly important when precaching resources that are later used in the 65 | // fetch handler as responses directly, without consulting the network (i.e. cache-first). 66 | // If we were to get back a response from the HTTP browser cache for this precaching request 67 | // then that stale response would be used indefinitely, or at least until the next time 68 | // the service worker script changes triggering the install flow. 69 | url.search += (url.search ? '&' : '?') + 'cache-bust=' + now; 70 | // It's very important to use {mode: 'no-cors'} if there is any chance that 71 | // the resources being fetched are served off of a server that doesn't support 72 | // CORS (http://en.wikipedia.org/wiki/Cross-origin_resource_sharing). 73 | // In this example, www.chromium.org doesn't support CORS, and the fetch() 74 | // would fail if the default mode of 'cors' was used for the fetch() request. 75 | // The drawback of hardcoding {mode: 'no-cors'} is that the response from all 76 | // cross-origin hosts will always be opaque 77 | // (https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cross-origin-resources) 78 | // and it is not possible to determine whether an opaque response represents a success or failure 79 | // (https://github.com/whatwg/fetch/issues/14). 80 | var request = new Request(url, { 81 | mode: 'no-cors' 82 | }); 83 | return fetch(request).then(function (response) { 84 | if (response.status >= 400) { 85 | throw new Error('request for ' + urlToPrefetch + 86 | ' failed with status ' + response.statusText); 87 | } 88 | // Use the original URL without the cache-busting parameter as the key for cache.put(). 89 | return cache.put(urlToPrefetch, response); 90 | }).catch(function (error) { 91 | console.error('Not caching ' + urlToPrefetch + ' due to ' + error); 92 | }); 93 | }); 94 | return Promise.all(cachePromises).then(function () { 95 | console.log('Pre-fetching complete.'); 96 | }); 97 | }).catch(function (error) { 98 | console.error('Pre-fetching failed:', error); 99 | }) 100 | ); 101 | }); 102 | self.addEventListener('activate', function (event) { 103 | // Delete all caches that aren't named in CURRENT_CACHES. 104 | // While there is only one cache in this example, the same logic will handle the case where 105 | // there are multiple versioned caches. 106 | var expectedCacheNames = Object.keys(CURRENT_CACHES).map(function (key) { 107 | return CURRENT_CACHES[key]; 108 | }); 109 | event.waitUntil( 110 | caches.keys().then(function (cacheNames) { 111 | return Promise.all( 112 | cacheNames.map(function (cacheName) { 113 | if (expectedCacheNames.indexOf(cacheName) === -1) { 114 | // If this cache name isn't present in the array of "expected" cache names, then delete it. 115 | console.log('Deleting out of date cache:', cacheName); 116 | return caches.delete(cacheName); 117 | } 118 | }) 119 | ); 120 | }) 121 | ); 122 | }); 123 | self.addEventListener('fetch', function (event) { 124 | console.log('Handling fetch event for', event.request.url); 125 | event.respondWith( 126 | // caches.match() will look for a cache entry in all of the caches available to the service worker. 127 | // It's an alternative to first opening a specific named cache and then matching on that. 128 | caches.match(event.request).then(function (response) { 129 | if (response) { 130 | console.log('Found response in cache:', response); 131 | return response; 132 | } 133 | console.log('No response found in cache. About to fetch from network...'); 134 | // event.request will always have the proper mode set ('cors, 'no-cors', etc.) so we don't 135 | // have to hardcode 'no-cors' like we do when fetch()ing in the install handler. 136 | return fetch(event.request).then(function (response) { 137 | console.log('Response from network is:', response); 138 | return response; 139 | }).catch(function (error) { 140 | // This catch() will handle exceptions thrown from the fetch() operation. 141 | // Note that a HTTP error response (e.g. 404) will NOT trigger an exception. 142 | // It will return a normal response object that has the appropriate error code set. 143 | console.error('Fetching failed:', error); 144 | throw error; 145 | }); 146 | }) 147 | ); 148 | }); 149 | -------------------------------------------------------------------------------- /travis.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | http.createServer(function (req, res) { 3 | res.writeHead(200, { 4 | 'Content-Type': 'text/plain' 5 | }); 6 | res.end('Travis!\n'); // build should pass now! 7 | }).listen(1337, '127.0.0.1'); 8 | console.log('Server running at http://127.0.0.1:1337/'); 9 | --------------------------------------------------------------------------------