Giter Site home page Giter Site logo

twister-html's Introduction

twister-html

HTML interface for twister (see git repo here). It is a FOSS which is being under heavy construction.

To use it, clone this repo under ~/.twister/html like this:

git clone https://github.com/miguelfreitas/twister-html.git ~/.twister/html

If you're on Mac OS X โ€” clone to ${HOME}/Library/Application\ Support/Twister/html instead of ~/.twister/html

Be on the bleeding edge

All nightly improvements and following fixes of these improvements are tested in blaster branch. To be sure you are at the forefront, in stage of lack of testing and consensus:

git pull && git checkout blaster

If you want to switch back to stable branch:

git checkout master

Follow @letstwist in twister to be aware of recent changes. In case of getting of twister-html related buzz from it:

git pull

Contribute

Feel free to fork and send pull requests!

To make it easier for us to accept your patches, please follow the conventional GitHub workflow and keep in mind that your pull requests should have blaster branch as both the origin and target.

  1. After forking, clone your repo:

     rm -rf ~/.twister/html  # in case you already have it cloned from not your repo
     git clone [email protected]:YOURNICKNAME/twister-html.git ~/.twister/html
     cd ~/.twister/html
    
  2. Switch to 'blaster' branch:

     git checkout blaster
    
  3. CREATE A NEW BRANCH, specific to the fix you're implementing:

     git checkout -b my-awesome-fix
    
  4. Make your changes.

  5. Commit and push:

     git commit -m "fix of #12345: bad foobarizer" && git push
    
  6. Now open a pull request from branch 'YOURNICKNAME:my-awesome-fix' to 'miguelfreitas:blaster' on GitHub.

  7. Once the request is accepted, switch back to 'blaster' and track changes in upstream repo:

     git remote add upstream https://github.com/miguelfreitas/twister-html.git  # this is one-off setup
     git fetch upstream && git checkout blaster
     git merge upstream/blaster  # you should get a fast-forward message here
     git push
    

Translations

If you want to add your own translation, edit interface_localization.js like this:

  1. Fork the repo and create a new branch from 'blaster' one:

     git clone [email protected]:YOURNICKNAME/twister-html.git ~/.twister/html
     cd ~/.twister/html && git checkout blaster
     git checkout -b Klingon-translation
    
  2. Add your language to the list of available choices. You should use your ISO code here, it should match what the browser reports. The Klingon ISO is 'tlh', so:

     var knownLanguages = ['en', 'nl', 'it', 'fr', ... , 'ru', 'tlh'];
    

For multi-region languages, if you want to catch them all, use only the first half (e.g. to match it and it-ch, specify 'it').

  1. Add a new wordset block after existing ones:

     if (preferredLanguage === 'tlh') {
         polyglot.locale('tlh');
         wordset = {
             'Insults': 'mu\'qaD',
             ...
         }
     }
    
  2. Stage all changes in file interface_localization.js:

     git add interface_localization.js
    
  3. Commit & push:

     git commit -m 'Klingon translation'
     git push origin Klingon-translation
    
  4. Then open the pull request from branch 'YOURNICKNAME:Klingon-translation' to 'miguelfreitas:blaster' on GitHub.

For any help ping @tasty in twister.

twister-html's People

Contributors

miguelfreitas avatar erqan avatar toyg avatar tschaul avatar blocktester avatar dionyziz avatar basst85 avatar digital-dreamer avatar erkan-yilmaz avatar misjoinder avatar dryabov avatar ishift avatar milouse avatar amarprabhu avatar xfq avatar architecti avatar yfdyh000 avatar juanda097 avatar yawara avatar nergal avatar kissge avatar gubatron avatar alhimik45 avatar yourtion avatar einperegrin avatar rbertoche avatar ddorian1 avatar earthengine avatar spheerys avatar wqeqwew avatar

Watchers

Adam J. Mendoza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.