Skip to content

Commit ca8c4ca

Browse files
committed
Clean up
1 parent d2439a1 commit ca8c4ca

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

packages/backend/src/code.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const processNodePair = async (
164164
jsonNode: any,
165165
figmaNode: SceneNode,
166166
settings: PluginSettings,
167-
parentNode?: any
167+
parentNode?: any,
168168
) => {
169169
if (!jsonNode.id) return;
170170

@@ -375,7 +375,7 @@ const processNodePair = async (
375375
jsonNode.children[i],
376376
figmaNode.children[i],
377377
settings,
378-
jsonNode // Pass the current node as parent for its children
378+
jsonNode, // Pass the current node as parent for its children
379379
);
380380
}
381381

@@ -418,6 +418,9 @@ export const nodesToJSON = async (
418418
).document,
419419
),
420420
)) as SceneNode[];
421+
422+
console.log("[debug] initial nodeJson", { ...nodeJson[0] });
423+
421424
console.log(
422425
`[benchmark][inside nodesToJSON] JSON_REST_V1 export: ${Date.now() - exportJsonStart}ms`,
423426
);

packages/backend/src/swiftui/swiftuiMain.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ const createDirectionalStack = (
197197
const getLayoutAlignment = (
198198
inferredAutoLayout: InferredAutoLayoutResult,
199199
): string => {
200-
console.log("inferred is", inferredAutoLayout);
201200
switch (inferredAutoLayout.counterAxisAlignItems) {
202201
case "MIN":
203202
return inferredAutoLayout.layoutMode === "VERTICAL" ? ".leading" : ".top";

packages/backend/src/tailwind/tailwindDefaultBuilder.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export class TailwindDefaultBuilder {
9595
}
9696

9797
commonShapeStyles(): this {
98-
console.log("this.node is", this.node);
9998
this.customColor((this.node as MinimalFillsMixin).fills, "bg");
10099
this.radius();
101100
this.shadow();

packages/plugin-ui/src/components/CopyButton.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export function CopyButton({
2727
if (isCopied) {
2828
const timer = setTimeout(() => {
2929
setIsCopied(false);
30-
console.log("iscopied false");
3130
}, successDuration);
3231

3332
return () => clearTimeout(timer);
@@ -38,7 +37,6 @@ export function CopyButton({
3837
try {
3938
copy(value);
4039
setIsCopied(true);
41-
console.log("iscopied true");
4240
} catch (error) {
4341
console.error("Failed to copy text: ", error);
4442
}

0 commit comments

Comments
 (0)