Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 27272fb7
authored
Dec 22, 2020
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update app.js to use new Inertia exports
1 parent
9b2b7d74
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
resources/js/app.js
resources/js/app.js
View file @
27272fb
import
Vue
from
'vue'
import
Vue
from
'vue'
import
VueMeta
from
'vue-meta'
import
VueMeta
from
'vue-meta'
import
PortalVue
from
'portal-vue'
import
PortalVue
from
'portal-vue'
import
{
InertiaApp
}
from
'@inertiajs/inertia-vue'
import
{
App
,
plugin
}
from
'@inertiajs/inertia-vue'
import
{
InertiaProgress
}
from
'@inertiajs/progress/src'
import
{
InertiaProgress
}
from
'@inertiajs/progress/src'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
mixin
({
methods
:
{
route
:
window
.
route
}
})
Vue
.
mixin
({
methods
:
{
route
:
window
.
route
}
})
Vue
.
use
(
InertiaApp
)
Vue
.
use
(
plugin
)
Vue
.
use
(
PortalVue
)
Vue
.
use
(
PortalVue
)
Vue
.
use
(
VueMeta
)
Vue
.
use
(
VueMeta
)
InertiaProgress
.
init
()
InertiaProgress
.
init
()
let
app
=
document
.
getElementById
(
'app'
)
const
el
=
document
.
getElementById
(
'app'
)
new
Vue
({
new
Vue
({
metaInfo
:
{
metaInfo
:
{
titleTemplate
:
(
title
)
=>
title
?
`
${
title
}
- Ping CRM`
:
'Ping CRM'
titleTemplate
:
(
title
)
=>
title
?
`
${
title
}
- Ping CRM`
:
'Ping CRM'
},
},
render
:
h
=>
h
(
Inertia
App
,
{
render
:
h
=>
h
(
App
,
{
props
:
{
props
:
{
initialPage
:
JSON
.
parse
(
app
.
dataset
.
page
),
initialPage
:
JSON
.
parse
(
el
.
dataset
.
page
),
resolveComponent
:
name
=>
import
(
`@/Pages/
${
name
}
`
).
then
(
module
=>
module
.
default
),
resolveComponent
:
name
=>
import
(
`@/Pages/
${
name
}
`
).
then
(
module
=>
module
.
default
),
},
},
}),
}),
}).
$mount
(
app
)
}).
$mount
(
el
)
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment