From c89fd37ef71a867489bb5c2a835c03401ea61417 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 20 Jan 2025 19:06:49 +0100 Subject: [PATCH] add hugging-chat --- recipes/hugging-chat/icon.svg | 14 ++++++++++++++ recipes/hugging-chat/index.js | 1 + recipes/hugging-chat/package.json | 9 +++++++++ recipes/hugging-chat/webview.js | 9 +++++++++ 4 files changed, 33 insertions(+) create mode 100644 recipes/hugging-chat/icon.svg create mode 100644 recipes/hugging-chat/index.js create mode 100644 recipes/hugging-chat/package.json create mode 100644 recipes/hugging-chat/webview.js diff --git a/recipes/hugging-chat/icon.svg b/recipes/hugging-chat/icon.svg new file mode 100644 index 000000000..49765f646 --- /dev/null +++ b/recipes/hugging-chat/icon.svg @@ -0,0 +1,14 @@ + + + + + diff --git a/recipes/hugging-chat/index.js b/recipes/hugging-chat/index.js new file mode 100644 index 000000000..dd41f7287 --- /dev/null +++ b/recipes/hugging-chat/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/hugging-chat/package.json b/recipes/hugging-chat/package.json new file mode 100644 index 000000000..b1037e6b7 --- /dev/null +++ b/recipes/hugging-chat/package.json @@ -0,0 +1,9 @@ +{ + "id": "hugging-chat", + "name": "Hugging Chat", + "version": "1.0.1", + "license": "MIT", + "config": { + "serviceURL": "https://huggingface.co/chat/" + } +} diff --git a/recipes/hugging-chat/webview.js b/recipes/hugging-chat/webview.js new file mode 100644 index 000000000..11192196b --- /dev/null +++ b/recipes/hugging-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')); +};