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 6e757083
authored
Apr 24, 2019
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to new Inertia plugin format
1 parent
b83fda83
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
53 additions
and
84 deletions
package-lock.json
resources/js/Pages/Auth/Login.vue
resources/js/Pages/Contacts/Create.vue
resources/js/Pages/Contacts/Edit.vue
resources/js/Pages/Contacts/Index.vue
resources/js/Pages/Dashboard/Index.vue
resources/js/Pages/Organizations/Create.vue
resources/js/Pages/Organizations/Edit.vue
resources/js/Pages/Organizations/Index.vue
resources/js/Pages/Users/Create.vue
resources/js/Pages/Users/Edit.vue
resources/js/Pages/Users/Index.vue
resources/js/Shared/Layout.vue
resources/js/Shared/MainMenu.vue
resources/js/Shared/Pagination.vue
resources/js/app.js
package-lock.json
View file @
6e75708
...
@@ -1971,9 +1971,9 @@
...
@@ -1971,9 +1971,9 @@
}
}
},
},
"caniuse-lite"
:
{
"caniuse-lite"
:
{
"version"
:
"1.0.3000096
2
"
,
"version"
:
"1.0.3000096
3
"
,
"resolved"
:
"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.3000096
2
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.3000096
3
.tgz"
,
"integrity"
:
"sha512-
WXYsW38HK+6eaj5IZR16Rn91TGhU3OhbwjKZvJ4HN/XBIABLKfbij9Mnd3pM0VEwZSlltWjoWg3I8FQ0DGgNOA
=="
,
"integrity"
:
"sha512-
n4HUiullc7Lw0LyzpeLa2ffP8KxFBGdxqD/8G3bSL6oB758hZ2UE2CVK+tQN958tJIi0/tfpjAc67aAtoHgnrQ
=="
,
"dev"
:
true
"dev"
:
true
},
},
"chalk"
:
{
"chalk"
:
{
...
@@ -2138,9 +2138,9 @@
...
@@ -2138,9 +2138,9 @@
}
}
},
},
"color"
:
{
"color"
:
{
"version"
:
"3.1.
0
"
,
"version"
:
"3.1.
1
"
,
"resolved"
:
"https://registry.npmjs.org/color/-/color-3.1.
0
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/color/-/color-3.1.
1
.tgz"
,
"integrity"
:
"sha512-
CwyopLkuRYO5ei2EpzpIh6LqJMt6Mt+jZhO5VI5f/wJLZriXQE32/SSqzmrh+QB+AZT81Cj8yv+7zwToW8ahZ
g=="
,
"integrity"
:
"sha512-
PvUltIXRjehRKPSy89VnDWFKY58xyhTLyxIg21vwQBI6qLwZNPmC8k3C1uytIgFKEpOIzN4y32iPm8231zFHI
g=="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
"color-convert"
:
"^1.9.1"
,
"color-convert"
:
"^1.9.1"
,
...
@@ -5123,22 +5123,20 @@
...
@@ -5123,22 +5123,20 @@
"dev"
:
true
"dev"
:
true
},
},
"inertia"
:
{
"inertia"
:
{
"version"
:
"github:inertiajs/inertia#
280a85a07dcb7ac02fb236fdbb68810a4be1e128
"
,
"version"
:
"github:inertiajs/inertia#
52829f02f5db25b033d3ea925cae4836cd11bfa6
"
,
"from"
:
"github:inertiajs/inertia"
,
"from"
:
"github:inertiajs/inertia"
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
"axios"
:
"^0.18.0"
,
"axios"
:
"^0.18.0"
,
"lodash"
:
"^4.17.5"
,
"melanke-watchjs"
:
"^1.5.0"
,
"nprogress"
:
"^0.2.0"
"nprogress"
:
"^0.2.0"
}
}
},
},
"inertia-vue"
:
{
"inertia-vue"
:
{
"version"
:
"github:inertiajs/inertia-vue#
7e6cff62e2ebdc0f432ec146a293cfd1fc88f32
9"
,
"version"
:
"github:inertiajs/inertia-vue#
de7306319de89777c82d51c48d63df59453ee0c
9"
,
"from"
:
"github:inertiajs/inertia-vue"
,
"from"
:
"github:inertiajs/inertia-vue"
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
"inertia"
:
"github:inertiajs/inertia#
280a85a07dcb7ac02fb236fdbb68810a4be1e128
"
"inertia"
:
"github:inertiajs/inertia#
52829f02f5db25b033d3ea925cae4836cd11bfa6
"
}
}
},
},
"inflight"
:
{
"inflight"
:
{
...
@@ -5959,12 +5957,6 @@
...
@@ -5959,12 +5957,6 @@
"integrity"
:
"sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
,
"integrity"
:
"sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
,
"dev"
:
true
"dev"
:
true
},
},
"melanke-watchjs"
:
{
"version"
:
"1.5.0"
,
"resolved"
:
"https://registry.npmjs.org/melanke-watchjs/-/melanke-watchjs-1.5.0.tgz"
,
"integrity"
:
"sha512-YUQzBucdH5p3s/UPQ0fvYyzqRfyLKTS35Qj5iaVBQ6XYGvvpEX7afR1xi8uUGsTEfFNqDFRrADz9TkVu4/TeXQ=="
,
"dev"
:
true
},
"mem"
:
{
"mem"
:
{
"version"
:
"4.3.0"
,
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/mem/-/mem-4.3.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/mem/-/mem-4.3.0.tgz"
,
...
@@ -6320,9 +6312,9 @@
...
@@ -6320,9 +6312,9 @@
}
}
},
},
"node-releases"
:
{
"node-releases"
:
{
"version"
:
"1.1.1
5
"
,
"version"
:
"1.1.1
7
"
,
"resolved"
:
"https://registry.npmjs.org/node-releases/-/node-releases-1.1.1
5
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/node-releases/-/node-releases-1.1.1
7
.tgz"
,
"integrity"
:
"sha512-
cKV097BQaZr8LTSRUa2+oc/aX5L8UkZtPQrMSTgiJEeaW7ymTDCoRaGCoaTqk0lqnalcoSHu4wjSl0Cmj2+bMw
=="
,
"integrity"
:
"sha512-
/SCjetyta1m7YXLgtACZGDYJdCSIBAWorDWkGCGZlydP2Ll7J48l7j/JxNYZ+xsgSPbWfdulVS/aY+GdjUsQ7Q
=="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
"semver"
:
"^5.3.0"
"semver"
:
"^5.3.0"
...
@@ -8090,9 +8082,9 @@
...
@@ -8090,9 +8082,9 @@
"dev"
:
true
"dev"
:
true
},
},
"resolve"
:
{
"resolve"
:
{
"version"
:
"1.10.
0
"
,
"version"
:
"1.10.
1
"
,
"resolved"
:
"https://registry.npmjs.org/resolve/-/resolve-1.10.
0
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/resolve/-/resolve-1.10.
1
.tgz"
,
"integrity"
:
"sha512-
3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg
=="
,
"integrity"
:
"sha512-
KuIe4mf++td/eFb6wkaPbMDnP6kObCaEtIDuHOUED6MNUo4K670KZUHuuvYPZDxNF0WVLw49n06M2m2dXphEzA
=="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
"path-parse"
:
"^1.0.6"
"path-parse"
:
"^1.0.6"
...
@@ -8252,9 +8244,9 @@
...
@@ -8252,9 +8244,9 @@
}
}
},
},
"rxjs"
:
{
"rxjs"
:
{
"version"
:
"6.
4.0
"
,
"version"
:
"6.
5.1
"
,
"resolved"
:
"https://registry.npmjs.org/rxjs/-/rxjs-6.
4.0
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/rxjs/-/rxjs-6.
5.1
.tgz"
,
"integrity"
:
"sha512-
Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw
=="
,
"integrity"
:
"sha512-
y0j31WJc83wPu31vS1VlAFW5JGrnGC+j+TtGAa1fRQphy48+fDYiDmX8tjGloToEsMkxnouOg/1IzXGKkJnZMg
=="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
"tslib"
:
"^1.9.0"
"tslib"
:
"^1.9.0"
...
...
resources/js/Pages/Auth/Login.vue
View file @
6e75708
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Inertia
}
from
'inertia-vue'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
Logo
from
'@/Shared/Logo'
import
Logo
from
'@/Shared/Logo'
import
TextInput
from
'@/Shared/TextInput'
import
TextInput
from
'@/Shared/TextInput'
...
@@ -54,7 +53,7 @@ export default {
...
@@ -54,7 +53,7 @@ export default {
methods
:
{
methods
:
{
submit
()
{
submit
()
{
this
.
sending
=
true
this
.
sending
=
true
I
nertia
.
post
(
this
.
route
(
'login.attempt'
),
{
this
.
$i
nertia
.
post
(
this
.
route
(
'login.attempt'
),
{
email
:
this
.
form
.
email
,
email
:
this
.
form
.
email
,
password
:
this
.
form
.
password
,
password
:
this
.
form
.
password
,
remember
:
this
.
form
.
remember
,
remember
:
this
.
form
.
remember
,
...
...
resources/js/Pages/Contacts/Create.vue
View file @
6e75708
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Inertia
,
InertiaLink
}
from
'inertia-vue'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
SelectInput
from
'@/Shared/SelectInput'
import
SelectInput
from
'@/Shared/SelectInput'
...
@@ -42,7 +41,6 @@ import TextInput from '@/Shared/TextInput'
...
@@ -42,7 +41,6 @@ import TextInput from '@/Shared/TextInput'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Layout
,
Layout
,
LoadingButton
,
LoadingButton
,
SelectInput
,
SelectInput
,
...
@@ -55,10 +53,11 @@ export default {
...
@@ -55,10 +53,11 @@ export default {
default
:
()
=>
({}),
default
:
()
=>
({}),
},
},
},
},
remember
:
'form'
,
data
()
{
data
()
{
return
{
return
{
sending
:
false
,
sending
:
false
,
form
:
Inertia
.
remember
(
{
form
:
{
first_name
:
null
,
first_name
:
null
,
last_name
:
null
,
last_name
:
null
,
organization_id
:
null
,
organization_id
:
null
,
...
@@ -69,13 +68,13 @@ export default {
...
@@ -69,13 +68,13 @@ export default {
region
:
null
,
region
:
null
,
country
:
null
,
country
:
null
,
postal_code
:
null
,
postal_code
:
null
,
}
)
,
},
}
}
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
this
.
sending
=
true
this
.
sending
=
true
I
nertia
.
post
(
this
.
route
(
'contacts.store'
),
this
.
form
)
this
.
$i
nertia
.
post
(
this
.
route
(
'contacts.store'
),
this
.
form
)
.
then
(()
=>
this
.
sending
=
false
)
.
then
(()
=>
this
.
sending
=
false
)
},
},
},
},
...
...
resources/js/Pages/Contacts/Edit.vue
View file @
6e75708
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Inertia
,
InertiaLink
}
from
'inertia-vue'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
SelectInput
from
'@/Shared/SelectInput'
import
SelectInput
from
'@/Shared/SelectInput'
...
@@ -48,7 +47,6 @@ import TrashedMessage from '@/Shared/TrashedMessage'
...
@@ -48,7 +47,6 @@ import TrashedMessage from '@/Shared/TrashedMessage'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Layout
,
Layout
,
LoadingButton
,
LoadingButton
,
SelectInput
,
SelectInput
,
...
@@ -63,10 +61,11 @@ export default {
...
@@ -63,10 +61,11 @@ export default {
default
:
()
=>
({}),
default
:
()
=>
({}),
},
},
},
},
remember
:
'form'
,
data
()
{
data
()
{
return
{
return
{
sending
:
false
,
sending
:
false
,
form
:
Inertia
.
remember
(
{
form
:
{
first_name
:
this
.
contact
.
first_name
,
first_name
:
this
.
contact
.
first_name
,
last_name
:
this
.
contact
.
last_name
,
last_name
:
this
.
contact
.
last_name
,
organization_id
:
this
.
contact
.
organization_id
,
organization_id
:
this
.
contact
.
organization_id
,
...
@@ -77,23 +76,23 @@ export default {
...
@@ -77,23 +76,23 @@ export default {
region
:
this
.
contact
.
region
,
region
:
this
.
contact
.
region
,
country
:
this
.
contact
.
country
,
country
:
this
.
contact
.
country
,
postal_code
:
this
.
contact
.
postal_code
,
postal_code
:
this
.
contact
.
postal_code
,
}
)
,
},
}
}
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
this
.
sending
=
true
this
.
sending
=
true
I
nertia
.
put
(
this
.
route
(
'contacts.update'
,
this
.
contact
.
id
),
this
.
form
)
this
.
$i
nertia
.
put
(
this
.
route
(
'contacts.update'
,
this
.
contact
.
id
),
this
.
form
)
.
then
(()
=>
this
.
sending
=
false
)
.
then
(()
=>
this
.
sending
=
false
)
},
},
destroy
()
{
destroy
()
{
if
(
confirm
(
'Are you sure you want to delete this contact?'
))
{
if
(
confirm
(
'Are you sure you want to delete this contact?'
))
{
I
nertia
.
delete
(
this
.
route
(
'contacts.destroy'
,
this
.
contact
.
id
))
this
.
$i
nertia
.
delete
(
this
.
route
(
'contacts.destroy'
,
this
.
contact
.
id
))
}
}
},
},
restore
()
{
restore
()
{
if
(
confirm
(
'Are you sure you want to restore this contact?'
))
{
if
(
confirm
(
'Are you sure you want to restore this contact?'
))
{
I
nertia
.
put
(
this
.
route
(
'contacts.restore'
,
this
.
contact
.
id
))
this
.
$i
nertia
.
put
(
this
.
route
(
'contacts.restore'
,
this
.
contact
.
id
))
}
}
},
},
},
},
...
...
resources/js/Pages/Contacts/Index.vue
View file @
6e75708
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
<
script
>
<
script
>
import
_
from
'lodash'
import
_
from
'lodash'
import
{
Inertia
,
InertiaLink
}
from
'inertia-vue'
import
Icon
from
'@/Shared/Icon'
import
Icon
from
'@/Shared/Icon'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
Pagination
from
'@/Shared/Pagination'
import
Pagination
from
'@/Shared/Pagination'
...
@@ -72,7 +71,6 @@ import SearchFilter from '@/Shared/SearchFilter'
...
@@ -72,7 +71,6 @@ import SearchFilter from '@/Shared/SearchFilter'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Icon
,
Icon
,
Layout
,
Layout
,
Pagination
,
Pagination
,
...
@@ -94,7 +92,7 @@ export default {
...
@@ -94,7 +92,7 @@ export default {
form
:
{
form
:
{
handler
:
_
.
throttle
(
function
()
{
handler
:
_
.
throttle
(
function
()
{
let
query
=
_
.
pickBy
(
this
.
form
)
let
query
=
_
.
pickBy
(
this
.
form
)
I
nertia
.
replace
(
this
.
route
(
'contacts'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
this
.
$i
nertia
.
replace
(
this
.
route
(
'contacts'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
},
150
),
},
150
),
deep
:
true
,
deep
:
true
,
},
},
...
...
resources/js/Pages/Dashboard/Index.vue
View file @
6e75708
...
@@ -10,13 +10,11 @@
...
@@ -10,13 +10,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
InertiaLink
}
from
'inertia-vue'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
export
default
{
export
default
{
components
:
{
components
:
{
Layout
,
Layout
,
InertiaLink
,
},
},
}
}
</
script
>
</
script
>
resources/js/Pages/Organizations/Create.vue
View file @
6e75708
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Inertia
,
InertiaLink
}
from
'inertia-vue'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
SelectInput
from
'@/Shared/SelectInput'
import
SelectInput
from
'@/Shared/SelectInput'
...
@@ -37,7 +36,6 @@ import TextInput from '@/Shared/TextInput'
...
@@ -37,7 +36,6 @@ import TextInput from '@/Shared/TextInput'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Layout
,
Layout
,
LoadingButton
,
LoadingButton
,
SelectInput
,
SelectInput
,
...
@@ -49,10 +47,11 @@ export default {
...
@@ -49,10 +47,11 @@ export default {
default
:
()
=>
({}),
default
:
()
=>
({}),
},
},
},
},
remember
:
[
'form'
],
data
()
{
data
()
{
return
{
return
{
sending
:
false
,
sending
:
false
,
form
:
Inertia
.
remember
(
{
form
:
{
name
:
null
,
name
:
null
,
email
:
null
,
email
:
null
,
phone
:
null
,
phone
:
null
,
...
@@ -61,13 +60,13 @@ export default {
...
@@ -61,13 +60,13 @@ export default {
region
:
null
,
region
:
null
,
country
:
null
,
country
:
null
,
postal_code
:
null
,
postal_code
:
null
,
}
)
,
},
}
}
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
this
.
sending
=
true
this
.
sending
=
true
I
nertia
.
post
(
this
.
route
(
'organizations.store'
),
this
.
form
)
this
.
$i
nertia
.
post
(
this
.
route
(
'organizations.store'
),
this
.
form
)
.
then
(()
=>
this
.
sending
=
false
)
.
then
(()
=>
this
.
sending
=
false
)
},
},
},
},
...
...
resources/js/Pages/Organizations/Edit.vue
View file @
6e75708
...
@@ -70,7 +70,6 @@
...
@@ -70,7 +70,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Inertia
,
InertiaLink
}
from
'inertia-vue'
import
Icon
from
'@/Shared/Icon'
import
Icon
from
'@/Shared/Icon'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
LoadingButton
from
'@/Shared/LoadingButton'
...
@@ -80,7 +79,6 @@ import TrashedMessage from '@/Shared/TrashedMessage'
...
@@ -80,7 +79,6 @@ import TrashedMessage from '@/Shared/TrashedMessage'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Icon
,
Icon
,
Layout
,
Layout
,
LoadingButton
,
LoadingButton
,
...
@@ -95,10 +93,11 @@ export default {
...
@@ -95,10 +93,11 @@ export default {
default
:
()
=>
({}),
default
:
()
=>
({}),
},
},
},
},
remember
:
[
'form'
],
data
()
{
data
()
{
return
{
return
{
sending
:
false
,
sending
:
false
,
form
:
Inertia
.
remember
(
{
form
:
{
name
:
this
.
organization
.
name
,
name
:
this
.
organization
.
name
,
email
:
this
.
organization
.
email
,
email
:
this
.
organization
.
email
,
phone
:
this
.
organization
.
phone
,
phone
:
this
.
organization
.
phone
,
...
@@ -107,23 +106,23 @@ export default {
...
@@ -107,23 +106,23 @@ export default {
region
:
this
.
organization
.
region
,
region
:
this
.
organization
.
region
,
country
:
this
.
organization
.
country
,
country
:
this
.
organization
.
country
,
postal_code
:
this
.
organization
.
postal_code
,
postal_code
:
this
.
organization
.
postal_code
,
}
)
,
},
}
}
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
this
.
sending
=
true
this
.
sending
=
true
I
nertia
.
put
(
this
.
route
(
'organizations.update'
,
this
.
organization
.
id
),
this
.
form
)
this
.
$i
nertia
.
put
(
this
.
route
(
'organizations.update'
,
this
.
organization
.
id
),
this
.
form
)
.
then
(()
=>
this
.
sending
=
false
)
.
then
(()
=>
this
.
sending
=
false
)
},
},
destroy
()
{
destroy
()
{
if
(
confirm
(
'Are you sure you want to delete this organization?'
))
{
if
(
confirm
(
'Are you sure you want to delete this organization?'
))
{
I
nertia
.
delete
(
this
.
route
(
'organizations.destroy'
,
this
.
organization
.
id
))
this
.
$i
nertia
.
delete
(
this
.
route
(
'organizations.destroy'
,
this
.
organization
.
id
))
}
}
},
},
restore
()
{
restore
()
{
if
(
confirm
(
'Are you sure you want to restore this organization?'
))
{
if
(
confirm
(
'Are you sure you want to restore this organization?'
))
{
I
nertia
.
put
(
this
.
route
(
'organizations.restore'
,
this
.
organization
.
id
))
this
.
$i
nertia
.
put
(
this
.
route
(
'organizations.restore'
,
this
.
organization
.
id
))
}
}
},
},
},
},
...
...
resources/js/Pages/Organizations/Index.vue
View file @
6e75708
...
@@ -56,7 +56,6 @@
...
@@ -56,7 +56,6 @@
<
script
>
<
script
>
import
_
from
'lodash'
import
_
from
'lodash'
import
{
Inertia
,
InertiaLink
}
from
'inertia-vue'
import
Icon
from
'@/Shared/Icon'
import
Icon
from
'@/Shared/Icon'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
Pagination
from
'@/Shared/Pagination'
import
Pagination
from
'@/Shared/Pagination'
...
@@ -64,7 +63,6 @@ import SearchFilter from '@/Shared/SearchFilter'
...
@@ -64,7 +63,6 @@ import SearchFilter from '@/Shared/SearchFilter'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Icon
,
Icon
,
Layout
,
Layout
,
Pagination
,
Pagination
,
...
@@ -86,7 +84,7 @@ export default {
...
@@ -86,7 +84,7 @@ export default {
form
:
{
form
:
{
handler
:
_
.
throttle
(
function
()
{
handler
:
_
.
throttle
(
function
()
{
let
query
=
_
.
pickBy
(
this
.
form
)
let
query
=
_
.
pickBy
(
this
.
form
)
I
nertia
.
replace
(
this
.
route
(
'organizations'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
this
.
$i
nertia
.
replace
(
this
.
route
(
'organizations'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
},
150
),
},
150
),
deep
:
true
,
deep
:
true
,
},
},
...
...
resources/js/Pages/Users/Create.vue
View file @
6e75708
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Inertia
,
InertiaLink
}
from
'inertia-vue'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
SelectInput
from
'@/Shared/SelectInput'
import
SelectInput
from
'@/Shared/SelectInput'
...
@@ -33,7 +32,6 @@ import TextInput from '@/Shared/TextInput'
...
@@ -33,7 +32,6 @@ import TextInput from '@/Shared/TextInput'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Layout
,
Layout
,
LoadingButton
,
LoadingButton
,
SelectInput
,
SelectInput
,
...
@@ -45,22 +43,23 @@ export default {
...
@@ -45,22 +43,23 @@ export default {
default
:
()
=>
({}),
default
:
()
=>
({}),
},
},
},
},
remember
:
'form'
,
data
()
{
data
()
{
return
{
return
{
sending
:
false
,
sending
:
false
,
form
:
Inertia
.
remember
(
{
form
:
{
first_name
:
null
,
first_name
:
null
,
last_name
:
null
,
last_name
:
null
,
email
:
null
,
email
:
null
,
password
:
null
,
password
:
null
,
owner
:
false
,
owner
:
false
,
}
)
,
},
}
}
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
this
.
sending
=
true
this
.
sending
=
true
I
nertia
.
post
(
this
.
route
(
'users.store'
),
this
.
form
)
this
.
$i
nertia
.
post
(
this
.
route
(
'users.store'
),
this
.
form
)
.
then
(()
=>
this
.
sending
=
false
)
.
then
(()
=>
this
.
sending
=
false
)
},
},
},
},
...
...
resources/js/Pages/Users/Edit.vue
View file @
6e75708
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Inertia
,
InertiaLink
}
from
'inertia-vue'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
LoadingButton
from
'@/Shared/LoadingButton'
import
SelectInput
from
'@/Shared/SelectInput'
import
SelectInput
from
'@/Shared/SelectInput'
...
@@ -39,7 +38,6 @@ import TrashedMessage from '@/Shared/TrashedMessage'
...
@@ -39,7 +38,6 @@ import TrashedMessage from '@/Shared/TrashedMessage'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Layout
,
Layout
,
LoadingButton
,
LoadingButton
,
SelectInput
,
SelectInput
,
...
@@ -53,32 +51,33 @@ export default {
...
@@ -53,32 +51,33 @@ export default {
default
:
()
=>
({}),
default
:
()
=>
({}),
},
},
},
},
remember
:
'form'
,
data
()
{
data
()
{
return
{
return
{
sending
:
false
,
sending
:
false
,
form
:
Inertia
.
remember
(
{
form
:
{
first_name
:
this
.
user
.
first_name
,
first_name
:
this
.
user
.
first_name
,
last_name
:
this
.
user
.
last_name
,
last_name
:
this
.
user
.
last_name
,
email
:
this
.
user
.
email
,
email
:
this
.
user
.
email
,
password
:
this
.
user
.
password
,
password
:
this
.
user
.
password
,
owner
:
this
.
user
.
owner
,
owner
:
this
.
user
.
owner
,
}
)
,
},
}
}
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
this
.
sending
=
true
this
.
sending
=
true
I
nertia
.
put
(
this
.
route
(
'users.update'
,
this
.
user
.
id
),
this
.
form
)
this
.
$i
nertia
.
put
(
this
.
route
(
'users.update'
,
this
.
user
.
id
),
this
.
form
)
.
then
(()
=>
this
.
sending
=
false
)
.
then
(()
=>
this
.
sending
=
false
)
},
},
destroy
()
{
destroy
()
{
if
(
confirm
(
'Are you sure you want to delete this user?'
))
{
if
(
confirm
(
'Are you sure you want to delete this user?'
))
{
I
nertia
.
delete
(
this
.
route
(
'users.destroy'
,
this
.
user
.
id
))
this
.
$i
nertia
.
delete
(
this
.
route
(
'users.destroy'
,
this
.
user
.
id
))
}
}
},
},
restore
()
{
restore
()
{
if
(
confirm
(
'Are you sure you want to restore this user?'
))
{
if
(
confirm
(
'Are you sure you want to restore this user?'
))
{
I
nertia
.
put
(
this
.
route
(
'users.restore'
,
this
.
user
.
id
))
this
.
$i
nertia
.
put
(
this
.
route
(
'users.restore'
,
this
.
user
.
id
))
}
}
},
},
},
},
...
...
resources/js/Pages/Users/Index.vue
View file @
6e75708
...
@@ -61,14 +61,12 @@
...
@@ -61,14 +61,12 @@
<
script
>
<
script
>
import
_
from
'lodash'
import
_
from
'lodash'
import
{
Inertia
,
InertiaLink
}
from
'inertia-vue'
import
Icon
from
'@/Shared/Icon'
import
Icon
from
'@/Shared/Icon'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
SearchFilter
from
'@/Shared/SearchFilter'
import
SearchFilter
from
'@/Shared/SearchFilter'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Icon
,
Icon
,
Layout
,
Layout
,
SearchFilter
,
SearchFilter
,
...
@@ -90,7 +88,7 @@ export default {
...
@@ -90,7 +88,7 @@ export default {
form
:
{
form
:
{
handler
:
_
.
throttle
(
function
()
{
handler
:
_
.
throttle
(
function
()
{
let
query
=
_
.
pickBy
(
this
.
form
)
let
query
=
_
.
pickBy
(
this
.
form
)
I
nertia
.
replace
(
this
.
route
(
'users'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
this
.
$i
nertia
.
replace
(
this
.
route
(
'users'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
},
150
),
},
150
),
deep
:
true
,
deep
:
true
,
},
},
...
...
resources/js/Shared/Layout.vue
View file @
6e75708
...
@@ -47,7 +47,6 @@
...
@@ -47,7 +47,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
InertiaLink
}
from
'inertia-vue'
import
Dropdown
from
'@/Shared/Dropdown'
import
Dropdown
from
'@/Shared/Dropdown'
import
Icon
from
'@/Shared/Icon'
import
Icon
from
'@/Shared/Icon'
import
Logo
from
'@/Shared/Logo'
import
Logo
from
'@/Shared/Logo'
...
@@ -55,7 +54,6 @@ import MainMenu from '@/Shared/MainMenu'
...
@@ -55,7 +54,6 @@ import MainMenu from '@/Shared/MainMenu'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Dropdown
,
Dropdown
,
Icon
,
Icon
,
Logo
,
Logo
,
...
...
resources/js/Shared/MainMenu.vue
View file @
6e75708
...
@@ -28,12 +28,10 @@
...
@@ -28,12 +28,10 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
InertiaLink
}
from
'inertia-vue'
import
Icon
from
'@/Shared/Icon'
import
Icon
from
'@/Shared/Icon'
export
default
{
export
default
{
components
:
{
components
:
{
InertiaLink
,
Icon
,
Icon
,
},
},
methods
:
{
methods
:
{
...
...
resources/js/Shared/Pagination.vue
View file @
6e75708
...
@@ -8,12 +8,7 @@
...
@@ -8,12 +8,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
InertiaLink
}
from
'inertia-vue'
export
default
{
export
default
{
components
:
{
InertiaLink
,
},
props
:
{
props
:
{
links
:
Array
,
links
:
Array
,
},
},
...
...
resources/js/app.js
View file @
6e75708
...
@@ -4,6 +4,7 @@ import Vue from 'vue'
...
@@ -4,6 +4,7 @@ import Vue from 'vue'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
mixin
({
methods
:
{
route
:
(...
args
)
=>
window
.
route
(...
args
).
url
()
}
})
Vue
.
mixin
({
methods
:
{
route
:
(...
args
)
=>
window
.
route
(...
args
).
url
()
}
})
Vue
.
use
(
Inertia
)
Vue
.
use
(
PortalVue
)
Vue
.
use
(
PortalVue
)
let
app
=
document
.
getElementById
(
'app'
)
let
app
=
document
.
getElementById
(
'app'
)
...
...
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