Skip to content

Commit

Permalink
Implement file saving for multipart zip
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Marston <[email protected]>
  • Loading branch information
richardmarston committed Aug 2, 2022
1 parent a441731 commit 3720a5a
Show file tree
Hide file tree
Showing 498 changed files with 6,333 additions and 343 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*/node_modules
**/node_modules
node_modules
cimmenu/cgmes/cgmesIndex.js
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ COPY cimsvg /pintura/cimsvg
COPY index.html Makefile package-lock.json package.json /pintura/

WORKDIR /pintura
RUN rm -rf node_modules
RUN rm -rf cimsvg/node_modules
RUN rm -rf cimmenu/node_modules
RUN npm install -g [email protected]
RUN npm run build

Expand Down
3 changes: 0 additions & 3 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ COPY cimsvg /pintura/cimsvg
COPY index.html Makefile package-lock.json package.json /pintura/

WORKDIR /pintura
RUN rm -rf node_modules
RUN rm -rf cimsvg/node_modules
RUN rm -rf cimmenu/node_modules
RUN npm install -g [email protected]
RUN npm run build-dev

Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ dev: cimsvg cimmenu

docker: cimsvg cimmenu
docker build \
--no-cache \
--tag $(DOCKER_IMAGE) \
--iidfile $@ \
--build-arg GIT_COMMIT=git[${GIT_COMMIT}] \
Expand Down
23 changes: 23 additions & 0 deletions cimmenu/cgmes/src/ACDCConverter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import ConductingEquipment from "./ConductingEquipment.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class ACDCConverter extends ConductingEquipment {

Expand Down Expand Up @@ -369,6 +371,27 @@ class ACDCConverter extends ConductingEquipment {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, CGMESProfile.shortNames.SSH, CGMESProfile.shortNames.SV, ],
'baseS': [CGMESProfile.shortNames.EQ, ],
'idleLoss': [CGMESProfile.shortNames.EQ, ],
'maxUdc': [CGMESProfile.shortNames.EQ, ],
'minUdc': [CGMESProfile.shortNames.EQ, ],
'numberOfValves': [CGMESProfile.shortNames.EQ, ],
'ratedUdc': [CGMESProfile.shortNames.EQ, ],
'resistiveLoss': [CGMESProfile.shortNames.EQ, ],
'switchingLoss': [CGMESProfile.shortNames.EQ, ],
'valveU0': [CGMESProfile.shortNames.EQ, ],
'PccTerminal': [CGMESProfile.shortNames.EQ, ],
'p': [CGMESProfile.shortNames.SSH, ],
'q': [CGMESProfile.shortNames.SSH, ],
'targetPpcc': [CGMESProfile.shortNames.SSH, ],
'targetUdc': [CGMESProfile.shortNames.SSH, ],
'idc': [CGMESProfile.shortNames.SV, ],
'poleLossP': [CGMESProfile.shortNames.SV, ],
'uc': [CGMESProfile.shortNames.SV, ],
'udc': [CGMESProfile.shortNames.SV, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:ACDCConverter.baseS",
Expand Down
7 changes: 7 additions & 0 deletions cimmenu/cgmes/src/ACDCConverterDCTerminal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import DCBaseTerminal from "./DCBaseTerminal.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class ACDCConverterDCTerminal extends DCBaseTerminal {

Expand Down Expand Up @@ -49,6 +51,11 @@ class ACDCConverterDCTerminal extends DCBaseTerminal {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, CGMESProfile.shortNames.SSH, CGMESProfile.shortNames.TP, ],
'DCConductingEquipment': [CGMESProfile.shortNames.EQ, ],
'polarity': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:ACDCConverterDCTerminal.DCConductingEquipment",
Expand Down
9 changes: 9 additions & 0 deletions cimmenu/cgmes/src/ACDCTerminal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import IdentifiedObject from "./IdentifiedObject.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class ACDCTerminal extends IdentifiedObject {

Expand Down Expand Up @@ -89,6 +91,13 @@ class ACDCTerminal extends IdentifiedObject {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, CGMESProfile.shortNames.SSH, CGMESProfile.shortNames.SV, CGMESProfile.shortNames.DY, CGMESProfile.shortNames.TP, ],
'BusNameMarker': [CGMESProfile.shortNames.EQ, ],
'sequenceNumber': [CGMESProfile.shortNames.EQ, ],
'Measurements': [CGMESProfile.shortNames.EQ, ],
'connected': [CGMESProfile.shortNames.SSH, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:ACDCTerminal.BusNameMarker",
Expand Down
14 changes: 14 additions & 0 deletions cimmenu/cgmes/src/ACLineSegment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import Conductor from "./Conductor.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class ACLineSegment extends Conductor {

Expand Down Expand Up @@ -189,6 +191,18 @@ class ACLineSegment extends Conductor {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'bch': [CGMESProfile.shortNames.EQ, ],
'gch': [CGMESProfile.shortNames.EQ, ],
'r': [CGMESProfile.shortNames.EQ, ],
'x': [CGMESProfile.shortNames.EQ, ],
'b0ch': [CGMESProfile.shortNames.EQ, ],
'g0ch': [CGMESProfile.shortNames.EQ, ],
'r0': [CGMESProfile.shortNames.EQ, ],
'shortCircuitEndTemperature': [CGMESProfile.shortNames.EQ, ],
'x0': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:ACLineSegment.bch",
Expand Down
6 changes: 6 additions & 0 deletions cimmenu/cgmes/src/Accumulator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import Measurement from "./Measurement.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class Accumulator extends Measurement {

Expand Down Expand Up @@ -29,6 +31,10 @@ class Accumulator extends Measurement {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'AccumulatorValues': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:Accumulator.AccumulatorValues",
Expand Down
7 changes: 7 additions & 0 deletions cimmenu/cgmes/src/AccumulatorLimit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import Limit from "./Limit.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class AccumulatorLimit extends Limit {

Expand Down Expand Up @@ -49,6 +51,11 @@ class AccumulatorLimit extends Limit {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'value': [CGMESProfile.shortNames.EQ, ],
'LimitSet': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:AccumulatorLimit.value",
Expand Down
6 changes: 6 additions & 0 deletions cimmenu/cgmes/src/AccumulatorLimitSet.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import LimitSet from "./LimitSet.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class AccumulatorLimitSet extends LimitSet {

Expand Down Expand Up @@ -29,6 +31,10 @@ class AccumulatorLimitSet extends LimitSet {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'Measurements': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:AccumulatorLimitSet.Measurements",
Expand Down
6 changes: 6 additions & 0 deletions cimmenu/cgmes/src/AccumulatorReset.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import Control from "./Control.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class AccumulatorReset extends Control {

Expand Down Expand Up @@ -29,6 +31,10 @@ class AccumulatorReset extends Control {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'AccumulatorValue': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:AccumulatorReset.AccumulatorValue",
Expand Down
7 changes: 7 additions & 0 deletions cimmenu/cgmes/src/AccumulatorValue.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import MeasurementValue from "./MeasurementValue.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class AccumulatorValue extends MeasurementValue {

Expand Down Expand Up @@ -49,6 +51,11 @@ class AccumulatorValue extends MeasurementValue {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'Accumulator': [CGMESProfile.shortNames.EQ, ],
'value': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:AccumulatorValue.Accumulator",
Expand Down
8 changes: 8 additions & 0 deletions cimmenu/cgmes/src/ActivePower.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import BaseClass from "./BaseClass.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class ActivePower extends BaseClass {

Expand Down Expand Up @@ -69,6 +71,12 @@ class ActivePower extends BaseClass {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, CGMESProfile.shortNames.SSH, CGMESProfile.shortNames.SV, CGMESProfile.shortNames.DY, ],
'value': [CGMESProfile.shortNames.EQ, CGMESProfile.shortNames.SSH, CGMESProfile.shortNames.SV, CGMESProfile.shortNames.DY, ],
'unit': [CGMESProfile.shortNames.EQ, CGMESProfile.shortNames.SSH, CGMESProfile.shortNames.SV, CGMESProfile.shortNames.DY, ],
'multiplier': [CGMESProfile.shortNames.EQ, CGMESProfile.shortNames.SSH, CGMESProfile.shortNames.SV, CGMESProfile.shortNames.DY, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:ActivePower.value",
Expand Down
6 changes: 6 additions & 0 deletions cimmenu/cgmes/src/ActivePowerLimit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import OperationalLimit from "./OperationalLimit.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class ActivePowerLimit extends OperationalLimit {

Expand Down Expand Up @@ -29,6 +31,10 @@ class ActivePowerLimit extends OperationalLimit {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'value': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:ActivePowerLimit.value",
Expand Down
10 changes: 10 additions & 0 deletions cimmenu/cgmes/src/ActivePowerPerCurrentFlow.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import BaseClass from "./BaseClass.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class ActivePowerPerCurrentFlow extends BaseClass {

Expand Down Expand Up @@ -109,6 +111,14 @@ class ActivePowerPerCurrentFlow extends BaseClass {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'denominatorMultiplier': [CGMESProfile.shortNames.EQ, ],
'denominatorUnit': [CGMESProfile.shortNames.EQ, ],
'multiplier': [CGMESProfile.shortNames.EQ, ],
'unit': [CGMESProfile.shortNames.EQ, ],
'value': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:ActivePowerPerCurrentFlow.denominatorMultiplier",
Expand Down
10 changes: 10 additions & 0 deletions cimmenu/cgmes/src/ActivePowerPerFrequency.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import BaseClass from "./BaseClass.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class ActivePowerPerFrequency extends BaseClass {

Expand Down Expand Up @@ -109,6 +111,14 @@ class ActivePowerPerFrequency extends BaseClass {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'denominatorMultiplier': [CGMESProfile.shortNames.EQ, ],
'denominatorUnit': [CGMESProfile.shortNames.EQ, ],
'multiplier': [CGMESProfile.shortNames.EQ, ],
'unit': [CGMESProfile.shortNames.EQ, ],
'value': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:ActivePowerPerFrequency.denominatorMultiplier",
Expand Down
7 changes: 7 additions & 0 deletions cimmenu/cgmes/src/Analog.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import Measurement from "./Measurement.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class Analog extends Measurement {

Expand Down Expand Up @@ -49,6 +51,11 @@ class Analog extends Measurement {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'positiveFlowIn': [CGMESProfile.shortNames.EQ, ],
'LimitSets': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:Analog.positiveFlowIn",
Expand Down
8 changes: 8 additions & 0 deletions cimmenu/cgmes/src/AnalogControl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import Control from "./Control.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class AnalogControl extends Control {

Expand Down Expand Up @@ -69,6 +71,12 @@ class AnalogControl extends Control {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'maxValue': [CGMESProfile.shortNames.EQ, ],
'minValue': [CGMESProfile.shortNames.EQ, ],
'AnalogValue': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:AnalogControl.maxValue",
Expand Down
7 changes: 7 additions & 0 deletions cimmenu/cgmes/src/AnalogLimit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import templates from "../../templates/index.js"
import Limit from "./Limit.js"
import common from "../../src/common.js"
import CGMESProfile from "./CGMESProfile.js"


class AnalogLimit extends Limit {

Expand Down Expand Up @@ -49,6 +51,11 @@ class AnalogLimit extends Limit {
return attributeEntries;
}

static possibleProfileList = {'class': [CGMESProfile.shortNames.EQ, ],
'value': [CGMESProfile.shortNames.EQ, ],
'LimitSet': [CGMESProfile.shortNames.EQ, ],
}

static isMemberAttribute(attribute) {
let attributes = [
"cim:AnalogLimit.value",
Expand Down
Loading

0 comments on commit 3720a5a

Please sign in to comment.