From 0c6e90c1de0e5252baf6b8982f7e9ad6834645dd Mon Sep 17 00:00:00 2001 From: Joeri Date: Fri, 26 May 2023 11:46:57 +0200 Subject: [PATCH] Update namespace --- CHANGELOG.md | 11 +++++++++++ LICENSE | 2 +- README.md | 24 ++++++++++++------------ composer.json | 6 +++--- src/CardServiceProvider.php | 2 +- src/Table/Cell.php | 2 +- src/Table/Row.php | 2 +- src/TableCard.php | 2 +- webpack.mix.js | 2 +- 9 files changed, 32 insertions(+), 21 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..5ef3c2c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +## [1.0.2] - 2023-05-26 + +**NB! Namespace has changed from JoeriTheGreat to whitespacecode** + +Please rename `joerithegreat/nova-table-card` to `whitespacecode/nova-table-card` in `composer.json`, and run `composer update`. + +Then change `use JoeriTheGreat\TableCard` to `use Whitespacecode\TableCard`. Thanks! + +### Changed + +- Changed namespace from JoeriTheGreat to Whitespacecode \ No newline at end of file diff --git a/LICENSE b/LICENSE index c676d74..1370598 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 JoeriTheGreat +Copyright (c) 2023 Whitespacecode Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index bdc5534..b8b4ff0 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Simple card table with data of you choice. It can be useful as latest order list or latest posts, ... -![Nova Table Card](https://github.com/JoeriTheGreat/nova-table-card/blob/master/example.png) +![Nova Table Card](https://github.com/Whitespacecode/nova-table-card/blob/master/example.png) ## Requirements @@ -21,7 +21,7 @@ It can be useful as latest order list or latest posts, ... You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer: ```bash -composer require joerithegreat/nova-table-card +composer require Whitespacecode/nova-table-card ``` You must register the card with NovaServiceProvider. @@ -36,7 +36,7 @@ public function cards() // ... // all the parameters are required excelpt title - new \JoeriTheGreat\TableCard\TableCard( + new \Whitespacecode\TableCard\TableCard( array $header, array $data, string $title, array $viewAll ), ]; @@ -46,9 +46,9 @@ public function cards() Example of use: ```php -use JoeriTheGreat\TableCard\TableCard; -use JoeriTheGreat\TableCard\Table\Cell; -use JoeriTheGreat\TableCard\Table\Row; +use Whitespacecode\TableCard\TableCard; +use Whitespacecode\TableCard\Table\Cell; +use Whitespacecode\TableCard\Table\Row; // ... public function cards() @@ -81,7 +81,7 @@ public function cards() or: -You can create your own class which will extend \JoeriTheGreat\TableCard\TableCard in Nova/Cards directory on example. +You can create your own class which will extend \Whitespacecode\TableCard\TableCard in Nova/Cards directory on example. In this separate class you are able to fetch data from models in nice clean way. @@ -90,9 +90,9 @@ In this separate class you are able to fetch data from models in nice clean way. namespace App\Nova\Cards; -use JoeriTheGreat\TableCard\TableCard; -use JoeriTheGreat\TableCard\Table\Cell; -use JoeriTheGreat\TableCard\Table\Row; +use Whitespacecode\TableCard\TableCard; +use Whitespacecode\TableCard\Table\Cell; +use Whitespacecode\TableCard\Table\Row; use App\Models\Order; @@ -166,7 +166,7 @@ You can also show a viewAll on the table with `$this->viewAll()` ## Table Style Customization To show more data on your table, you can use the "tight" table style option designed to increase the visual density of your table rows. ```php -use JoeriTheGreat\TableCard\TableCard; +use Whitespacecode\TableCard\TableCard; protected function cards() { @@ -202,4 +202,4 @@ class LatestOrders extends TableCard } } ``` -![Nova Table Card](https://github.com/JoeriTheGreat/nova-table-card/blob/master/examplePaginate.png) +![Nova Table Card](https://github.com/Whitespacecode/nova-table-card/blob/master/examplePaginate.png) diff --git a/composer.json b/composer.json index 8f1d5a6..d014f43 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "joerithegreat/nova-table-card", + "name": "whitespacecode/nova-table-card", "description": "Nova table card. Show your latest data (orders, posts,...) as card or data you prefer.", "keywords": [ "laravel", @@ -12,13 +12,13 @@ }, "autoload": { "psr-4": { - "JoeriTheGreat\\TableCard\\": "src/" + "Whitespacecode\\TableCard\\": "src/" } }, "extra": { "laravel": { "providers": [ - "JoeriTheGreat\\TableCard\\CardServiceProvider" + "Whitespacecode\\TableCard\\CardServiceProvider" ] } }, diff --git a/src/CardServiceProvider.php b/src/CardServiceProvider.php index 8f41fc7..c8abe4e 100644 --- a/src/CardServiceProvider.php +++ b/src/CardServiceProvider.php @@ -1,6 +1,6 @@