Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/mint73/suiran
Browse files Browse the repository at this point in the history
  • Loading branch information
mint73 committed Feb 1, 2024
2 parents be52f0a + 0e0508d commit 6f40b16
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 731 deletions.
695 changes: 21 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Accounting system for school festival / 翠巒祭会計システム
# Suiran Accounting System / 翠巒祭会計システム
[![Blazor wasm](https://github.com/mint73/suiran/actions/workflows/main.yml/badge.svg)](https://github.com/mint73/suiran/actions/workflows/main.yml)

## Summary / 概要
To use sales in Suiran festival. / 高崎高校主催の学園祭「翠巒祭」の販売関係で使用する会計システム
This is accounting system for the school festival (customer side). / 高崎高校主催の学園祭「翠巒祭」の販売関係で使用する会計システム

## Tech / 技術
- Framework / フレームワーク: Blazor wasm (.NET8)
- Syntax / 構文: Razor(HTML + C#)
- Design / デザイン: CSS
- Syntax / 構文: Razor(HTML + CSS + C#)

**How to move this application / 動作方法**
**How to develop this application / 動作方法**
1. Install dotnet command / dotnetコマンドをインストール<br />
(English: https://learn.microsoft.com/en-us/dotnet/core/install/ <br />
日本語: https://learn.microsoft.com/ja-jp/dotnet/core/install/)
Expand All @@ -24,4 +24,4 @@ $ dotnet watch run --pathbase=/suiran
```

4. Access on your brouser / ブラウザでアクセス<br />
ローカルホスト: http://localhost:5291/suiran
Local Host / ローカルホスト: http://localhost:5291/suiran
12 changes: 12 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Security Policy

## Supported Versions

| Version | Supported |
| ------- | ------------------ |
| latest | :white_check_mark: |
| old | :x: |

## Reporting a Vulnerability

please tell [me](https://github.com/mint73) on email or other way.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
46 changes: 23 additions & 23 deletions suiran/Pages/Sell.razor
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,28 @@
}
else
{
<div class="footer">
<a class="under-button" type="button" data-bs-toggle="modal" data-bs-target="#DelModal">削除</a>
<a class="under-button" type="button" data-bs-toggle="modal" data-bs-target="#Modal" @onclick="QR">QR</a>
</div>
<div class="footer">
<a class="under-button" type="button" data-bs-toggle="modal" data-bs-target="#DelModal">削除</a>
<a class="under-button" type="button" data-bs-toggle="modal" data-bs-target="#Modal" @onclick="QR">QR</a>
</div>

@foreach (var item in this.item_data)
{
<div class="item" @key="item.ItemName">
<div class="img"></div>

<div class="text">
<div>@item.ItemName</div>
<div>
<a class="button" @onclick="() => Declement(item)" oncontextmenu="return false;">-</a>
@item.ItemNum
<a class="button" @onclick="() => Plus(item)" oncontextmenu="return false;">+</a>
</div>
<div>1: @item.ItemPrice 円</div>
<div>計: @item.ItemPrices 円</div>
@foreach (var item in this.item_data)
{
<div class="item" @key="item.ItemName">
<div class="img"></div>

<div class="text">
<div class="text-top">@item.ItemName</div>
<div class="text-top">
<a class="button" @onclick="() => Declement(item)" oncontextmenu="return false;">-</a>
@item.ItemNum
<a class="button" @onclick="() => Plus(item)" oncontextmenu="return false;">+</a>
</div>
</div>
}
<div>1: @item.ItemPrice 円</div>
<div>計: @item.ItemPrices 円</div>
</div>
</div>
}
}

<div style="height: 20vh;"></div>
Expand Down Expand Up @@ -140,7 +140,7 @@ else

int AllPrices = 0;
string qrContent = "";
string QRCodeStr = string.Empty;
string QRCodeStr = string.Empty;
private void QR()
{
// 合計金額を求める処理
Expand Down Expand Up @@ -168,8 +168,8 @@ else
qrContent += item.ItemPrices.ToString() + "; ";
}
}
QRCodeStr = GenerateQRCode.GenerateQR(qrContent);
// qrContent = string.Empty;
QRCodeStr = GenerateQRCode.GenerateQR(qrContent);
// qrContent = string.Empty;
StateHasChanged();// UIの再描画
}

Expand Down
7 changes: 7 additions & 0 deletions suiran/Pages/Sell.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ main h1{padding: 0.6em 5%;}

display: flex;
justify-content: space-between;
align-items: center;
}

.img{
Expand All @@ -43,6 +44,12 @@ main h1{padding: 0.6em 5%;}
padding: 0;
}

@media (max-width: 720.98px) {
.text .text-top{
width: 100%;
}
}

.footer{
/*width: 100%;*/
height: 20vh;
Expand Down
2 changes: 1 addition & 1 deletion suiran/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
@using Microsoft.JSInterop
@using QRCoder
@using suiran
@using suiran.Shared
@using suiran.Layout
27 changes: 0 additions & 27 deletions suiran/wwwroot/sample-data/weather.json

This file was deleted.

0 comments on commit 6f40b16

Please sign in to comment.