-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from Evdigi-INA/dev
v0.3.0
- Loading branch information
Showing
152 changed files
with
5,835 additions
and
2,511 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "Run Tests - Current" | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [8.3, 8.2] | ||
laravel: ["^11.0"] | ||
dependency-version: [prefer-stable, prefer-lowest] | ||
include: | ||
- laravel: "^11.0" | ||
testbench: 9.* | ||
exclude: | ||
- laravel: "^11.0" | ||
php: 8.1 | ||
|
||
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" "nesbot/carbon:>=2.62.1" --no-interaction --no-update | ||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction | ||
- name: Execute tests | ||
run: vendor/bin/phpunit |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,19 @@ | ||
includes: | ||
- vendor/larastan/larastan/extension.neon | ||
|
||
parameters: | ||
|
||
paths: | ||
- src/ | ||
- tests/ | ||
|
||
# Level 9 is the highest level | ||
level: 5 | ||
|
||
# ignoreErrors: | ||
# - '#PHPDoc tag @var#' | ||
# | ||
# excludePaths: | ||
# - ./*/*/FileToBeExcluded.php | ||
# | ||
# checkMissingIterableValueType: false |
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 |
---|---|---|
@@ -1,17 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
> | ||
<testsuites> | ||
<testsuite name="Package Test Suite"> | ||
<directory suffix=".php">./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false"> | ||
<testsuites> | ||
<testsuite name="Package Test Suite"> | ||
<directory suffix=".php">./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/> | ||
<env name="DB_CONNECTION" value="testing"/> | ||
<env name="APP_ENV" value="local"/> | ||
</php> | ||
</phpunit> |
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
> | ||
<testsuites> | ||
<testsuite name="Package Test Suite"> | ||
<directory suffix=".php">./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/> | ||
<env name="DB_CONNECTION" value="testing"/> | ||
</php> | ||
</phpunit> |
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,88 @@ | ||
@extends('layouts.app') | ||
|
||
@section('title', __('Create Module (API)')) | ||
|
||
@push('css') | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" | ||
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
@endpush | ||
|
||
@section('content') | ||
<div class="page-heading"> | ||
<div class="page-title"> | ||
<div class="row"> | ||
<div class="col-12 col-md-8 order-md-1 order-last"> | ||
<h3> | ||
{{ __('API Generators') }} | ||
<small style="font-size: 8px;">Beta</small> | ||
</h3> | ||
<p class="text-subtitle text-muted"> | ||
{{ __('Create a new CRUD Module (API).') }} | ||
</p> | ||
</div> | ||
|
||
<x-breadcrumb> | ||
<li class="breadcrumb-item"> | ||
<a href="/">{{ __('Dashboard') }}</a> | ||
</li> | ||
<li class="breadcrumb-item active" aria-current="page"> | ||
{{ __('API Generators') }} | ||
</li> | ||
</x-breadcrumb> | ||
</div> | ||
</div> | ||
|
||
<section class="section"> | ||
<x-alert /> | ||
|
||
{{-- <div class="alert alert-info alert-dismissible fade show" role="alert"> | ||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> | ||
<h6 class="alert-heading">{{ __('Info') }}</h6> | ||
<p> | ||
<a href="https://zzzul.github.io/generator-docs-next/usage#creating-api-crud" target="_blank"> | ||
{{ __('Please consider to read about new Laravel 11 API') }} | ||
</a> | ||
</p> | ||
</div> --}} | ||
|
||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<form action="/api-generators" method="POST" id="form-generator"> | ||
@csrf | ||
@method('POST') | ||
|
||
@include('generator::include.api-form') | ||
|
||
<a href="{{ url()->previous() }}" id="btn-back" | ||
class="btn btn-secondary">{{ __('Back') }}</a> | ||
|
||
<button type="submit" id="btn-save" class="btn btn-primary">{{ __('Generate') }}</button> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<div id="validation-errors" style="display: none;"> | ||
<div class="alert alert-danger fade show" role="alert"> | ||
<h4 class="alert-heading">Error</h4> | ||
<ul class="mb-0"></ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
@endsection | ||
|
||
@push('js') | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" | ||
integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
|
||
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script> | ||
@include('generator::include.js.api-create-js') | ||
|
||
@include('generator::include.js.function-js') | ||
@endpush |
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
Oops, something went wrong.