Skip to content

Commit 50da1b0

Browse files
feat: add examples (#11)
* chore: 更新gitignore规则 * doc: 新增“react-basic-demo”示例应用 * doc: 新增“react-bits-grid-scan-demo”示例应用 * doc: 新增“react-bits-lightning-demo”示例应用 * doc: 新增“react-bits-shiny-text-demo”示例应用 * doc: 新增“vue-basic-demo”示例应用 * refactor: 调整原有示例应用位置 * fix: lint * perf: add requirements.txt --------- Co-authored-by: insistence <3055204202@qq.com>
1 parent 787d639 commit 50da1b0

28 files changed

Lines changed: 1792 additions & 324 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,5 +206,4 @@ marimo/_static/
206206
marimo/_lsp/
207207
__marimo__/
208208

209-
assets/
210209
_vite

README-zh_CN.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,12 @@ pip install dash-vite-plugin
103103

104104
有关详细的使用示例,请参阅示例文件:
105105

106-
- [Vue.js 示例](example_vue.py) - 演示如何将插件与 Vue.js 一起使用
107-
- [React 示例](example_react.py) - 演示如何将插件与 React 一起使用
106+
- [React Basic Demo](./examples/react-basic-demo) - 集成`React`的基础示例
107+
- [React Bits Grid Scan Demo](./examples/react-bits-grid-scan-demo) - 示例:集成使用`react-bits`中的`GridScan`组件
108+
- [React Bits Lightning Demo](./examples/react-bits-lightning-demo) - 示例:集成使用`react-bits`中的`Lightning`组件
109+
- [React Bits Shiny Text Demo](./examples/react-bits-shiny-text-demo) - 示例:集成使用`react-bits`中的`ShinyText`组件
110+
- [Vue Basic Demo](./examples/vue-basic-demo) - 集成`Vue`的基础示例
111+
108112

109113
这些示例展示了如何使用不同前端框架设置插件,并包含测试回调以验证集成是否正常工作。
110114

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ Note: This plugin requires Python 3.8 or higher.
103103

104104
For detailed usage examples, please refer to the example files:
105105

106-
- [Vue.js Example](example_vue.py) - Demonstrates how to use the plugin with Vue.js
107-
- [React Example](example_react.py) - Demonstrates how to use the plugin with React
106+
- [React Basic Demo](./examples/react-basic-demo) - Basic usage with React
107+
- [React Bits Grid Scan Demo](./examples/react-bits-grid-scan-demo) - Example: integrating `react-bits` GridScan component
108+
- [React Bits Lightning Demo](./examples/react-bits-lightning-demo) - Example: integrating `react-bits` Lightning component
109+
- [React Bits Shiny Text Demo](./examples/react-bits-shiny-text-demo) - Example: integrating `react-bits` ShinyText component
110+
- [Vue Basic Demo](./examples/vue-basic-demo) - Basic usage with Vue
108111

109112
These examples show how to set up the plugin with different frontend frameworks and include test callbacks to verify that the integration is working correctly.
110113

example_react.py

Lines changed: 0 additions & 157 deletions
This file was deleted.

example_vue.py

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)