Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit 0fefad1

Browse files
authored
[Front] 1.1.5 (#66)
* [Front] 1.1.5 * [Back] 1.1.5
1 parent 4c6e8c8 commit 0fefad1

File tree

31 files changed

+1116
-963
lines changed

31 files changed

+1116
-963
lines changed

.github/workflows/Build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
version: "latest"
3131
run_install: false
3232

33-
- name: Get pnpm store directory
33+
- name: Get pnpm store
3434
id: pnpm-cache
3535
run: |
3636
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
@@ -43,8 +43,11 @@ jobs:
4343
restore-keys: |
4444
${{ runner.os }}-pnpm-store-
4545
46-
- name: Install
47-
run: pnpm install
46+
- name: Build React
47+
run: pnpm install && pnpm build
48+
49+
- name: Move wwwroot
50+
run: mv dist TSystems.LoveOTC/wwwroot
4851

4952
- name: Build
5053
run: |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
namespace TSystems.LoveOTC.AdminHub;
22

33
public interface IAdminClient {
4+
45
}

TSystems.LoveOTC/Hub/User/Get.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal partial class ShopHub {
88
* <remarks>
99
* @author Aloento
1010
* @since 0.5.0
11-
* @version 0.1.0
11+
* @version 0.1.1
1212
* </remarks>
1313
*/
1414
[Authorize]
@@ -30,6 +30,7 @@ internal partial class ShopHub {
3030
x.EMail,
3131
x.Phone,
3232
x.Address,
33+
x.Admin,
3334
x.Version
3435
})
3536
.SingleOrDefaultAsync();

TSystems.LoveOTC/Migrations/20231223181315_Init.Designer.cs renamed to TSystems.LoveOTC/Migrations/20240107210741_Init.Designer.cs

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TSystems.LoveOTC/Migrations/20231223181315_Init.cs renamed to TSystems.LoveOTC/Migrations/20240107210741_Init.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
6666
ProductId = table.Column<long>(type: "bigint", nullable: false),
6767
Name = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
6868
CategoryId = table.Column<long>(type: "bigint", nullable: true),
69-
Description = table.Column<string>(type: "jsonb", nullable: true),
69+
Description = table.Column<string>(type: "json", maxLength: 65535, nullable: true),
7070
IsArchived = table.Column<bool>(type: "boolean", nullable: true),
7171
xmin = table.Column<uint>(type: "xid", rowVersion: true, nullable: false)
7272
},

TSystems.LoveOTC/Migrations/ShopContextModelSnapshot.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
254254
.HasColumnType("bigint");
255255

256256
b.Property<string>("Description")
257-
.HasColumnType("jsonb");
257+
.HasMaxLength(65535)
258+
.HasColumnType("json");
258259

259260
b.Property<bool?>("IsArchived")
260261
.HasColumnType("boolean");

TSystems.LoveOTC/Models/Product.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace TSystems.LoveOTC.Models;
1111
* <remarks>
1212
* @author Aloento
1313
* @since 0.1.0
14-
* @version 0.1.1
14+
* @version 0.1.0
1515
* </remarks>
1616
*/
1717
[Index(nameof(Name), IsUnique = true)]
@@ -27,7 +27,8 @@ public class Product : Concurrency, IArchive {
2727

2828
public virtual ICollection<Photo> Photos { get; init; }
2929

30-
[Column(TypeName = "jsonb")]
30+
[Column(TypeName = "json")]
31+
[StringLength(ushort.MaxValue)]
3132
public string? Description { get; set; }
3233

3334
public bool? IsArchived { get; set; }

TSystems.LoveOTC/TSystems.LoveOTC.csproj

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<NeutralLanguage>en-US</NeutralLanguage>
2222
<PackageProjectUrl>http://shop.eco.tsi-dev.otc-service.com</PackageProjectUrl>
2323

24-
<Version>1.1.0</Version>
24+
<Version>1.2.0</Version>
2525
</PropertyGroup>
2626

2727
<ItemGroup>
@@ -41,29 +41,13 @@
4141
</PackageReference>
4242
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="8.0.0" />
4343
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
44-
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.1" />
44+
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.2" />
4545
</ItemGroup>
4646

4747
<ItemGroup>
4848
<Content Update="wwwroot">
49-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
49+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
5050
</Content>
5151
</ItemGroup>
5252

53-
<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="'$(Configuration)'=='Release'">
54-
<Message Text="Start Build React" Importance="high" />
55-
<Exec Command="cd .. &amp; pnpm build" />
56-
57-
<ItemGroup>
58-
<DistFiles Include="../dist/**/*" />
59-
<WWWDir Include="wwwroot" />
60-
</ItemGroup>
61-
62-
<Message Text="Remove Current wwwroot" Importance="high" />
63-
<RemoveDir Directories="@(WWWDir)" />
64-
65-
<Message Text="Copy dist to wwwroot" Importance="high" />
66-
<Copy SourceFiles="@(DistFiles)" DestinationFiles="@(DistFiles->'wwwroot\%(RecursiveDir)%(Filename)%(Extension)')" />
67-
</Target>
68-
6953
</Project>

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"update": "npx npm-check-updates -u"
1616
},
1717
"dependencies": {
18-
"@fluentui/react-components": "^9.43.3",
18+
"@fluentui/react-components": "^9.44.0",
1919
"@fluentui/react-hooks": "^8.6.34",
2020
"@fluentui/react-icons": "^2.0.224",
2121
"@griffel/react": "^1.5.19",
@@ -50,10 +50,10 @@
5050
},
5151
"devDependencies": {
5252
"@types/lodash-es": "^4.17.12",
53-
"@types/react": "^18.2.45",
53+
"@types/react": "^18.2.47",
5454
"@types/react-dom": "^18.2.18",
5555
"@vitejs/plugin-react-swc": "^3.5.0",
5656
"typescript": "^5.3.3",
57-
"vite": "^5.0.10"
57+
"vite": "^5.0.11"
5858
}
5959
}

0 commit comments

Comments
 (0)