|
60 | 60 | <lht-switch-help switch-id="scopeA" label="リモートとして扱う" on-change="updateRemoteState"></lht-switch-help> |
61 | 61 | </div> |
62 | 62 |
|
63 | | - <div class="md-form-row md-form-row--nowrap"> |
| 63 | + <div id="branchBRow" class="md-form-row md-form-row--nowrap"> |
64 | 64 | <lht-text-field-help field-id="branchB" label="比較ブランチ" required placeholder="例: devel" help-text="比較対象のブランチです。2つのブランチ差分を表示します。例: devel / feature123。ローカルとして扱う場合は、ブランチ名に加えてコミットID(SHA)も指定できます。"></lht-text-field-help> |
65 | 65 | <lht-switch-help switch-id="scopeB" label="リモートとして扱う" on-change="updateRemoteState"></lht-switch-help> |
66 | 66 | </div> |
67 | 67 | </div> |
68 | 68 |
|
69 | 69 | <div class="md-section md-stack-md"> |
70 | 70 | <div class="md-choice-inline md-choice-text"> |
| 71 | + <lht-switch-help switch-id="useHeadWork" label="HEAD" on-change="updateWorkHeadState"> |
| 72 | + 作業側の比較対象に `HEAD` を使います。 |
| 73 | + </lht-switch-help> |
71 | 74 | <lht-switch-help switch-id="lockOrigin" label="リモート名は origin 固定" help-label="リモート名は origin 固定の説明" checked on-change="updateRemoteState"> |
72 | 75 | origin 固定で使う場合にオンにします。オフにすると任意のリモート名を入力できます。 |
73 | 76 | ふだんは origin を使うケースが多いです。 |
|
105 | 108 | <lht-command-block command-id="diffCmd"></lht-command-block> |
106 | 109 |
|
107 | 110 | <div class="md-section md-actions-row"> |
108 | | - <div class="md-actions-row__field"> |
109 | | - <lht-text-field-help field-id="repoUrl" label="リポジトリ URL" placeholder="例: https://github.com/igapyon/local-html-tools" help-text="Git 作業ブランチ一覧へ戻すときの保存先識別に使います。`git-work-branch-list` から遷移した場合は自動入力されます。"></lht-text-field-help> |
110 | | - </div> |
111 | 111 | <button id="saveToWorkBranchListBtn" type="button" class="md-button md-button--primary"> |
112 | 112 | <svg aria-hidden="true" viewBox="0 0 24 24" class="md-button__icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
113 | 113 | <path d="M4 7h16"></path> |
|
116 | 116 | </svg> |
117 | 117 | <span>一覧</span> |
118 | 118 | </button> |
| 119 | + <div class="md-actions-row__field"> |
| 120 | + <lht-text-field-help field-id="repoUrl" label="リポジトリ URL" placeholder="例: https://github.com/igapyon/local-html-tools" help-text="Git 作業一覧へ戻すときの保存先識別に使います。`git-work-list` から遷移した場合は自動入力されます。"></lht-text-field-help> |
| 121 | + </div> |
| 122 | + <button id="openGitHubCompareBtn" type="button" class="md-button md-button--compact md-button--surface" title="GitHub 比較を開く" aria-label="GitHub 比較を開く" disabled> |
| 123 | + <svg aria-hidden="true" viewBox="0 0 24 24" class="md-button__icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 124 | + <path d="M7 7h10"></path> |
| 125 | + <path d="M7 12h5"></path> |
| 126 | + <path d="M7 17h10"></path> |
| 127 | + <path d="M17 4l3 3-3 3"></path> |
| 128 | + </svg> |
| 129 | + <span>GitHub比較</span> |
| 130 | + </button> |
| 131 | + <button id="openRepoUrlBtn" type="button" class="md-icon-btn md-icon-btn--small md-icon-btn--surface" title="URL を開く" aria-label="URL を開く"> |
| 132 | + <svg viewBox="0 0 24 24" class="md-icon-small" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> |
| 133 | + <path d="M14 5h5v5"></path> |
| 134 | + <path d="M10 14 19 5"></path> |
| 135 | + <path d="M19 14v4a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h4"></path> |
| 136 | + </svg> |
| 137 | + </button> |
119 | 138 | </div> |
120 | 139 |
|
121 | 140 | <lht-toast id="toast"></lht-toast> |
|
0 commit comments