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 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 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | 1x 1x 1x 1x 3x 1x 1x 3x 3x 1x 1x 1x 3x 3x 1x 1x 1x 3x 3x 1x 1x 3x 1x 3x 3x 1x 1x 3x 1x 1x 3x 1x 1x 3x 1x 3x 3x 1x 3x 1x 1x 1x 3x 1x 1x 3x 3x 3x 3x 3x 3x 1x 1x 3x 1x 3x 3x 3x 1x 3x 1x 1x 3x 1x 3x 3x 1x 1x 3x 9x 6x 3x 1x 1x 1x 3x 1x 3x 3x 1x 1x 1x 1x 3x 1x 1x 3x 1x 3x 1x 1x | <ng-container *mobxAutorun>
<app-tabs>
<a class="logo" routerLink="/"></a>
<h5 class="fake-link" routerLink="." i18n>
Submit
@if (selectedPlugin) {
<span>{{ selectedPlugin.name || selectedPlugin.tag }}</span>
}
</h5>
<a routerLink="/submit"
[class.current-tab]="store.submit.web && !store.submit.genId"
[queryParams]="{ url: url.value, tag: store.submit.withoutGenId }"
[replaceUrl]="true"
i18n-title title="ποΈ Link Post"
queryParamsHandling="merge" i18n>link</a>
<a routerLink="/submit/text"
[class.current-tab]="store.submit.text"
[queryParams]="{ url: null, tag: store.submit.withoutGenId }"
i18n-title title="ποΈ Text Post"
queryParamsHandling="merge" i18n>text</a>
<a routerLink="/submit/upload"
[class.current-tab]="store.submit.upload"
[queryParams]="{ to: null, url: null }"
i18n-title title="πΎοΈ Upload"
queryParamsHandling="merge" i18n>upload</a>
@if (!admin.isWikiExternal()) {
<a routerLink="/submit"
[class.current-tab]="store.submit.wiki"
[queryParams]="{ url: wikify, tag: store.submit.withoutGenId }"
[replaceUrl]="true"
i18n-title title="ποΈ Wiki Page"
queryParamsHandling="merge" i18n>wiki</a>
}
@if (admin.getTemplate('dm')) {
<a routerLink="/submit/dm"
[class.current-tab]="store.submit.subpage === 'dm' && !store.submit.dmPlugin"
[queryParams]="{ to: null, tag: null, url: null }"
i18n-title title="π¨οΈ Direct Message"
queryParamsHandling="merge" i18n>dm</a>
}
@for (p of store.submit.submitGenId; track p.tag) {
@if (p.config?.submitDm) {
<a routerLink="/submit/dm"
[class.current-tab]="store.submit.subpage === 'dm' && store.submit.to[0] === p.tag"
[queryParams]="{ to: p.tag, tag: null, url: null }"
[replaceUrl]="true"
[title]="p.name"
queryParamsHandling="merge">{{ p.config!.submit }}</a>
} @else if (p.config?.submitText) {
<a routerLink="/submit/text"
[class.current-tab]="store.submit.tags.includes(p.tag) && store.submit.url"
[queryParams]="{ tag: submitInternal(p.tag), url: genUrl }"
[replaceUrl]="true"
[title]="p.name"
queryParamsHandling="merge">{{ p.config!.submit }}</a>
} @else {
<a routerLink="/submit/web"
[class.current-tab]="store.submit.tags.includes(p.tag) && store.submit.url"
[queryParams]="{ tag: submitInternal(p.tag), url: genUrl }"
[replaceUrl]="true"
[title]="p.name"
queryParamsHandling="merge">{{ p.config!.submit }}</a>
}
}
</app-tabs>
<router-outlet></router-outlet>
@if (!store.submit.subpage) {
<div class="full-page-form">
<form class="form" [formGroup]="submitForm" (ngSubmit)="submit()">
@if (!store.submit.wiki && selectedPlugin) {
<span i18n>Type:</span>
<div>
<span>{{ selectedPlugin.name || selectedPlugin.tag }}</span>
@if (selectedPlugin.config?.description) {
<p class="description">
{{ selectedPlugin.config!.description }}
</p>
}
</div>
}
@if (store.submit.wiki) {
<span i18n>Type:</span>
<div>
<span i18n>Wiki</span>
<p class="description" i18n>
Create a text post that can be linked to via double bracket [[Wiki]] style.
</p>
</div>
}
@if (store.submit.wiki) {
<label for="url" class="big">Title:</label>
} @else {
<label for="url" class="big"></label>
}
<div class="form-array">
@if (store.submit.web) {
<app-select-plugin [(plugin)]="plugin"
[settings]="!!admin.getPluginSettings(store.submit.tags).length"></app-select-plugin>
}
@if (uploading) {
<progress class="grow" max="100" [value]="progress"></progress>
} @else {
<datalist [id]="listId">
@for (o of autocomplete; track o.value) {
<option [value]="o.value">{{ o.label }}</option>
}
</datalist>
<input id="url"
[placeholder]="placeholder"
class="big"
type="text"
size="1"
autocomplete="off"
[attr.list]="listId"
formControlName="url"
appAutofocus
(input)="search(url.value)"
(paste)="getUrlPlugin()">
}
@if (!store.submit.wiki) {
@if ((!plugin || plugin === 'plugin/qr') && admin.getPlugin('plugin/qr')) {
<app-qr-scanner [upload]="plugin === 'plugin/qr'" (data)="scanQr($event)"></app-qr-scanner>
}
@if (admin.getPlugin('plugin/file')) {
@switch (plugin) {
@case ( 'plugin/pdf') { <app-pdf-upload (data)="onUpload($event)"></app-pdf-upload> }
@case ('plugin/audio') { <app-audio-upload (data)="onUpload($event)"></app-audio-upload> }
@case ('plugin/video') { <app-video-upload (data)="onUpload($event)"></app-video-upload> }
@case ('plugin/image') { <app-image-upload (data)="onUpload($event)"></app-image-upload> }
}
}
}
</div>
@for (e of serverErrors; track e) {
<span><!-- Unexpected Error --></span>
<div class="error">{{ e }}</div>
}
<span><!-- Tags --></span>
<div class="tag-list form-array right">
@for (p of store.submit.tags | tagPreview | async; track p.tag) {
<a class="tag" [routerLink]="['/tag', p.tag]">{{ p.name || '#' + p.tag }}</a>
}
</div>
@if (!uploading) {
@if (existingRef) {
<br>
<app-ref [ref]="existingRef" [showToggle]="true"></app-ref>
}
<br>
<div class="validations">
@for (v of validations; track v.name) {
@if (v.passed) {
<div>β
οΈ {{ v.name }}</div>
} @else {
<div>βοΈ {{ v.name }}</div>
}
}
</div>
<span><!-- Buttons --></span>
<span class="buttons right">
<button type="submit" [disabled]="!submitForm.valid && !existingRef"
i18n-title title="Submit link"
i18n>@if (repost) { Repost } @else { Next }</button>
</span>
@if (responsesToUrl.content.length > 0) {
<span><!-- Title --></span>
<span i18n>Existing Responses:</span>
<span><!-- Existing responses --></span>
<div class="list-container">
@for (ref of responsesToUrl.content; track ref.url; let i = $index) {
<div class="list-number">{{ i + 1 }}</div>
<app-ref [ref]="ref" [showToggle]="true"></app-ref>
}
</div>
@if (responsesToUrl.page.totalPages > 1) {
<span><!-- show more --></span>
<a [routerLink]="['/ref', url.value, 'responses']"
class="load-more no-select" i18n>
see all
</a>
}
}
}
</form>
<span></span>
<div class="summary-box" [class.hidden-without-removing]="!store.submit.refs.length">
<h5 routerLink="./responses" i18n>Unsaved:</h5>
<div class="list-container">
@for (ref of store.submit.topRefs; track ref.url; let i = $index) {
<div class="list-number">{{ i + 1 }}</div>
<app-ref [ref]="ref" [showToggle]="true"></app-ref>
}
</div>
@if (store.submit.refs.length > store.submit.topRefs.length) {
<a routerLink="./submit/upload"
queryParamsHandling="merge"
class="load-more no-select" i18n>
more unsaved
</a>
}
</div>
</div>
}
</ng-container>
|