Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: Bulk Manage Applications, Download Clients
Co-authored-by: Qstick <qstick@gmail.com>
- Loading branch information
1 parent
f7c135f
commit f436d73
Showing
123 changed files
with
4,076 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
interface ModelBase { | ||
id: number; | ||
} | ||
|
||
export default ModelBase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import SortDirection from 'Helpers/Props/SortDirection'; | ||
|
||
export interface Error { | ||
responseJSON: { | ||
message: string; | ||
}; | ||
} | ||
|
||
export interface AppSectionDeleteState { | ||
isDeleting: boolean; | ||
deleteError: Error; | ||
} | ||
|
||
export interface AppSectionSaveState { | ||
isSaving: boolean; | ||
saveError: Error; | ||
} | ||
|
||
export interface PagedAppSectionState { | ||
pageSize: number; | ||
} | ||
|
||
export interface AppSectionSchemaState<T> { | ||
isSchemaFetching: boolean; | ||
isSchemaPopulated: boolean; | ||
schemaError: Error; | ||
schema: { | ||
items: T[]; | ||
}; | ||
} | ||
|
||
export interface AppSectionItemState<T> { | ||
isFetching: boolean; | ||
isPopulated: boolean; | ||
error: Error; | ||
item: T; | ||
} | ||
|
||
interface AppSectionState<T> { | ||
isFetching: boolean; | ||
isPopulated: boolean; | ||
error: Error; | ||
items: T[]; | ||
sortKey: string; | ||
sortDirection: SortDirection; | ||
} | ||
|
||
export default AppSectionState; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import SettingsAppState from './SettingsAppState'; | ||
import TagsAppState from './TagsAppState'; | ||
|
||
interface FilterBuilderPropOption { | ||
id: string; | ||
name: string; | ||
} | ||
|
||
export interface FilterBuilderProp<T> { | ||
name: string; | ||
label: string; | ||
type: string; | ||
valueType?: string; | ||
optionsSelector?: (items: T[]) => FilterBuilderPropOption[]; | ||
} | ||
|
||
export interface PropertyFilter { | ||
key: string; | ||
value: boolean | string | number | string[] | number[]; | ||
type: string; | ||
} | ||
|
||
export interface Filter { | ||
key: string; | ||
label: string; | ||
filers: PropertyFilter[]; | ||
} | ||
|
||
export interface CustomFilter { | ||
id: number; | ||
type: string; | ||
label: string; | ||
filers: PropertyFilter[]; | ||
} | ||
|
||
interface AppState { | ||
settings: SettingsAppState; | ||
tags: TagsAppState; | ||
} | ||
|
||
export default AppState; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import AppSectionState, { | ||
AppSectionDeleteState, | ||
AppSectionSaveState, | ||
} from 'App/State/AppSectionState'; | ||
import DownloadClient from 'typings/DownloadClient'; | ||
import ImportList from 'typings/ImportList'; | ||
import Indexer from 'typings/Indexer'; | ||
import Notification from 'typings/Notification'; | ||
import { UiSettings } from 'typings/UiSettings'; | ||
|
||
export interface DownloadClientAppState | ||
extends AppSectionState<DownloadClient>, | ||
AppSectionDeleteState, | ||
AppSectionSaveState {} | ||
|
||
export interface ImportListAppState | ||
extends AppSectionState<ImportList>, | ||
AppSectionDeleteState, | ||
AppSectionSaveState {} | ||
|
||
export interface IndexerAppState | ||
extends AppSectionState<Indexer>, | ||
AppSectionDeleteState, | ||
AppSectionSaveState {} | ||
|
||
export interface NotificationAppState | ||
extends AppSectionState<Notification>, | ||
AppSectionDeleteState {} | ||
|
||
export type UiSettingsAppState = AppSectionState<UiSettings>; | ||
|
||
interface SettingsAppState { | ||
downloadClients: DownloadClientAppState; | ||
importLists: ImportListAppState; | ||
indexers: IndexerAppState; | ||
notifications: NotificationAppState; | ||
uiSettings: UiSettingsAppState; | ||
} | ||
|
||
export default SettingsAppState; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import ModelBase from 'App/ModelBase'; | ||
import AppSectionState, { | ||
AppSectionDeleteState, | ||
} from 'App/State/AppSectionState'; | ||
|
||
export interface Tag extends ModelBase { | ||
label: string; | ||
} | ||
|
||
interface TagsAppState extends AppSectionState<Tag>, AppSectionDeleteState {} | ||
|
||
export default TagsAppState; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
frontend/src/Components/Filter/Builder/FilterBuilderRowValueTag.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.tag { | ||
display: flex; | ||
|
||
&.isLastTag { | ||
.or { | ||
display: none; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.