mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(editor): Apply Prettier (no-changelog) (#4920)
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
This commit is contained in:
@@ -13,11 +13,9 @@
|
||||
<div>
|
||||
<n8n-text>
|
||||
{{ $locale.baseText('settings.communityNodes.installModal.description') }}
|
||||
</n8n-text> <n8n-link
|
||||
:to="COMMUNITY_NODES_INSTALLATION_DOCS_URL"
|
||||
@click="onMoreInfoTopClick"
|
||||
>
|
||||
{{ $locale.baseText('_reusableDynamicText.moreInfo') }}
|
||||
</n8n-text>
|
||||
<n8n-link :to="COMMUNITY_NODES_INSTALLATION_DOCS_URL" @click="onMoreInfoTopClick">
|
||||
{{ $locale.baseText('_reusableDynamicText.moreInfo') }}
|
||||
</n8n-link>
|
||||
</div>
|
||||
<n8n-button
|
||||
@@ -31,16 +29,20 @@
|
||||
<n8n-input-label
|
||||
:class="$style.labelTooltip"
|
||||
:label="$locale.baseText('settings.communityNodes.installModal.packageName.label')"
|
||||
:tooltipText="$locale.baseText('settings.communityNodes.installModal.packageName.tooltip',
|
||||
{ interpolate: { npmURL: NPM_KEYWORD_SEARCH_URL } }
|
||||
)"
|
||||
:tooltipText="
|
||||
$locale.baseText('settings.communityNodes.installModal.packageName.tooltip', {
|
||||
interpolate: { npmURL: NPM_KEYWORD_SEARCH_URL },
|
||||
})
|
||||
"
|
||||
>
|
||||
<n8n-input
|
||||
name="packageNameInput"
|
||||
v-model="packageName"
|
||||
type="text"
|
||||
:maxlength="214"
|
||||
:placeholder="$locale.baseText('settings.communityNodes.installModal.packageName.placeholder')"
|
||||
:placeholder="
|
||||
$locale.baseText('settings.communityNodes.installModal.packageName.placeholder')
|
||||
"
|
||||
:required="true"
|
||||
:disabled="loading"
|
||||
@blur="onInputBlur"
|
||||
@@ -60,9 +62,11 @@
|
||||
@change="onCheckboxChecked"
|
||||
>
|
||||
<n8n-text>
|
||||
{{ $locale.baseText('settings.communityNodes.installModal.checkbox.label') }}
|
||||
</n8n-text><br />
|
||||
<n8n-link :to="COMMUNITY_NODES_RISKS_DOCS_URL" @click="onLearnMoreLinkClick">{{ $locale.baseText('_reusableDynamicText.moreInfo') }}</n8n-link>
|
||||
{{ $locale.baseText('settings.communityNodes.installModal.checkbox.label') }} </n8n-text
|
||||
><br />
|
||||
<n8n-link :to="COMMUNITY_NODES_RISKS_DOCS_URL" @click="onLearnMoreLinkClick">{{
|
||||
$locale.baseText('_reusableDynamicText.moreInfo')
|
||||
}}</n8n-link>
|
||||
</el-checkbox>
|
||||
</div>
|
||||
</template>
|
||||
@@ -70,9 +74,11 @@
|
||||
<n8n-button
|
||||
:loading="loading"
|
||||
:disabled="packageName === '' || loading"
|
||||
:label="loading ?
|
||||
$locale.baseText('settings.communityNodes.installModal.installButton.label.loading') :
|
||||
$locale.baseText('settings.communityNodes.installModal.installButton.label')"
|
||||
:label="
|
||||
loading
|
||||
? $locale.baseText('settings.communityNodes.installModal.installButton.label.loading')
|
||||
: $locale.baseText('settings.communityNodes.installModal.installButton.label')
|
||||
"
|
||||
size="large"
|
||||
float="right"
|
||||
@click="onInstallClick"
|
||||
@@ -95,9 +101,7 @@ import { showMessage } from '@/mixins/showMessage';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useCommunityNodesStore } from '@/stores/communityNodes';
|
||||
|
||||
export default mixins(
|
||||
showMessage,
|
||||
).extend({
|
||||
export default mixins(showMessage).extend({
|
||||
name: 'CommunityPackageInstallModal',
|
||||
components: {
|
||||
Modal,
|
||||
@@ -129,7 +133,10 @@ export default mixins(
|
||||
this.checkboxWarning = true;
|
||||
} else {
|
||||
try {
|
||||
this.$telemetry.track('user started cnr package install', { input_string: this.packageName, source: 'cnr settings page' });
|
||||
this.$telemetry.track('user started cnr package install', {
|
||||
input_string: this.packageName,
|
||||
source: 'cnr settings page',
|
||||
});
|
||||
this.infoTextErrorMessage = '';
|
||||
this.loading = true;
|
||||
await this.communityNodesStore.installPackage(this.packageName);
|
||||
@@ -141,8 +148,8 @@ export default mixins(
|
||||
title: this.$locale.baseText('settings.communityNodes.messages.install.success'),
|
||||
type: 'success',
|
||||
});
|
||||
} catch(error) {
|
||||
if(error.httpStatusCode && error.httpStatusCode === 400) {
|
||||
} catch (error) {
|
||||
if (error.httpStatusCode && error.httpStatusCode === 400) {
|
||||
this.infoTextErrorMessage = error.message;
|
||||
} else {
|
||||
this.$showError(
|
||||
@@ -168,7 +175,9 @@ export default mixins(
|
||||
this.$telemetry.track('user clicked cnr docs link', { source: 'install package modal top' });
|
||||
},
|
||||
onLearnMoreLinkClick() {
|
||||
this.$telemetry.track('user clicked cnr docs link', { source: 'install package modal bottom' });
|
||||
this.$telemetry.track('user clicked cnr docs link', {
|
||||
source: 'install package modal bottom',
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -193,7 +202,6 @@ export default mixins(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.formContainer {
|
||||
font-size: var(--font-size-2xs);
|
||||
font-weight: var(--font-weight-regular);
|
||||
|
||||
Reference in New Issue
Block a user