Feature: Adding recipe templates to print recipes.

Feautre: Recipe export to xlsx
Chore: Python 11 style type annotations
Chore: Moved to sqlalchemy 2.0
Chore: Minimum python is 3.11
Fix: Fix nullability of a lot of fields in the database.
This commit is contained in:
tanshu committed 2023-07-23 08:12:21 +05:30
1 parent d2d26ab1ae
commit 22cac61761
344 files changed
+3247 -2370

No files matched your search

@@ -1,6 +1,6 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { NgModule, inject } from '@angular/core';
import { ActivatedRouteSnapshot, RouterModule, RouterStateSnapshot, Routes } from '@angular/router';
import { AuthGuard } from '../auth/auth-guard.service';
@@ -12,26 +12,32 @@ const paymentRoutes: Routes = [
{
path: '',
component: PaymentComponent,
canActivate: [AuthGuard],
canActivate: [
(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) =>
inject(AuthGuard).canActivate(route, state),
],
data: {
permission: 'journal',
},
resolve: {
paymentAccounts: PaymentAccountsResolver,
voucher: PaymentResolver,
paymentAccounts: () => inject(PaymentAccountsResolver).resolve(),
voucher: (route: ActivatedRouteSnapshot) => inject(PaymentResolver).resolve(route),
},
runGuardsAndResolvers: 'paramsChange',
},
{
path: ':id',
component: PaymentComponent,
canActivate: [AuthGuard],
canActivate: [
(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) =>
inject(AuthGuard).canActivate(route, state),
],
data: {
permission: 'journal',
},
resolve: {
paymentAccounts: PaymentAccountsResolver,
voucher: PaymentResolver,
paymentAccounts: () => inject(PaymentAccountsResolver).resolve(),
voucher: (route: ActivatedRouteSnapshot) => inject(PaymentResolver).resolve(route),
},
runGuardsAndResolvers: 'paramsChange',
},