Basic WebSocket implementaion

Downgrade to Socket.io 2.3.0
This commit is contained in:
2020-12-27 22:38:20 +01:00
parent 04d2115f96
commit 4955b098c4
22 changed files with 404 additions and 131 deletions

View 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%;
}

View File

@@ -0,0 +1,5 @@
<div class="bg"></div>
<div class="content">
<app-header></app-header>
<app-payment></app-payment>
</div>

View 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();
});
});

View 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 {
}
}