Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
GabiGrin committed Dec 15, 2024
1 parent 1b73506 commit 29d1b1a
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 285 deletions.
4 changes: 0 additions & 4 deletions core/src/misc/custom-code-node-from-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ export function customCodeNodeFromCode(
})(arguments)
`;

// const wrappedCode = transpiledCode;

const result = new Function(wrappedCode)({});

console.log(wrappedCode);

if (isCodeNode(result.default) || isMacroNode(result.default)) {
if (result.default.icon) {
const macro = improvedMacroToOldMacro(result.default) as MacroNode<any>;
Expand Down
2 changes: 1 addition & 1 deletion playground/stdlib-bundle/inline-macros.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion stdlib/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const pairs = [
},
{ entry: "./src/ControlFlow/Switch.tsx", name: "Switch" },
{ entry: "./src/Lists/Collect/Collect.tsx", name: "Collect" },
{ entry: "./src/Misc/Comment/Comment.tsx", name: "Comment" },
{ entry: "./src/Comment/Comment.tsx", name: "Comment" },
];

module.exports = pairs.map(({ entry, name }) => ({
Expand Down
32 changes: 0 additions & 32 deletions vscode-extension/src/custom-nodes/customCodeNodeFromCode.ts

This file was deleted.

This file was deleted.

100 changes: 0 additions & 100 deletions vscode-extension/src/custom-nodes/transpileFile/importsTransformer.ts

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions vscode-extension/src/custom-nodes/transpileFile/transpileFile.ts

This file was deleted.

2 changes: 1 addition & 1 deletion vscode-extension/src/flydeEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { Uri } from "vscode";
import { forkRunFlow } from "@flyde/dev-server/dist/runner/runFlow.host";
import { createEditorClient } from "@flyde/remote-debugger";
import { maybeAskToStarProject } from "./maybeAskToStarProject";
import { customCodeNodeFromCode } from "./custom-nodes/customCodeNodeFromCode";
import { customCodeNodeFromCode } from "@flyde/core";

// export type EditorPortType = keyof any;

Expand Down

0 comments on commit 29d1b1a

Please sign in to comment.