Giter Site home page Giter Site logo

tree's Introduction

tree

tree is a single page app for browsing files in %clay and loading modular urbit apps, like talk.

tree is a fairly straightforward flux app. Because pages load inside of a react environment you can use JSX to invoke components found in components/ in this repo.

tree ships as compiled main.js and main.css on your urbit (in /home/web/tree). If you want to make changes or develop on top, you'll need these source files.

Developing

The desk/ folder in this repo mirrors a desk on an urbit planet. Source files live outside of this folder, we compile them in using watchify / sass and then copy the /desk onto the desk we're using for development on a planet.

Our sass depends on bootstrap mixins, so the urbit fork of bootstrap is included as a submodule.

First:

git submodule init
git submodule update --remote

Then:

npm install
npm run watch

Deploy

Simple:

cp -r desk/ [$desk_mountpoint]/

If you have urbit installed in ~/urbit with a planet called sampel-sipnym and have mounted the home desk:

cp -r desk/ ~/urbit/sampel-sipnym/home/

Then use the ?dbg.nopack=true query string to test:

http://localhost:8080/some/page?dbg.nopack=true

Your Urbit links to the concatenated JS / CSS by default. This query string loads the scripts directly. See below for more information.

Contributing

If you have a patch you'd like to contribute:

  • Test your changes using the above instructions
  • Fork this repo
  • Send us a pull request

Distribution

Compiled main.js and main.css get periodically shipped to the urbit core. Each time these compiled files are moved to urbit core their commit message should contain the sha-1 of the commit from this repo.

tree's People

Contributors

galenwp avatar ohaitch avatar knubie avatar

Watchers

 avatar James Cloos 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.