Skip to content

Commit

Permalink
fix: fix checklist json issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 14, 2020
1 parent 5f64fad commit 2072d40
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/app/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
declare module '*.md';

declare module '*.json' {
const value: any;
export default value;
}
11 changes: 10 additions & 1 deletion src/app/presentation/checklists/checklists.component.html
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
<component-checklist [checklists]="techChecklist" [name]="'tech'"></component-checklist>
<div class="checklists">
<h2>技术</h2>
<component-checklist [checklists]="techChecklist" [name]="'tech'"></component-checklist>
<h2></h2>
<component-checklist [checklists]="peopleChecklist" [name]="'people'"></component-checklist>
<h2>流程</h2>
<component-checklist [checklists]="processChecklist" [name]="'process'"></component-checklist>
<h2>业务</h2>
<component-checklist [checklists]="domainChecklist" [name]="'domain'"></component-checklist>
</div>
8 changes: 7 additions & 1 deletion src/app/presentation/checklists/checklists.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component, OnInit } from '@angular/core';
import * as TECH_CHECKLIST from './checklists/technology.json';
import TECH_CHECKLIST from './checklists/technology.json';
import PROCESS_CHECKLIST from './checklists/process.json';
import PEOPLE_CHECKLIST from './checklists/people.json';
import DOMAIN_CHECKLIST from './checklists/domain.json';

@Component({
selector: 'app-checklists',
Expand All @@ -8,6 +11,9 @@ import * as TECH_CHECKLIST from './checklists/technology.json';
})
export class ChecklistsComponent implements OnInit {
techChecklist: any = TECH_CHECKLIST;
processChecklist: any = PROCESS_CHECKLIST;
peopleChecklist: any = PEOPLE_CHECKLIST;
domainChecklist: any = DOMAIN_CHECKLIST;

constructor() {}

Expand Down

0 comments on commit 2072d40

Please sign in to comment.