mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Completed import/export page
This commit is contained in:
parent
0723a3ab95
commit
de7eeec94a
@ -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 += `<tr><td>${category}</td>`;
|
||||
matrixHTML += `<tr><td>${categoryMap[category as keyof typeof categoryMap]}</td>`;
|
||||
|
||||
coalitions.forEach((coalition: string) => {
|
||||
if (index === 0)
|
||||
@ -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 {
|
||||
@ -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 {
|
||||
@ -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
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<div id="app-summary">
|
||||
<h2>DCS Olympus</h2>
|
||||
<h4>Dynamic Unit Command</h4>
|
||||
<div class="app-version">Version <span class="app-version-number">v0.4.5-alpha</span></div>
|
||||
<div class="app-version">Version <span class="app-version-number">v0.4.8-alpha</span></div>
|
||||
</div>
|
||||
|
||||
<form id="authentication-form">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user