Add parsing of AD1 files. Memorize window size and location.
This commit is contained in:
19
src/main/decoder/decoder.ts
Normal file
19
src/main/decoder/decoder.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import log from "electron-log/main";
|
||||
import path from "path";
|
||||
import DecodeAD1 from "./decode-ad1";
|
||||
|
||||
async function ImportJob(filepath: string): Promise<void> {
|
||||
const parsedFilePath = path.parse(filepath);
|
||||
const extensionlessFilePath = path.join(
|
||||
parsedFilePath.dir,
|
||||
parsedFilePath.name
|
||||
);
|
||||
log.debug("Importing Job", extensionlessFilePath);
|
||||
|
||||
const decodedJob = {};
|
||||
|
||||
const ad1: ParsedAD1 = await DecodeAD1(extensionlessFilePath);
|
||||
log.debug("AD1", ad1);
|
||||
}
|
||||
|
||||
export default ImportJob;
|
||||
Reference in New Issue
Block a user