Skip to content

Commit 67ba7df

Browse files
authored
update
1 parent 0d03377 commit 67ba7df

14 files changed

+583
-13
lines changed

.github/abaplint/abap_702.jsonc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"global": {
3+
"files": "/../../src/**/*.*"
4+
},
5+
"dependencies": [
6+
{
7+
"url": "https://github.com/open-abap/open-abap-core",
8+
"folder": "/deps",
9+
"files": "/src/**/*.*"
10+
}
11+
],
12+
"syntax": {
13+
"version": "v702",
14+
"errorNamespace": "."
15+
},
16+
"rules": {
17+
"downport": true,
18+
"begin_end_names": true,
19+
"check_ddic": true,
20+
"check_include": true,
21+
"check_syntax": true,
22+
"global_class": true,
23+
"implement_methods": true,
24+
"method_implemented_twice": true,
25+
"parser_error": true,
26+
"superclass_final": true,
27+
"unknown_types": true,
28+
"xml_consistency": true
29+
}
30+
}

.github/abaplint/abap_cloud.jsonc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"global": {
3+
"files": "/../../src/**/*.*"
4+
},
5+
"dependencies": [
6+
{
7+
"url": "https://github.com/abapedia/steampunk-2305-api-intersect-702",
8+
"folder": "/deps",
9+
"files": "/src/**/*.*"
10+
}
11+
],
12+
"syntax": {
13+
"version": "Cloud",
14+
"errorNamespace": "."
15+
},
16+
"rules": {
17+
"downport": true,
18+
"begin_end_names": true,
19+
"check_ddic": true,
20+
"check_include": true,
21+
"check_syntax": true,
22+
"global_class": true,
23+
"definitions_top": false,
24+
"implement_methods": true,
25+
"method_implemented_twice": true,
26+
"parser_error": true,
27+
"superclass_final": true,
28+
"unknown_types": true,
29+
"xml_consistency": true
30+
}
31+
}
32+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"global": {
3+
"files": "/../../src/**/*.*"
4+
},
5+
"dependencies": [
6+
{
7+
"url": "https://github.com/abapedia/steampunk-2305-api-intersect-702",
8+
"folder": "/deps",
9+
"files": "/src/**/*.*"
10+
}
11+
],
12+
"syntax": {
13+
"version": "v750",
14+
"errorNamespace": "."
15+
},
16+
"rules": {
17+
"begin_end_names": true,
18+
"cds_parser_error": true,
19+
"check_ddic": true,
20+
"strict_sql": true,
21+
"sql_escape_host_variables": true,
22+
"check_include": true,
23+
"check_syntax": true,
24+
"cloud_types": true,
25+
"global_class": true,
26+
"implement_methods": true,
27+
"method_implemented_twice": true,
28+
"parser_error": true,
29+
"superclass_final": true,
30+
"unknown_types": true,
31+
"xml_consistency": true
32+
}
33+
}
34+

.github/app2bsp/package-lock.json

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

.github/app2bsp/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "fiori-launchpad-connector-onpremise",
3+
"version": "1.0.0",
4+
"description": "Ein Projekt zum Kopieren von Dateien von source nach target21",
5+
"main": "run.js",
6+
"scripts": {
7+
"start": "node run.js"
8+
},
9+
"author": "Ihr Name",
10+
"license": "MIT",
11+
"dependencies": {}
12+
}

.github/app2bsp/run.js

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
const sourceDir = './frontend/app/webapp';
5+
const staticDir = './.github/app2bsp/static_files';
6+
const targetDir = './src/02';
7+
const prefix = 'z2ui5.wapa.';
8+
9+
function generateTargetFileName(sourcePath, baseDir) {
10+
const relativePath = path.relative(baseDir, sourcePath);
11+
const fileName = prefix + relativePath.replace(/\//g, '_-').replace(/\\/g, '_-').toLowerCase();
12+
return fileName;
13+
}
14+
15+
function copyFilesRecursively(source, target, baseDir, renameFiles = true) {
16+
fs.readdir(source, { withFileTypes: true }, (err, entries) => {
17+
if (err) {
18+
console.error('Fehler beim Lesen des Verzeichnisses:', err);
19+
return;
20+
}
21+
22+
entries.forEach(entry => {
23+
const sourcePath = path.join(source, entry.name);
24+
const targetFileName = renameFiles ? generateTargetFileName(sourcePath, baseDir) : entry.name;
25+
const targetPath = path.join(target, targetFileName);
26+
27+
if (entry.isDirectory()) {
28+
// Rekursiver Aufruf für Unterordner
29+
copyFilesRecursively(sourcePath, target, baseDir, renameFiles);
30+
} else if (entry.isFile()) {
31+
// Lese die Quelldatei
32+
fs.readFile(sourcePath, 'utf8', (err, data) => {
33+
if (err) {
34+
console.error(`Fehler beim Lesen der Quelldatei ${entry.name}:`, err);
35+
return;
36+
}
37+
38+
// Erstelle den Zielordner, falls er nicht existiert
39+
fs.mkdir(path.dirname(targetPath), { recursive: true }, (err) => {
40+
if (err) {
41+
console.error('Fehler beim Erstellen des Zielordners:', err);
42+
return;
43+
}
44+
45+
// Schreibe den Inhalt in die Zieldatei
46+
fs.writeFile(targetPath, data, 'utf8', (err) => {
47+
if (err) {
48+
console.error(`Fehler beim Schreiben der Zieldatei ${entry.name}:`, err);
49+
return;
50+
}
51+
console.log(`Datei ${entry.name} erfolgreich kopiert als ${targetFileName}.`);
52+
});
53+
});
54+
});
55+
}
56+
});
57+
});
58+
}
59+
60+
function deleteFilesRecursively(directory) {
61+
if (fs.existsSync(directory)) {
62+
fs.readdirSync(directory).forEach((file) => {
63+
const curPath = path.join(directory, file);
64+
if (fs.lstatSync(curPath).isDirectory()) {
65+
deleteFilesRecursively(curPath);
66+
} else {
67+
fs.unlinkSync(curPath);
68+
}
69+
});
70+
fs.rmdirSync(directory);
71+
}
72+
}
73+
74+
// Lösche alle Dateien im Zielverzeichnis
75+
deleteFilesRecursively(targetDir);
76+
77+
// Erstelle das Zielverzeichnis, falls es nicht existiert
78+
fs.mkdir(targetDir, { recursive: true }, (err) => {
79+
if (err) {
80+
console.error('Fehler beim Erstellen des Zielverzeichnisses:', err);
81+
return;
82+
}
83+
84+
// Starte den Kopiervorgang für den Quellordner
85+
copyFilesRecursively(sourceDir, targetDir, sourceDir);
86+
87+
// Starte den Kopiervorgang für den statischen Ordner ohne Umbenennung
88+
copyFilesRecursively(staticDir, targetDir, staticDir, false);
89+
});
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<abapGit version="v1.0.0" serializer="LCL_OBJECT_SMIM" serializer_version="v1.0.0">
3+
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
4+
<asx:values>
5+
<URL>/SAP/BC/BSP/SAP/Z2UI5</URL>
6+
<FOLDER>X</FOLDER>
7+
</asx:values>
8+
</asx:abap>
9+
</abapGit>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DEVC" serializer_version="v1.0.0">
3+
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
4+
<asx:values>
5+
<DEVC>
6+
<CTEXT>abap2UI5</CTEXT>
7+
</DEVC>
8+
</asx:values>
9+
</asx:abap>
10+
</abapGit>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<abapGit version="v1.0.0" serializer="LCL_OBJECT_SICF" serializer_version="v1.0.0">
3+
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
4+
<asx:values>
5+
<URL>/sap/bc/ui5_ui5/sap/z2ui5/</URL>
6+
<ICFSERVICE>
7+
<ICF_NAME>Z2UI5</ICF_NAME>
8+
<ORIG_NAME>z2ui5</ORIG_NAME>
9+
</ICFSERVICE>
10+
<ICFDOCU>
11+
<ICF_NAME>Z2UI5</ICF_NAME>
12+
<ICF_LANGU>E</ICF_LANGU>
13+
<ICF_DOCU>test</ICF_DOCU>
14+
</ICFDOCU>
15+
</asx:values>
16+
</asx:abap>
17+
</abapGit>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<abapGit version="v1.0.0" serializer="LCL_OBJECT_SICF" serializer_version="v1.0.0">
3+
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
4+
<asx:values>
5+
<URL>/sap/bc/bsp/sap/z2ui5/</URL>
6+
<ICFSERVICE>
7+
<ICF_NAME>Z2UI5</ICF_NAME>
8+
<ORIG_NAME>z2ui5</ORIG_NAME>
9+
</ICFSERVICE>
10+
<ICFDOCU>
11+
<ICF_NAME>Z2UI5</ICF_NAME>
12+
<ICF_LANGU>E</ICF_LANGU>
13+
<ICF_DOCU>test</ICF_DOCU>
14+
</ICFDOCU>
15+
</asx:values>
16+
</asx:abap>
17+
</abapGit>

0 commit comments

Comments
 (0)