-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create accounts and account (empty) components
- Loading branch information
Showing
10 changed files
with
261 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>account works!</p> |
Empty file.
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { AccountComponent } from './account.component'; | ||
|
||
describe('AccountComponent', () => { | ||
let component: AccountComponent; | ||
let fixture: ComponentFixture<AccountComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [AccountComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(AccountComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-account', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './account.component.html', | ||
styleUrl: './account.component.scss' | ||
}) | ||
export class AccountComponent { | ||
|
||
} |
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,116 @@ | ||
<h1>All Accounts</h1> | ||
|
||
<mat-list> | ||
<a [routerLink]="['/account', 'did:dht:umj7apgmkodtrb7mdpjo4h7xinqdnatzgy38j7wi67k9c7sdns1o']" mat-list-item class="selectable-list-item"> | ||
<mat-icon matListItemIcon>account_circle</mat-icon> | ||
<span matListItemTitle>SondreB (Voluntaryist)</span> | ||
<span matListItemLine>did:dht:umj7apgmkodtrb7mdpjo4h7xinqdnatzgy38j7wi67k9c7sdns1o</span> | ||
<!--<div class="account-action-button" matListItemMeta> | ||
<button mat-icon-button [matMenuTriggerFor]="menuActions"> | ||
<mat-icon>more_vert</mat-icon> | ||
</button> | ||
</div>--> | ||
</a> | ||
<a [routerLink]="['/account', 'did:dht:umj7apgmkodtrb7mdpjo4h7xinqdnatzgy38j7wi67k9c7sdns1o']" mat-list-item class="selectable-list-item"> | ||
<mat-icon matListItemIcon>account_circle</mat-icon> | ||
<span matListItemTitle>Joe</span> | ||
<span matListItemLine>did:dht:umj7apgmkodtrb7mdpjo4h7xinqdnatzgy38j7wi67k9c7sdns1o</span> | ||
<!--<div class="account-action-button" matListItemMeta> | ||
<button mat-icon-button [matMenuTriggerFor]="menuActions"> | ||
<mat-icon>more_vert</mat-icon> | ||
</button> | ||
</div>--> | ||
</a> | ||
<a [routerLink]="['/account', 'did:dht:umj7apgmkodtrb7mdpjo4h7xinqdnatzgy38j7wi67k9c7sdns1o']" mat-list-item class="selectable-list-item"> | ||
<mat-icon matListItemIcon>account_circle</mat-icon> | ||
<span matListItemTitle>Luba</span> | ||
<span matListItemLine>did:dht:umj7apgmkodtrb7mdpjo4h7xinqdnatzgy38j7wi67k9c7sdns1o</span> | ||
<!--<div class="account-action-button" matListItemMeta> | ||
<button mat-icon-button [matMenuTriggerFor]="menuActions"> | ||
<mat-icon>more_vert</mat-icon> | ||
</button> | ||
</div>--> | ||
</a> | ||
</mat-list> | ||
|
||
<mat-menu #menuActions="matMenu"> | ||
<button mat-menu-item [routerLink]="['/settings']"> | ||
<mat-icon>settings</mat-icon> | ||
<span>View</span> | ||
</button> | ||
|
||
<mat-divider></mat-divider> | ||
<button mat-menu-item> | ||
<mat-icon>person_remove</mat-icon> | ||
<span>Remove Account from device</span> | ||
</button> | ||
</mat-menu> | ||
|
||
<!-- | ||
<mat-accordion class="example-headers-align" multi> | ||
<mat-expansion-panel> | ||
<mat-expansion-panel-header> | ||
<mat-panel-title>SondreB (Voluntaryist)</mat-panel-title> | ||
<mat-panel-description> | ||
did:dht:umj7apgmkodtrb7mdpjo4h7xinqdnatzgy38j7wi67k9c7sdns1o | ||
<mat-icon>account_circle</mat-icon> | ||
</mat-panel-description> | ||
</mat-expansion-panel-header> | ||
<mat-tab-group> | ||
<mat-tab> | ||
<ng-template mat-tab-label> | ||
<mat-icon class="example-tab-icon">thumb_up</mat-icon> | ||
First | ||
</ng-template> | ||
Content 1 | ||
</mat-tab> | ||
<mat-tab> | ||
<ng-template mat-tab-label> | ||
<mat-icon class="example-tab-icon">thumb_up</mat-icon> | ||
Second | ||
</ng-template> | ||
Content 2 | ||
</mat-tab> | ||
<mat-tab> | ||
<ng-template mat-tab-label> | ||
<mat-icon class="example-tab-icon">thumb_up</mat-icon> | ||
Third | ||
</ng-template> | ||
Content 3 | ||
</mat-tab> | ||
</mat-tab-group> | ||
</mat-expansion-panel> | ||
<mat-expansion-panel disabled> | ||
<mat-expansion-panel-header> | ||
<mat-panel-title> did:dht:umj7apgmkodtrb7mdpjo4h7xinqdnatzgy38j7wi67k9c7sdns1o </mat-panel-title> | ||
<mat-panel-description> | ||
Type the country name | ||
<mat-icon>map</mat-icon> | ||
</mat-panel-description> | ||
</mat-expansion-panel-header> | ||
<mat-form-field> | ||
<mat-label>Country</mat-label> | ||
<input matInput /> | ||
</mat-form-field> | ||
</mat-expansion-panel> | ||
<mat-expansion-panel> | ||
<mat-expansion-panel-header> | ||
<mat-panel-title> Day of the trip </mat-panel-title> | ||
<mat-panel-description> | ||
Inform the date you wish to travel | ||
<mat-icon>date_range</mat-icon> | ||
</mat-panel-description> | ||
</mat-expansion-panel-header> | ||
<mat-form-field> | ||
<mat-label>Date</mat-label> | ||
<input matInput readonly /> | ||
</mat-form-field> | ||
</mat-expansion-panel> | ||
</mat-accordion>--> |
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,24 @@ | ||
.account-action-button { | ||
padding-top: 1.2em; | ||
} | ||
|
||
.example-action-buttons { | ||
padding-bottom: 20px; | ||
} | ||
|
||
.example-headers-align .mat-expansion-panel-header-description { | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.example-headers-align .mat-mdc-form-field + .mat-mdc-form-field { | ||
margin-left: 8px; | ||
} | ||
|
||
.selectable-list-item { | ||
cursor: pointer; | ||
} | ||
|
||
.selectable-list-item:hover { | ||
background-color: var(--mdc-list-list-item-leading-avatar-color); | ||
} |
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { AccountsComponent } from './accounts.component'; | ||
|
||
describe('AccountsComponent', () => { | ||
let component: AccountsComponent; | ||
let fixture: ComponentFixture<AccountsComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [AccountsComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(AccountsComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,32 @@ | ||
import { Component } from '@angular/core'; | ||
import { MatButtonModule } from '@angular/material/button'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
import { MatListModule } from '@angular/material/list'; | ||
import { MatMenuModule } from '@angular/material/menu'; | ||
import { RouterLink } from '@angular/router'; | ||
import { MatExpansionModule} from '@angular/material/expansion'; | ||
import { MatFormFieldModule } from '@angular/material/form-field'; | ||
import { MatInputModule } from '@angular/material/input'; | ||
import { MatTabsModule } from '@angular/material/tabs'; | ||
|
||
@Component({ | ||
selector: 'app-accounts', | ||
standalone: true, | ||
imports: [ | ||
MatExpansionModule, | ||
MatTabsModule, | ||
MatFormFieldModule, | ||
MatListModule, | ||
MatIconModule, | ||
MatInputModule, | ||
MatButtonModule, | ||
MatMenuModule, | ||
RouterLink], | ||
templateUrl: './accounts.component.html', | ||
styleUrl: './accounts.component.scss' | ||
}) | ||
export class AccountsComponent { | ||
save() {} | ||
|
||
undo() {} | ||
} |
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