Skip to content

Commit

Permalink
Add Excalidraw recipe (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorbnl committed Jul 25, 2023
1 parent 6d1d13a commit 4da9bd8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions recipes/excalidraw/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/excalidraw/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
10 changes: 10 additions & 0 deletions recipes/excalidraw/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "excalidraw",
"name": "Excalidraw",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://excalidraw.com/",
"hasCustomUrl": true
}
}
9 changes: 9 additions & 0 deletions recipes/excalidraw/webview.js
Original file line number Diff line number Diff line change
@@ -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'));
};

0 comments on commit 4da9bd8

Please sign in to comment.