Skip to content

Commit

Permalink
refactor: 配置适配器
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jun 24, 2023
1 parent 55f4da9 commit f8730db
Show file tree
Hide file tree
Showing 30 changed files with 1,766 additions and 1,460 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
semi: "off",
quotes: "off",
"no-undef": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-this-alias": "off",
Expand All @@ -29,4 +30,4 @@ module.exports = {
"turbo/no-undeclared-env-vars": "off",
"prettier/prettier": "error",
},
}
}
33 changes: 33 additions & 0 deletions docs/sy-p-cfg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"dynamic-config": "{}",
"yuque_PUBLISH_LIMIT": "2023-03-18T05:59:36.474Z",
"metaweblog-22pamt": "{}",
"metaweblog-zahrlw": "{}",
"switch-yuque": "false",
"hugo": "{}",
"switch-metaweblog-22pamt": "false",
"wordpress": "{}",
"kms": "{}",
"switch-kms": "false",
"vuepress": "{}",
"switch-metaweblog-zahrlw": "false",
"liandi": "{}",
"switch-hugo": "false",
"githubHugo-zdlc6l": "{}",
"switch-wordpress": "true",
"loglevel": "WARN",
"switch-jvue": "false",
"switch-githubHugo-zdlc6l": "false",
"siyuan-cfg": "{}",
"yuque": "{}",
"switch-vuepress": "false",
"cnblogs": "{}",
"switch-cnblogs": "false",
"publish-preference": "{}",
"switch-githubHugo-fukvr": "false",
"githubHugo-fukvr": "{}",
"switch-liandi": "false",
"liandi_PUBLISH_LIMIT": "2023-02-28T04:19:41.228Z",
"switch-metaweblog-z28xrhf": "false",
"metaweblog-z28xrhf": "{}"
}
44 changes: 44 additions & 0 deletions docs/测试要点.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 主要设备

## 本地浏览器 serve

```
pnpm serve
```

http://localhost:5173/

## 本地挂件浏览器访问

```
pnpm widget
```

## 本地 Chrome 浏览器插件访问

```
pnpm ext
```

## iframe插件访问

```
pnpm widget
```
然后直接使用 `发布工具` 插件测试

## 代码片段

新增代码片段,然后测试

## 挂件

添加挂件,然后测试

## vercel 部署

部署到 vercel 测试

## docker 版本

开启 docker 服务,然后测试
23 changes: 11 additions & 12 deletions docs/设计思路.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
1 主要页面

发布页面

发布设置

平台开关

平台管理

图床管理

偏好设置

```
一键发布:零配置,点击菜单直接发布,只显示进度和状态信息
常规发布:可详细配置各种发布参数
发布预览
上传图片到图床
设置
偏好设置
图床设置
发布设置
复制文档ID
```
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
<title>发布工具挂件版</title>
<%- injectScript %>
</head>
<body>
Expand Down
31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.8.1",
"type": "module",
"scripts": {
"serve": "vite",
"serve": "VITE_SIYUAN_API_URL=http://127.0.0.1:6806 vite",
"dev": "BUILD_TYPE=siyuan vite build --watch",
"build": "BUILD_TYPE=siyuan vite build",
"staticBuild": "BUILD_TYPE=static vite build",
Expand All @@ -19,40 +19,39 @@
"package": "pnpm widget && pnpm ext && pnpm ext -t firefox"
},
"devDependencies": {
"@terwer/eslint-config-custom": "^1.2.0",
"@types/node": "^18.16.16",
"@terwer/eslint-config-custom": "^1.3.6",
"@types/node": "^18.16.18",
"@vitejs/plugin-vue": "^4.2.3",
"fast-glob": "^3.2.12",
"minimist": "^1.2.8",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-node-polyfills": "^0.2.1",
"stylus": "^0.59.0",
"typescript": "^5.0.4",
"typescript": "^5.1.3",
"unplugin-auto-import": "^0.16.4",
"unplugin-vue-components": "^0.24.1",
"vercel": "^29.4.0",
"vite": "^4.3.9",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-html": "^3.2.0",
"vite-plugin-node-polyfills": "^0.8.2",
"vue-tsc": "^1.6.5"
"vue-tsc": "^1.8.1"
},
"dependencies": {
"@vueuse/components": "^10.1.2",
"@vueuse/core": "^10.1.2",
"@vueuse/components": "^10.2.0",
"@vueuse/core": "^10.2.0",
"cross-fetch": "^3.1.6",
"element-plus": "^2.3.5",
"simple-xmlrpc": "^1.4.1",
"element-plus": "^2.3.7",
"pinia": "^2.1.4",
"simple-xmlrpc": "^1.4.2",
"vue": "^3.3.4",
"vue-i18n": "^9.2.2",
"vue-router": "^4.2.2",
"xmlbuilder2": "^3.1.1",
"zhi-blog-api": "^1.5.0",
"zhi-common": "^1.6.2",
"zhi-device": "^0.7.3",
"zhi-env": "^1.17.2",
"zhi-lib-base": "^0.0.2",
"zhi-log": "^1.13.3",
"zhi-siyuan-api": "^1.7.0"
"zhi-blog-api": "^1.12.0",
"zhi-common": "^1.11.2",
"zhi-device": "^2.3.0",
"zhi-lib-base": "0.4.1",
"zhi-siyuan-api": "^1.24.0"
}
}
Loading

0 comments on commit f8730db

Please sign in to comment.