Skip to content

Commit

Permalink
Update namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeri committed May 26, 2023
1 parent 4e6d04d commit 0c6e90c
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 21 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand All @@ -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
),
];
Expand All @@ -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()
Expand Down Expand Up @@ -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.

Expand All @@ -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;

Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -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)
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -12,13 +12,13 @@
},
"autoload": {
"psr-4": {
"JoeriTheGreat\\TableCard\\": "src/"
"Whitespacecode\\TableCard\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"JoeriTheGreat\\TableCard\\CardServiceProvider"
"Whitespacecode\\TableCard\\CardServiceProvider"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/CardServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JoeriTheGreat\TableCard;
namespace Whitespacecode\TableCard;

use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
Expand Down
2 changes: 1 addition & 1 deletion src/Table/Cell.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JoeriTheGreat\TableCard\Table;
namespace Whitespacecode\TableCard\Table;

use JsonSerializable;
use Laravel\Nova\Makeable;
Expand Down
2 changes: 1 addition & 1 deletion src/Table/Row.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JoeriTheGreat\TableCard\Table;
namespace Whitespacecode\TableCard\Table;

use JsonSerializable;
use Laravel\Nova\Makeable;
Expand Down
2 changes: 1 addition & 1 deletion src/TableCard.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JoeriTheGreat\TableCard;
namespace Whitespacecode\TableCard;

use Illuminate\Pagination\LengthAwarePaginator;
use Laravel\Nova\Card;
Expand Down
2 changes: 1 addition & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mix
.js('resources/js/card.js', 'js')
.vue({ version: 3 })
.css('resources/css/card.css', 'css')
.nova('joerithegreat/nova-table-card')
.nova('whitespacecode/nova-table-card')

0 comments on commit 0c6e90c

Please sign in to comment.