-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38c9003
commit 5c725d6
Showing
16 changed files
with
4,548 additions
and
4,643 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.
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 |
---|---|---|
|
@@ -3,5 +3,3 @@ | |
* (c) 2021 Evan You | ||
* @license MIT | ||
*/ | ||
|
||
/*! https://mths.be/punycode v1.4.1 by @mathias */ |
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,3 @@ | ||
{ | ||
"/js/entry.js": "/js/entry.js" | ||
"/js/field.js": "/js/field.js" | ||
} |
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,40 @@ | ||
const mix = require('laravel-mix') | ||
const webpack = require('webpack') | ||
const path = require('path') | ||
|
||
class NovaExtension { | ||
name() { | ||
return '' | ||
} | ||
|
||
register(name) { | ||
this.name = name | ||
} | ||
|
||
webpackPlugins() { | ||
return new webpack.ProvidePlugin({ | ||
_: 'lodash', | ||
Errors: 'form-backend-validation', | ||
}) | ||
} | ||
|
||
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' | ||
), | ||
} | ||
|
||
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,27 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"dev": "mix", | ||
"dev": "npm run development", | ||
"development": "mix", | ||
"watch": "mix watch", | ||
"watch-poll": "mix watch -- --watch-options-poll=1000", | ||
"hot": "mix watch --hot", | ||
"prod": "mix --production", | ||
"format": "prettier --write 'resources/**/*.{css,js,vue}'" | ||
"prod": "npm run production", | ||
"production": "mix --production", | ||
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci" | ||
}, | ||
"devDependencies": { | ||
"@inertiajs/inertia": "^0.11.0", | ||
"@vue/babel-plugin-jsx": "^1.1.1", | ||
"axios": "^0.26.1", | ||
"cross-env": "^7.0.3", | ||
"form-backend-validation": "^2.4.0", | ||
"laravel-mix": "^6.0.43", | ||
"postcss": "^8.4.12", | ||
"prettier": "^2.6.2", | ||
"resolve-url-loader": "^5.0.0", | ||
"sass": "^1.50.0", | ||
"sass-loader": "^12.6.0", | ||
"terser-webpack-plugin": "^5.3.1", | ||
"vue-loader": "^17.0.0", | ||
"vue-template-compiler": "^2.6.14", | ||
"vuex": "^4.0.2" | ||
"@vue/compiler-sfc": "^3.2.22", | ||
"form-backend-validation": "^2.3.3", | ||
"laravel-mix": "^6.0.41", | ||
"lodash": "^4.17.21", | ||
"postcss": "^8.3.11", | ||
"vue-loader": "^16.8.3" | ||
}, | ||
"dependencies": { | ||
"codemirror": "^5.65.3", | ||
"markdown-it": "^12.3.2", | ||
"marked": "^4.0.14", | ||
"simplemde": "^1.11.2", | ||
"vue": "^3.2.31" | ||
"simplemde": "^1.11.2" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import IndexField from './components/IndexField' | ||
import DetailField from './components/DetailField' | ||
import FormField from './components/FormField' | ||
|
||
Nova.booting((app, store) => { | ||
app.component('index-nova-markdown', IndexField) | ||
app.component('detail-nova-markdown', DetailField) | ||
app.component('form-nova-markdown', FormField) | ||
}) |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
let mix = require('laravel-mix'); | ||
let path = require('path'); | ||
let mix = require('laravel-mix') | ||
let path = require('path') | ||
|
||
require('./nova.mix') | ||
|
||
mix | ||
.setPublicPath('dist') | ||
.js('resources/js/entry.js', 'js') | ||
.vue({ version: 3 }) | ||
.webpackConfig({ | ||
externals: { | ||
vue: 'Vue', | ||
}, | ||
output: { | ||
uniqueName: 'stepanenko3/nova-markdown', | ||
}, | ||
}) | ||
.alias({ | ||
'laravel-nova': path.join(__dirname, 'vendor/laravel/nova/resources/js/mixins/packages.js'), | ||
}); | ||
.setPublicPath('dist') | ||
.js('resources/js/field.js', 'js') | ||
.vue({ version: 3 }) | ||
.nova('stepanenko3/nova-markdown') |
Oops, something went wrong.