mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
ci: Include THIRD_PARTY_LICENSES.md file with release (#18739)
This commit is contained in:
@@ -7,6 +7,7 @@ import { useToast } from '@/composables/useToast';
|
||||
import { useClipboard } from '@/composables/useClipboard';
|
||||
import { useDebugInfo } from '@/composables/useDebugInfo';
|
||||
import { useI18n } from '@n8n/i18n';
|
||||
import { getThirdPartyLicenses } from '@n8n/rest-api-client';
|
||||
|
||||
const modalBus = createEventBus();
|
||||
const toast = useToast();
|
||||
@@ -19,6 +20,23 @@ const closeDialog = () => {
|
||||
modalBus.emit('close');
|
||||
};
|
||||
|
||||
const downloadThirdPartyLicenses = async () => {
|
||||
try {
|
||||
const thirdPartyLicenses = await getThirdPartyLicenses(rootStore.restApiContext);
|
||||
|
||||
const blob = new File([thirdPartyLicenses], 'THIRD_PARTY_LICENSES.md', {
|
||||
type: 'text/markdown',
|
||||
});
|
||||
window.open(URL.createObjectURL(blob));
|
||||
} catch (error) {
|
||||
toast.showToast({
|
||||
title: i18n.baseText('about.thirdPartyLicenses.downloadError'),
|
||||
message: error.message,
|
||||
type: 'error',
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const copyDebugInfoToClipboard = async () => {
|
||||
toast.showToast({
|
||||
title: i18n.baseText('about.debug.toast.title'),
|
||||
@@ -66,6 +84,16 @@ const copyDebugInfoToClipboard = async () => {
|
||||
</n8n-link>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8" class="info-name">
|
||||
<n8n-text>{{ i18n.baseText('about.thirdPartyLicenses') }}</n8n-text>
|
||||
</el-col>
|
||||
<el-col :span="16">
|
||||
<n8n-link @click="downloadThirdPartyLicenses">
|
||||
{{ i18n.baseText('about.thirdPartyLicensesLink') }}
|
||||
</n8n-link>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8" class="info-name">
|
||||
<n8n-text>{{ i18n.baseText('about.instanceID') }}</n8n-text>
|
||||
|
||||
Reference in New Issue
Block a user