-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new design login,signup,dashboard,startup page is done * page design has done for 1st phase and need refactorization * unused import removed * routing almost done * Main container margin padding. cart border,color resolve almost * re arranged * form submitting going on * form submission ndone * # api created for budget, category, wallet. # in frontend cin budget and wallet page ids type has changed * # api created for budget, category, wallet. # in frontend cin budget and wallet page ids type has changed * Added notify stack, added title and amount range in all forms, income model frontend backend completed for get and post, * added joi validation * Joi validation pending task * Joi validation pending task * Joi validation pending task * budget date issue dix * budget date issue dix * budget date issue dix * auto comepele addted * auto comepele added * auto comepele added * auto comepele issue fix, base url set
- Loading branch information
Showing
21 changed files
with
467 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
api-server-nestjs/src/budget/validation-schema/create-budget.schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import * as joi from 'joi'; | ||
export const createBudgetSchema = joi.object({ | ||
budget_title: joi.string().required(), | ||
amount: joi.number().required(), | ||
budget_title: joi.string().max(30).required(), | ||
amount: joi.number().min(100).max(2000000).required(), | ||
wallet_id: joi.string().required(), | ||
category_ids: joi.array().items(joi.string()), | ||
month: joi.string().required(), | ||
month: joi.date().required(), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
import { IsOptional, IsString, IsNumber, IsDate } from "class-validator"; | ||
import { | ||
IsOptional, | ||
IsString, | ||
IsNumber, | ||
IsDate, | ||
IsArray, | ||
IsDateString, | ||
} from 'class-validator'; | ||
|
||
export class UpdateExpenseDto { | ||
@IsOptional() | ||
@IsString() | ||
expenseItem?: string; | ||
title?: string; | ||
|
||
@IsOptional() | ||
@IsNumber() | ||
expenseAmount?: number; | ||
balance?: number; | ||
|
||
@IsOptional() | ||
@IsString() | ||
expenseMonth?: string; | ||
wallet_id?: number; | ||
|
||
@IsOptional() | ||
@IsDate() | ||
expenseTime?: Date; | ||
|
||
@IsArray() | ||
category_ids: string[]; | ||
|
||
@IsOptional() | ||
@IsDateString() | ||
date: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
api-server-nestjs/src/expense/validation-schema/create-expense.schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
import { IsOptional, IsString, IsNumber, IsDate } from "class-validator"; | ||
import { | ||
IsOptional, | ||
IsString, | ||
IsNumber, | ||
IsDate, | ||
IsArray, | ||
IsDateString, | ||
} from 'class-validator'; | ||
|
||
export class UpdateIncomeDto { | ||
@IsOptional() | ||
@IsString() | ||
income_source?: string; | ||
title?: string; | ||
|
||
@IsOptional() | ||
@IsNumber() | ||
income_amount?: number; | ||
balance?: number; | ||
|
||
@IsOptional() | ||
@IsString() | ||
income_month?: string; | ||
wallet_id?: number; | ||
|
||
@IsOptional() | ||
@IsDate() | ||
income_time?: Date; | ||
|
||
@IsArray() | ||
category_ids: string[]; | ||
|
||
@IsOptional() | ||
@IsDateString() | ||
date: string; | ||
} |
4 changes: 2 additions & 2 deletions
4
api-server-nestjs/src/income/validation-schema/create-income.schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
api-server-nestjs/src/wallet/validation-schema/create-wallet.schema.ts
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
api-server-nestjs/src/wallet/validation-schema/create-wallet.validation.schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as joi from 'joi'; | ||
export const createWalletValidationSchema = joi.object({ | ||
wallet_title: joi.string().required(), | ||
|
||
type_id: joi.number().required(), | ||
|
||
balance: joi.number().min(100).max(2000000).required(), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.