Skip to content

Commit

Permalink
Package Sync init
Browse files Browse the repository at this point in the history
  • Loading branch information
adrolli committed Mar 6, 2024
1 parent f07fa2c commit de1eec9
Show file tree
Hide file tree
Showing 25 changed files with 787 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/monorepo-split-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- jobs
- press
- user
- sync

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
use Moox\Jobs\JobsPlugin;
use Moox\Jobs\JobsWaitingPlugin;
use Moox\Page\PagePlugin;
use Moox\Sync\SyncPlugin;
use Moox\User\UserPlugin;

class AdminPanelProvider extends PanelProvider
Expand Down Expand Up @@ -73,6 +74,7 @@ public function panel(Panel $panel): Panel
JobsPlugin::make(),
PagePlugin::make(),
UserPlugin::make(),
SyncPlugin::make(),
FilamentShieldPlugin::make(),
BreezyCore::make()
->myProfile(
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"moox/page": "*",
"moox/user": "*",
"moox/press": "*",
"moox/sync": "*",
"wikimedia/composer-merge-plugin": "^2.1"
},
"require-dev": {
Expand Down Expand Up @@ -111,4 +112,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
48 changes: 47 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions packages/sync/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: [mooxphp]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
49 changes: 49 additions & 0 deletions packages/sync/.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 packages/sync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changelog
13 changes: 13 additions & 0 deletions packages/sync/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: [mooxphp]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
21 changes: 21 additions & 0 deletions packages/sync/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.
53 changes: 53 additions & 0 deletions packages/sync/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
![Moox Sync](https://github.com/mooxphp/moox/raw/main/art/banner/sync.jpg)

# Moox Sync

This is my package sync

## Quick Installation

These two commmands are all you need to install the package:

```bash
composer require moox/sync
php artisan mooxsync:install
```

Curious what the install command does? See manual installation below.

## What it does

<!--whatdoes-->

This is my package sync

<!--/whatdoes-->

## Manual Installation

Instead of using the install-command `php artisan mooxsync:install` you are able to install this package manually step by step:

```bash
// Publish and run the migrations:
php artisan vendor:publish --tag="sync-migrations"
php artisan migrate

// Publish the config file with:
php artisan vendor:publish --tag="sync-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 packages/sync/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 Sync` 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.
36 changes: 36 additions & 0 deletions packages/sync/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "moox/sync",
"description": "This is my package sync",
"keywords": [
"Laravel",
"Filament",
"Filament plugin",
"Laravel package"
],
"homepage": "https://moox.org/",
"license": "MIT",
"authors": [
{
"name": "Moox Developer",
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
"moox/core": "*"
},
"autoload": {
"psr-4": {
"Moox\\Sync\\": "src"
}
},
"extra": {
"laravel": {
"providers": [
"Moox\\Sync\\SyncServiceProvider"
]
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
5 changes: 5 additions & 0 deletions packages/sync/config/sync.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
// sync does not configure anything
];
32 changes: 32 additions & 0 deletions packages/sync/database/migrations/create_builders_table.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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('syncs', function (Blueprint $table) {
$table->id();
$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('sync');
}
};
16 changes: 16 additions & 0 deletions packages/sync/resources/lang/de/translations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

return [
'single' => 'Sync',
'plural' => 'Syncs',
'breadcrumb' => 'Sync',
'title' => 'Sync',
'navigation_label' => 'Sync',
'navigation_group' => 'Sync Gruppe',
'totalone' => 'Sync Eins',
'totaltwo' => 'Sync Zwei',
'totalthree' => 'Sync Drei',
'name' => 'Name',
'started_at' => 'Gestartet',
'failed' => 'failed',
];
16 changes: 16 additions & 0 deletions packages/sync/resources/lang/en/translations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

return [
'single' => 'Sync',
'plural' => 'Syncs',
'breadcrumb' => 'Sync',
'title' => 'Sync',
'navigation_label' => 'Sync',
'navigation_group' => 'Sync Group',
'totalone' => 'Sync One',
'totaltwo' => 'Sync Two',
'totalthree' => 'Sync Three',
'name' => 'Name',
'started_at' => 'Started at',
'failed' => 'failed',
];
16 changes: 16 additions & 0 deletions packages/sync/resources/lang/es/translations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

return [
'single' => 'Sync',
'plural' => 'Syncs',
'breadcrumb' => 'Sync',
'title' => 'Sync',
'navigation_label' => 'Sync',
'navigation_group' => 'Sync Grupo',
'totalone' => 'Sync Uno',
'totaltwo' => 'Sync Dos',
'totalthree' => 'Sync Trés',
'name' => 'Nombre',
'started_at' => 'Empezó a las',
'failed' => 'failed',
];
Loading

0 comments on commit de1eec9

Please sign in to comment.