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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyc-base",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "start": "ng serve",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyc-base",
3
- "version": "0.0.2",
3
+ "version": "1.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0"
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
+ });
@@ -0,0 +1,11 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'lib-alert',
5
+ imports: [],
6
+ templateUrl: './alert.html',
7
+ styleUrl: './alert.css',
8
+ })
9
+ export class Alert {
10
+
11
+ }
@@ -13,9 +13,7 @@
13
13
  </button>
14
14
  } @else {
15
15
  @if (!user()) {
16
- <button mat-stroked-button routerLink="/login-email">
17
- Login
18
- </button>
16
+ <button mat-stroked-button routerLink="/login-email">Login</button>
19
17
  }
20
18
  }
21
19
  </mat-toolbar>
@@ -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: 'app-mat-nav-bar',
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 MatNavBarComponent implements OnInit {
25
+ export class MatNavBar implements OnInit {
27
26
  user = input.required<AppUser>();
28
27
  title = input.required<string>();
29
28
  auth = input.required<Auth>();
@@ -15,4 +15,4 @@ export * from './classes/SecurePage';
15
15
  export * from './classes/BasePage';
16
16
 
17
17
  // components
18
- export * from './components/mat-nav-bar/mat-nav-bar.component';
18
+ export * from './lib/components/mat-nav-bar/mat-nav-bar';
@@ -1,5 +0,0 @@
1
- .space {
2
- flex: 1 1 auto;
3
- margin-left: 5px;
4
- margin-right: 5px;
5
- }
@@ -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
- });