Last active
May 20, 2021 09:13
-
-
Save Franklin-Qi/ad2e9a55da2bd88d443d4d34671793bc to your computer and use it in GitHub Desktop.
介绍VBlog项目总体结构,以后可以进行开发适配。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 概述 | |
博客基于 GitHub Pages 与 Github API 实现无后台,可动态发布博客的系统 | |
博客数据储存于gist 通过Github API 进行增删改查。 | |
## 特点 | |
[x] 基于 GitHub Pages 无需服务器 | |
[x] 改进传统 GitHub Pages 不能动态发布的缺陷 | |
[x] 使用vue单页面 | |
## 项目结构 | |
``` | |
VBlog-master..................... | |
├─ index.html.................... | |
├─ package.json..................依赖 | |
├─ README.md..................... | |
├─ src...........................源码文件夹 | |
│ ├─ api........................调用github-api | |
│ │ ├─ gist.js................. | |
│ │ ├─ project.js.............. | |
│ │ └─ user.js................. | |
│ ├─ App.vue.................... | |
│ ├─ assets.....................资源文件夹, 暂时没东西 | |
│ │ └─ logo.png................ | |
│ ├─ main.js....................入口文件 | |
│ ├─ mobile_views...............移动端视图 | |
│ │ ├─ blog....................博客页面 | |
│ │ │ ├─ Details.vue.......... | |
│ │ │ └─ Main.vue............. | |
│ │ ├─ layout..................移动端布局 | |
│ │ │ ├─ components........... | |
│ │ │ │ ├─ AppMain.vue....... | |
│ │ │ │ └─ Bottombar.vue..... | |
│ │ │ └─ Layout.vue........... | |
│ │ ├─ project.................项目页面 | |
│ │ │ ├─ Details.vue.......... | |
│ │ │ └─ Main.vue............. | |
│ │ └─ self....................个人中心页面 | |
│ │ └─ Main.vue............. | |
│ ├─ router.....................路由 | |
│ │ └─ index.js................ | |
│ ├─ store......................全局状态管理 | |
│ │ ├─ getters.js.............. | |
│ │ ├─ index.js................ | |
│ │ └─ modules................. | |
│ │ ├─ configuration.js.....项目配置 | |
│ │ ├─ token.js.............Token | |
│ │ └─ user.js..............用户信息 | |
│ ├─ utils......................工具文件夹 | |
│ │ ├─ cookie.js...............操作cookie | |
│ │ ├─ request.js..............axios请求 | |
│ │ └─ util.js.................常用方法 | |
│ └─ views......................电脑端视图 | |
│ ├─ blog....................博客页面 | |
│ │ ├─ Add.vue.............. | |
│ │ ├─ Details.vue.......... | |
│ │ ├─ Edit.vue............. | |
│ │ └─ Main.vue............. | |
│ ├─ common..................公共视图 | |
│ │ └─ TokenDialog.vue...... | |
│ ├─ configure...............配置页面 | |
│ │ └─ Main.vue............. | |
│ ├─ error...................错误状态页面 | |
│ │ └─ Error404.vue......... | |
│ ├─ layout..................电脑端布局 | |
│ │ ├─ components........... | |
│ │ │ ├─ AppMain.vue....... | |
│ │ │ ├─ Foot.vue.......... | |
│ │ │ └─ Sidebar.vue....... | |
│ │ └─ Layout.vue........... | |
│ ├─ License.vue............. | |
│ ├─ new.....................最新动态页面 | |
│ │ └─ Main.vue............. | |
│ ├─ project.................开源项目页面 | |
│ │ ├─ Details.vue.......... | |
│ │ └─ Main.vue............. | |
│ └─ readme..................README页面 | |
│ └─ Main.vue............. | |
└─ static........................ | |
├─ .gitkeep................... | |
└─ configuration.json.........项目配置文件 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment