Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Slug field compatibility #298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .github/workflows/update-assets.yml

This file was deleted.

102 changes: 73 additions & 29 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,103 @@
{
"name": "eminiarts/nova-tabs",
"name": "bbs-lab/nova-tabs",
"description": "Laravel Nova - Tabs.",
"keywords": [
"laravel",
"nova"
],
"repositories": [
{
"type": "composer",
"url": "https://nova.laravel.com"
}
],
"authors": [
{
"name": "Emini Arts GmbH",
"email": "[email protected]",
"homepage": "https://eminiarts.ch"
"name": "Big Boss Studio",
"email": "[email protected]",
"homepage": "https://big-boss-studio.com"
}
],
"homepage": "https://github.com/BBS-Lab/nova-tabs",
"license": "MIT",
"require": {
"php": "^7.4|^8",
"ext-json": "*",
"php": "^8.1",
"laravel/nova": "^4.12",
"nova-kit/nova-packages-tool": "^1.3",
"ext-json": "*"
"nova-kit/nova-packages-tool": "^1.3.1",
"spatie/laravel-package-tools": "^1.16"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2",
"orchestra/testbench": "^6",
"roave/security-advisories": "dev-latest"
"guzzlehttp/guzzle": "^7.0.1",
"larastan/larastan": "^2.9",
"laravel/pint": "^1.4.0",
"mockery/mockery": "^1.5",
"nova-kit/nova-devtool": "^1.0",
"nunomaduro/collision": "^8.1.1||^7.10.0",
"orchestra/testbench": "^6.0 || ^7.6 || ^8.0 || ^9.0",
"orchestra/testbench-dusk": "^6.0 || ^7.6 || ^8.0 || ^9.0",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-arch": "^2.7",
"pestphp/pest-plugin-laravel": "^2.3",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"spatie/laravel-ignition": "^2.4",
"spatie/laravel-ray": "^1.36"
},
"autoload": {
"psr-4": {
"Eminiarts\\Tabs\\": "src/",
"Eminiarts\\Tabs\\Tests\\": "tests/"
"BBSLab\\Tabs\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"BBSLab\\Tabs\\Tests\\": "tests/",
"Workbench\\App\\": "workbench/app/",
"Workbench\\Database\\Factories\\": "workbench/database/factories/",
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/"
}
},
"extra": {
"laravel": {
"providers": [
"Eminiarts\\Tabs\\TabsServiceProvider"
"BBSLab\\Tabs\\TabsServiceProvider"
]
}
},
"scripts": {
"post-autoload-dump": [
"@clear",
"@prepare",
"@dusk:install-chromedriver"
],
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"dusk:install-chromedriver": "@php vendor/bin/dusk-updater detect --auto-update --ansi",
"build": [
"@php vendor/bin/testbench config:publish --all --force --ansi",
"@php vendor/bin/testbench workbench:build --ansi"
],
"serve": [
"Composer\\Config::disableProcessTimeout",
"@build",
"@php vendor/bin/testbench serve"
],
"lint": [
"@php vendor/bin/pint",
"@php vendor/bin/phpstan analyse"
],
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"infection/extension-installer": false,
"phpstan/extension-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": [
{
"type": "composer",
"url": "https://nova.laravel.com"
}
],
"scripts": {
"php-cs-fixer": "vendor/bin/php-cs-fixer fix",
"phpunit": "vendor/bin/phpunit",
"test": [
"composer php-cs-fixer",
"composer phpunit"
]
}
"prefer-stable": true
}
2 changes: 1 addition & 1 deletion dist/css/field.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nova.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class NovaExtension {

webpackConfig.resolve.alias = {
...(webpackConfig.resolve.alias || {}),
// 'laravel-nova': path.join(__dirname, 'vendor/laravel/nova/resources/js/mixins/packages.js'),
'laravel-nova': path.join(__dirname, 'vendor/laravel/nova/resources/js/mixins/packages.js'),
}

webpackConfig.output = {
Expand All @@ -35,4 +35,4 @@ class NovaExtension {
}
}

mix.extend('nova', new NovaExtension())
mix.extend('nova', new NovaExtension())
13 changes: 13 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"preset": "laravel",
"rules": {
"single_quote": {
"strings_containing_single_quote_chars": true
},
"blank_line_before_statement": {
"statements": ["break", "continue", "declare", "return", "throw", "try"]
},
"declare_strict_types": true,
"not_operator_with_successor_space": false
}
}
110 changes: 110 additions & 0 deletions ray.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?php

declare(strict_types=1);

return [
/*
* This setting controls whether data should be sent to Ray.
*
* By default, `ray()` will only transmit data in non-production environments.
*/
'enable' => env('RAY_ENABLED', true),

/*
* When enabled, all cache events will automatically be sent to Ray.
*/
'send_cache_to_ray' => env('SEND_CACHE_TO_RAY', false),

/*
* When enabled, all things passed to `dump` or `dd`
* will be sent to Ray as well.
*/
'send_dumps_to_ray' => env('SEND_DUMPS_TO_RAY', true),

/*
* When enabled all job events will automatically be sent to Ray.
*/
'send_jobs_to_ray' => env('SEND_JOBS_TO_RAY', false),

/*
* When enabled, all things logged to the application log
* will be sent to Ray as well.
*/
'send_log_calls_to_ray' => env('SEND_LOG_CALLS_TO_RAY', true),

/*
* When enabled, all queries will automatically be sent to Ray.
*/
'send_queries_to_ray' => env('SEND_QUERIES_TO_RAY', false),

/**
* When enabled, all duplicate queries will automatically be sent to Ray.
*/
'send_duplicate_queries_to_ray' => env('SEND_DUPLICATE_QUERIES_TO_RAY', false),

/*
* When enabled, slow queries will automatically be sent to Ray.
*/
'send_slow_queries_to_ray' => env('SEND_SLOW_QUERIES_TO_RAY', false),

/**
* Queries that are longer than this number of milliseconds will be regarded as slow.
*/
'slow_query_threshold_in_ms' => env('RAY_SLOW_QUERY_THRESHOLD_IN_MS', 500),

/*
* When enabled, all requests made to this app will automatically be sent to Ray.
*/
'send_requests_to_ray' => env('SEND_REQUESTS_TO_RAY', false),

/**
* When enabled, all Http Client requests made by this app will be automatically sent to Ray.
*/
'send_http_client_requests_to_ray' => env('SEND_HTTP_CLIENT_REQUESTS_TO_RAY', false),

/*
* When enabled, all views that are rendered automatically be sent to Ray.
*/
'send_views_to_ray' => env('SEND_VIEWS_TO_RAY', false),

/*
* When enabled, all exceptions will be automatically sent to Ray.
*/
'send_exceptions_to_ray' => env('SEND_EXCEPTIONS_TO_RAY', true),

/*
* When enabled, all deprecation notices will be automatically sent to Ray.
*/
'send_deprecated_notices_to_ray' => env('SEND_DEPRECATED_NOTICES_TO_RAY', false),

/*
* The host used to communicate with the Ray app.
* When using Docker on Mac or Windows, you can replace localhost with 'host.docker.internal'
* When using Docker on Linux, you can replace localhost with '172.17.0.1'
* When using Homestead with the VirtualBox provider, you can replace localhost with '10.0.2.2'
* When using Homestead with the Parallels provider, you can replace localhost with '10.211.55.2'
*/
'host' => env('RAY_HOST', 'localhost'),

/*
* The port number used to communicate with the Ray app.
*/
'port' => env('RAY_PORT', 23517),

/*
* Absolute base path for your sites or projects in Homestead,
* Vagrant, Docker, or another remote development server.
*/
'remote_path' => env('RAY_REMOTE_PATH', null),

/*
* Absolute base path for your sites or projects on your local
* computer where your IDE or code editor is running on.
*/
'local_path' => env('RAY_LOCAL_PATH', null),

/*
* When this setting is enabled, the package will not try to format values sent to Ray.
*/
'always_send_raw_values' => false,
];
Loading