feat(builder): add project editor

This commit is contained in:
sdarbinyan
2026-07-10 13:43:53 +04:00
parent 7161a81068
commit e2c8747fcc
50 changed files with 1656 additions and 42 deletions

View File

@@ -0,0 +1,19 @@
<section class="editor-section-card">
<h2>{{ 'builder.preview' | translate }}</h2>
<div class="editor-actions">
<button type="button" (click)="preview()">{{ 'builder.livePreview' | translate }}</button>
<button type="button" class="secondary" (click)="refreshExport()">{{ 'builder.exportBootstrap' | translate }}</button>
<button type="button" class="secondary" (click)="importDraft()">{{ 'builder.importBootstrap' | translate }}</button>
</div>
@if (importError()) {
<p class="editor-error">{{ importError()! | translate }}</p>
}
<label>
<span>{{ 'builder.exportedBootstrap' | translate }}</span>
<textarea rows="10" [ngModel]="exportValue()" (ngModelChange)="exportValue.set($event)"></textarea>
</label>
<label>
<span>{{ 'builder.importSource' | translate }}</span>
<textarea rows="10" [ngModel]="importValue()" (ngModelChange)="importValue.set($event)"></textarea>
</label>
</section>