revise ambiguous content
This commit is contained in:
+10
-6
@@ -171,11 +171,15 @@ export enum TransactionExploreDataDimensionType {
|
||||
None = 'none',
|
||||
Query = 'query',
|
||||
DateTime = 'dateTime',
|
||||
DateTimeByDay = 'dateTimeByDay',
|
||||
DateTimeByMonth = 'dateTimeByMonth',
|
||||
DateTimeByQuarter = 'dateTimeByQuarter',
|
||||
DateTimeByYearMonthDay = 'dateTimeByYearMonthDay',
|
||||
DateTimeByYearMonth = 'dateTimeByYearMonth',
|
||||
DateTimeByYearQuarter = 'dateTimeByYearQuarter',
|
||||
DateTimeByYear = 'dateTimeByYear',
|
||||
DateTimeByFiscalYear = 'dateTimeByFiscalYear',
|
||||
DateTimeByDayOfWeek = 'dateTimeByDayOfWeek',
|
||||
DateTimeByDayOfMonth = 'dateTimeByDayOfMonth',
|
||||
DateTimeByMonthOfYear = 'dateTimeByMonthOfYear',
|
||||
DateTimeByQuarterOfYear = 'dateTimeByQuarterOfYear',
|
||||
TransactionType = 'transactionType',
|
||||
SourceAccount = 'sourceAccount',
|
||||
SourceAccountCategory = 'sourceAccountCategory',
|
||||
@@ -196,9 +200,9 @@ export class TransactionExploreDataDimension implements NameValue {
|
||||
public static readonly None = new TransactionExploreDataDimension('None', TransactionExploreDataDimensionType.None);
|
||||
public static readonly Query = new TransactionExploreDataDimension('Query', TransactionExploreDataDimensionType.Query);
|
||||
public static readonly DateTime = new TransactionExploreDataDimension('Transaction Time', TransactionExploreDataDimensionType.DateTime);
|
||||
public static readonly DateTimeByDay = new TransactionExploreDataDimension('Transaction Date', TransactionExploreDataDimensionType.DateTimeByDay);
|
||||
public static readonly DateTimeByMonth = new TransactionExploreDataDimension('Transaction Month', TransactionExploreDataDimensionType.DateTimeByMonth);
|
||||
public static readonly DateTimeByQuarter = new TransactionExploreDataDimension('Transaction Quarter', TransactionExploreDataDimensionType.DateTimeByQuarter);
|
||||
public static readonly DateTimeByYearMonthDay = new TransactionExploreDataDimension('Transaction Date', TransactionExploreDataDimensionType.DateTimeByYearMonthDay);
|
||||
public static readonly DateTimeByYearMonth = new TransactionExploreDataDimension('Transaction Year-Month', TransactionExploreDataDimensionType.DateTimeByYearMonth);
|
||||
public static readonly DateTimeByYearQuarter = new TransactionExploreDataDimension('Transaction Year-Quarter', TransactionExploreDataDimensionType.DateTimeByYearQuarter);
|
||||
public static readonly DateTimeByYear = new TransactionExploreDataDimension('Transaction Year', TransactionExploreDataDimensionType.DateTimeByYear);
|
||||
public static readonly DateTimeByFiscalYear = new TransactionExploreDataDimension('Transaction Fiscal Year', TransactionExploreDataDimensionType.DateTimeByFiscalYear);
|
||||
public static readonly TransactionType = new TransactionExploreDataDimension('Transaction Type', TransactionExploreDataDimensionType.TransactionType);
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
+6
-2
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "Axis / Category",
|
||||
"Series": "Series",
|
||||
"Transaction Date": "Transaction Date",
|
||||
"Transaction Month": "Transaction Month",
|
||||
"Transaction Quarter": "Transaction Quarter",
|
||||
"Transaction Year-Month": "Transaction Year-Month",
|
||||
"Transaction Year-Quarter": "Transaction Year-Quarter",
|
||||
"Transaction Year": "Transaction Year",
|
||||
"Transaction Fiscal Year": "Transaction Fiscal Year",
|
||||
"Transaction Day of Week": "Transaction Day of Week",
|
||||
"Transaction Day of Month": "Transaction Day of Month",
|
||||
"Transaction Month of Year": "Transaction Month of Year",
|
||||
"Transaction Quarter of Year": "Transaction Quarter of Year",
|
||||
"Source Account Category": "Source Account Category",
|
||||
"Source Account Currency": "Source Account Currency",
|
||||
"Destination Account Category": "Destination Account Category",
|
||||
|
||||
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "轴 / 分类",
|
||||
"Series": "系列",
|
||||
"Transaction Date": "交易日期",
|
||||
"Transaction Month": "交易月份",
|
||||
"Transaction Quarter": "交易季度",
|
||||
"Transaction Year-Month": "交易年月",
|
||||
"Transaction Year-Quarter": "交易年季度",
|
||||
"Transaction Year": "交易年份",
|
||||
"Transaction Fiscal Year": "交易财年",
|
||||
"Transaction Day of Week": "交易周内日",
|
||||
"Transaction Day of Month": "交易月内日",
|
||||
"Transaction Month of Year": "交易月份",
|
||||
"Transaction Quarter of Year": "交易季度",
|
||||
"Source Account Category": "来源账户分类",
|
||||
"Source Account Currency": "来源账户货币",
|
||||
"Destination Account Category": "目标账户分类",
|
||||
|
||||
@@ -1717,10 +1717,14 @@
|
||||
"Axis / Category": "軸 / 類別",
|
||||
"Series": "系列",
|
||||
"Transaction Date": "交易日期",
|
||||
"Transaction Month": "交易月份",
|
||||
"Transaction Quarter": "交易季度",
|
||||
"Transaction Year-Month": "交易年月",
|
||||
"Transaction Year-Quarter": "交易年季度",
|
||||
"Transaction Year": "交易年份",
|
||||
"Transaction Fiscal Year": "交易財政年度",
|
||||
"Transaction Day of Week": "交易周内日",
|
||||
"Transaction Day of Month": "交易月內日",
|
||||
"Transaction Month of Year": "交易月份",
|
||||
"Transaction Quarter of Year": "交易季度",
|
||||
"Source Account Category": "來源帳戶分類",
|
||||
"Source Account Currency": "來源帳戶貨幣",
|
||||
"Destination Account Category": "目標帳戶分類",
|
||||
|
||||
@@ -156,7 +156,7 @@ export const useExploresStore = defineStore('explores', () => {
|
||||
categoryId: unixTime,
|
||||
categoryIdType: TransactionExploreDimensionType.Other
|
||||
};
|
||||
} else if (dimension === TransactionExploreDataDimension.DateTimeByDay) {
|
||||
} else if (dimension === TransactionExploreDataDimension.DateTimeByYearMonthDay) {
|
||||
const unixTime = getDayFirstUnixTimeBySpecifiedUnixTime(transaction.time).toString(10);
|
||||
|
||||
return {
|
||||
@@ -164,7 +164,7 @@ export const useExploresStore = defineStore('explores', () => {
|
||||
categoryId: unixTime,
|
||||
categoryIdType: TransactionExploreDimensionType.Other
|
||||
};
|
||||
} else if (dimension === TransactionExploreDataDimension.DateTimeByMonth) {
|
||||
} else if (dimension === TransactionExploreDataDimension.DateTimeByYearMonth) {
|
||||
const unixTime = getMonthFirstUnixTimeBySpecifiedUnixTime(transaction.time).toString(10);
|
||||
|
||||
return {
|
||||
@@ -172,7 +172,7 @@ export const useExploresStore = defineStore('explores', () => {
|
||||
categoryId: unixTime,
|
||||
categoryIdType: TransactionExploreDimensionType.Other
|
||||
};
|
||||
} else if (dimension === TransactionExploreDataDimension.DateTimeByQuarter) {
|
||||
} else if (dimension === TransactionExploreDataDimension.DateTimeByYearQuarter) {
|
||||
const unixTime = getQuarterFirstUnixTimeBySpecifiedUnixTime(transaction.time).toString(10);
|
||||
|
||||
return {
|
||||
|
||||
@@ -259,11 +259,11 @@ function getCategoriedDataDisplayName(info: CategoriedInfo | SeriesedInfo): stri
|
||||
// convert the name to formatted date time if needed
|
||||
if (dimessionType === TransactionExploreDataDimension.DateTime.value) {
|
||||
displayName = formatDateTimeToShortDateTime(parseDateTimeFromUnixTime(parseInt(name)));
|
||||
} else if (dimessionType === TransactionExploreDataDimension.DateTimeByDay.value) {
|
||||
} else if (dimessionType === TransactionExploreDataDimension.DateTimeByYearMonthDay.value) {
|
||||
displayName = formatDateTimeToShortDate(parseDateTimeFromUnixTime(parseInt(name)));
|
||||
} else if (dimessionType === TransactionExploreDataDimension.DateTimeByMonth.value) {
|
||||
} else if (dimessionType === TransactionExploreDataDimension.DateTimeByYearMonth.value) {
|
||||
displayName = formatDateTimeToGregorianLikeShortYearMonth(parseDateTimeFromUnixTime(parseInt(name)));
|
||||
} else if (dimessionType === TransactionExploreDataDimension.DateTimeByQuarter.value) {
|
||||
} else if (dimessionType === TransactionExploreDataDimension.DateTimeByYearQuarter.value) {
|
||||
displayName = formatDateTimeToGregorianLikeYearQuarter(parseDateTimeFromUnixTime(parseInt(name)));
|
||||
} else if (dimessionType === TransactionExploreDataDimension.DateTimeByYear.value) {
|
||||
displayName = formatDateTimeToGregorianLikeShortYear(parseDateTimeFromUnixTime(parseInt(name)));
|
||||
|
||||
Reference in New Issue
Block a user