ghost-portal/packages/app-123code
Jaco Greeff 96615d5957
Bump UI, HDKD keyring (new substrate crypto) (#813)
* Bump UI, HDKD keyring (new substrate crypto)

* Bump ui/* versions

* Pull in latest util-crypto, bp39 fix

* Bump common

* Small enhancements, cleanups (testing WIP)

* Bump

* Update after merge

* Bumps, fix transfer calculation (value may be non-existent)

* Bumpo dependencies

* Label extrinsic hash

* Signature updates

* Update deps

* Adjust status display

* Close status items on click

* Update withRouter duplication

* API bump, (some) creation fixes

* Move bip39 out of the worker (fast enough now via WASM)

* Update after master merge

* Cleanup deps (re-write yarn.lock)
2019-03-20 17:06:29 +01:00
..
src Remove /index imports (swap to bare) (#814) 2019-03-14 10:45:58 +01:00
LICENSE Node status app (#618) 2019-01-19 22:18:35 +01:00
package.json Bump UI, HDKD keyring (new substrate crypto) (#813) 2019-03-20 17:06:29 +01:00
README.md Auto-add all packages to webpack alias (#798) 2019-03-12 13:01:37 +01:00

@polkadot/app-123code

A simple template to get started with adding an "app" to this UI. It contains the bare minimum for a nicely hackable app (if you just want to code somewhere) and the steps needed to create, add and register an new app that appears in the UI.

adding an app

If you want to add a new app to the UI, this is the place to start.

  1. Duplicate this app-123code folder and give it an appropriate name, in this case we will select app-example to keep things clear.
  2. Edit the apps-example/package.json app description, i.e. the name, author and relevant overview.

And we have the basic app source setup, time to get the tooling correct.

  1. Add the new app to the TypeScript config in root, tsconfig.json, i.e. an entry such as "@polkadot/app-example/*": [ "packages/app-example/src/*" ],

At this point the app should be buildable, but not quite reachable. The final step is to add it to the actual sidebar in apps.

  1. In apps/src/routing/ duplicate the 123code.ts file to example.ts and edit it with the appropriate information, including the hash link, name and icon (any icon name from semantic-ui-react/font-awesome 4 should be appropriate).
  2. In the above description file, the isHidden field needs to be toggled to make it appear - the base template is hidden by default.
  3. Finally add the template to the apps/src/routing/index.ts file at the appropriate place for both full and light mode (either optional)

Yes. After all that we have things hooked up. Run yarn start and your new app (non-coded) should show up. Now start having fun and building something great.