add category edit ui

This commit is contained in:
MaysWind
2020-11-30 01:10:36 +08:00
parent 255c9bb65f
commit 4c53cd63cb
13 changed files with 962 additions and 7 deletions
+6 -4
View File
@@ -1,5 +1,5 @@
const defaultAccountColor = '000000';
const allAccountColors = [
const defaultColor = '000000';
const allAvailableColors = [
'000000', // black
'8e8e93', // gray
'ff3b30', // red
@@ -17,6 +17,8 @@ const allAccountColors = [
];
export default {
allAccountColors: allAccountColors,
defaultAccountColor: defaultAccountColor,
allAccountColors: allAvailableColors,
defaultAccountColor: defaultColor,
allCategoryColors: allAvailableColors,
defaultCategoryColor: defaultColor,
};
+12
View File
@@ -157,6 +157,15 @@ const allAccountIcons = {
icon: 'lab la-weixin'
}
};
const defaultCategoryIconId = '1';
const allCategoryIcons = {
// 1 - 99 : Expense - Food & Drink
'1': {
icon: 'las la-utensils'
}
};
const deviceIcons = {
mobile: {
f7Icon: 'device_phone_portrait'
@@ -179,5 +188,8 @@ export default {
allAccountIcons: allAccountIcons,
defaultAccountIconId: defaultAccountIconId,
defaultAccountIcon: allAccountIcons[defaultAccountIconId],
allCategoryIcons: allCategoryIcons,
defaultCategoryIconId: defaultCategoryIconId,
defaultCategoryIcon: allCategoryIcons[defaultCategoryIconId],
deviceIcons: deviceIcons,
};