A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
added a welcome widget
jonaswinklere46353cee8c0
diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.tsindex 7f2e8414e..1a2a76908 100644--- a/src-ui/src/app/app.module.ts+++ b/src-ui/src/app/app.module.ts@@ -45,6 +45,7 @@ import { SavedViewWidgetComponent } from './components/dashboard/widgets/saved-vimport { StatisticsWidgetComponent } from './components/dashboard/widgets/statistics-widget/statistics-widget.component';import { UploadFileWidgetComponent } from './components/dashboard/widgets/upload-file-widget/upload-file-widget.component';import { WidgetFrameComponent } from './components/dashboard/widgets/widget-frame/widget-frame.component';+import { WelcomeWidgetComponent } from './components/dashboard/widgets/welcome-widget/welcome-widget.component';@NgModule({declarations: [@@ -82,7 +83,8 @@ import { WidgetFrameComponent } from './components/dashboard/widgets/widget-framSavedViewWidgetComponent,StatisticsWidgetComponent,UploadFileWidgetComponent,- WidgetFrameComponent+ WidgetFrameComponent,+ WelcomeWidgetComponent],imports: [BrowserModule,diff --git a/src-ui/src/app/components/dashboard/dashboard.component.html b/src-ui/src/app/components/dashboard/dashboard.component.htmlindex 3e6438181..627e7ff22 100644--- a/src-ui/src/app/components/dashboard/dashboard.component.html+++ b/src-ui/src/app/components/dashboard/dashboard.component.html@@ -4,11 +4,7 @@<div class='row'><div class="col-lg-8">- <app-widget-frame title="Saved views" *ngIf="savedViews.length == 0">- <p class="card-text">This space is reserved to display your saved views. Go to your documents and save a view- to have it displayed- here!</p>- </app-widget-frame>+ <app-welcome-widget *ngIf="savedViews.length == 0"></app-welcome-widget><ng-container *ngFor="let v of savedViews"><app-saved-view-widget [savedView]="v"></app-saved-view-widget>@@ -22,4 +18,4 @@<app-upload-file-widget></app-upload-file-widget></div>-</div>\ No newline at end of file+</div>diff --git a/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.html b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.htmlnew file mode 100644index 000000000..0caf55f11--- /dev/null+++ b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.html@@ -0,0 +1,16 @@+<app-widget-frame title="First steps">++ <ng-container content>+ <img src="assets/save-filter.png" class="float-right">+ <p>Paperless is running! :)</p>+ <p>You can start uploading documents by dropping them in the file upload box to the right or by dropping them in the configured consumption folder and they'll start showing up in the documents list.+ After you've added some metadata to your documents, use the filtering mechanisms of paperless to create custom views (such as 'Recently added', 'Tagged TODO') and have them displayed on the dashboard instead of this message.</p>+ <p>Paperless offers some more features that try to make your life easier, such as:</p>+ <ul>+ <li>Once you've got a couple documents in paperless and added metadata to them, paperless can assign that metadata to new documents automatically.</li>+ <li>You can configure paperless to read your mails and add documents from attached files.</li>+ </ul>+ <p>Consult the documentation on how to use these features. The section on basic usage also has some information on how to use paperless in general.</p>+ </ng-container>++</app-widget-frame>\ No newline at end of filediff --git a/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.scss b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.scssnew file mode 100644index 000000000..e69de29bbdiff --git a/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.spec.ts b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.spec.tsnew file mode 100644index 000000000..5e8c2494b--- /dev/null+++ b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.spec.ts@@ -0,0 +1,25 @@+import { ComponentFixture, TestBed } from '@angular/core/testing';++import { WelcomeWidgetComponent } from './welcome-widget.component';++describe('WelcomeWidgetComponent', () => {+ let component: WelcomeWidgetComponent;+ let fixture: ComponentFixture<WelcomeWidgetComponent>;++ beforeEach(async () => {+ await TestBed.configureTestingModule({+ declarations: [ WelcomeWidgetComponent ]+ })+ .compileComponents();+ });++ beforeEach(() => {+ fixture = TestBed.createComponent(WelcomeWidgetComponent);+ component = fixture.componentInstance;+ fixture.detectChanges();+ });++ it('should create', () => {+ expect(component).toBeTruthy();+ });+});diff --git a/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.ts b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.tsnew file mode 100644index 000000000..71a87189c--- /dev/null+++ b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.ts@@ -0,0 +1,15 @@+import { Component, OnInit } from '@angular/core';++@Component({+ selector: 'app-welcome-widget',+ templateUrl: './welcome-widget.component.html',+ styleUrls: ['./welcome-widget.component.scss']+})+export class WelcomeWidgetComponent implements OnInit {++ constructor() { }++ ngOnInit(): void {+ }++}diff --git a/src-ui/src/assets/save-filter.png b/src-ui/src/assets/save-filter.pngnew file mode 100644index 000000000..dcaa41714Binary files /dev/null and b/src-ui/src/assets/save-filter.png differ