diff --git a/client/src/unit/unitdatafile.ts b/client/src/unit/importexport/unitdatafile.ts similarity index 84% rename from client/src/unit/unitdatafile.ts rename to client/src/unit/importexport/unitdatafile.ts index 5f3aad52..2a0c1611 100644 --- a/client/src/unit/unitdatafile.ts +++ b/client/src/unit/importexport/unitdatafile.ts @@ -1,5 +1,12 @@ -import { Dialog } from "../dialog/dialog"; -import { createCheckboxOption } from "../other/utils"; +import { Dialog } from "../../dialog/dialog"; +import { createCheckboxOption } from "../../other/utils"; + +var categoryMap = { + "Aircraft": "Aircraft", + "Helicopter": "Helicopter", + "GroundUnit": "Ground units", + "NavyUnit": "Naval units" +} export abstract class UnitDataFile { @@ -17,7 +24,7 @@ export abstract class UnitDataFile { let matrixHTML: string = ``; categories.forEach((category: string, index) => { - matrixHTML += `${category}`; + matrixHTML += `${categoryMap[category as keyof typeof categoryMap]}`; coalitions.forEach((coalition: string) => { if (index === 0) diff --git a/client/src/unit/unitdatafileexport.ts b/client/src/unit/importexport/unitdatafileexport.ts similarity index 95% rename from client/src/unit/unitdatafileexport.ts rename to client/src/unit/importexport/unitdatafileexport.ts index 7f90b715..1bdb0d22 100644 --- a/client/src/unit/unitdatafileexport.ts +++ b/client/src/unit/importexport/unitdatafileexport.ts @@ -1,7 +1,7 @@ -import { getApp } from ".."; -import { Dialog } from "../dialog/dialog"; -import { zeroAppend } from "../other/utils"; -import { Unit } from "./unit"; +import { getApp } from "../.."; +import { Dialog } from "../../dialog/dialog"; +import { zeroAppend } from "../../other/utils"; +import { Unit } from "../unit"; import { UnitDataFile } from "./unitdatafile"; export class UnitDataFileExport extends UnitDataFile { diff --git a/client/src/unit/unitdatafileimport.ts b/client/src/unit/importexport/unitdatafileimport.ts similarity index 97% rename from client/src/unit/unitdatafileimport.ts rename to client/src/unit/importexport/unitdatafileimport.ts index 549a5a9e..deeea4a1 100644 --- a/client/src/unit/unitdatafileimport.ts +++ b/client/src/unit/importexport/unitdatafileimport.ts @@ -1,6 +1,6 @@ -import { getApp } from ".."; -import { Dialog } from "../dialog/dialog"; -import { UnitData } from "../interfaces"; +import { getApp } from "../.."; +import { Dialog } from "../../dialog/dialog"; +import { UnitData } from "../../interfaces"; import { UnitDataFile } from "./unitdatafile"; export class UnitDataFileImport extends UnitDataFile { diff --git a/client/src/unit/unitsmanager.ts b/client/src/unit/unitsmanager.ts index c046c500..4372bf16 100644 --- a/client/src/unit/unitsmanager.ts +++ b/client/src/unit/unitsmanager.ts @@ -16,8 +16,8 @@ import { HotgroupPanel } from "../panels/hotgrouppanel"; import { Contact, UnitData, UnitSpawnTable } from "../interfaces"; import { Dialog } from "../dialog/dialog"; import { Group } from "./group"; -import { UnitDataFileExport } from "./unitdatafileexport"; -import { UnitDataFileImport } from "./unitdatafileimport"; +import { UnitDataFileExport } from "./importexport/unitdatafileexport"; +import { UnitDataFileImport } from "./importexport/unitdatafileimport"; /** The UnitsManager handles the creation, update, and control of units. Data is strictly updated by the server ONLY. This means that any interaction from the user will always and only * result in a command to the server, executed by means of a REST PUT request. Any subsequent change in data will be reflected only when the new data is sent back by the server. This strategy allows diff --git a/client/views/other/dialogs/splash.ejs b/client/views/other/dialogs/splash.ejs index eea7e760..2a883842 100644 --- a/client/views/other/dialogs/splash.ejs +++ b/client/views/other/dialogs/splash.ejs @@ -3,7 +3,7 @@

DCS Olympus

Dynamic Unit Command

-
Version v0.4.5-alpha
+
Version v0.4.8-alpha