Procházet zdrojové kódy

😎代码优化及升级依赖

zuohuaijun před 2 roky
rodič
revize
cce2374877

+ 4 - 4
Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj

@@ -17,7 +17,7 @@
     <PackageReference Include="AngleSharp" Version="1.1.2" />
     <PackageReference Include="AspectCore.Extensions.Reflection" Version="2.4.0" />
     <PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
-    <PackageReference Include="Elastic.Clients.Elasticsearch" Version="8.14.2" />
+    <PackageReference Include="Elastic.Clients.Elasticsearch" Version="8.14.3" />
     <PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.9.4.1" />
     <PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.9.4.1" />
     <PackageReference Include="Furion.Pure" Version="4.9.4.1" />
@@ -37,7 +37,7 @@
     <PackageReference Include="SqlSugarCore" Version="5.1.4.158" />
     <PackageReference Include="SSH.NET" Version="2024.0.0" />
     <PackageReference Include="System.Linq.Dynamic.Core" Version="1.4.0" />
-    <PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1028" />
+    <PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1030" />
     <PackageReference Include="UAParser" Version="3.1.47" />
     <PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
   </ItemGroup>
@@ -53,8 +53,8 @@
   </ItemGroup>
 
   <ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
-    <PackageReference Include="AspNet.Security.OAuth.Gitee" Version="8.0.0" />
-    <PackageReference Include="AspNet.Security.OAuth.Weixin" Version="8.0.0" />
+    <PackageReference Include="AspNet.Security.OAuth.Gitee" Version="8.1.0" />
+    <PackageReference Include="AspNet.Security.OAuth.Weixin" Version="8.1.0" />
     <PackageReference Include="Lazy.Captcha.Core" Version="2.0.7" />
     <PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="8.0.6" />
     <PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="8.0.6" />

+ 3 - 3
Admin.NET/Plugins/Admin.NET.Plugin.GoView/Service/GoViewPro/GoViewProService.cs

@@ -256,17 +256,17 @@ public class GoViewProService : IDynamicApiController
     [DisplayName("上传背景图")]
     public async Task<GoViewProUploadOutput> UploadBackGround(IFormFile @object)
     {
-        //文件名格式示例 13414795568325_index_preview.png
+        // 文件名格式示例 13414795568325_index_preview.png
         var fileNameSplit = @object.FileName.Split('_');
         var idStr = fileNameSplit[0];
         if (!long.TryParse(idStr, out var id)) return new GoViewProUploadOutput();
 
-        //将预览图转换成 Base64
+        // 将预览图转换成 Base64
         var ms = new MemoryStream();
         await @object.CopyToAsync(ms);
         var base64Image = Convert.ToBase64String(ms.ToArray());
 
-        //保存
+        // 保存
         if (await _goViewProDataRep.IsAnyAsync(u => u.Id == id))
         {
             await _goViewProDataRep.AsUpdateable()

+ 1 - 1
Web/package.json

@@ -37,7 +37,7 @@
 		"jsplumb": "^2.15.6",
 		"lodash-es": "^4.17.21",
 		"mitt": "^3.0.1",
-		"monaco-editor": "^0.49.0",
+		"monaco-editor": "^0.50.0",
 		"nprogress": "^0.2.0",
 		"pinia": "^2.1.7",
 		"print-js": "^1.6.0",

+ 9 - 2
Web/src/views/home/widgets/components/commit.vue

@@ -1,5 +1,9 @@
 <template>
 	<el-card shadow="hover" header="更新记录">
+		<template #header>
+			<el-icon style="display: inline; vertical-align: middle"> <ele-Refresh /> </el-icon>
+			<span style=""> 更新记录 </span>
+		</template>
 		<div class="commit">
 			<el-timeline style="max-width: 600px" v-if="state.list.length > 0">
 				<el-timeline-item v-for="(item, index) in state.list" :key="index" :timestamp="item.commit.committer.date">
@@ -20,10 +24,13 @@ export default {
 </script>
 
 <script setup lang="ts" name="commit">
+// import axios from 'axios';
 import { reactive, onMounted } from 'vue';
+
 const state = reactive({
-	list: [],
+	list: [] as any,
 });
+
 onMounted(() => {
 	axios({
 		method: 'get',
@@ -32,7 +39,7 @@ onMounted(() => {
 			page: 1,
 			per_page: 10,
 		},
-	}).then((res) => {
+	}).then((res: any) => {
 		state.list = res.data;
 	});
 });

+ 5 - 1
Web/src/views/home/widgets/index.vue

@@ -144,7 +144,11 @@ interface Grid {
 }
 const defaultGrid = {
 	layout: [12, 6, 6],
-	copmsList: [['welcome'], ['about', 'ver'], ['timeing', 'progressing']],
+	copmsList: [
+		['welcome', 'commit'],
+		['about', 'ver'],
+		['timeing', 'progressing'],
+	],
 };
 
 const customizing = ref<boolean>(false);