Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Sep 1, 2023
0 parents commit 43b4b60
Show file tree
Hide file tree
Showing 188 changed files with 232,946 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
5 changes: 5 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ec74fd0966cde2f8c75a2935a420feef9f55f339
efbf9ca46ae8ecfe51577f35b051507cbb990641
9749c80e818190e1370c42df5a92264ab0bd13a6
121bdce4b0a36aa47831ec06fce1eec00af12229
de4657f73bad67beeb03fa5fdbc349135609fa06
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto
*.css linguist-vendored
*.scss linguist-vendored
*.js linguist-vendored
CHANGELOG.md export-ignore
55 changes: 55 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Contributing

Contributions are **welcome** and will be fully **credited**.

Please read and understand the contribution guide before creating an issue or pull request.

## Etiquette

This project is open source, and as such, the maintainers give their free time to build and maintain the source code
held within. They make the code freely available in the hope that it will be of use to other developers. It would be
extremely unfair for them to suffer abuse or anger for their hard work.

Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the
world that developers are civilized and selfless people.

It's the duty of the maintainer to ensure that all submissions to the project are of sufficient
quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.

## Viability

When requesting or submitting new features, first consider whether it might be useful to others. Open
source projects are used by many developers, who may have entirely different needs to your own. Think about
whether or not your feature is likely to be used by other users of the project.

## Procedure

Before filing an issue:

- Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.
- Check to make sure your feature suggestion isn't already present within the project.
- Check the pull requests tab to ensure that the bug doesn't have a fix in progress.
- Check the pull requests tab to ensure that the feature isn't already in progress.

Before submitting a pull request:

- Check the codebase to ensure that your feature doesn't already exist.
- Check the pull requests to ensure that another person hasn't already submitted the feature or fix.

## Requirements

If the project maintainer has any additional requirements, you will find them listed here.

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The standard can be enforced by running the `composer lint` console command.

- **Add tests!** - Your patch won't be accepted if it doesn't have tests.

- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.

- **Consider our release cycle** - We try to follow [SemVer v2.0.0](https://semver.org/). Randomly breaking public APIs is not an option.

- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.

- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](https://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.

**Happy coding**!
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [marco76tv, laraxot]
3 changes: 3 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Security Policy

If you have found any issue regarding security, please send an email [[email protected]](mailto:[email protected]) instead of using the issue tracker and we will quickly work on it.
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels:
- "dependencies"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
labels:
- "npm"
- "dependencies"
Empty file added .github/workflows/.gitkeep
Empty file.
43 changes: 43 additions & 0 deletions .github/workflows/duster-fix-blame.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Duster Fix

# Commits made in here will not trigger any workflows
# Checkout Duster's documentation for a workaround

on:
push:
branches: [ master ]
pull_request:

jobs:
duster:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: "Duster Fix"
uses: tighten/duster-action@v2
with:
args: fix

- uses: stefanzweifel/git-auto-commit-action@v4
id: auto_commit_action
with:
commit_message: Dusting
commit_user_name: GitHub Action
commit_user_email: [email protected]

- name: Ignore Duster commit in git blame
if: steps.auto_commit_action.outputs.changes_detected == 'true'
run: echo ${{ steps.auto_commit_action.outputs.commit_hash }} >> .git-blame-ignore-revs

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Ignore Dusting commit in git blame
commit_user_name: GitHub Action
commit_user_email: [email protected]
19 changes: 19 additions & 0 deletions .github/workflows/phpinsights.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: phpinsights
on: [push]

jobs:
phpinsights:
runs-on: ubuntu-latest
name: PHP Insights checks
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- run: composer install --prefer-dist --no-progress
- run: composer require nunomaduro/phpinsights --dev
- run: cp vendor/nunomaduro/phpinsights/stubs/laravel.php phpinsights.php
- run: vendor/bin/phpinsights -n --ansi --format=github-action --fix
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: phpinsights
20 changes: 20 additions & 0 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: psalm
on: [push]

jobs:
phpinsights:
runs-on: ubuntu-latest
name: PHP Insights checks
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- run: composer install --prefer-dist --no-progress
- run: composer require --dev psalm/plugin-laravel -W
- run: ./vendor/bin/psalm --init
- run: ./vendor/bin/psalm-plugin enable psalm/plugin-laravel
- run: ./vendor/bin/psalm --alter --issues=all --dry-run
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: psalm
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish

on:
push:
branches:
- master

permissions:
contents: write

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@master

- name: Validate composer.json and composer.lock
run: cd docs && composer validate

- name: Composer
run: cd docs && composer install --no-progress --no-suggest

- name: Node
run: cd docs && npm install

- name: Production
run: cd docs && npm run prod

- name: CNAME
run: cd docs && echo "laraxot.github.io/module_job" > ./build_production/CNAME

- name: gh-pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ./docs/build_production
21 changes: 21 additions & 0 deletions .github/workflows/retype-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish Retype powered website to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- master

jobs:
publish:
name: Publish to retype branch

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: retypeapp/action-build@latest

- uses: retypeapp/action-github-pages@latest
with:
update-branch: true
31 changes: 31 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Update Changelog"

on:
release:
types: [released]

permissions:
contents: write

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.lock
package-lock.json
.git-rewrite
/docs/cache
/build
/vendor
1 change: 1 addition & 0 deletions .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"php":"8.2.9","version":"3.23.0","indent":" ","lineEnding":"\n","rules":{"align_multiline_comment":true,"array_syntax":{"syntax":"short"},"backtick_to_shell_exec":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["return"]},"cast_spaces":true,"class_attributes_separation":{"elements":{"method":"one"}},"class_definition":true,"class_reference_name_casing":true,"clean_namespace":true,"concat_space":true,"curly_braces_position":{"allow_single_line_anonymous_functions":true,"allow_single_line_empty_anonymous_classes":true},"declare_parentheses":true,"echo_tag_syntax":true,"empty_loop_body":{"style":"braces"},"empty_loop_condition":true,"fully_qualified_strict_types":true,"general_phpdoc_tag_rename":{"replacements":{"inheritDocs":"inheritDoc"}},"global_namespace_import":{"import_classes":false,"import_constants":false,"import_functions":false},"include":true,"increment_style":true,"integer_literal_case":true,"lambda_not_used_import":true,"linebreak_after_opening_tag":true,"magic_constant_casing":true,"magic_method_casing":true,"method_argument_space":{"on_multiline":"ignore"},"native_function_casing":true,"native_function_type_declaration_casing":true,"no_alias_language_construct_call":true,"no_alternative_syntax":true,"no_binary_string":true,"no_blank_lines_after_phpdoc":true,"no_empty_comment":true,"no_empty_phpdoc":true,"no_empty_statement":true,"no_extra_blank_lines":{"tokens":["attribute","case","continue","curly_brace_block","default","extra","parenthesis_brace_block","square_brace_block","switch","throw","use"]},"no_leading_namespace_whitespace":true,"no_mixed_echo_print":true,"no_multiline_whitespace_around_double_arrow":true,"no_null_property_initialization":true,"no_short_bool_cast":true,"no_singleline_whitespace_before_semicolons":true,"no_spaces_around_offset":true,"no_superfluous_phpdoc_tags":{"remove_inheritdoc":true},"no_trailing_comma_in_singleline":true,"no_unneeded_control_parentheses":{"statements":["break","clone","continue","echo_print","others","return","switch_case","yield","yield_from"]},"no_unneeded_curly_braces":{"namespaces":true},"no_unneeded_import_alias":true,"no_unset_cast":true,"no_unused_imports":true,"no_useless_concat_operator":true,"no_useless_nullsafe_operator":true,"no_whitespace_before_comma_in_array":true,"normalize_index_brace":true,"nullable_type_declaration_for_default_null_value":{"use_nullable_type_declaration":false},"object_operator_without_whitespace":true,"operator_linebreak":{"only_booleans":true},"ordered_imports":true,"php_unit_fqcn_annotation":true,"php_unit_method_casing":true,"phpdoc_align":true,"phpdoc_annotation_without_dot":true,"phpdoc_indent":true,"phpdoc_inline_tag_normalizer":true,"phpdoc_no_access":true,"phpdoc_no_alias_tag":true,"phpdoc_no_package":true,"phpdoc_no_useless_inheritdoc":true,"phpdoc_order":true,"phpdoc_return_self_reference":true,"phpdoc_scalar":true,"phpdoc_separation":true,"phpdoc_single_line_var_spacing":true,"phpdoc_summary":true,"phpdoc_tag_type":{"tags":{"inheritDoc":"inline"}},"phpdoc_to_comment":true,"phpdoc_trim":true,"phpdoc_trim_consecutive_blank_line_separation":true,"phpdoc_types":true,"phpdoc_types_order":{"null_adjustment":"always_last","sort_algorithm":"none"},"phpdoc_var_without_name":true,"semicolon_after_instruction":true,"simple_to_complex_string_variable":true,"single_class_element_per_statement":true,"single_import_per_statement":true,"single_line_comment_spacing":true,"single_line_comment_style":{"comment_types":["hash"]},"single_line_throw":true,"single_quote":true,"single_space_around_construct":true,"space_after_semicolon":{"remove_in_empty_for_expressions":true},"standardize_increment":true,"standardize_not_equals":true,"switch_continue_to_break":true,"trailing_comma_in_multiline":true,"trim_array_spaces":true,"type_declaration_spaces":true,"types_spaces":true,"unary_operator_spaces":true,"whitespace_after_comma_in_array":true,"yoda_style":true,"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"blank_lines_before_namespace":true,"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"return_type_declaration":true,"short_scalar_cast":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_line_after_imports":true,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"array_indentation":true,"function_typehint_space":true,"declare_strict_types":true,"combine_consecutive_unsets":true,"not_operator_with_successor_space":true,"braces":{"position_after_functions_and_oop_constructs":"same"}},"hashes":{"Database\/Seeders\/JobDatabaseSeeder.php":"a8b1249cfab116eb8d8a27935cf8b072","Database\/Migrations\/2022_02_17_124030_create_job_batches_table.php":"74a5bacddee65a59e0b0e05655bb2bef","Database\/Migrations\/2023_03_13_000000_create_frequencies_table.php":"c5c94818a7b9c8416ac93b64dc63cae0","Database\/Migrations\/2023_03_13_000000_create_parameters_table.php":"559028da910b134330c3bc5e12a4b0f7","Database\/Migrations\/2023_03_13_000000_create_tasks_table.php":"458d1143db41de0657147570da4888ed","Database\/Migrations\/2022_03_01_000003_create_jobs_table.php":"5390838f71a954e4c44a54f3961fdfc3","Database\/Migrations\/2022_02_28_190859_create_failed_jobs_table.php":"fb4b9ea317edf426335f617a6635545b","Database\/Migrations\/2023_03_13_000000_create_results_table.php":"8c0f9ec683f11808faae37250843efd7","Database\/Factories\/FrequencyFactory.php":"b7b562cf6f639421c0e83e1edbcf4913","Database\/Factories\/ResultFactory.php":"f07697b85198adc1a322232bc6ea38a9","Database\/Factories\/JobFactory.php":"a0ea5edbae1ea290586bd8bb6ae0e77c","Database\/Factories\/ParameterFactory.php":"d468dcec6f841c004aa331c787c11638","Database\/Factories\/FailedJobFactory.php":"476c4250bb51175409f3579c47543a97","Database\/Factories\/TaskFactory.php":"521e039900bb3727e0294067d19632bb","Database\/Factories\/JobBatchFactory.php":"3ed16090f23f4fa601f60aad891e69a3","Http\/Livewire\/Auth\/FilamentLogin.php":"b31110f212ee37586e2bfd2ba4fc4ce0","Http\/Livewire\/Broad.php":"dd92143a3b357d6d9be4b01fa6c94e38","Http\/Livewire\/Schedule\/Crud.php":"1c5aae292738783e716f26853940414f","Http\/Livewire\/Schedule\/Status.php":"55dde9f151a38cf9ea109a4d71ec8224","Http\/Livewire\/Job\/Status.php":"0ae5bc8168e73106b2d13f5718e3d8bf","Http\/Middleware\/FilamentMiddleware.php":"7ba72b6c70e1fd0722613fe572e6fe33","Config\/job-filament.php":"71fa95a7719ab93d4c6c9e5b16e76603","Config\/config.php":"ba4c4877f88da8dea8182435d19d7908","Resources\/lang\/en\/messages.php":"fc89eb8bfc0bd91b488fc445ed18a1f2","Filament\/Resources\/JobBatchesResource.php":"e1867137b025824cbdf176d1a83e252a","Filament\/Resources\/JobResource.php":"59fd8ff09819b8893d90056ddc1179c1","Filament\/Resources\/JobResource\/Pages\/CreateJob.php":"3a149e52e60109e3cd4294d66fd780f7","Filament\/Resources\/JobResource\/Pages\/ListJobs.php":"5fe1e4db0a94775e5bb9f0813c43efc0","Filament\/Resources\/JobResource\/Pages\/EditJob.php":"a6925e64d5909abb3bbc67ac2a758c6c","Filament\/Resources\/FailedJobsResource\/Pages\/ListFailedJobs.php":"a143d746683aa79c65d5fe68ecc5f27b","Filament\/Resources\/JobBatchesResource\/Pages\/ListJobBatches.php":"a0ecfb64fb74e910b32457b8dc389500","Filament\/Resources\/FailedJobsResource.php":"6705da1df0cb00c49bf4d3f96c329a42","Filament\/Pages\/Dashboard.php":"7aab695f6fd9b26248e092afa56c3f9c","Providers\/RouteServiceProvider.php":"92f732400294cd8444659d66f92de8fe","Providers\/JobServiceProvider.php":"7b038a5f542ef6b0f1524c42967b4434","Providers\/FilamentServiceProvider.php":"0cc8e022bf5045dd2e901677fd3ff30d","Events\/Event.php":"a9bafc046d32ce4aad586f330d64b230","Events\/Executed.php":"5891966db9e45035f83b707ee7d14631","Events\/PublicEvent.php":"d601e511e77438768dc9d462555dbec8","Events\/PrivateEvent.php":"0a9d128b22c5432d73ee53d6f985e1ad","Events\/Executing.php":"2c2886d585285bbe32f6f38a8ae980b4","Events\/TaskEvent.php":"1bc9a891f0d242011bf70c3be27911ab","Events\/BroadcastingEvent.php":"5c8d509640c5fd4412de2b1e67cb1fa4","Actions\/GetTaskCommandsAction.php":"9925e487cd5316353d8ca2c25e722dd2","Actions\/DummyAction.php":"1c12140fd44b64f673e80bd121420405","Actions\/GetTaskFrequenciesAction.php":"f6f686b0fdacfc60a6c4090894a057e0","Actions\/ExecuteTaskAction.php":"a8e4f5d9a7a64764ee8dd448f6e32f2c","Contracts\/TaskInterface.php":"09b90f9428e5ba999cde419adac61dea","Models\/Frequency.php":"f68d6c0e7e364a133d055ff1cb4a5db3","Models\/BaseModel.php":"e16b92373bbf4f53b580edd3bbfe363d","Models\/Task.php":"3f9772b811586ead42daca3fca2fba07","Models\/Job.php":"3738a5114b5d62082e305993c4be9a1c","Models\/FailedJob.php":"c82f8adf5e553f4e9820fef7409e248f","Models\/Traits\/FrontendSortable.php":"9cda90492aae1d99a6d421a3583a7f3c","Models\/Parameter.php":"426cb05920ec88e9c48483e50158becf","Models\/BaseMorphPivot.php":"9160861d92c30430d54bd836f3d2e6c8","Models\/JobBatch.php":"ebca60f0295d882d78f353e7b1cac04d","Models\/Result.php":"1fb2e3605faa1b3b4a0b2fb04c5587ce","Notifications\/TaskCompleted.php":"dbbda6b8c10cdfe5d6daebc53df1469f","Console\/Commands\/WorkerCheck.php":"abc6adf3a3bce367a594b8ac00c425fc","phpstan_constants.php":"39dba7302df38c53a7f66db2dd24a8ea","Routes\/web.php":"af4c6fb6dcb3a657f41c65233bd4fe74","Routes\/api.php":"a14c110a1419266d80821972d4926f85"}}
42 changes: 42 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

$finder = PhpCsFixer\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
;

$config = new PhpCsFixer\Config();

$config
->setRules([
'@Symfony' => true,
'array_indentation' => true,
'function_typehint_space' => true,
'declare_equal_normalize' => true,
'declare_strict_types' => true,
'combine_consecutive_unsets' => true,
//'binary_operator_spaces' => ['align_double_arrow' => false],
'array_syntax' => ['syntax' => 'short'],
'linebreak_after_opening_tag' => true,
'not_operator_with_successor_space' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'php_unit_construct' => false,
'braces' => [
'position_after_functions_and_oop_constructs' => 'same',
],
'function_declaration' => true,
'blank_line_after_namespace' => true,
'class_definition' => true,
'elseif' => true,
])
->setFinder($finder)
;

return $config;
Loading

0 comments on commit 43b4b60

Please sign in to comment.