-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin initial setup: add filtering + some icons (#1156)
* add icons + initial work for org switching #1127 * add stubs for more parts #1127 * add filter for lazy load expired events #1127
- Loading branch information
Showing
24 changed files
with
196 additions
and
69 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 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.
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
32 changes: 18 additions & 14 deletions
32
frontend-admin/src/app/dashboard/dashboard.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,15 +1,19 @@ | ||
<h1 translate="admin.dashboard.my-events"></h1> | ||
<svg-icon key="check"></svg-icon> | ||
<h2>Active</h2> | ||
<ul> | ||
<li *ngFor="let ev of activeEvents$ | async"> | ||
{{ev.displayName}} {{ev.formattedBegin}} {{ev.formattedEnd}} | ||
</li> | ||
</ul> | ||
|
||
<h2>Expired</h2> | ||
<ul> | ||
<li *ngFor="let ev of expiredEvents$ | async"> | ||
{{ev.displayName}} {{ev.formattedBegin}} {{ev.formattedEnd}} | ||
</li> | ||
</ul> | ||
<app-filter-button text="Active" [checked]="activeFilter" (toggleFilter)="toggleActiveFilter($event)"></app-filter-button> | ||
<app-filter-button text="Inactive" [checked]="inactiveFilter" (toggleFilter)="toggleInactiveFilter($event)"></app-filter-button> | ||
<ng-container *ngIf="activeFilter"> | ||
<h2>Active</h2> | ||
<ul> | ||
<li *ngFor="let ev of activeEvents$ | async"> | ||
{{ev.displayName}} {{ev.formattedBegin}} {{ev.formattedEnd}} | ||
</li> | ||
</ul> | ||
</ng-container> | ||
<ng-container *ngIf="inactiveFilter"> | ||
<h2>Expired</h2> | ||
<ul> | ||
<li *ngFor="let ev of expiredEvents$ | async"> | ||
{{ev.displayName}} {{ev.formattedBegin}} {{ev.formattedEnd}} | ||
</li> | ||
</ul> | ||
</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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>groups works!</p> |
Empty file.
15 changes: 15 additions & 0 deletions
15
frontend-admin/src/app/dashboard/groups/groups.component.ts
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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-groups', | ||
templateUrl: './groups.component.html', | ||
styleUrls: ['./groups.component.scss'] | ||
}) | ||
export class GroupsComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
frontend-admin/src/app/dashboard/organization-info/organization-info.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>organization-info works!</p> |
Empty file.
15 changes: 15 additions & 0 deletions
15
frontend-admin/src/app/dashboard/organization-info/organization-info.component.ts
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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-organization-info', | ||
templateUrl: './organization-info.component.html', | ||
styleUrls: ['./organization-info.component.scss'] | ||
}) | ||
export class OrganizationInfoComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
frontend-admin/src/app/dashboard/subscriptions/subscriptions.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>subscriptions works!</p> |
Empty file.
15 changes: 15 additions & 0 deletions
15
frontend-admin/src/app/dashboard/subscriptions/subscriptions.component.ts
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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-subscriptions', | ||
templateUrl: './subscriptions.component.html', | ||
styleUrls: ['./subscriptions.component.scss'] | ||
}) | ||
export class SubscriptionsComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
frontend-admin/src/app/shared/filter-button/filter-button.component.ts
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,36 @@ | ||
import { NgClass, NgIf } from '@angular/common'; | ||
import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
import { SvgIconComponent } from '@ngneat/svg-icon'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [SvgIconComponent, NgClass, NgIf], | ||
selector: 'app-filter-button', | ||
template: ` | ||
<button | ||
type="button" | ||
class="btn" | ||
style="border-radius: 20px" | ||
[ngClass]="{'btn-outline-primary': !checked, 'btn-primary': checked}" | ||
(click)="onClick()" | ||
> | ||
<svg-icon key="check" size="md" *ngIf="checked"></svg-icon> {{text}} | ||
</button>`, | ||
}) | ||
export class FilterButtonComponent { | ||
|
||
@Input() | ||
public text?: string; | ||
|
||
@Input() | ||
public checked: boolean = false; | ||
|
||
@Output() | ||
public toggleFilter = new EventEmitter<boolean>(); | ||
|
||
constructor() { } | ||
|
||
public onClick(): void { | ||
this.toggleFilter.emit(!this.checked); | ||
} | ||
} |
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,3 +1,26 @@ | ||
import { addIcon } from '../svg/add'; | ||
import {checkIcon} from '../svg/check'; | ||
import {homeIcon} from '../svg/home'; | ||
import { organizationIcon } from '../svg/organization'; | ||
import { settingsIcon } from '../svg/settings'; | ||
|
||
export const ICONS = [checkIcon]; | ||
const ICONS = [ | ||
checkIcon, | ||
homeIcon, | ||
checkIcon, | ||
addIcon, | ||
organizationIcon, | ||
settingsIcon, | ||
]; | ||
export const ICON_CONFIG = { | ||
sizes: { | ||
xs: '10px', | ||
sm: '12px', | ||
md: '16px', | ||
lg: '20px', | ||
xl: '25px', | ||
xxl: '30px', | ||
}, | ||
defaultSize: 'xl', | ||
icons: ICONS | ||
}; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.