π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
chore(nc-gui): lint
Ramesh Mane6435fe867d7e
diff --git a/packages/nc-gui/components/nc/Button.vue b/packages/nc-gui/components/nc/Button.vueindex 67be9e1840..fd717d8d55 100644--- a/packages/nc-gui/components/nc/Button.vue+++ b/packages/nc-gui/components/nc/Button.vue@@ -57,17 +57,17 @@ const { isMobileMode } = useGlobal()const NcButton = ref<HTMLElement | null>(null)-const { size: _size, mobileSize, loaderSize, type, theme, bordered } = toRefs(props)+const { size, mobileSize, loaderSize, type, theme, bordered } = toRefs(props)const loading = useVModel(props, 'loading', emits)const isFocused = ref(false)const isClicked = ref(false)-const size = computed(() => {+const buttonSize = computed(() => {if (isMobileMode.value && mobileSize.value) return mobileSize.value- return _size.value+ return size.value})const onFocus = (e: FocusEvent) => {@@ -99,11 +99,11 @@ useEventListener(NcButton, 'mousedown', () => {<a-buttonref="NcButton":class="{- 'small': size === 'small',- 'medium': size === 'medium',- 'xsmall': size === 'xsmall',- 'xxsmall': size === 'xxsmall',- 'size-xs': size === 'xs',+ 'small': buttonSize === 'small',+ 'medium': buttonSize === 'medium',+ 'xsmall': buttonSize === 'xsmall',+ 'xxsmall': buttonSize === 'xxsmall',+ 'size-xs': buttonSize === 'xs','focused': isFocused && !props.hideFocus,'theme-default': theme === 'default','theme-ai': theme === 'ai',@@ -137,7 +137,7 @@ useEventListener(NcButton, 'mousedown', () => {<slot v-else name="icon" /></template><div- v-if="!(size === 'xxsmall' && loading) && !props.iconOnly"+ v-if="!(buttonSize === 'xxsmall' && loading) && !props.iconOnly":class="{'font-medium': type === 'primary' || type === 'danger','w-full': props.fullWidth,diff --git a/packages/nc-gui/composables/useLTARStore.ts b/packages/nc-gui/composables/useLTARStore.tsindex eb9f239a99..8d93c07124 100644--- a/packages/nc-gui/composables/useLTARStore.ts+++ b/packages/nc-gui/composables/useLTARStore.ts@@ -131,9 +131,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(})const sqlUi = computed(() =>- (meta.value as TableType)?.source_id- ? sqlUis.value[(meta.value as TableType).source_id!]- : Object.values(sqlUis.value)[0],+ (meta.value as TableType)?.source_id ? sqlUis.value[(meta.value as TableType).source_id!] : Object.values(sqlUis.value)[0],)const rowId = computed(() => extractPkFromRow(currentRow.value.row, meta.value.columns))