Skip to content
cybai edited this page May 13, 2017 · 2 revisions

Path Component Structure

  1. When using the path component, it will execute shown method and the updateStatus method at the first time. Then, it will send a request to /quickstatus to get the current status.

2-way Binding Attributes

Attribute Name Default Value
repoPath path (passed from parent component)
status false
cloneUrl x
cloneDestination x
repository x

Computed Attributes

Attribute Name Computed Value
cloneDestinationImplicit Using Address Parser to parse cloneUrl
┌-----------------------------------#path----------------------------------------┓
|                                                                                |
| ┌--------------------------#loadingProgressBar-------------------------------┓ |
| |                          :status == 'loading'                              | |
| ┖----------------------------------------------------------------------------┚ |
| ┌--------------------------#cloningProgressBar-------------------------------┓ |
| |                          :status == 'cloning'                              | |
| ┖----------------------------------------------------------------------------┚ |
| ┌----------------------------------DIV---------------------------------------┓ |
| |                         :status == 'uninited'                              | |
| ┖----------------------------------------------------------------------------┚ |
| ┌----------------------------------DIV---------------------------------------┓ |
| |                         :status == 'no-such-path'                          | |
| ┖----------------------------------------------------------------------------┚ |
| ┌------------------------------#repository-----------------------------------┓ |
| |                              :repository                                   | |
| ┖----------------------------------------------------------------------------┚ |
┖--------------------------------------------------------------------------------┚
Clone this wiki locally