mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 03:45:41 +00:00
chore(nc-gui): lint
This commit is contained in:
@@ -17,8 +17,6 @@ const { t } = useI18n()
|
||||
|
||||
const { $api, $e } = useNuxtApp()
|
||||
|
||||
const { copy } = useCopy()
|
||||
|
||||
const { dashboardUrl } = useDashboard()
|
||||
|
||||
const { clearBasesUser } = useBases()
|
||||
@@ -65,19 +63,6 @@ const inviteUrl = computed(() =>
|
||||
usersData.value.invitationToken ? `${dashboardUrl.value}#/signup/${usersData.value.invitationToken}` : null,
|
||||
)
|
||||
|
||||
const copyUrl = async () => {
|
||||
if (!inviteUrl.value) return
|
||||
try {
|
||||
await copy(inviteUrl.value)
|
||||
|
||||
// Copied shareable source url to clipboard!
|
||||
message.success(t('msg.toast.inviteUrlCopy'))
|
||||
} catch (e: any) {
|
||||
message.error(e.message)
|
||||
}
|
||||
$e('c:shared-base:copy-url')
|
||||
}
|
||||
|
||||
const clickInviteMore = () => {
|
||||
$e('c:user:invite-more')
|
||||
usersData.value.invitationToken = undefined
|
||||
@@ -144,7 +129,8 @@ const userRoleOptions = [
|
||||
:message="inviteUrl"
|
||||
message-class="!text-green-700 !text-bodyDefaultSm"
|
||||
background
|
||||
:copyText="inviteUrl"
|
||||
:copy-text="inviteUrl"
|
||||
:copy-text-toast-message="$t('msg.toast.inviteUrlCopy')"
|
||||
class="mt-2 !p-3"
|
||||
/>
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ onMounted(async () => {
|
||||
</div>
|
||||
|
||||
<div class="absolute -right-2 -top-0.5">
|
||||
<NcButton type="text" size="small" @click="emits('close')" icon-only>
|
||||
<NcButton type="text" size="small" icon-only @click="emits('close')">
|
||||
<template #icon>
|
||||
<GeneralIcon icon="close" />
|
||||
</template>
|
||||
|
||||
@@ -14,8 +14,6 @@ withDefaults(defineProps<Props>(), {
|
||||
isFullscreen: true,
|
||||
})
|
||||
|
||||
const { $e } = useNuxtApp()
|
||||
|
||||
const { eventBus, getExtensionAssetsUrl, duplicateExtension, showExtensionDetails, extensionAccess } = useExtensions()
|
||||
|
||||
const {
|
||||
@@ -28,7 +26,6 @@ const {
|
||||
disableToggleFullscreenBtn,
|
||||
toggleFullScreen,
|
||||
} = useExtensionHelperOrThrow()
|
||||
const EXTENSION_ID = extension.value.extensionId
|
||||
|
||||
const titleInput = ref<HTMLInputElement | null>(null)
|
||||
|
||||
|
||||
@@ -49,6 +49,11 @@ export interface NcAlertProps extends Pick<AlertProps, 'showIcon' | 'message' |
|
||||
*/
|
||||
copyText?: any
|
||||
|
||||
/**
|
||||
* Show toast msg after copying the text
|
||||
*/
|
||||
copyTextToastMessage?: string
|
||||
|
||||
/**
|
||||
* Tooltip text for the copy button.
|
||||
* @default 'tooltip.copyErrorCode' (from i18n)
|
||||
@@ -165,6 +170,10 @@ const onClickCopy = async () => {
|
||||
|
||||
isCopied.value = true
|
||||
|
||||
if (props.copyTextToastMessage) {
|
||||
message.toast(props.copyTextToastMessage)
|
||||
}
|
||||
|
||||
copiedTimeoutId = setTimeout(() => {
|
||||
isCopied.value = false
|
||||
clearTimeout(copiedTimeoutId)
|
||||
|
||||
@@ -1830,7 +1830,6 @@ const webhookV2AndV3Diff = computed(() => {
|
||||
vertical-align: 0px !important;
|
||||
}
|
||||
|
||||
|
||||
.tab {
|
||||
@apply flex flex-row items-center h-6 justify-center px-2 py-1 rounded-md gap-x-2 text-nc-content-gray-subtle2 hover:text-nc-content-gray-extreme cursor-pointer transition-all duration-300 select-none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user