瀏覽代碼

remove unused component

master
Christian Ziermann 4 年之前
父節點
當前提交
862258d4a8
共有 5 個檔案被更改,包括 0 行新增60 行删除
  1. +0
    -0
      src/app/game/magnetic-recycling-queen/magnetic-recycling-queen.component.css
  2. +0
    -1
      src/app/game/magnetic-recycling-queen/magnetic-recycling-queen.component.html
  3. +0
    -25
      src/app/game/magnetic-recycling-queen/magnetic-recycling-queen.component.spec.ts
  4. +0
    -15
      src/app/game/magnetic-recycling-queen/magnetic-recycling-queen.component.ts
  5. +0
    -19
      src/app/pages/resume/resume.component.ts

+ 0
- 0
src/app/game/magnetic-recycling-queen/magnetic-recycling-queen.component.css 查看文件


+ 0
- 1
src/app/game/magnetic-recycling-queen/magnetic-recycling-queen.component.html 查看文件

@@ -1 +0,0 @@
<p>magnetic-recycling-queen works!</p>

+ 0
- 25
src/app/game/magnetic-recycling-queen/magnetic-recycling-queen.component.spec.ts 查看文件

@@ -1,25 +0,0 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { MagneticRecyclingQueenComponent } from './magnetic-recycling-queen.component';

describe('MagneticRecyclingQueenComponent', () => {
let component: MagneticRecyclingQueenComponent;
let fixture: ComponentFixture<MagneticRecyclingQueenComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MagneticRecyclingQueenComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(MagneticRecyclingQueenComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 0
- 15
src/app/game/magnetic-recycling-queen/magnetic-recycling-queen.component.ts 查看文件

@@ -1,15 +0,0 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-magnetic-recycling-queen',
templateUrl: './magnetic-recycling-queen.component.html',
styleUrls: ['./magnetic-recycling-queen.component.css']
})
export class MagneticRecyclingQueenComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}

+ 0
- 19
src/app/pages/resume/resume.component.ts 查看文件

@@ -1,6 +1,4 @@
import { Component, OnInit } from '@angular/core';
import * as jspdf from 'jspdf';
import html2canvas from 'html2canvas';

export type Star = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 4.5 | 5;
export const STAR_CLASS_MAP = {
@@ -205,23 +203,6 @@ export class ResumeComponent implements OnInit {
ngOnInit(): void {
}

public captureScreen() {
debugger;
let data = document.getElementById('contentToConvert');
html2canvas(data).then(canvas => {
// Few necessary setting options
let imgWidth = 208;
let pageHeight = 295;
let imgHeight = canvas.height * imgWidth / canvas.width;
let heightLeft = imgHeight;

const contentDataURL = canvas.toDataURL('image/png')
let pdf = new jspdf('p', 'mm', 'a4'); // A4 size page of PDF
let position = 0;
pdf.addImage(contentDataURL, 'PNG', 0, position, imgWidth, imgHeight)
pdf.save('MYPdf.pdf'); // Generated PDF
});
}

getStarClass(starCount: Star, starIndex: number) {
const starSizes: number[] = [];

Loading…
取消
儲存