Commit 04a77328 by 胡悦

first commit

0 parents
.vuepress/.cache
.vuepress/.temp
node_modules
\ No newline at end of file \ No newline at end of file
import { defineUserConfig } from "vuepress";
import type { DefaultThemeOptions } from "vuepress";
import recoTheme from "vuepress-theme-reco";
export default defineUserConfig({
title: "Front end website",
description: "Just playing around",
theme: recoTheme({
style: "@vuepress-reco/style-default",
logo: "/logo.png",
author: "huyue",
authorAvatar: "/head.png",
docsRepo: "https://github.com/vuepress-reco/vuepress-theme-reco-next",
docsBranch: "main",
docsDir: "example",
lastUpdatedText: "",
// series 为原 sidebar
series: {
"/docs/introduce/": [
{
text: "使用手册",
children: ["introduce"],
},
{
text: "常见问题",
children: ["FAQ"],
},
],
"/docs/guide/": [
"introduce",
"project",
"branch",
"version",
"testing"
],
"/docs/FAQ/": [
"question"
]
},
navbar: [
{ text: "使用手册", link: "/docs/guide/introduce" },
{ text: "常见问题", link: "/docs/FAQ/question" },
{ text: "在线体验", link: "http://glsk-web-front.dev.glsx.com.cn" },
// {
// text: "Docs",
// children: [
// { text: "vuepress-reco", link: "/docs/theme-reco/theme" },
// { text: "vuepress-theme-reco", link: "/blogs/other/guide" },
// ],
// },
],
// bulletin: {
// body: [
// {
// type: "text",
// content: `🎉🎉🎉 reco 主题 2.x 已经接近 Beta 版本,在发布 Latest 版本之前不会再有大的更新,大家可以尽情尝鲜了,并且希望大家在 QQ 群和 GitHub 踊跃反馈使用体验,我会在第一时间响应。`,
// style: "font-size: 12px;",
// },
// {
// type: "hr",
// },
// {
// type: "title",
// content: "QQ 群",
// },
// {
// type: "text",
// content: `
// <ul>
// <li>QQ群1:1037296104</li>
// <li>QQ群2:1061561395</li>
// <li>QQ群3:962687802</li>
// </ul>`,
// style: "font-size: 12px;",
// },
// {
// type: "hr",
// },
// {
// type: "title",
// content: "GitHub",
// },
// {
// type: "text",
// content: `
// <ul>
// <li><a href="https://github.com/vuepress-reco/vuepress-theme-reco-next/issues">Issues<a/></li>
// <li><a href="https://github.com/vuepress-reco/vuepress-theme-reco-next/discussions/1">Discussions<a/></li>
// </ul>`,
// style: "font-size: 12px;",
// },
// {
// type: "hr",
// },
// {
// type: "buttongroup",
// children: [
// {
// text: "打赏",
// link: "/docs/others/donate.html",
// },
// ],
// },
// ],
// },
// commentConfig: {
// type: 'valine',
// // options 与 1.x 的 valineConfig 配置一致
// options: {
// // appId: 'xxx',
// // appKey: 'xxx',
// // placeholder: '填写邮箱可以收到回复提醒哦!',
// // verify: true, // 验证码服务
// // notify: true,
// // recordIP: true,
// // hideComments: true // 隐藏评论
// },
// },
}),
// debug: true,
});
<svg
version="1.1"
baseProfile="full"
width="100%" height="100%"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1400 800"
>
<rect x="1300" y="400" rx="40" ry="40" width="300" height="300" stroke="#4954e6" fill="#4954e6">
<animateTransform attributeType="XML" attributeName="transform" begin="0s" dur="35s" type="rotate" from="0 1450 550" to="360 1450 550" repeatCount="indefinite" />
</rect>
<path d="M 100 350 A 150 150 0 1 1 400 350 Q400 370 380 370 L 250 370 L 120 370 Q100 370 100 350" stroke="rgb(253, 214, 99)" fill="rgb(253, 214, 99)">
<animateMotion path="M 800 -200 L 800 -300 L 800 -200" dur="20s" begin="0s" repeatCount="indefinite" />
<animateTransform attributeType="XML" attributeName="transform" begin="0s" dur="30s" type="rotate" values="0 210 530 ; -30 210 530 ; 0 210 530" keyTimes="0 ; 0.5 ; 1" repeatCount="indefinite" />
</path>
<circle cx="200" cy="150" r="20" stroke="#4954e6" fill="#4954e6">
<animateMotion path="M 0 0 L 40 20 Z" dur="5s" repeatCount="indefinite" />
</circle>
<!-- 三角形 -->
<path d="M 165 580 L 270 580 Q275 578 270 570 L 223 483 Q220 480 217 483 L 165 570 Q160 578 165 580" stroke="rgb(238, 103, 92)" fill="rgb(238, 103, 92)">
<animateTransform attributeType="XML" attributeName="transform" begin="0s" dur="35s" type="rotate" from="0 210 530" to="360 210 530" repeatCount="indefinite" />
</path>
<circle cx="1200" cy="600" r="30" stroke="rgb(241, 243, 244)" fill="rgb(241, 243, 244)">
<animateMotion path="M 0 0 L -20 40 Z" dur="9s" repeatCount="indefinite" />
</circle>
<path d="M 100 350 A 40 40 0 1 1 180 350 L 180 430 A 40 40 0 1 1 100 430 Z" stroke="rgb(241, 243, 244)" fill="rgb(241, 243, 244)">
<animateMotion path="M 140 390 L 180 360 L 140 390" dur="20s" begin="0s" repeatCount="indefinite" />
<animateTransform attributeType="XML" attributeName="transform" begin="0s" dur="30s" type="rotate" values="0 140 390; -60 140 390; 0 140 390" keyTimes="0 ; 0.5 ; 1" repeatCount="indefinite" />
</path>
<rect x="400" y="600" rx="40" ry="40" width="100" height="100" stroke="rgb(129, 201, 149)" fill="rgb(129, 201, 149)">
<animateTransform attributeType="XML" attributeName="transform" begin="0s" dur="35s" type="rotate" from="-30 550 750" to="330 550 750" repeatCount="indefinite" />
</rect>
</svg>
---
home: true
modules:
- BannerBrand
bannerBrand:
bgImage: '/bg.svg'
title: Front end website
tagline: Front end website 是一个管理前端项目和分支的网站。
buttons:
- { text: 使用手册, link: '/docs/guide/introduce' }
- { text: 常见问题, link: '/docs/FAQ/question' }
- { text: 在线体验, link: 'http://glsk-web-front.dev.glsx.com.cn/', type: 'plain' }
socialLinks:
- { icon: 'LogoGithub', link: 'https://github.com/vuepress-reco/vuepress-theme-reco' }
blog:
socialLinks:
- { icon: 'LogoGithub', link: 'https://github.com/recoluan' }
isShowTitleInHome: true
actionText: About
actionLink: /views/other/about
---
## 快速开始
**npx**
```bash
# 初始化,并选择 2.x
npx @vuepress-reco/theme-cli init
```
**npm**
```bash
# 初始化,并选择 2.x
npm install @vuepress-reco/theme-cli@1.0.7 -g
theme-cli init
```
**yarn**
```bash
# 初始化,并选择 2.x
yarn global add @vuepress-reco/theme-cli@1.0.7
theme-cli init
```
---
title: first page in category1
date: 2018/12/15
tags:
- tag1
categories:
- category1
---
first page in category1
\ No newline at end of file \ No newline at end of file
---
title: second page in category1
date: 2019/09/21
tags:
- tag2
categories:
- category1
---
second page in category1
\ No newline at end of file \ No newline at end of file
---
title: first page in category2
date: 2016/12/15
tags:
- tag3
categories:
- category2
---
first page in category2
\ No newline at end of file \ No newline at end of file
---
title: second page in category2
date: 2017/09/21
tags:
- tag4
categories:
- category2
---
second page in category2
\ No newline at end of file \ No newline at end of file
---
title: vuepress-theme-reco
date: 2019/04/09
categories:
- reco
---
![vuepress](https://img.shields.io/badge/vuepress-0.14.8-brightgreen.svg)
![leancloud-storage](https://img.shields.io/badge/leancloud--storage-3.10.1-orange.svg)
![valine](https://img.shields.io/badge/valine-1.3.4-blue.svg)
::: tip 介绍
1. 这是一个vuepress主题,旨在添加博客所需的分类、TAB墙、分页、评论等能;<br>
2. 主题追求极简,根据 vuepress 的默认主题修改而成,官方的主题配置仍然适用;<br>
3. 你可以打开 [午后南杂](http://recoluan.gitlab.io) 来查看效果。
:::
## Use
**Build**
```bash
npm run build
# or
yarn build
```
**Server**
```bash
npm run dev
# or
yarn dev
```
## Play Together
### 0.x
`vuepress-theme-reco@0.x` 是基于 `vuepress@0.x` 的博客主题。
`vuepress@0.x` 功能比较简单,只适合书写简单的文档,但好在支持主题自定义,而个人又希望能够用它来书写博客,原因就是它足够的简洁,毫无疑问,这也符合很多程序员的观念,也就是在这种情况下,`vuepress-theme-reco@0.x` 的第一个版本经过一个通宵而产生。
主题开源不久,很多朋友通过各种联系方式,给到很多好的意见和建议,所以我个人也在积极地更新。
因为我是一名前端开发工程师,开发的过程中,总是想着能不能加入一些炫酷的效果,有很多次都是添加上又去掉,反反复复,最后都是被 **简洁** 的这个原则阻止掉,毕竟,现在我是将它当作一个产品来看待,并不是一个技术或者是技巧的尝试项目。
### 1.x
随着不断有用户过来询问:为什么 `vuepress-theme-reco@0.x` 不能在 `vuepress@1.x` 上使用?本来只是打算对 `vuepress-theme-reco@0.x` 进行简单的bug修复的我,终究还是忍不住,开始了 `vuepress-theme-reco@1.x` 的开发。又是在一个寂静的凌晨两点半(晚上就是出活快),我默默地开始了。
主题升级的关键也就是 `@vuepress/plugin-blog` 这款官方插件,它不需要再去麻烦地过滤数据,将分类和标签的相关信息直接存在 `$categories` 和 `$tags` 这两个全局变量中。借助于 `@vuepress/plugin-blog`,分类和标签功能更容易实现,但也有了一些局限。接下来两三天的时间,都是在进行功能的迁移和一些bug的修复。
`vuepress-theme-reco@0.x` 的开发中,更加深刻地明白了模块化和组件化编程的重要性,如果当初没有把一些功能进行封装,而是直接简单的复制,这次升级也不会这么顺利。模块拆分的越细,使用就会越灵活。
### CLI
还是衷心地希望能有更多的朋友参与进来,更快地去完善它。接下来时间允许的情况下,我会开源一款自动生成博客的脚手架,略过配置步骤,直接书写优质内容,这也是我后来逐渐形成的一种信念,就是希望能让这款主题,功能越完善,使用越来越简单。
## License
[MIT](https://github.com/recoluan/vuepress-theme-reco/blob/master/LICENSE)
\ No newline at end of file \ No newline at end of file
---
title: 常见问题
date: 2024/02/27
---
## Q1:master版本合并人选择谁?
谁负责线上合并就选择谁的。
例如:现在(2024/02/27)上线合并负责人是胡悦,那就填“胡悦”的名字。
## Q2:问一下这个版本还有要加的项目进去,哪里有能继续添加项目的操作?
在创建分支的时候选择这个版本号,该分支就会自动挂载版本下面了。如果是在提测后需要添加项目,也同样处理。如果创建项目的时候版本号选择错误,可以点击“修改”按钮,重新选择版本号。
## Q3:问一下,有个后创建的项目在提测分支里面看不到,这个要怎么才能把他弄回来?
- 导致该问题的原因:提测的分支中不包括分支类型为“开发分支”的分支号。
- 解决办法:重新创建一个版本分支,将开发分支的修改内容合并到版本分支中。
## Q4:我发起了合并请求,发现改不了合并负责人了,没有编辑这个按钮了
- 原因:“编辑”按钮与“发起合并请求”按钮是状态是一致的,也就是发起合并请求后,不可以再修改合并负责人了。因为此时,系统已在GitLab上将该条合并请求与合并负责人绑定,目前暂不支持从系统中修改。
- 解决办法:先关闭此次合并请求,再修改合并负责人。
## Q5:这个项目拉取了分支,后面全部用不上了
选择弃用该分支,并备注其弃用原因。
## Q6:合并到别的分支提示冲突,本地解决重新提交,系统合并和取消合并都失败,怎么办?
在基线表中新增了“冲突已合并”按钮,手动将分支状态修改过来,修改状态需写明原因,可在操作详情中查看记录。
## Q7:给某项目创建分支,系统中创建成功,但是gitLab上没有分支
可能是没有此项目的权限导致。需去gitLab上进行检查,并删除在此系统上创建的分支,重新创建。
\ No newline at end of file \ No newline at end of file
---
title: 分支管理
date: 2024/02/26
---
### 界面展示
![img](images/branch-1.png)
### 字段说明
- 分支版本号:当前分支名称。
- 上级版本号:从此分支中创建分支。
- 版本类型:主要用于区分版本分支和开发分支。
- 创建人:创建分支的人员名称。
- 提测时间:该分支所在版本的提测时间。
- 上线时间: 该分支所在版本的上线时间。
- 合并状态:有未合并、已发起合并、已合并三种状态。
- 分支状态:有正常、删除两种状态。删除表示该分支在GitLab中不存在了,只在系统中保留记录。
- 创建人:创建该分支的人员名称。
- 合并负责人:负责合并当前分支的发起合并操作。
- 开发人员:负责当前分支的开发人员。
- 合并日期:用来记录实际合并代码的时间。
#### 基线表操作说明
##### 1. 新增
创建新的分支,创建完成后,会发送机器人提醒。
- 项目版本:每个分支都必须挂载在一个版本下,提测时间和上线时间跟随版本号进行变化,可修改。仅展示正在开发中的版本,必填。
- 上级版本号:从此分支中创建新的分支。
- 分支类型:有正常版本分支、线上修复分支、紧急版本分支、开发分支四种状态。不同的分支类型,分支前缀不同。
- 分支版本号:当前分支名称。
- 合并负责人:负责合并当前分支的发起合并操作。
- 开发人员:负责当前分支的开发人员,可多选,不可修改。如若需要修改开发人员,可在提测页面开发人员处进行添加。
- 备注:分支说明。
![img](images/branch-2.png)
##### 2. 编辑
只有创建人可对项目版本和合并负责人进行修改。修改后会发送机器人提醒。
![img](images/branch-3.png)
##### 3. 发起合并请求
只有当前分支的开发人员有权限,可发起合并请求。可以选择目标合并分支,默认为当前分支的上级分支。需填写合并请求标题和原因。
![img](images/branch-5.png)
##### 4. 合并
只有合并负责人和前端账号有权限合并发起的“合并请求”。
##### 5. 删除
只有创建人可进行删除操作。删除即GitLab上删除该分支,当前系统分支状态变为“删除”,无其他操作。
##### 6. 操作详情
记录用户多次的“发起合并请求”、“删除合并请求”、“合并”操作。
![img](images/branch-4.png)
---
title: 介绍
date: 2024-02-26
---
## Front end website 是什么
前端部门集成前端的项目管理、分支管理、版本提测管理的一个管理平台。
## 注意事项
1. 使用用户需有 GitLab 账号,才能使用绝大部分的功能,普通用户只可查看部分项目信息。没有账号的可向运维部门进行账号申请。
2. 系统中涉及在企微群中艾特提醒具体人员,需手动将 GitLab 账号与企微员工id进行绑定,未绑定其他功能不受影响。
## 界面介绍
右上角为菜单和登录入口。左侧是项目模块管理,中间是项目卡片,点击左侧模块中间项目卡片会对应进行切换。右侧是正在开发的版本快捷提测入口。
### 登录成功界面
![img](images/logon-interface.png)
### 未登录界面
![img](images/unlisted-interface.png)
---
title: 项目管理
date: 2024/02/26
---
### 介绍
以下介绍的功能主要针对有账号,已登录的用户。
![img](images/project-1.png)
#### 1. 模块
默认设置了一些模块,主要是对项目进行模块化分类。切换不同的模块就展示不同模块下所有项目。
#### 2. 同步数据
从GitLab上同步已创建的项目数据。通过穿梭框的形式进行操作。左边框表示GitLab上的分组。
![img](images/project-2.png)
#### 3. 新增项目
首先需要根据项目别名(对应GitLab上的项目名称)进行查询该项目是处于以下哪种情况。
新增项目有以下三种情况:
- 系统中无该项目,GitLab中也无创建该项目(全新项目,新增)
- 系统中无该项目,但在GitLab中已创建,也就是系统中未同步数据(自动带入GitLab地址和别名,其他项目信息需创建)
- 系统中已存在该项目,GitLab中也存在(相当于是编辑项目)
![img](images/project-3.png)
根据项目别名查询结果展示:
![img](images/project-4.png)
下面需要注意的内容:
- 配置是否是mock:默认为true,如果使用的是配置服务的需修改为false,为后续统计数据使用。
- 项目OPS名称:OPS上发版时的项目名称,默认与项目别名一致,如若不一致,在此处进行修改。后续提测时,项目名称默认使用项目别名,若此字段有值,则使用此字段的值。
![img](images/project-5.png)
#### 4. 项目名称
项目中文名称,同步数据则自动取的备注信息。
#### 5. 项目别名
对应GitLab上的项目名称。可作为搜索关键字。
#### 6. 编辑项目
可对项目基本信息进行修改。项目别名、git仓库地址不可以修改。
#### 7. 查看项目
可对项目基本信息进行查看。可复制git仓库地址。
#### 8. 项目链接管理
用来存储项目在不同环境下的访问地址,账号等信息。
注:若是微前端项目,则只要有一个子项目创建了对应的链接地址,其他同父系统的子项目共享链接。
#### 9. 分支管理
点击跳转至对应项目的分支列表。具体功能详情见分支管理。
---
title: 提测管理
date: 2024/02/27
---
### 界面展示
![img](images/testing-1.png)
![img](images/testing-2.png)
![img](images/testing-3.png)
### 配置说明
#### 基础配置
只有版本创建人显示此模块。
- 版本名称:当前版本名称,不可修改。
- 开发人员:自动填入挂载在此版本下的项目分支中的开发人员,如有缺少,创建人自行添加。
- 邮件标题:发送提测邮件标题。(默认格式:【提测】+ 版本名称 + 第一轮提测。)
- 邮件内容:发送提测邮件内容。(默认格式:版本名称 + 第一轮前端开发已完成,申请发布到测试环境测试,麻烦测试同学发版+测试,谢谢!)
- 注意事项:提测中的注意事项。
#### 详细配置
填写需提测的模块与内容。模块列表从配置服务中获取,如若要添加,自行从配置服务中添加模块。
“新增或修改内容”、“测试重点内容”、“影响范围内容”只要其中一个添加了模块,自动都添加模块。
#### 分支选择
展示当前版本下所有的版本分支(非开发分支),“项目名称”默认取项目别名,如果项目别名与OPS发版的项目名称不一致,请到项目编辑页面进行修改。
默认所有项目分支全选,如若有不需要提测的项目分支,由创建人进行去掉勾选。
### 操作说明
#### 进出提测页面
某一个版本的提测页面同时只有一人可进入编辑,其他人需更新提测页面内容需等待上一个使用人退出提测页面,才可进行编辑操作。添加了群机器人对提测页面的“进入”和“退出”发送消息提醒。
#### 保存
用户更新提测数据后,需点击“保存”按钮才是更新数据。
#### 预览
用户可点击“预览”按钮查看发送邮件内容。
#### 发送
“发送”按钮只有创建当前版本的人可进行操作。创建人需确认所有开发人员已填写完成提测内容,再点击发送提测邮件。
---
title: 版本管理
date: 2024/02/27
---
### 界面展示
![img](images/version-1.png)
### 字段说明
- 版本名称:版本名称
- 提测时间:版本提测时间
- 上线时间:版本上线时间
- 创建人:版本创建人员
- 创建时间:创建版本的时间
- 状态:当前版本有以下三种状态,开发中、已提测、已上线
### 操作说明
#### 1.新增
- 版本名称:版本名称
- 提测时间:版本提测时间
- 上线时间:版本上线时间
- 平台信息:提测表格中需填写的内容
- 产品需求地址:提测表格中需填写的内容
- 产品设计地址:提测表格中需填写的内容
- 收件人:提测邮件配置收件人
- 抄送人:提测邮件配置抄送人
注:收件人抄送人列表从配置服务中获取,需要手动添加邮件联系人。
#### 2. 修改
所有内容均可修改,需要注意的是,提测时间和上线时间需要在旧时间之前进行修改,否则修改后机器人任务不会再次触发。
#### 3. 查看版本下分支
主要功能:
- 用户可查看所有挂载在当前版本下的项目分支。
- 前端账号可在此页面进行分支合并操作。
- 发送合并邮件入口。
#### 4. 提测
跳转至对应版本的提测页面。
\ No newline at end of file \ No newline at end of file
---
title: api
date: 2020/05/29
---
This is api.
\ No newline at end of file \ No newline at end of file
---
title: theme-reco
date: 2020/05/29
---
This is theme-reco.
\ No newline at end of file \ No newline at end of file
---
title: plugin
date: 2020/05/28
---
This is plugin.
\ No newline at end of file \ No newline at end of file
---
title: theme
date: 2020/05/27
---
This is theme.
\ No newline at end of file \ No newline at end of file
{
"name": "vuepress-theme-reco-demo",
"version": "2.0.0",
"description": "Demo for vuepress-theme-reco@2.x.",
"repository": "git@github.com:recoluan/vuepress-theme-reco-demo.git",
"author": "huyue <huyue@didihu.com.cn>",
"license": "MIT",
"scripts": {
"dev": "vuepress dev .",
"start": "vuepress dev .",
"build": "vuepress build ."
},
"dependencies": {
"vuepress": "2.0.0-rc.0",
"vuepress-theme-reco": "2.0.0-rc.5"
}
}
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!