-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add product/subproduct search. finalize product page w/ descs
- Loading branch information
Showing
14 changed files
with
117 additions
and
134 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
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,37 +1,34 @@ | ||
import { type ICardHelp } from '../../interfaces'; | ||
import { partialWithOptionalExactTextOperator } from './_helpers'; | ||
|
||
export const card = partialWithOptionalExactTextOperator( | ||
['card', 'id', 'code'], | ||
'id' | ||
); | ||
export const card = partialWithOptionalExactTextOperator(['card', 'id'], 'id'); | ||
|
||
export const cardDescription: ICardHelp = { | ||
name: 'Code / ID', | ||
id: 'code', | ||
name: 'ID', | ||
id: 'id', | ||
|
||
icon: 'finger-print-outline', | ||
|
||
color: '#8360c3', | ||
|
||
help: ` | ||
You can find cards that match a certain code/id by using the \`id:\` operator. | ||
You can find cards that match a certain id by using the \`id:\` operator. | ||
This operator is special, you may also search without using the operator. | ||
`, | ||
|
||
examples: [ | ||
{ | ||
example: '`5HY/W83-E001`', | ||
explanation: 'Find specifically the card matching 5HY/W83-E001', | ||
example: '`OATH/1`', | ||
explanation: 'Find specifically the card matching OATH/1', | ||
}, | ||
{ | ||
example: '`id:=5HY/W83-E001`', | ||
explanation: 'Find specifically the card matching 5HY/W83-E001.', | ||
example: '`id:=OATH/1`', | ||
explanation: 'Find specifically the card matching OATH/1.', | ||
}, | ||
{ | ||
example: '`-id:5HY/W83`', | ||
explanation: 'Exclude the cards matching 5HY/W83.', | ||
example: '`-id:OATH`', | ||
explanation: 'Exclude the cards matching OATH.', | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
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,5 +1,6 @@ | ||
export * from './bare'; | ||
export * from './card'; | ||
export * from './in'; | ||
export * from './name'; | ||
export * from './product'; | ||
export * from './subproduct'; | ||
export * from './tag'; |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { type ICardHelp } from '../../interfaces'; | ||
import { exactTextOperator } from './_helpers'; | ||
|
||
export const product = exactTextOperator(['product', 'game'], 'product'); | ||
|
||
export const productDescription: ICardHelp = { | ||
name: 'Product', | ||
id: 'id', | ||
|
||
icon: 'game-controller-outline', | ||
|
||
color: '#d0312d', | ||
|
||
help: ` | ||
You can find cards that are associated with a certain product/game by using the \`product:\` operator. | ||
`, | ||
|
||
examples: [ | ||
{ | ||
example: '`product:oath`', | ||
explanation: 'Find cards belonging to Oath.', | ||
}, | ||
{ | ||
example: '`-product:root`', | ||
explanation: 'Exclude the cards belonging to Root.', | ||
}, | ||
], | ||
}; |
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,31 @@ | ||
import { type ICardHelp } from '../../interfaces'; | ||
import { exactTextOperator } from './_helpers'; | ||
|
||
export const subproduct = exactTextOperator( | ||
['subproduct', 'expansion'], | ||
'subproduct' | ||
); | ||
|
||
export const subproductDescription: ICardHelp = { | ||
name: 'Subproduct', | ||
id: 'id', | ||
|
||
icon: 'hardware-chip-outline', | ||
|
||
color: '#ffa500', | ||
|
||
help: ` | ||
You can find cards that are associated with a certain subproduct/expansion by using the \`subproduct:\` operator. | ||
`, | ||
|
||
examples: [ | ||
{ | ||
example: '`subproduct:clockwork-1`', | ||
explanation: 'Find cards belonging to the first Clockwork expansion.', | ||
}, | ||
{ | ||
example: '`-subproduct:exiles-partisans`', | ||
explanation: 'Exclude the cards belonging to Exiles & Partisans.', | ||
}, | ||
], | ||
}; |
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