Refactor FdsConfig init; update copy task and assets
- FdsConfig.Initialize now accepts IConfiguration for DI support; Program.cs updated to pass builder.Configuration. - Gulp "copy" task logs copied files for better feedback. - Bank statement file input now accepts all file types. - Updated glyphicon font binary assets.
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ public class Program
|
||||
FuchsOcmsIntranet.Initialize(builder.Configuration);
|
||||
|
||||
// Initialize FdsConfig so FdsMfr / FdsMfrClient can resolve connection strings
|
||||
fds.FdsConfig.Initialize();
|
||||
fds.FdsConfig.Initialize(builder.Configuration);
|
||||
|
||||
// FDS MFR singleton — ILogger<FdsMfr> and ILoggerFactory are supplied by the ASP.NET Core DI container
|
||||
builder.Services.AddSingleton<fds.IFdsMfr, fds.FdsMfr>();
|
||||
|
||||
+1
-1
@@ -147,7 +147,7 @@ gulp.task("copy", async () => {
|
||||
const jobs = [];
|
||||
for (const cpy of copyconfig) {
|
||||
jobs.push(
|
||||
pipeline(gulp.src(cpy.src, { allowEmpty: true }), gulp.dest(cpy.dest), preservetimeSafe())
|
||||
pipeline(gulp.src(cpy.src, { allowEmpty: true }), gulp.dest(cpy.dest), preservetimeSafe(), logSink("Copied: "))
|
||||
);
|
||||
}
|
||||
await Promise.all(jobs);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -36,8 +36,7 @@ let $bcol = {
|
||||
{ name: 'EndToEndReference', label: 'Referenz', type: 'string' }
|
||||
]),
|
||||
bsu: new fields_definition('Kontobericht', 'Kontoberichte', [
|
||||
// Accepts both MT940 (SWIFT text: .sta/.mt940/.txt) and CAMT (ISO 20022 XML: .xml/.camt).
|
||||
{ name: 'bsu', label: 'Export der Buchungen (MT940 oder CAMT)', type: 'file', required: true, prop: { multiple: true, accept: '.sta,.mt940,.txt,.xml,.camt,application/xml,text/xml,text/plain' } }
|
||||
{ name: 'bsu', label: 'Export der Buchungen', type: 'file', required: true, prop: { multiple: true } }
|
||||
])
|
||||
};
|
||||
let gi = (n, c) => $$.sc(`glyphicon glyphicon-${n}`).aC(c);
|
||||
|
||||
@@ -26,6 +26,11 @@ public static class FdsConfig
|
||||
.Build();
|
||||
}
|
||||
|
||||
public static void Initialize(IConfiguration configuration)
|
||||
{
|
||||
_config = configuration;
|
||||
}
|
||||
|
||||
// -- Connection strings ---------------------------------------------------
|
||||
internal static string SQLConnectionString() =>
|
||||
Current.GetConnectionString("fuchs_ConnectionString")
|
||||
|
||||
Reference in New Issue
Block a user