gradio/js
Freddy Boulton 469fabdaba
Final touches main (#6174)
* remove pinned version

* Remove pins

* add changeset

---------

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-31 01:59:23 -04:00
..
_cdn-test Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
_spaces-test Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
_website Final touches main (#6174) 2023-10-31 01:59:23 -04:00
accordion strip dangling svelte imports (#6171) 2023-10-31 05:31:33 +00:00
annotatedimage Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
app Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
atoms Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
audio Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
box Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
button Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
chatbot Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
checkbox Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
checkboxgroup Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
code Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
colorpicker Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
column Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
dataframe Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
dataset Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
dropdown Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
fallback Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
file strip dangling svelte imports (#6171) 2023-10-31 05:31:33 +00:00
fileexplorer Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
form Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
gallery Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
group Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
highlightedtext Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
html Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
icons Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
image strip dangling svelte imports (#6171) 2023-10-31 05:31:33 +00:00
json Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
label Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
lite Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
markdown Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
model3D strip dangling svelte imports (#6171) 2023-10-31 05:31:33 +00:00
number Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
plot Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
preview strip dangling svelte imports (#6171) 2023-10-31 05:31:33 +00:00
radio Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
row Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
simpledropdown Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
simpletextbox Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
slider Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
state Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
statustracker Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
storybook Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
tabitem Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
tabs Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
textbox Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
theme Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
tooltip Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
tootils Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
upload Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
uploadbutton Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
utils Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
video Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
wasm Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
.npmrc
jsx.d.ts update deps + fix tests (#4675) 2023-06-28 22:40:53 +01:00
README.md

gradio-ui

This folder contains all of the Gradio UI and component source code.

setup

This folder is managed as 'monorepo' a multi-package repository which make dependency management very simple. In order to do this we use pnpm as our package manager.

Make sure pnpm is installed by following the installation instructions for your system.

You will also need node which you probably already have

running the application

Install all dependencies:

pnpm i

This will install the dependencies for all packages and link any local packages

local development

To develop locally, open two terminal tabs from the root of the repository.

Run the python test server, from the root directory:

cd demo/kitchen_sink
python run.py

This will start a development server on port 7860 that the web app is expecting.

Run the web app:

pnpm dev

building for production

Run the build:

pnpm build

This will create the necessary files in js/app/public and also in gradio/templates/frontend.

quality checks

The repos currently has two quality checks that can be run locally and are run in CI.

formatting

Formatting is handled by prettier to ensure consistent formatting and prevent style-focused conversations. Formatting failures will fails CI and should be reoslve before merging.

To check formatting:

pnpm format:check

If you have formatting failures then you can run the following command to fix them:

pnpm format:write

type checking

We use TypeScript to provide static types to javascript code. These checks are also run in CI.

to typecheck the code:

pnpm ts:check

ci checks

Currently the following checks are run in CI:

static checks

  • Format check (pnpm format:check)
  • Build css (pnpm css)
  • Build client (pnpm build)
  • Type check (pnpm ts:check)
  • Unit tests (pnpm test:run)

functional test

pip install -r demo/outbreak_forecast/requirements.txt
pnpm exec playwright install chromium
pnpm exec playwright install-deps chromium
pnpm test:browser:full