-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
149 additions
and
13 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 |
---|---|---|
|
@@ -13,4 +13,7 @@ export interface ICard { | |
|
||
imageClass?: string; | ||
meta: Record<string, number>; | ||
|
||
faq?: number; | ||
errata?: number; | ||
} |
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,30 @@ | ||
import { type ICardHelp } from '../../interfaces'; | ||
import { numericalOperator } from './_helpers'; | ||
|
||
export const errata = numericalOperator(['errata', 'e'], 'errata'); | ||
|
||
export const errataDescription: ICardHelp = { | ||
name: 'Errata', | ||
id: 'errata', | ||
|
||
icon: 'flask-outline', | ||
|
||
color: '#aa3c06', | ||
|
||
help: ` | ||
You can find cards that have errata entries with the \`errata:\` or \`e:\` operator. | ||
This operator is a numeric operator, meaning you'll by default want to search for \`errata:>0\` to find entries with any errata entries. | ||
`, | ||
|
||
examples: [ | ||
{ | ||
example: '`errata:>0`', | ||
explanation: 'Cards that have any number of errata entries.', | ||
}, | ||
{ | ||
example: '`errata:=0`', | ||
explanation: 'Cards with no errata entries.', | ||
}, | ||
], | ||
}; |
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,30 @@ | ||
import { type ICardHelp } from '../../interfaces'; | ||
import { numericalOperator } from './_helpers'; | ||
|
||
export const faq = numericalOperator(['faq', 'f'], 'faq'); | ||
|
||
export const faqDescription: ICardHelp = { | ||
name: 'FAQ', | ||
id: 'faq', | ||
|
||
icon: 'chatbubbles-outline', | ||
|
||
color: '#aa063c', | ||
|
||
help: ` | ||
You can find cards that have FAQ entries with the \`faq:\` or \`f:\` operator. | ||
This operator is a numeric operator, meaning you'll by default want to search for \`faq:>0\` to find entries with any FAQs. | ||
`, | ||
|
||
examples: [ | ||
{ | ||
example: '`faq:>0`', | ||
explanation: 'Cards that have any number of FAQ entries.', | ||
}, | ||
{ | ||
example: '`faq:=0`', | ||
explanation: 'Cards with no FAQ entries.', | ||
}, | ||
], | ||
}; |
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
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