Forked from Captain Anonymous's Pen yyROBL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
// example1 | |
$color:red; | |
.button{ | |
$color:blue; | |
color:$color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// errors-handler.ts | |
import { ErrorHandler, Injectable} from '@angular/core'; | |
import { HttpErrorResponse } from '@angular/common/http'; | |
@Injectable() | |
export class ErrorsHandler implements ErrorHandler { | |
handleError(error: Error | HttpErrorResponse) { | |
if (error instanceof HttpErrorResponse) { | |
// Server or connection error happened | |
if (!navigator.onLine) { | |
// Handle offline error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```ts | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const addCounter = (list) => { | |
return [...list, 0]; | |
}; | |
const removeCounter = (list, index) => {\ | |
return [ | |
...list.slice(0, index), | |
...list.slice(index + 1) | |
]; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aspiration App Logic | |
open app from home screen -> Has User Previously Logged In? | |
Logged Out Flow | |
Has User Previously Logged In? | |
yes -> Is Device Authentication Set Up? | |
no -> App Welcome Screen | |
App Welcome Screen | |
tap login -> Is Device Authentication Set Up? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
信息管理流程 | |
待提交* | |
提交 -> 审核中 | |
审核中 | |
审批人拒绝 -> 驳回 | |
审批人通过 -> 待发布 | |
驳回 | |
自动 -> 待提交 | |
待发布 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
信息管理流程 | |
待提交 | |
提交 -> 审核中 | |
审核中 | |
审批人拒绝 -> 驳回 | |
审批人通过 -> 待发布 | |
驳回 | |
自动 -> 待提交 | |
待发布 | |
OlderNewer