1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
|
<style>
#error-log {
white-space: pre;
}
#img-rect-illustration {
align-self: center;
height: 180px;
margin-bottom: 80px;
width: 448px;
}
#img-square-illustration {
align-self: center;
height: 180px;
margin-bottom: 80px;
width: 180px;
}
#icon {
height: 32px;
margin-top: 28px;
width: 32px;
}
#main {
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 608px;
justify-content: space-between;
padding: 0 64px;
width: 768px;
}
#main-title {
color: var(--cros-text-color-primary);
font-family: 'Google Sans';
font-size: 28px;
line-height: 1;
margin: 36px 0 14px;
}
#status-container {
color: var(--cros-text-color-secondary);
flex-grow: 1;
font-family: Roboto;
font-size: 13px;
line-height: 18px;
}
#progress-message {
height: 36px;
}
#progress-submessage {
color: var(--google-grey-600);
flex-grow: 1;
font-family: Roboto;
font-size: 13px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
paper-progress {
--paper-progress-active-color: var(--cros-icon-color-prominent);
--paper-progress-container-color: rgba(var(--google-blue-600-rgb), .24);
margin-top: 36px;
width: 100%;
}
#log-storage-message {
color: var(--cros-text-color-secondary);
flex-grow: 1;
font-family: Roboto;
font-size: 13px;
line-height: 18px;
}
#bottom-container {
text-align: center;
}
#button-container {
display: flex;
gap: 8px;
justify-content: flex-end;
margin: 32px 0;
}
a[href] {
color: var(--cr-link-color);
text-decoration: none;
}
</style>
<div id="main">
<img id="icon" src="images/crostini_icon.svg">
<div id="status-container" role="status" aria-atomic="false">
<div id="main-title">[[getTitle_(state_)]]</div>
<!-- Prompt/Progress message. Use inner-h-t-m-l because some
messages contain links. -->
<div id="progress-message">
<span inner-h-t-m-l=
"[[getProgressMessage_(state_, precheckStatus_, logFileName_)]]">
</span>
<!-- Progress submessage. -->
<div id = "progress-submessage"
hidden="[[!isState_(state_, State.UPGRADING)]]">
<span>[[lastProgressLine_]]</span>
</div>
</div>
<!-- Progress bar containers. Depending on the current state, only one
of them is visible. -->
<div id="backup-progress-bar" hidden="[[!isState_(state_, State.BACKUP)]]">
<paper-progress class="progress-bar" value="[[backupProgress_]]">
</paper-progress>
</div>
<div id="restore-progress-bar"
hidden="[[!isState_(state_, State.RESTORE)]]">
<paper-progress class="progress-bar" value="[[restoreProgress_]]">
</paper-progress>
</div>
<div id="upgrade-progress-bar"
hidden="[[!isState_(state_, State.UPGRADING)]]">
<paper-progress class="progress-bar" indeterminate>
</paper-progress>
</div>
<div id="canceling-progress-bar"
hidden="[[!isState_(state_, State.CANCELING)]]">
<paper-progress class="progress-bar" indeterminate></paper-progress>
</div>
<div id="upgrade-error-message" hidden="[[isErrorLogsHidden_(state_)]]">
<textarea id="error-log" rows="20" cols="80" readonly>[[getErrorLogs_(state_)]]</textarea>
</div>
</div>
<img id="[[getIllustrationStyle_(state_)]]"
src="[[getIllustrationURI_(state_)]]" alt=""
hidden="[[hideIllustration_(state_)]]">
<div id="backup-checkbox" hidden="[[!isState_(state_, State.PROMPT)]]">
<cr-checkbox checked="{{backupCheckboxChecked_}}" >
<p class="checkbox-text">
$i18n{backupCheckboxMessage}
<a href="#" on-click="onChangeLocationButtonClick_"
style="text-decoration: none">
$i18n{backupChangeLocation}</a>
</p>
</cr-checkbox>
</div>
<div id="button-container">
<cr-button id="cancel-button" on-click="onCancelButtonClick_"
hidden="[[!canCancel_(state_)]]">
[[getCancelButtonLabel_(state_)]]
</cr-button>
<cr-button class="action-button" on-click="onActionButtonClick_"
aria-describedby="title" aria-details="prompt-message"
hidden="[[!canDoAction_(state_)]]">
[[getActionButtonLabel_(state_)]]
</cr-button>
</div>
</div>
|