|
|
|
@ -42,6 +42,31 @@ export class Server { |
|
|
|
appBaseUrl: this.giteaAppBaseUrl, |
|
|
|
apiBaseUrl: this.giteaApiBaseUrl, |
|
|
|
}) |
|
|
|
const promises = [] |
|
|
|
promises.push(server.frontend.loadRepo( |
|
|
|
'macchiato', |
|
|
|
'pages', |
|
|
|
{srcPath: [], destPath: []} |
|
|
|
)) |
|
|
|
const repos = [ |
|
|
|
'loader', |
|
|
|
'editor', |
|
|
|
'forms', |
|
|
|
'menu', |
|
|
|
'settings', |
|
|
|
'dialog', |
|
|
|
'storage', |
|
|
|
'pages', |
|
|
|
'editor-lib-codemirror', |
|
|
|
] |
|
|
|
for (const repo of repos) { |
|
|
|
promises.push(server.frontend.loadRepo( |
|
|
|
'macchiato', |
|
|
|
repo, |
|
|
|
{srcPath: [], destPath: [repo]} |
|
|
|
)) |
|
|
|
} |
|
|
|
await Promise.all(promises) |
|
|
|
} |
|
|
|
|
|
|
|
async serveRequest(event) { |
|
|
|
|