-
Notifications
You must be signed in to change notification settings - Fork 13
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
5 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { useStorage } from '@plasmohq/storage/hook'; | ||
import { IcOutlineDiscount, IcRoundAccessTime, PhSticker, StreamlineDiscountPercentCoupon } from '~lib/components/Icons'; | ||
import { SettingsCard } from '~lib/components/SettingsCard'; | ||
import { SettingsCheckbox } from '~lib/components/SettingsCheckbox'; | ||
import { SettingsColorPicker } from '~lib/components/SettingsColorPicker'; | ||
import { SettingsEnable } from '~lib/components/SettingsEnable'; | ||
import { SettingsSource } from '~lib/components/SettingsSource'; | ||
import { cn } from '~lib/utils'; | ||
import { ScrollArea, TabsContent } from '../components/Shadcn'; | ||
|
||
export const SkinbaronSettings = () => { | ||
const [checked] = useStorage('baron-enable'); | ||
|
||
return ( | ||
<TabsContent value="skinbaron" className={cn('h-[530px] w-[330px]', checked ? '' : 'border-destructive/80')}> | ||
<ScrollArea className="h-full w-full py-2 px-2"> | ||
<SettingsEnable id="baron-enable" /> | ||
<div className=""> | ||
<div className="pt-4 pb-2"> | ||
<p className="text-base font-bold leading-none tracking-tight uppercase">Features</p> | ||
</div> | ||
<div className="flex flex-col gap-1"> | ||
<SettingsCard> | ||
<SettingsCheckbox id="baron-stickerprices" text="Sticker Prices" icon={<PhSticker className="h-6 w-6" />} /> | ||
</SettingsCard> | ||
</div> | ||
</div> | ||
<div className=""> | ||
<div className="pt-4 pb-2"> | ||
<p className="text-base font-bold leading-none tracking-tight uppercase">Prices</p> | ||
</div> | ||
<div className="flex flex-col gap-1"> | ||
<SettingsSource prefix="bm" /> | ||
<SettingsCard> | ||
<SettingsCheckbox | ||
id="baron-buffdifference" | ||
text="Show Buff Price Difference" | ||
tooltipText="Recalculates and replaces the original discount tag according to the item's Buff price in absolute units." | ||
icon={<IcOutlineDiscount className="h-6 w-6" />} | ||
/> | ||
</SettingsCard> | ||
<SettingsCard> | ||
<SettingsCheckbox | ||
id="baron-buffdifferencepercent" | ||
text="Show Buff Price Percentage Difference" | ||
tooltipText="Requires 'Show Buff Price Difference' to be activated. Display the ratio of an item's price to the Buff price in percentage. Price equality equates to 100%." | ||
icon={<StreamlineDiscountPercentCoupon className="h-6 w-6" />} | ||
/> | ||
</SettingsCard> | ||
</div> | ||
</div> | ||
<div className="mb-2"> | ||
<div className="pt-4 pb-2"> | ||
<p className="text-base font-bold leading-none tracking-tight uppercase">Listings</p> | ||
</div> | ||
<div className="flex flex-col gap-1"> | ||
<SettingsCard> | ||
<SettingsCheckbox id="baron-listingage" text="Show Listing Age" icon={<IcRoundAccessTime className="h-6 w-6" />} /> | ||
</SettingsCard> | ||
</div> | ||
</div> | ||
<div className="mb-2"> | ||
<div className="pt-4 pb-2"> | ||
<p className="text-base font-bold leading-none tracking-tight uppercase">MISC</p> | ||
</div> | ||
<div className="flex flex-col gap-1"> | ||
<SettingsColorPicker prefix="bm" /> | ||
</div> | ||
</div> | ||
</ScrollArea> | ||
</TabsContent> | ||
); | ||
}; |
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