Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adrolli committed Nov 30, 2023
1 parent 23258c5 commit 6e64752
Show file tree
Hide file tree
Showing 16 changed files with 726 additions and 92 deletions.
92 changes: 0 additions & 92 deletions _builder/README.md

This file was deleted.

49 changes: 49 additions & 0 deletions _others/moox-skeleton/.gitignore
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
1 change: 1 addition & 0 deletions _others/moox-skeleton/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changelog
21 changes: 21 additions & 0 deletions _others/moox-skeleton/LICENSE.md
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.
42 changes: 42 additions & 0 deletions _others/moox-skeleton/README.md
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.
13 changes: 13 additions & 0 deletions _others/moox-skeleton/SECURITY.md
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.
37 changes: 37 additions & 0 deletions _others/moox-skeleton/composer.json
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
}
20 changes: 20 additions & 0 deletions _others/moox-skeleton/config/skeleton.php
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,
],
];
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');
}
};
14 changes: 14 additions & 0 deletions _others/moox-skeleton/resources/lang/en/translations.php
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',
];
23 changes: 23 additions & 0 deletions _others/moox-skeleton/src/Models/Skeleton.php
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',
];
}
Loading

0 comments on commit 6e64752

Please sign in to comment.