mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-11-11 14:27:38 +01:00
chore: initialized frontend components
This commit is contained in:
parent
24d2a5fb44
commit
bfc24cce21
@ -0,0 +1 @@
|
|||||||
|
<p>danie works!</p>
|
||||||
21
monorepo/apps/frontend/src/app/danie/danie.component.spec.ts
Normal file
21
monorepo/apps/frontend/src/app/danie/danie.component.spec.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { DanieComponent } from './danie.component';
|
||||||
|
|
||||||
|
describe('DanieComponent', () => {
|
||||||
|
let component: DanieComponent;
|
||||||
|
let fixture: ComponentFixture<DanieComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [DanieComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(DanieComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
11
monorepo/apps/frontend/src/app/danie/danie.component.ts
Normal file
11
monorepo/apps/frontend/src/app/danie/danie.component.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-danie',
|
||||||
|
standalone: true,
|
||||||
|
imports: [CommonModule],
|
||||||
|
templateUrl: './danie.component.html',
|
||||||
|
styleUrl: './danie.component.css',
|
||||||
|
})
|
||||||
|
export class DanieComponent {}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<p>historia-zamowien works!</p>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { HistoriaZamowienComponent } from './historia-zamowien.component';
|
||||||
|
|
||||||
|
describe('HistoriaZamowienComponent', () => {
|
||||||
|
let component: HistoriaZamowienComponent;
|
||||||
|
let fixture: ComponentFixture<HistoriaZamowienComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [HistoriaZamowienComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(HistoriaZamowienComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-historia-zamowien',
|
||||||
|
standalone: true,
|
||||||
|
imports: [CommonModule],
|
||||||
|
templateUrl: './historia-zamowien.component.html',
|
||||||
|
styleUrl: './historia-zamowien.component.css',
|
||||||
|
})
|
||||||
|
export class HistoriaZamowienComponent {}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<p>recenzja works!</p>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { RecenzjaComponent } from './recenzja.component';
|
||||||
|
|
||||||
|
describe('RecenzjaComponent', () => {
|
||||||
|
let component: RecenzjaComponent;
|
||||||
|
let fixture: ComponentFixture<RecenzjaComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [RecenzjaComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(RecenzjaComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-recenzja',
|
||||||
|
standalone: true,
|
||||||
|
imports: [CommonModule],
|
||||||
|
templateUrl: './recenzja.component.html',
|
||||||
|
styleUrl: './recenzja.component.css',
|
||||||
|
})
|
||||||
|
export class RecenzjaComponent {}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<p>restauracja works!</p>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { RestauracjaComponent } from './restauracja.component';
|
||||||
|
|
||||||
|
describe('RestauracjaComponent', () => {
|
||||||
|
let component: RestauracjaComponent;
|
||||||
|
let fixture: ComponentFixture<RestauracjaComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [RestauracjaComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(RestauracjaComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-restauracja',
|
||||||
|
standalone: true,
|
||||||
|
imports: [CommonModule],
|
||||||
|
templateUrl: './restauracja.component.html',
|
||||||
|
styleUrl: './restauracja.component.css',
|
||||||
|
})
|
||||||
|
export class RestauracjaComponent {}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<p>uzytkownik works!</p>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { UzytkownikComponent } from './uzytkownik.component';
|
||||||
|
|
||||||
|
describe('UzytkownikComponent', () => {
|
||||||
|
let component: UzytkownikComponent;
|
||||||
|
let fixture: ComponentFixture<UzytkownikComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [UzytkownikComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(UzytkownikComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-uzytkownik',
|
||||||
|
standalone: true,
|
||||||
|
imports: [CommonModule],
|
||||||
|
templateUrl: './uzytkownik.component.html',
|
||||||
|
styleUrl: './uzytkownik.component.css',
|
||||||
|
})
|
||||||
|
export class UzytkownikComponent {}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<p>zamowienie works!</p>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { ZamowienieComponent } from './zamowienie.component';
|
||||||
|
|
||||||
|
describe('ZamowienieComponent', () => {
|
||||||
|
let component: ZamowienieComponent;
|
||||||
|
let fixture: ComponentFixture<ZamowienieComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [ZamowienieComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(ZamowienieComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-zamowienie',
|
||||||
|
standalone: true,
|
||||||
|
imports: [CommonModule],
|
||||||
|
templateUrl: './zamowienie.component.html',
|
||||||
|
styleUrl: './zamowienie.component.css',
|
||||||
|
})
|
||||||
|
export class ZamowienieComponent {}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<p>zamowione-danie works!</p>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { ZamowioneDanieComponent } from './zamowione-danie.component';
|
||||||
|
|
||||||
|
describe('ZamowioneDanieComponent', () => {
|
||||||
|
let component: ZamowioneDanieComponent;
|
||||||
|
let fixture: ComponentFixture<ZamowioneDanieComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [ZamowioneDanieComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(ZamowioneDanieComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-zamowione-danie',
|
||||||
|
standalone: true,
|
||||||
|
imports: [CommonModule],
|
||||||
|
templateUrl: './zamowione-danie.component.html',
|
||||||
|
styleUrl: './zamowione-danie.component.css',
|
||||||
|
})
|
||||||
|
export class ZamowioneDanieComponent {}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<p>znizka works!</p>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { ZnizkaComponent } from './znizka.component';
|
||||||
|
|
||||||
|
describe('ZnizkaComponent', () => {
|
||||||
|
let component: ZnizkaComponent;
|
||||||
|
let fixture: ComponentFixture<ZnizkaComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [ZnizkaComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(ZnizkaComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
11
monorepo/apps/frontend/src/app/znizka/znizka.component.ts
Normal file
11
monorepo/apps/frontend/src/app/znizka/znizka.component.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-znizka',
|
||||||
|
standalone: true,
|
||||||
|
imports: [CommonModule],
|
||||||
|
templateUrl: './znizka.component.html',
|
||||||
|
styleUrl: './znizka.component.css',
|
||||||
|
})
|
||||||
|
export class ZnizkaComponent {}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Define the project name
|
# Define the project name
|
||||||
PROJECT_NAME="backend"
|
PROJECT_NAME="frontend"
|
||||||
|
|
||||||
# Function to generate a module and a service
|
# Function to generate a module and a service
|
||||||
generate_module_and_service() {
|
generate_module_and_service() {
|
||||||
@ -15,7 +15,9 @@ generate_module_and_service() {
|
|||||||
# Generate service in the specific directory
|
# Generate service in the specific directory
|
||||||
# nx g @nrwl/nest:service ${MODULE_NAME} --directory=apps/${PROJECT_NAME}/src/app/${MODULE_NAME}
|
# nx g @nrwl/nest:service ${MODULE_NAME} --directory=apps/${PROJECT_NAME}/src/app/${MODULE_NAME}
|
||||||
|
|
||||||
nx g @nrwl/nest:controller ${MODULE_NAME} --directory=apps/${PROJECT_NAME}/src/app/${MODULE_NAME}
|
# nx g @nrwl/nest:controller ${MODULE_NAME} --directory=apps/${PROJECT_NAME}/src/app/${MODULE_NAME}
|
||||||
|
|
||||||
|
nx g @nx/angular:component ${MODULE_NAME} --directory=apps/${PROJECT_NAME}/src/app/${MODULE_NAME}
|
||||||
}
|
}
|
||||||
|
|
||||||
# List of all models for which we need to generate modules and services
|
# List of all models for which we need to generate modules and services
|
||||||
|
|||||||
@ -53,6 +53,9 @@
|
|||||||
"linter": "eslint",
|
"linter": "eslint",
|
||||||
"style": "scss",
|
"style": "scss",
|
||||||
"unitTestRunner": "jest"
|
"unitTestRunner": "jest"
|
||||||
|
},
|
||||||
|
"@nx/angular:component": {
|
||||||
|
"style": "css"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nxCloudAccessToken": "YzgzODI0YjQtOTZlNi00NjRhLTk5ODEtNmQ1NTAwZmY3YWU2fHJlYWQtd3JpdGU="
|
"nxCloudAccessToken": "YzgzODI0YjQtOTZlNi00NjRhLTk5ODEtNmQ1NTAwZmY3YWU2fHJlYWQtd3JpdGU="
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user