Skip to content

Commit

Permalink
add version hint
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoButtermilch committed Mar 17, 2024
1 parent 7b36da6 commit 9cfbbfe
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { VariableComponent } from './editor/variable-panel/variable/variable.com
import { GuiElementComponent } from './global/gui-element/gui-element.component';
import { ModalComponent } from './global/modal/modal.component';
import { ResizableComponent } from './global/resizable/resizable.component';
import { VersionComponent } from './global/version/version.component';
@NgModule({
declarations: [
AppComponent,
Expand All @@ -57,6 +58,7 @@ import { ResizableComponent } from './global/resizable/resizable.component';
RandomComponent,
NotificationPanelComponent,
NotificationComponent,
VersionComponent,
],
imports: [
NgxPanZoomModule,
Expand Down
1 change: 1 addition & 0 deletions src/app/editor/editor.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<app-version></app-version>
<app-toolbar *ngIf="dialogue$ | async as dialogue"
(onNewNodeClicked)="generateNewNode()"
(onBackToOriginClicked)="panToOrigin()"
Expand Down
1 change: 1 addition & 0 deletions src/app/global/version/version.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p class="version-hint">v0.0.1</p>
10 changes: 10 additions & 0 deletions src/app/global/version/version.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.version-hint {
position: fixed;
z-index: 10;
left: 5px;
bottom: 5px;
color: var(--colorWhite);
user-select: none;
opacity: .5;
pointer-events: none;
}
23 changes: 23 additions & 0 deletions src/app/global/version/version.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { VersionComponent } from './version.component';

describe('VersionComponent', () => {
let component: VersionComponent;
let fixture: ComponentFixture<VersionComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ VersionComponent ]
})
.compileComponents();

fixture = TestBed.createComponent(VersionComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions src/app/global/version/version.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-version',
templateUrl: './version.component.html',
styleUrls: ['./version.component.scss']
})
export class VersionComponent {

}

0 comments on commit 9cfbbfe

Please sign in to comment.