Skip to content

Commit 7c4c318

Browse files
committed
wip
1 parent 9377ac5 commit 7c4c318

File tree

10 files changed

+1683
-327
lines changed

10 files changed

+1683
-327
lines changed

examples/node/nestjs-typescript/src/collections/collections.data.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ export function deleteCollection(id: number) {
5353
export function getRandomCollection(): Collection {
5454
const randomIndex = Math.floor(Math.random() * collections.length)
5555
return collections[randomIndex]
56-
}
56+
}
57+
58+
const def = [1]
59+
60+
export default def

examples/node/nestjs-typescript/src/collections/collections.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { Injectable } from '@nestjs/common';
2-
import { create, getAll, getByUserId, update, deleteCollection, getRandomCollection, CollectionPartial } from './collections.data';
2+
import def, { create, getAll, getByUserId, update, deleteCollection, getRandomCollection, CollectionPartial } from './collections.data';
3+
// import def from './collections.data';
34
import { Collection } from './collections.data';
45

6+
console.log(def)
57
@Injectable()
68
export class CollectionsService {
79
createCollection(data: CollectionPartial): Collection {

packages/app/src/service/dagree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function getNodeHeight(node: Node, isHorizontal: boolean) {
1414
if (node.type === "groupNode") {
1515
return 80;
1616
} else if (node.type === "endpointNode") {
17-
return 150;
17+
return 200;
1818
}
1919

2020
return 100;

packages/cli/src/helper/file.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export function removeIndexesFromSourceCode(
1919
// sort to start removing from the of the file end
2020
indexesToRemove.sort((a, b) => b.startIndex - a.startIndex);
2121

22+
// TODO improve this method by implementing merging of indexes to prevent accidental deletion of code
23+
2224
indexesToRemove.forEach(({ startIndex, endIndex }) => {
2325
newSourceCode =
2426
newSourceCode.slice(0, startIndex) + newSourceCode.slice(endIndex);

packages/cli/src/languagesPlugins/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import JavascriptPlugin from "./javascript";
2-
import PythonPlugin from "./python";
2+
// import PythonPlugin from "./python";
33
import { LanguagePlugin } from "./types";
4-
import TypescriptPlugin from "./typescript";
54

65
export function getLanguagePlugin(
76
entryPointPath: string,
@@ -11,11 +10,11 @@ export function getLanguagePlugin(
1110

1211
switch (ext) {
1312
case "js":
14-
return new JavascriptPlugin(entryPointPath);
13+
return new JavascriptPlugin(entryPointPath, false);
1514
case "ts":
16-
return new TypescriptPlugin(entryPointPath);
17-
case "py":
18-
return new PythonPlugin(entryPointPath);
15+
return new JavascriptPlugin(entryPointPath, true);
16+
// case "py":
17+
// return new PythonPlugin(entryPointPath);
1918
default:
2019
throw new Error(`Unsupported file type: ${ext}`);
2120
}

0 commit comments

Comments
 (0)