cyc-base 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/projects/cyc-base/package.json +1 -1
- package/projects/cyc-base/src/lib/alert/alert.css +0 -0
- package/projects/cyc-base/src/lib/alert/alert.html +1 -0
- package/projects/cyc-base/src/lib/alert/alert.spec.ts +23 -0
- package/projects/cyc-base/src/lib/alert/alert.ts +11 -0
- package/projects/cyc-base/src/lib/components/mat-nav-bar/mat-nav-bar.css +0 -0
- package/projects/cyc-base/src/{components/mat-nav-bar/mat-nav-bar.component.html → lib/components/mat-nav-bar/mat-nav-bar.html} +1 -3
- package/projects/cyc-base/src/lib/components/mat-nav-bar/mat-nav-bar.spec.ts +23 -0
- package/projects/cyc-base/src/{components/mat-nav-bar/mat-nav-bar.component.ts → lib/components/mat-nav-bar/mat-nav-bar.ts} +5 -6
- package/projects/cyc-base/src/public-api.ts +1 -1
- package/projects/cyc-base/src/components/mat-nav-bar/mat-nav-bar.component.scss +0 -5
- package/projects/cyc-base/src/components/mat-nav-bar/mat-nav-bar.component.spec.ts +0 -22
package/package.json
CHANGED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>alert works!</p>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { Alert } from './alert';
|
|
4
|
+
|
|
5
|
+
describe('Alert', () => {
|
|
6
|
+
let component: Alert;
|
|
7
|
+
let fixture: ComponentFixture<Alert>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [Alert]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(Alert);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { MatNavBar } from './mat-nav-bar';
|
|
4
|
+
|
|
5
|
+
describe('MatNavBar', () => {
|
|
6
|
+
let component: MatNavBar;
|
|
7
|
+
let fixture: ComponentFixture<MatNavBar>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [MatNavBar]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(MatNavBar);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -5,14 +5,11 @@ import { MatIconModule } from '@angular/material/icon';
|
|
|
5
5
|
import { MatMenuModule } from '@angular/material/menu';
|
|
6
6
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
7
7
|
import { RouterModule } from '@angular/router';
|
|
8
|
-
import { Auth, signOut } from 'firebase/auth';
|
|
9
8
|
import { AppUser } from 'cyc-type-def';
|
|
9
|
+
import { Auth, signOut } from 'firebase/auth';
|
|
10
10
|
|
|
11
11
|
@Component({
|
|
12
|
-
selector: '
|
|
13
|
-
templateUrl: './mat-nav-bar.component.html',
|
|
14
|
-
styleUrls: ['./mat-nav-bar.component.scss'],
|
|
15
|
-
standalone: true,
|
|
12
|
+
selector: 'lib-mat-nav-bar',
|
|
16
13
|
imports: [
|
|
17
14
|
RouterModule,
|
|
18
15
|
MatLabel,
|
|
@@ -22,8 +19,10 @@ import { AppUser } from 'cyc-type-def';
|
|
|
22
19
|
MatMenuModule,
|
|
23
20
|
MatIconButton,
|
|
24
21
|
],
|
|
22
|
+
templateUrl: './mat-nav-bar.html',
|
|
23
|
+
styleUrl: './mat-nav-bar.css',
|
|
25
24
|
})
|
|
26
|
-
export class
|
|
25
|
+
export class MatNavBar implements OnInit {
|
|
27
26
|
user = input.required<AppUser>();
|
|
28
27
|
title = input.required<string>();
|
|
29
28
|
auth = input.required<Auth>();
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { MatNavBarComponent } from './mat-nav-bar.component';
|
|
4
|
-
|
|
5
|
-
describe('MatNavBarComponent', () => {
|
|
6
|
-
let component: MatNavBarComponent;
|
|
7
|
-
let fixture: ComponentFixture<MatNavBarComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [MatNavBarComponent],
|
|
12
|
-
}).compileComponents();
|
|
13
|
-
|
|
14
|
-
fixture = TestBed.createComponent(MatNavBarComponent);
|
|
15
|
-
component = fixture.componentInstance;
|
|
16
|
-
fixture.detectChanges();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should create', () => {
|
|
20
|
-
expect(component).toBeTruthy();
|
|
21
|
-
});
|
|
22
|
-
});
|