fix: remove MIT note from /license, fix Buy/Sell Gear button on /map, expand stash storage locations
Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
parent
805edd86ca
commit
9fc39651ca
4 changed files with 26 additions and 11 deletions
|
|
@ -28,7 +28,7 @@ export interface StashItem {
|
||||||
// Rarity override (for special items)
|
// Rarity override (for special items)
|
||||||
rarity?: 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary';
|
rarity?: 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary';
|
||||||
// Physical storage location
|
// Physical storage location
|
||||||
storageLocation?: 'home' | 'warehouse' | 'friends' | 'parents' | 'wardrobe' | 'other';
|
storageLocation?: 'home' | 'car' | 'skatepark' | 'warehouse' | 'storage_unit' | 'van' | 'friends' | 'parents' | 'wardrobe' | 'backpack' | 'sponsor' | 'other';
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Stash {
|
export interface Stash {
|
||||||
|
|
|
||||||
|
|
@ -85,10 +85,7 @@ export default function LicensePage() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* MIT note */}
|
|
||||||
<p className="text-center text-gray-600 text-xs mt-8">
|
|
||||||
The source code is also available under the MIT license for those who need it.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1015,10 +1015,10 @@ export default function MapPage() {
|
||||||
<span className="hidden md:inline">{t('shops.addShop')}</span>
|
<span className="hidden md:inline">{t('shops.addShop')}</span>
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/create-listing" className="flex-shrink-0 hidden sm:block">
|
<Link to="/marketplace" className="flex-shrink-0 hidden sm:block">
|
||||||
<Button size="sm" variant="outline" className="gap-1.5 border-2 border-orange-500/50 hover:bg-orange-500/10 text-orange-400 font-bold h-8 px-2 sm:px-3">
|
<Button size="sm" variant="outline" className="gap-1.5 border-2 border-orange-500/50 hover:bg-orange-500/10 text-orange-400 font-bold h-8 px-2 sm:px-3">
|
||||||
<ShoppingBag className="h-4 w-4" />
|
<ShoppingBag className="h-4 w-4" />
|
||||||
<span className="hidden md:inline">{t('marketplace.sellGear')}</span>
|
<span className="hidden md:inline">Buy/Sell Gear</span>
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/create-tour" className="flex-shrink-0 hidden sm:block">
|
<Link to="/create-tour" className="flex-shrink-0 hidden sm:block">
|
||||||
|
|
|
||||||
|
|
@ -230,10 +230,16 @@ function StashItemCard({ item, onEdit, onDelete, onListOnMarketplace, isWTB = fa
|
||||||
<span className="text-[10px] px-1.5 py-0.5 rounded-full border border-[#ff6600]/30 text-[#ff6600] font-bold uppercase tracking-wide">
|
<span className="text-[10px] px-1.5 py-0.5 rounded-full border border-[#ff6600]/30 text-[#ff6600] font-bold uppercase tracking-wide">
|
||||||
{{
|
{{
|
||||||
home: '🏠 Home',
|
home: '🏠 Home',
|
||||||
|
car: '🚗 Car',
|
||||||
|
skatepark: '🛹 Skatepark',
|
||||||
warehouse: '🏭 Warehouse',
|
warehouse: '🏭 Warehouse',
|
||||||
|
storage_unit: '🔒 Storage Unit',
|
||||||
|
van: '🚐 Van',
|
||||||
friends: "👫 Friend's",
|
friends: "👫 Friend's",
|
||||||
parents: "👨👩👦 Parents'",
|
parents: "👨👩👦 Parents'",
|
||||||
wardrobe: '🚪 Wardrobe',
|
wardrobe: '🚪 Wardrobe',
|
||||||
|
backpack: '🎒 Backpack',
|
||||||
|
sponsor: '🤝 Sponsor',
|
||||||
other: '📦 Other',
|
other: '📦 Other',
|
||||||
}[item.storageLocation]}
|
}[item.storageLocation]}
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -749,10 +755,16 @@ function AddItemDialog({ onAdd, mode = 'stash' }: { onAdd: (item: Omit<StashItem
|
||||||
<div className="grid grid-cols-3 gap-2">
|
<div className="grid grid-cols-3 gap-2">
|
||||||
{([
|
{([
|
||||||
{ value: 'home', label: '🏠 Home' },
|
{ value: 'home', label: '🏠 Home' },
|
||||||
{ value: 'warehouse', label: '🏭 Warehouse' },
|
{ value: 'car', label: '🚗 Car' },
|
||||||
|
{ value: 'backpack', label: '🎒 Backpack' },
|
||||||
|
{ value: 'wardrobe', label: '🚪 Wardrobe' },
|
||||||
|
{ value: 'van', label: '🚐 Van' },
|
||||||
|
{ value: 'skatepark', label: '🛹 Skatepark' },
|
||||||
{ value: 'friends', label: "👫 Friend's" },
|
{ value: 'friends', label: "👫 Friend's" },
|
||||||
{ value: 'parents', label: "👨👩👦 Parents'" },
|
{ value: 'parents', label: "👨👩👦 Parents'" },
|
||||||
{ value: 'wardrobe', label: '🚪 Wardrobe' },
|
{ value: 'warehouse', label: '🏭 Warehouse' },
|
||||||
|
{ value: 'storage_unit', label: '🔒 Storage Unit' },
|
||||||
|
{ value: 'sponsor', label: '🤝 Sponsor' },
|
||||||
{ value: 'other', label: '📦 Other' },
|
{ value: 'other', label: '📦 Other' },
|
||||||
] as const).map(({ value, label }) => (
|
] as const).map(({ value, label }) => (
|
||||||
<button
|
<button
|
||||||
|
|
@ -1566,10 +1578,16 @@ export default function StashPage() {
|
||||||
{([
|
{([
|
||||||
{ value: 'all', label: 'All' },
|
{ value: 'all', label: 'All' },
|
||||||
{ value: 'home', label: '🏠 Home' },
|
{ value: 'home', label: '🏠 Home' },
|
||||||
{ value: 'warehouse', label: '🏭 Warehouse' },
|
{ value: 'car', label: '🚗 Car' },
|
||||||
|
{ value: 'backpack', label: '🎒 Backpack' },
|
||||||
|
{ value: 'wardrobe', label: '🚪 Wardrobe' },
|
||||||
|
{ value: 'van', label: '🚐 Van' },
|
||||||
|
{ value: 'skatepark', label: '🛹 Skatepark' },
|
||||||
{ value: 'friends', label: "👫 Friend's" },
|
{ value: 'friends', label: "👫 Friend's" },
|
||||||
{ value: 'parents', label: "👨👩👦 Parents'" },
|
{ value: 'parents', label: "👨👩👦 Parents'" },
|
||||||
{ value: 'wardrobe', label: '🚪 Wardrobe' },
|
{ value: 'warehouse', label: '🏭 Warehouse' },
|
||||||
|
{ value: 'storage_unit', label: '🔒 Storage Unit' },
|
||||||
|
{ value: 'sponsor', label: '🤝 Sponsor' },
|
||||||
{ value: 'other', label: '📦 Other' },
|
{ value: 'other', label: '📦 Other' },
|
||||||
] as const).map(({ value, label }) => (
|
] as const).map(({ value, label }) => (
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue