Skip to content

Commit

Permalink
update (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp authored Sep 30, 2024
1 parent dd6af08 commit ccfc44d
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 38 deletions.
12 changes: 10 additions & 2 deletions abap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,17 @@ for (const dirent of fs.readdirSync("open-abap-core/src", {recursive: true, with

/////////////////////////////////////////

for (let i = 1; i < 10; i++) {
for (let i = 1; i < 99; i++) {
let prefixed = i + "";
if (prefixed.length < 3) {
prefixed = "0" + prefixed;
}
if (prefixed.length < 3) {
prefixed = "0" + prefixed;
}
const filename = "abap2xlsx-demos/src/demo" + prefixed + "/zcl_excel_demo" + i + ".clas.abap";
try {
const contents = fs.readFileSync("abap2xlsx-demos/src/demo00" + i + "/zcl_excel_demo" + i + ".clas.abap", "utf-8").toString("utf-8");
const contents = fs.readFileSync(filename, "utf-8").toString("utf-8");
add("zcl_excel_demo" + i + ".clas.abap", contents);
} catch {
continue;
Expand Down
6 changes: 5 additions & 1 deletion examples.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ await initializeABAP();

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

for (let i = 1; i < 10; i++) {
for (let i = 1; i < 99; i++) {
const className = "ZCL_EXCEL_DEMO" + i;
if (abap.Classes[className] === undefined) {
continue;
}
if (className === "ZCL_EXCEL_DEMO24") {
continue; // todo
}
console.log(className);

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

Expand Down
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@abaplint/monaco": "^2.113.8",
"@abaplint/runtime": "^2.10.18",
"@abaplint/transpiler": "^2.10.18",
"@abaplint/transpiler-cli": "^2.10.18",
"@abaplint/monaco": "^2.113.17",
"@abaplint/runtime": "^2.10.20",
"@abaplint/transpiler": "^2.10.20",
"@abaplint/transpiler-cli": "^2.10.20",
"assert": "^2.1.0",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
Expand All @@ -28,7 +28,7 @@
"css-loader": "^7.1.2",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.6.0",
"monaco-editor": "^0.51.0",
"monaco-editor": "^0.52.0",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"split-grid": "^1.0.11",
Expand All @@ -37,7 +37,7 @@
"style-loader": "^4.0.0",
"ts-loader": "^9.5.1",
"typescript": "^5.6.2",
"webpack": "^5.94.0",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0"
}
Expand Down
Binary file modified public/zcl_excel_demo1.xlsx
Binary file not shown.
Binary file added public/zcl_excel_demo12.xlsx
Binary file not shown.
Binary file added public/zcl_excel_demo13.xlsx
Binary file not shown.
Binary file added public/zcl_excel_demo14.xlsx
Binary file not shown.
Binary file added public/zcl_excel_demo18.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo2.xlsx
Binary file not shown.
Binary file added public/zcl_excel_demo21.xlsx
Binary file not shown.
Binary file added public/zcl_excel_demo23.xlsx
Binary file not shown.
Binary file added public/zcl_excel_demo30.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo4.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo5.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo6.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo7.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo8.xlsx
Binary file not shown.

0 comments on commit ccfc44d

Please sign in to comment.