Skip to content

Commit c0f9e81

Browse files
chore: format
1 parent 54a9f2a commit c0f9e81

23 files changed

Lines changed: 50 additions & 59 deletions

File tree

frappe/DataImport/MappingStep.vue

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,18 @@ const columnsFromSystem = computed(() => {
133133
const parent = props.data!.reference_doctype
134134
const docs = props.fields.data?.docs || []
135135
136-
return docs
137-
.flatMap((doc: any) => {
138-
const isParent = doc.name === parent
139-
140-
const columns = doc.fields
141-
.filter((f: any) => !fieldsToIgnore.includes(f.fieldtype))
142-
.map((f: any) => ({
143-
value: f.fieldname,
144-
label: isParent ? f.label : `${f.label} (${getChildTableName(parent, doc.name)})`,
145-
}))
146-
147-
return [{ value: 'name', label: 'ID' }, ...columns]
148-
})
136+
return docs.flatMap((doc: any) => {
137+
const isParent = doc.name === parent
138+
139+
const columns = doc.fields
140+
.filter((f: any) => !fieldsToIgnore.includes(f.fieldtype))
141+
.map((f: any) => ({
142+
value: f.fieldname,
143+
label: isParent ? f.label : `${f.label} (${getChildTableName(parent, doc.name)})`,
144+
}))
145+
146+
return [{ value: 'name', label: 'ID' }, ...columns]
147+
})
149148
})
150149
151150
const resetMapping = () => {

frappe/telemetry/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { reactive, readonly, ref, type App } from 'vue'
22

3-
import type { PulseProvider } from './pulse.ts';
3+
import type { PulseProvider } from './pulse.ts'
44
import { pulse_provider } from './pulse.ts'
55
import { silentCall } from './utils.ts'
66

src/components/Calendar/calendarUtils.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,13 @@ export function findOverlappingEventsCount(events) {
155155
}
156156

157157
// flattening halls and events
158-
return result
159-
.flatMap((hall, idx) =>
160-
hall.map((event, eventIdx) => ({
161-
...event,
162-
hallNumber: idx,
163-
idx: eventIdx,
164-
})),
165-
)
158+
return result.flatMap((hall, idx) =>
159+
hall.map((event, eventIdx) => ({
160+
...event,
161+
hallNumber: idx,
162+
idx: eventIdx,
163+
})),
164+
)
166165
}
167166

168167
// Helpers

src/components/Charts/ECharts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { EChartsOption} from 'echarts';
2+
import type { EChartsOption } from 'echarts'
33
import { init } from 'echarts'
44
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
55

src/components/Combobox/Combobox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
ComboboxTrigger,
1414
ComboboxViewport,
1515
} from 'reka-ui'
16-
import type { FunctionalComponent } from 'vue';
16+
import type { FunctionalComponent } from 'vue'
1717
import { computed, type Component, type VNode, ref, watch, h } from 'vue'
1818
import LucideCheck from '~icons/lucide/check'
1919
import LucideChevronDown from '~icons/lucide/chevron-down'

src/components/Popover/Popover.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
import { PopoverAnchor, PopoverContent, PopoverPortal, PopoverRoot } from 'reka-ui'
6464
import { computed, ref, onUnmounted, type StyleValue } from 'vue'
6565
66-
import type { PopoverProps} from './types';
66+
import type { PopoverProps } from './types'
6767
import { PopoverEmits } from './types'
6868
6969
const props = withDefaults(defineProps<PopoverProps>(), {

src/components/TextEditor/extensions/content-paste-extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Node } from '@tiptap/core';
1+
import type { Node } from '@tiptap/core'
22
import { Extension } from '@tiptap/core'
33
import { Slice, Fragment } from '@tiptap/pm/model'
44
import { DOMParser } from '@tiptap/pm/model'

src/components/TextEditor/extensions/emoji/emoji-extension.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { PluginKey } from '@tiptap/pm/state'
22

3-
import type {
4-
BaseSuggestionItem} from '../suggestion/createSuggestionExtension';
5-
import {
6-
createSuggestionExtension,
7-
} from '../suggestion/createSuggestionExtension'
3+
import type { BaseSuggestionItem } from '../suggestion/createSuggestionExtension'
4+
import { createSuggestionExtension } from '../suggestion/createSuggestionExtension'
85
import EmojiList from './EmojiList.vue'
96
import _EMOJIS from './emojis.json'
107

src/components/TextEditor/extensions/image-group/ImageGroupUploadDialog.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,11 @@ function addFiles(files: File[]) {
462462
const imageFiles = files.filter((file) => file.type.startsWith('image/'))
463463
const newImageItems = imageFiles.map(createImageItem)
464464
465-
const existingFileSignatures = new Set(images.value
466-
.filter((item) => item.type === 'file' && item.file)
467-
.map((item) => `${item.file!.name}-${item.file!.size}`))
465+
const existingFileSignatures = new Set(
466+
images.value
467+
.filter((item) => item.type === 'file' && item.file)
468+
.map((item) => `${item.file!.name}-${item.file!.size}`),
469+
)
468470
469471
const uniqueNewItems = newImageItems.filter(
470472
(item) => !existingFileSignatures.has(`${item.file!.name}-${item.file!.size}`),

src/components/TextEditor/extensions/image/image-extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Node as NodeExtension, nodeInputRule, mergeAttributes } from '@tiptap/core'
22
import type { Node } from '@tiptap/pm/model'
3-
import type { Transaction, EditorState } from '@tiptap/pm/state';
3+
import type { Transaction, EditorState } from '@tiptap/pm/state'
44
import { Plugin, Selection } from '@tiptap/pm/state'
55
import type { EditorView } from '@tiptap/pm/view'
66
import { VueNodeViewRenderer } from '@tiptap/vue-3'

0 commit comments

Comments
 (0)