-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): add categories bootstrap when creating user
- Loading branch information
Showing
11 changed files
with
166 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
export const DEFAULT_INCOME_CATEGORIES = [ | ||
{ | ||
en: 'Salary', | ||
vi: 'Tiền lương', | ||
icon: 'BriefcaseBusiness', | ||
}, | ||
{ | ||
en: 'Gift', | ||
vi: 'Quà tặng', | ||
icon: 'Clover', | ||
}, | ||
{ | ||
en: 'Investment', | ||
vi: 'Đầu tư', | ||
icon: 'ChartLine', | ||
}, | ||
{ | ||
en: 'Interest', | ||
vi: 'Lãi suất', | ||
icon: 'BadgePercent', | ||
}, | ||
{ | ||
en: 'Other Income', | ||
vi: 'Thu nhập khác', | ||
icon: 'HandCoins', | ||
}, | ||
] | ||
|
||
export const DEFAULT_EXPENSE_CATEGORIES = [ | ||
{ | ||
en: 'Groceries', | ||
vi: 'Nhu yếu phẩm', | ||
icon: 'ShoppingBasket', | ||
}, | ||
{ | ||
en: 'Mortgage', | ||
vi: 'Tiền nhà', | ||
icon: 'House', | ||
}, | ||
{ | ||
en: 'Bills & Utilities', | ||
vi: 'Hóa đơn & Tiện ích', | ||
icon: 'HousePlug', | ||
}, | ||
{ | ||
en: 'Food & Beverage', | ||
vi: 'Thức ăn & Đồ uống', | ||
icon: 'UtensilsCrossed', | ||
}, | ||
{ | ||
en: 'Transportation', | ||
vi: 'Di chuyển', | ||
icon: 'CarFront', | ||
}, | ||
{ | ||
en: 'Shopping', | ||
vi: 'Mua sắm', | ||
icon: 'ShoppingBag', | ||
}, | ||
{ | ||
en: 'Health', | ||
vi: 'Sức khỏe', | ||
icon: 'HeartPulse', | ||
}, | ||
{ | ||
en: 'Entertainment', | ||
vi: 'Giải trí', | ||
icon: 'Drama', | ||
}, | ||
{ | ||
en: 'Education', | ||
vi: 'Giáo dục', | ||
icon: 'BookHeart', | ||
}, | ||
{ | ||
en: 'Investment', | ||
vi: 'Đầu tư', | ||
icon: 'ChartLine', | ||
}, | ||
{ | ||
en: 'Other Expense', | ||
vi: 'Chi phí khác', | ||
icon: 'Coins', | ||
}, | ||
] |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { zValidator } from '@hono/zod-validator' | ||
import { z } from 'zod' | ||
|
||
export const zDeviceLanguageHeader = zValidator( | ||
'header', | ||
z.object({ | ||
'x-device-language': z.string().optional(), | ||
}), | ||
) |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.