Skip to content

Commit ccfc44d

Browse files
authored
update (#17)
1 parent dd6af08 commit ccfc44d

18 files changed

+50
-38
lines changed

abap.mjs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,17 @@ for (const dirent of fs.readdirSync("open-abap-core/src", {recursive: true, with
3232

3333
/////////////////////////////////////////
3434

35-
for (let i = 1; i < 10; i++) {
35+
for (let i = 1; i < 99; i++) {
36+
let prefixed = i + "";
37+
if (prefixed.length < 3) {
38+
prefixed = "0" + prefixed;
39+
}
40+
if (prefixed.length < 3) {
41+
prefixed = "0" + prefixed;
42+
}
43+
const filename = "abap2xlsx-demos/src/demo" + prefixed + "/zcl_excel_demo" + i + ".clas.abap";
3644
try {
37-
const contents = fs.readFileSync("abap2xlsx-demos/src/demo00" + i + "/zcl_excel_demo" + i + ".clas.abap", "utf-8").toString("utf-8");
45+
const contents = fs.readFileSync(filename, "utf-8").toString("utf-8");
3846
add("zcl_excel_demo" + i + ".clas.abap", contents);
3947
} catch {
4048
continue;

examples.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ await initializeABAP();
44

55
console.log("Running examples.mjs");
66

7-
for (let i = 1; i < 10; i++) {
7+
for (let i = 1; i < 99; i++) {
88
const className = "ZCL_EXCEL_DEMO" + i;
99
if (abap.Classes[className] === undefined) {
1010
continue;
1111
}
12+
if (className === "ZCL_EXCEL_DEMO24") {
13+
continue; // todo
14+
}
15+
console.log(className);
1216

1317
const excel = await abap.Classes[className].zif_excel_demo_output$run();
1418

package-lock.json

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"author": "",
1717
"license": "MIT",
1818
"devDependencies": {
19-
"@abaplint/monaco": "^2.113.8",
20-
"@abaplint/runtime": "^2.10.18",
21-
"@abaplint/transpiler": "^2.10.18",
22-
"@abaplint/transpiler-cli": "^2.10.18",
19+
"@abaplint/monaco": "^2.113.17",
20+
"@abaplint/runtime": "^2.10.20",
21+
"@abaplint/transpiler": "^2.10.20",
22+
"@abaplint/transpiler-cli": "^2.10.20",
2323
"assert": "^2.1.0",
2424
"browserify-zlib": "^0.2.0",
2525
"buffer": "^6.0.3",
@@ -28,7 +28,7 @@
2828
"css-loader": "^7.1.2",
2929
"file-loader": "^6.2.0",
3030
"html-webpack-plugin": "^5.6.0",
31-
"monaco-editor": "^0.51.0",
31+
"monaco-editor": "^0.52.0",
3232
"path-browserify": "^1.0.1",
3333
"process": "^0.11.10",
3434
"split-grid": "^1.0.11",
@@ -37,7 +37,7 @@
3737
"style-loader": "^4.0.0",
3838
"ts-loader": "^9.5.1",
3939
"typescript": "^5.6.2",
40-
"webpack": "^5.94.0",
40+
"webpack": "^5.95.0",
4141
"webpack-cli": "^5.1.4",
4242
"webpack-dev-server": "^5.1.0"
4343
}

public/zcl_excel_demo1.xlsx

0 Bytes
Binary file not shown.

public/zcl_excel_demo12.xlsx

6.01 KB
Binary file not shown.

public/zcl_excel_demo13.xlsx

6.02 KB
Binary file not shown.

public/zcl_excel_demo14.xlsx

5.94 KB
Binary file not shown.

public/zcl_excel_demo18.xlsx

5.54 KB
Binary file not shown.

public/zcl_excel_demo2.xlsx

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)