返回提交历史
Added
XFEExtension.NetCore.XApp/ImageType.cs
+28
-0
Renamed
XFEExtension.NetCore.XApp/XApp.cs
+2
-2
Added
XFEExtension.NetCore.XApp/XAppCode.cs
+16
-0
Added
XFEExtension.NetCore.XApp/XAppFile.cs
+12
-0
Added
XFEExtension.NetCore.XApp/XAppFileType.cs
+28
-0
Added
XFEExtension.NetCore.XApp/XAppImage.cs
+6
-0
Added
XFEExtension.NetCore.XApp/XAppResource.cs
+13
-0
Modified
XFEExtension.NetCore.XApp/XFEExtension.NetCore.XApp.csproj
+5
-0
XFEstudio/XFEExtension.NetCore.XApp.Core
添加数个文件类
e7d5956
代码差异
8 个文件
+110
-2
@@ -0,0 +1,28 @@
1
namespace XFEExtension.NetCore.XApp;
2
3
/// <summary>
4
/// 图片格式
5
/// </summary>
6
public enum ImageType
7
{
8
/// <summary>
9
/// Jpg格式
10
/// </summary>
11
Jpg,
12
/// <summary>
13
/// Png格式
14
/// </summary>
15
Png,
16
/// <summary>
17
/// Svg矢量图格式
18
/// </summary>
19
Svg,
20
/// <summary>
21
/// Gif动图格式
22
/// </summary>
23
Gif,
24
/// <summary>
25
/// BitMap格式
26
/// </summary>
27
Bmp
28
}
@@ -2,5 +2,5 @@
2
2
3
3
public class XApp
4
4
{
5
6
}
5
public List<XAppFile> AppFiles { get; set; }
6
}
@@ -0,0 +1,16 @@
1
using XFEExtension.NetCore.ImplExtension;
2
3
namespace XFEExtension.NetCore.XApp;
4
5
/// <summary>
6
/// XApp的代码文件
7
/// </summary>
8
/// <param name="code"></param>
9
[CreateImpl]
10
public abstract class XAppCode(string code): XAppFile
11
{
12
/// <summary>
13
/// 代码
14
/// </summary>
15
public string Code { get; set; } = code;
16
}
@@ -0,0 +1,12 @@
1
using XFEExtension.NetCore.ImplExtension;
2
3
namespace XFEExtension.NetCore.XApp;
4
5
[CreateImpl]
6
public abstract class XAppFile
7
{
8
public XAppFileType FileType { get; set; }
9
public string FileName { get; set; }
10
public string FilePath { get; set; }
11
public string FileContent { get; set; }
12
}
@@ -0,0 +1,28 @@
1
namespace XFEExtension.NetCore.XApp;
2
3
/// <summary>
4
/// XApp的文件类型
5
/// </summary>
6
public enum XAppFileType
7
{
8
/// <summary>
9
/// XApp的后端C#代码
10
/// </summary>
11
XCS,
12
/// <summary>
13
/// XApp的前端代码
14
/// </summary>
15
XXML,
16
/// <summary>
17
/// XApp的图标
18
/// </summary>
19
Icon,
20
/// <summary>
21
/// XApp的图片资源
22
/// </summary>
23
Image,
24
/// <summary>
25
/// XApp的资源文件
26
/// </summary>
27
Resource,
28
}
@@ -0,0 +1,6 @@
1
namespace XFEExtension.NetCore.XApp;
2
3
public abstract class XAppImage : XAppResource
4
{
5
public ImageType ImageType { get; set; }
6
}
@@ -0,0 +1,13 @@
1
namespace XFEExtension.NetCore.XApp;
2
3
public abstract class XAppResource : XAppFile
4
{
5
protected XAppResource(string? resourceBase64String, string? resourceType)
6
{
7
ResourceBase64String = resourceBase64String;
8
ResourceType = resourceType;
9
}
10
11
public string? ResourceBase64String { get; set; }
12
public string? ResourceType { get; set; }
13
}
@@ -4,6 +4,11 @@
4
4
<TargetFramework>net8.0</TargetFramework>
5
5
<ImplicitUsings>enable</ImplicitUsings>
6
6
<Nullable>enable</Nullable>
7
<GenerateDocumentationFile>True</GenerateDocumentationFile>
7
8
</PropertyGroup>
8
9
10
<ItemGroup>
11
<PackageReference Include="XFEExtension.NetCore" Version="2.9.0" />
12
</ItemGroup>
13
9
14
</Project>