Skip to content

Commit efdc323

Browse files
pngwnwhitphxgradio-pr-bot
authored
Initial SSR refactor (gradio-app#9102)
* changes * asd * fix tests * fix lint * fix ts * fix ts * cleanup * cleanup * fix * Apply suggestions from code review Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com> * fix * add changeset * fix gitignore * fix changeset * fix lockfile * format * fix * add changeset * githunore * kit bopilerplate * add changeset * fix website * add changeset --------- Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
1 parent f6b2b97 commit efdc323

File tree

244 files changed

+9859
-982
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+9859
-982
lines changed

.changeset/wise-buttons-act.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
"@gradio/audio": patch
3+
"@gradio/build": patch
4+
"@gradio/button": patch
5+
"@gradio/chatbot": patch
6+
"@gradio/core": patch
7+
"@gradio/dataframe": patch
8+
"@gradio/lite": patch
9+
"@gradio/plot": patch
10+
"@gradio/spa": patch
11+
"@gradio/storybook": patch
12+
"@gradio/video": patch
13+
"@gradio/wasm": patch
14+
"app": patch
15+
"gradio": patch
16+
"website": patch
17+
---
18+
19+
feat:Initial SSR refactor

.config/.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
**/.mypy_cache/**
1919
!test-strategy.md
2020
**/js/_space-test/**
21-
../js/app/src/lite/theme.css
21+
../js/lite/src/theme.css
2222
../js/storybook/theme.css
2323
**/gradio_cached_examples/**
2424
**/storybook-static/**

.config/.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"singleQuote": false,
44
"trailingComma": "none",
55
"printWidth": 80,
6-
"plugins": ["prettier-plugin-svelte"]
6+
"plugins": ["prettier-plugin-svelte"],
7+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
78
}

.config/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default [
7070
"**/*.spec.ts",
7171
"**/*.test.ts",
7272
"**/*.node-test.ts",
73-
"js/app/test/**/*",
73+
"js/spa/test/**/*",
7474
"**/*vite.config.ts",
7575
"**/_website/**/*",
7676
"**/_spaces-test/**/*",

.config/playwright-setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import kl from "kleur";
88

99
const __dirname = fileURLToPath(new URL(".", import.meta.url));
1010
const TEST_APP_PATH = join(__dirname, "./test.py");
11-
const TEST_FILES_PATH = join(__dirname, "..", "js", "app", "test");
11+
const TEST_FILES_PATH = join(__dirname, "..", "js", "spa", "test");
1212
const ROOT = join(__dirname, "..");
1313

1414
const test_files = readdirSync(TEST_FILES_PATH)

.config/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import config from "../js/app/vite.config";
1+
import config from "../js/spa/vite.config";
22

33
export default config;

.github/actions/install-frontend-deps/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ runs:
4848
run: |
4949
. venv/bin/activate
5050
python -m pip install -U build hatch packaging>=23.2 # packaging>=23.2 is needed to build Lite due to https://github.com/pypa/hatch/issues/1381
51-
pnpm --filter @gradio/app build:lite
51+
pnpm --filter @gradio/lite build

.github/workflows/test-functional-lite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Run Lite E2E tests
5454
run: |
5555
. venv/bin/activate
56-
pnpm --filter @gradio/app test:browser:lite
56+
pnpm --filter @gradio/lite test:browser
5757
- name: Get the performance result
5858
run: |
5959
export LITE_APP_LOAD_TIME=$(jq -r '.app_load_time' .lite-perf.json)

.github/workflows/trigger-changeset.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
types: [opened, synchronize, reopened, edited, labeled, unlabeled]
55
branches:
66
- main
7+
- 5.0-dev
78
issue_comment:
89
types: [edited]
910

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ __pycache__/
88
*.py[cod]
99
*$py.class
1010
build/
11+
!js/build/
12+
!js/build/dist/
1113
__tmp/*
1214
*.pyi
1315
!gradio/stubs/**/*.pyi
1416
py.typed
1517
.ipynb_checkpoints/
1618
.python-version
19+
=23.2
1720

1821
# JS build
1922
gradio/templates/*
@@ -38,6 +41,8 @@ coverage.xml
3841
test.txt
3942
**/snapshots/**/*.png
4043
playwright-report/
44+
.hypothesis
45+
.lite-perf.json
4146

4247
# Demos
4348
demo/tmp.zip

0 commit comments

Comments
 (0)