Skip to content

Commit

Permalink
Refactoring database (#254)
Browse files Browse the repository at this point in the history
* wip

* Add country flags

* Update migrations and add factories classes and install command

* Update commands

* wip

* fix code formatting

---------

Co-authored-by: mckenziearts <[email protected]>
  • Loading branch information
mckenziearts and mckenziearts authored Apr 23, 2024
1 parent 494cd72 commit a897740
Show file tree
Hide file tree
Showing 383 changed files with 12,282 additions and 1,700 deletions.
14 changes: 0 additions & 14 deletions packages/admin/config/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,6 @@
'scripts' => [],
],

/*
|--------------------------------------------------------------------------
| Date Format
|--------------------------------------------------------------------------
| You can customize this format using dayjs date string constants.
| Setting this value to null will use Carbon's default format.
|
| https://day.js.org/docs/en/display/format
|
*/

'date_format' => 'LL',
'date_time_format' => 'LLL',

/*
|--------------------------------------------------------------------------
| Shopper Inventory Limit
Expand Down
9 changes: 4 additions & 5 deletions packages/admin/config/components/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);

use Shopper\Livewire;
use Shopper\Livewire\Components;

return [

Expand All @@ -13,7 +12,10 @@
|--------------------------------------------------------------------------
*/

'pages' => [],
'pages' => [
'order-index' => Livewire\Pages\Order\Index::class,
'order-detail' => Livewire\Pages\Order\Detail::class,
],

/*
|--------------------------------------------------------------------------
Expand All @@ -22,9 +24,6 @@
*/

'components' => [
'orders.browse' => Components\Orders\Browse::class,
'orders.show' => Components\Orders\Show::class,

'modals.archived-order' => Livewire\Modals\ArchiveOrder::class,
],

Expand Down
16 changes: 9 additions & 7 deletions packages/admin/config/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,52 @@
|--------------------------------------------------------------------------
|
| The menu for the generation of the settings page.
| BladeUIKit UntitledUI is the icon used. See https://blade-ui-kit.com/blade-icons?set=74
| UntitledUI is the icon used. See https://blade-ui-kit.com/blade-icons?set=74
|
| 'icon' => 'name_of_the_set_icon'
|
*/

'items' => [
[
'name' => 'General',
'description' => 'View and update your store information.',
'icon' => svg('untitledui-sliders', 'h-6 w-6'),
'icon' => 'untitledui-sliders',
'route' => 'shopper.settings.shop',
'permission' => null,
],
[
'name' => 'Staff & permissions',
'description' => 'View and manage what staff can see or do in your store.',
'icon' => svg('untitledui-shield-separator', 'h-6 w-6'),
'icon' => 'untitledui-shield-separator',
'route' => 'shopper.settings.users',
'permission' => null,
],
[
'name' => 'Locations',
'description' => 'Manage the places you stock inventory and sell products.',
'icon' => svg('untitledui-marker-pin-flag', 'h-6 w-6'),
'icon' => 'untitledui-marker-pin-flag',
'route' => 'shopper.settings.inventories',
'permission' => null,
],
// [
// 'name' => 'Analytics',
// 'description' => 'Get a better understanding of where your traffic is coming from.',
// 'icon' => svg('untitledui-pie-chart', 'h-6 w-6'),
// 'icon' => 'untitledui-pie-chart',
// 'route' => 'shopper.settings.analytics',
// 'permission' => null,
// ],
[
'name' => 'Payment methods',
'description' => 'Add different payment methods for your customers.',
'icon' => svg('untitledui-coins-hand', 'h-6 w-6'),
'icon' => 'untitledui-coins-hand',
'route' => 'shopper.settings.payments',
'permission' => null,
],
[
'name' => 'Legal',
'description' => "Manage your store's legal pages such as privacy, terms.",
'icon' => svg('untitledui-file-lock-02', 'h-6 w-6'),
'icon' => 'untitledui-file-lock-02',
'route' => 'shopper.settings.legal',
'permission' => null,
],
Expand Down
689 changes: 689 additions & 0 deletions packages/admin/public/images/flags/ac.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
150 changes: 150 additions & 0 deletions packages/admin/public/images/flags/ad.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions packages/admin/public/images/flags/ae.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions packages/admin/public/images/flags/af.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions packages/admin/public/images/flags/ag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions packages/admin/public/images/flags/ai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/admin/public/images/flags/al.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/admin/public/images/flags/am.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions packages/admin/public/images/flags/ao.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/admin/public/images/flags/aq.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions packages/admin/public/images/flags/ar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a897740

Please sign in to comment.