init & fix notice

This commit is contained in:
2025-10-30 16:29:55 +08:00
parent 8139ca031c
commit a2aa889e19
8 changed files with 36 additions and 52 deletions

3
.gitignore vendored
View File

@@ -1,5 +1,8 @@
# 依赖包
node_modules/
# 目标文件夹
dist/
# IDE 配置文件夹
.vscode/

View File

@@ -1,13 +1,14 @@
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
export class GwezzOceanengineOAuth2Api implements ICredentialType {
name = 'gwezzOceanengineOAuth2Api';
extends = ['oAuth2Api'];
displayName = 'Gwezz Oceanengine OAuth2 API';
displayName = 'Gwezz Ocean Engine OAuth2 API';
icon = { light: 'file:../icons/gwezz.svg', dark: 'file:../icons/gwezz.dark.svg' } as Icon;
// Link to your community node's README
documentationUrl = 'https://github.com/org/-gwezz-oceanengine?tab=readme-ov-file#credentials';
properties: INodeProperties[] = [

1
icons/gwezz.dark.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

1
icons/gwezz.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -1,33 +1,26 @@
import { NodeConnectionType, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
import { userDescription } from './resources/user';
import { companyDescription } from './resources/company';
export class GwezzOceanengine implements INodeType {
description: INodeTypeDescription = {
displayName: 'Gwezz Oceanengine',
displayName: 'Gwezz Ocean Engine',
name: 'gwezzOceanengine',
icon: { light: 'file:gwezzOceanengine.svg', dark: 'file:gwezzOceanengine.dark.svg' },
icon: { light: 'file:../../icons/gwezz.svg', dark: 'file:../../icons/gwezz.dark.svg' },
group: ['transform'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Interact with the Gwezz Oceanengine API',
description: 'Interact with the Gwezz Ocean Engine API',
defaults: {
name: 'Gwezz Oceanengine',
name: 'Gwezz Ocean Engine',
},
usableAsTool: true,
inputs: [NodeConnectionType.Main],
outputs: [NodeConnectionType.Main],
inputs: ['main'],
outputs: ['main'],
credentials: [{ name: 'gwezzOceanengineOAuth2Api', required: true }],
requestDefaults: {
baseURL: 'https://api.oceanengine.com/open_api/v3.0',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
},
properties: [
{
displayName: 'Resource',
displayName: '资源',
name: 'resource',
type: 'options',
noDataExpression: true,

View File

@@ -1,13 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="aquamarine"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
<rect x="9" y="9" width="6" height="6"></rect>
<line x1="9" y1="1" x2="9" y2="4"></line>
<line x1="15" y1="1" x2="15" y2="4"></line>
<line x1="9" y1="20" x2="9" y2="23"></line>
<line x1="15" y1="20" x2="15" y2="23"></line>
<line x1="20" y1="9" x2="23" y2="9"></line>
<line x1="20" y1="14" x2="23" y2="14"></line>
<line x1="1" y1="9" x2="4" y2="9"></line>
<line x1="1" y1="14" x2="4" y2="14"></line>
</svg>

Before

Width:  |  Height:  |  Size: 698 B

View File

@@ -1,13 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="darkblue"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
<rect x="9" y="9" width="6" height="6"></rect>
<line x1="9" y1="1" x2="9" y2="4"></line>
<line x1="15" y1="1" x2="15" y2="4"></line>
<line x1="9" y1="20" x2="9" y2="23"></line>
<line x1="15" y1="20" x2="15" y2="23"></line>
<line x1="20" y1="9" x2="23" y2="9"></line>
<line x1="20" y1="14" x2="23" y2="14"></line>
<line x1="1" y1="9" x2="4" y2="9"></line>
<line x1="1" y1="14" x2="4" y2="14"></line>
</svg>

Before

Width:  |  Height:  |  Size: 696 B

View File

@@ -1,14 +1,19 @@
{
"name": "n8n-nodes-gwezz-oceanengine",
"version": "0.1.0",
"description": "",
"description": "n8n community node to integrate with Ocean Engine (ByteDance) APIs.",
"license": "MIT",
"homepage": "",
"keywords": ["n8n-community-node-package"],
"author": { "name": "sshelgwezz", "email": "sshelgwezz@foxmail.com" },
"keywords": [
"n8n-community-node-package"
],
"author": {
"name": "sshelgwezz",
"email": "sshelgwezz@foxmail.com"
},
"repository": {
"type": "git",
"url": "https://github.com/<...>/n8n-nodes-<...>.git"
"url": "https://gitea.gwezz.com/n8n-nodes/n8n-nodes-gwezz-oceanengine.git"
},
"scripts": {
"build": "n8n-node build",
@@ -19,14 +24,18 @@
"release": "n8n-node release",
"prepublishOnly": "n8n-node prerelease"
},
"files": ["dist"],
"files": [
"dist"
],
"n8n": {
"n8nNodesApiVersion": 1,
"strict": true,
"credentials": [
"dist/credentials/GwezzOceanengineOAuth2Api.credentials.js"
],
"nodes": ["dist/nodes/GwezzOceanengine/GwezzOceanengine.node.js"]
"nodes": [
"dist/nodes/GwezzOceanengine/GwezzOceanengine.node.js"
]
},
"devDependencies": {
"@n8n/node-cli": "*",
@@ -35,5 +44,7 @@
"release-it": "^19.0.4",
"typescript": "5.9.2"
},
"peerDependencies": { "n8n-workflow": "*" }
"peerDependencies": {
"n8n-workflow": "*"
}
}