-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
1,938 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
packages/plugins/@nocobase-sample/plugin-bind-bot-relation/.npmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules | ||
/src |
1 change: 1 addition & 0 deletions
1
packages/plugins/@nocobase-sample/plugin-bind-bot-relation/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# @nocobase-sample/plugin-bind-bot-relation |
2 changes: 2 additions & 0 deletions
2
packages/plugins/@nocobase-sample/plugin-bind-bot-relation/client.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './dist/client'; | ||
export { default } from './dist/client'; |
1 change: 1 addition & 0 deletions
1
packages/plugins/@nocobase-sample/plugin-bind-bot-relation/client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./dist/client/index.js'); |
15 changes: 15 additions & 0 deletions
15
packages/plugins/@nocobase-sample/plugin-bind-bot-relation/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "@nocobase-sample/plugin-bind-bot-relation", | ||
"version": "1.3.1-alpha", | ||
"main": "dist/server/index.js", | ||
"displayName": "Bind the robot crowd/friend relationship", | ||
"displayName.zh-CN": "绑定机器人群/好友关系", | ||
"description": "Call the enterprise brain to search the robot crowd/friend relationship data, select and bind customers.", | ||
"description.zh-CN": "调用企业大脑搜索机器人群/好友关系数据,选择并绑定客户。124", | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"@nocobase/client": "1.x", | ||
"@nocobase/server": "1.x", | ||
"@nocobase/test": "1.x" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
packages/plugins/@nocobase-sample/plugin-bind-bot-relation/server.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './dist/server'; | ||
export { default } from './dist/server'; |
1 change: 1 addition & 0 deletions
1
packages/plugins/@nocobase-sample/plugin-bind-bot-relation/server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./dist/server/index.js'); |
249 changes: 249 additions & 0 deletions
249
packages/plugins/@nocobase-sample/plugin-bind-bot-relation/src/client/client.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,249 @@ | ||
/** | ||
* This file is part of the NocoBase (R) project. | ||
* Copyright (c) 2020-2024 NocoBase Co., Ltd. | ||
* Authors: NocoBase Team. | ||
* | ||
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. | ||
* For more information, please refer to: https://www.nocobase.com/agreement. | ||
*/ | ||
|
||
// CSS modules | ||
type CSSModuleClasses = { readonly [key: string]: string }; | ||
|
||
declare module '*.module.css' { | ||
const classes: CSSModuleClasses; | ||
export default classes; | ||
} | ||
declare module '*.module.scss' { | ||
const classes: CSSModuleClasses; | ||
export default classes; | ||
} | ||
declare module '*.module.sass' { | ||
const classes: CSSModuleClasses; | ||
export default classes; | ||
} | ||
declare module '*.module.less' { | ||
const classes: CSSModuleClasses; | ||
export default classes; | ||
} | ||
declare module '*.module.styl' { | ||
const classes: CSSModuleClasses; | ||
export default classes; | ||
} | ||
declare module '*.module.stylus' { | ||
const classes: CSSModuleClasses; | ||
export default classes; | ||
} | ||
declare module '*.module.pcss' { | ||
const classes: CSSModuleClasses; | ||
export default classes; | ||
} | ||
declare module '*.module.sss' { | ||
const classes: CSSModuleClasses; | ||
export default classes; | ||
} | ||
|
||
// CSS | ||
declare module '*.css' { } | ||
declare module '*.scss' { } | ||
declare module '*.sass' { } | ||
declare module '*.less' { } | ||
declare module '*.styl' { } | ||
declare module '*.stylus' { } | ||
declare module '*.pcss' { } | ||
declare module '*.sss' { } | ||
|
||
// Built-in asset types | ||
// see `src/node/constants.ts` | ||
|
||
// images | ||
declare module '*.apng' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.png' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.jpg' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.jpeg' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.jfif' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.pjpeg' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.pjp' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.gif' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.svg' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.ico' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.webp' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.avif' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
// media | ||
declare module '*.mp4' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.webm' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.ogg' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.mp3' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.wav' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.flac' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.aac' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.opus' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.mov' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.m4a' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.vtt' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
// fonts | ||
declare module '*.woff' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.woff2' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.eot' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.ttf' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.otf' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
// other | ||
declare module '*.webmanifest' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.pdf' { | ||
const src: string; | ||
export default src; | ||
} | ||
declare module '*.txt' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
// wasm?init | ||
declare module '*.wasm?init' { | ||
const initWasm: (options?: WebAssembly.Imports) => Promise<WebAssembly.Instance>; | ||
export default initWasm; | ||
} | ||
|
||
// web worker | ||
declare module '*?worker' { | ||
const workerConstructor: { | ||
new(options?: { name?: string }): Worker; | ||
}; | ||
export default workerConstructor; | ||
} | ||
|
||
declare module '*?worker&inline' { | ||
const workerConstructor: { | ||
new(options?: { name?: string }): Worker; | ||
}; | ||
export default workerConstructor; | ||
} | ||
|
||
declare module '*?worker&url' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*?sharedworker' { | ||
const sharedWorkerConstructor: { | ||
new(options?: { name?: string }): SharedWorker; | ||
}; | ||
export default sharedWorkerConstructor; | ||
} | ||
|
||
declare module '*?sharedworker&inline' { | ||
const sharedWorkerConstructor: { | ||
new(options?: { name?: string }): SharedWorker; | ||
}; | ||
export default sharedWorkerConstructor; | ||
} | ||
|
||
declare module '*?sharedworker&url' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*?raw' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*?url' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*?inline' { | ||
const src: string; | ||
export default src; | ||
} |
Oops, something went wrong.