Moved to sqlalchemy 2.0
Added type checking as much as possible
Updated angular to 15
Moved from Angular flex layout to tailwind css

Started developing on vscode with devcontainers
This commit is contained in:
2023-02-20 18:49:17 +05:30
parent 792ccf923f
commit 5c7985e392
232 changed files with 2703 additions and 3018 deletions

View File

@ -1,7 +1,6 @@
<div fxLayout="row wrap" fxLayoutGap="grid 20px">
<div class="flex flex-row flex-wrap -mr-5 -mb-5">
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('customers')"
[routerLink]="['/', 'guest-book']"
@ -9,8 +8,7 @@
<h3 class="item-name">Guest Book</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('sales')"
[routerLink]="['/', 'sales']"
@ -18,8 +16,7 @@
<h3 class="item-name">Sales</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('customers')"
[routerLink]="['/', 'customers']"
@ -27,10 +24,9 @@
<h3 class="item-name">Customers</h3>
</mat-card>
</div>
<div fxLayout="row wrap" fxLayoutGap="grid 20px">
<div class="flex flex-row flex-wrap -mr-5 -mb-5">
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('cashier-report')"
[routerLink]="['/', 'cashier-report']"
@ -38,8 +34,7 @@
<h3 class="item-name">Cashier Report</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('sale-report')"
[routerLink]="['/', 'sale-report']"
@ -47,8 +42,7 @@
<h3 class="item-name">Sale Report</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('tax-report')"
[routerLink]="['/', 'tax-report']"
@ -56,8 +50,7 @@
<h3 class="item-name">Tax Report</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('product-sale-report')"
[routerLink]="['/', 'product-sale-report']"
@ -65,8 +58,7 @@
<h3 class="item-name">Product Sale Report</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('bill-settlement-report')"
[routerLink]="['/', 'bill-settlement-report']"
@ -74,8 +66,7 @@
<h3 class="item-name">Bill Settlement Report</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('beer-sale-report')"
[routerLink]="['/', 'beer-sale-report']"
@ -83,8 +74,7 @@
<h3 class="item-name">Beer Sale Report</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('discount-report')"
[routerLink]="['/', 'discount-report']"
@ -92,10 +82,9 @@
<h3 class="item-name">Discount Report</h3>
</mat-card>
</div>
<div fxLayout="row wrap" fxLayoutGap="grid 20px">
<div class="flex flex-row flex-wrap -mr-5 -mb-5">
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('products')"
[routerLink]="['/', 'products']"
@ -103,8 +92,7 @@
<h3 class="item-name">Products</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('temporal-products')"
[routerLink]="['/', 'temporal-products']"
@ -112,8 +100,7 @@
<h3 class="item-name">Temporal Products</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('products')"
[routerLink]="['/', 'update-product-prices']"
@ -121,8 +108,7 @@
<h3 class="item-name">Update Product Prices</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('products')"
[routerLink]="['/', 'product-updates-report']"
@ -130,8 +116,7 @@
<h3 class="item-name">Product Updates Report</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('modifiers')"
[routerLink]="['/', 'modifiers']"
@ -139,8 +124,7 @@
<h3 class="item-name">Modifiers</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('modifiers')"
[routerLink]="['/', 'modifier-categories']"
@ -148,10 +132,9 @@
<h3 class="item-name">Modifier Categories</h3>
</mat-card>
</div>
<div fxLayout="row wrap" fxLayoutGap="grid 20px">
<div class="flex flex-row flex-wrap -mr-5 -mb-5">
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('sections')"
[routerLink]="['/', 'tables']"
@ -159,8 +142,7 @@
<h3 class="item-name">Tables</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('sections')"
[routerLink]="['/', 'sections']"
@ -168,8 +150,7 @@
<h3 class="item-name">Sections</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('products')"
[routerLink]="['/', 'menu-categories']"
@ -177,8 +158,7 @@
<h3 class="item-name">Menu Categories</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('products')"
[routerLink]="['/', 'sale-categories']"
@ -186,8 +166,7 @@
<h3 class="item-name">Sale Categories</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('taxes')"
[routerLink]="['/', 'taxes']"
@ -195,8 +174,7 @@
<h3 class="item-name">Taxes</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('devices')"
[routerLink]="['/', 'devices']"
@ -204,8 +182,7 @@
<h3 class="item-name">Devices</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('section-printers')"
[routerLink]="['/', 'section-printers']"
@ -213,8 +190,7 @@
<h3 class="item-name">Section Printers</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('printers')"
[routerLink]="['/', 'printers']"
@ -222,10 +198,9 @@
<h3 class="item-name">Printers</h3>
</mat-card>
</div>
<div fxLayout="row wrap" fxLayoutGap="grid 20px">
<div class="flex flex-row flex-wrap -mr-5 -mb-5">
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('users')"
[routerLink]="['/', 'roles']"
@ -233,8 +208,7 @@
<h3 class="item-name">Roles</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('users')"
[routerLink]="['/', 'users']"
@ -242,8 +216,7 @@
<h3 class="item-name">Users</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('authenticated')"
[routerLink]="['/', 'users', 'me']"
@ -251,8 +224,7 @@
<h3 class="item-name">Change Password</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('owner')"
[routerLink]="['/', 'header-footer']"
@ -260,8 +232,7 @@
<h3 class="item-name">Header / Footer</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('owner')"
[routerLink]="['/', 'settle-options']"
@ -269,8 +240,7 @@
<h3 class="item-name">Settle Options</h3>
</mat-card>
<mat-card
fxLayout="column"
class="square-button"
class="flex flex-col square-button mr-5, mb-5"
matRipple
*ngIf="auth.allowed('settings')"
[routerLink]="['/', 'settings']"