Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangfisher committed Mar 31, 2024
1 parent f6538cb commit 6066aa1
Show file tree
Hide file tree
Showing 38 changed files with 3,440 additions and 98 deletions.
6 changes: 3 additions & 3 deletions docs/.vitepress/cache/deps/_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
"vue": {
"src": "../../../../node_modules/.pnpm/vue@3.4.21_typescript@5.4.2/node_modules/vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js",
"fileHash": "3b104e3e",
"fileHash": "26cb3c9d",
"needsInterop": false
},
"vitepress > @vue/devtools-api": {
"src": "../../../../node_modules/.pnpm/@vue+devtools-api@7.0.18_vue@3.4.21/node_modules/@vue/devtools-api/dist/index.js",
"file": "vitepress___@vue_devtools-api.js",
"fileHash": "568b36ab",
"fileHash": "8256eab3",
"needsInterop": false
},
"vitepress > @vueuse/core": {
"src": "../../../../node_modules/.pnpm/@vueuse+core@10.9.0_vue@3.4.21/node_modules/@vueuse/core/index.mjs",
"file": "vitepress___@vueuse_core.js",
"fileHash": "a67b79fb",
"fileHash": "7178479a",
"needsInterop": false
}
},
Expand Down
6 changes: 5 additions & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ export default defineConfig({
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: '首页', link: '/' },
{ text: '文档', link: '/docs' },
{ text: '指南', link: '/guide' },
],

sidebar: [
{ text: '关于', link: '/about' },
{ text: '安装', link: '/install' },
{ text: '指南', link: '/guide' },

],

socialLinks: [
Expand Down
1 change: 1 addition & 0 deletions docs/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 关于
4 changes: 2 additions & 2 deletions docs/docs.md → docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import Tree from 'lite-tree'
{title: "行政部"},
{title: "法务部",mark:"warning"},
{title: "审计部",style:"font-size:16px;font-style:italic"},
{title: "信息中心",comment:"备用",diff:"add"},
{title: "信息中心1",comment:"备用",diff:"add"},
{title: "安全保卫部",comment:"{color:red}+"}
]
},
Expand Down Expand Up @@ -97,7 +97,7 @@ import Tree from 'lite-tree'
{title: "行政部"},
{title: "法务部",mark:"warning"},
{title: "审计部",style:"font-size:16px;font-style:italic"},
{title: "信息中心",comment:"备用"},
{title: "信息中心",comment:"备用",diff:"+"},
{title: "安全保卫部",comment:"{color:red}+"}
]
},
Expand Down
1 change: 1 addition & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 安装
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
"devDependencies": {
"@tsconfig/node20": "^20.1.2",
"@types/node": "^20.11.28",
"@types/react": "^18.2.73",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/tsconfig": "^0.5.1",
"less": "^4.2.0",
"react": "^18.2.0",
"rollup-plugin-dts": "^6.1.0",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
Expand All @@ -51,9 +53,12 @@
},
"dependencies": {
"lite-tree": "file://.",
"styledfc": "^1.0.9",
"vue-slide-up-down": "^3.0.0"
},
"peerDependencies": {
"@types/react": "^18.2.73",
"react": "^18.2.0",
"vue": "^3.4.21"
}
}
12 changes: 12 additions & 0 deletions packages/parsers/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "@lite-tree/parsers",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
2 changes: 1 addition & 1 deletion src/parse/index.ts → packages/parsers/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import jsonParser from "./json";
import parseLiteTree, { type LiteTreeParseOptions } from "./lite";
import type { LiteTreeNode } from "../vue/types";
import type { LiteTreeNode } from "../../../src/types";


const SplitterRegex = /^---\s*$/gm;
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/parse/lite.ts → packages/parsers/src/lite.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parseStyleString } from "../common/styledString";
import { parseStyleString } from "../../utils/src/styledString";
import type { LiteTreeVars, ParseTreeOptions } from ".";
import type { LiteTreeNode } from "../vue/types";
import type { LiteTreeNode } from "../../../src/types";

export interface LiteTreeParseOptions{
indent?:number; // 缩进空格数
Expand Down
16 changes: 16 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@lite-tree/react",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"tsup": "^8.0.2",
"typescript": "^5.4.3"
}
}
Loading

0 comments on commit 6066aa1

Please sign in to comment.