hmb HF Staff commited on
Commit
0f6aa6e
Β·
1 Parent(s): 951c359

Fix broken favicon SVG path - use relative path for static hosting

Browse files
Files changed (3) hide show
  1. README.md +2 -2
  2. index.html +2 -2
  3. vite.config.ts +10 -10
README.md CHANGED
@@ -17,7 +17,7 @@ An interactive demonstration of the `@gradio/dataframe` component showcasing its
17
  ## Features
18
 
19
  - 🎯 **Interactive Canvas** - Live dataframe component with real-time controls
20
- - πŸ“– **Comprehensive Documentation** - Complete API reference and usage examples
21
  - πŸ” **Event Handling** - Demonstration of component events and callbacks
22
  - πŸ’» **Source Code** - Full implementation code with syntax highlighting
23
  - πŸŒ™ **Dark Mode** - Toggle between light and dark themes
@@ -33,4 +33,4 @@ Explore different dataframe configurations using the examples panel, adjust sett
33
  - **Svelte 5** - Modern reactive framework
34
  - **Vite** - Fast build tool and dev server
35
  - **Tailwind CSS** - Utility-first CSS framework
36
- - **@gradio/dataframe** - Standalone dataframe component
 
17
  ## Features
18
 
19
  - 🎯 **Interactive Canvas** - Live dataframe component with real-time controls
20
+ - πŸ“– **Comprehensive Documentation** - Complete API reference and usage examples
21
  - πŸ” **Event Handling** - Demonstration of component events and callbacks
22
  - πŸ’» **Source Code** - Full implementation code with syntax highlighting
23
  - πŸŒ™ **Dark Mode** - Toggle between light and dark themes
 
33
  - **Svelte 5** - Modern reactive framework
34
  - **Vite** - Fast build tool and dev server
35
  - **Tailwind CSS** - Utility-first CSS framework
36
+ - **@gradio/dataframe** - Standalone dataframe component
index.html CHANGED
@@ -1,8 +1,8 @@
1
- <!doctype html>
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <title>@gradio/dataframe Demo</title>
8
  </head>
 
1
+ <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="./vite.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <title>@gradio/dataframe Demo</title>
8
  </head>
vite.config.ts CHANGED
@@ -1,19 +1,19 @@
1
- import { defineConfig } from 'vite'
2
- import { svelte } from '@sveltejs/vite-plugin-svelte'
3
 
4
  // https://vite.dev/config/
5
  export default defineConfig({
6
  plugins: [svelte()],
7
- base: './',
8
  build: {
9
- outDir: 'dist',
10
- assetsDir: 'assets',
11
  sourcemap: false,
12
- minify: 'esbuild',
13
  rollupOptions: {
14
  output: {
15
  manualChunks: undefined,
16
- }
17
- }
18
- }
19
- })
 
1
+ import { defineConfig } from "vite";
2
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
3
 
4
  // https://vite.dev/config/
5
  export default defineConfig({
6
  plugins: [svelte()],
7
+ base: "./",
8
  build: {
9
+ outDir: "dist",
10
+ assetsDir: "assets",
11
  sourcemap: false,
12
+ minify: "esbuild",
13
  rollupOptions: {
14
  output: {
15
  manualChunks: undefined,
16
+ },
17
+ },
18
+ },
19
+ });