Skip to content

Commit

Permalink
[Front] 1.1.5 (#66)
Browse files Browse the repository at this point in the history
* [Front] 1.1.5

* [Back] 1.1.5
  • Loading branch information
Aloento authored Jan 7, 2024
1 parent 4c6e8c8 commit 0fefad1
Show file tree
Hide file tree
Showing 31 changed files with 1,116 additions and 963 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
version: "latest"
run_install: false

- name: Get pnpm store directory
- name: Get pnpm store
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
Expand All @@ -43,8 +43,11 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install
run: pnpm install
- name: Build React
run: pnpm install && pnpm build

- name: Move wwwroot
run: mv dist TSystems.LoveOTC/wwwroot

- name: Build
run: |
Expand Down
1 change: 1 addition & 0 deletions TSystems.LoveOTC/AdminHub/IAdminClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace TSystems.LoveOTC.AdminHub;

public interface IAdminClient {

}
3 changes: 2 additions & 1 deletion TSystems.LoveOTC/Hub/User/Get.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class ShopHub {
* <remarks>
* @author Aloento
* @since 0.5.0
* @version 0.1.0
* @version 0.1.1
* </remarks>
*/
[Authorize]
Expand All @@ -30,6 +30,7 @@ internal partial class ShopHub {
x.EMail,
x.Phone,
x.Address,
x.Admin,
x.Version
})
.SingleOrDefaultAsync();
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
ProductId = table.Column<long>(type: "bigint", nullable: false),
Name = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
CategoryId = table.Column<long>(type: "bigint", nullable: true),
Description = table.Column<string>(type: "jsonb", nullable: true),
Description = table.Column<string>(type: "json", maxLength: 65535, nullable: true),
IsArchived = table.Column<bool>(type: "boolean", nullable: true),
xmin = table.Column<uint>(type: "xid", rowVersion: true, nullable: false)
},
Expand Down
3 changes: 2 additions & 1 deletion TSystems.LoveOTC/Migrations/ShopContextModelSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasColumnType("bigint");
b.Property<string>("Description")
.HasColumnType("jsonb");
.HasMaxLength(65535)
.HasColumnType("json");
b.Property<bool?>("IsArchived")
.HasColumnType("boolean");
Expand Down
5 changes: 3 additions & 2 deletions TSystems.LoveOTC/Models/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TSystems.LoveOTC.Models;
* <remarks>
* @author Aloento
* @since 0.1.0
* @version 0.1.1
* @version 0.1.0
* </remarks>
*/
[Index(nameof(Name), IsUnique = true)]
Expand All @@ -27,7 +27,8 @@ public class Product : Concurrency, IArchive {

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

[Column(TypeName = "jsonb")]
[Column(TypeName = "json")]
[StringLength(ushort.MaxValue)]
public string? Description { get; set; }

public bool? IsArchived { get; set; }
Expand Down
22 changes: 3 additions & 19 deletions TSystems.LoveOTC/TSystems.LoveOTC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<NeutralLanguage>en-US</NeutralLanguage>
<PackageProjectUrl>http://shop.eco.tsi-dev.otc-service.com</PackageProjectUrl>

<Version>1.1.0</Version>
<Version>1.2.0</Version>
</PropertyGroup>

<ItemGroup>
Expand All @@ -41,29 +41,13 @@
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="8.0.0" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.1" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
<Content Update="wwwroot">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="'$(Configuration)'=='Release'">
<Message Text="Start Build React" Importance="high" />
<Exec Command="cd .. &amp; pnpm build" />

<ItemGroup>
<DistFiles Include="../dist/**/*" />
<WWWDir Include="wwwroot" />
</ItemGroup>

<Message Text="Remove Current wwwroot" Importance="high" />
<RemoveDir Directories="@(WWWDir)" />

<Message Text="Copy dist to wwwroot" Importance="high" />
<Copy SourceFiles="@(DistFiles)" DestinationFiles="@(DistFiles->'wwwroot\%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>

</Project>
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"update": "npx npm-check-updates -u"
},
"dependencies": {
"@fluentui/react-components": "^9.43.3",
"@fluentui/react-components": "^9.44.0",
"@fluentui/react-hooks": "^8.6.34",
"@fluentui/react-icons": "^2.0.224",
"@griffel/react": "^1.5.19",
Expand Down Expand Up @@ -50,10 +50,10 @@
},
"devDependencies": {
"@types/lodash-es": "^4.17.12",
"@types/react": "^18.2.45",
"@types/react": "^18.2.47",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react-swc": "^3.5.0",
"typescript": "^5.3.3",
"vite": "^5.0.10"
"vite": "^5.0.11"
}
}
Loading

0 comments on commit 0fefad1

Please sign in to comment.