Skip to content

Commit edead53

Browse files
Merge pull request #44 from COS301-SE-2023/dev
Demo One
2 parents e1389ed + 4213d2d commit edead53

File tree

116 files changed

+2841
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+2841
-23
lines changed

apps/app/src/assets/Logo.png

8.45 KB
Loading

apps/app/src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
22
import { CoreModule } from '@fridge-to-plate/app/core';
3-
43
platformBrowserDynamic()
54
.bootstrapModule(CoreModule)
65
.catch((err) => console.error(err));

apps/app/tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
'background-light': '#F8F8F8',
1414
'background-dark': '#010127',
1515
'primary': '#C35214',
16+
'recipe-card-overlay': 'rgba(52,52,52,0.64)',
1617
'primary-highlight': '#E26310',
1718
'accept': '#2bc917',
1819
'reject': '#d70b0b'

libs/app/core/src/core.module.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,25 @@ import { NxWelcomeComponent } from "./nx-welcome.component";
55
import { CoreRouting } from "./core.routing";
66
import { IonicModule, IonicRouteStrategy } from "@ionic/angular";
77
import { RouteReuseStrategy } from "@angular/router";
8+
import { LoginModule } from '@fridge-to-plate/app/login/feature';
9+
import { TabbedComponent } from "./tabbed-component/tabbed-component";
10+
import { NzStepsModule } from "ng-zorro-antd/steps";
11+
import { NzFormModule } from "ng-zorro-antd/form";
12+
import { NzIconModule } from "ng-zorro-antd/icon";
13+
import { ReactiveFormsModule } from "@angular/forms";
814

915
@NgModule({
10-
declarations: [CoreShell, NxWelcomeComponent],
16+
declarations: [CoreShell, NxWelcomeComponent, TabbedComponent],
1117
imports: [
1218
BrowserModule,
13-
CoreRouting,
14-
IonicModule.forRoot()],
19+
LoginModule,
20+
CoreRouting,
21+
ReactiveFormsModule,
22+
IonicModule.forRoot(),
23+
NzStepsModule,
24+
NzFormModule,
25+
NzIconModule
26+
],
1527
providers: [{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }],
1628
bootstrap: [CoreShell],
1729
})

libs/app/core/src/core.routing.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,27 @@ const routes: Routes = [
77
path: '',
88
pathMatch: 'full',
99
component: NxWelcomeComponent,
10+
},
11+
{
12+
path: 'recommendations',
13+
loadChildren: () => import('@fridge-to-plate/app/recipe-recommendation').then((m) => m.AppRecipeRecommendationModule),
14+
},
15+
{
16+
path: 'login',
17+
loadChildren: () => import('@fridge-to-plate/app/login/feature').then((m) => m.LoginModule),
18+
},
19+
{
20+
path: 'signup',
21+
loadChildren: () => import('@fridge-to-plate/app/signup/feature').then((m) => m.SignupModule),
22+
},
23+
{
24+
path: 'profile',
25+
loadChildren: () => import('@fridge-to-plate/app/profile/feature').then((m) => m.ProfileModule),
26+
},
27+
{
28+
path: 'create',
29+
loadChildren: () => import('@fridge-to-plate/app/create/feature').then((m) => m.CreateModule),
1030
},
11-
1231
];
1332

1433
@NgModule({

libs/app/core/src/core.shell.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<ion-app>
22
<ion-router-outlet></ion-router-outlet>
3-
</ion-app>
3+
</ion-app>

libs/app/core/src/nx-welcome.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Component, ViewEncapsulation } from "@angular/core";
99
color: #ff69b4;
1010
text-align: center;
1111
}
12-
12+
1313
h2 {
1414
font-size: 24px;
1515
font-weight: normal;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div>
2+
Menu
3+
</div>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.page-container {
2+
background-color:#F8F8F8;
3+
height: 100%;
4+
width: 100%;
5+
display: grid;
6+
grid-template-rows: repeat(12, minmax(0,1fr));
7+
grid-template-columns: repeat(12, minmax(0,1fr));
8+
}

libs/app/core/src/tabbed-component/tabbed-component.spec.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)