From 3e9384fc6c5b793fb7a48001611f2498bd0ba5eb Mon Sep 17 00:00:00 2001 From: ROC Date: Sat, 28 May 2022 02:44:21 +0800 Subject: [PATCH] change project structure --- .gitattributes | 2 +- README.md | 11 ++++------- paopao-web/.vscode/extensions.json | 3 --- {paopao-web => web}/.env | 0 {paopao-web => web}/.gitignore | 0 {paopao-web => web}/Dockerfile | 0 {paopao-web => web}/index.html | 0 {paopao-web => web}/jsconfig.json | 0 {paopao-web => web}/package.json | 0 {paopao-web => web}/public/favicon.ico | Bin {paopao-web => web}/src/App.vue | 0 {paopao-web => web}/src/api/auth.ts | 0 {paopao-web => web}/src/api/post.ts | 0 {paopao-web => web}/src/api/user.ts | 0 {paopao-web => web}/src/assets/css/main.less | 0 {paopao-web => web}/src/assets/img/logo.png | Bin {paopao-web => web}/src/assets/logo.png | Bin {paopao-web => web}/src/components/auth.vue | 0 {paopao-web => web}/src/components/comment-item.vue | 0 .../src/components/compose-comment.vue | 0 .../src/components/compose-reply.vue | 0 {paopao-web => web}/src/components/compose.vue | 0 {paopao-web => web}/src/components/main-nav.vue | 0 {paopao-web => web}/src/components/message-item.vue | 0 .../src/components/message-skeleton.vue | 0 .../src/components/post-attachment.vue | 0 {paopao-web => web}/src/components/post-detail.vue | 0 {paopao-web => web}/src/components/post-image.vue | 0 {paopao-web => web}/src/components/post-item.vue | 0 {paopao-web => web}/src/components/post-link.vue | 0 .../src/components/post-skeleton.vue | 0 {paopao-web => web}/src/components/post-video.vue | 0 {paopao-web => web}/src/components/reply-item.vue | 0 {paopao-web => web}/src/components/rightbar.vue | 0 {paopao-web => web}/src/components/sidebar.vue | 0 {paopao-web => web}/src/main.ts | 0 {paopao-web => web}/src/router/index.ts | 0 {paopao-web => web}/src/shims-vue.d.ts | 0 {paopao-web => web}/src/store/index.ts | 0 {paopao-web => web}/src/types/Core.d.ts | 0 {paopao-web => web}/src/types/NetParams.d.ts | 0 {paopao-web => web}/src/types/NetReq.d.ts | 0 {paopao-web => web}/src/types/item.d.ts | 0 {paopao-web => web}/src/utils/content.ts | 0 {paopao-web => web}/src/utils/formatTime.ts | 0 {paopao-web => web}/src/utils/request.ts | 0 {paopao-web => web}/src/utils/scrollToTop.ts | 0 {paopao-web => web}/src/views/404.vue | 0 {paopao-web => web}/src/views/Collection.vue | 0 {paopao-web => web}/src/views/Home.vue | 0 {paopao-web => web}/src/views/Notification.vue | 0 {paopao-web => web}/src/views/Post.vue | 0 {paopao-web => web}/src/views/Profile.vue | 0 {paopao-web => web}/src/views/Setting.vue | 0 {paopao-web => web}/src/views/Star.vue | 0 {paopao-web => web}/src/views/Topic.vue | 0 {paopao-web => web}/src/views/User.vue | 0 {paopao-web => web}/src/views/Wallet.vue | 0 {paopao-web => web}/src/vite-env.d.ts | 0 {paopao-web => web}/src/vuex.d.ts | 0 {paopao-web => web}/tsconfig.json | 0 {paopao-web => web}/vite.config.ts | 0 {paopao-web => web}/yarn.lock | 0 63 files changed, 5 insertions(+), 11 deletions(-) delete mode 100644 paopao-web/.vscode/extensions.json rename {paopao-web => web}/.env (100%) rename {paopao-web => web}/.gitignore (100%) rename {paopao-web => web}/Dockerfile (100%) rename {paopao-web => web}/index.html (100%) rename {paopao-web => web}/jsconfig.json (100%) rename {paopao-web => web}/package.json (100%) rename {paopao-web => web}/public/favicon.ico (100%) rename {paopao-web => web}/src/App.vue (100%) rename {paopao-web => web}/src/api/auth.ts (100%) rename {paopao-web => web}/src/api/post.ts (100%) rename {paopao-web => web}/src/api/user.ts (100%) rename {paopao-web => web}/src/assets/css/main.less (100%) rename {paopao-web => web}/src/assets/img/logo.png (100%) rename {paopao-web => web}/src/assets/logo.png (100%) rename {paopao-web => web}/src/components/auth.vue (100%) rename {paopao-web => web}/src/components/comment-item.vue (100%) rename {paopao-web => web}/src/components/compose-comment.vue (100%) rename {paopao-web => web}/src/components/compose-reply.vue (100%) rename {paopao-web => web}/src/components/compose.vue (100%) rename {paopao-web => web}/src/components/main-nav.vue (100%) rename {paopao-web => web}/src/components/message-item.vue (100%) rename {paopao-web => web}/src/components/message-skeleton.vue (100%) rename {paopao-web => web}/src/components/post-attachment.vue (100%) rename {paopao-web => web}/src/components/post-detail.vue (100%) rename {paopao-web => web}/src/components/post-image.vue (100%) rename {paopao-web => web}/src/components/post-item.vue (100%) rename {paopao-web => web}/src/components/post-link.vue (100%) rename {paopao-web => web}/src/components/post-skeleton.vue (100%) rename {paopao-web => web}/src/components/post-video.vue (100%) rename {paopao-web => web}/src/components/reply-item.vue (100%) rename {paopao-web => web}/src/components/rightbar.vue (100%) rename {paopao-web => web}/src/components/sidebar.vue (100%) rename {paopao-web => web}/src/main.ts (100%) rename {paopao-web => web}/src/router/index.ts (100%) rename {paopao-web => web}/src/shims-vue.d.ts (100%) rename {paopao-web => web}/src/store/index.ts (100%) rename {paopao-web => web}/src/types/Core.d.ts (100%) rename {paopao-web => web}/src/types/NetParams.d.ts (100%) rename {paopao-web => web}/src/types/NetReq.d.ts (100%) rename {paopao-web => web}/src/types/item.d.ts (100%) rename {paopao-web => web}/src/utils/content.ts (100%) rename {paopao-web => web}/src/utils/formatTime.ts (100%) rename {paopao-web => web}/src/utils/request.ts (100%) rename {paopao-web => web}/src/utils/scrollToTop.ts (100%) rename {paopao-web => web}/src/views/404.vue (100%) rename {paopao-web => web}/src/views/Collection.vue (100%) rename {paopao-web => web}/src/views/Home.vue (100%) rename {paopao-web => web}/src/views/Notification.vue (100%) rename {paopao-web => web}/src/views/Post.vue (100%) rename {paopao-web => web}/src/views/Profile.vue (100%) rename {paopao-web => web}/src/views/Setting.vue (100%) rename {paopao-web => web}/src/views/Star.vue (100%) rename {paopao-web => web}/src/views/Topic.vue (100%) rename {paopao-web => web}/src/views/User.vue (100%) rename {paopao-web => web}/src/views/Wallet.vue (100%) rename {paopao-web => web}/src/vite-env.d.ts (100%) rename {paopao-web => web}/src/vuex.d.ts (100%) rename {paopao-web => web}/tsconfig.json (100%) rename {paopao-web => web}/vite.config.ts (100%) rename {paopao-web => web}/yarn.lock (100%) diff --git a/.gitattributes b/.gitattributes index 1880a5ac..5565a7f0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ *.js linguist-language=go *.css linguist-language=go -*.json linguist-language=go +*.vue linguist-language=go *.html linguist-language=go \ No newline at end of file diff --git a/README.md b/README.md index 9c8b91b4..08905e30 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ PaoPao主要由以下优秀的开源项目/工具构建 \* Zinc是一款轻量级全文搜索引擎,可以查阅 https://zincsearch.com/ 安装 -以上环境版本为PaoPao官方的开发版本,仅供参考,其他版本的环境未进行测试 +以上环境版本为PaoPao官方的开发版本,仅供参考,其他版本的环境未进行充分测试
@@ -92,9 +92,9 @@ PaoPao主要由以下优秀的开源项目/工具构建 #### 3.2 前端 -1. 进入前端目录 `paopao-web`,编辑 `.env` 文件中后端服务地址,下载依赖包 +1. 进入前端目录 `web`,编辑 `.env` 文件中后端服务地址,下载依赖包 ```sh - cd 项目根目录/paopao-web + cd ./web vim .env yarn ``` @@ -106,11 +106,8 @@ PaoPao主要由以下优秀的开源项目/工具构建 build完成后,可以在dist目录获取编译产出,配置nginx指向至该目录即可 #### 3.3 其他 - 建议后端服务使用 `supervisor` 守护进程,并通过nginx反向代理后,提供API给前端服务调用。 - -短信通道使用的juhe数据,如果申请不下来,可以考虑替换其他服务商的 - +短信通道使用的juhe数据,如果申请不下来,可以考虑替换其他服务商。 代码结构比较简单,喜欢的朋友欢迎给个Star、贡献PR。 diff --git a/paopao-web/.vscode/extensions.json b/paopao-web/.vscode/extensions.json deleted file mode 100644 index 3dc5b08b..00000000 --- a/paopao-web/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["johnsoncodehk.volar"] -} diff --git a/paopao-web/.env b/web/.env similarity index 100% rename from paopao-web/.env rename to web/.env diff --git a/paopao-web/.gitignore b/web/.gitignore similarity index 100% rename from paopao-web/.gitignore rename to web/.gitignore diff --git a/paopao-web/Dockerfile b/web/Dockerfile similarity index 100% rename from paopao-web/Dockerfile rename to web/Dockerfile diff --git a/paopao-web/index.html b/web/index.html similarity index 100% rename from paopao-web/index.html rename to web/index.html diff --git a/paopao-web/jsconfig.json b/web/jsconfig.json similarity index 100% rename from paopao-web/jsconfig.json rename to web/jsconfig.json diff --git a/paopao-web/package.json b/web/package.json similarity index 100% rename from paopao-web/package.json rename to web/package.json diff --git a/paopao-web/public/favicon.ico b/web/public/favicon.ico similarity index 100% rename from paopao-web/public/favicon.ico rename to web/public/favicon.ico diff --git a/paopao-web/src/App.vue b/web/src/App.vue similarity index 100% rename from paopao-web/src/App.vue rename to web/src/App.vue diff --git a/paopao-web/src/api/auth.ts b/web/src/api/auth.ts similarity index 100% rename from paopao-web/src/api/auth.ts rename to web/src/api/auth.ts diff --git a/paopao-web/src/api/post.ts b/web/src/api/post.ts similarity index 100% rename from paopao-web/src/api/post.ts rename to web/src/api/post.ts diff --git a/paopao-web/src/api/user.ts b/web/src/api/user.ts similarity index 100% rename from paopao-web/src/api/user.ts rename to web/src/api/user.ts diff --git a/paopao-web/src/assets/css/main.less b/web/src/assets/css/main.less similarity index 100% rename from paopao-web/src/assets/css/main.less rename to web/src/assets/css/main.less diff --git a/paopao-web/src/assets/img/logo.png b/web/src/assets/img/logo.png similarity index 100% rename from paopao-web/src/assets/img/logo.png rename to web/src/assets/img/logo.png diff --git a/paopao-web/src/assets/logo.png b/web/src/assets/logo.png similarity index 100% rename from paopao-web/src/assets/logo.png rename to web/src/assets/logo.png diff --git a/paopao-web/src/components/auth.vue b/web/src/components/auth.vue similarity index 100% rename from paopao-web/src/components/auth.vue rename to web/src/components/auth.vue diff --git a/paopao-web/src/components/comment-item.vue b/web/src/components/comment-item.vue similarity index 100% rename from paopao-web/src/components/comment-item.vue rename to web/src/components/comment-item.vue diff --git a/paopao-web/src/components/compose-comment.vue b/web/src/components/compose-comment.vue similarity index 100% rename from paopao-web/src/components/compose-comment.vue rename to web/src/components/compose-comment.vue diff --git a/paopao-web/src/components/compose-reply.vue b/web/src/components/compose-reply.vue similarity index 100% rename from paopao-web/src/components/compose-reply.vue rename to web/src/components/compose-reply.vue diff --git a/paopao-web/src/components/compose.vue b/web/src/components/compose.vue similarity index 100% rename from paopao-web/src/components/compose.vue rename to web/src/components/compose.vue diff --git a/paopao-web/src/components/main-nav.vue b/web/src/components/main-nav.vue similarity index 100% rename from paopao-web/src/components/main-nav.vue rename to web/src/components/main-nav.vue diff --git a/paopao-web/src/components/message-item.vue b/web/src/components/message-item.vue similarity index 100% rename from paopao-web/src/components/message-item.vue rename to web/src/components/message-item.vue diff --git a/paopao-web/src/components/message-skeleton.vue b/web/src/components/message-skeleton.vue similarity index 100% rename from paopao-web/src/components/message-skeleton.vue rename to web/src/components/message-skeleton.vue diff --git a/paopao-web/src/components/post-attachment.vue b/web/src/components/post-attachment.vue similarity index 100% rename from paopao-web/src/components/post-attachment.vue rename to web/src/components/post-attachment.vue diff --git a/paopao-web/src/components/post-detail.vue b/web/src/components/post-detail.vue similarity index 100% rename from paopao-web/src/components/post-detail.vue rename to web/src/components/post-detail.vue diff --git a/paopao-web/src/components/post-image.vue b/web/src/components/post-image.vue similarity index 100% rename from paopao-web/src/components/post-image.vue rename to web/src/components/post-image.vue diff --git a/paopao-web/src/components/post-item.vue b/web/src/components/post-item.vue similarity index 100% rename from paopao-web/src/components/post-item.vue rename to web/src/components/post-item.vue diff --git a/paopao-web/src/components/post-link.vue b/web/src/components/post-link.vue similarity index 100% rename from paopao-web/src/components/post-link.vue rename to web/src/components/post-link.vue diff --git a/paopao-web/src/components/post-skeleton.vue b/web/src/components/post-skeleton.vue similarity index 100% rename from paopao-web/src/components/post-skeleton.vue rename to web/src/components/post-skeleton.vue diff --git a/paopao-web/src/components/post-video.vue b/web/src/components/post-video.vue similarity index 100% rename from paopao-web/src/components/post-video.vue rename to web/src/components/post-video.vue diff --git a/paopao-web/src/components/reply-item.vue b/web/src/components/reply-item.vue similarity index 100% rename from paopao-web/src/components/reply-item.vue rename to web/src/components/reply-item.vue diff --git a/paopao-web/src/components/rightbar.vue b/web/src/components/rightbar.vue similarity index 100% rename from paopao-web/src/components/rightbar.vue rename to web/src/components/rightbar.vue diff --git a/paopao-web/src/components/sidebar.vue b/web/src/components/sidebar.vue similarity index 100% rename from paopao-web/src/components/sidebar.vue rename to web/src/components/sidebar.vue diff --git a/paopao-web/src/main.ts b/web/src/main.ts similarity index 100% rename from paopao-web/src/main.ts rename to web/src/main.ts diff --git a/paopao-web/src/router/index.ts b/web/src/router/index.ts similarity index 100% rename from paopao-web/src/router/index.ts rename to web/src/router/index.ts diff --git a/paopao-web/src/shims-vue.d.ts b/web/src/shims-vue.d.ts similarity index 100% rename from paopao-web/src/shims-vue.d.ts rename to web/src/shims-vue.d.ts diff --git a/paopao-web/src/store/index.ts b/web/src/store/index.ts similarity index 100% rename from paopao-web/src/store/index.ts rename to web/src/store/index.ts diff --git a/paopao-web/src/types/Core.d.ts b/web/src/types/Core.d.ts similarity index 100% rename from paopao-web/src/types/Core.d.ts rename to web/src/types/Core.d.ts diff --git a/paopao-web/src/types/NetParams.d.ts b/web/src/types/NetParams.d.ts similarity index 100% rename from paopao-web/src/types/NetParams.d.ts rename to web/src/types/NetParams.d.ts diff --git a/paopao-web/src/types/NetReq.d.ts b/web/src/types/NetReq.d.ts similarity index 100% rename from paopao-web/src/types/NetReq.d.ts rename to web/src/types/NetReq.d.ts diff --git a/paopao-web/src/types/item.d.ts b/web/src/types/item.d.ts similarity index 100% rename from paopao-web/src/types/item.d.ts rename to web/src/types/item.d.ts diff --git a/paopao-web/src/utils/content.ts b/web/src/utils/content.ts similarity index 100% rename from paopao-web/src/utils/content.ts rename to web/src/utils/content.ts diff --git a/paopao-web/src/utils/formatTime.ts b/web/src/utils/formatTime.ts similarity index 100% rename from paopao-web/src/utils/formatTime.ts rename to web/src/utils/formatTime.ts diff --git a/paopao-web/src/utils/request.ts b/web/src/utils/request.ts similarity index 100% rename from paopao-web/src/utils/request.ts rename to web/src/utils/request.ts diff --git a/paopao-web/src/utils/scrollToTop.ts b/web/src/utils/scrollToTop.ts similarity index 100% rename from paopao-web/src/utils/scrollToTop.ts rename to web/src/utils/scrollToTop.ts diff --git a/paopao-web/src/views/404.vue b/web/src/views/404.vue similarity index 100% rename from paopao-web/src/views/404.vue rename to web/src/views/404.vue diff --git a/paopao-web/src/views/Collection.vue b/web/src/views/Collection.vue similarity index 100% rename from paopao-web/src/views/Collection.vue rename to web/src/views/Collection.vue diff --git a/paopao-web/src/views/Home.vue b/web/src/views/Home.vue similarity index 100% rename from paopao-web/src/views/Home.vue rename to web/src/views/Home.vue diff --git a/paopao-web/src/views/Notification.vue b/web/src/views/Notification.vue similarity index 100% rename from paopao-web/src/views/Notification.vue rename to web/src/views/Notification.vue diff --git a/paopao-web/src/views/Post.vue b/web/src/views/Post.vue similarity index 100% rename from paopao-web/src/views/Post.vue rename to web/src/views/Post.vue diff --git a/paopao-web/src/views/Profile.vue b/web/src/views/Profile.vue similarity index 100% rename from paopao-web/src/views/Profile.vue rename to web/src/views/Profile.vue diff --git a/paopao-web/src/views/Setting.vue b/web/src/views/Setting.vue similarity index 100% rename from paopao-web/src/views/Setting.vue rename to web/src/views/Setting.vue diff --git a/paopao-web/src/views/Star.vue b/web/src/views/Star.vue similarity index 100% rename from paopao-web/src/views/Star.vue rename to web/src/views/Star.vue diff --git a/paopao-web/src/views/Topic.vue b/web/src/views/Topic.vue similarity index 100% rename from paopao-web/src/views/Topic.vue rename to web/src/views/Topic.vue diff --git a/paopao-web/src/views/User.vue b/web/src/views/User.vue similarity index 100% rename from paopao-web/src/views/User.vue rename to web/src/views/User.vue diff --git a/paopao-web/src/views/Wallet.vue b/web/src/views/Wallet.vue similarity index 100% rename from paopao-web/src/views/Wallet.vue rename to web/src/views/Wallet.vue diff --git a/paopao-web/src/vite-env.d.ts b/web/src/vite-env.d.ts similarity index 100% rename from paopao-web/src/vite-env.d.ts rename to web/src/vite-env.d.ts diff --git a/paopao-web/src/vuex.d.ts b/web/src/vuex.d.ts similarity index 100% rename from paopao-web/src/vuex.d.ts rename to web/src/vuex.d.ts diff --git a/paopao-web/tsconfig.json b/web/tsconfig.json similarity index 100% rename from paopao-web/tsconfig.json rename to web/tsconfig.json diff --git a/paopao-web/vite.config.ts b/web/vite.config.ts similarity index 100% rename from paopao-web/vite.config.ts rename to web/vite.config.ts diff --git a/paopao-web/yarn.lock b/web/yarn.lock similarity index 100% rename from paopao-web/yarn.lock rename to web/yarn.lock