Skip to content

Commit

Permalink
fix: webdav file storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfaron committed Feb 9, 2024
1 parent 14dfc02 commit ee8d291
Show file tree
Hide file tree
Showing 77 changed files with 912 additions and 797 deletions.
20 changes: 16 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
"CONTENT_ROOT": "projects/aas-server/build",
"WEB_ROOT": "projects/aas-portal/dist",
"ASSETS": "projects/aas-server/src/assets",
"USER_STORAGE": "mongodb://localhost:27017/aasportal-users",
"FILE_STORAGE": "http://aasportal:aas-server@localhost:1234",
"AAS_INDEX": "mysql://aasportal:aas-server@localhost:3306",
"ENDPOINTS": "[\"file:///samples?name=Samples\"]",
"ENDPOINTS": "[\"file:///endpoints/samples?name=Samples\"]",
}
},
{
Expand Down Expand Up @@ -79,6 +76,21 @@
"aas-server"
],
},
{
"name": "Debug aas-server test",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"test:debug",
"-w",
"aas-server",
"--testPathPattern",
"${fileBasename}"
],
},
{
"name": "Test common",
"type": "node",
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"tsyringe",
"Ungroup",
"uuid",
"webdav",
"xmldoc",
"ZVEI"
],
Expand Down
5 changes: 4 additions & 1 deletion copyright-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ checkFilesAsync([
async function checkFilesAsync(dirs) {
const files = [];
for (const dir of dirs) {
await traverseFilesAsync(dir, [".ts", ".js", ".html", ".css"], files);
await traverseFilesAsync(dir, [".ts", ".js", ".html", ".css", ".scss"], files);
}

for (const file of files) {
Expand Down Expand Up @@ -110,6 +110,7 @@ async function checkFilesAsync(dirs) {
case ".ts":
case ".js":
case ".css":
case ".scss":
return hasValidJsCopyrightHeader(text);
case ".html":
return hasValidHtmlCopyrightHeader(text);
Expand Down Expand Up @@ -162,6 +163,7 @@ async function checkFilesAsync(dirs) {
case ".ts":
case ".js":
case ".css":
case ".scss":
return removeJsCopyrightHeader(text);
case ".html":
return removeHtmlCopyrightHeader(text);
Expand Down Expand Up @@ -254,6 +256,7 @@ async function checkFilesAsync(dirs) {
case ".ts":
case ".js":
case ".css":
case ".scss":
insertJsCopyrightHeader(text);
break;
case ".html":
Expand Down
2 changes: 1 addition & 1 deletion docs/source/gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ AASServer provides a user management. Authentication of a user is based on Json
| MAX_WORKERS | Number of background worker that scan AAS containers. | 8 |
| NODE_SERVER_PORT | The port number where AASServer is listening. | 80 |
| USER_STORAGE | URL of the user database. | './users' |
| FILE_STORAGE | URL of the template storage | |
| TEMPLATE_STORAGE | URL of the template storage | |
| TIMEOUT | Timeout until a new scan starts (ms). | 5000 |
| WEB_ROOT | The root directory for static file resources. | './wwwroot' |

Expand Down
Loading

0 comments on commit ee8d291

Please sign in to comment.