diff --git a/package.json b/package.json index a328a171..36f86bf7 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,6 @@ "build": "npm run electron:serve-tsc && ng build --base-href ./", "build:prod": "npm run build -- -c production", "buildsize": "sh ./bin/buildSizeCheck.sh", - "check": "npm run check:tsc && npm run check:lint", - "check:lint": "tslint --project ./tsconfig.json && tslint --project ./tsconfig-serve.json && tslint --project ./tsconfig.worker.json", "check:tsc": "tsc --project ./tsconfig.json --noEmit && tsc --project ./tsconfig-serve.json --noEmit && tsc --project ./tsconfig.worker.json --noEmit", "hasRemote": "sh ./bin/hasRemoteCheck.sh", "electron": "npm run hasRemote && npm run build:prod && electron-builder build && npm run buildsize", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d801b8c7..1e2fca6c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -24,13 +24,15 @@ import { FilePathService } from './components/views/file-path.service'; import { ImageElementService } from './services/image-element.service'; import { ManualTagsService } from './components/tags-manual/manual-tags.service'; import { ModalService } from './components/modal/modal.service'; -import { PipeSideEffectService } from './pipes/pipe-side-effect.service'; -import { ResolutionFilterService } from './pipes/resolution-filter.service'; import { ShortcutsService } from './components/shortcuts/shortcuts.service'; -import { SimilarityService } from './pipes/similarity.service'; import { SourceFolderService } from './components/statistics/source-folder.service'; -import { StarFilterService } from './pipes/star-filter.service'; -import { WordFrequencyService } from './pipes/word-frequency.service'; + +// Pipe Services +import { PipeSideEffectService } from '@pipes'; +import { ResolutionFilterService } from '@pipes'; +import { SimilarityService } from '@pipes'; +import { StarFilterService } from '@pipes'; +import { WordFrequencyService } from '@pipes'; // Components import { AddTagComponent } from './components/tags-manual/add-tag.component'; diff --git a/src/app/common/app-state.ts b/src/app/common/app-state.ts index 65455f9c..4106841c 100644 --- a/src/app/common/app-state.ts +++ b/src/app/common/app-state.ts @@ -1,5 +1,5 @@ -import type { SortType } from '../pipes/sorting.pipe'; -import type { SupportedView } from '../../../interfaces/shared-interfaces'; +import type { SortType } from '@pipes'; +import type { SupportedView } from '@my/shared-interfaces'; // Please conform the supported languages exactly to the first two characters from here: // https://github.com/electron/electron/blob/master/docs/api/locales.md diff --git a/src/app/components/home.component.ts b/src/app/components/home.component.ts index a7a6f5ca..327fd460 100644 --- a/src/app/components/home.component.ts +++ b/src/app/components/home.component.ts @@ -16,12 +16,14 @@ import { FilePathService } from './views/file-path.service'; import { ImageElementService } from '../services/image-element.service'; import { ManualTagsService } from './tags-manual/manual-tags.service'; import { ModalService } from './modal/modal.service'; -import { PipeSideEffectService } from '../pipes/pipe-side-effect.service'; -import { ResolutionFilterService } from '../pipes/resolution-filter.service'; import { ShortcutsService, CustomShortcutAction } from './shortcuts/shortcuts.service'; import { SourceFolderService } from './statistics/source-folder.service'; -import { StarFilterService } from '../pipes/star-filter.service'; -import { WordFrequencyService, WordFreqAndHeight } from '../pipes/word-frequency.service'; + +// Pipe Services +import { PipeSideEffectService } from '@pipes'; +import { ResolutionFilterService } from '@pipes'; +import { StarFilterService } from '@pipes'; +import { WordFrequencyService, WordFreqAndHeight } from '@pipes'; // Components import { SortOrderComponent } from './sort-order/sort-order.component'; @@ -31,28 +33,28 @@ import type { ContextMenuCoordinate } from '../../../interfaces/shared-interface import type { FinalObject, ImageElement, ScreenshotSettings, ResolutionString } from '../../../interfaces/final-object.interface'; import type { ImportStage } from '../../../node/main-support'; import type { ServerDetails } from './statistics/statistics.component'; -import type { RemoteSettings, SettingsButtonSavedProperties, SettingsObject } from '../../../interfaces/settings-object.interface'; -import type { SortType } from '../pipes/sorting.pipe'; -import type { WizardOptions } from '../../../interfaces/wizard-options.interface'; +import type { RemoteSettings, SettingsButtonSavedProperties, SettingsObject } from '@my/settings-object.interface'; +import type { SortType } from '@pipes'; +import type { SupportedLanguage, RowNumbers } from '../common/app-state'; +import type { SettingsButtonKey, SettingsButtonsType } from '../common/settings-buttons'; +import type { WizardOptions } from '@my/wizard-options.interface'; import type { HistoryItem, RemoteVideoClick, RenameFileResponse, SupportedTrayView, SupportedView, - VideoClickEmit} from '../../../interfaces/shared-interfaces'; + VideoClickEmit} from '@my/shared-interfaces'; import { AllSupportedBottomTrayViews, AllSupportedViews -} from '../../../interfaces/shared-interfaces'; +} from '@my/shared-interfaces'; // Constants, etc -import type { SupportedLanguage, RowNumbers } from '../common/app-state'; import { AppState, DefaultImagesPerRow } from '../common/app-state'; import { Filters, filterKeyToIndex, FilterKeyNames } from '../common/filters'; import { GLOBALS } from '../../../node/main-globals'; import { LanguageLookup } from '../common/languages'; -import type { SettingsButtonKey, SettingsButtonsType } from '../common/settings-buttons'; import { SettingsButtons, SettingsButtonsGroups } from '../common/settings-buttons'; // Animations diff --git a/src/app/components/meta/meta.component.ts b/src/app/components/meta/meta.component.ts index 9f4d8cbb..8d60832a 100644 --- a/src/app/components/meta/meta.component.ts +++ b/src/app/components/meta/meta.component.ts @@ -10,8 +10,8 @@ import { FilePathService } from '../views/file-path.service'; import { ImageElementService } from './../../services/image-element.service'; import { ManualTagsService } from '../tags-manual/manual-tags.service'; -import type { StarRating, ImageElement } from '../../../../interfaces/final-object.interface'; -import type { TagEmit, RenameFileResponse } from '../../../../interfaces/shared-interfaces'; +import type { StarRating, ImageElement } from '@my/final-object.interface'; +import type { TagEmit, RenameFileResponse } from '@my/shared-interfaces'; import { SettingsButtons } from '../../common/settings-buttons'; diff --git a/src/app/components/rename-file/rename-file.component.ts b/src/app/components/rename-file/rename-file.component.ts index 91e6ac45..d889bad3 100644 --- a/src/app/components/rename-file/rename-file.component.ts +++ b/src/app/components/rename-file/rename-file.component.ts @@ -7,8 +7,8 @@ import type { Observable, Subscription } from 'rxjs'; import { ElectronService } from '../../providers/electron.service'; import { FilePathService } from '../views/file-path.service'; -import type { ImageElement } from '../../../../interfaces/final-object.interface'; -import type { RenameFileResponse } from '../../../../interfaces/shared-interfaces'; +import type { ImageElement } from '@my/final-object.interface'; +import type { RenameFileResponse } from '@my/shared-interfaces'; @Component({ standalone: false, diff --git a/src/app/components/rename-modal/rename-modal.component.ts b/src/app/components/rename-modal/rename-modal.component.ts index bec32d92..b1ebd209 100644 --- a/src/app/components/rename-modal/rename-modal.component.ts +++ b/src/app/components/rename-modal/rename-modal.component.ts @@ -3,8 +3,8 @@ import { Component, input, output } from '@angular/core'; import type { BehaviorSubject } from 'rxjs'; import type { AppStateInterface } from '../../common/app-state'; -import type { ImageElement } from '../../../../interfaces/final-object.interface'; -import type { RenameFileResponse } from '../../../../interfaces/shared-interfaces'; +import type { ImageElement } from '@my/final-object.interface'; +import type { RenameFileResponse } from '@my/shared-interfaces'; import type { SettingsButtonsType } from '../../common/settings-buttons'; @Component({ diff --git a/src/app/components/sheet/sheet.component.ts b/src/app/components/sheet/sheet.component.ts index 519e4408..45c8d331 100644 --- a/src/app/components/sheet/sheet.component.ts +++ b/src/app/components/sheet/sheet.component.ts @@ -9,8 +9,8 @@ import { FilePathService } from '../views/file-path.service'; import { ImageElementService } from './../../services/image-element.service'; import { ManualTagsService } from '../tags-manual/manual-tags.service'; -import type { StarRating, ImageElement } from '../../../../interfaces/final-object.interface'; -import type { TagEmit, RenameFileResponse } from '../../../../interfaces/shared-interfaces'; +import type { StarRating, ImageElement } from '@my/final-object.interface'; +import type { TagEmit, RenameFileResponse } from '@my/shared-interfaces'; import { metaAppear, textAppear, modalAnimation } from '../../common/animations'; diff --git a/src/app/components/similar-tray/similar-tray.component.ts b/src/app/components/similar-tray/similar-tray.component.ts index bf0de74c..ac19267a 100644 --- a/src/app/components/similar-tray/similar-tray.component.ts +++ b/src/app/components/similar-tray/similar-tray.component.ts @@ -3,7 +3,7 @@ import { Component, input, output } from '@angular/core'; import { ImageElementService } from './../../services/image-element.service'; import { SourceFolderService } from '../statistics/source-folder.service'; -import type { RightClickEmit } from '../../../../interfaces/shared-interfaces'; +import type { RightClickEmit } from '@my/shared-interfaces'; import type { SettingsButtonsType } from '../../common/settings-buttons'; import { modalAnimation, similarResultsText } from '../../common/animations'; diff --git a/src/app/components/sort-order/sort-order.component.ts b/src/app/components/sort-order/sort-order.component.ts index 35f08421..39816fce 100644 --- a/src/app/components/sort-order/sort-order.component.ts +++ b/src/app/components/sort-order/sort-order.component.ts @@ -1,10 +1,11 @@ import type { ElementRef} from '@angular/core'; import { Component, Input, output, viewChild } from '@angular/core'; -import type { SortType } from '../../pipes/sorting.pipe'; -import { filterItemAppear } from '../../common/animations'; +import type { SortType } from '@pipes'; import type { SettingsButtonsType } from '../../common/settings-buttons'; +import { filterItemAppear } from '../../common/animations'; + @Component({ standalone: false, selector: 'app-sort-order', diff --git a/src/app/components/statistics/source-folder.service.ts b/src/app/components/statistics/source-folder.service.ts index de86ec3d..22f79df3 100644 --- a/src/app/components/statistics/source-folder.service.ts +++ b/src/app/components/statistics/source-folder.service.ts @@ -1,6 +1,6 @@ import { Injectable } from '@angular/core'; -import type { InputSources } from '../../../../interfaces/final-object.interface'; +import type { InputSources } from '@my/final-object.interface'; export type InputSourceConnected = Record; // matches InputSources number, boolean represents if folder is connected diff --git a/src/app/components/statistics/statistics.component.ts b/src/app/components/statistics/statistics.component.ts index 673ae408..7296ba77 100644 --- a/src/app/components/statistics/statistics.component.ts +++ b/src/app/components/statistics/statistics.component.ts @@ -9,7 +9,7 @@ import { ImageElementService } from './../../services/image-element.service'; import { SourceFolderService } from './source-folder.service'; import type { AppStateInterface } from '../../common/app-state'; -import type { ImageElement, ScreenshotSettings, InputSources } from '../../../../interfaces/final-object.interface'; +import type { ImageElement, ScreenshotSettings, InputSources } from '@my/final-object.interface'; import { metaAppear, breadcrumbWordAppear } from '../../common/animations'; diff --git a/src/app/components/tag-tray/tag-tray.component.ts b/src/app/components/tag-tray/tag-tray.component.ts index e375ce10..add93d93 100644 --- a/src/app/components/tag-tray/tag-tray.component.ts +++ b/src/app/components/tag-tray/tag-tray.component.ts @@ -3,7 +3,7 @@ import { Component, input, output } from '@angular/core'; import { ManualTagsService } from '../tags-manual/manual-tags.service'; import type { AppStateInterface } from '../../common/app-state'; -import type { TagEmit } from '../../../../interfaces/shared-interfaces'; +import type { TagEmit } from '@my/shared-interfaces'; import { modalAnimation } from '../../common/animations'; import type { SettingsButtonsType } from '../../common/settings-buttons'; import { ImageElementService } from './../../services/image-element.service'; diff --git a/src/app/components/tags-auto/autotags.service.ts b/src/app/components/tags-auto/autotags.service.ts index 3a7a2e3e..6a11af45 100644 --- a/src/app/components/tags-auto/autotags.service.ts +++ b/src/app/components/tags-auto/autotags.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import { AutoTagsSaveService } from './tags-save.service'; -import type { ImageElement } from '../../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; export interface WordAndFreq { word: string; diff --git a/src/app/components/tags-auto/tag-display.pipe.ts b/src/app/components/tags-auto/tag-display.pipe.ts index 75fa9c35..c5d6790a 100644 --- a/src/app/components/tags-auto/tag-display.pipe.ts +++ b/src/app/components/tags-auto/tag-display.pipe.ts @@ -5,8 +5,8 @@ import { autoFileTagsRegex } from './autotags.service'; import { ManualTagsService } from '../tags-manual/manual-tags.service'; import { Colors } from '../../common/colors'; -import type { ImageElement } from '../../../../interfaces/final-object.interface'; -import type { Tag } from '../../../../interfaces/shared-interfaces'; +import type { ImageElement } from '@my/final-object.interface'; +import type { Tag } from '@my/shared-interfaces'; @Pipe({ standalone: false, diff --git a/src/app/components/views/clip/clip.component.ts b/src/app/components/views/clip/clip.component.ts index 45c2cd8c..518a556c 100644 --- a/src/app/components/views/clip/clip.component.ts +++ b/src/app/components/views/clip/clip.component.ts @@ -5,8 +5,8 @@ import { DomSanitizer } from '@angular/platform-browser'; import { FilePathService } from '../file-path.service'; -import type { ImageElement } from '../../../../../interfaces/final-object.interface'; -import type { RightClickEmit, VideoClickEmit } from '../../../../../interfaces/shared-interfaces'; +import type { ImageElement } from '@my/final-object.interface'; +import type { RightClickEmit, VideoClickEmit } from '@my/shared-interfaces'; import { metaAppear, textAppear } from '../../../common/animations'; diff --git a/src/app/components/views/details/details.component.ts b/src/app/components/views/details/details.component.ts index 058cd883..18200b9f 100644 --- a/src/app/components/views/details/details.component.ts +++ b/src/app/components/views/details/details.component.ts @@ -6,11 +6,11 @@ import type { BehaviorSubject } from 'rxjs'; import { FilePathService } from '../file-path.service'; import { ManualTagsService } from '../../tags-manual/manual-tags.service'; - -import type { StarRating, ImageElement } from '../../../../../interfaces/final-object.interface'; -import type { VideoClickEmit, RightClickEmit, TagEmit, RenameFileResponse } from '../../../../../interfaces/shared-interfaces'; import { ImageElementService } from './../../../services/image-element.service'; +import type { StarRating, ImageElement } from '@my/final-object.interface'; +import type { VideoClickEmit, RightClickEmit, TagEmit, RenameFileResponse } from '@my/shared-interfaces'; + export interface YearEmission { index: number; year: number; diff --git a/src/app/components/views/file-path.service.ts b/src/app/components/views/file-path.service.ts index 05cb97e0..0ef80ce3 100644 --- a/src/app/components/views/file-path.service.ts +++ b/src/app/components/views/file-path.service.ts @@ -4,7 +4,7 @@ import * as path from 'path'; import { SourceFolderService } from '../statistics/source-folder.service'; -import type { ImageElement } from '../../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; type FolderType = 'thumbnails' | 'filmstrips' | 'clips'; diff --git a/src/app/components/views/file/file.component.ts b/src/app/components/views/file/file.component.ts index 67297cee..8bc47fe6 100644 --- a/src/app/components/views/file/file.component.ts +++ b/src/app/components/views/file/file.component.ts @@ -1,8 +1,9 @@ import { Component, Input, input } from '@angular/core'; -import type { ImageElement } from '../../../../../interfaces/final-object.interface'; import { ImageElementService } from './../../../services/image-element.service'; +import type { ImageElement } from '@my/final-object.interface'; + @Component({ standalone: false, selector: 'app-file-item', diff --git a/src/app/components/views/filmstrip/filmstrip.component.ts b/src/app/components/views/filmstrip/filmstrip.component.ts index 80667b60..b9e8a65a 100644 --- a/src/app/components/views/filmstrip/filmstrip.component.ts +++ b/src/app/components/views/filmstrip/filmstrip.component.ts @@ -3,12 +3,12 @@ import { Component, input, output, viewChild } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { FilePathService } from '../file-path.service'; +import { ImageElementService } from './../../../services/image-element.service'; import { metaAppear, textAppear } from '../../../common/animations'; -import type { ImageElement } from '../../../../../interfaces/final-object.interface'; -import { ImageElementService } from './../../../services/image-element.service'; -import type { RightClickEmit, VideoClickEmit } from '../../../../../interfaces/shared-interfaces'; +import type { ImageElement } from '@my/final-object.interface'; +import type { RightClickEmit, VideoClickEmit } from '@my/shared-interfaces'; @Component({ standalone: false, diff --git a/src/app/components/views/full/full.component.ts b/src/app/components/views/full/full.component.ts index cc7d5ea5..4131988f 100644 --- a/src/app/components/views/full/full.component.ts +++ b/src/app/components/views/full/full.component.ts @@ -3,12 +3,12 @@ import { Component, Input, input, output } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { FilePathService } from '../file-path.service'; +import { ImageElementService } from './../../../services/image-element.service'; import { metaAppear, textAppear } from '../../../common/animations'; -import type { ImageElement } from '../../../../../interfaces/final-object.interface'; -import { ImageElementService } from './../../../services/image-element.service'; -import type { RightClickEmit, VideoClickEmit } from '../../../../../interfaces/shared-interfaces'; +import type { ImageElement } from '@my/final-object.interface'; +import type { RightClickEmit, VideoClickEmit } from '@my/shared-interfaces'; @Component({ standalone: false, diff --git a/src/app/components/views/thumbnail/thumbnail.component.ts b/src/app/components/views/thumbnail/thumbnail.component.ts index 60987b43..a8183df3 100644 --- a/src/app/components/views/thumbnail/thumbnail.component.ts +++ b/src/app/components/views/thumbnail/thumbnail.component.ts @@ -2,12 +2,12 @@ import type { OnInit, ElementRef, OnDestroy } from '@angular/core'; import { Component, Input, input, output, viewChild } from '@angular/core'; import { FilePathService } from '../file-path.service'; +import { ImageElementService } from './../../../services/image-element.service'; import { metaAppear, textAppear } from '../../../common/animations'; -import { ImageElementService } from './../../../services/image-element.service'; -import type { ImageElement } from '../../../../../interfaces/final-object.interface'; -import type { VideoClickEmit, RightClickEmit } from '../../../../../interfaces/shared-interfaces'; +import type { ImageElement } from '@my/final-object.interface'; +import type { VideoClickEmit, RightClickEmit } from '@my/shared-interfaces'; @Component({ standalone: false, diff --git a/src/app/components/wizard/wizard.component.ts b/src/app/components/wizard/wizard.component.ts index 766fb8f0..7afb4cbe 100644 --- a/src/app/components/wizard/wizard.component.ts +++ b/src/app/components/wizard/wizard.component.ts @@ -1,9 +1,9 @@ import { Component, Input, input, output } from '@angular/core'; -import type { AllowedScreenshotHeight, AllowedScreenshotHeightString } from '../../../../interfaces/final-object.interface'; -import type { HistoryItem } from '../../../../interfaces/shared-interfaces'; +import type { AllowedScreenshotHeight, AllowedScreenshotHeightString } from '@my/final-object.interface'; +import type { HistoryItem } from '@my/shared-interfaces'; import type { ImportStage } from '../../../../node/main-support'; -import type { WizardOptions } from '../../../../interfaces/wizard-options.interface'; +import type { WizardOptions } from '@my/wizard-options.interface'; import { historyItemRemove, slowFadeIn } from '../../common/animations'; diff --git a/src/app/pipes/count.pipe.ts b/src/app/pipes/count.pipe.ts index 0bc5dd8a..123440c7 100644 --- a/src/app/pipes/count.pipe.ts +++ b/src/app/pipes/count.pipe.ts @@ -3,7 +3,7 @@ import { Pipe } from '@angular/core'; import { PipeSideEffectService } from './pipe-side-effect.service'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/delete-file.pipe.ts b/src/app/pipes/delete-file.pipe.ts index 56414b57..4af88077 100644 --- a/src/app/pipes/delete-file.pipe.ts +++ b/src/app/pipes/delete-file.pipe.ts @@ -1,7 +1,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/duplicateFinder.pipe.ts b/src/app/pipes/duplicateFinder.pipe.ts index a02241c0..1a897f56 100644 --- a/src/app/pipes/duplicateFinder.pipe.ts +++ b/src/app/pipes/duplicateFinder.pipe.ts @@ -3,7 +3,7 @@ import { Pipe } from '@angular/core'; import { SortingPipe } from './sorting.pipe'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; type DupeType = 'length' | 'size' | 'hash'; type SortBy = 'timeDesc' | 'sizeDesc' | 'hash'; diff --git a/src/app/pipes/file-search.pipe.ts b/src/app/pipes/file-search.pipe.ts index 501c6b86..45fdc252 100644 --- a/src/app/pipes/file-search.pipe.ts +++ b/src/app/pipes/file-search.pipe.ts @@ -1,7 +1,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; type SearchType = 'folder' | 'file' | 'tag' | 'notes'; diff --git a/src/app/pipes/file-size-filter.pipe.ts b/src/app/pipes/file-size-filter.pipe.ts index 5784fd5f..e3f04143 100644 --- a/src/app/pipes/file-size-filter.pipe.ts +++ b/src/app/pipes/file-size-filter.pipe.ts @@ -1,7 +1,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/folder-view.pipe.ts b/src/app/pipes/folder-view.pipe.ts index d510ab77..16bd15aa 100644 --- a/src/app/pipes/folder-view.pipe.ts +++ b/src/app/pipes/folder-view.pipe.ts @@ -1,8 +1,8 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement, StarRating} from '../../../interfaces/final-object.interface'; -import { NewImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement, StarRating} from '@my/final-object.interface'; +import { NewImageElement } from '@my/final-object.interface'; import type { SettingsButtonsType} from '../common/settings-buttons'; import { SettingsButtons } from '../common/settings-buttons'; diff --git a/src/app/pipes/fuzzy-search.pipe.ts b/src/app/pipes/fuzzy-search.pipe.ts index 006faa9a..ac7b7d0d 100644 --- a/src/app/pipes/fuzzy-search.pipe.ts +++ b/src/app/pipes/fuzzy-search.pipe.ts @@ -1,7 +1,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; import Fuse from 'fuse.js'; diff --git a/src/app/pipes/hide-offline.pipe.ts b/src/app/pipes/hide-offline.pipe.ts index f8b54365..bf7186df 100644 --- a/src/app/pipes/hide-offline.pipe.ts +++ b/src/app/pipes/hide-offline.pipe.ts @@ -3,7 +3,7 @@ import { Pipe } from '@angular/core'; import { SourceFolderService } from '../components/statistics/source-folder.service'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/index.ts b/src/app/pipes/index.ts new file mode 100644 index 00000000..38c74575 --- /dev/null +++ b/src/app/pipes/index.ts @@ -0,0 +1,9 @@ +// Services +export { PipeSideEffectService } from './pipe-side-effect.service'; +export { ResolutionFilterService } from './resolution-filter.service'; +export { StarFilterService } from './star-filter.service'; +export { WordFrequencyService, WordFreqAndHeight} from './word-frequency.service'; +export { SimilarityService } from './similarity.service'; + +// Interfaces +export { SortType } from './sorting.pipe'; diff --git a/src/app/pipes/length-filter.pipe.ts b/src/app/pipes/length-filter.pipe.ts index 23a7e594..42a303c5 100644 --- a/src/app/pipes/length-filter.pipe.ts +++ b/src/app/pipes/length-filter.pipe.ts @@ -1,7 +1,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/magic-search.pipe.ts b/src/app/pipes/magic-search.pipe.ts index 0640dce1..86d1fd8a 100644 --- a/src/app/pipes/magic-search.pipe.ts +++ b/src/app/pipes/magic-search.pipe.ts @@ -1,7 +1,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/pipe-side-effect.service.ts b/src/app/pipes/pipe-side-effect.service.ts index 485e685a..d195f914 100644 --- a/src/app/pipes/pipe-side-effect.service.ts +++ b/src/app/pipes/pipe-side-effect.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Injectable() export class PipeSideEffectService { diff --git a/src/app/pipes/playlist.pipe.ts b/src/app/pipes/playlist.pipe.ts index 991e958f..d52f7aaf 100644 --- a/src/app/pipes/playlist.pipe.ts +++ b/src/app/pipes/playlist.pipe.ts @@ -3,7 +3,7 @@ import { Pipe } from '@angular/core'; import { PipeSideEffectService } from './pipe-side-effect.service'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/regex-search.pipe.ts b/src/app/pipes/regex-search.pipe.ts index 94edc3a3..f7a54efe 100644 --- a/src/app/pipes/regex-search.pipe.ts +++ b/src/app/pipes/regex-search.pipe.ts @@ -3,7 +3,7 @@ import { Pipe } from '@angular/core'; import { PipeSideEffectService } from './pipe-side-effect.service'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/resolution-filter.pipe.ts b/src/app/pipes/resolution-filter.pipe.ts index 86b16feb..0f16c4aa 100644 --- a/src/app/pipes/resolution-filter.pipe.ts +++ b/src/app/pipes/resolution-filter.pipe.ts @@ -2,7 +2,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; import { ResolutionFilterService } from './resolution-filter.service'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/return-zero.pipe.ts b/src/app/pipes/return-zero.pipe.ts index 8936c82c..b523703c 100644 --- a/src/app/pipes/return-zero.pipe.ts +++ b/src/app/pipes/return-zero.pipe.ts @@ -1,7 +1,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/similarity.pipe.ts b/src/app/pipes/similarity.pipe.ts index 516ad767..05b59223 100644 --- a/src/app/pipes/similarity.pipe.ts +++ b/src/app/pipes/similarity.pipe.ts @@ -3,7 +3,7 @@ import { Pipe } from '@angular/core'; import { SimilarityService } from './similarity.service'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/sorting.pipe.ts b/src/app/pipes/sorting.pipe.ts index 452caae8..3a03d606 100644 --- a/src/app/pipes/sorting.pipe.ts +++ b/src/app/pipes/sorting.pipe.ts @@ -1,6 +1,6 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement, StarRating } from '../../../interfaces/final-object.interface'; +import type { ImageElement, StarRating } from '@my/final-object.interface'; import { randomizeArray } from '../../../node/utility'; import { orderBy } from 'natural-orderby'; diff --git a/src/app/pipes/star-filter.pipe.ts b/src/app/pipes/star-filter.pipe.ts index 1ad5b46e..7465ac27 100644 --- a/src/app/pipes/star-filter.pipe.ts +++ b/src/app/pipes/star-filter.pipe.ts @@ -3,7 +3,7 @@ import { Pipe } from '@angular/core'; import { StarFilterService } from './star-filter.service'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/times-played-filter.pipe.ts b/src/app/pipes/times-played-filter.pipe.ts index 6c1a4e42..659fd2e5 100644 --- a/src/app/pipes/times-played-filter.pipe.ts +++ b/src/app/pipes/times-played-filter.pipe.ts @@ -1,7 +1,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/word-frequency.pipe.ts b/src/app/pipes/word-frequency.pipe.ts index 530b3131..30fa4cd4 100644 --- a/src/app/pipes/word-frequency.pipe.ts +++ b/src/app/pipes/word-frequency.pipe.ts @@ -3,7 +3,7 @@ import { Pipe } from '@angular/core'; import { WordFrequencyService } from './word-frequency.service'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/pipes/year-filter.pipe.ts b/src/app/pipes/year-filter.pipe.ts index 6809daa2..ad658b35 100644 --- a/src/app/pipes/year-filter.pipe.ts +++ b/src/app/pipes/year-filter.pipe.ts @@ -1,7 +1,7 @@ import type { PipeTransform } from '@angular/core'; import { Pipe } from '@angular/core'; -import type { ImageElement } from '../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; @Pipe({ standalone: false, diff --git a/src/app/services/image-element.service.ts b/src/app/services/image-element.service.ts index 808c19d2..6c62d364 100644 --- a/src/app/services/image-element.service.ts +++ b/src/app/services/image-element.service.ts @@ -1,6 +1,6 @@ -import type { TagEmission } from './../../../interfaces/shared-interfaces'; +import type { TagEmission } from '@my/shared-interfaces'; import type { YearEmission} from './../components/views/details/details.component'; -import type { ImageElement } from './../../../interfaces/final-object.interface'; +import type { ImageElement } from '@my/final-object.interface'; import { Injectable } from '@angular/core'; import type { DefaultScreenEmission, StarEmission } from '../components/sheet/sheet.component'; diff --git a/tsconfig.json b/tsconfig.json index 5c691124..0f46da95 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,10 @@ "strictTemplates": false }, "compilerOptions": { + "paths": { + "@pipes": ["src/app/pipes"], + "@my/*": ["interfaces/*"] + }, "baseUrl": "", "declaration": false, "experimentalDecorators": true,