From 7f21c9c0c53066639a0558a93cb5b6c62bb26aa6 Mon Sep 17 00:00:00 2001 From: Dmitry Rubtsov Date: Sat, 16 Nov 2024 19:53:19 +0600 Subject: [PATCH] add lobe-chat recipe --- recipes/lobe-chat/icon.svg | 54 ++++++++++++++++++++++++++++++++++ recipes/lobe-chat/index.js | 1 + recipes/lobe-chat/package.json | 11 +++++++ recipes/lobe-chat/webview.js | 9 ++++++ 4 files changed, 75 insertions(+) create mode 100644 recipes/lobe-chat/icon.svg create mode 100644 recipes/lobe-chat/index.js create mode 100644 recipes/lobe-chat/package.json create mode 100644 recipes/lobe-chat/webview.js diff --git a/recipes/lobe-chat/icon.svg b/recipes/lobe-chat/icon.svg new file mode 100644 index 000000000..f33e60fbe --- /dev/null +++ b/recipes/lobe-chat/icon.svg @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + diff --git a/recipes/lobe-chat/index.js b/recipes/lobe-chat/index.js new file mode 100644 index 000000000..dd41f7287 --- /dev/null +++ b/recipes/lobe-chat/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/lobe-chat/package.json b/recipes/lobe-chat/package.json new file mode 100644 index 000000000..216143c86 --- /dev/null +++ b/recipes/lobe-chat/package.json @@ -0,0 +1,11 @@ +{ + "id": "lobe-chat", + "name": "LobeChat", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://lobechat.com/chat", + "hasHostedOption": true, + "hasCustomUrl": true + } +} diff --git a/recipes/lobe-chat/webview.js b/recipes/lobe-chat/webview.js new file mode 100644 index 000000000..11192196b --- /dev/null +++ b/recipes/lobe-chat/webview.js @@ -0,0 +1,9 @@ +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +const _path = _interopRequireDefault(require('path')); + +module.exports = Ferdium => { + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); +};