فهرست منبع

😎1、升级Furion v4.9.4.1等 2、代码整理

zuohuaijun 1 سال پیش
والد
کامیت
b431d93bb7

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

@@ -18,9 +18,9 @@
     <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="Furion.Extras.Authentication.JwtBearer" Version="4.9.4" />
-    <PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.9.4" />
-    <PackageReference Include="Furion.Pure" Version="4.9.4" />
+    <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" />
     <PackageReference Include="IPTools.China" Version="1.6.0" />
     <PackageReference Include="IPTools.International" Version="1.6.0" />
     <PackageReference Include="Magicodes.IE.Excel" Version="2.7.5.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.1026" />
+    <PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1027" />
     <PackageReference Include="UAParser" Version="3.1.47" />
     <PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
   </ItemGroup>

+ 45 - 47
Admin.NET/Admin.NET.Core/Attribute/ThemeAttribute → Admin.NET/Admin.NET.Core/Attribute/ThemeAttribute.cs

@@ -1,47 +1,45 @@
-
-// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
-//
-// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
-//
-// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
-
-namespace Admin.NET.Core;
-
-/// <summary>
-/// 枚举拓展主题样式
-/// </summary>
-[SuppressSniffer]
-[AttributeUsage(AttributeTargets.Enum | AttributeTargets.Field)]
-public class ThemeAttribute: Attribute
-{
-    public ThemeAttribute(string theme)
-    {
-        this.Theme = theme;
-    }
-
-    public string Theme { get; private set; }
-}
-
-
-public static class ThemeExtend
-{
-    /// <summary>
-    /// 扩展方法
-    /// </summary>
-    /// <param name="enumValue"></param>
-    /// <returns></returns>
-    public static string GetTheme(this Enum enumValue)
-    {
-        Type type = enumValue.GetType();
-        FieldInfo field = type.GetField(enumValue.ToString());
-        if (field.IsDefined(typeof(ThemeAttribute), true))
-        {
-            var themeAttribute = (ThemeAttribute)field.GetCustomAttribute(typeof(ThemeAttribute));
-            return themeAttribute.Theme;
-        }
-        else
-        {
-            return string.Empty;
-        }
-    }
-}
+// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
+//
+// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
+//
+// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
+
+namespace Admin.NET.Core;
+
+/// <summary>
+/// 枚举拓展主题样式
+/// </summary>
+[SuppressSniffer]
+[AttributeUsage(AttributeTargets.Enum | AttributeTargets.Field)]
+public class ThemeAttribute : Attribute
+{
+    public string Theme { get; private set; }
+
+    public ThemeAttribute(string theme)
+    {
+        this.Theme = theme;
+    }
+}
+
+public static class ThemeExtend
+{
+    /// <summary>
+    /// 扩展方法
+    /// </summary>
+    /// <param name="enumValue"></param>
+    /// <returns></returns>
+    public static string GetTheme(this Enum enumValue)
+    {
+        Type type = enumValue.GetType();
+        FieldInfo field = type.GetField(enumValue.ToString());
+        if (field.IsDefined(typeof(ThemeAttribute), true))
+        {
+            var themeAttribute = (ThemeAttribute)field.GetCustomAttribute(typeof(ThemeAttribute));
+            return themeAttribute.Theme;
+        }
+        else
+        {
+            return string.Empty;
+        }
+    }
+}

+ 11 - 12
Admin.NET/Admin.NET.Core/Extension/EnumExtension.cs

@@ -166,17 +166,16 @@ public static class EnumExtension
             ?.GetCustomAttribute<DescriptionAttribute>()?.Description;
     }
 
-   /// <summary>
-   /// 获取枚举的Theme
-   /// </summary>
-   /// <param name="value"></param>
-   /// <returns></returns>
-   public static string GetTheme(this object value)
-   {
-       return value.GetType().GetMember(value.ToString() ?? string.Empty).FirstOrDefault()
-           ?.GetCustomAttribute<ThemeAttribute>()?.Theme;
-   }
-
+    /// <summary>
+    /// 获取枚举的Theme
+    /// </summary>
+    /// <param name="value"></param>
+    /// <returns></returns>
+    public static string GetTheme(this object value)
+    {
+        return value.GetType().GetMember(value.ToString() ?? string.Empty).FirstOrDefault()
+            ?.GetCustomAttribute<ThemeAttribute>()?.Theme;
+    }
 
     /// <summary>
     /// 将枚举转成枚举信息集合
@@ -195,7 +194,7 @@ public static class EnumExtension
             {
                 Name = item.ToString(),
                 Describe = item.GetDescription() ?? item.ToString(),
-                Theme= item.GetTheme()?? string.Empty,
+                Theme = item.GetTheme() ?? string.Empty,
                 Value = item.GetHashCode()
             };
         }).ToList();

+ 1 - 1
Admin.NET/Plugins/Admin.NET.Plugin.ReZero/Admin.NET.Plugin.ReZero.csproj

@@ -24,7 +24,7 @@
   </ItemGroup>
 
   <ItemGroup>
-    <PackageReference Include="Rezero.Api" Version="1.6.18" />
+    <PackageReference Include="Rezero.Api" Version="1.7.0" />
   </ItemGroup>  
 
   <ItemGroup>

+ 1 - 1
Web/src/views/system/print/component/hiprint/preview.vue

@@ -1,5 +1,5 @@
 <template>
-	<el-dialog v-model="state.dialogVisible" draggable :close-on-click-modal="false" :width="(Number(state.width) + Number(8)) + 'mm'">
+	<el-dialog v-model="state.dialogVisible" draggable :close-on-click-modal="false" :width="Number(state.width) + Number(8) + 'mm'">
 		<div id="preview_content" ref="previewContentRef"></div>
 		<template #footer>
 			<el-button :loading="state.waitShowPrinter" type="primary" icon="ele-Printer" @click.stop="print">直接打印</el-button>

+ 1 - 1
一键净化项目.bat

@@ -4,7 +4,7 @@
  DEL /f /s /q ".\Web\node_modules\*.*"
  RD /s /q ".\Web\node_modules"
  REM 循环删除指定文件夹下的文件夹
- FOR /d /r ".\Admin.NET\" %%b in (bin,obj) do rd /s /q "%%b"
+ FOR /d /r ".\Admin.NET\" %%b in (bin,obj,public) do rd /s /q "%%b"
  ECHO 【处理完毕,按任意键退出】
  PAUSE>NUL
  EXIT