-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/workbench-integration'
- Loading branch information
Showing
23 changed files
with
649 additions
and
106 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
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 |
---|---|---|
@@ -1,71 +1,91 @@ | ||
{ | ||
"name": "outl1ne/nova-detached-filters", | ||
"description": "This Laravel Nova package allows you to detach filters from the filter dropdown", | ||
"keywords": [ | ||
"laravel", | ||
"nova", | ||
"card", | ||
"filter", | ||
"persist" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Kaspar Rosin", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
"name": "outl1ne/nova-detached-filters", | ||
"description": "This Laravel Nova package allows you to detach filters from the filter dropdown", | ||
"keywords": [ | ||
"laravel", | ||
"nova", | ||
"card", | ||
"filter", | ||
"persist" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Kaspar Rosin", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
}, | ||
{ | ||
"name": "Tarvo Reinpalu", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
}, | ||
{ | ||
"name": "Outl1ne", | ||
"email": "[email protected]", | ||
"role": "Maintainer" | ||
} | ||
], | ||
"require": { | ||
"php": ">=8.0.0", | ||
"laravel/nova": "~4.0", | ||
"nova-kit/nova-packages-tool": "^1.14" | ||
}, | ||
{ | ||
"name": "Tarvo Reinpalu", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
"require-dev": { | ||
"laravel/pint": "^0.2.1", | ||
"nova-kit/nova-devtool": "^1.5", | ||
"orchestra/testbench": "^7.0.0", | ||
"phpunit/phpunit": "^9.5" | ||
}, | ||
{ | ||
"name": "Outl1ne", | ||
"email": "[email protected]", | ||
"role": "Maintainer" | ||
} | ||
], | ||
"require": { | ||
"php": ">=8.0.0", | ||
"laravel/nova": "~4.0" | ||
}, | ||
"require-dev": { | ||
"laravel/pint": "^0.2.1", | ||
"orchestra/testbench": "^7.0.0", | ||
"phpunit/phpunit": "^9.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Outl1ne\\NovaDetachedFilters\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Outl1ne\\NovaDetachedFilters\\Tests\\": "tests/" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Outl1ne\\NovaDetachedFilters\\CardServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://nova.laravel.com" | ||
"autoload": { | ||
"psr-4": { | ||
"Outl1ne\\NovaDetachedFilters\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Outl1ne\\NovaDetachedFilters\\Tests\\": "tests/", | ||
"Workbench\\App\\": "workbench/app/", | ||
"Workbench\\Database\\Factories\\": "workbench/database/factories/", | ||
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Outl1ne\\NovaDetachedFilters\\CardServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://nova.laravel.com" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"test": [ | ||
"phpunit tests" | ||
], | ||
"post-autoload-dump": [ | ||
"@clear", | ||
"@prepare" | ||
], | ||
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi", | ||
"prepare": "@php vendor/bin/testbench package:discover --ansi", | ||
"build": "@php vendor/bin/testbench workbench:build --ansi", | ||
"serve": [ | ||
"Composer\\Config::disableProcessTimeout", | ||
"@build", | ||
"@php vendor/bin/testbench serve" | ||
], | ||
"lint": [ | ||
"@php vendor/bin/pint" | ||
] | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"test": [ | ||
"phpunit tests" | ||
] | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
/*! | ||
* vuex v4.1.0 | ||
* (c) 2022 Evan You | ||
* @license MIT | ||
*/ | ||
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ |
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
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 |
---|---|---|
@@ -1,31 +1,6 @@ | ||
import forEach from 'lodash/forEach'; | ||
import clone from 'lodash/cloneDeep'; | ||
|
||
let compiledSearchParams = null; | ||
import { mapActions, mapGetters } from 'vuex'; | ||
|
||
export default { | ||
methods: { | ||
/** | ||
* Update the given query string values. | ||
*/ | ||
updateQueryString(value) { | ||
let searchParams = new URLSearchParams(window.location.search); | ||
let page = clone(this.$page); | ||
|
||
forEach(value, (v, i) => { | ||
searchParams.set(i, v || ''); | ||
}); | ||
|
||
if (compiledSearchParams !== searchParams.toString()) { | ||
if (page.url !== `${window.location.pathname}?${searchParams}`) { | ||
page.url = `${window.location.pathname}?${searchParams}`; | ||
window.history.pushState(page, '', `${window.location.pathname}?${searchParams}`); | ||
} | ||
|
||
compiledSearchParams = searchParams.toString(); | ||
} | ||
|
||
Nova.$emit('query-string-changed', searchParams); | ||
}, | ||
}, | ||
methods: mapActions(['syncQueryString', 'updateQueryString']), | ||
computed: mapGetters(['queryStringParams']), | ||
}; |
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,24 @@ | ||
providers: | ||
- Laravel\Nova\NovaCoreServiceProvider | ||
- Workbench\App\Providers\NovaServiceProvider | ||
|
||
migrations: true | ||
|
||
seeders: | ||
- Workbench\Database\Seeders\DatabaseSeeder | ||
|
||
workbench: | ||
start: /nova | ||
build: | ||
- asset-publish | ||
- create-sqlite-db | ||
- db:wipe | ||
- migrate:refresh | ||
assets: | ||
- nova-assets | ||
sync: [] | ||
|
||
purge: | ||
directories: | ||
- lang/* | ||
- public/vendor/* |
Oops, something went wrong.