Basic WebSocket implementaion
Downgrade to Socket.io 2.3.0
This commit is contained in:
26
src/app/pay/pay.component.css
Normal file
26
src/app/pay/pay.component.css
Normal file
@@ -0,0 +1,26 @@
|
||||
.bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #F7A12F;
|
||||
z-index: -999;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin: 0 auto;
|
||||
transform: translateY(20vh);
|
||||
transform-origin: center;
|
||||
min-width: 900px;
|
||||
width: 50vw;
|
||||
|
||||
/* Shadow */
|
||||
box-shadow:
|
||||
0 -0.5px 2.8px -9px rgba(0, 0, 0, 0.39)
|
||||
;
|
||||
}
|
||||
|
||||
.content * {
|
||||
width: 100%;
|
||||
}
|
||||
5
src/app/pay/pay.component.html
Normal file
5
src/app/pay/pay.component.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="bg"></div>
|
||||
<div class="content">
|
||||
<app-header></app-header>
|
||||
<app-payment></app-payment>
|
||||
</div>
|
||||
25
src/app/pay/pay.component.spec.ts
Normal file
25
src/app/pay/pay.component.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { PayComponent } from './pay.component';
|
||||
|
||||
describe('PayComponent', () => {
|
||||
let component: PayComponent;
|
||||
let fixture: ComponentFixture<PayComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ PayComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(PayComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
15
src/app/pay/pay.component.ts
Normal file
15
src/app/pay/pay.component.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-pay',
|
||||
templateUrl: './pay.component.html',
|
||||
styleUrls: ['./pay.component.css']
|
||||
})
|
||||
export class PayComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user