From 5ee9ad3e4f9e4cb1aeca2063c5246bbb4ef908f2 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 14 Sep 2023 14:03:28 -0700 Subject: [PATCH] Migrate frontend prefix to -pngx --- src-ui/.eslintrc.json | 4 +- src-ui/angular.json | 2 +- src-ui/e2e/dashboard/dashboard.spec.ts | 10 +-- .../document-detail/document-detail.spec.ts | 4 +- .../e2e/document-list/document-list.spec.ts | 66 ++++++++--------- src-ui/src/app/app.component.html | 2 +- src-ui/src/app/app.component.ts | 2 +- .../app-frame/app-frame.component.html | 24 +++---- .../app-frame/app-frame.component.ts | 2 +- .../clearable-badge.component.ts | 2 +- .../confirm-dialog.component.ts | 2 +- .../date-dropdown.component.html | 2 +- .../date-dropdown/date-dropdown.component.ts | 2 +- .../correspondent-edit-dialog.component.html | 12 ++-- .../correspondent-edit-dialog.component.ts | 2 +- .../document-type-edit-dialog.component.html | 12 ++-- .../document-type-edit-dialog.component.ts | 2 +- .../group-edit-dialog.component.html | 4 +- .../group-edit-dialog.component.ts | 2 +- .../mail-account-edit-dialog.component.html | 16 ++--- .../mail-account-edit-dialog.component.ts | 2 +- .../mail-rule-edit-dialog.component.html | 38 +++++----- .../mail-rule-edit-dialog.component.ts | 2 +- .../storage-path-edit-dialog.component.html | 14 ++-- .../storage-path-edit-dialog.component.ts | 2 +- .../tag-edit-dialog.component.html | 16 ++--- .../tag-edit-dialog.component.ts | 2 +- .../user-edit-dialog.component.html | 14 ++-- .../user-edit-dialog.component.ts | 2 +- .../filterable-dropdown.component.html | 6 +- .../filterable-dropdown.component.spec.ts | 2 +- .../filterable-dropdown.component.ts | 2 +- .../toggleable-dropdown-button.component.html | 2 +- .../toggleable-dropdown-button.component.ts | 2 +- .../common/input/check/check.component.ts | 2 +- .../common/input/color/color.component.ts | 2 +- .../common/input/date/date.component.ts | 2 +- .../common/input/number/number.component.ts | 2 +- .../input/password/password.component.ts | 2 +- .../permissions-form.component.html | 10 +-- .../permissions-form.component.ts | 2 +- .../permissions-group.component.ts | 2 +- .../permissions-user.component.ts | 2 +- .../common/input/select/select.component.ts | 2 +- .../common/input/tags/tags.component.html | 4 +- .../common/input/tags/tags.component.ts | 2 +- .../common/input/text/text.component.ts | 2 +- .../components/common/logo/logo.component.ts | 2 +- .../page-header/page-header.component.ts | 2 +- .../permissions-dialog.component.html | 2 +- .../permissions-dialog.component.ts | 2 +- ...permissions-filter-dropdown.component.html | 4 +- .../permissions-filter-dropdown.component.ts | 2 +- .../permissions-select.component.ts | 2 +- .../select-dialog.component.html | 2 +- .../select-dialog/select-dialog.component.ts | 2 +- .../share-links-dropdown.component.ts | 2 +- .../components/common/tag/tag.component.ts | 2 +- .../common/toasts/toasts.component.ts | 2 +- .../dashboard/dashboard.component.html | 16 ++--- .../dashboard/dashboard.component.ts | 2 +- .../saved-view-widget.component.html | 10 +-- .../saved-view-widget.component.ts | 2 +- .../statistics-widget.component.html | 4 +- .../statistics-widget.component.ts | 2 +- .../upload-file-widget.component.html | 8 +-- .../upload-file-widget.component.ts | 2 +- .../welcome-widget.component.ts | 2 +- .../widget-frame.component.spec.ts | 2 +- .../widget-frame/widget-frame.component.ts | 2 +- .../document-asn/document-asn.component.ts | 2 +- .../document-detail.component.html | 40 +++++------ .../document-detail.component.ts | 2 +- .../metadata-collapse.component.ts | 2 +- .../bulk-editor/bulk-editor.component.html | 20 +++--- .../bulk-editor/bulk-editor.component.ts | 2 +- .../document-card-large.component.html | 4 +- .../document-card-large.component.ts | 2 +- .../document-card-small.component.html | 4 +- .../document-card-small.component.ts | 2 +- .../document-list.component.html | 40 +++++------ .../document-list/document-list.component.ts | 2 +- .../filter-editor.component.html | 28 ++++---- .../filter-editor/filter-editor.component.ts | 2 +- .../save-view-config-dialog.component.html | 6 +- .../save-view-config-dialog.component.ts | 2 +- .../document-notes.component.html | 4 +- .../document-notes.component.ts | 2 +- .../correspondent-list.component.ts | 2 +- .../document-type-list.component.ts | 2 +- .../manage/logs/logs.component.html | 4 +- .../components/manage/logs/logs.component.ts | 2 +- .../management-list.component.html | 26 +++---- .../manage/settings/settings.component.html | 72 +++++++++---------- .../manage/settings/settings.component.ts | 2 +- .../storage-path-list.component.ts | 2 +- .../manage/tag-list/tag-list.component.ts | 2 +- .../manage/tasks/tasks.component.html | 10 +-- .../manage/tasks/tasks.component.ts | 2 +- .../not-found/not-found.component.html | 2 +- .../not-found/not-found.component.ts | 2 +- .../if-object-permissions.directive.spec.ts | 2 +- .../if-object-permissions.directive.ts | 10 +-- .../app/directives/if-owner.directive.spec.ts | 2 +- .../src/app/directives/if-owner.directive.ts | 6 +- .../if-permissions.directive.spec.ts | 2 +- .../directives/if-permissions.directive.ts | 6 +- .../app/directives/sortable.directive.spec.ts | 4 +- .../src/app/directives/sortable.directive.ts | 16 +++-- src-ui/src/index.html | 2 +- src/documents/templates/index.html | 4 +- 111 files changed, 373 insertions(+), 371 deletions(-) diff --git a/src-ui/.eslintrc.json b/src-ui/.eslintrc.json index b036bf6ad..12b35ce26 100644 --- a/src-ui/.eslintrc.json +++ b/src-ui/.eslintrc.json @@ -24,7 +24,7 @@ "error", { "type": "attribute", - "prefix": "app", + "prefix": "pngx", "style": "camelCase" } ], @@ -32,7 +32,7 @@ "error", { "type": "element", - "prefix": "app", + "prefix": "pngx", "style": "kebab-case" } ] diff --git a/src-ui/angular.json b/src-ui/angular.json index 4ba862aed..03f86da34 100644 --- a/src-ui/angular.json +++ b/src-ui/angular.json @@ -12,7 +12,7 @@ }, "root": "", "sourceRoot": "src", - "prefix": "app", + "prefix": "pngx", "i18n": { "sourceLocale": "en-US", "locales": { diff --git a/src-ui/e2e/dashboard/dashboard.spec.ts b/src-ui/e2e/dashboard/dashboard.spec.ts index ff22c490e..34bbc4949 100644 --- a/src-ui/e2e/dashboard/dashboard.spec.ts +++ b/src-ui/e2e/dashboard/dashboard.spec.ts @@ -10,7 +10,7 @@ test('dashboard inbox link', async ({ page }) => { await page.goto('/dashboard') await page.getByRole('link', { name: 'Documents in inbox' }).click() await expect(page).toHaveURL(/tags__id__all=9/) - await expect(page.locator('app-document-list')).toHaveText(/8 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/8 documents/) }) test('dashboard total documents link', async ({ page }) => { @@ -18,7 +18,7 @@ test('dashboard total documents link', async ({ page }) => { await page.goto('/dashboard') await page.getByRole('link').filter({ hasText: 'Total documents' }).click() await expect(page).toHaveURL(/documents/) - await expect(page.locator('app-document-list')).toHaveText(/61 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/61 documents/) await page.getByRole('button', { name: 'Reset filters' }) }) @@ -26,19 +26,19 @@ test('dashboard saved view show all', async ({ page }) => { await page.routeFromHAR(REQUESTS_HAR3, { notFound: 'fallback' }) await page.goto('/dashboard') await page - .locator('app-widget-frame') + .locator('pngx-widget-frame') .filter({ hasText: 'Inbox' }) .getByRole('link', { name: 'Show all' }) .click() await expect(page).toHaveURL(/view\/7/) - await expect(page.locator('app-document-list')).toHaveText(/8 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/8 documents/) }) test('dashboard saved view document links', async ({ page }) => { await page.routeFromHAR(REQUESTS_HAR4, { notFound: 'fallback' }) await page.goto('/dashboard') await page - .locator('app-widget-frame') + .locator('pngx-widget-frame') .filter({ hasText: 'Inbox' }) .locator('table') .getByRole('link', { name: /test/ }) diff --git a/src-ui/e2e/document-detail/document-detail.spec.ts b/src-ui/e2e/document-detail/document-detail.spec.ts index 8248db04b..1bc2b6aa9 100644 --- a/src-ui/e2e/document-detail/document-detail.spec.ts +++ b/src-ui/e2e/document-detail/document-detail.spec.ts @@ -8,7 +8,7 @@ test('should activate / deactivate save button when changes are saved', async ({ }) => { await page.routeFromHAR(REQUESTS_HAR, { notFound: 'fallback' }) await page.goto('/documents/175/') - await page.waitForSelector('app-document-detail app-input-text:first-child') + await page.waitForSelector('pngx-document-detail pngx-input-text:first-child') await expect(page.getByTitle('Storage path', { exact: true })).toHaveText( /\w+/ ) @@ -85,7 +85,7 @@ test('should show a mobile preview', async ({ page }) => { test('should show a list of notes', async ({ page }) => { await page.routeFromHAR(REQUESTS_HAR, { notFound: 'fallback' }) await page.goto('/documents/175/notes') - await expect(page.locator('app-document-notes')).toBeVisible() + await expect(page.locator('pngx-document-notes')).toBeVisible() await expect( await page.getByRole('button', { name: /delete note/i, diff --git a/src-ui/e2e/document-list/document-list.spec.ts b/src-ui/e2e/document-list/document-list.spec.ts index 9bd86bb1d..06b512a28 100644 --- a/src-ui/e2e/document-list/document-list.spec.ts +++ b/src-ui/e2e/document-list/document-list.spec.ts @@ -13,33 +13,33 @@ test('basic filtering', async ({ page }) => { await page.getByRole('button', { name: 'Tags' }).click() await page.getByRole('menuitem', { name: 'Inbox' }).click() await expect(page).toHaveURL(/tags__id__all=9/) - await expect(page.locator('app-document-list')).toHaveText(/8 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/8 documents/) await page.getByRole('button', { name: 'Document type' }).click() await page.getByRole('menuitem', { name: 'Invoice Test 3' }).click() await expect(page).toHaveURL(/document_type__id__in=1/) - await expect(page.locator('app-document-list')).toHaveText(/3 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/3 documents/) await page.getByRole('button', { name: 'Reset filters' }).first().click() await page.getByRole('button', { name: 'Correspondent' }).click() await page.getByRole('menuitem', { name: 'Test Correspondent 1' }).click() await page.getByRole('menuitem', { name: 'Correspondent 9' }).click() await expect(page).toHaveURL(/correspondent__id__in=12,1/) - await expect(page.locator('app-document-list')).toHaveText(/7 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/7 documents/) await page - .locator('app-filter-editor') + .locator('pngx-filter-editor') .getByTitle('Correspondent') .getByText('Exclude') .click() await expect(page).toHaveURL(/correspondent__id__none=12,1/) - await expect(page.locator('app-document-list')).toHaveText(/54 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/54 documents/) // clear button await page.getByRole('button', { name: '2 selected', exact: true }).click() - await expect(page.locator('app-document-list')).toHaveText(/61 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/61 documents/) await page.getByRole('button', { name: 'Storage path' }).click() await page.getByRole('menuitem', { name: 'Testing 12' }).click() await expect(page).toHaveURL(/storage_path__id__in=5/) - await expect(page.locator('app-document-list')).toHaveText(/8 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/8 documents/) await page.getByRole('button', { name: 'Reset filters' }).first().click() - await expect(page.locator('app-document-list')).toHaveText(/61 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/61 documents/) }) test('text filtering', async ({ page }) => { @@ -47,35 +47,35 @@ test('text filtering', async ({ page }) => { await page.goto('/documents') await page.getByRole('textbox').click() await page.getByRole('textbox').fill('test') - await expect(page.locator('app-document-list')).toHaveText(/32 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/32 documents/) await expect(page).toHaveURL(/title_content=test/) await page.getByRole('button', { name: 'Title & content' }).click() await page.getByRole('button', { name: 'Title', exact: true }).click() - await expect(page.locator('app-document-list')).toHaveText(/9 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/9 documents/) await expect(page).toHaveURL(/title__icontains=test/) await page.getByRole('button', { name: 'Title', exact: true }).click() await page.getByRole('button', { name: 'Advanced search' }).click() await expect(page).toHaveURL(/query=test/) - await expect(page.locator('app-document-list')).toHaveText(/26 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/26 documents/) await page.getByRole('button', { name: 'Advanced search' }).click() await page.getByRole('button', { name: 'ASN' }).click() await page.getByRole('textbox').fill('1123') await expect(page).toHaveURL(/archive_serial_number=1123/) - await expect(page.locator('app-document-list')).toHaveText(/one document/i) + await expect(page.locator('pngx-document-list')).toHaveText(/one document/i) await page.locator('select').selectOption('greater') await page.getByRole('textbox').click() await page.getByRole('textbox').fill('1123') await expect(page).toHaveURL(/archive_serial_number__gt=1123/) - await expect(page.locator('app-document-list')).toHaveText(/5 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/5 documents/) await page.locator('select').selectOption('less') await expect(page).toHaveURL(/archive_serial_number__lt=1123/) - await expect(page.locator('app-document-list')).toHaveText(/0 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/0 documents/) await page.locator('select').selectOption('is null') await expect(page).toHaveURL(/archive_serial_number__isnull=1/) - await expect(page.locator('app-document-list')).toHaveText(/55 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/55 documents/) await page.locator('select').selectOption('not null') await expect(page).toHaveURL(/archive_serial_number__isnull=0/) - await expect(page.locator('app-document-list')).toHaveText(/6 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/6 documents/) }) test('date filtering', async ({ page }) => { @@ -83,7 +83,7 @@ test('date filtering', async ({ page }) => { await page.goto('/documents') await page.getByRole('button', { name: 'Created' }).click() await page.getByRole('menuitem', { name: 'Last 3 months' }).click() - await expect(page.locator('app-document-list')).toHaveText(/one document/i) + await expect(page.locator('pngx-document-list')).toHaveText(/one document/i) await page.getByRole('button', { name: 'Created Clear selected' }).click() await page.getByRole('button', { name: 'Created' }).click() await page @@ -94,7 +94,7 @@ test('date filtering', async ({ page }) => { await page.getByRole('combobox', { name: 'Select year' }).selectOption('2022') await page.getByText('11', { exact: true }).click() await page.getByRole('button', { name: 'Title & content' }).click() - await expect(page.locator('app-document-list')).toHaveText(/2 documents/) + await expect(page.locator('pngx-document-list')).toHaveText(/2 documents/) }) test('sorting', async ({ page }) => { @@ -105,7 +105,7 @@ test('sorting', async ({ page }) => { await expect(page).toHaveURL(/sort=archive_serial_number/) await page.getByRole('button', { name: 'Sort' }).click() await page - .locator('app-page-header') + .locator('pngx-page-header') .getByRole('button', { name: 'Correspondent' }) .click() await expect(page).toHaveURL(/sort=correspondent__name/) @@ -114,7 +114,7 @@ test('sorting', async ({ page }) => { await expect(page).toHaveURL(/sort=title/) await page.getByRole('button', { name: 'Sort' }).click() await page - .locator('app-page-header') + .locator('pngx-page-header') .getByRole('button', { name: 'Document type' }) .click() await expect(page).toHaveURL(/sort=document_type__name/) @@ -138,42 +138,42 @@ test('sorting', async ({ page }) => { test('change views', async ({ page }) => { await page.routeFromHAR(REQUESTS_HAR5, { notFound: 'fallback' }) await page.goto('/documents') - await page.locator('app-page-header label').first().click() - await expect(page.locator('app-document-list table')).toBeVisible() - await page.locator('app-page-header label').nth(1).click() - await expect(page.locator('app-document-card-small').first()).toBeAttached() - await page.locator('app-page-header label').nth(2).click() - await expect(page.locator('app-document-card-large').first()).toBeAttached() + await page.locator('pngx-page-header label').first().click() + await expect(page.locator('pngx-document-list table')).toBeVisible() + await page.locator('pngx-page-header label').nth(1).click() + await expect(page.locator('pngx-document-card-small').first()).toBeAttached() + await page.locator('pngx-page-header label').nth(2).click() + await expect(page.locator('pngx-document-card-large').first()).toBeAttached() }) test('bulk edit', async ({ page }) => { await page.routeFromHAR(REQUESTS_HAR6, { notFound: 'fallback' }) await page.goto('/documents') - await page.locator('app-document-card-small').nth(0).click() + await page.locator('pngx-document-card-small').nth(0).click() await page - .locator('app-document-card-small') + .locator('pngx-document-card-small') .nth(3) .click({ modifiers: ['Shift'], }) - await expect(page.locator('app-document-list')).toHaveText( + await expect(page.locator('pngx-document-list')).toHaveText( /Selected 4 of 61 documents/i ) await page.getByRole('button', { name: 'Page' }).click() - await expect(page.locator('app-document-list')).toHaveText( + await expect(page.locator('pngx-document-list')).toHaveText( /Selected 50 of 61 documents/i ) await page.getByRole('button', { name: 'All' }).click() - await expect(page.locator('app-document-list')).toHaveText( + await expect(page.locator('pngx-document-list')).toHaveText( /Selected 61 of 61 documents/i ) await page.getByRole('button', { name: 'Cancel' }).click() - await page.locator('app-document-card-small').nth(1).click() - await page.locator('app-document-card-small').nth(2).click() + await page.locator('pngx-document-card-small').nth(1).click() + await page.locator('pngx-document-card-small').nth(2).click() await page.getByRole('button', { name: 'Tags' }).click() await page.getByRole('menuitem', { name: 'TagWithPartial' }).click() diff --git a/src-ui/src/app/app.component.html b/src-ui/src/app/app.component.html index 84a4f595c..7fbb8dc4a 100644 --- a/src-ui/src/app/app.component.html +++ b/src-ui/src/app/app.component.html @@ -1,4 +1,4 @@ - + diff --git a/src-ui/src/app/app.component.ts b/src-ui/src/app/app.component.ts index e6718bbed..ca8e5ab23 100644 --- a/src-ui/src/app/app.component.ts +++ b/src-ui/src/app/app.component.ts @@ -16,7 +16,7 @@ import { } from './services/permissions.service' @Component({ - selector: 'app-root', + selector: 'pngx-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'], }) diff --git a/src-ui/src/app/components/app-frame/app-frame.component.html b/src-ui/src/app/components/app-frame/app-frame.component.html index 83fe13d81..3d62c0932 100644 --- a/src-ui/src/app/components/app-frame/app-frame.component.html +++ b/src-ui/src/app/components/app-frame/app-frame.component.html @@ -10,7 +10,7 @@ Paperless-ngx -
+
@@ -39,7 +39,7 @@

Logged in as {{this.settingsService.displayName}}

- + Settings @@ -72,7 +72,7 @@  Dashboard - -
+
-
+
@@ -127,35 +127,35 @@ Manage
@@ -39,7 +39,7 @@
- +
@@ -50,7 +50,7 @@
- +
@@ -58,7 +58,7 @@
- +
Edit permissions also grant viewing permissions diff --git a/src-ui/src/app/components/common/input/permissions/permissions-form/permissions-form.component.ts b/src-ui/src/app/components/common/input/permissions/permissions-form/permissions-form.component.ts index 8fcde88cb..81716d40a 100644 --- a/src-ui/src/app/components/common/input/permissions/permissions-form/permissions-form.component.ts +++ b/src-ui/src/app/components/common/input/permissions/permissions-form/permissions-form.component.ts @@ -25,7 +25,7 @@ export interface PermissionsFormObject { multi: true, }, ], - selector: 'app-permissions-form', + selector: 'pngx-permissions-form', templateUrl: './permissions-form.component.html', styleUrls: ['./permissions-form.component.scss'], }) diff --git a/src-ui/src/app/components/common/input/permissions/permissions-group/permissions-group.component.ts b/src-ui/src/app/components/common/input/permissions/permissions-group/permissions-group.component.ts index f047ac6c2..b17c6ccc1 100644 --- a/src-ui/src/app/components/common/input/permissions/permissions-group/permissions-group.component.ts +++ b/src-ui/src/app/components/common/input/permissions/permissions-group/permissions-group.component.ts @@ -13,7 +13,7 @@ import { AbstractInputComponent } from '../../abstract-input' multi: true, }, ], - selector: 'app-permissions-group', + selector: 'pngx-permissions-group', templateUrl: './permissions-group.component.html', styleUrls: ['./permissions-group.component.scss'], }) diff --git a/src-ui/src/app/components/common/input/permissions/permissions-user/permissions-user.component.ts b/src-ui/src/app/components/common/input/permissions/permissions-user/permissions-user.component.ts index 1db4e0ff9..5773ca2d6 100644 --- a/src-ui/src/app/components/common/input/permissions/permissions-user/permissions-user.component.ts +++ b/src-ui/src/app/components/common/input/permissions/permissions-user/permissions-user.component.ts @@ -14,7 +14,7 @@ import { AbstractInputComponent } from '../../abstract-input' multi: true, }, ], - selector: 'app-permissions-user', + selector: 'pngx-permissions-user', templateUrl: './permissions-user.component.html', styleUrls: ['./permissions-user.component.scss'], }) diff --git a/src-ui/src/app/components/common/input/select/select.component.ts b/src-ui/src/app/components/common/input/select/select.component.ts index 1a3341842..437fc60d2 100644 --- a/src-ui/src/app/components/common/input/select/select.component.ts +++ b/src-ui/src/app/components/common/input/select/select.component.ts @@ -16,7 +16,7 @@ import { AbstractInputComponent } from '../abstract-input' multi: true, }, ], - selector: 'app-input-select', + selector: 'pngx-input-select', templateUrl: './select.component.html', styleUrls: ['./select.component.scss'], }) diff --git a/src-ui/src/app/components/common/input/tags/tags.component.html b/src-ui/src/app/components/common/input/tags/tags.component.html index 497a62335..a49a0de2d 100644 --- a/src-ui/src/app/components/common/input/tags/tags.component.html +++ b/src-ui/src/app/components/common/input/tags/tags.component.html @@ -18,12 +18,12 @@ - +
- +
diff --git a/src-ui/src/app/components/common/input/tags/tags.component.ts b/src-ui/src/app/components/common/input/tags/tags.component.ts index b6bfddb3c..ff5657a12 100644 --- a/src-ui/src/app/components/common/input/tags/tags.component.ts +++ b/src-ui/src/app/components/common/input/tags/tags.component.ts @@ -24,7 +24,7 @@ import { NgSelectComponent } from '@ng-select/ng-select' multi: true, }, ], - selector: 'app-input-tags', + selector: 'pngx-input-tags', templateUrl: './tags.component.html', styleUrls: ['./tags.component.scss'], }) diff --git a/src-ui/src/app/components/common/input/text/text.component.ts b/src-ui/src/app/components/common/input/text/text.component.ts index d2bac853d..4060977d4 100644 --- a/src-ui/src/app/components/common/input/text/text.component.ts +++ b/src-ui/src/app/components/common/input/text/text.component.ts @@ -10,7 +10,7 @@ import { AbstractInputComponent } from '../abstract-input' multi: true, }, ], - selector: 'app-input-text', + selector: 'pngx-input-text', templateUrl: './text.component.html', styleUrls: ['./text.component.scss'], }) diff --git a/src-ui/src/app/components/common/logo/logo.component.ts b/src-ui/src/app/components/common/logo/logo.component.ts index 0c5ecefda..3320a621a 100644 --- a/src-ui/src/app/components/common/logo/logo.component.ts +++ b/src-ui/src/app/components/common/logo/logo.component.ts @@ -1,7 +1,7 @@ import { Component, Input } from '@angular/core' @Component({ - selector: 'app-logo', + selector: 'pngx-logo', templateUrl: './logo.component.html', styleUrls: ['./logo.component.scss'], }) diff --git a/src-ui/src/app/components/common/page-header/page-header.component.ts b/src-ui/src/app/components/common/page-header/page-header.component.ts index 5b68e1423..457bdfda5 100644 --- a/src-ui/src/app/components/common/page-header/page-header.component.ts +++ b/src-ui/src/app/components/common/page-header/page-header.component.ts @@ -3,7 +3,7 @@ import { Title } from '@angular/platform-browser' import { environment } from 'src/environments/environment' @Component({ - selector: 'app-page-header', + selector: 'pngx-page-header', templateUrl: './page-header.component.html', styleUrls: ['./page-header.component.scss'], }) diff --git a/src-ui/src/app/components/common/permissions-dialog/permissions-dialog.component.html b/src-ui/src/app/components/common/permissions-dialog/permissions-dialog.component.html index d70e74492..2ed42fd62 100644 --- a/src-ui/src/app/components/common/permissions-dialog/permissions-dialog.component.html +++ b/src-ui/src/app/components/common/permissions-dialog/permissions-dialog.component.html @@ -8,7 +8,7 @@

- + diff --git a/src-ui/src/app/components/common/permissions-dialog/permissions-dialog.component.ts b/src-ui/src/app/components/common/permissions-dialog/permissions-dialog.component.ts index 5ddb8e10a..f1b922175 100644 --- a/src-ui/src/app/components/common/permissions-dialog/permissions-dialog.component.ts +++ b/src-ui/src/app/components/common/permissions-dialog/permissions-dialog.component.ts @@ -5,7 +5,7 @@ import { PaperlessUser } from 'src/app/data/paperless-user' import { UserService } from 'src/app/services/rest/user.service' @Component({ - selector: 'app-permissions-dialog', + selector: 'pngx-permissions-dialog', templateUrl: './permissions-dialog.component.html', styleUrls: ['./permissions-dialog.component.scss'], }) diff --git a/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html b/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html index 8cac4dce8..b7a1b1397 100644 --- a/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html +++ b/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html @@ -4,7 +4,7 @@
 {{title}}
- selected + selected
- +
{{status.filename}}

{{status.message}}

-
+
- +
- +
@@ -82,17 +82,17 @@ Details - - - - - - - + + + + + + + @@ -151,8 +151,8 @@ - - + + @@ -184,7 +184,7 @@
  • Notes {{document.notes.length}} - +
  • @@ -192,7 +192,7 @@ Permissions
    - +
    @@ -202,7 +202,7 @@ - + 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.ts index 056df5c2e..d992b0191 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 @@ -75,7 +75,7 @@ enum DocumentDetailNavIDs { } @Component({ - selector: 'app-document-detail', + selector: 'pngx-document-detail', templateUrl: './document-detail.component.html', styleUrls: ['./document-detail.component.scss'], }) diff --git a/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.ts b/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.ts index ab117be81..99ee0d1a4 100644 --- a/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.ts +++ b/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.ts @@ -1,7 +1,7 @@ import { Component, Input } from '@angular/core' @Component({ - selector: 'app-metadata-collapse', + selector: 'pngx-metadata-collapse', templateUrl: './metadata-collapse.component.html', styleUrls: ['./metadata-collapse.component.scss'], }) diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html index d4d94c9ec..9e65b7a77 100644 --- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html +++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html @@ -21,9 +21,9 @@
    -
    +
    - - - + - - + - - + - +
    @@ -132,7 +132,7 @@
    -

    @@ -43,7 +43,7 @@  More like this - +  Edit diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts index 8d2a59405..1725e5795 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts @@ -13,7 +13,7 @@ import { SETTINGS_KEYS } from 'src/app/data/paperless-uisettings' import { ComponentWithPermissions } from '../../with-permissions/with-permissions.component' @Component({ - selector: 'app-document-card-large', + selector: 'pngx-document-card-large', templateUrl: './document-card-large.component.html', styleUrls: [ './document-card-large.component.scss', diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html index 98d8e2770..8719f2ddf 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html @@ -11,7 +11,7 @@

    - +
    + {{moreTags}}
    @@ -80,7 +80,7 @@
    - +
    - - + +
    @@ -119,71 +119,71 @@
    - - + +
    ASN Correspondent Title Owner Notes Document type Storage path Created {{d.title | documentTitle}} - + {{d.owner | username}} @@ -243,7 +243,7 @@
    - +
    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.ts index 911ddccbf..f095695ec 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 @@ -37,7 +37,7 @@ import { FilterEditorComponent } from './filter-editor/filter-editor.component' import { SaveViewConfigDialogComponent } from './save-view-config-dialog/save-view-config-dialog.component' @Component({ - selector: 'app-document-list', + selector: 'pngx-document-list', templateUrl: './document-list.component.html', styleUrls: ['./document-list.component.scss'], }) diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html index 69e6e3768..460b9e0fb 100644 --- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html +++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html @@ -23,7 +23,7 @@
    - - + - + - + + [allowSelectNone]="true">
    - - + + [(relativeDate)]="dateAddedRelativeDate">
    - + [(selectionModel)]="permissionsSelectionModel">