-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
25 changed files
with
787 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ jobs: | |
- jobs | ||
- press | ||
- user | ||
- sync | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,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'] |
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,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'] |
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,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. |
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 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. |
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,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 | ||
} |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
// sync does not configure anything | ||
]; |
32 changes: 32 additions & 0 deletions
32
packages/sync/database/migrations/create_builders_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,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'); | ||
} | ||
}; |
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,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', | ||
]; |
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,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', | ||
]; |
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,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', | ||
]; |
Oops, something went wrong.