Skip to content

Commit

Permalink
fix: fixed issue #117
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed May 3, 2020
1 parent 4595a64 commit 423216a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div *ngIf="checklists">
<div *ngFor="let checklist of checklists;let i = index" class="component-checklist">
<mat-checkbox [checked]="checklist.checked" (change)="completeChange($event)" class="checklist-item">
<span class="title">{{checklist?.title}}</span>
<span *ngIf="checklist.description" class="description"> {{checklist.description}}</span>
<span class="title" [innerHTML]="checklist?.title"></span>
<span *ngIf="checklist.description" class="description" [innerHTML]="checklist.description"></span>
</mat-checkbox>
<component-todo [disableInput]="true" [toDos]="checklist.subitems"></component-todo>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<mat-list>
<mat-list-item *ngFor="let toDo of toDos" [class.complete]="toDo?.checked">
<mat-checkbox [checked]="toDo.checked" (change)="completeChange($event, toDo)">
<span class="title">{{ toDo?.title }}</span>
<span *ngIf="toDo.description" class="description">&nbsp;&nbsp; {{toDo.description}}</span>
<span class="title" [innerHTML]="toDo?.title"></span>
<span *ngIf="toDo.description" class="description" [innerHTML]="toDo?.description"></span>
</mat-checkbox>
</mat-list-item>
</mat-list>
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const LedgeMarkdownConverter = {
const lists = [];
let result = '{';

const tokens: marked.Token[] = marked.lexer(code);
const tokens: marked.Token[] | any = marked.lexer(code);
for (const token of tokens) {
switch (token.type) {
case 'list_start': {
Expand All @@ -80,7 +80,8 @@ const LedgeMarkdownConverter = {
break;
}
case 'text': {
result += `"name": ${JSON.stringify(token.text)},`;
const text = marked.inlineLexer(token.text, tokens.links);
result += `"name": ${JSON.stringify(text)},`;
break;
}
case 'list_item_end': {
Expand Down
2 changes: 1 addition & 1 deletion src/assets/docs/checklists/api-security.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```checklist
- API 安全性检查清单
- 身份认证
- 不要使用 Basic Auth ,请使用标准的认证协议(如 JWTOAuth
- 不要使用 `Basic Auth` 使用标准的认证协议 (如 JWT, OAuth)
- 不要重新实现 Authentication、token generating 和 password storing,请使用标准库。
- 限制密码错误尝试次数,并且增加账号冻结功能。
- 加密所有的敏感数据。
Expand Down

0 comments on commit 423216a

Please sign in to comment.