Skip to content

Commit

Permalink
feat: add demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mizy committed Jun 27, 2024
1 parent 3efb0ba commit f8faf12
Show file tree
Hide file tree
Showing 16 changed files with 6,171 additions and 26,618 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ jobs:
with:
node-version: '16'
- name: Install dependencies
run: npm ci
run: npm i pnpm -g && pnpm install
- name: Build
run: npm run build:demo
- name: Delete node_modules
run: |
rm -rf node_modules && rm -rf demo && rm -rf src
rm .gitignore
run: pnpm build build:demo
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
publish_dir: ./dist
enable_jekyll: true
2 changes: 1 addition & 1 deletion Demo/Topbar.js → Demo/Topbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect } from "react";
import React,{ useState, useEffect } from "react";
import {
FontSizeOutlined,
FontColorsOutlined,
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
a svg based rich text editor for high performance render
一个基于SVG渲染的原生富文本编辑器,可高性能渲染大量文字

# demo
[https://mizy.github.io/oreditor/](https://mizy.github.io/oreditor/)

# test
```
npm run start
Expand Down
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<html>

<body>
<div id="root"></div>
</body>
<script type="module" src="./Demo/index.jsx"></script>

</html>
Loading

0 comments on commit f8faf12

Please sign in to comment.