mirror of
https://github.com/frappe/books.git
synced 2024-12-31 22:11:48 +00:00
Merge pull request #956 from AbleKSaju/fix-hyphenation
fix: convert camelCase to kebab-case, resolve lint warnings
This commit is contained in:
commit
5fac87f1bc
@ -36,7 +36,7 @@ const ipc = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
isMaximized() {
|
isMaximized() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve) => {
|
||||||
ipcRenderer.send(IPC_MESSAGES.ISMAXIMIZED_MAIN_WINDOW);
|
ipcRenderer.send(IPC_MESSAGES.ISMAXIMIZED_MAIN_WINDOW);
|
||||||
ipcRenderer.once(
|
ipcRenderer.once(
|
||||||
IPC_MESSAGES.ISMAXIMIZED_RESULT,
|
IPC_MESSAGES.ISMAXIMIZED_RESULT,
|
||||||
@ -48,7 +48,7 @@ const ipc = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
isFullscreen() {
|
isFullscreen() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve) => {
|
||||||
ipcRenderer.send(IPC_MESSAGES.ISFULLSCREEN_MAIN_WINDOW);
|
ipcRenderer.send(IPC_MESSAGES.ISFULLSCREEN_MAIN_WINDOW);
|
||||||
ipcRenderer.once(
|
ipcRenderer.once(
|
||||||
IPC_MESSAGES.ISFULLSCREEN_RESULT,
|
IPC_MESSAGES.ISFULLSCREEN_RESULT,
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<Desk
|
<Desk
|
||||||
v-if="activeScreen === 'Desk'"
|
v-if="activeScreen === 'Desk'"
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
@change-db-file="showDbSelector"
|
@change-db-file="showDbSelector"
|
||||||
/>
|
/>
|
||||||
<DatabaseSelector
|
<DatabaseSelector
|
||||||
|
@ -38,8 +38,8 @@
|
|||||||
class="mt-4"
|
class="mt-4"
|
||||||
:aspect-ratio="4.15"
|
:aspect-ratio="4.15"
|
||||||
:colors="chartData.colors"
|
:colors="chartData.colors"
|
||||||
:gridColor="chartData.gridColor"
|
:grid-color="chartData.gridColor"
|
||||||
:fontColor="chartData.fontColor"
|
:font-color="chartData.fontColor"
|
||||||
:points="chartData.points"
|
:points="chartData.points"
|
||||||
:x-labels="chartData.xLabels"
|
:x-labels="chartData.xLabels"
|
||||||
:format="chartData.format"
|
:format="chartData.format"
|
||||||
@ -76,10 +76,10 @@ export default defineComponent({
|
|||||||
PeriodSelector,
|
PeriodSelector,
|
||||||
LineChart,
|
LineChart,
|
||||||
},
|
},
|
||||||
|
extends: DashboardChartBase,
|
||||||
props: {
|
props: {
|
||||||
darkMode: { type: Boolean, default: false },
|
darkMode: { type: Boolean, default: false },
|
||||||
},
|
},
|
||||||
extends: DashboardChartBase,
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
data: [] as { inflow: number; outflow: number; yearmonth: string }[],
|
data: [] as { inflow: number; outflow: number; yearmonth: string }[],
|
||||||
periodList: [],
|
periodList: [],
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<Cashflow
|
<Cashflow
|
||||||
class="p-4"
|
class="p-4"
|
||||||
:common-period="period"
|
:common-period="period"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
@period-change="handlePeriodChange"
|
@period-change="handlePeriodChange"
|
||||||
/>
|
/>
|
||||||
<hr class="dark:border-gray-800" />
|
<hr class="dark:border-gray-800" />
|
||||||
@ -39,14 +39,14 @@
|
|||||||
<UnpaidInvoices
|
<UnpaidInvoices
|
||||||
:schema-name="'SalesInvoice'"
|
:schema-name="'SalesInvoice'"
|
||||||
:common-period="period"
|
:common-period="period"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
class="border-e dark:border-gray-800"
|
class="border-e dark:border-gray-800"
|
||||||
@period-change="handlePeriodChange"
|
@period-change="handlePeriodChange"
|
||||||
/>
|
/>
|
||||||
<UnpaidInvoices
|
<UnpaidInvoices
|
||||||
:schema-name="'PurchaseInvoice'"
|
:schema-name="'PurchaseInvoice'"
|
||||||
:common-period="period"
|
:common-period="period"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
@period-change="handlePeriodChange"
|
@period-change="handlePeriodChange"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -55,13 +55,13 @@
|
|||||||
<ProfitAndLoss
|
<ProfitAndLoss
|
||||||
class="w-full p-4 border-e dark:border-gray-800"
|
class="w-full p-4 border-e dark:border-gray-800"
|
||||||
:common-period="period"
|
:common-period="period"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
@period-change="handlePeriodChange"
|
@period-change="handlePeriodChange"
|
||||||
/>
|
/>
|
||||||
<Expenses
|
<Expenses
|
||||||
class="w-full p-4"
|
class="w-full p-4"
|
||||||
:common-period="period"
|
:common-period="period"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
@period-change="handlePeriodChange"
|
@period-change="handlePeriodChange"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
:text-offset-x="6.5"
|
:text-offset-x="6.5"
|
||||||
:value-formatter="(value: number) => fyo.format(value, 'Currency')"
|
:value-formatter="(value: number) => fyo.format(value, 'Currency')"
|
||||||
:total-label="t`Total Spending`"
|
:total-label="t`Total Spending`"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
@change="(value: number) => (active = value)"
|
@change="(value: number) => (active = value)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -77,10 +77,10 @@ export default defineComponent({
|
|||||||
PeriodSelector,
|
PeriodSelector,
|
||||||
SectionHeader,
|
SectionHeader,
|
||||||
},
|
},
|
||||||
|
extends: DashboardChartBase,
|
||||||
props: {
|
props: {
|
||||||
darkMode: { type: Boolean, default: false },
|
darkMode: { type: Boolean, default: false },
|
||||||
},
|
},
|
||||||
extends: DashboardChartBase,
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
active: null as null | number,
|
active: null as null | number,
|
||||||
expenses: [] as {
|
expenses: [] as {
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
class="mt-4"
|
class="mt-4"
|
||||||
:aspect-ratio="2.05"
|
:aspect-ratio="2.05"
|
||||||
:colors="chartData.colors"
|
:colors="chartData.colors"
|
||||||
:gridColor="chartData.gridColor"
|
:grid-color="chartData.gridColor"
|
||||||
:fontColor="chartData.fontColor"
|
:font-color="chartData.fontColor"
|
||||||
:points="chartData.points"
|
:points="chartData.points"
|
||||||
:x-labels="chartData.xLabels"
|
:x-labels="chartData.xLabels"
|
||||||
:format="chartData.format"
|
:format="chartData.format"
|
||||||
@ -55,10 +55,10 @@ export default defineComponent({
|
|||||||
SectionHeader,
|
SectionHeader,
|
||||||
BarChart,
|
BarChart,
|
||||||
},
|
},
|
||||||
|
extends: DashboardChartBase,
|
||||||
props: {
|
props: {
|
||||||
darkMode: { type: Boolean, default: false },
|
darkMode: { type: Boolean, default: false },
|
||||||
},
|
},
|
||||||
extends: DashboardChartBase,
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
data: [] as { yearmonth: string; balance: number }[],
|
data: [] as { yearmonth: string; balance: number }[],
|
||||||
hasData: false,
|
hasData: false,
|
||||||
|
@ -15,7 +15,7 @@ import { toggleSidebar } from 'src/utils/ui';
|
|||||||
whitespace-nowrap
|
whitespace-nowrap
|
||||||
w-sidebar
|
w-sidebar
|
||||||
"
|
"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
@change-db-file="$emit('change-db-file')"
|
@change-db-file="$emit('change-db-file')"
|
||||||
/>
|
/>
|
||||||
</Transition>
|
</Transition>
|
||||||
@ -34,7 +34,7 @@ import { toggleSidebar } from 'src/utils/ui';
|
|||||||
<component
|
<component
|
||||||
:is="Component"
|
:is="Component"
|
||||||
:key="$route.path"
|
:key="$route.path"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
/>
|
/>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
@ -46,7 +46,7 @@ import { toggleSidebar } from 'src/utils/ui';
|
|||||||
<component
|
<component
|
||||||
:is="Component"
|
:is="Component"
|
||||||
:key="route.query.schemaName + route.query.name"
|
:key="route.query.schemaName + route.query.name"
|
||||||
:darkMode="darkMode"
|
:dark-mode="darkMode"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
|
Loading…
Reference in New Issue
Block a user