-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
133 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,3 @@ img { | |
background-size: 16px 16px; | ||
background-color: #aaaaaa; | ||
} | ||
|
||
#actions { | ||
display: flex; | ||
column-gap: 1rem; | ||
} |
17 changes: 5 additions & 12 deletions
17
frontend/src/app/components/editor/eac/palette.block-ui/palette.block-ui.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
<h1>{{ (resourceData?.block_class_mro || '').split('__')[0] }}</h1> | ||
<div *ngIf="resourceData" class="number-matrix"> | ||
Unknowns: | ||
<ng-container *ngFor="let number of [].constructor(resourceData.value.unknowns.value.length); let i = index"> | ||
<input matInput type="number" | ||
(change)="changed.emit()" | ||
[(ngModel)]="resourceData.value.unknowns.value[i]"> | ||
</ng-container> | ||
</div> | ||
<app-compound-block-ui [resource]="resource" | ||
[fieldBlacklist]="['colors']"></app-compound-block-ui> | ||
<div id="colors-container"> | ||
<div *ngFor="let color of resourceData?.value.colors.value; let i = index" class="color-box" | ||
[ngStyle]="{'background-color': '#' + lpad(color.value.toString(16), '0', 8) }" | ||
[matTooltip]="i + ': #' + color.value.toString(16)"></div> | ||
<div *ngFor="let color of resourceData?.colors; let i = index" class="color-box" | ||
[ngStyle]="{'background-color': '#' + lpad(color.toString(16), '0', 8) }" | ||
[matTooltip]="i + ': #' + color.toString(16)"></div> | ||
</div> |
5 changes: 0 additions & 5 deletions
5
frontend/src/app/components/editor/eac/palette.block-ui/palette.block-ui.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
.number-matrix { | ||
display: flex; | ||
margin: 0 0 16px; | ||
} | ||
|
||
#colors-container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
frontend/src/app/components/editor/eac/shpi.block-ui/shpi.block-ui.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
<div id="top-bar"> | ||
<h1>SHPI archive</h1> | ||
<app-editor class="plain-editor" | ||
[resource]="resourceData?.value?.shpi_directory" | ||
[name]="'shpi_directory'"></app-editor> | ||
</div> | ||
<app-sidenav-res-list [resources]="resourcesMap"></app-sidenav-res-list> | ||
<app-compound-block-ui [resource]="resource" | ||
[fieldBlacklist]="['children', 'children_descriptions']"></app-compound-block-ui> | ||
<app-sidenav-res-list [resources]="resourceMap"></app-sidenav-res-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,4 @@ | |
margin: 0 0 16px; | ||
} | ||
} | ||
|
||
app-sidenav-res-list { | ||
height: calc(100% - 4rem); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
frontend/src/app/components/editor/eac/wwww.block-ui/wwww.block-ui.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
<div id="top-bar"> | ||
<h1>Wwww archive</h1> | ||
</div> | ||
<app-sidenav-res-list [resources]="resourcesMap"></app-sidenav-res-list> | ||
<app-sidenav-res-list [resources]="resourceMap"></app-sidenav-res-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,4 @@ | |
align-items: center; | ||
column-gap: 2rem; | ||
} | ||
|
||
app-sidenav-res-list { | ||
height: calc(100% - 4rem); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 9 additions & 6 deletions
15
...tend/src/app/components/editor/library/delegate.block-ui/delegate.block-ui.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
<ng-container *ngIf="resourceData"> | ||
<h2 [matTooltip]="resourceDescription" matTooltipPosition="above">{{ resource?.name }}</h2> | ||
<mat-select [value]="resourceData.choice_index" (selectionChange)="setChoiceIndex($event.value)"> | ||
<mat-option *ngFor="let schema of resource!.schema.possible_resource_schemas; let i = index" [value]="i"> | ||
{{ schema.block_class_mro.split('__')[0] }} | ||
</mat-option> | ||
</mat-select> | ||
<h2 *ngIf="resource?.name" [matTooltip]="resourceDescription" matTooltipPosition="above">{{ resource?.name }}</h2> | ||
<div id="resource-type-container"> | ||
<mat-label>Resource type:</mat-label> | ||
<mat-select [value]="resourceData.choice_index" (selectionChange)="setChoiceIndex($event.value)"> | ||
<mat-option *ngFor="let schema of resource!.schema.possible_resource_schemas; let i = index" [value]="i"> | ||
{{ schema.block_class_mro.split('__')[0] }} | ||
</mat-option> | ||
</mat-select> | ||
</div> | ||
<app-editor [resource]="this.childResource"></app-editor> | ||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#resource-type-container { | ||
display: flex; | ||
column-gap: 0.5rem; | ||
align-items: center; | ||
|
||
mat-label { | ||
flex-shrink: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/src/app/components/editor/library/integer.block-ui/integer.block-ui.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/src/app/components/editor/library/string.block-ui/string.block-ui.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.