A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Improve 404 navigation and styling
shamoon9291c9818996
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlfindex e7dd14aab..28f4b06cb 100644--- a/src-ui/messages.xlf+++ b/src-ui/messages.xlf@@ -1247,7 +1247,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/dashboard/dashboard.component.html</context>- <context context-type="linenumber">27</context>+ <context context-type="linenumber">10</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/dashboard/widgets/widget-frame/widget-frame.component.html</context>@@ -2808,43 +2808,43 @@<source>Error retrieving metadata</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">395</context>+ <context context-type="linenumber">397</context></context-group></trans-unit><trans-unit id="3456881259945295697" datatype="html"><source>Error retrieving suggestions.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">417</context>+ <context context-type="linenumber">419</context></context-group></trans-unit><trans-unit id="8348337312757497317" datatype="html"><source>Document saved successfully.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">529</context>+ <context context-type="linenumber">533</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">537</context>+ <context context-type="linenumber">541</context></context-group></trans-unit><trans-unit id="448882439049417053" datatype="html"><source>Error saving document</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">542</context>+ <context context-type="linenumber">546</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">587</context>+ <context context-type="linenumber">591</context></context-group></trans-unit><trans-unit id="9021887951960049161" datatype="html"><source>Confirm delete</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">616</context>+ <context context-type="linenumber">620</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>@@ -2855,35 +2855,35 @@<source>Do you really want to delete document "<x id="PH" equiv-text="this.document.title"/>"?</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">617</context>+ <context context-type="linenumber">621</context></context-group></trans-unit><trans-unit id="6691075929777935948" datatype="html"><source>The files for this document will be deleted permanently. This operation cannot be undone.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">618</context>+ <context context-type="linenumber">622</context></context-group></trans-unit><trans-unit id="719892092227206532" datatype="html"><source>Delete document</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">620</context>+ <context context-type="linenumber">624</context></context-group></trans-unit><trans-unit id="1844801255494293730" datatype="html"><source>Error deleting document: <x id="PH" equiv-text="error.error?.detail ?? error.message ?? JSON.stringify(error)"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">640,642</context>+ <context context-type="linenumber">644,646</context></context-group></trans-unit><trans-unit id="7362691899087997122" datatype="html"><source>Redo OCR confirm</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">663</context>+ <context context-type="linenumber">667</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>@@ -2894,14 +2894,14 @@<source>This operation will permanently redo OCR for this document.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">664</context>+ <context context-type="linenumber">668</context></context-group></trans-unit><trans-unit id="5641451190833696892" datatype="html"><source>This operation cannot be undone.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">665</context>+ <context context-type="linenumber">669</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>@@ -2932,7 +2932,7 @@<source>Proceed</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">667</context>+ <context context-type="linenumber">671</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>@@ -2959,7 +2959,7 @@<source>Redo OCR operation will begin in the background. Close and re-open or reload this document after the operation has completed to see new content.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">675</context>+ <context context-type="linenumber">679</context></context-group></trans-unit><trans-unit id="8008978164775353960" datatype="html">@@ -2968,7 +2968,7 @@)"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">686,688</context>+ <context context-type="linenumber">690,692</context></context-group></trans-unit><trans-unit id="6857598786757174736" datatype="html">@@ -3629,14 +3629,14 @@<source>View "<x id="PH" equiv-text="this.list.activeSavedViewTitle"/>" saved successfully.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/document-list.component.ts</context>- <context context-type="linenumber">205</context>+ <context context-type="linenumber">207</context></context-group></trans-unit><trans-unit id="6837554170707123455" datatype="html"><source>View "<x id="PH" equiv-text="savedView.name"/>" created successfully.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/document-list.component.ts</context>- <context context-type="linenumber">246</context>+ <context context-type="linenumber">248</context></context-group></trans-unit><trans-unit id="5195932016807797291" datatype="html">@@ -3907,7 +3907,7 @@<source>Do you really want to delete the correspondent "<x id="PH" equiv-text="object.name"/>"?</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/correspondent-list/correspondent-list.component.ts</context>- <context context-type="linenumber">55</context>+ <context context-type="linenumber">67</context></context-group></trans-unit><trans-unit id="8084492669582894778" datatype="html">@@ -4903,11 +4903,18 @@<context context-type="linenumber">137</context></context-group></trans-unit>- <trans-unit id="181464970911903082" datatype="html">- <source>404 Not Found</source>+ <trans-unit id="2649252321173430744" datatype="html">+ <source>Not Found</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/not-found/not-found.component.html</context>- <context context-type="linenumber">7</context>+ <context context-type="linenumber">6</context>+ </context-group>+ </trans-unit>+ <trans-unit id="178520337056147266" datatype="html">+ <source>Go to Dashboard</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/not-found/not-found.component.html</context>+ <context context-type="linenumber">12</context></context-group></trans-unit><trans-unit id="2167862279705099846" datatype="html">@@ -5105,28 +5112,28 @@<source>Document already exists.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">16</context>+ <context context-type="linenumber">17</context></context-group></trans-unit><trans-unit id="6108404046106249255" datatype="html"><source>Document with ASN already exists.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">17</context>+ <context context-type="linenumber">18</context></context-group></trans-unit><trans-unit id="148389968432135849" datatype="html"><source>File not found.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">18</context>+ <context context-type="linenumber">19</context></context-group></trans-unit><trans-unit id="1520671543092565667" datatype="html"><source>Pre-consume script does not exist.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">19</context>+ <context context-type="linenumber">20</context></context-group><note priority="1" from="description">Pre-Consume is a term that appears like that in the documentation as well and does not need a specific translation</note></trans-unit>@@ -5134,7 +5141,7 @@<source>Error while executing pre-consume script.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">20</context>+ <context context-type="linenumber">21</context></context-group><note priority="1" from="description">Pre-Consume is a term that appears like that in the documentation as well and does not need a specific translation</note></trans-unit>@@ -5142,7 +5149,7 @@<source>Post-consume script does not exist.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">21</context>+ <context context-type="linenumber">22</context></context-group><note priority="1" from="description">Post-Consume is a term that appears like that in the documentation as well and does not need a specific translation</note></trans-unit>@@ -5150,7 +5157,7 @@<source>Error while executing post-consume script.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">22</context>+ <context context-type="linenumber">23</context></context-group><note priority="1" from="description">Post-Consume is a term that appears like that in the documentation as well and does not need a specific translation</note></trans-unit>@@ -5158,49 +5165,49 @@<source>Received new file.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">23</context>+ <context context-type="linenumber">24</context></context-group></trans-unit><trans-unit id="7337565919209746135" datatype="html"><source>File type not supported.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">24</context>+ <context context-type="linenumber">25</context></context-group></trans-unit><trans-unit id="5002399167376099234" datatype="html"><source>Processing document...</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">25</context>+ <context context-type="linenumber">26</context></context-group></trans-unit><trans-unit id="1085975194762600381" datatype="html"><source>Generating thumbnail...</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">26</context>+ <context context-type="linenumber">27</context></context-group></trans-unit><trans-unit id="3280851677698431426" datatype="html"><source>Retrieving date from document...</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">27</context>+ <context context-type="linenumber">28</context></context-group></trans-unit><trans-unit id="7162102384876037296" datatype="html"><source>Saving document...</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">28</context>+ <context context-type="linenumber">29</context></context-group></trans-unit><trans-unit id="4550450765009165976" datatype="html"><source>Finished.</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/consumer-status.service.ts</context>- <context context-type="linenumber">29</context>+ <context context-type="linenumber">30</context></context-group></trans-unit><trans-unit id="5523607037798226031" datatype="html">diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.tsindex 86b6d29c4..7a94f4316 100644--- a/src-ui/src/app/app.module.ts+++ b/src-ui/src/app/app.module.ts@@ -92,6 +92,7 @@ import { PermissionsDialogComponent } from './components/common/permissions-dialimport { PermissionsFormComponent } from './components/common/input/permissions/permissions-form/permissions-form.component'import { PermissionsFilterDropdownComponent } from './components/common/permissions-filter-dropdown/permissions-filter-dropdown.component'import { UsernamePipe } from './pipes/username.pipe'+import { LogoComponent } from './components/common/logo/logo.component'import localeAr from '@angular/common/locales/ar'import localeBe from '@angular/common/locales/be'@@ -221,6 +222,7 @@ function initializeApp(settings: SettingsService) {PermissionsFormComponent,PermissionsFilterDropdownComponent,UsernamePipe,+ LogoComponent,],imports: [BrowserModule,diff --git a/src-ui/src/app/components/common/logo/logo.component.html b/src-ui/src/app/components/common/logo/logo.component.htmlnew file mode 100644index 000000000..6c688902e--- /dev/null+++ b/src-ui/src/app/components/common/logo/logo.component.html@@ -0,0 +1,18 @@+<svg [class]="getClasses()" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2897.4 896.6" [attr.height]="height">+ <path class="leaf" d="M140,713.7c-3.4-16.4-10.3-49.1-11.2-49.1c-145.7-87.1-128.4-238-80.2-324.2C59,449,251.2,524,139.1,656.8 c-0.9,1.7,5.2,22.4,10.3,41.4c22.4-37.9,56-83.6,54.3-87.9C65.9,273.9,496.9,248.1,586.6,39.4c40.5,201.8-20.7,513.9-367.2,593.2 c-1.7,0.9-62.9,108.6-65.5,109.5c0-1.7-25.9-0.9-22.4-9.5C133.1,727.4,136.6,720.6,140,713.7L140,713.7z M135.7,632.6 c44-50.9-7.8-137.9-38.8-166.4C149.5,556.7,146,609.3,135.7,632.6L135.7,632.6z" transform="translate(0)" style="fill:#17541f"/>+ <g class="text" style="fill:#000">+ <path d="M1022.3,428.7c-17.8-19.9-42.7-29.8-74.7-29.8c-22.3,0-42.4,5.7-60.5,17.3c-18.1,11.6-32.3,27.5-42.5,47.8 s-15.3,42.9-15.3,67.8c0,24.9,5.1,47.5,15.3,67.8c10.3,20.3,24.4,36.2,42.5,47.8c18.1,11.5,38.3,17.3,60.5,17.3 c32,0,56.9-9.9,74.7-29.8v20.4v0.2h84.5V408.3h-84.5V428.7z M1010.5,575c-10.2,11.7-23.6,17.6-40.2,17.6s-29.9-5.9-40-17.6 s-15.1-26.1-15.1-43.3c0-17.1,5-31.6,15.1-43.3s23.4-17.6,40-17.6c16.6,0,30,5.9,40.2,17.6s15.3,26.1,15.3,43.3 S1020.7,563.3,1010.5,575z" transform="translate(0)"/>+ <path d="M1381,416.1c-18.1-11.5-38.3-17.3-60.5-17.4c-32,0-56.9,9.9-74.7,29.8v-20.4h-84.5v390.7h84.5v-164 c17.8,19.9,42.7,29.8,74.7,29.8c22.3,0,42.4-5.7,60.5-17.3s32.3-27.5,42.5-47.8c10.2-20.3,15.3-42.9,15.3-67.8s-5.1-47.5-15.3-67.8 C1413.2,443.6,1399.1,427.7,1381,416.1z M1337.9,575c-10.1,11.7-23.4,17.6-40,17.6s-29.9-5.9-40-17.6s-15.1-26.1-15.1-43.3 c0-17.1,5-31.6,15.1-43.3s23.4-17.6,40-17.6s29.9,5.9,40,17.6s15.1,26.1,15.1,43.3S1347.9,563.3,1337.9,575z" transform="translate(0)"/>+ <path d="M1672.2,416.8c-20.5-12-43-18-67.6-18c-24.9,0-47.6,5.9-68,17.6c-20.4,11.7-36.5,27.7-48.2,48s-17.6,42.7-17.6,67.3 c0.3,25.2,6.2,47.8,17.8,68c11.5,20.2,28,36,49.3,47.6c21.3,11.5,45.9,17.3,73.8,17.3c48.6,0,86.8-14.7,114.7-44l-52.5-48.9 c-8.6,8.3-17.6,14.6-26.7,19c-9.3,4.3-21.1,6.4-35.3,6.4c-11.6,0-22.5-3.6-32.7-10.9c-10.3-7.3-17.1-16.5-20.7-27.8h180l0.4-11.6 c0-29.6-6-55.7-18-78.2S1692.6,428.8,1672.2,416.8z M1558.3,503.2c2.1-12.1,7.5-21.8,16.2-29.1s18.7-10.9,30-10.9 s21.2,3.6,29.8,10.9c8.6,7.2,13.9,16.9,16,29.1H1558.3z" transform="translate(0)"/>+ <path d="M1895.3,411.7c-11,5.6-20.3,13.7-28,24.4h-0.1v-28h-84.5v247.3h84.5V536.3c0-22.6,4.7-38.1,14.2-46.5 c9.5-8.5,22.7-12.7,39.6-12.7c6.2,0,13.5,1,21.8,3.1l10.7-72c-5.9-3.3-14.5-4.9-25.8-4.9C1917.1,403.3,1906.3,406.1,1895.3,411.7z" transform="translate(0)"/>+ <rect x="1985" y="277.4" width="84.5" height="377.8" transform="translate(0)"/>+ <path d="M2313.2,416.8c-20.5-12-43-18-67.6-18c-24.9,0-47.6,5.9-68,17.6s-36.5,27.7-48.2,48c-11.7,20.3-17.6,42.7-17.6,67.3 c0.3,25.2,6.2,47.8,17.8,68c11.5,20.2,28,36,49.3,47.6c21.3,11.5,45.9,17.3,73.8,17.3c48.6,0,86.8-14.7,114.7-44l-52.5-48.9 c-8.6,8.3-17.6,14.6-26.7,19c-9.3,4.3-21.1,6.4-35.3,6.4c-11.6,0-22.5-3.6-32.7-10.9c-10.3-7.3-17.1-16.5-20.7-27.8h180l0.4-11.6 c0-29.6-6-55.7-18-78.2S2333.6,428.8,2313.2,416.8z M2199.3,503.2c2.1-12.1,7.5-21.8,16.2-29.1s18.7-10.9,30-10.9 s21.2,3.6,29.8,10.9c8.6,7.2,13.9,16.9,16,29.1H2199.3z" transform="translate(0)"/>+ <path d="M2583.6,507.7c-13.8-4.4-30.6-8.1-50.5-11.1c-15.1-2.7-26.1-5.2-32.9-7.6c-6.8-2.4-10.2-6.1-10.2-11.1s2.3-8.7,6.7-10.9 c4.4-2.2,11.5-3.3,21.3-3.3c11.6,0,24.3,2.4,38.1,7.2c13.9,4.8,26.2,11,36.9,18.4l32.4-58.2c-11.3-7.4-26.2-14.7-44.9-21.8 c-18.7-7.1-39.6-10.7-62.7-10.7c-33.7,0-60.2,7.6-79.3,22.7c-19.1,15.1-28.7,36.1-28.7,63.1c0,19,4.8,33.9,14.4,44.7 c9.6,10.8,21,18.5,34,22.9c13.1,4.5,28.9,8.3,47.6,11.6c14.6,2.7,25.1,5.3,31.6,7.8s9.8,6.5,9.8,11.8c0,10.4-9.7,15.6-29.3,15.6 c-13.7,0-28.5-2.3-44.7-6.9c-16.1-4.6-29.2-11.3-39.3-20.2l-33.3,60c9.2,7.4,24.6,14.7,46.2,22c21.7,7.3,45.2,10.9,70.7,10.9 c34.7,0,62.9-7.4,84.5-22.4c21.7-15,32.5-37.3,32.5-66.9c0-19.3-5-34.2-15.1-44.9S2597.4,512.1,2583.6,507.7z" transform="translate(0)"/>+ <path d="M2883.4,575.3c0-19.3-5-34.2-15.1-44.9s-22-18.3-35.8-22.7c-13.8-4.4-30.6-8.1-50.5-11.1c-15.1-2.7-26.1-5.2-32.9-7.6 c-6.8-2.4-10.2-6.1-10.2-11.1s2.3-8.7,6.7-10.9c4.4-2.2,11.5-3.3,21.3-3.3c11.6,0,24.3,2.4,38.1,7.2c13.9,4.8,26.2,11,36.9,18.4 l32.4-58.2c-11.3-7.4-26.2-14.7-44.9-21.8c-18.7-7.1-39.6-10.7-62.7-10.7c-33.7,0-60.2,7.6-79.3,22.7 c-19.1,15.1-28.7,36.1-28.7,63.1c0,19,4.8,33.9,14.4,44.7c9.6,10.8,21,18.5,34,22.9c13.1,4.5,28.9,8.3,47.6,11.6 c14.6,2.7,25.1,5.3,31.6,7.8s9.8,6.5,9.8,11.8c0,10.4-9.7,15.6-29.3,15.6c-13.7,0-28.5-2.3-44.7-6.9c-16.1-4.6-29.2-11.3-39.3-20.2 l-33.3,60c9.2,7.4,24.6,14.7,46.2,22c21.7,7.3,45.2,10.9,70.7,10.9c34.7,0,62.9-7.4,84.5-22.4 C2872.6,627.2,2883.4,604.9,2883.4,575.3z" transform="translate(0)"/>+ <rect x="2460.7" y="738.7" width="59.6" height="17.2" transform="translate(0)"/>+ <path d="M2596.5,706.4c-5.7,0-11,1-15.8,3s-9,5-12.5,8.9v-9.4h-19.4v93.6h19.4v-52c0-8.6,2.1-15.3,6.3-20c4.2-4.7,9.5-7.1,15.9-7.1 c7.8,0,13.4,2.3,16.8,6.7c3.4,4.5,5.1,11.3,5.1,20.5v52h19.4v-56.8c0-12.8-3.2-22.6-9.5-29.3 C2615.8,709.8,2607.3,706.4,2596.5,706.4z" transform="translate(0)"/>+ <path d="M2733.8,717.7c-3.6-3.4-7.9-6.1-13.1-8.2s-10.6-3.1-16.2-3.1c-8.7,0-16.5,2.1-23.5,6.3s-12.5,10-16.5,17.3 c-4,7.3-6,15.4-6,24.4c0,8.9,2,17.1,6,24.3c4,7.3,9.5,13,16.5,17.2s14.9,6.3,23.5,6.3c5.6,0,11-1,16.2-3.1 c5.1-2.1,9.5-4.8,13.1-8.2v24.4c0,8.5-2.5,14.8-7.6,18.7c-5,3.9-11,5.9-18,5.9c-6.7,0-12.4-1.6-17.3-4.7c-4.8-3.1-7.6-7.7-8.3-13.8 h-19.4c0.6,7.7,2.9,14.2,7.1,19.5s9.6,9.3,16.2,12c6.6,2.7,13.8,4,21.7,4c12.8,0,23.5-3.4,32-10.1c8.6-6.7,12.8-17.1,12.8-31.1 V708.9h-19.2V717.7z M2732.2,770.1c-2.5,4.7-6,8.3-10.4,11.2c-4.4,2.7-9.4,4-14.9,4c-5.7,0-10.8-1.4-15.2-4.3s-7.8-6.7-10.2-11.4 c-2.3-4.8-3.5-9.8-3.5-15.2c0-5.5,1.1-10.6,3.5-15.3s5.8-8.5,10.2-11.3s9.5-4.2,15.2-4.2c5.5,0,10.5,1.4,14.9,4s7.9,6.3,10.4,11 s3.8,10,3.8,15.8S2734.7,765.4,2732.2,770.1z" transform="translate(0)"/>+ <polygon points="2867.9,708.9 2846.5,708.9 2820.9,741.9 2795.5,708.9 2773.1,708.9 2809.1,755 2771.5,802.5 2792.9,802.5 2820.1,767.9 2847.2,802.6 2869.6,802.6 2832,754.4 " transform="translate(0)"/>+ <path d="M757.6,293.7c-20-10.8-42.6-16.2-67.8-16.2H600c-8.5,39.2-21.1,76.4-37.6,111.3c-9.9,20.8-21.1,40.6-33.6,59.4v207.2h88.9 V521.5h72c25.2,0,47.8-5.4,67.8-16.2s35.7-25.6,47.1-44.2c11.4-18.7,17.1-39.1,17.1-61.3c0.1-22.7-5.6-43.3-17-61.9 C793.3,319.2,777.6,304.5,757.6,293.7z M716.6,434.3c-9.3,8.9-21.6,13.3-36.7,13.3l-62.2,0.4v-92.5l62.2-0.4 c15.1,0,27.3,4.4,36.7,13.3c9.4,8.9,14,19.9,14,32.9C730.6,414.5,726,425.4,716.6,434.3z" transform="translate(0)"/>+ </g>+</svg>diff --git a/src-ui/src/app/components/common/logo/logo.component.scss b/src-ui/src/app/components/common/logo/logo.component.scssnew file mode 100644index 000000000..e69de29bbdiff --git a/src-ui/src/app/components/common/logo/logo.component.spec.ts b/src-ui/src/app/components/common/logo/logo.component.spec.tsnew file mode 100644index 000000000..118e0e40e--- /dev/null+++ b/src-ui/src/app/components/common/logo/logo.component.spec.ts@@ -0,0 +1,36 @@+import { ComponentFixture, TestBed } from '@angular/core/testing'++import { LogoComponent } from './logo.component'+import { By } from '@angular/platform-browser'++describe('LogoComponent', () => {+ let component: LogoComponent+ let fixture: ComponentFixture<LogoComponent>++ beforeEach(() => {+ TestBed.configureTestingModule({+ declarations: [LogoComponent],+ })+ fixture = TestBed.createComponent(LogoComponent)+ component = fixture.componentInstance+ fixture.detectChanges()+ })++ it('should support extra classes', () => {+ expect(fixture.debugElement.queryAll(By.css('.foo'))).toHaveLength(0)+ component.extra_classes = 'foo'+ fixture.detectChanges()+ expect(fixture.debugElement.queryAll(By.css('.foo'))).toHaveLength(1)+ })++ it('should support setting height', () => {+ expect(fixture.debugElement.query(By.css('svg')).attributes.height).toEqual(+ '6em'+ )+ component.height = '10em'+ fixture.detectChanges()+ expect(fixture.debugElement.query(By.css('svg')).attributes.height).toEqual(+ '10em'+ )+ })+})diff --git a/src-ui/src/app/components/common/logo/logo.component.ts b/src-ui/src/app/components/common/logo/logo.component.tsnew file mode 100644index 000000000..0c5ecefda--- /dev/null+++ b/src-ui/src/app/components/common/logo/logo.component.ts@@ -0,0 +1,18 @@+import { Component, Input } from '@angular/core'++@Component({+ selector: 'app-logo',+ templateUrl: './logo.component.html',+ styleUrls: ['./logo.component.scss'],+})+export class LogoComponent {+ @Input()+ extra_classes: string++ @Input()+ height = '6em'++ getClasses() {+ return ['logo'].concat(this.extra_classes).join(' ')+ }+}diff --git a/src-ui/src/app/components/dashboard/dashboard.component.html b/src-ui/src/app/components/dashboard/dashboard.component.htmlindex f2dcf855e..db396a62b 100644--- a/src-ui/src/app/components/dashboard/dashboard.component.html+++ b/src-ui/src/app/components/dashboard/dashboard.component.html@@ -1,22 +1,5 @@<app-page-header title="Dashboard" [subTitle]="subtitle" i18n-title>- <svg class="logo d-none d-md-block" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2897.4 896.6" height="6em">- <path class="leaf" d="M140,713.7c-3.4-16.4-10.3-49.1-11.2-49.1c-145.7-87.1-128.4-238-80.2-324.2C59,449,251.2,524,139.1,656.8 c-0.9,1.7,5.2,22.4,10.3,41.4c22.4-37.9,56-83.6,54.3-87.9C65.9,273.9,496.9,248.1,586.6,39.4c40.5,201.8-20.7,513.9-367.2,593.2 c-1.7,0.9-62.9,108.6-65.5,109.5c0-1.7-25.9-0.9-22.4-9.5C133.1,727.4,136.6,720.6,140,713.7L140,713.7z M135.7,632.6 c44-50.9-7.8-137.9-38.8-166.4C149.5,556.7,146,609.3,135.7,632.6L135.7,632.6z" transform="translate(0)" style="fill:#17541f"/>- <g class="text" style="fill:#000">- <path d="M1022.3,428.7c-17.8-19.9-42.7-29.8-74.7-29.8c-22.3,0-42.4,5.7-60.5,17.3c-18.1,11.6-32.3,27.5-42.5,47.8 s-15.3,42.9-15.3,67.8c0,24.9,5.1,47.5,15.3,67.8c10.3,20.3,24.4,36.2,42.5,47.8c18.1,11.5,38.3,17.3,60.5,17.3 c32,0,56.9-9.9,74.7-29.8v20.4v0.2h84.5V408.3h-84.5V428.7z M1010.5,575c-10.2,11.7-23.6,17.6-40.2,17.6s-29.9-5.9-40-17.6 s-15.1-26.1-15.1-43.3c0-17.1,5-31.6,15.1-43.3s23.4-17.6,40-17.6c16.6,0,30,5.9,40.2,17.6s15.3,26.1,15.3,43.3 S1020.7,563.3,1010.5,575z" transform="translate(0)"/>- <path d="M1381,416.1c-18.1-11.5-38.3-17.3-60.5-17.4c-32,0-56.9,9.9-74.7,29.8v-20.4h-84.5v390.7h84.5v-164 c17.8,19.9,42.7,29.8,74.7,29.8c22.3,0,42.4-5.7,60.5-17.3s32.3-27.5,42.5-47.8c10.2-20.3,15.3-42.9,15.3-67.8s-5.1-47.5-15.3-67.8 C1413.2,443.6,1399.1,427.7,1381,416.1z M1337.9,575c-10.1,11.7-23.4,17.6-40,17.6s-29.9-5.9-40-17.6s-15.1-26.1-15.1-43.3 c0-17.1,5-31.6,15.1-43.3s23.4-17.6,40-17.6s29.9,5.9,40,17.6s15.1,26.1,15.1,43.3S1347.9,563.3,1337.9,575z" transform="translate(0)"/>- <path d="M1672.2,416.8c-20.5-12-43-18-67.6-18c-24.9,0-47.6,5.9-68,17.6c-20.4,11.7-36.5,27.7-48.2,48s-17.6,42.7-17.6,67.3 c0.3,25.2,6.2,47.8,17.8,68c11.5,20.2,28,36,49.3,47.6c21.3,11.5,45.9,17.3,73.8,17.3c48.6,0,86.8-14.7,114.7-44l-52.5-48.9 c-8.6,8.3-17.6,14.6-26.7,19c-9.3,4.3-21.1,6.4-35.3,6.4c-11.6,0-22.5-3.6-32.7-10.9c-10.3-7.3-17.1-16.5-20.7-27.8h180l0.4-11.6 c0-29.6-6-55.7-18-78.2S1692.6,428.8,1672.2,416.8z M1558.3,503.2c2.1-12.1,7.5-21.8,16.2-29.1s18.7-10.9,30-10.9 s21.2,3.6,29.8,10.9c8.6,7.2,13.9,16.9,16,29.1H1558.3z" transform="translate(0)"/>- <path d="M1895.3,411.7c-11,5.6-20.3,13.7-28,24.4h-0.1v-28h-84.5v247.3h84.5V536.3c0-22.6,4.7-38.1,14.2-46.5 c9.5-8.5,22.7-12.7,39.6-12.7c6.2,0,13.5,1,21.8,3.1l10.7-72c-5.9-3.3-14.5-4.9-25.8-4.9C1917.1,403.3,1906.3,406.1,1895.3,411.7z" transform="translate(0)"/>- <rect x="1985" y="277.4" width="84.5" height="377.8" transform="translate(0)"/>- <path d="M2313.2,416.8c-20.5-12-43-18-67.6-18c-24.9,0-47.6,5.9-68,17.6s-36.5,27.7-48.2,48c-11.7,20.3-17.6,42.7-17.6,67.3 c0.3,25.2,6.2,47.8,17.8,68c11.5,20.2,28,36,49.3,47.6c21.3,11.5,45.9,17.3,73.8,17.3c48.6,0,86.8-14.7,114.7-44l-52.5-48.9 c-8.6,8.3-17.6,14.6-26.7,19c-9.3,4.3-21.1,6.4-35.3,6.4c-11.6,0-22.5-3.6-32.7-10.9c-10.3-7.3-17.1-16.5-20.7-27.8h180l0.4-11.6 c0-29.6-6-55.7-18-78.2S2333.6,428.8,2313.2,416.8z M2199.3,503.2c2.1-12.1,7.5-21.8,16.2-29.1s18.7-10.9,30-10.9 s21.2,3.6,29.8,10.9c8.6,7.2,13.9,16.9,16,29.1H2199.3z" transform="translate(0)"/>- <path d="M2583.6,507.7c-13.8-4.4-30.6-8.1-50.5-11.1c-15.1-2.7-26.1-5.2-32.9-7.6c-6.8-2.4-10.2-6.1-10.2-11.1s2.3-8.7,6.7-10.9 c4.4-2.2,11.5-3.3,21.3-3.3c11.6,0,24.3,2.4,38.1,7.2c13.9,4.8,26.2,11,36.9,18.4l32.4-58.2c-11.3-7.4-26.2-14.7-44.9-21.8 c-18.7-7.1-39.6-10.7-62.7-10.7c-33.7,0-60.2,7.6-79.3,22.7c-19.1,15.1-28.7,36.1-28.7,63.1c0,19,4.8,33.9,14.4,44.7 c9.6,10.8,21,18.5,34,22.9c13.1,4.5,28.9,8.3,47.6,11.6c14.6,2.7,25.1,5.3,31.6,7.8s9.8,6.5,9.8,11.8c0,10.4-9.7,15.6-29.3,15.6 c-13.7,0-28.5-2.3-44.7-6.9c-16.1-4.6-29.2-11.3-39.3-20.2l-33.3,60c9.2,7.4,24.6,14.7,46.2,22c21.7,7.3,45.2,10.9,70.7,10.9 c34.7,0,62.9-7.4,84.5-22.4c21.7-15,32.5-37.3,32.5-66.9c0-19.3-5-34.2-15.1-44.9S2597.4,512.1,2583.6,507.7z" transform="translate(0)"/>- <path d="M2883.4,575.3c0-19.3-5-34.2-15.1-44.9s-22-18.3-35.8-22.7c-13.8-4.4-30.6-8.1-50.5-11.1c-15.1-2.7-26.1-5.2-32.9-7.6 c-6.8-2.4-10.2-6.1-10.2-11.1s2.3-8.7,6.7-10.9c4.4-2.2,11.5-3.3,21.3-3.3c11.6,0,24.3,2.4,38.1,7.2c13.9,4.8,26.2,11,36.9,18.4 l32.4-58.2c-11.3-7.4-26.2-14.7-44.9-21.8c-18.7-7.1-39.6-10.7-62.7-10.7c-33.7,0-60.2,7.6-79.3,22.7 c-19.1,15.1-28.7,36.1-28.7,63.1c0,19,4.8,33.9,14.4,44.7c9.6,10.8,21,18.5,34,22.9c13.1,4.5,28.9,8.3,47.6,11.6 c14.6,2.7,25.1,5.3,31.6,7.8s9.8,6.5,9.8,11.8c0,10.4-9.7,15.6-29.3,15.6c-13.7,0-28.5-2.3-44.7-6.9c-16.1-4.6-29.2-11.3-39.3-20.2 l-33.3,60c9.2,7.4,24.6,14.7,46.2,22c21.7,7.3,45.2,10.9,70.7,10.9c34.7,0,62.9-7.4,84.5-22.4 C2872.6,627.2,2883.4,604.9,2883.4,575.3z" transform="translate(0)"/>- <rect x="2460.7" y="738.7" width="59.6" height="17.2" transform="translate(0)"/>- <path d="M2596.5,706.4c-5.7,0-11,1-15.8,3s-9,5-12.5,8.9v-9.4h-19.4v93.6h19.4v-52c0-8.6,2.1-15.3,6.3-20c4.2-4.7,9.5-7.1,15.9-7.1 c7.8,0,13.4,2.3,16.8,6.7c3.4,4.5,5.1,11.3,5.1,20.5v52h19.4v-56.8c0-12.8-3.2-22.6-9.5-29.3 C2615.8,709.8,2607.3,706.4,2596.5,706.4z" transform="translate(0)"/>- <path d="M2733.8,717.7c-3.6-3.4-7.9-6.1-13.1-8.2s-10.6-3.1-16.2-3.1c-8.7,0-16.5,2.1-23.5,6.3s-12.5,10-16.5,17.3 c-4,7.3-6,15.4-6,24.4c0,8.9,2,17.1,6,24.3c4,7.3,9.5,13,16.5,17.2s14.9,6.3,23.5,6.3c5.6,0,11-1,16.2-3.1 c5.1-2.1,9.5-4.8,13.1-8.2v24.4c0,8.5-2.5,14.8-7.6,18.7c-5,3.9-11,5.9-18,5.9c-6.7,0-12.4-1.6-17.3-4.7c-4.8-3.1-7.6-7.7-8.3-13.8 h-19.4c0.6,7.7,2.9,14.2,7.1,19.5s9.6,9.3,16.2,12c6.6,2.7,13.8,4,21.7,4c12.8,0,23.5-3.4,32-10.1c8.6-6.7,12.8-17.1,12.8-31.1 V708.9h-19.2V717.7z M2732.2,770.1c-2.5,4.7-6,8.3-10.4,11.2c-4.4,2.7-9.4,4-14.9,4c-5.7,0-10.8-1.4-15.2-4.3s-7.8-6.7-10.2-11.4 c-2.3-4.8-3.5-9.8-3.5-15.2c0-5.5,1.1-10.6,3.5-15.3s5.8-8.5,10.2-11.3s9.5-4.2,15.2-4.2c5.5,0,10.5,1.4,14.9,4s7.9,6.3,10.4,11 s3.8,10,3.8,15.8S2734.7,765.4,2732.2,770.1z" transform="translate(0)"/>- <polygon points="2867.9,708.9 2846.5,708.9 2820.9,741.9 2795.5,708.9 2773.1,708.9 2809.1,755 2771.5,802.5 2792.9,802.5 2820.1,767.9 2847.2,802.6 2869.6,802.6 2832,754.4 " transform="translate(0)"/>- <path d="M757.6,293.7c-20-10.8-42.6-16.2-67.8-16.2H600c-8.5,39.2-21.1,76.4-37.6,111.3c-9.9,20.8-21.1,40.6-33.6,59.4v207.2h88.9 V521.5h72c25.2,0,47.8-5.4,67.8-16.2s35.7-25.6,47.1-44.2c11.4-18.7,17.1-39.1,17.1-61.3c0.1-22.7-5.6-43.3-17-61.9 C793.3,319.2,777.6,304.5,757.6,293.7z M716.6,434.3c-9.3,8.9-21.6,13.3-36.7,13.3l-62.2,0.4v-92.5l62.2-0.4 c15.1,0,27.3,4.4,36.7,13.3c9.4,8.9,14,19.9,14,32.9C730.6,414.5,726,425.4,716.6,434.3z" transform="translate(0)"/>- </g>- </svg>+ <app-logo extra_classes="d-none d-md-block"></app-logo></app-page-header><div class="row">diff --git a/src-ui/src/app/components/dashboard/dashboard.component.spec.ts b/src-ui/src/app/components/dashboard/dashboard.component.spec.tsindex 911565526..6d100510d 100644--- a/src-ui/src/app/components/dashboard/dashboard.component.spec.ts+++ b/src-ui/src/app/components/dashboard/dashboard.component.spec.ts@@ -16,6 +16,7 @@ import { IfPermissionsDirective } from 'src/app/directives/if-permissions.directimport { NgxFileDropModule } from 'ngx-file-drop'import { RouterTestingModule } from '@angular/router/testing'import { TourNgBootstrapModule, TourService } from 'ngx-ui-tour-ng-bootstrap'+import { LogoComponent } from '../common/logo/logo.component'describe('DashboardComponent', () => {let component: DashboardComponent@@ -33,6 +34,7 @@ describe('DashboardComponent', () => {UploadFileWidgetComponent,IfPermissionsDirective,SavedViewWidgetComponent,+ LogoComponent,],providers: [PermissionsGuard,diff --git a/src-ui/src/app/components/document-asn/document-asn.component.spec.ts b/src-ui/src/app/components/document-asn/document-asn.component.spec.tsindex 62b1113db..c8ad0d13d 100644--- a/src-ui/src/app/components/document-asn/document-asn.component.spec.ts+++ b/src-ui/src/app/components/document-asn/document-asn.component.spec.ts@@ -53,6 +53,6 @@ describe('DocumentAsnComponent', () => {.mockReturnValue(of(convertToParamMap({ id: '5578' })))const navigateSpy = jest.spyOn(router, 'navigate')component.ngOnInit()- expect(navigateSpy).toHaveBeenCalledWith(['404'])+ expect(navigateSpy).toHaveBeenCalledWith(['404'], { replaceUrl: true })})})diff --git a/src-ui/src/app/components/document-asn/document-asn.component.ts b/src-ui/src/app/components/document-asn/document-asn.component.tsindex 4fb9f474a..6003f1621 100644--- a/src-ui/src/app/components/document-asn/document-asn.component.ts+++ b/src-ui/src/app/components/document-asn/document-asn.component.ts@@ -25,7 +25,9 @@ export class DocumentAsnComponent implements OnInit {if (documentId.length == 1) {this.router.navigate(['documents', documentId[0]])} else {- this.router.navigate(['404'])+ this.router.navigate(['404'], {+ replaceUrl: true,+ })}})})diff --git a/src-ui/src/app/components/document-detail/document-detail.component.spec.ts b/src-ui/src/app/components/document-detail/document-detail.component.spec.tsindex dee1435b7..bbee477cc 100644--- a/src-ui/src/app/components/document-detail/document-detail.component.spec.ts+++ b/src-ui/src/app/components/document-detail/document-detail.component.spec.ts@@ -355,14 +355,14 @@ describe('DocumentDetailComponent', () => {.mockReturnValueOnce(throwError(() => new Error('unable to discard')))component.discard()fixture.detectChanges()- expect(navigateSpy).toHaveBeenCalledWith(['404'])+ expect(navigateSpy).toHaveBeenCalledWith(['404'], { replaceUrl: true })})it('should 404 on invalid id', () => {jest.spyOn(documentService, 'get').mockReturnValueOnce(of(null))const navigateSpy = jest.spyOn(router, 'navigate')fixture.detectChanges()- expect(navigateSpy).toHaveBeenCalledWith(['404'])+ expect(navigateSpy).toHaveBeenCalledWith(['404'], { replaceUrl: true })})it('should support save, close and show success toast', () => {diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.tsindex 7a385bebe..7337028da 100644--- a/src-ui/src/app/components/document-detail/document-detail.component.ts+++ b/src-ui/src/app/components/document-detail/document-detail.component.ts@@ -341,7 +341,9 @@ export class DocumentDetailComponentthis.openDocumentService.setDirty(doc, dirty)},error: (error) => {- this.router.navigate(['404'])+ this.router.navigate(['404'], {+ replaceUrl: true,+ })},})@@ -513,7 +515,9 @@ export class DocumentDetailComponentthis.openDocumentService.setDirty(doc, false)},error: () => {- this.router.navigate(['404'])+ this.router.navigate(['404'], {+ replaceUrl: true,+ })},})}diff --git a/src-ui/src/app/components/document-list/document-list.component.spec.ts b/src-ui/src/app/components/document-list/document-list.component.spec.tsindex 2b14747bf..6e6dd8f6c 100644--- a/src-ui/src/app/components/document-list/document-list.component.spec.ts+++ b/src-ui/src/app/components/document-list/document-list.component.spec.ts@@ -259,7 +259,7 @@ describe('DocumentListComponent', () => {.mockReturnValue(of(convertToParamMap({ id: '10' })))const navigateSpy = jest.spyOn(router, 'navigate')fixture.detectChanges()- expect(navigateSpy).toHaveBeenCalledWith(['404'])+ expect(navigateSpy).toHaveBeenCalledWith(['404'], { replaceUrl: true })})it('should load saved view from query params', () => {diff --git a/src-ui/src/app/components/document-list/document-list.component.ts b/src-ui/src/app/components/document-list/document-list.component.tsindex 32431167b..25a95401f 100644--- a/src-ui/src/app/components/document-list/document-list.component.ts+++ b/src-ui/src/app/components/document-list/document-list.component.ts@@ -153,7 +153,9 @@ export class DocumentListComponent.pipe(takeUntil(this.unsubscribeNotifier)).subscribe(({ view }) => {if (!view) {- this.router.navigate(['404'])+ this.router.navigate(['404'], {+ replaceUrl: true,+ })return}this.unmodifiedSavedView = viewdiff --git a/src-ui/src/app/components/not-found/not-found.component.html b/src-ui/src/app/components/not-found/not-found.component.htmlindex 913132d1b..4b4dc7c09 100644--- a/src-ui/src/app/components/not-found/not-found.component.html+++ b/src-ui/src/app/components/not-found/not-found.component.html@@ -1,8 +1,17 @@-<div class="jumbotron text-center">- <svg width="5em" height="7em" viewBox="0 0 16 16" class="bi bi-emoji-frown" fill="currentColor" xmlns="http://www.w3.org/2000/svg">- <path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>- <path fill-rule="evenodd" d="M4.285 12.433a.5.5 0 0 0 .683-.183A3.498 3.498 0 0 1 8 10.5c1.295 0 2.426.703 3.032 1.75a.5.5 0 0 0 .866-.5A4.498 4.498 0 0 0 8 9.5a4.5 4.5 0 0 0-3.898 2.25.5.5 0 0 0 .183.683z"/>- <path d="M7 6.5C7 7.328 6.552 8 6 8s-1-.672-1-1.5S5.448 5 6 5s1 .672 1 1.5zm4 0c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5S9.448 5 10 5s1 .672 1 1.5z"/>- </svg>- <h1 i18n>404 Not Found</h1>-</div>+<div class="d-sm-flex flex-wrap p-2 align-items-center justify-content-center" style="height: 75vh;">+ <div class="p-4 pt-0">+ <h1 style="font-size: 10rem;" class="fw-bold">404</h1>+ </div>+ <div class="p-4 pt-0">+ <h1 class="display-6" i18n>Not Found</h1>+ <p>+ <a class="btn btn-primary" routerLink="/dashboard">+ <svg class="buttonicon me-1" fill="currentColor">+ <use xlink:href="assets/bootstrap-icons.svg#house" />+ </svg>+ <ng-container i18n>Go to Dashboard</ng-container>+ </a>+ </p>+ </div>+ <app-logo extra_classes="p-3 position-absolute bottom-0 start-50 translate-middle"></app-logo>+ </div>diff --git a/src-ui/src/app/components/not-found/not-found.component.spec.ts b/src-ui/src/app/components/not-found/not-found.component.spec.tsindex 8962d833f..2a0ab9d7c 100644--- a/src-ui/src/app/components/not-found/not-found.component.spec.ts+++ b/src-ui/src/app/components/not-found/not-found.component.spec.ts@@ -1,5 +1,7 @@import { ComponentFixture, TestBed } from '@angular/core/testing'import { NotFoundComponent } from './not-found.component'+import { By } from '@angular/platform-browser'+import { LogoComponent } from '../common/logo/logo.component'describe('NotFoundComponent', () => {let component: NotFoundComponent@@ -7,7 +9,7 @@ describe('NotFoundComponent', () => {beforeEach(async () => {TestBed.configureTestingModule({- declarations: [NotFoundComponent],+ declarations: [NotFoundComponent, LogoComponent],}).compileComponents()fixture = TestBed.createComponent(NotFoundComponent)@@ -18,6 +20,7 @@ describe('NotFoundComponent', () => {it('should create component', () => {expect(component).toBeTruthy()- expect(fixture.nativeElement.textContent).toContain('404 Not Found')+ expect(fixture.nativeElement.textContent).toContain('Not Found')+ expect(fixture.debugElement.queryAll(By.css('a'))).toHaveLength(1)})})