-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgraded laravel nova requirement to v4.0 * Support both v3 and v4 for backward compatibility * Nova 4 JS configuration update * Modal removed + icons replaced with SVGs * FilesController.php updated for Nova 4 API compatibility * Assets recompiled * Laravel Nova 3 support dropped due to breaking changes on FilesController * UploadController.php init method updated * Bug fix: Dependency not included * `deep:true` added to `filesQueue` watcher * Vue dependencies simplified * Asset compilation update * Panel fix for `FilesController@init` * `UploadController@init` panel fetch fix * UI fixes (dark and white mode) * fix: remove unnecessary statement * fix: update assets * fix: syntax improvement * fix: remove duplicate js scripts * fix: remove unused dependency * fix: formatting changes * feat: use Nova's Icons * feat: show delete confirmation modal * fix: laravel nova paths * feat: add dev dependencies * fix: nova composer repository added * feat: use default nova view and delete buttons * feat: dist build * feat: use `Button` for download icon --------- Co-authored-by: Nedelcescu Radu <[email protected]>
- Loading branch information
1 parent
99db95f
commit d401e37
Showing
13 changed files
with
177 additions
and
92 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,34 @@ | ||
const mix = require('laravel-mix') | ||
const webpack = require('webpack') | ||
const path = require('path') | ||
|
||
class NovaExtension { | ||
name() { | ||
return 'nova-extension' | ||
} | ||
|
||
register(name) { | ||
this.name = name | ||
} | ||
|
||
webpackConfig(webpackConfig) { | ||
webpackConfig.externals = { | ||
vue: 'Vue', | ||
} | ||
|
||
webpackConfig.resolve.alias = { | ||
...(webpackConfig.resolve.alias || {}), | ||
'laravel-nova': path.join( | ||
__dirname, | ||
'vendor/laravel/nova/resources/js/mixins/packages.js' | ||
), | ||
'@': path.join(__dirname, './vendor/laravel/nova/resources/js'), | ||
} | ||
|
||
webpackConfig.output = { | ||
uniqueName: this.name, | ||
} | ||
} | ||
} | ||
|
||
mix.extend('nova', new NovaExtension()) |
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,34 +1,35 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci", | ||
"dev": "mix", | ||
"watch": "mix watch", | ||
"hot": "mix watch --hot", | ||
"prod": "mix --production", | ||
"format": "prettier --write 'resources/**/*.{css,js,vue}'" | ||
}, | ||
"devDependencies": { | ||
"@uppy/core": "^2.2.0", | ||
"@vue/compiler-sfc": "^3.2.22", | ||
"autoprefixer": "^10.4.0", | ||
"cross-env": "^7.0.3", | ||
"laravel-mix": "^6.0.39", | ||
"postcss": "^8.4.5", | ||
"laravel-nova-ui": "^0.4.0", | ||
"laravel-mix": "^6.0.41", | ||
"postcss": "^8.3.11", | ||
"postcss-dir-pseudo-class": "^6.0.1", | ||
"postcss-import": "^14.0.1", | ||
"postcss-logical": "^5.0.1", | ||
"prettier": "^2.5.1", | ||
"resolve-url-loader": "^4.0.0", | ||
"sass": "^1.47.0", | ||
"sass-loader": "^12.4.0", | ||
"vue": "^2.6.14", | ||
"vue-loader": "^15.9.8", | ||
"vue-template-compiler": "^2.6.14" | ||
"vue-loader": "^16.8.3" | ||
}, | ||
"dependencies": { | ||
"@uppy/aws-s3-multipart": "^2.2.0", | ||
"@uppy/image-editor": "^1.1.1", | ||
"@uppy/screen-capture": "^2.0.6", | ||
"@uppy/vue": "^0.4.5", | ||
"@uppy/webcam": "^2.0.5", | ||
"laravel-nova": "^1.12.3" | ||
"@uppy/webcam": "^2.0.5" | ||
} | ||
} |
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,3 +1,5 @@ | ||
Nova.booting((Vue, router, store) => { | ||
Vue.component('nova-s3-multipart-upload', require('./components/Tool').default) | ||
import Tool from './components/Tool' | ||
|
||
Nova.booting((app, store) => { | ||
app.component('nova-s3-multipart-upload', Tool) | ||
}) |
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
Oops, something went wrong.