Compare commits

..

3 Commits

Author SHA1 Message Date
DealingNoMore 30d8ca2802 Update Dockerfile 2024-05-28 15:01:31 +08:00
DealingNoMore 790974a7b9 Update Dockerfile 2024-05-28 14:58:02 +08:00
DealingNoMore 399fadb8b7 Add Dockerfile 2024-05-28 14:55:38 +08:00
33 changed files with 11 additions and 12513 deletions

View File

@ -11,10 +11,7 @@ trigger:
- param-ref: branch
operator: INCLUDE
value: '"wuyifan"'
- param-ref: branch
operator: INCLUDE
value: '"zhanglinhao"'
ruleset-operator: OR
ruleset-operator: AND
workflow:
- ref: start
name: 开始
@ -49,17 +46,6 @@ workflow:
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
ssh_pass: ((ssh.password))
ssh_ip: '"120.27.216.107"'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '""'
needs:
- docker_image_build_0

View File

@ -1,10 +1,9 @@
FROM node:18-alpine
LABEL maintainer="zhanglinhao <1260788704@qq.com>"
WORKDIR /gitlink_help_center
COPY ./ /gitlink_help_center/
RUN yarn install
RUN npm run build
RUN yarn install
RUN npm run build -- --locale zh-cn
CMD ["npm", "run", "serve"]

View File

@ -52,6 +52,3 @@ sidebar_position: 1
![img](../../static/img/建站工具/9.png)
### 现在尝试
https://www.gitlink.org.cn/settings/mysite

View File

@ -1,25 +1,4 @@
---
sidebar_label: '代码提交'
sidebar_position: 3
---
# 代码提交
## 方法一:网页提交代码
GitLink支持在网页上对自己分支的代码进行编辑修改和提交具体流程如下所示
点击框出的编辑按钮即可开始编辑,如下图所示。
![](../../static/img/代码提交.png)<br/>
在完成编辑后在该界面最下方可提交代码变更结果,可选择提交分支并对附带变更进行说明,如下图所示。
![](../../static/img/代码提交2.png)<br/>
## 方法二通过git本地提交代码
通过git可将本地代码文件上传支持单个文件或多个文件的文件夹上传这里只示范通过git push提交项目中的所有新文件。<br/>
![](../../static/img/代码提交3.png)<br/>
## 方法三通过TortoiseGit本地提交代码
### TortoiseGit简介和下载地址
TortoiseGit是基于 TortoiseSVN 的 Git 版本的 Windows Shell 界面。它是开源的,可以完全使用免费软件构建。
TortoiseGit 支持你执行常规任务,例如 commit、显示日志、区分两个版本、创建分支和标签、创建补丁等。
TortoiseGit下载地址https://download.tortoisegit.org/tgit/
### TortoiseGit代码提交示例
通过TortoiseGit与目标分支建立分支后只需点击对应的提交按钮即可对项目中的所有更新进行提交不限于代码
![](../../static/img/代码提交5.png)<br/>
![](../../static/img/代码提交4.png)<br/>
- **提交者**wuyifan
- **日期**2024.5.30
---

View File

@ -1,19 +1,4 @@
---
sidebar_label: '分支管理'
sidebar_position: 5
---
在GitLink的分支管理首先在代码库界面点击分支按钮。
如下图:
![](../../static/img/分支管理1.png)
点击之后会进入相应的分支管理界面,如果想要新建一个分支,点击右上角的新建分支即可。
如果想要删除某个分支,点击该分支后面的删除按钮即可。
如下图:
![](../../static/img/分支管理2.png)
在框内填入你的新建的分支的名称即可创建。
![](../../static/img/分支管理3.png)
如果分支数量较多可以使用分支搜索
![](../../static/img/分支管理5.png)
点击新建分支左边的分支设置按钮,可以进入分支设置界面,可以在里面设置保护分支等。
![](../../static/img/分支管理4.png)
也可以查看已经删除的分支,如下图:
![](../../static/img/分支管理6.png)
---

View File

@ -56,32 +56,13 @@ module.exports = {
type: 'doc',
docId: 'intro',
position: 'left',
label: '帮助中心',
to:'/'
},
{
label: '更多开源',
position: 'right',
items: [
{
label: 'GitHub',
to: 'https://github.com/',
},
{
label: 'Gitee',
to: 'https://gitee.com/',
},
{
label: 'Gitlab',
to: 'https://about.gitlab.com',
},
],
},
{
href: 'https://github.com/boxyhq',
position: 'right',
className: 'header-github-link',
label: '帮助中心'
},
// {
// href: 'https://github.com/boxyhq',
// position: 'right',
// className: 'header-github-link',
// },
],
},
footer: {
@ -130,10 +111,6 @@ module.exports = {
label: '服务协议',
to: 'https://forum.trustie.net/forums/5029/detail',
},
{
label:'意见反馈',
to:'http://120.27.216.107:80/Feedback'
}
],
},
{

View File

@ -1,23 +0,0 @@
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

View File

@ -1,24 +0,0 @@
# gitlink
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

View File

@ -1,5 +0,0 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}

View File

@ -1,19 +0,0 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,47 +0,0 @@
{
"name": "gitlink",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^1.7.2",
"core-js": "^3.8.3",
"element-plus": "^2.7.4",
"router": "^1.3.8",
"vue": "^3.2.13",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

View File

@ -1,20 +0,0 @@
<template>
<div id="app">
<router-view></router-view>
</div>
</template>
<script>
export default {
name: 'App'
}
</script>
<style>
#app {
font-family: Arial, sans-serif;
text-align: center;
margin-top: 20px;
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -1,132 +0,0 @@
<template>
<div class="top-right-button">
<el-button type="primary" @click="returnList()">返回</el-button>
</div>
<div class="user-feedback">
<!-- 输入评价 -->
<div class="feedback-input">
<h2>评论</h2>
<form @submit.prevent="send"> <!-- 阻止表单默认提交行为 -->
<textarea id="text" v-model.trim="evaluation.text" rows="4" cols="50"></textarea>
<br>
<label for="contact">联系方式(选填):</label>
<input type="text" id="contact" v-model="evaluation.contact">
<br>
<button type="submit">发布评价</button>
</form>
</div>
<el-space direction="vertical">
<el-row>
<el-text>留下您的评价</el-text>
<el-rate class="ml-1"
v-model="evaluation.score"
:texts="['oops', 'disappointed', 'normal', 'good', 'great']"
show-text
@change="handleRateChange"
clearable />
</el-row>
</el-space>
</div>
</template>
<script>
import axios from 'axios';
export default {
data() {
return {
evaluation: {
score: '',
text: '',
contact: '',
},
};
},
methods: {
send() {
axios.post('http://192.168.234.35:8080/addEvaluation', {
score: this.evaluation.score,
text: this.evaluation.text,
contact: this.evaluation.contact,
}, {
withCredentials: true,
headers: {
'Content-Type': 'application/json'
}
}).then(response => {
if (response.data == 1) {
console.log('评价发送成功');
this.evaluation.text = '';
this.evaluation.score = '';
this.evaluation.contact = '';
alert("发布成功");
}
}).catch(error => {
console.error('评价发送失败', error);
});
},
handleRateChange(score) {
this.evaluation.score = score; //
},
returnList(){
this.$router.push('/evalueationList')
}
},
};
</script>
<style scoped>
.user-feedback {
max-width: 600px;
margin: 0 auto;
position: relative;
}
.feedback-input {
margin-bottom: 40px;
}
textarea {
width: 100%;
padding: 8px;
font-size: 16px;
border: 1px solid #28a7a3;
border-radius: 4px;
margin-bottom: 10px;
}
button {
margin-top: 20px;
padding: 8px 16px;
font-size: 16px;
border: none;
border-radius: 4px;
background-color: #007bff;
color: #003f3f;
cursor: pointer;
}
.submitted-feedback {
border-top: 1px solid #a6cfee;
padding-top: 20px;
}
.feedback-item {
background-color: #abd4ee;
border: 1px solid #c2f1fb;
border-radius: 4px;
padding: 10px;
}
.top-right-button {
/* 绝对定位到右上角 */
position: absolute;
top: 1px; /* 根据需要调整 */
left: 10px; /* 根据需要调整 */
}
.feedback-item p {
margin: 0;
}
</style>

View File

@ -1,91 +0,0 @@
<template>
<div>
<h2>评论列表</h2>
<div
v-for="comment in comments"
:key="comment.text"
class="comment-item"
>
<p>{{ comment.text }}</p>
<!-- <p>评分: {{ comment.score }}</p> -->
</div>
<div class="post-comment-button-container">
<button class='post-comment-button' @click="navigateToPostCommentPage">发表评论</button> <!-- 移除括号因为这里不是调用方法 -->
</div>
</div>
</template>
<script>
import axios from 'axios'; // refonMounted使
export default {
data() {
return {
comments: [],
};
},
methods: {
navigateToPostCommentPage() {
this.$router.push('/Feedback');
},
},
async created() { // createdasynccreated
try {
const response = await axios.get(`http://192.168.234.35:8080/evaluationList`);
this.comments = response.data;
} catch (error) {
console.error('Error fetching comments:', error);
}
},
};
</script>
<style scoped>
.user-feedback {
/* 添加一个最大宽度或容器样式 */
max-width: 800px;
margin: 0 auto; /* 水平居中 */
padding: 20px; /* 添加外边距 */
}
.comment-item {
border: 1px solid #ddd; /* 添加边框 */
padding: 10px; /* 添加内边距 */
margin-bottom: 10px; /* 添加下边距,以分隔评论 */
border: 1px solid #ddd;
background-color: #f5f5f5; /* 添加背景色 */
padding: 15px;
margin-bottom: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
border-radius: 5px; /* 添加圆角 */
}
.comment-item p {
/* 可以添加字体样式,如字体大小、颜色等 */
font-size: 16px;
color: #333;
}
.post-comment-button-container {
position: fixed;
bottom: 20px; /* 距离页面底部的距离 */
right: 20px; /* 距离页面右侧的距离,可以根据需要调整 */
z-index: 999; /* 确保按钮在其他内容之上 */
display: flex;
justify-content: center; /* 水平居中按钮 */
align-items: center; /* 垂直居中按钮如果按钮容器是flex容器 */
transition: bottom 0.3s ease;
}
.post-comment-button {
padding: 10px 20px;
font-size: 16px;
border: none;
background-color: #4CAF50;
color: white;
justify-content: center;
cursor: pointer;
transition: background-color 0.3s ease; /* 添加背景色过渡效果 */
}
.post-comment-button:hover{
background-color: #55ff00;
}
</style>

View File

@ -1,10 +0,0 @@
import { createApp } from 'vue'
import router from './router';
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css';
import App from './App.vue'
const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.mount('#app')

View File

@ -1,16 +0,0 @@
import { createWebHistory, createRouter } from 'vue-router';
import UserFeedback from '../components/UserFeedback.vue'
import evalueationList from '../components/evalueationList.vue'
const routes = [
{ path: '/', redirect: '/evalueationList' }, // 重定向到/login路径
{ path: '/Feedback', component: UserFeedback },
{ path: '/evalueationList', component: evalueationList },
];
const router = createRouter({
history: createWebHistory(),
routes
});
export default router;

View File

@ -1,4 +0,0 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB