This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
search for multiple tags
- Loading branch information
Jonas Winkler
committed
Nov 3, 2020
1 parent
883d5aa
commit 965e874
Showing
7 changed files
with
66 additions
and
25 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 |
---|---|---|
|
@@ -84,5 +84,6 @@ scripts/nuke | |
/data/index | ||
|
||
/paperless.conf | ||
/consumption/ | ||
/consume | ||
/export | ||
/src-ui/.vscode |
7 changes: 4 additions & 3 deletions
7
src-ui/src/app/components/filter-editor/filter-editor.component.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
export const FILTER_RULE_TYPES: FilterRuleType[] = [ | ||
{name: "Title contains", filtervar: "title__icontains", datatype: "string"}, | ||
{name: "Content contains", filtervar: "content__icontains", datatype: "string"}, | ||
{name: "Title contains", filtervar: "title__icontains", datatype: "string", multi: false}, | ||
{name: "Content contains", filtervar: "content__icontains", datatype: "string", multi: false}, | ||
|
||
{name: "ASN is", filtervar: "archive_serial_number", datatype: "number"}, | ||
{name: "ASN is", filtervar: "archive_serial_number", datatype: "number", multi: false}, | ||
|
||
{name: "Correspondent is", filtervar: "correspondent__id", datatype: "correspondent"}, | ||
{name: "Document type is", filtervar: "document_type__id", datatype: "document_type"}, | ||
{name: "Has tag", filtervar: "tags__id", datatype: "tag"}, | ||
|
||
{name: "Has any tag", filtervar: "is_tagged", datatype: "boolean"}, | ||
{name: "Correspondent is", filtervar: "correspondent__id", datatype: "correspondent", multi: false}, | ||
{name: "Document type is", filtervar: "document_type__id", datatype: "document_type", multi: false}, | ||
|
||
{name: "Is in Inbox", filtervar: "is_in_inbox", datatype: "boolean", multi: false}, | ||
{name: "Has tag", filtervar: "tags__id__all", datatype: "tag", multi: true}, | ||
{name: "Has any tag", filtervar: "is_tagged", datatype: "boolean", multi: false}, | ||
|
||
{name: "Date created before", filtervar: "created__date__lt", datatype: "date"}, | ||
{name: "Date created after", filtervar: "created__date__gt", datatype: "date"}, | ||
{name: "Created before", filtervar: "created__date__lt", datatype: "date", multi: false}, | ||
{name: "Created after", filtervar: "created__date__gt", datatype: "date", multi: false}, | ||
|
||
{name: "Year created is", filtervar: "created__year", datatype: "number"}, | ||
{name: "Month created is", filtervar: "created__month", datatype: "number"}, | ||
{name: "Day created is", filtervar: "created__day", datatype: "number"}, | ||
{name: "Year created is", filtervar: "created__year", datatype: "number", multi: false}, | ||
{name: "Month created is", filtervar: "created__month", datatype: "number", multi: false}, | ||
{name: "Day created is", filtervar: "created__day", datatype: "number", multi: false}, | ||
|
||
{name: "Date added before", filtervar: "added__date__lt", datatype: "date"}, | ||
{name: "Date added after", filtervar: "added__date__gt", datatype: "date"}, | ||
{name: "Added before", filtervar: "added__date__lt", datatype: "date", multi: false}, | ||
{name: "Added after", filtervar: "added__date__gt", datatype: "date", multi: false}, | ||
|
||
{name: "Date modified before", filtervar: "modified__date__lt", datatype: "date"}, | ||
{name: "Date modified after", filtervar: "modified__date__gt", datatype: "date"}, | ||
{name: "Modified before", filtervar: "modified__date__lt", datatype: "date", multi: false}, | ||
{name: "Modified after", filtervar: "modified__date__gt", datatype: "date", multi: false}, | ||
] | ||
|
||
export interface FilterRuleType { | ||
name: string | ||
filtervar: string | ||
datatype: string //number, string, boolean, date | ||
multi: boolean | ||
} |
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