Skip to content

Commit

Permalink
feat: add marketplace boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
jxhnx committed Oct 30, 2024
1 parent 04f9744 commit 0c7190b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { RouterModule, Routes } from '@angular/router';
import { QueryComponent } from './components/query/query.component';
import { CatalogBrowserComponent } from './components/catalog-browser/catalog-browser.component';
import { NodeDetailsComponent } from './components/node-details/node-details.component';
import { MarketplaceComponent } from './components/marketplace/marketplace.component';

const routes: Routes = [
{ path: 'nodes', component: CatalogBrowserComponent },
{ path: 'query', component: QueryComponent },
{ path: 'marketplace', component: MarketplaceComponent },
{ path: 'nodes/:id', component: NodeDetailsComponent },
{ path: '', redirectTo: 'nodes', pathMatch: 'full' },
];
Expand Down
1 change: 1 addition & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<a mat-button routerLink="">Browse Catalog</a>
<a mat-button routerLink="query">Query Tool</a>
<a mat-button routerLink="marketplace">Marketplace</a>
<ng-container *ngIf="isLoggedIn()">
<button id="user-menu" mat-icon-button [matMenuTriggerFor]="menu" matTooltip="User: {{ username }}">
<mat-icon>account_circle</mat-icon>
Expand Down
1 change: 1 addition & 0 deletions src/app/components/marketplace/marketplace.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>marketplace works!</p>
Empty file.
22 changes: 22 additions & 0 deletions src/app/components/marketplace/marketplace.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { MarketplaceComponent } from './marketplace.component';

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

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [MarketplaceComponent],
}).compileComponents();

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

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

@Component({
selector: 'app-marketplace',
standalone: true,
imports: [],
templateUrl: './marketplace.component.html',
styleUrl: './marketplace.component.scss',
})
export class MarketplaceComponent {}

0 comments on commit 0c7190b

Please sign in to comment.