Ricardo Maltez c2247c41d0 Code improvements suggested by @DzhideX | 3 éve | |
---|---|---|
.. | ||
.storybook | 4 éve | |
docker | 4 éve | |
img | 4 éve | |
packages | 3 éve | |
scripts | 4 éve | |
test | 4 éve | |
.123trigger | 4 éve | |
.babelrc.js | 4 éve | |
.codeclimate.yml | 4 éve | |
.dockerignore | 4 éve | |
.editorconfig | 4 éve | |
.env-example | 4 éve | |
.eslintignore | 4 éve | |
.eslintrc.js | 4 éve | |
.gitignore | 4 éve | |
.gitlab-ci.yml | 4 éve | |
.npmignore | 4 éve | |
.nvmrc | 4 éve | |
.prettierignore | 4 éve | |
.stylelintrc | 4 éve | |
.travis.yml | 4 éve | |
BOUNTIES.md | 4 éve | |
CHANGELOG.md | 4 éve | |
CONTRIBUTING.md | 4 éve | |
Dockerfile | 4 éve | |
I18N.md | 4 éve | |
LICENSE | 4 éve | |
README.md | 3 éve | |
babel.config.js | 4 éve | |
deployment.extras.yml | 4 éve | |
deployment.template.yml | 4 éve | |
env.sh | 4 éve | |
gh-pages-refresh.sh | 4 éve | |
i18next-scanner.config.js | 4 éve | |
jest.config.js | 4 éve | |
lerna.json | 4 éve | |
package.json | 3 éve | |
tsconfig.json | 4 éve | |
tsfmt.json | 4 éve | |
types.json | 4 éve | |
yarn.lock | 4 éve |
A Portal into the Joystream network. Provides a view and interaction layer from a browser.
This can be accessed as a hosted application via https://testnet.joystream.org.
The repo is split into a number of packages, each representing an application. These are -
In addition the following libraries are also included in the repo. These are to be moved to the @polkadot/ui repository once it reaches a base level of stability and usability. (At this point with the framework being tested on the apps above, it makes development easier having it close)
Contributions are welcome!
To start off, this repo (along with others in the @polkadot family) uses yarn workspaces to organise the code. As such, after cloning dependencies should be installed via yarn
, not via npm, the latter will result in broken dependencies.
To get started -
git clone https://github.com/joystream/joystream <optional local path>
yarn
yarn run start
There is a StoryBook implementation, the UI for which can be started with yarn storybook
and then accessed in a browser via http://localhost:3001 (and the server will open a new browser tab by default when it starts).
Story code can be placed anywhere in the packages
directory, and will be detected as long as the file name ends in `.stories.tsx. Stories should be defined in the Component Story Format (CSF) for consistency.
There are several StoryBook addons available, the most useful of which is Knobs, which allows props to be altered in real time.
Note that currently StoryBook only allows for stateless components; it has no connection to polkadot.js or any Substrate node. This means that existing components, which are often tightly coupled with the Polkadot API, cannot be used in storybook.