mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(nodes-base): fix and harmonize all primaryDocumentation links (#4191)
* fix(nodes-base): fix and harmonize all primaryDocumentation links * feat(workflow, cli): expose documentation links to UI via node codex * fix(editor-ui): link to correct node and credential documentation URLs * config(nodes-base): update 'format' script to also format node descriptor json * chore: fix outdated links to node reference documentation
This commit is contained in:
@@ -1618,9 +1618,17 @@ export interface IStatusCodeMessages {
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
export type DocumentationLink = {
|
||||
url: string;
|
||||
};
|
||||
|
||||
export type CodexData = {
|
||||
categories?: string[];
|
||||
subcategories?: { [category: string]: string[] };
|
||||
resources?: {
|
||||
credentialDocumentation?: DocumentationLink[];
|
||||
primaryDocumentation?: DocumentationLink[];
|
||||
};
|
||||
alias?: string[];
|
||||
};
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ describe('WorkflowDataProxy', () => {
|
||||
{
|
||||
parameters: {
|
||||
functionCode:
|
||||
'// Code here will run only once, no matter how many input items there are.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.function\nconst { DateTime, Duration, Interval } = require("luxon");\n\nconst data = [\n {\n "length": 105\n },\n {\n "length": 160\n },\n {\n "length": 121\n },\n {\n "length": 275\n },\n {\n "length": 950\n },\n];\n\nreturn data.map(fact => ({json: fact}));',
|
||||
'// Code here will run only once, no matter how many input items there are.\n// More info and help: https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.function/\nconst { DateTime, Duration, Interval } = require("luxon");\n\nconst data = [\n {\n "length": 105\n },\n {\n "length": 160\n },\n {\n "length": 121\n },\n {\n "length": 275\n },\n {\n "length": 950\n },\n];\n\nreturn data.map(fact => ({json: fact}));',
|
||||
},
|
||||
name: 'Function',
|
||||
type: 'test.set',
|
||||
|
||||
Reference in New Issue
Block a user