-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changes * asd * fix tests * fix lint * fix ts * fix ts * cleanup * cleanup * fix * Apply suggestions from code review Co-authored-by: Yuichiro Tachibana (Tsuchiya) <[email protected]> * 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) <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]>
- Loading branch information
1 parent
f6b2b97
commit efdc323
Showing
244 changed files
with
9,859 additions
and
982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"@gradio/audio": patch | ||
"@gradio/build": patch | ||
"@gradio/button": patch | ||
"@gradio/chatbot": patch | ||
"@gradio/core": patch | ||
"@gradio/dataframe": patch | ||
"@gradio/lite": patch | ||
"@gradio/plot": patch | ||
"@gradio/spa": patch | ||
"@gradio/storybook": patch | ||
"@gradio/video": patch | ||
"@gradio/wasm": patch | ||
"app": patch | ||
"gradio": patch | ||
"website": patch | ||
--- | ||
|
||
feat:Initial SSR refactor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import config from "../js/app/vite.config"; | ||
import config from "../js/spa/vite.config"; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { sveltekit } from "@sveltejs/kit/vite"; | ||
import { defineConfig } from "vite"; | ||
import { inject_component_loader } from "../app/build_plugins"; | ||
import { inject_component_loader } from "../build/dist/index.js"; | ||
|
||
//@ts-ignore | ||
export default defineConfig(({ mode }) => ({ | ||
plugins: [sveltekit(), inject_component_loader({ mode })] | ||
})); |
159 changes: 0 additions & 159 deletions
159
js/_website/vite.config.ts.timestamp-1721955124085-e178b44edfdf6.mjs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
/src/lite/theme.css | ||
node_modules | ||
|
||
# Output | ||
.output | ||
.vercel | ||
/.svelte-kit | ||
/build | ||
|
||
# OS | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Env | ||
.env | ||
.env.* | ||
!.env.example | ||
!.env.test | ||
|
||
# Vite | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# create-svelte | ||
|
||
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte). | ||
|
||
## Creating a project | ||
|
||
If you're seeing this, you've probably already done this step. Congrats! | ||
|
||
```bash | ||
# create a new project in the current directory | ||
npm create svelte@latest | ||
|
||
# create a new project in my-app | ||
npm create svelte@latest my-app | ||
``` | ||
|
||
## Developing | ||
|
||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: | ||
|
||
```bash | ||
npm run dev | ||
|
||
# or start the server and open the app in a new browser tab | ||
npm run dev -- --open | ||
``` | ||
|
||
## Building | ||
|
||
To create a production version of your app: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
You can preview the production build with `npm run preview`. | ||
|
||
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,26 @@ | ||
{ | ||
"name": "@gradio/app", | ||
"version": "1.39.2", | ||
"name": "app", | ||
"version": "0.0.1", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite --port 9876", | ||
"dev:lite": "run-p dev:lite:*", | ||
"dev:lite:self": "vite --port 9876 --mode development:lite", | ||
"dev:lite:worker": "pnpm --filter @gradio/wasm dev", | ||
"build": "vite build --mode production --emptyOutDir", | ||
"cssbuild": "python ../../scripts/generate_theme.py --outfile ./src/lite/theme.css", | ||
"pybuild:gradio": "cd ../../ && hatch build -t lite", | ||
"pybuild:gradio-client": "cd ../../client/python && python -m build", | ||
"pybuild": "run-p pybuild:*", | ||
"build:lite": "pnpm pybuild && pnpm cssbuild && pnpm --filter @gradio/client build && pnpm --filter @gradio/wasm build && vite build --mode production:lite", | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"test:snapshot": "pnpm exec playwright test snapshots/ --config=../../.config/playwright.config.js", | ||
"test:browser": "pnpm exec playwright test test/ --grep-invert 'reload.spec.ts' --config=../../.config/playwright.config.js", | ||
"test:browser:dev": "pnpm exec playwright test test/ --ui --config=../../.config/playwright.config.js", | ||
"test:browser:reload": "CI=1 pnpm exec playwright test test/ --grep 'reload.spec.ts' --config=../../.config/playwright.config.js", | ||
"test:browser:lite": "GRADIO_E2E_TEST_LITE=1 pnpm test:browser", | ||
"test:browser:lite:dev": "GRADIO_E2E_TEST_LITE=1 pnpm test:browser:dev", | ||
"build:css": "pollen -c pollen.config.cjs -o src/pollen-dev.css" | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"lint": "prettier --check .", | ||
"format": "prettier --write ." | ||
}, | ||
"dependencies": { | ||
"@gradio/accordion": "workspace:^", | ||
"@gradio/annotatedimage": "workspace:^", | ||
"@gradio/atoms": "workspace:^", | ||
"@gradio/audio": "workspace:^", | ||
"@gradio/box": "workspace:^", | ||
"@gradio/button": "workspace:^", | ||
"@gradio/chatbot": "workspace:^", | ||
"@gradio/checkbox": "workspace:^", | ||
"@gradio/checkboxgroup": "workspace:^", | ||
"@gradio/client": "workspace:^", | ||
"@gradio/code": "workspace:^", | ||
"@gradio/colorpicker": "workspace:^", | ||
"@gradio/column": "workspace:^", | ||
"@gradio/dataframe": "workspace:^", | ||
"@gradio/dataset": "workspace:^", | ||
"@gradio/datetime": "workspace:^", | ||
"@gradio/downloadbutton": "workspace:^", | ||
"@gradio/dropdown": "workspace:^", | ||
"@gradio/fallback": "workspace:^", | ||
"@gradio/file": "workspace:^", | ||
"@gradio/fileexplorer": "workspace:^", | ||
"@gradio/form": "workspace:^", | ||
"@gradio/gallery": "workspace:^", | ||
"@gradio/group": "workspace:^", | ||
"@gradio/highlightedtext": "workspace:^", | ||
"@gradio/html": "workspace:^", | ||
"@gradio/icons": "workspace:^", | ||
"@gradio/image": "workspace:^", | ||
"@gradio/imageeditor": "workspace:^", | ||
"@gradio/json": "workspace:^", | ||
"@gradio/label": "workspace:^", | ||
"@gradio/markdown": "workspace:^", | ||
"@gradio/model3d": "workspace:^", | ||
"@gradio/multimodaltextbox": "workspace:^", | ||
"@gradio/nativeplot": "workspace:^", | ||
"@gradio/number": "workspace:^", | ||
"@gradio/paramviewer": "workspace:^", | ||
"@gradio/plot": "workspace:^", | ||
"@gradio/radio": "workspace:^", | ||
"@gradio/row": "workspace:^", | ||
"@gradio/simpledropdown": "workspace:^", | ||
"@gradio/simpleimage": "workspace:^", | ||
"@gradio/simpletextbox": "workspace:^", | ||
"@gradio/slider": "workspace:^", | ||
"@gradio/state": "workspace:^", | ||
"@gradio/statustracker": "workspace:^", | ||
"@gradio/tabitem": "workspace:^", | ||
"@gradio/tabs": "workspace:^", | ||
"@gradio/textbox": "workspace:^", | ||
"@gradio/theme": "workspace:^", | ||
"@gradio/timer": "workspace:^", | ||
"@gradio/upload": "workspace:^", | ||
"@gradio/uploadbutton": "workspace:^", | ||
"@gradio/utils": "workspace:^", | ||
"@gradio/video": "workspace:^", | ||
"@gradio/wasm": "workspace:^", | ||
"@huggingface/space-header": "^1.0.3", | ||
"@types/eventsource": "^1.1.15", | ||
"cross-env": "^7.0.3", | ||
"d3-dsv": "^3.0.1", | ||
"eventsource": "^2.0.2", | ||
"mime-types": "^2.1.34", | ||
"postcss": "^8.4.21", | ||
"postcss-prefix-selector": "^1.16.0" | ||
"devDependencies": { | ||
"@sveltejs/adapter-auto": "^3.0.0", | ||
"@sveltejs/kit": "^2.0.0", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.0", | ||
"prettier": "^3.1.1", | ||
"prettier-plugin-svelte": "^3.1.2", | ||
"svelte": "^4.2.7", | ||
"svelte-check": "^3.6.0", | ||
"typescript": "^5.0.0", | ||
"vite": "^5.0.3" | ||
}, | ||
"msw": { | ||
"workerDirectory": "public" | ||
}, | ||
"main_changeset": true | ||
"type": "module" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// See https://kit.svelte.dev/docs/types#app | ||
// for information about these interfaces | ||
declare global { | ||
namespace App { | ||
// interface Error {} | ||
// interface Locals {} | ||
// interface PageData {} | ||
// interface PageState {} | ||
// interface Platform {} | ||
} | ||
} | ||
|
||
export {}; |
Oops, something went wrong.