Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dcc-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
D-PTB
DCC
Development
dcc-js
Commits
24d1a1aa
Verified
Commit
24d1a1aa
authored
5 years ago
by
Jan Loewe
Browse files
Options
Downloads
Patches
Plain Diff
refactor(condition): rename influenceCondition to condition for reusability
parent
b8c7d6a4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Types/Condition.ts
+2
-2
2 additions, 2 deletions
src/Types/Condition.ts
src/Types/InfluenceConditions.ts
+3
-3
3 additions, 3 deletions
src/Types/InfluenceConditions.ts
src/Types/index.ts
+1
-1
1 addition, 1 deletion
src/Types/index.ts
with
6 additions
and
6 deletions
src/Types/
Influence
Condition.ts
→
src/Types/Condition.ts
+
2
−
2
View file @
24d1a1aa
...
...
@@ -2,14 +2,14 @@ import { XMLElement } from "../XMLElement";
import
{
TextBlock
}
from
"
./TextBlock
"
;
import
{
Data
}
from
"
./Data
"
;
export
class
Influence
Condition
extends
XMLElement
{
export
class
Condition
extends
XMLElement
{
name
:
TextBlock
;
description
?:
TextBlock
;
state
?:
XMLElement
;
data
:
Data
;
constructor
(
options
:
Partial
<
Influence
Condition
>
=
{})
{
constructor
(
options
:
Partial
<
Condition
>
=
{})
{
super
(
options
);
this
.
name
=
new
TextBlock
(
options
.
name
);
...
...
This diff is collapsed.
Click to expand it.
src/Types/InfluenceConditions.ts
+
3
−
3
View file @
24d1a1aa
import
{
XMLElement
}
from
"
../XMLElement
"
;
import
{
ensureArray
}
from
"
../Util
"
;
import
{
Influence
Condition
}
from
"
./
Influence
Condition
"
;
import
{
Condition
}
from
"
./Condition
"
;
export
class
InfluenceConditions
extends
XMLElement
{
influenceCondition
:
Influence
Condition
[];
influenceCondition
:
Condition
[];
constructor
(
options
:
Partial
<
InfluenceConditions
>
=
{})
{
super
(
options
);
this
.
influenceCondition
=
ensureArray
(
options
.
influenceCondition
).
map
(
x
=>
new
Influence
Condition
(
x
));
this
.
influenceCondition
=
ensureArray
(
options
.
influenceCondition
).
map
(
x
=>
new
Condition
(
x
));
}
}
This diff is collapsed.
Click to expand it.
src/Types/index.ts
+
1
−
1
View file @
24d1a1aa
...
...
@@ -9,7 +9,7 @@ export * from "./ElementString";
export
*
from
"
./ElementStringWithLang
"
;
export
*
from
"
./Identification
"
;
export
*
from
"
./Identifications
"
;
export
*
from
"
./
Influence
Condition
"
;
export
*
from
"
./Condition
"
;
export
*
from
"
./InfluenceConditions
"
;
export
*
from
"
./Item
"
;
export
*
from
"
./Items
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment