-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/swsnu/swpp18-team11 into…
… develop
- Loading branch information
Showing
12 changed files
with
174 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
frontend/src/app/my-cart-dialog/my-cart-dialog.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
h3 { | ||
marign-top: 0; | ||
margin-botton: 15px; | ||
} | ||
.button-group { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: 15px; | ||
padding-left: 10px; | ||
padding-right: 15px; | ||
} | ||
.mat-list .mat-list-item .mat-list-item-content { | ||
padding: 0 5px; | ||
} |
12 changes: 12 additions & 0 deletions
12
frontend/src/app/my-cart-dialog/my-cart-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<h3>{{purchasable.name}} 옵션 설정</h3> | ||
<app-select-option [options]="purchasable.options"></app-select-option> | ||
<div class="button-group"> | ||
<button mat-icon-button | ||
(click)="cancelClicked()"> | ||
<mat-icon>close</mat-icon> | ||
</button> | ||
<button mat-icon-button | ||
(click)="confirmClicked()"> | ||
<mat-icon>check</mat-icon> | ||
</button> | ||
</div> |
24 changes: 24 additions & 0 deletions
24
frontend/src/app/my-cart-dialog/my-cart-dialog.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { MyCartDialogComponent } from './my-cart-dialog.component'; | ||
import { SelectOptionComponent } from '../select-option/select-option.component'; | ||
|
||
describe('MyCartDialogComponent', () => { | ||
let component: MyCartDialogComponent; | ||
let fixture: ComponentFixture<MyCartDialogComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ | ||
MyCartDialogComponent, | ||
SelectOptionComponent, | ||
] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(MyCartDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
}); |
26 changes: 26 additions & 0 deletions
26
frontend/src/app/my-cart-dialog/my-cart-dialog.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Component, OnInit, Inject } from '@angular/core'; | ||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material'; | ||
import { Purchasable } from '../purchasable'; | ||
|
||
@Component({ | ||
selector: 'app-my-cart-dialog', | ||
templateUrl: './my-cart-dialog.component.html', | ||
styleUrls: ['./my-cart-dialog.component.css'] | ||
}) | ||
export class MyCartDialogComponent implements OnInit { | ||
|
||
constructor( | ||
public dialogRef: MatDialogRef<MyCartDialogComponent>, | ||
@Inject(MAT_DIALOG_DATA) public purchasable: Purchasable | ||
) {} | ||
|
||
ngOnInit() { | ||
} | ||
|
||
cancelClicked() { | ||
this.dialogRef.close(); | ||
} | ||
confirmClicked() { | ||
this.dialogRef.close(this.purchasable.options); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,54 @@ | ||
.purchasable { | ||
display: flex; | ||
flex-direction: row; | ||
.mycart-list { | ||
margin-left: 5px; | ||
margin-right: 13px; | ||
padding-top: 0; | ||
} | ||
.mycart-list .mat-list-item { | ||
height: auto; | ||
margin-top: 10px; | ||
} | ||
#totalPrice { | ||
text-align: right; | ||
margin-right: 100px; /*does it works well?*/ | ||
} | ||
.option-panel-title { | ||
justify-content: space-between; | ||
.purchasable-detail-wrapper { | ||
display: table; | ||
} | ||
.button-group { | ||
text-align: center; | ||
margin: 20px; | ||
margin-top: 40px; | ||
margin-botton: 30px; | ||
.purchasable-detail { | ||
display: table-cell; | ||
vertical-align: middle; | ||
font-size: medium; | ||
} | ||
.navigate-button { | ||
margin-left: 10px; | ||
margin-right: 10px; | ||
} | ||
.option-dialog-button { | ||
position: absolute; | ||
right: 45%; | ||
} | ||
.quantity-control-buttons { | ||
flex: auto; | ||
min-width: 110px; | ||
position: absolute; | ||
right: 20%; | ||
} | ||
.quantity-button { | ||
min-width: 10px; | ||
} | ||
.purchasable-detail{ | ||
font-size: medium; | ||
.purchasable-total-price { | ||
position: absolute; | ||
right: 8%; | ||
} | ||
.remove-button { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
} | ||
#totalPrice { | ||
text-align: right; | ||
margin-top: 30px; | ||
margin-right: 20px; | ||
} | ||
.button-group { | ||
text-align: center; | ||
margin: 20px; | ||
margin-top: 40px; | ||
margin-bottom: 30px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.