Skip to content

Commit

Permalink
Products feature (#245)
Browse files Browse the repository at this point in the history
* Products - Add create and list feature

* Products - Add shipping, overview, seo and inventory edit feature

* Products - Add related product on edit product tabs

* fix code formatting

---------

Co-authored-by: mckenziearts <[email protected]>
  • Loading branch information
mckenziearts and mckenziearts authored Apr 9, 2024
1 parent 57f5331 commit 17ce222
Show file tree
Hide file tree
Showing 111 changed files with 5,810 additions and 2,701 deletions.
1 change: 1 addition & 0 deletions packages/admin/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"require": {
"php": "^8.2",
"akaunting/laravel-money": "^5.2",
"bacon/bacon-qr-code": "^2.0",
"danharrin/livewire-rate-limiting": "^0.3|^1.0",
"filament/forms": "^3.2",
Expand Down
15 changes: 15 additions & 0 deletions packages/admin/config/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

declare(strict_types=1);

use Filament\Support\Colors\Color;

return [

/*
Expand Down Expand Up @@ -66,6 +68,19 @@
'bg_color' => 'dbeafe',
],

/*
|--------------------------------------------------------------------------
| Filament Primary UI color
|--------------------------------------------------------------------------
|
| By default on some elements filament does not take into account the "primary"
| color, to correct this after changing your primary color in your tailwind file
| you must also change it here.
|
*/

'filament-color' => Color::Blue,

/*
|--------------------------------------------------------------------------
| Shopper Resource
Expand Down
15 changes: 8 additions & 7 deletions packages/admin/config/components/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
|--------------------------------------------------------------------------
*/

'pages' => [],
'pages' => [
'product-index' => Livewire\Pages\Product\Index::class,
'product-create' => Livewire\Pages\Product\Create::class,
'product-edit' => Livewire\Pages\Product\Edit::class,
],

/*
|--------------------------------------------------------------------------
Expand All @@ -27,11 +31,9 @@
'attributes.edit' => Components\Attributes\Edit::class,
'attributes.values' => Components\Attributes\Values::class,

'products.browse' => Components\Products\Browse::class,
'products.create' => Components\Products\Create::class,
'products.edit' => Components\Products\Edit::class,
'products.form.attributes' => Components\Products\Form\Attributes::class,
'products.form.edit' => Components\Products\Form\Edit::class,
'products.form.edit' => Components\Products\Form\Edit::class, // Done
'products.form.media' => Components\Products\Form\Media::class, // Done
'products.form.inventory' => Components\Products\Form\Inventory::class,
'products.form.related-products' => Components\Products\Form\RelatedProducts::class,
'products.form.seo' => Components\Products\Form\Seo::class,
Expand All @@ -42,9 +44,8 @@

'modals.add-variant' => Livewire\Modals\AddVariant::class,
'modals.create-value' => Livewire\Modals\CreateValue::class,
'modals.delete-product' => Livewire\Modals\DeleteProduct::class,
'modals.products-lists' => Livewire\Modals\ProductsLists::class,
'modals.related-products' => Livewire\Modals\RelatedProducts::class,
'modals.related-products-list' => Livewire\Modals\RelatedProductsList::class,
'modals.update-value' => Livewire\Modals\UpdateValue::class,
'modals.update-variant-stock' => Livewire\Modals\UpdateVariantStock::class,
],
Expand Down
3 changes: 3 additions & 0 deletions packages/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@
"resolve-url-loader": "^2.3.1",
"sortablejs": "^1.15.0",
"tailwindcss": "^3.4.1"
},
"dependencies": {
"treeselectjs": "^0.10.0"
}
}
Loading

0 comments on commit 17ce222

Please sign in to comment.