-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
726 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Environment | ||
.env | ||
.env.backup | ||
|
||
# Composer | ||
/vendor | ||
composer.lock | ||
auth.json | ||
|
||
# NPM / Node | ||
/node_modules | ||
npm-debug.log | ||
package-lock.json | ||
|
||
# Laravel | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
|
||
# PHPUnit | ||
.phpunit.result.cache | ||
phpunit.xml | ||
|
||
# Yarn | ||
yarn-error.log | ||
|
||
# PHPStan | ||
/build | ||
phpstan.neon | ||
|
||
# Testbench | ||
testbench.yaml | ||
|
||
# PHP CS Fixer | ||
.php-cs-fixer.cache | ||
|
||
# Homestead | ||
Homestead.json | ||
Homestead.yaml | ||
|
||
# IDEs | ||
/.idea | ||
/.vscode | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# Windows | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Moox <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Moox Skeleton | ||
|
||
This template is used for generating all Moox packages. | ||
|
||
If you install it, it will completely work without beeing useful. Guaranteed! | ||
|
||
## Installation | ||
|
||
You can install the package via composer: | ||
|
||
```bash | ||
composer require moox/skeleton | ||
``` | ||
|
||
You can publish and run the migrations with: | ||
|
||
```bash | ||
php artisan vendor:publish --tag="skeleton-migrations" | ||
php artisan migrate | ||
``` | ||
|
||
You can publish the config file with: | ||
|
||
```bash | ||
php artisan vendor:publish --tag="skeleton-config" | ||
``` | ||
|
||
## Changelog | ||
|
||
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. | ||
|
||
## Security Vulnerabilities | ||
|
||
Please review [our security policy](https://github.com/mooxphp/moox/security/policy) on how to report security vulnerabilities. | ||
|
||
## Credits | ||
|
||
- [All Contributors](../../contributors) | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
We maintain the current version of `Moox Skeleton` actively. | ||
|
||
Do not expect security fixes for older versions. | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you find any security-related bug, please report it to [email protected]. | ||
|
||
Please do not use Github issues, to give us enough time to review and fix the issue, before others can use it, to do stupid things. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "moox/skeleton", | ||
"description": "This template is used for generating all Moox packages.", | ||
"keywords": [ | ||
"Laravel", | ||
"Filament", | ||
"Filament plugin", | ||
"Laravel package" | ||
], | ||
"homepage": "https://github.com/mooxphp/", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Alf Drollinger", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"spatie/laravel-package-tools": "^1.13.0", | ||
"filament/filament": "^3.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Moox\\Skeleton\\": "src" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Moox\\Skeleton\\SkeletonServiceProvider" | ||
] | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
return [ | ||
'resources' => [ | ||
'skeleton' => [ | ||
'enabled' => true, | ||
'label' => 'Skeleton', | ||
'plural_label' => 'Skeletons', | ||
'navigation_group' => 'Skeleton Group', | ||
'navigation_icon' => 'heroicon-o-play', | ||
'navigation_sort' => 1, | ||
'navigation_count_badge' => true, | ||
'resource' => Moox\Skeleton\Resources\SkeletonResource::class, | ||
], | ||
], | ||
'pruning' => [ | ||
'enabled' => true, | ||
'retention_days' => 7, | ||
], | ||
]; |
31 changes: 31 additions & 0 deletions
31
_others/moox-skeleton/database/migrations/create_skeleton_table.php.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('skeleton', function (Blueprint $table) { | ||
$table->string('id')->index(); | ||
$table->string('name')->nullable(); | ||
$table->timestamp('started_at')->nullable()->index(); | ||
$table->timestamp('finished_at')->nullable(); | ||
$table->boolean('failed')->default(false)->index(); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('skeleton'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
return [ | ||
'breadcrumb' => 'Skeleton', | ||
'title' => 'Skeleton', | ||
'navigation_label' => 'Skeleton', | ||
'navigation_group' => 'Skeleton Group', | ||
'totalone' => 'Skeleton One', | ||
'totaltwo' => 'Skeleton Two', | ||
'totalthree' => 'Skeleton Three', | ||
'name' => 'Name', | ||
'started_at' => 'Started at', | ||
'failed' => 'failed', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Moox\Skeleton\Models; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Skeleton extends Model | ||
{ | ||
protected $table = 'skeleton'; | ||
|
||
protected $fillable = [ | ||
'name', | ||
'started_at', | ||
'finished_at', | ||
'failed', | ||
]; | ||
|
||
protected $casts = [ | ||
'failed' => 'bool', | ||
'started_at' => 'datetime', | ||
'finished_at' => 'datetime', | ||
]; | ||
} |
Oops, something went wrong.