feat: 新增bat流水线
This commit is contained in:
@@ -34,6 +34,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
||||
tool.bat = tool.bat
|
||||
usings.props = usings.props
|
||||
version.props = version.props
|
||||
publish.bat = publish.bat
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.SqlSugarCore.Abstractions", "framework\Yi.Framework.SqlSugarCore.Abstractions\Yi.Framework.SqlSugarCore.Abstractions.csproj", "{FD6D6860-3753-4747-8A26-977E4A3001F9}"
|
||||
|
||||
24
Yi.Abp.Net8/publish.bat
Normal file
24
Yi.Abp.Net8/publish.bat
Normal file
@@ -0,0 +1,24 @@
|
||||
@echo on
|
||||
|
||||
set SERVER_USER=root
|
||||
set SERVER_IP=ccnetcore.com
|
||||
set FILE_PATH=publish_02.zip
|
||||
set REMOTE_PATH=/home/yi/build/publish_02.zip
|
||||
set REMOTE_COMMAND="cd /home/yi/net8&&pwd&&unzip -o /home/yi/build/publish_02.zip -d ./&&./start.sh"
|
||||
set sevenzip_Path="D:\Program Files\7-Zip\7z.exe"
|
||||
|
||||
echo start
|
||||
echo 1-build-start
|
||||
:: dotnet publish
|
||||
echo 1-build-end
|
||||
echo 2-zip-start
|
||||
|
||||
%sevenzip_Path% a ./publish_02.zip ./src/Yi.Abp.Web/bin/Release/net8.0/linux-x64/publish/*
|
||||
:: tar -cvf publish_02.zip -C "dist" "*"
|
||||
echo 2-zip-end
|
||||
echo 3-publish-start
|
||||
scp %FILE_PATH% %SERVER_USER%@%SERVER_IP%:%REMOTE_PATH%
|
||||
ssh %SERVER_USER%@%SERVER_IP% %REMOTE_COMMAND%
|
||||
echo 3-publish-end
|
||||
echo end
|
||||
pause
|
||||
24
Yi.Bbs.Vue3/publish.bat
Normal file
24
Yi.Bbs.Vue3/publish.bat
Normal file
@@ -0,0 +1,24 @@
|
||||
@echo on
|
||||
|
||||
set SERVER_USER=root
|
||||
set SERVER_IP=ccnetcore.com
|
||||
set FILE_PATH=publish_bbs_02.zip
|
||||
set REMOTE_PATH=/home/yi/build/publish_bbs_02.zip
|
||||
set REMOTE_COMMAND="cd /home/yi/bbs&&pwd&&unzip -o /home/yi/build/publish_bbs_02.zip -d ./"
|
||||
set sevenzip_Path="D:\Program Files\7-Zip\7z.exe"
|
||||
|
||||
echo start
|
||||
echo 1-build-start
|
||||
:: npm run build
|
||||
echo 1-build-end
|
||||
echo 2-zip-start
|
||||
|
||||
%sevenzip_Path% a ./publish_bbs_02.zip ./dist/*
|
||||
:: tar -cvf publish_bbs_02.zip -C "dist" "*"
|
||||
echo 2-zip-end
|
||||
echo 3-publish-start
|
||||
scp %FILE_PATH% %SERVER_USER%@%SERVER_IP%:%REMOTE_PATH%
|
||||
ssh %SERVER_USER%@%SERVER_IP% %REMOTE_COMMAND%
|
||||
echo 3-publish-end
|
||||
echo end
|
||||
pause
|
||||
@@ -222,7 +222,7 @@ const enterStart=()=>{
|
||||
.money {
|
||||
|
||||
font-size: small;
|
||||
color: #FED055;
|
||||
color: #ff0000;
|
||||
margin: 0 5px;
|
||||
|
||||
span {
|
||||
|
||||
@@ -2,18 +2,18 @@
|
||||
<div class="home-box">
|
||||
<el-row :gutter="20" class="top-div">
|
||||
<el-col :span="17">
|
||||
<div class="chat-hub">
|
||||
<p @click="onClickToChatHub" >点击前往-最新上线<span>《聊天室》 </span>,现已支持<span>Ai助手</span>,希望能帮助大家</p>
|
||||
<div class="chat-hub">
|
||||
<p @click="onClickToChatHub">点击前往-最新上线<span>《聊天室》 </span>,现已支持<span>Ai助手</span>,希望能帮助大家</p>
|
||||
</div>
|
||||
<div class="scrollbar">
|
||||
<ScrollbarInfo />
|
||||
</div>
|
||||
|
||||
|
||||
<el-row class="left-div">
|
||||
<el-col :span="8" v-for="i in plateList" :key="i.id" class="plate" :style="{
|
||||
'padding-left': i % 3 == 1 ? 0 : 0.2 + 'rem',
|
||||
'padding-right': i % 3 == 0 ? 0 : 0.2 + 'rem',
|
||||
}">
|
||||
'padding-left': i % 3 == 1 ? 0 : 0.2 + 'rem',
|
||||
'padding-right': i % 3 == 0 ? 0 : 0.2 + 'rem',
|
||||
}">
|
||||
<PlateCard :name="i.name" :introduction="i.introduction" :id="i.id" :isPublish="i.isDisableCreateDiscuss" />
|
||||
</el-col>
|
||||
<template v-if="isDiscussFinished">
|
||||
@@ -77,20 +77,25 @@
|
||||
</div>
|
||||
<!-- 签到 -->
|
||||
<el-col :span="24">
|
||||
<InfoCard header="每日签到">
|
||||
<InfoCard header="活动">
|
||||
<template #content>
|
||||
<div class="signIn">
|
||||
<div class="left">你好,很高兴今天又遇到你!</div>
|
||||
<div class="right">
|
||||
<div class="signIn-btn" @click="handleToSign">去签到</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top">你好,很高兴今天又遇到你呀~</div>
|
||||
<el-row class="active">
|
||||
|
||||
<el-col v-for="item in activeList" :span="6">
|
||||
|
||||
<el-icon color="#70aafb" size="30px" @click="handleToRouter(item.path)">
|
||||
<component :is="item.icon"></component>
|
||||
</el-icon>
|
||||
<span> {{item.name}}</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
</InfoCard>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24">
|
||||
<InfoCard header="访问统计" class="VisitsLineChart" text="(New)全站历史统计" @onClickText="onClickAccessLog">
|
||||
<InfoCard header="访问统计" class="VisitsLineChart" text="全站历史统计" @onClickText="onClickAccessLog">
|
||||
<template #content>
|
||||
<VisitsLineChart :option="statisOptions" class="statisChart" />
|
||||
</template>
|
||||
@@ -219,6 +224,18 @@ const isAllDiscussFinished = ref(false);
|
||||
const userAnalyseInfo = ref({});
|
||||
const onlineNumber = ref(0);
|
||||
|
||||
const activeList=[
|
||||
{name:"签到",path:"/activity/sign",icon:"Present"},
|
||||
{name:"等级",path:"/activity/level",icon:"Ticket"},
|
||||
{name:"大转盘",path:"/activity/lucky",icon:"Sunny"},
|
||||
{name:"银行",path:"/activity/bank",icon:"Money"},
|
||||
|
||||
{name:"任务",path:"/activity/sign",icon:"Memo"},
|
||||
{name:"娱乐城",path:"/activity/sign",icon:"Sunrise"},
|
||||
{name:"其他",path:"/activity/sign",icon:"Sunny"},
|
||||
{name:"其他",path:"/activity/sign",icon:"Sunny"},
|
||||
];
|
||||
|
||||
//主题查询参数
|
||||
const query = reactive({
|
||||
skipCount: 1,
|
||||
@@ -281,26 +298,26 @@ const statisOptions = computed(() => {
|
||||
const accessLogOptins = computed(() => {
|
||||
return {
|
||||
xAxis: {
|
||||
data: accessAllList.value?.map((item,index)=>{
|
||||
data: accessAllList.value?.map((item, index) => {
|
||||
return item.creationTime.slice(0, 10);
|
||||
|
||||
})
|
||||
},
|
||||
series: [
|
||||
{
|
||||
data: accessAllList.value?.map((item,index)=>{
|
||||
return item.number;
|
||||
data: accessAllList.value?.map((item, index) => {
|
||||
return item.number;
|
||||
})
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
const onClickToChatHub=()=>{
|
||||
const onClickToChatHub = () => {
|
||||
router.push("/chat");
|
||||
};
|
||||
|
||||
const handleToSign = () => {
|
||||
router.push("/activity/sign");
|
||||
const handleToRouter = (path) => {
|
||||
router.push(path);
|
||||
};
|
||||
|
||||
// 推送的实时人数获取
|
||||
@@ -315,7 +332,7 @@ watch(
|
||||
|
||||
const onClickAccessLog = async () => {
|
||||
accessLogDialogVisible.value = true;
|
||||
const {data} = await getAccessList();
|
||||
const { data } = await getAccessList();
|
||||
|
||||
accessAllList.value = data;
|
||||
}
|
||||
@@ -422,13 +439,29 @@ const onClickAccessLog = async () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.signIn {
|
||||
.top{
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.active {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: #8a919f;
|
||||
|
||||
|
||||
.el-col {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
padding: 10px 0px;
|
||||
}
|
||||
.el-col:hover {
|
||||
background-color: #cce1ff; /* 悬浮时背景色变化 */
|
||||
color: #70aafb; /* 悬浮时文字颜色变化 */
|
||||
}
|
||||
|
||||
&-btn {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -457,9 +490,9 @@ const onClickAccessLog = async () => {
|
||||
height: 500px;
|
||||
}
|
||||
}
|
||||
|
||||
//走马灯,聊天室链接
|
||||
.chat-hub
|
||||
{
|
||||
.chat-hub {
|
||||
background-color: #E6A23C;
|
||||
color: #ffffff;
|
||||
margin-bottom: 10px;
|
||||
@@ -467,22 +500,29 @@ const onClickAccessLog = async () => {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
box-sizing: border-box;
|
||||
span{
|
||||
color: red;
|
||||
|
||||
span {
|
||||
color: red;
|
||||
}
|
||||
|
||||
display: flex;
|
||||
align-content: center;
|
||||
flex-wrap: wrap;
|
||||
align-content: center;
|
||||
flex-wrap: wrap;
|
||||
height: 30px;
|
||||
|
||||
p {
|
||||
margin:0 auto ;
|
||||
cursor:pointer;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes marquee {
|
||||
0% { transform: translateX(0); }
|
||||
100% { transform: translateX(-100%); }
|
||||
margin: 0 auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes marquee {
|
||||
0% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user