From c720f5d14c204cefc742fe1394343b3c81ca0496 Mon Sep 17 00:00:00 2001 From: terwer Date: Sat, 6 May 2023 23:03:51 +0800 Subject: [PATCH] chore: switch back to turbo --- .editorconfig | 13 - .eslintignore | 1 - .eslintrc.js | 10 + .eslintrc.json | 35 - .../workflows/git-sync-zhi-widget-blog.yml | 21 - .gitignore | 64 +- .npmrc | 1 + .prettierignore | 3 - .prettierrc | 5 - .vscode/extensions.json | 3 - DEVELOPMENT.md | 53 - README.md | 90 +- README_BACKUP.md | 83 - README_zh_CN.md | 21 - apps/.gitkeep | 0 apps/docs/.eslintrc.js | 4 + apps/docs/.gitignore | 34 + apps/docs/README.md | 30 + apps/docs/app/layout.tsx | 11 + apps/docs/app/page.tsx | 10 + apps/docs/next-env.d.ts | 5 + apps/docs/next.config.js | 4 + apps/docs/package.json | 25 + apps/docs/tsconfig.json | 8 + apps/web/.eslintrc.js | 4 + apps/web/.gitignore | 34 + apps/web/README.md | 30 + apps/web/app/layout.tsx | 11 + apps/web/app/page.tsx | 10 + apps/web/next-env.d.ts | 5 + apps/web/next.config.js | 4 + apps/web/package.json | 25 + apps/web/tsconfig.json | 8 + apps/zhi-widget-blog/.eslintignore | 2 - apps/zhi-widget-blog/.eslintrc.json | 17 - apps/zhi-widget-blog/.gitignore | 9 - apps/zhi-widget-blog/.npmrc | 2 - apps/zhi-widget-blog/README.md | 43 - apps/zhi-widget-blog/app.config.ts | 206 - apps/zhi-widget-blog/app.vue | 10 - .../assets/vdoing/fonts/README.md | 3 - .../assets/vdoing/fonts/font-vdoing.styl | 148 - .../assets/vdoing/fonts/font-vdoing.ttf | Bin 13272 -> 0 bytes .../assets/vdoing/fonts/font-vdoing.woff | Bin 9176 -> 0 bytes .../assets/vdoing/fonts/font-vdoing.woff2 | Bin 7940 -> 0 bytes .../assets/vdoing/fonts/font.styl | 27 - .../assets/vdoing/fonts/index.styl | 26 - .../assets/vdoing/fonts/webfont.css | 808 - .../assets/vdoing/styles/arrow.styl | 22 - .../assets/vdoing/styles/code-theme.styl | 274 - .../assets/vdoing/styles/code.styl | 142 - .../assets/vdoing/styles/config.styl | 1 - .../assets/vdoing/styles/custom-blocks.styl | 87 - .../assets/vdoing/styles/index.styl | 322 - .../vdoing/styles/markdown-container.styl | 211 - .../assets/vdoing/styles/mobile.styl | 101 - .../assets/vdoing/styles/palette.styl | 111 - .../assets/vdoing/styles/toc.styl | 3 - .../assets/vdoing/styles/wrapper.styl | 17 - .../components/vdoing/BodyBgImg.vue | 89 - .../components/vdoing/Buttons.vue | 275 - .../components/vdoing/DropdownLink.vue | 223 - .../components/vdoing/Footer.vue | 69 - .../components/vdoing/MeiliSearchBox.vue | 184 - .../components/vdoing/NavLink.vue | 56 - .../components/vdoing/NavLinks.vue | 162 - .../components/vdoing/Navbar.vue | 149 - .../components/vdoing/OutboundLink.vue | 33 - .../components/vdoing/Sidebar.vue | 146 - .../components/vdoing/SidebarButton.vue | 58 - apps/zhi-widget-blog/layouts/vdoing.vue | 328 - apps/zhi-widget-blog/nuxt.config.ts | 105 - apps/zhi-widget-blog/package.json | 27 - apps/zhi-widget-blog/pages/index.vue | 34 - apps/zhi-widget-blog/pnpm-lock.yaml | 6184 -- apps/zhi-widget-blog/project.json | 6 - apps/zhi-widget-blog/public/favicon.ico | Bin 4286 -> 0 bytes .../zhi-widget-blog/public/img/logo-color.png | Bin 33383 -> 0 bytes .../zhi-widget-blog/public/img/logo-small.png | Bin 10517 -> 0 bytes apps/zhi-widget-blog/public/img/logo.png | Bin 30810 -> 0 bytes apps/zhi-widget-blog/public/img/photo.jpg | Bin 84774 -> 0 bytes apps/zhi-widget-blog/public/img/search.svg | 1 - .../lib/lute/lute-1.7.5-20230410.min.js | 64 - .../public/lib/webfont/webfont.css | 808 - .../api/endpoint/meilisearch/[...index].ts | 150 - apps/zhi-widget-blog/server/api/hello.ts | 30 - apps/zhi-widget-blog/utils/ZhiBlogNuxtUtil.ts | 56 - apps/zhi-widget-blog/utils/vdoingUtil.ts | 81 - .../.env.development.local.example | 21 - apps/zhi-widget-publisher/.env.local.example | 18 - .../.env.production.local.example | 19 - .../.env.test.local.example | 21 - apps/zhi-widget-publisher/.eslintrc.json | 32 - .../.github/dependabot.yml | 32 - .../zhi-widget-publisher/.github/semantic.yml | 5 - .../.github/workflows/ci.yml | 48 - .../.github/workflows/release-please.yml | 37 - apps/zhi-widget-publisher/.gitignore | 45 - apps/zhi-widget-publisher/.husky/pre-commit | 29 - apps/zhi-widget-publisher/.npmrc | 1 - apps/zhi-widget-publisher/.prettierignore | 22 - apps/zhi-widget-publisher/.prettierrc.json | 5 - apps/zhi-widget-publisher/CHANGELOG.md | 927 - apps/zhi-widget-publisher/LICENSE | 661 - apps/zhi-widget-publisher/README.md | 255 - .../assets/favicon/android-chrome-192x192.png | Bin 55856 -> 0 bytes .../assets/favicon/android-chrome-512x512.png | Bin 93436 -> 0 bytes .../assets/favicon/apple-touch-icon.png | Bin 50148 -> 0 bytes .../assets/favicon/favicon-16x16.png | Bin 931 -> 0 bytes .../assets/favicon/favicon-32x32.png | Bin 2804 -> 0 bytes .../assets/favicon/favicon.ico | Bin 15406 -> 0 bytes .../assets/favicon/site.webmanifest | 19 - apps/zhi-widget-publisher/assets/style.css | 190 - .../assets/style.dark.css | 110 - apps/zhi-widget-publisher/assets/webfont.css | 2228 - apps/zhi-widget-publisher/components.d.ts | 52 - .../components/anki/AnkiIndex.vue | 405 - .../components/blog/BlogIndex.vue | 38 - .../components/blog/BlogMain.vue | 641 - .../components/blog/singleWin/SingleAnki.vue | 62 - .../blog/singleWin/SingleBlogDetail.vue | 109 - .../components/blog/singleWin/SinglePicgo.vue | 87 - .../blog/singleWin/singlePublish.vue | 80 - .../components/detail/PostDetail.vue | 135 - .../components/detail/PostDetailService.vue | 278 - .../components/picgo/PicgoIndex.vue | 287 - .../components/picgo/PicgoSetting.vue | 152 - .../components/picgo/common/ConfigForm.vue | 289 - .../picgo/setting/PicbedSetting.vue | 349 - .../picgo/setting/PicgoConfigSetting.vue | 195 - .../picgo/setting/PicgoPluginSetting.vue | 773 - .../components/publish/PublishIndex.vue | 40 - .../components/publish/PublishService.vue | 97 - .../publish/tab/DynamicPlatform.vue | 411 - .../components/publish/tab/PlatformMain.vue | 286 - .../publish/tab/PlatformSetting.vue | 314 - .../components/publish/tab/PostBind.vue | 462 - .../components/publish/tab/ServiceSwitch.vue | 221 - .../publish/tab/main/CommonBlogMain.vue | 1030 - .../publish/tab/main/GithubMain.vue | 681 - .../publish/tab/main/MetaweblogMain.vue | 868 - .../publish/tab/main/common/KmsMain.vue | 56 - .../publish/tab/main/common/LiandiMain.vue | 59 - .../publish/tab/main/common/YuqueMain.vue | 57 - .../publish/tab/main/github/HexoMain.vue | 59 - .../publish/tab/main/github/HugoMain.vue | 59 - .../publish/tab/main/github/JekyllMain.vue | 59 - .../publish/tab/main/github/VuepressMain.vue | 59 - .../tab/main/metaweblog/CnblogsMain.vue | 56 - .../tab/main/metaweblog/ConfluenceMain.vue | 58 - .../publish/tab/main/metaweblog/JVueMain.vue | 56 - .../tab/main/metaweblog/WordpressMain.vue | 57 - .../publish/tab/setting/CommonBlogSetting.vue | 265 - .../publish/tab/setting/GithubSetting.vue | 452 - .../publish/tab/setting/MetaweblogSetting.vue | 248 - .../publish/tab/setting/common/KmsSetting.vue | 54 - .../tab/setting/common/LiandiSetting.vue | 55 - .../tab/setting/common/YuqueSetting.vue | 56 - .../tab/setting/github/HexoSetting.vue | 39 - .../tab/setting/github/HugoSetting.vue | 39 - .../tab/setting/github/JekyllSetting.vue | 39 - .../tab/setting/github/VuepressSetting.vue | 38 - .../tab/setting/metaweblog/CnblogsSetting.vue | 50 - .../setting/metaweblog/ConfluenceSetting.vue | 50 - .../tab/setting/metaweblog/JVueSetting.vue | 51 - .../setting/metaweblog/WordpressSetting.vue | 66 - .../components/set/GeneralSetting.vue | 43 - .../components/set/SetIndex.vue | 56 - .../components/set/preference/ChangeLocal.vue | 73 - .../set/preference/PreferenceSetting.vue | 228 - .../components/set/siyuanApiSetting.vue | 194 - .../components/transport/ClearData.vue | 104 - .../components/transport/ExportData.vue | 80 - .../components/transport/ImportData.vue | 78 - .../components/transport/TransportSelect.vue | 49 - .../composables/picgo/import/picgoPostCom.ts | 87 - .../composables/picgo/picgoCommonCom.ts | 65 - .../composables/picgo/picgoInitPageCom.ts | 110 - .../composables/picgo/picgoManageCom.ts | 200 - .../composables/picgo/picgoUploadCom.ts | 196 - .../composables/publish/githubPagesCom.ts | 289 - .../composables/publish/initPublishCom.ts | 449 - .../composables/publish/makeDescCom.ts | 120 - .../composables/publish/makeSlugCom.ts | 222 - .../composables/publish/makeTagCom.ts | 178 - .../composables/publish/makeYamlCom.ts | 140 - .../composables/publish/pageModeCom.ts | 53 - .../composables/publish/publishActionCom.ts | 273 - .../composables/publish/publishQuickCom.ts | 167 - .../composables/publish/publishTimeCom.ts | 61 - .../composables/publish/siyuanPageCom.ts | 79 - .../composables/publish/tabCountCom.ts | 137 - .../setting/preferenceSettingCom.ts | 31 - apps/zhi-widget-publisher/compose-dev.yaml | 12 - apps/zhi-widget-publisher/index.html | 40 - apps/zhi-widget-publisher/jsdoc.json | 9 - .../layouts/AppLayout.vue | 37 - .../layouts/default/AppLayoutDefault.vue | 49 - .../layouts/default/DefaultFooter.vue | 184 - .../layouts/default/DefaultHeader.vue | 414 - apps/zhi-widget-publisher/locales/en_US.ts | 482 - apps/zhi-widget-publisher/locales/index.ts | 40 - apps/zhi-widget-publisher/locales/zh_CN.ts | 470 - apps/zhi-widget-publisher/package.json | 89 - apps/zhi-widget-publisher/pages/anki/App.vue | 35 - apps/zhi-widget-publisher/pages/anki/main.ts | 34 - apps/zhi-widget-publisher/pages/blog/App.vue | 35 - apps/zhi-widget-publisher/pages/blog/main.ts | 34 - .../zhi-widget-publisher/pages/detail/App.vue | 35 - .../zhi-widget-publisher/pages/detail/main.ts | 34 - apps/zhi-widget-publisher/pages/index/App.vue | 105 - apps/zhi-widget-publisher/pages/index/main.ts | 34 - apps/zhi-widget-publisher/pages/picgo/App.vue | 35 - apps/zhi-widget-publisher/pages/picgo/main.ts | 34 - .../pages/publish/App.vue | 35 - .../pages/publish/main.ts | 34 - apps/zhi-widget-publisher/pages/set/App.vue | 35 - apps/zhi-widget-publisher/pages/set/main.ts | 34 - .../plugins/font-awesome/font-awesome.ts | 90 - .../plugins/page-beauty/page-beauty.ts | 102 - .../vue-hljs/lib/codecopy/codecopy.css | 79 - .../plugins/vue-hljs/lib/codecopy/index.js | 103 - .../plugins/vue-hljs/lib/vue-hljs/main.js | 198 - .../plugins/vue-hljs/lib/vue-hljs/vs.css | 97 - .../plugins/vue-hljs/lib/vue-hljs/vs2015.css | 142 - .../plugins/vue-hljs/vue-hljs.js | 32 - apps/zhi-widget-publisher/pnpm-lock.yaml | 10167 --- apps/zhi-widget-publisher/policy.md | 62 - apps/zhi-widget-publisher/public/LICENSE | 661 - .../zhi-widget-publisher/public/background.js | 85 - apps/zhi-widget-publisher/public/favicon.ico | Bin 15406 -> 0 bytes .../public/images/icon128.png | Bin 26427 -> 0 bytes .../public/images/icon16.png | Bin 931 -> 0 bytes .../public/images/icon32.png | Bin 2718 -> 0 bytes .../public/images/icon48.png | Bin 5423 -> 0 bytes .../public/lib/cmd/syCmd.js | 166 - .../json-localstorage/json-localstorage.js | 154 - .../public/lib/lute/lute-version.txt | 3 - .../public/lib/lute/lute.min.js | 64 - .../public/lib/mathjax/mathjax-version.txt | 1 - .../public/lib/mathjax/mathjax.js | 68152 ---------------- .../public/lib/mathjax/mathjaxCfg.js | 31 - .../public/lib/picgo/picgo-logo.png | Bin 39169 -> 0 bytes .../public/lib/picgo/picgo-version.txt | 1 - .../public/lib/picgo/syPicgo.js | 968 - .../public/lib/siyuan/publish-helper.js | 239 - .../public/lib/siyuan/silot.js | 95 - .../public/lib/siyuan/theme.js | 41 - .../public/lib/siyuanhook.js | 348 - .../public/manifest.dev.json | 29 - .../public/manifest.prod.json | 41 - .../public/mv2/background-v2-for-firefox.js | 78 - .../public/mv2/manifest-v2-for-firefox.json | 39 - .../public/preview-light.png | Bin 140819 -> 0 bytes apps/zhi-widget-publisher/public/preview.png | Bin 148627 -> 0 bytes apps/zhi-widget-publisher/public/widget.json | 6 - apps/zhi-widget-publisher/scripts/dev.py | 32 - apps/zhi-widget-publisher/scripts/ext.py | 169 - .../scripts/scriptutils.py | 225 - apps/zhi-widget-publisher/scripts/serve.py | 32 - apps/zhi-widget-publisher/scripts/version.py | 70 - apps/zhi-widget-publisher/scripts/widget.py | 125 - .../stores/picbedStore.ts | 42 - .../stores/tabCountStore.ts | 46 - .../sy-scripts/customCmd.js | 51 - apps/zhi-widget-publisher/tech.md | 246 - .../test/TEST_CONSTANTS.ts | 30 - apps/zhi-widget-publisher/test/async.test.ts | 56 - .../publish/tab/main/githubMain.test.ts | 40 - .../test/composables/TestSlug.vue | 51 - .../test/composables/makeSlugCom.test.ts | 55 - .../test/data/demo/siyuanPage.txt | 1 - .../test/data/demo/siyuanPageID.txt | 1 - .../test/data/demo/yaml.txt | 24 - .../test/data/demo/yamlObj.txt | 31 - .../test/pages/indexPage.test.ts | 52 - .../test/public/lib/cmd/syCmd.test.ts | 37 - apps/zhi-widget-publisher/test/setup.ts | 50 - .../test/utils/configUtil.test.ts | 55 - .../test/utils/dateUtil.test.ts | 57 - .../test/utils/envUtil.test.ts | 41 - .../test/utils/fileUtil.test.ts | 40 - .../test/utils/idUtil.test.ts | 37 - .../test/utils/logUtil.test.ts | 43 - .../test/utils/netUtil.test.ts | 36 - .../test/utils/pageUtil.test.ts | 47 - .../test/utils/parser/imageParser.test.ts | 102 - .../test/utils/parser/linkParser.test.ts | 83 - .../utils/platform/metaweblog/xmlrpc.test.ts | 36 - .../utils/platform/siyuan/siyuanApi.test.ts | 37 - .../test/utils/publishUtil.test.ts | 42 - .../test/utils/strUtil.test.ts | 38 - .../test/utils/util.test.ts | 353 - .../test/utils/yamlUtil.test.ts | 52 - apps/zhi-widget-publisher/tsconfig.json | 42 - apps/zhi-widget-publisher/tsconfig.node.json | 9 - apps/zhi-widget-publisher/typings/README.md | 6 - apps/zhi-widget-publisher/typings/custom.d.ts | 29 - .../typings/fs-extra.d.ts | 559 - .../zhi-widget-publisher/typings/js-yaml.d.ts | 2184 - .../typings/node-localstorage.d.ts | 26 - apps/zhi-widget-publisher/typings/picgo.d.ts | 152 - apps/zhi-widget-publisher/utils/api.ts | 291 - apps/zhi-widget-publisher/utils/arrayUtil.ts | 42 - .../zhi-widget-publisher/utils/browserUtil.ts | 204 - .../utils/common/commonEnv.ts | 26 - .../utils/common/pageEditMode.ts | 42 - .../utils/common/readMode.ts | 32 - .../utils/common/sourceContentShowType.ts | 34 - apps/zhi-widget-publisher/utils/configUtil.ts | 305 - .../utils/constants/apiTypeConstants.ts | 96 - .../utils/constants/constants.ts | 69 - .../constants/metaweblogMethodConstants.ts | 42 - .../utils/constants/postStatusConstants.ts | 34 - .../utils/constants/postidKeyConstants.ts | 64 - .../utils/constants/siyuanConstants.ts | 35 - .../utils/constants/siyuanPageConstants.ts | 58 - .../utils/constants/switchConstants.ts | 59 - apps/zhi-widget-publisher/utils/dateUtil.ts | 252 - apps/zhi-widget-publisher/utils/deviceUtil.ts | 76 - apps/zhi-widget-publisher/utils/envUtil.ts | 81 - apps/zhi-widget-publisher/utils/fileUtil.ts | 99 - apps/zhi-widget-publisher/utils/hashUtil.ts | 45 - apps/zhi-widget-publisher/utils/htmlUtil.ts | 194 - apps/zhi-widget-publisher/utils/idUtil.ts | 48 - apps/zhi-widget-publisher/utils/jsonUtil.ts | 62 - apps/zhi-widget-publisher/utils/logUtil.ts | 108 - .../utils/markdownUtil.ts | 40 - .../utils/models/categoryInfo.ts | 47 - .../utils/models/imageItem.ts | 70 - .../utils/models/parsedImage.ts | 49 - .../utils/models/picgoPostResult.ts | 46 - .../zhi-widget-publisher/utils/models/post.ts | 67 - .../utils/models/postForm.ts | 51 - .../utils/models/publishPreference.ts | 83 - .../utils/models/siyuanDataObj.ts | 43 - .../utils/models/userBlog.ts | 38 - .../utils/models/yamlFormatObj.ts | 52 - apps/zhi-widget-publisher/utils/netUtil.ts | 26 - .../utils/otherlib/ChromeUtil.js | 243 - .../utils/otherlib/FirefoxUtil.js | 52 - .../utils/otherlib/confUtil.js | 54 - .../utils/otherlib/hookUtil.js | 33 - .../utils/otherlib/imageToBase64.js | 52 - .../utils/otherlib/luteUtil.js | 60 - .../utils/otherlib/picgoUtil.js | 717 - .../utils/otherlib/scriptUtil.js | 72 - .../utils/otherlib/siyuanBrowserUtil.js | 147 - .../utils/otherlib/sysUtil.js | 45 - apps/zhi-widget-publisher/utils/pageUtil.ts | 122 - .../utils/parser/LinkParser.ts | 144 - .../utils/parser/imageParser.ts | 278 - .../platform/commonblog/commonblogApi.ts | 280 - .../commonblog/commonblogApiAdaptor.ts | 84 - .../platform/commonblog/commonblogCfg.ts | 159 - .../commonblog/commonblogPlaceholder.ts | 82 - .../utils/platform/commonblog/kms/kmsApi.ts | 232 - .../platform/commonblog/kms/kmsApiAdaptor.ts | 82 - .../utils/platform/commonblog/kms/kmsCfg.ts | 44 - .../commonblog/kms/test/testKmsApi.http | 2 - .../kms/test/testKmsApi_addDoc.http | 48 - .../kms/test/testKmsApi_updateDoc.http | 53 - .../platform/commonblog/liandi/liandiApi.ts | 181 - .../commonblog/liandi/liandiApiAdaptor.ts | 98 - .../platform/commonblog/liandi/liandiCfg.ts | 44 - .../commonblog/liandi/test/testLiandiApi.http | 2 - .../commonblog/yuque/test/testYuqueApi.http | 2 - .../yuque/test/testYuqueApi_repos.http | 8 - .../platform/commonblog/yuque/yuqueApi.ts | 203 - .../commonblog/yuque/yuqueApiAdaptor.ts | 171 - .../platform/commonblog/yuque/yuqueCfg.ts | 44 - .../utils/platform/dynamicConfig.ts | 351 - .../utils/platform/github/DynamicGCfg.ts | 87 - .../utils/platform/github/githubApi.ts | 243 - .../utils/platform/github/githubApiAdaptor.ts | 148 - .../utils/platform/github/githubCfg.ts | 192 - .../platform/github/hexo/hexoApiAdaptor.ts | 37 - .../utils/platform/github/hexo/hexoCfg.ts | 44 - .../github/hexo/hexoYamlConverterAdaptor.ts | 132 - .../github/hugo/HugoYamlConverterAdaptor.ts | 134 - .../platform/github/hugo/hugoApiAdaptor.ts | 37 - .../utils/platform/github/hugo/hugoCfg.ts | 43 - .../jekyll/JekyllYamlConverterAdaptor.ts | 108 - .../github/jekyll/jekyllApiAdaptor.ts | 37 - .../utils/platform/github/jekyll/jekyllCfg.ts | 44 - .../github/other/NextYamlConvertAdaptor.ts | 68 - .../github/other/NuxtYamlConverterAdaptor.ts | 94 - .../other/VitepressYamlConverterAdaptor.ts | 83 - .../platform/github/vuepress/VuepressCfg.ts | 43 - .../vuepress/VuepressYamlConvertAdaptor.ts | 129 - .../github/vuepress/vuepressApiAdaptor.ts | 43 - .../platform/github/vuepress/vuepressApiV1.ts | 72 - .../import/PRE_DEFINED_PLATFORM_CONSTANTS.ts | 64 - .../platform/import/platformImportUtil.ts | 193 - .../utils/platform/import/pre.json | 43 - .../platform/metaweblog/IMetaweblogCfg.ts | 77 - .../platform/metaweblog/MetaweblogCfg.ts | 97 - .../utils/platform/metaweblog/README.md | 11 - .../metaweblog/cnblogs/cnblogsApiAdaptor.ts | 37 - .../platform/metaweblog/cnblogs/cnblogsCfg.ts | 40 - .../metaweblog/conf/confApiAdaptor.ts | 37 - .../utils/platform/metaweblog/conf/confCfg.ts | 40 - .../utils/platform/metaweblog/dynamicMCfg.ts | 48 - .../metaweblog/jvue/jvueApiAdaptor.ts | 37 - .../utils/platform/metaweblog/jvue/jvueCfg.ts | 40 - .../platform/metaweblog/metaWeblogApi.ts | 292 - .../metaweblog/metaWeblogApiAdaptor.ts | 210 - .../metaweblog/metaweblogPlaceholder.ts | 63 - .../utils/platform/picgo/picGoUploadApi.ts | 96 - .../utils/platform/picgo/picgoPlugin.ts | 37 - .../utils/platform/picgo/picgoPostApi.ts | 252 - .../utils/platform/siyuan/siYuanApi.ts | 338 - .../utils/platform/siyuan/siYuanApiAdaptor.ts | 251 - .../utils/platform/siyuan/siYuanConfig.ts | 88 - .../utils/platform/siyuan/siyuanUtil.ts | 210 - .../utils/platform/wordpress/dynamicWCfg.ts | 48 - .../platform/wordpress/wordpressApiAdaptor.ts | 34 - .../utils/platform/wordpress/wordpressCfg.ts | 40 - .../utils/platform/yamlConvertAdaptor.ts | 47 - .../zhi-widget-publisher/utils/publishUtil.ts | 194 - apps/zhi-widget-publisher/utils/strUtil.ts | 179 - .../utils/transport/settingExportUtil.ts | 26 - .../utils/transport/settingImportUtil.ts | 26 - apps/zhi-widget-publisher/utils/util.ts | 194 - .../utils/xmlrpc/commonXmlrpcClient.ts | 101 - .../utils/xmlrpc/impl/chromeXmlrpc.ts | 101 - .../utils/xmlrpc/impl/middlewareXmlrpc.ts | 82 - .../utils/xmlrpc/impl/nodeXmlrpc.ts | 49 - apps/zhi-widget-publisher/utils/yamlUtil.ts | 48 - apps/zhi-widget-publisher/vite-env.d.ts | 46 - apps/zhi-widget-publisher/vite.config.ts | 295 - commitlint.config.js | 110 - nx.json | 46 - package.json | 70 +- packages/.gitkeep | 0 packages/eslint-config-custom/index.js | 11 + packages/eslint-config-custom/package.json | 15 + packages/tsconfig/base.json | 20 + packages/tsconfig/nextjs.json | 21 + packages/tsconfig/package.json | 9 + packages/tsconfig/react-library.json | 11 + packages/ui/Button.tsx | 7 + packages/ui/Header.tsx | 5 + packages/ui/index.tsx | 3 + packages/ui/package.json | 19 + packages/ui/tsconfig.json | 5 + packages/zhi-core/.eslintrc.json | 18 - packages/zhi-core/README.md | 11 - packages/zhi-core/package.json | 5 - packages/zhi-core/project.json | 43 - packages/zhi-core/src/env.d.ts | 28 - packages/zhi-core/src/index.ts | 1 - packages/zhi-core/src/lib/core/Bootstrap.ts | 46 - packages/zhi-core/src/lib/core/lifecycle.ts | 164 - .../zhi-core/src/lib/models/DependencyItem.ts | 115 - packages/zhi-core/src/lib/util/ZhiCoreUtil.ts | 55 - packages/zhi-core/src/lib/zhi-core.spec.ts | 7 - packages/zhi-core/src/lib/zhi-core.ts | 10 - packages/zhi-core/src/lib/zhi.ts | 209 - packages/zhi-core/tsconfig.json | 24 - packages/zhi-core/tsconfig.lib.json | 10 - packages/zhi-core/tsconfig.spec.json | 19 - packages/zhi-core/vite.config.ts | 54 - packages/zhi-lib-blog-api/.eslintrc.json | 18 - packages/zhi-lib-blog-api/README.md | 38 - packages/zhi-lib-blog-api/package.json | 16 - packages/zhi-lib-blog-api/project.json | 35 - packages/zhi-lib-blog-api/src/env.d.ts | 28 - packages/zhi-lib-blog-api/src/index.ts | 26 - packages/zhi-lib-blog-api/src/lib/IBlogApi.ts | 174 - packages/zhi-lib-blog-api/src/lib/blogApi.ts | 162 - .../zhi-lib-blog-api/src/lib/blogConfig.ts | 156 - .../zhi-lib-blog-api/src/lib/blogConstants.ts | 40 - .../src/lib/blogPlaceholder.ts | 97 - .../src/lib/enums/blogTypeEnum.ts | 48 - .../src/lib/enums/postStatusEnum.ts | 44 - .../src/lib/models/categoryInfo.ts | 80 - .../src/lib/models/mediaObject.ts | 72 - .../zhi-lib-blog-api/src/lib/models/post.ts | 124 - .../src/lib/models/siteConfig.ts | 90 - .../src/lib/models/userBlog.ts | 60 - .../src/lib/utils/ZhiBlogApiUtil.ts | 45 - .../src/lib/zhi-lib-blog-api.spec.ts | 30 - .../src/lib/zhi-lib-blog-api.ts | 38 - packages/zhi-lib-blog-api/tsconfig.json | 24 - packages/zhi-lib-blog-api/tsconfig.lib.json | 10 - packages/zhi-lib-blog-api/tsconfig.spec.json | 19 - packages/zhi-lib-blog-api/vite.config.ts | 73 - packages/zhi-lib-common/.eslintrc.json | 18 - packages/zhi-lib-common/README.md | 50 - packages/zhi-lib-common/package.json | 17 - packages/zhi-lib-common/project.json | 35 - packages/zhi-lib-common/src/env.d.ts | 28 - packages/zhi-lib-common/src/index.ts | 1 - .../zhi-lib-common/src/lib/ZhiCommonUtil.ts | 45 - packages/zhi-lib-common/src/lib/ZhiUtil.ts | 127 - .../zhi-lib-common/src/lib/dateUtil.spec.ts | 65 - packages/zhi-lib-common/src/lib/dateUtil.ts | 150 - packages/zhi-lib-common/src/lib/htmlUtil.ts | 210 - .../zhi-lib-common/src/lib/jsonUtil.spec.ts | 86 - packages/zhi-lib-common/src/lib/jsonUtil.ts | 61 - .../src/lib/markdownUtil.spec.ts | 36 - .../zhi-lib-common/src/lib/markdownUtil.ts | 75 - .../src/lib/md-adaptor/LuteAdaptor.ts | 147 - .../src/lib/md-adaptor/MarkdownAdaptor.ts | 47 - .../src/lib/md-adaptor/ShowdownAdaptor.ts | 61 - packages/zhi-lib-common/src/lib/objectUtil.ts | 51 - .../zhi-lib-common/src/lib/strUtil.spec.ts | 73 - packages/zhi-lib-common/src/lib/strUtil.ts | 154 - .../zhi-lib-common/src/lib/versionUtil.ts | 73 - .../src/lib/zhi-lib-common.spec.ts | 5 - .../zhi-lib-common/src/lib/zhi-lib-common.ts | 13 - packages/zhi-lib-common/src/lib/zhiCommon.ts | 61 - packages/zhi-lib-common/tsconfig.json | 24 - packages/zhi-lib-common/tsconfig.lib.json | 10 - packages/zhi-lib-common/tsconfig.spec.json | 19 - packages/zhi-lib-common/vite.config.ts | 67 - packages/zhi-lib-device/.eslintrc.json | 18 - packages/zhi-lib-device/README.md | 55 - packages/zhi-lib-device/package.json | 19 - packages/zhi-lib-device/project.json | 35 - packages/zhi-lib-device/src/index.ts | 26 - .../src/lib/basePathTypeEnum.ts | 61 - .../src/lib/browserUtil.spec.ts | 183 - .../zhi-lib-device/src/lib/browserUtil.ts | 209 - .../zhi-lib-device/src/lib/deviceDetection.ts | 105 - .../zhi-lib-device/src/lib/deviceTypeEnum.ts | 75 - .../zhi-lib-device/src/lib/siyuanDevice.ts | 355 - .../src/lib/zhi-lib-device.spec.ts | 30 - .../zhi-lib-device/src/lib/zhi-lib-device.ts | 34 - packages/zhi-lib-device/tsconfig.json | 23 - packages/zhi-lib-device/tsconfig.lib.json | 10 - packages/zhi-lib-device/tsconfig.spec.json | 19 - packages/zhi-lib-device/vite.config.ts | 64 - packages/zhi-lib-env/.eslintrc.json | 18 - packages/zhi-lib-env/README.md | 142 - packages/zhi-lib-env/package.json | 17 - packages/zhi-lib-env/project.json | 35 - packages/zhi-lib-env/src/index.spec.ts | 91 - packages/zhi-lib-env/src/index.ts | 26 - packages/zhi-lib-env/src/lib/Env.ts | 116 - packages/zhi-lib-env/src/lib/EnvConstants.ts | 60 - .../zhi-lib-env/src/lib/zhi-lib-env.spec.ts | 30 - packages/zhi-lib-env/src/lib/zhi-lib-env.ts | 35 - packages/zhi-lib-env/tsconfig.json | 24 - packages/zhi-lib-env/tsconfig.lib.json | 10 - packages/zhi-lib-env/tsconfig.spec.json | 19 - packages/zhi-lib-env/vite.config.ts | 64 - packages/zhi-lib-log/.eslintrc.json | 18 - packages/zhi-lib-log/README.md | 53 - packages/zhi-lib-log/package.json | 17 - packages/zhi-lib-log/project.json | 35 - packages/zhi-lib-log/src/index.spec.ts | 81 - packages/zhi-lib-log/src/index.ts | 26 - packages/zhi-lib-log/src/lib/crossChalk.ts | 78 - packages/zhi-lib-log/src/lib/defaultLogger.ts | 84 - packages/zhi-lib-log/src/lib/envHelper.ts | 77 - .../src/lib/factory/abstractLogFactory.ts | 65 - .../src/lib/factory/customLogFactory.ts | 54 - packages/zhi-lib-log/src/lib/logConstants.ts | 69 - packages/zhi-lib-log/src/lib/logFactory.ts | 70 - packages/zhi-lib-log/src/lib/logger.ts | 173 - .../zhi-lib-log/src/lib/zhi-lib-log.spec.ts | 30 - packages/zhi-lib-log/src/lib/zhi-lib-log.ts | 38 - packages/zhi-lib-log/tsconfig.json | 24 - packages/zhi-lib-log/tsconfig.lib.json | 10 - packages/zhi-lib-log/tsconfig.spec.json | 19 - packages/zhi-lib-log/vite.config.ts | 64 - packages/zhi-lib-siyuan-api/.eslintrc.json | 18 - packages/zhi-lib-siyuan-api/README.md | 14 - packages/zhi-lib-siyuan-api/package.json | 18 - packages/zhi-lib-siyuan-api/project.json | 35 - packages/zhi-lib-siyuan-api/src/env.d.ts | 28 - packages/zhi-lib-siyuan-api/src/index.ts | 26 - .../src/lib/ISiyuanKernelApi.ts | 77 - .../src/lib/siYuanApiAdaptor.spec.ts | 36 - .../src/lib/siYuanApiAdaptor.ts | 207 - .../zhi-lib-siyuan-api/src/lib/siyuanApi.ts | 59 - .../src/lib/siyuanClientApi.ts | 28 - .../src/lib/siyuanConfig.ts | 69 - .../src/lib/siyuanConstants.ts | 45 - .../src/lib/siyuanKernelApi.spec.ts | 149 - .../src/lib/siyuanKernelApi.ts | 482 - .../src/lib/siyuanPlaceholder.ts | 33 - .../src/lib/util/ZhiSiyuanApiUtil.ts | 45 - .../src/lib/zhi-lib-siyuan-api.spec.ts | 35 - .../src/lib/zhi-lib-siyuan-api.ts | 35 - packages/zhi-lib-siyuan-api/tsconfig.json | 24 - packages/zhi-lib-siyuan-api/tsconfig.lib.json | 10 - .../zhi-lib-siyuan-api/tsconfig.spec.json | 19 - packages/zhi-lib-siyuan-api/vite.config.ts | 62 - packages/zhi-loader/.eslintrc.json | 18 - packages/zhi-loader/README.md | 15 - packages/zhi-loader/package.json | 5 - packages/zhi-loader/project.json | 41 - .../zhi-loader/public/config/zhi-schema.js | 154 - .../zhi-loader/public/config/zhi.example.js | 89 - packages/zhi-loader/public/config/zhi.js | 56 - .../public/core/plugin-system/README.md | 5 - .../public/core/plugin-system/plugin.js | 3 - .../core/plugin-system/zhi-plugin-loader.js | 158 - packages/zhi-loader/public/favicon.ico | Bin 4286 -> 0 bytes packages/zhi-loader/public/theme.json | 7 - packages/zhi-loader/src/index.ts | 41 - .../zhi-loader/src/lib/zhi-loader.spec.ts | 32 - packages/zhi-loader/src/lib/zhi-loader.ts | 29 - .../src/style/common/basic/basic-dark.styl | 39 - .../src/style/common/basic/basic-green.styl | 39 - .../src/style/common/basic/basic-light.styl | 39 - .../src/style/common/basic/index.styl | 34 - .../src/style/common/fonts/README.md | 3 - .../src/style/common/fonts/font.styl | 27 - .../src/style/common/fonts/index.styl | 26 - .../src/style/common/fonts/webfont.css | 808 - .../src/style/common/global/index.styl | 194 - .../src/style/common/vars/index.styl | 26 - .../src/style/common/vars/vars-blog.styl | 27 - .../src/style/common/vars/vars-common.styl | 86 - .../src/style/common/vars/vars-zhi.styl | 28 - packages/zhi-loader/src/style/theme.styl | 27 - .../code-block/code-block-dark-plus-plus.styl | 69 - .../widgets/code-block/code-block-dark.styl | 29 - .../widgets/code-block/code-block-green.styl | 29 - .../code-block/code-block-hbuildx-light.styl | 42 - .../widgets/code-block/code-block-light.styl | 29 - .../widgets/code-block/code-block-print.styl | 35 - .../code-block/code-block-rem-craft.styl | 37 - .../widgets/code-block/code-block-savor.styl | 30 - .../widgets/code-block/code-block-sofill.styl | 35 - .../style/theme/widgets/code-block/index.styl | 111 - .../src/style/theme/widgets/deck/index.styl | 27 - .../src/style/theme/widgets/editor/index.styl | 56 - .../src/style/theme/widgets/mobile/index.styl | 47 - packages/zhi-loader/src/style/theme/zhi.styl | 48 - packages/zhi-loader/tsconfig.json | 23 - packages/zhi-loader/tsconfig.lib.json | 10 - packages/zhi-loader/tsconfig.spec.json | 19 - packages/zhi-loader/vite.config.ts | 52 - pnpm-lock.yaml | 6996 +- pnpm-workspace.yaml | 3 + tools/scripts/publish.mjs | 58 - tools/tsconfig.tools.json | 12 - tsconfig.base.json | 30 - turbo.json | 15 + 644 files changed, 2189 insertions(+), 151777 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintignore create mode 100644 .eslintrc.js delete mode 100644 .eslintrc.json delete mode 100644 .github/workflows/git-sync-zhi-widget-blog.yml create mode 100644 .npmrc delete mode 100644 .prettierignore delete mode 100644 .prettierrc delete mode 100644 .vscode/extensions.json delete mode 100644 DEVELOPMENT.md delete mode 100644 README_BACKUP.md delete mode 100644 README_zh_CN.md delete mode 100644 apps/.gitkeep create mode 100644 apps/docs/.eslintrc.js create mode 100644 apps/docs/.gitignore create mode 100644 apps/docs/README.md create mode 100644 apps/docs/app/layout.tsx create mode 100644 apps/docs/app/page.tsx create mode 100644 apps/docs/next-env.d.ts create mode 100644 apps/docs/next.config.js create mode 100644 apps/docs/package.json create mode 100644 apps/docs/tsconfig.json create mode 100644 apps/web/.eslintrc.js create mode 100644 apps/web/.gitignore create mode 100644 apps/web/README.md create mode 100644 apps/web/app/layout.tsx create mode 100644 apps/web/app/page.tsx create mode 100644 apps/web/next-env.d.ts create mode 100644 apps/web/next.config.js create mode 100644 apps/web/package.json create mode 100644 apps/web/tsconfig.json delete mode 100644 apps/zhi-widget-blog/.eslintignore delete mode 100644 apps/zhi-widget-blog/.eslintrc.json delete mode 100644 apps/zhi-widget-blog/.gitignore delete mode 100644 apps/zhi-widget-blog/.npmrc delete mode 100644 apps/zhi-widget-blog/README.md delete mode 100644 apps/zhi-widget-blog/app.config.ts delete mode 100644 apps/zhi-widget-blog/app.vue delete mode 100644 apps/zhi-widget-blog/assets/vdoing/fonts/README.md delete mode 100644 apps/zhi-widget-blog/assets/vdoing/fonts/font-vdoing.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/fonts/font-vdoing.ttf delete mode 100644 apps/zhi-widget-blog/assets/vdoing/fonts/font-vdoing.woff delete mode 100644 apps/zhi-widget-blog/assets/vdoing/fonts/font-vdoing.woff2 delete mode 100644 apps/zhi-widget-blog/assets/vdoing/fonts/font.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/fonts/index.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/fonts/webfont.css delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/arrow.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/code-theme.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/code.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/config.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/custom-blocks.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/index.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/markdown-container.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/mobile.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/palette.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/toc.styl delete mode 100644 apps/zhi-widget-blog/assets/vdoing/styles/wrapper.styl delete mode 100644 apps/zhi-widget-blog/components/vdoing/BodyBgImg.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/Buttons.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/DropdownLink.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/Footer.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/MeiliSearchBox.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/NavLink.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/NavLinks.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/Navbar.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/OutboundLink.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/Sidebar.vue delete mode 100644 apps/zhi-widget-blog/components/vdoing/SidebarButton.vue delete mode 100644 apps/zhi-widget-blog/layouts/vdoing.vue delete mode 100644 apps/zhi-widget-blog/nuxt.config.ts delete mode 100644 apps/zhi-widget-blog/package.json delete mode 100644 apps/zhi-widget-blog/pages/index.vue delete mode 100644 apps/zhi-widget-blog/pnpm-lock.yaml delete mode 100644 apps/zhi-widget-blog/project.json delete mode 100644 apps/zhi-widget-blog/public/favicon.ico delete mode 100644 apps/zhi-widget-blog/public/img/logo-color.png delete mode 100644 apps/zhi-widget-blog/public/img/logo-small.png delete mode 100644 apps/zhi-widget-blog/public/img/logo.png delete mode 100644 apps/zhi-widget-blog/public/img/photo.jpg delete mode 100644 apps/zhi-widget-blog/public/img/search.svg delete mode 100644 apps/zhi-widget-blog/public/lib/lute/lute-1.7.5-20230410.min.js delete mode 100644 apps/zhi-widget-blog/public/lib/webfont/webfont.css delete mode 100644 apps/zhi-widget-blog/server/api/endpoint/meilisearch/[...index].ts delete mode 100644 apps/zhi-widget-blog/server/api/hello.ts delete mode 100644 apps/zhi-widget-blog/utils/ZhiBlogNuxtUtil.ts delete mode 100644 apps/zhi-widget-blog/utils/vdoingUtil.ts delete mode 100644 apps/zhi-widget-publisher/.env.development.local.example delete mode 100644 apps/zhi-widget-publisher/.env.local.example delete mode 100644 apps/zhi-widget-publisher/.env.production.local.example delete mode 100644 apps/zhi-widget-publisher/.env.test.local.example delete mode 100644 apps/zhi-widget-publisher/.eslintrc.json delete mode 100644 apps/zhi-widget-publisher/.github/dependabot.yml delete mode 100644 apps/zhi-widget-publisher/.github/semantic.yml delete mode 100644 apps/zhi-widget-publisher/.github/workflows/ci.yml delete mode 100644 apps/zhi-widget-publisher/.github/workflows/release-please.yml delete mode 100644 apps/zhi-widget-publisher/.gitignore delete mode 100755 apps/zhi-widget-publisher/.husky/pre-commit delete mode 100644 apps/zhi-widget-publisher/.npmrc delete mode 100644 apps/zhi-widget-publisher/.prettierignore delete mode 100644 apps/zhi-widget-publisher/.prettierrc.json delete mode 100644 apps/zhi-widget-publisher/CHANGELOG.md delete mode 100644 apps/zhi-widget-publisher/LICENSE delete mode 100644 apps/zhi-widget-publisher/README.md delete mode 100644 apps/zhi-widget-publisher/assets/favicon/android-chrome-192x192.png delete mode 100644 apps/zhi-widget-publisher/assets/favicon/android-chrome-512x512.png delete mode 100644 apps/zhi-widget-publisher/assets/favicon/apple-touch-icon.png delete mode 100644 apps/zhi-widget-publisher/assets/favicon/favicon-16x16.png delete mode 100644 apps/zhi-widget-publisher/assets/favicon/favicon-32x32.png delete mode 100644 apps/zhi-widget-publisher/assets/favicon/favicon.ico delete mode 100644 apps/zhi-widget-publisher/assets/favicon/site.webmanifest delete mode 100644 apps/zhi-widget-publisher/assets/style.css delete mode 100644 apps/zhi-widget-publisher/assets/style.dark.css delete mode 100644 apps/zhi-widget-publisher/assets/webfont.css delete mode 100644 apps/zhi-widget-publisher/components.d.ts delete mode 100644 apps/zhi-widget-publisher/components/anki/AnkiIndex.vue delete mode 100644 apps/zhi-widget-publisher/components/blog/BlogIndex.vue delete mode 100644 apps/zhi-widget-publisher/components/blog/BlogMain.vue delete mode 100644 apps/zhi-widget-publisher/components/blog/singleWin/SingleAnki.vue delete mode 100644 apps/zhi-widget-publisher/components/blog/singleWin/SingleBlogDetail.vue delete mode 100644 apps/zhi-widget-publisher/components/blog/singleWin/SinglePicgo.vue delete mode 100644 apps/zhi-widget-publisher/components/blog/singleWin/singlePublish.vue delete mode 100644 apps/zhi-widget-publisher/components/detail/PostDetail.vue delete mode 100644 apps/zhi-widget-publisher/components/detail/PostDetailService.vue delete mode 100644 apps/zhi-widget-publisher/components/picgo/PicgoIndex.vue delete mode 100644 apps/zhi-widget-publisher/components/picgo/PicgoSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/picgo/common/ConfigForm.vue delete mode 100644 apps/zhi-widget-publisher/components/picgo/setting/PicbedSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/picgo/setting/PicgoConfigSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/picgo/setting/PicgoPluginSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/PublishIndex.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/PublishService.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/DynamicPlatform.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/PlatformMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/PlatformSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/PostBind.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/ServiceSwitch.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/CommonBlogMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/GithubMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/MetaweblogMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/common/KmsMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/common/LiandiMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/common/YuqueMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/github/HexoMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/github/HugoMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/github/JekyllMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/github/VuepressMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/metaweblog/CnblogsMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/metaweblog/ConfluenceMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/metaweblog/JVueMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/main/metaweblog/WordpressMain.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/CommonBlogSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/GithubSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/MetaweblogSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/common/KmsSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/common/LiandiSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/common/YuqueSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/github/HexoSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/github/HugoSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/github/JekyllSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/github/VuepressSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/metaweblog/CnblogsSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/metaweblog/ConfluenceSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/metaweblog/JVueSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/publish/tab/setting/metaweblog/WordpressSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/set/GeneralSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/set/SetIndex.vue delete mode 100644 apps/zhi-widget-publisher/components/set/preference/ChangeLocal.vue delete mode 100644 apps/zhi-widget-publisher/components/set/preference/PreferenceSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/set/siyuanApiSetting.vue delete mode 100644 apps/zhi-widget-publisher/components/transport/ClearData.vue delete mode 100644 apps/zhi-widget-publisher/components/transport/ExportData.vue delete mode 100644 apps/zhi-widget-publisher/components/transport/ImportData.vue delete mode 100644 apps/zhi-widget-publisher/components/transport/TransportSelect.vue delete mode 100644 apps/zhi-widget-publisher/composables/picgo/import/picgoPostCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/picgo/picgoCommonCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/picgo/picgoInitPageCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/picgo/picgoManageCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/picgo/picgoUploadCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/githubPagesCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/initPublishCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/makeDescCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/makeSlugCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/makeTagCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/makeYamlCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/pageModeCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/publishActionCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/publishQuickCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/publishTimeCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/siyuanPageCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/publish/tabCountCom.ts delete mode 100644 apps/zhi-widget-publisher/composables/setting/preferenceSettingCom.ts delete mode 100644 apps/zhi-widget-publisher/compose-dev.yaml delete mode 100644 apps/zhi-widget-publisher/index.html delete mode 100644 apps/zhi-widget-publisher/jsdoc.json delete mode 100644 apps/zhi-widget-publisher/layouts/AppLayout.vue delete mode 100644 apps/zhi-widget-publisher/layouts/default/AppLayoutDefault.vue delete mode 100644 apps/zhi-widget-publisher/layouts/default/DefaultFooter.vue delete mode 100644 apps/zhi-widget-publisher/layouts/default/DefaultHeader.vue delete mode 100644 apps/zhi-widget-publisher/locales/en_US.ts delete mode 100644 apps/zhi-widget-publisher/locales/index.ts delete mode 100644 apps/zhi-widget-publisher/locales/zh_CN.ts delete mode 100644 apps/zhi-widget-publisher/package.json delete mode 100644 apps/zhi-widget-publisher/pages/anki/App.vue delete mode 100644 apps/zhi-widget-publisher/pages/anki/main.ts delete mode 100644 apps/zhi-widget-publisher/pages/blog/App.vue delete mode 100644 apps/zhi-widget-publisher/pages/blog/main.ts delete mode 100644 apps/zhi-widget-publisher/pages/detail/App.vue delete mode 100644 apps/zhi-widget-publisher/pages/detail/main.ts delete mode 100644 apps/zhi-widget-publisher/pages/index/App.vue delete mode 100644 apps/zhi-widget-publisher/pages/index/main.ts delete mode 100644 apps/zhi-widget-publisher/pages/picgo/App.vue delete mode 100644 apps/zhi-widget-publisher/pages/picgo/main.ts delete mode 100644 apps/zhi-widget-publisher/pages/publish/App.vue delete mode 100644 apps/zhi-widget-publisher/pages/publish/main.ts delete mode 100644 apps/zhi-widget-publisher/pages/set/App.vue delete mode 100644 apps/zhi-widget-publisher/pages/set/main.ts delete mode 100644 apps/zhi-widget-publisher/plugins/font-awesome/font-awesome.ts delete mode 100644 apps/zhi-widget-publisher/plugins/page-beauty/page-beauty.ts delete mode 100644 apps/zhi-widget-publisher/plugins/vue-hljs/lib/codecopy/codecopy.css delete mode 100644 apps/zhi-widget-publisher/plugins/vue-hljs/lib/codecopy/index.js delete mode 100644 apps/zhi-widget-publisher/plugins/vue-hljs/lib/vue-hljs/main.js delete mode 100644 apps/zhi-widget-publisher/plugins/vue-hljs/lib/vue-hljs/vs.css delete mode 100644 apps/zhi-widget-publisher/plugins/vue-hljs/lib/vue-hljs/vs2015.css delete mode 100644 apps/zhi-widget-publisher/plugins/vue-hljs/vue-hljs.js delete mode 100644 apps/zhi-widget-publisher/pnpm-lock.yaml delete mode 100644 apps/zhi-widget-publisher/policy.md delete mode 100644 apps/zhi-widget-publisher/public/LICENSE delete mode 100644 apps/zhi-widget-publisher/public/background.js delete mode 100644 apps/zhi-widget-publisher/public/favicon.ico delete mode 100644 apps/zhi-widget-publisher/public/images/icon128.png delete mode 100644 apps/zhi-widget-publisher/public/images/icon16.png delete mode 100644 apps/zhi-widget-publisher/public/images/icon32.png delete mode 100644 apps/zhi-widget-publisher/public/images/icon48.png delete mode 100644 apps/zhi-widget-publisher/public/lib/cmd/syCmd.js delete mode 100644 apps/zhi-widget-publisher/public/lib/json-localstorage/json-localstorage.js delete mode 100644 apps/zhi-widget-publisher/public/lib/lute/lute-version.txt delete mode 100644 apps/zhi-widget-publisher/public/lib/lute/lute.min.js delete mode 100644 apps/zhi-widget-publisher/public/lib/mathjax/mathjax-version.txt delete mode 100644 apps/zhi-widget-publisher/public/lib/mathjax/mathjax.js delete mode 100644 apps/zhi-widget-publisher/public/lib/mathjax/mathjaxCfg.js delete mode 100644 apps/zhi-widget-publisher/public/lib/picgo/picgo-logo.png delete mode 100644 apps/zhi-widget-publisher/public/lib/picgo/picgo-version.txt delete mode 100644 apps/zhi-widget-publisher/public/lib/picgo/syPicgo.js delete mode 100644 apps/zhi-widget-publisher/public/lib/siyuan/publish-helper.js delete mode 100644 apps/zhi-widget-publisher/public/lib/siyuan/silot.js delete mode 100644 apps/zhi-widget-publisher/public/lib/siyuan/theme.js delete mode 100644 apps/zhi-widget-publisher/public/lib/siyuanhook.js delete mode 100644 apps/zhi-widget-publisher/public/manifest.dev.json delete mode 100644 apps/zhi-widget-publisher/public/manifest.prod.json delete mode 100644 apps/zhi-widget-publisher/public/mv2/background-v2-for-firefox.js delete mode 100644 apps/zhi-widget-publisher/public/mv2/manifest-v2-for-firefox.json delete mode 100644 apps/zhi-widget-publisher/public/preview-light.png delete mode 100644 apps/zhi-widget-publisher/public/preview.png delete mode 100644 apps/zhi-widget-publisher/public/widget.json delete mode 100644 apps/zhi-widget-publisher/scripts/dev.py delete mode 100644 apps/zhi-widget-publisher/scripts/ext.py delete mode 100644 apps/zhi-widget-publisher/scripts/scriptutils.py delete mode 100644 apps/zhi-widget-publisher/scripts/serve.py delete mode 100644 apps/zhi-widget-publisher/scripts/version.py delete mode 100644 apps/zhi-widget-publisher/scripts/widget.py delete mode 100644 apps/zhi-widget-publisher/stores/picbedStore.ts delete mode 100644 apps/zhi-widget-publisher/stores/tabCountStore.ts delete mode 100644 apps/zhi-widget-publisher/sy-scripts/customCmd.js delete mode 100644 apps/zhi-widget-publisher/tech.md delete mode 100644 apps/zhi-widget-publisher/test/TEST_CONSTANTS.ts delete mode 100644 apps/zhi-widget-publisher/test/async.test.ts delete mode 100644 apps/zhi-widget-publisher/test/components/publish/tab/main/githubMain.test.ts delete mode 100644 apps/zhi-widget-publisher/test/composables/TestSlug.vue delete mode 100644 apps/zhi-widget-publisher/test/composables/makeSlugCom.test.ts delete mode 100644 apps/zhi-widget-publisher/test/data/demo/siyuanPage.txt delete mode 100644 apps/zhi-widget-publisher/test/data/demo/siyuanPageID.txt delete mode 100644 apps/zhi-widget-publisher/test/data/demo/yaml.txt delete mode 100644 apps/zhi-widget-publisher/test/data/demo/yamlObj.txt delete mode 100644 apps/zhi-widget-publisher/test/pages/indexPage.test.ts delete mode 100644 apps/zhi-widget-publisher/test/public/lib/cmd/syCmd.test.ts delete mode 100644 apps/zhi-widget-publisher/test/setup.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/configUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/dateUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/envUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/fileUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/idUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/logUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/netUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/pageUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/parser/imageParser.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/parser/linkParser.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/platform/metaweblog/xmlrpc.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/platform/siyuan/siyuanApi.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/publishUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/strUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/util.test.ts delete mode 100644 apps/zhi-widget-publisher/test/utils/yamlUtil.test.ts delete mode 100644 apps/zhi-widget-publisher/tsconfig.json delete mode 100644 apps/zhi-widget-publisher/tsconfig.node.json delete mode 100644 apps/zhi-widget-publisher/typings/README.md delete mode 100644 apps/zhi-widget-publisher/typings/custom.d.ts delete mode 100644 apps/zhi-widget-publisher/typings/fs-extra.d.ts delete mode 100644 apps/zhi-widget-publisher/typings/js-yaml.d.ts delete mode 100644 apps/zhi-widget-publisher/typings/node-localstorage.d.ts delete mode 100644 apps/zhi-widget-publisher/typings/picgo.d.ts delete mode 100644 apps/zhi-widget-publisher/utils/api.ts delete mode 100644 apps/zhi-widget-publisher/utils/arrayUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/browserUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/common/commonEnv.ts delete mode 100644 apps/zhi-widget-publisher/utils/common/pageEditMode.ts delete mode 100644 apps/zhi-widget-publisher/utils/common/readMode.ts delete mode 100644 apps/zhi-widget-publisher/utils/common/sourceContentShowType.ts delete mode 100644 apps/zhi-widget-publisher/utils/configUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/constants/apiTypeConstants.ts delete mode 100644 apps/zhi-widget-publisher/utils/constants/constants.ts delete mode 100644 apps/zhi-widget-publisher/utils/constants/metaweblogMethodConstants.ts delete mode 100644 apps/zhi-widget-publisher/utils/constants/postStatusConstants.ts delete mode 100644 apps/zhi-widget-publisher/utils/constants/postidKeyConstants.ts delete mode 100644 apps/zhi-widget-publisher/utils/constants/siyuanConstants.ts delete mode 100644 apps/zhi-widget-publisher/utils/constants/siyuanPageConstants.ts delete mode 100644 apps/zhi-widget-publisher/utils/constants/switchConstants.ts delete mode 100644 apps/zhi-widget-publisher/utils/dateUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/deviceUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/envUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/fileUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/hashUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/htmlUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/idUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/jsonUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/logUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/markdownUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/categoryInfo.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/imageItem.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/parsedImage.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/picgoPostResult.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/post.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/postForm.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/publishPreference.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/siyuanDataObj.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/userBlog.ts delete mode 100644 apps/zhi-widget-publisher/utils/models/yamlFormatObj.ts delete mode 100644 apps/zhi-widget-publisher/utils/netUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/ChromeUtil.js delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/FirefoxUtil.js delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/confUtil.js delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/hookUtil.js delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/imageToBase64.js delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/luteUtil.js delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/picgoUtil.js delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/scriptUtil.js delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/siyuanBrowserUtil.js delete mode 100644 apps/zhi-widget-publisher/utils/otherlib/sysUtil.js delete mode 100644 apps/zhi-widget-publisher/utils/pageUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/parser/LinkParser.ts delete mode 100644 apps/zhi-widget-publisher/utils/parser/imageParser.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/commonblogApi.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/commonblogApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/commonblogCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/commonblogPlaceholder.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/kms/kmsApi.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/kms/kmsApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/kms/kmsCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/kms/test/testKmsApi.http delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/kms/test/testKmsApi_addDoc.http delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/kms/test/testKmsApi_updateDoc.http delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/liandi/liandiApi.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/liandi/liandiApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/liandi/liandiCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/liandi/test/testLiandiApi.http delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/yuque/test/testYuqueApi.http delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/yuque/test/testYuqueApi_repos.http delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/yuque/yuqueApi.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/yuque/yuqueApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/commonblog/yuque/yuqueCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/dynamicConfig.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/DynamicGCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/githubApi.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/githubApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/githubCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/hexo/hexoApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/hexo/hexoCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/hexo/hexoYamlConverterAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/hugo/HugoYamlConverterAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/hugo/hugoApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/hugo/hugoCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/jekyll/JekyllYamlConverterAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/jekyll/jekyllApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/jekyll/jekyllCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/other/NextYamlConvertAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/other/NuxtYamlConverterAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/other/VitepressYamlConverterAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/vuepress/VuepressCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/vuepress/VuepressYamlConvertAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/vuepress/vuepressApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/github/vuepress/vuepressApiV1.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/import/PRE_DEFINED_PLATFORM_CONSTANTS.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/import/platformImportUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/import/pre.json delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/IMetaweblogCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/MetaweblogCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/README.md delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/cnblogs/cnblogsApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/cnblogs/cnblogsCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/conf/confApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/conf/confCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/dynamicMCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/jvue/jvueApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/jvue/jvueCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/metaWeblogApi.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/metaWeblogApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/metaweblog/metaweblogPlaceholder.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/picgo/picGoUploadApi.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/picgo/picgoPlugin.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/picgo/picgoPostApi.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/siyuan/siYuanApi.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/siyuan/siYuanApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/siyuan/siYuanConfig.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/siyuan/siyuanUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/wordpress/dynamicWCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/wordpress/wordpressApiAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/wordpress/wordpressCfg.ts delete mode 100644 apps/zhi-widget-publisher/utils/platform/yamlConvertAdaptor.ts delete mode 100644 apps/zhi-widget-publisher/utils/publishUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/strUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/transport/settingExportUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/transport/settingImportUtil.ts delete mode 100644 apps/zhi-widget-publisher/utils/util.ts delete mode 100644 apps/zhi-widget-publisher/utils/xmlrpc/commonXmlrpcClient.ts delete mode 100644 apps/zhi-widget-publisher/utils/xmlrpc/impl/chromeXmlrpc.ts delete mode 100644 apps/zhi-widget-publisher/utils/xmlrpc/impl/middlewareXmlrpc.ts delete mode 100644 apps/zhi-widget-publisher/utils/xmlrpc/impl/nodeXmlrpc.ts delete mode 100644 apps/zhi-widget-publisher/utils/yamlUtil.ts delete mode 100644 apps/zhi-widget-publisher/vite-env.d.ts delete mode 100644 apps/zhi-widget-publisher/vite.config.ts delete mode 100644 commitlint.config.js delete mode 100644 nx.json delete mode 100644 packages/.gitkeep create mode 100644 packages/eslint-config-custom/index.js create mode 100644 packages/eslint-config-custom/package.json create mode 100644 packages/tsconfig/base.json create mode 100644 packages/tsconfig/nextjs.json create mode 100644 packages/tsconfig/package.json create mode 100644 packages/tsconfig/react-library.json create mode 100644 packages/ui/Button.tsx create mode 100644 packages/ui/Header.tsx create mode 100644 packages/ui/index.tsx create mode 100644 packages/ui/package.json create mode 100644 packages/ui/tsconfig.json delete mode 100644 packages/zhi-core/.eslintrc.json delete mode 100644 packages/zhi-core/README.md delete mode 100644 packages/zhi-core/package.json delete mode 100644 packages/zhi-core/project.json delete mode 100644 packages/zhi-core/src/env.d.ts delete mode 100644 packages/zhi-core/src/index.ts delete mode 100644 packages/zhi-core/src/lib/core/Bootstrap.ts delete mode 100644 packages/zhi-core/src/lib/core/lifecycle.ts delete mode 100644 packages/zhi-core/src/lib/models/DependencyItem.ts delete mode 100644 packages/zhi-core/src/lib/util/ZhiCoreUtil.ts delete mode 100644 packages/zhi-core/src/lib/zhi-core.spec.ts delete mode 100644 packages/zhi-core/src/lib/zhi-core.ts delete mode 100644 packages/zhi-core/src/lib/zhi.ts delete mode 100644 packages/zhi-core/tsconfig.json delete mode 100644 packages/zhi-core/tsconfig.lib.json delete mode 100644 packages/zhi-core/tsconfig.spec.json delete mode 100644 packages/zhi-core/vite.config.ts delete mode 100644 packages/zhi-lib-blog-api/.eslintrc.json delete mode 100644 packages/zhi-lib-blog-api/README.md delete mode 100644 packages/zhi-lib-blog-api/package.json delete mode 100644 packages/zhi-lib-blog-api/project.json delete mode 100644 packages/zhi-lib-blog-api/src/env.d.ts delete mode 100644 packages/zhi-lib-blog-api/src/index.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/IBlogApi.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/blogApi.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/blogConfig.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/blogConstants.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/blogPlaceholder.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/enums/blogTypeEnum.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/enums/postStatusEnum.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/models/categoryInfo.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/models/mediaObject.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/models/post.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/models/siteConfig.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/models/userBlog.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/utils/ZhiBlogApiUtil.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/zhi-lib-blog-api.spec.ts delete mode 100644 packages/zhi-lib-blog-api/src/lib/zhi-lib-blog-api.ts delete mode 100644 packages/zhi-lib-blog-api/tsconfig.json delete mode 100644 packages/zhi-lib-blog-api/tsconfig.lib.json delete mode 100644 packages/zhi-lib-blog-api/tsconfig.spec.json delete mode 100644 packages/zhi-lib-blog-api/vite.config.ts delete mode 100644 packages/zhi-lib-common/.eslintrc.json delete mode 100644 packages/zhi-lib-common/README.md delete mode 100644 packages/zhi-lib-common/package.json delete mode 100644 packages/zhi-lib-common/project.json delete mode 100644 packages/zhi-lib-common/src/env.d.ts delete mode 100644 packages/zhi-lib-common/src/index.ts delete mode 100644 packages/zhi-lib-common/src/lib/ZhiCommonUtil.ts delete mode 100644 packages/zhi-lib-common/src/lib/ZhiUtil.ts delete mode 100644 packages/zhi-lib-common/src/lib/dateUtil.spec.ts delete mode 100644 packages/zhi-lib-common/src/lib/dateUtil.ts delete mode 100644 packages/zhi-lib-common/src/lib/htmlUtil.ts delete mode 100644 packages/zhi-lib-common/src/lib/jsonUtil.spec.ts delete mode 100644 packages/zhi-lib-common/src/lib/jsonUtil.ts delete mode 100644 packages/zhi-lib-common/src/lib/markdownUtil.spec.ts delete mode 100644 packages/zhi-lib-common/src/lib/markdownUtil.ts delete mode 100644 packages/zhi-lib-common/src/lib/md-adaptor/LuteAdaptor.ts delete mode 100644 packages/zhi-lib-common/src/lib/md-adaptor/MarkdownAdaptor.ts delete mode 100644 packages/zhi-lib-common/src/lib/md-adaptor/ShowdownAdaptor.ts delete mode 100644 packages/zhi-lib-common/src/lib/objectUtil.ts delete mode 100644 packages/zhi-lib-common/src/lib/strUtil.spec.ts delete mode 100644 packages/zhi-lib-common/src/lib/strUtil.ts delete mode 100644 packages/zhi-lib-common/src/lib/versionUtil.ts delete mode 100644 packages/zhi-lib-common/src/lib/zhi-lib-common.spec.ts delete mode 100644 packages/zhi-lib-common/src/lib/zhi-lib-common.ts delete mode 100644 packages/zhi-lib-common/src/lib/zhiCommon.ts delete mode 100644 packages/zhi-lib-common/tsconfig.json delete mode 100644 packages/zhi-lib-common/tsconfig.lib.json delete mode 100644 packages/zhi-lib-common/tsconfig.spec.json delete mode 100644 packages/zhi-lib-common/vite.config.ts delete mode 100644 packages/zhi-lib-device/.eslintrc.json delete mode 100644 packages/zhi-lib-device/README.md delete mode 100644 packages/zhi-lib-device/package.json delete mode 100644 packages/zhi-lib-device/project.json delete mode 100644 packages/zhi-lib-device/src/index.ts delete mode 100644 packages/zhi-lib-device/src/lib/basePathTypeEnum.ts delete mode 100644 packages/zhi-lib-device/src/lib/browserUtil.spec.ts delete mode 100644 packages/zhi-lib-device/src/lib/browserUtil.ts delete mode 100644 packages/zhi-lib-device/src/lib/deviceDetection.ts delete mode 100644 packages/zhi-lib-device/src/lib/deviceTypeEnum.ts delete mode 100644 packages/zhi-lib-device/src/lib/siyuanDevice.ts delete mode 100644 packages/zhi-lib-device/src/lib/zhi-lib-device.spec.ts delete mode 100644 packages/zhi-lib-device/src/lib/zhi-lib-device.ts delete mode 100644 packages/zhi-lib-device/tsconfig.json delete mode 100644 packages/zhi-lib-device/tsconfig.lib.json delete mode 100644 packages/zhi-lib-device/tsconfig.spec.json delete mode 100644 packages/zhi-lib-device/vite.config.ts delete mode 100644 packages/zhi-lib-env/.eslintrc.json delete mode 100644 packages/zhi-lib-env/README.md delete mode 100644 packages/zhi-lib-env/package.json delete mode 100644 packages/zhi-lib-env/project.json delete mode 100644 packages/zhi-lib-env/src/index.spec.ts delete mode 100644 packages/zhi-lib-env/src/index.ts delete mode 100644 packages/zhi-lib-env/src/lib/Env.ts delete mode 100644 packages/zhi-lib-env/src/lib/EnvConstants.ts delete mode 100644 packages/zhi-lib-env/src/lib/zhi-lib-env.spec.ts delete mode 100644 packages/zhi-lib-env/src/lib/zhi-lib-env.ts delete mode 100644 packages/zhi-lib-env/tsconfig.json delete mode 100644 packages/zhi-lib-env/tsconfig.lib.json delete mode 100644 packages/zhi-lib-env/tsconfig.spec.json delete mode 100644 packages/zhi-lib-env/vite.config.ts delete mode 100644 packages/zhi-lib-log/.eslintrc.json delete mode 100644 packages/zhi-lib-log/README.md delete mode 100644 packages/zhi-lib-log/package.json delete mode 100644 packages/zhi-lib-log/project.json delete mode 100644 packages/zhi-lib-log/src/index.spec.ts delete mode 100644 packages/zhi-lib-log/src/index.ts delete mode 100644 packages/zhi-lib-log/src/lib/crossChalk.ts delete mode 100644 packages/zhi-lib-log/src/lib/defaultLogger.ts delete mode 100644 packages/zhi-lib-log/src/lib/envHelper.ts delete mode 100644 packages/zhi-lib-log/src/lib/factory/abstractLogFactory.ts delete mode 100644 packages/zhi-lib-log/src/lib/factory/customLogFactory.ts delete mode 100644 packages/zhi-lib-log/src/lib/logConstants.ts delete mode 100644 packages/zhi-lib-log/src/lib/logFactory.ts delete mode 100644 packages/zhi-lib-log/src/lib/logger.ts delete mode 100644 packages/zhi-lib-log/src/lib/zhi-lib-log.spec.ts delete mode 100644 packages/zhi-lib-log/src/lib/zhi-lib-log.ts delete mode 100644 packages/zhi-lib-log/tsconfig.json delete mode 100644 packages/zhi-lib-log/tsconfig.lib.json delete mode 100644 packages/zhi-lib-log/tsconfig.spec.json delete mode 100644 packages/zhi-lib-log/vite.config.ts delete mode 100644 packages/zhi-lib-siyuan-api/.eslintrc.json delete mode 100644 packages/zhi-lib-siyuan-api/README.md delete mode 100644 packages/zhi-lib-siyuan-api/package.json delete mode 100644 packages/zhi-lib-siyuan-api/project.json delete mode 100644 packages/zhi-lib-siyuan-api/src/env.d.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/index.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/ISiyuanKernelApi.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/siYuanApiAdaptor.spec.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/siYuanApiAdaptor.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/siyuanApi.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/siyuanClientApi.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/siyuanConfig.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/siyuanConstants.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/siyuanKernelApi.spec.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/siyuanKernelApi.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/siyuanPlaceholder.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/util/ZhiSiyuanApiUtil.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/zhi-lib-siyuan-api.spec.ts delete mode 100644 packages/zhi-lib-siyuan-api/src/lib/zhi-lib-siyuan-api.ts delete mode 100644 packages/zhi-lib-siyuan-api/tsconfig.json delete mode 100644 packages/zhi-lib-siyuan-api/tsconfig.lib.json delete mode 100644 packages/zhi-lib-siyuan-api/tsconfig.spec.json delete mode 100644 packages/zhi-lib-siyuan-api/vite.config.ts delete mode 100644 packages/zhi-loader/.eslintrc.json delete mode 100644 packages/zhi-loader/README.md delete mode 100644 packages/zhi-loader/package.json delete mode 100644 packages/zhi-loader/project.json delete mode 100644 packages/zhi-loader/public/config/zhi-schema.js delete mode 100644 packages/zhi-loader/public/config/zhi.example.js delete mode 100644 packages/zhi-loader/public/config/zhi.js delete mode 100644 packages/zhi-loader/public/core/plugin-system/README.md delete mode 100644 packages/zhi-loader/public/core/plugin-system/plugin.js delete mode 100644 packages/zhi-loader/public/core/plugin-system/zhi-plugin-loader.js delete mode 100644 packages/zhi-loader/public/favicon.ico delete mode 100644 packages/zhi-loader/public/theme.json delete mode 100644 packages/zhi-loader/src/index.ts delete mode 100644 packages/zhi-loader/src/lib/zhi-loader.spec.ts delete mode 100644 packages/zhi-loader/src/lib/zhi-loader.ts delete mode 100644 packages/zhi-loader/src/style/common/basic/basic-dark.styl delete mode 100644 packages/zhi-loader/src/style/common/basic/basic-green.styl delete mode 100644 packages/zhi-loader/src/style/common/basic/basic-light.styl delete mode 100644 packages/zhi-loader/src/style/common/basic/index.styl delete mode 100644 packages/zhi-loader/src/style/common/fonts/README.md delete mode 100644 packages/zhi-loader/src/style/common/fonts/font.styl delete mode 100644 packages/zhi-loader/src/style/common/fonts/index.styl delete mode 100644 packages/zhi-loader/src/style/common/fonts/webfont.css delete mode 100644 packages/zhi-loader/src/style/common/global/index.styl delete mode 100644 packages/zhi-loader/src/style/common/vars/index.styl delete mode 100644 packages/zhi-loader/src/style/common/vars/vars-blog.styl delete mode 100644 packages/zhi-loader/src/style/common/vars/vars-common.styl delete mode 100644 packages/zhi-loader/src/style/common/vars/vars-zhi.styl delete mode 100644 packages/zhi-loader/src/style/theme.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/code-block-dark-plus-plus.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/code-block-dark.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/code-block-green.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/code-block-hbuildx-light.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/code-block-light.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/code-block-print.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/code-block-rem-craft.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/code-block-savor.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/code-block-sofill.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/code-block/index.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/deck/index.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/editor/index.styl delete mode 100644 packages/zhi-loader/src/style/theme/widgets/mobile/index.styl delete mode 100644 packages/zhi-loader/src/style/theme/zhi.styl delete mode 100644 packages/zhi-loader/tsconfig.json delete mode 100644 packages/zhi-loader/tsconfig.lib.json delete mode 100644 packages/zhi-loader/tsconfig.spec.json delete mode 100644 packages/zhi-loader/vite.config.ts create mode 100644 pnpm-workspace.yaml delete mode 100644 tools/scripts/publish.mjs delete mode 100644 tools/tsconfig.tools.json delete mode 100644 tsconfig.base.json create mode 100644 turbo.json diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 6e87a003..00000000 --- a/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Editor configuration, see http://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -max_line_length = off -trim_trailing_whitespace = false diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 3c3629e6..00000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..5b999efa --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,10 @@ +module.exports = { + root: true, + // This tells ESLint to load the config from the package `eslint-config-custom` + extends: ["custom"], + settings: { + next: { + rootDir: ["apps/*/"], + }, + }, +}; diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 9ca2e830..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "root": true, - "ignorePatterns": ["**/*"], - "plugins": ["@nx"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": { - "@nx/enforce-module-boundaries": [ - "error", - { - "enforceBuildableLibDependency": true, - "allow": [], - "depConstraints": [ - { - "sourceTag": "*", - "onlyDependOnLibsWithTags": ["*"] - } - ] - } - ] - } - }, - { - "files": ["*.ts", "*.tsx"], - "extends": ["plugin:@nx/typescript"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "extends": ["plugin:@nx/javascript"], - "rules": {} - } - ] -} diff --git a/.github/workflows/git-sync-zhi-widget-blog.yml b/.github/workflows/git-sync-zhi-widget-blog.yml deleted file mode 100644 index a985ffbb..00000000 --- a/.github/workflows/git-sync-zhi-widget-blog.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: sync zhi-widget-blog - -on: - push: - branches: - - main - -jobs: - git-sync: - runs-on: ubuntu-latest - steps: - - name: git-sync - uses: wei/git-sync@v3 - with: - source_repo: "terwer/zhi" - source_branch: "main" - destination_repo: "terwer/zhi-blog" - destination_branch: "dist" - ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} # optional - source_ssh_private_key: ${{ secrets.SOURCE_SSH_PRIVATE_KEY }} # optional, will override `SSH_PRIVATE_KEY` - destination_ssh_private_key: ${{ secrets.DESTINATION_SSH_PRIVATE_KEY }} # optional, will override `SSH_PRIVATE_KEY` diff --git a/.gitignore b/.gitignore index 51b9af52..7b561172 100644 --- a/.gitignore +++ b/.gitignore @@ -1,39 +1,39 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# compiled output -dist -tmp -/out-tsc +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies node_modules +.pnp +.pnp.js + +# testing +coverage -# IDEs and editors -/.idea -.project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace - -# IDE - VSCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json +# next.js +.next/ +out/ +build # misc -/.sass-cache -/connect.lock -/coverage -/libpeerconnection.log -npm-debug.log -yarn-error.log -testem.log -/typings - -# System Files .DS_Store -Thumbs.db +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + +# turbo +.turbo + +# vercel +.vercel + +# IDE +.idea diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..ded82e2f --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +auto-install-peers = true diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 9481e77e..00000000 --- a/.prettierignore +++ /dev/null @@ -1,3 +0,0 @@ -# Add files here to ignore them from prettier formatting -/dist -/coverage \ No newline at end of file diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index f8ba1865..00000000 --- a/.prettierrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "semi": false, - "singleQuote": false, - "printWidth": 120 -} diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 1b301e19..00000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint"] -} diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md deleted file mode 100644 index db7a2f1f..00000000 --- a/DEVELOPMENT.md +++ /dev/null @@ -1,53 +0,0 @@ -# Zhi - - - -✨ **This workspace has been generated by [Nx, a Smart, fast and extensible build system.](https://nx.dev)** ✨ - -## Understand this workspace - -Run `nx graph` to see a diagram of the dependencies of the projects. - -## Remote caching - -Run `npx nx connect-to-nx-cloud` to enable [remote caching](https://nx.app) and make CI faster. - -## Further help - -Visit the [Nx Documentation](https://nx.dev) to learn more. - -## Components - -### commitlint - -1 - -https://www.npmjs.com/package/@commitlint/cz-commitlint - -```bash -npm install --save-dev @commitlint/config-angular @commitlint/cz-commitlint commitizen inquirer@8 -## commitlint.config.js -``` - -2 package.json - -or - -``` -{ - "scripts": { - "commit": "git-cz" - }, - "config": { - "commitizen": { - "path": "@commitlint/cz-commitlint" - } - } -} -``` - -3 -```bash -git add -A -npm run commit -``` diff --git a/README.md b/README.md index b8cdc93d..bc389a06 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,81 @@ -# Zhi +# Turborepo starter -🛍️ A series of widgets, plugins and themes based on siyuan-note +This is an official starter Turborepo. -[中文版](README_zh_CN.md) +## Using this example -[![dev checks](https://img.shields.io/github/checks-status/terwer/zhi/dev?label=build)](https://github.com/terwer/zhi/tree/dev) -![version](https://img.shields.io/github/release/terwer/zhi.svg?style=flat-square) -![license](https://img.shields.io/badge/license-GPL-blue.svg?style=popout-square) +Run the following command: -> ⚠️ WARNING: Due to `theme.js` will be removed, this theme cannot be published yet.I will publish style-based theme, plugins, widgets later. +```sh +npx create-turbo@latest +``` -## Zhi family +## What's inside? -- zhi-framework - Core framework (originally unpublished zhi theme, relying on theme.js) not on the shelf, can explore -- zhi-theme - Style-based theme in progress -- zhi-widget-publisher (sy-post-publisher) - Siyuan note publishing tool has been put on the shelf official pendant market -- zhi-plugin-bridge-publisher - Siyuan note release tool plugin bridge version has been put on the third-party plug-in market -- zhi-plugin-publisher - Siyuan Note publishing tool plug-in edition in progress -- zhi-widget-blog - Blog widget version based on Siyuan Note API in progress -- zhi-plugin-blog - Blog plug-in version based on Siyuan Note API in progress +This Turborepo includes the following packages/apps: -## Acknowledgments +### Apps and Packages -Thanks to [zuoez02](https://github.com/zuoez02/siyuan-plugin-system) for providing the plugin system. +- `docs`: a [Next.js](https://nextjs.org/) app +- `web`: another [Next.js](https://nextjs.org/) app +- `ui`: a stub React component library shared by both `web` and `docs` applications +- `eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`) +- `tsconfig`: `tsconfig.json`s used throughout the monorepo + +Each package/app is 100% [TypeScript](https://www.typescriptlang.org/). + +### Utilities + +This Turborepo has some additional tools already setup for you: + +- [TypeScript](https://www.typescriptlang.org/) for static type checking +- [ESLint](https://eslint.org/) for code linting +- [Prettier](https://prettier.io) for code formatting + +### Build + +To build all apps and packages, run the following command: + +``` +cd my-turborepo +pnpm build +``` + +### Develop + +To develop all apps and packages, run the following command: + +``` +cd my-turborepo +pnpm dev +``` + +### Remote Caching + +Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines. + +By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands: + +``` +cd my-turborepo +npx turbo login +``` + +This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview). + +Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo: + +``` +npx turbo link +``` + +## Useful Links + +Learn more about the power of Turborepo: + +- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks) +- [Caching](https://turbo.build/repo/docs/core-concepts/caching) +- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) +- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering) +- [Configuration Options](https://turbo.build/repo/docs/reference/configuration) +- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference) diff --git a/README_BACKUP.md b/README_BACKUP.md deleted file mode 100644 index a778f467..00000000 --- a/README_BACKUP.md +++ /dev/null @@ -1,83 +0,0 @@ -# Zhi - -🛍️ A series of widgets, plugins and themes based on siyuan-note - -[![](https://img.shields.io/badge/api-docs-green)](https://zhi.terwer.space) -[![dev checks](https://img.shields.io/github/checks-status/terwer/zhi/dev?label=build)](https://github.com/terwer/zhi/tree/dev) -![version](https://img.shields.io/github/release/terwer/zhi.svg?style=flat-square) -![license](https://img.shields.io/badge/license-GPL-blue.svg?style=popout-square) - -[![](https://img.shields.io/badge/build-assets-green)](https://github.com/terwer/zhi) -[![](https://img.shields.io/badge/theme-source-red)](https://github.com/terwer/zhi/tree/dev/packages/zhi-mini) -[![](https://img.shields.io/badge/dynamic-blog-blue)](https://github.com/terwer/zhi/tree/dev/packages/zhi-blog) -[![](https://img.shields.io/badge/static-blog-purple)](https://github.com/terwer/zhi/tree/dev/packages/zhi-blog-astro) - -~~> ⚠️ WARNING 1: Attention: The `zhi` theme only supports the `2.7.6+` version of [siyuan-note](https://github.com/siyuan-note/siyuan) , and the plugin system only supports `2.8.1+`. Otherwise, you need to upgrade [siyuan-note](https://github.com/siyuan-note/siyuan) to a new version.~~ - -~~> ⚠️ WARNING 2: `1.0.0` is an available version in the early stage, and the function is not comprehensive yet. It is only used for testing and welcomes valuable opinions through issuing. Please refer to [core features](#core-features) for this version's characteristics.~~ - -~~> ⚠️ WARNING 3: The plugin system is set to `security mode` by default, and you need to click on the settings menu in the upper right corner to turn off the security mode before you can activate the plugin system.~~ - -~~> ⚠️ WARNING 4: Except for the theme's core plugins, all plugins are disabled by default and need to be enabled in the plugin list before the first use.~~ - -> ⚠️ WARNING 4: Due to `theme.js` will be removed, this theme cannot be published yet.I will publish style-based theme, plugins, widgets later. - -## Zhi family - -- zhi-framework -- zhi-theme -- zhi-widget-publisher (sy-post-publisher) -- zhi-plugin-publisher -- zhi-widget-blog -- zhi-plugin-blog - -## Key benefits - -- Integrated blog feature based on the Siyuan API - -- No publishing, no configuration, ready to use out of the box - -- Plugin system bundled, by design - -## Quick start - -You can download the `zhi` theme directly in the Market of siyuan-note, and then select the `zhi` theme -in `Settings` - `Appearance` - `Theme` to change the appearance of the notebook. - -Note: `zhi` theme only supports siyuan-note `2.7.6+`, or you must upgrade siyuan-note first. - -## Design Philosophy - -- The theme core should be kept lightweight and compact as much as possible. -- Plugins should be used as much as possible to implement functions. -- Plugin functions should be single-purpose to avoid brainless accumulation of functions. -- Components should be kept as reusable as possible. - -## Core Features - -The theme is inspired by `Zhihu` but not limited to its style. The appearance optimization includes but is not limited -to: - -- Font style beautification, using `Open Sans` for English and `LXGW WenKai` for Chinese -- Background color optimization, overall layout and spacing optimization -- Code block beautification, similar to the Mac window style -- It natively supports the plugin system and comes with many built-in plugins. The plugin system is supported by - community developers. - - Siyuan-note publishing tool plugin - - Document image background automatic transparency plugin - - Blog plugin -- It can handle both the theme and the preview. Installing the zhi theme is equivalent to installing an additional - plugin system and an online blog. - - SPA blog homepage( `enabled and bundled by default` ): http://127.0.0.1:6806/appearance/themes/zhi/web/blog/ simple - - SSR blog homepage( `⚠️ need to be enabled manually` ): http://127.0.0.1:6806/appearance/themes/zhi/server/blog/ seo friendly - -> Note: 🌹 The plugin system is provided by enthusiastic community developers. Please understand the relevant mechanisms in -> detail before using. - -## Technical Roadmap - -[development](DEVELOPMENT.md) - -## Acknowledgments - -Thanks to [zuoez02](https://github.com/zuoez02/siyuan-plugin-system) for providing the plugin system. diff --git a/README_zh_CN.md b/README_zh_CN.md deleted file mode 100644 index 58594584..00000000 --- a/README_zh_CN.md +++ /dev/null @@ -1,21 +0,0 @@ -# Zhi - -🛍️ 基于思源笔记的一系列框架、插件、挂件、主题等 - -[English](README.md) - -[![dev checks](https://img.shields.io/github/checks-status/terwer/zhi/dev?label=build)](https://github.com/terwer/zhi/tree/dev) -![version](https://img.shields.io/github/release/terwer/zhi.svg?style=flat-square) -![license](https://img.shields.io/badge/license-GPL-blue.svg?style=popout-square) - -> ⚠️警告:由于 `theme.js` 将被删除,这个主题不能发布。稍后我会发布基于样式的主题、插件和小部件等。 - -## Zhi 项目家族 - -- zhi-framework - 核心框架( 原未发布的 zhi 主题,依赖 theme.js ) 未上架,可自行探索 -- zhi-theme - 基于样式的主题 进行中 -- zhi-widget-publisher (sy-post-publisher) - 思源笔记发布工具 已上架官方挂件集市 -- zhi-plugin-bridge-publisher - 思源笔记发布工具插件桥接版 已上架第三方插件市场 -- zhi-plugin-publisher - 思源笔记发布工具插件版 进行中 -- zhi-widget-blog - 基于思源笔记API的博客挂件版 进行中 -- zhi-plugin-blog - 基于思源笔记API的博客插件版 进行中 diff --git a/apps/.gitkeep b/apps/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/apps/docs/.eslintrc.js b/apps/docs/.eslintrc.js new file mode 100644 index 00000000..c8df6075 --- /dev/null +++ b/apps/docs/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ["custom"], +}; diff --git a/apps/docs/.gitignore b/apps/docs/.gitignore new file mode 100644 index 00000000..1437c53f --- /dev/null +++ b/apps/docs/.gitignore @@ -0,0 +1,34 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env.local +.env.development.local +.env.test.local +.env.production.local + +# vercel +.vercel diff --git a/apps/docs/README.md b/apps/docs/README.md new file mode 100644 index 00000000..4fae62af --- /dev/null +++ b/apps/docs/README.md @@ -0,0 +1,30 @@ +## Getting Started + +First, run the development server: + +```bash +yarn dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file. + +[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`. + +The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. + +## Learn More + +To learn more about Next.js, take a look at the following resources: + +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. +- [Learn Next.js](https://nextjs.org/learn/foundations/about-nextjs) - an interactive Next.js tutorial. + +You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! + +## Deploy on Vercel + +The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_source=github.com&utm_medium=referral&utm_campaign=turborepo-readme) from the creators of Next.js. + +Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/apps/docs/app/layout.tsx b/apps/docs/app/layout.tsx new file mode 100644 index 00000000..225b6038 --- /dev/null +++ b/apps/docs/app/layout.tsx @@ -0,0 +1,11 @@ +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} diff --git a/apps/docs/app/page.tsx b/apps/docs/app/page.tsx new file mode 100644 index 00000000..77198484 --- /dev/null +++ b/apps/docs/app/page.tsx @@ -0,0 +1,10 @@ +import { Button, Header } from "ui"; + +export default function Page() { + return ( + <> +
+