All files / app/component/debug debug.component.html

5.26% Statements 3/57
4.34% Branches 1/23
0% Functions 0/9
11.53% Lines 3/26

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 402x   1x         1x                                                                
@if (debug) {
  <details class="advanced">
    <summary><span i18n>Debug</span> @if (batchRunning) { <app-loading></app-loading> }</summary>
    <a class="fake-link" (click)="settingUser = !settingUser">user</a>
    @if (settingUser) {
      <span>
        <input #inlineUser
               i18n-placeholder placeholder="bob"
               (keydown)="$event.key === 'Enter' && setUser(inlineUser.value || 'bob') || true">
        <button type="button" (click)="setUser(inlineUser.value || 'bob')"></button>
      </span>
    }
    <a class="fake-link" (click)="generating = !generating">gen</a>
    @if (generating) {
      <span>
        <input #inlineGen
               value="100"
               (keydown)="$event.key === 'Enter' && gen(inlineGen.value) || true"
               type="number">
        <button type="button" (click)="gen(inlineGen.value)"></button>
      </span>
    }
    @if (!empty) {
      <a class="fake-link" (click)="sourcing = !sourcing">source</a>
      @if (sourcing) {
        <span>
          <input #inlineUrl
                 placeholder="url"
                 (keydown)="$event.key === 'Enter' && source(inlineUrl.value) || true"
                 type="url">
          <button type="button" (click)="source(inlineUrl.value)"></button>
        </span>
      }
    }
    @for (e of serverError; track e) {
      <div class="error">{{ e }}</div>
    }
  </details>
}