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 6f9c5f13
authored
Dec 18, 2019
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify JavaScript dependencies
1 parent
2e7d5961
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
32 deletions
package-lock.json
package.json
resources/js/Pages/Contacts/Index.vue
resources/js/Pages/Organizations/Index.vue
resources/js/Pages/Users/Index.vue
resources/js/Shared/TextareaInput.vue
webpack.mix.js
package-lock.json
View file @
6f9c5f1
This diff could not be displayed because it is too large.
package.json
View file @
6f9c5f1
...
@@ -10,15 +10,12 @@
...
@@ -10,15 +10,12 @@
"production"
:
"cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
"production"
:
"cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@babel/plugin-syntax-dynamic-import"
:
"^7.2.0"
,
"@inertiajs/inertia"
:
"^0.1.0"
,
"@inertiajs/inertia"
:
"^0.1.0"
,
"@inertiajs/inertia-vue"
:
"^0.1.0"
,
"@inertiajs/inertia-vue"
:
"^0.1.0"
,
"autosize"
:
"^4.0.2"
,
"axios"
:
"^0.18"
,
"axios"
:
"^0.18"
,
"cross-env"
:
"^5.1"
,
"cross-env"
:
"^5.1"
,
"eslint"
:
"^5.14.1"
,
"eslint"
:
"^5.14.1"
,
"eslint-plugin-vue"
:
"^5.2.2"
,
"eslint-plugin-vue"
:
"^5.2.2"
,
"fuse.js"
:
"^3.4.2"
,
"laravel-mix"
:
"^4.0.7"
,
"laravel-mix"
:
"^4.0.7"
,
"lodash"
:
"^4.17.5"
,
"lodash"
:
"^4.17.5"
,
"popper.js"
:
"^1.12"
,
"popper.js"
:
"^1.12"
,
...
@@ -28,9 +25,7 @@
...
@@ -28,9 +25,7 @@
"resolve-url-loader"
:
"^2.3.1"
,
"resolve-url-loader"
:
"^2.3.1"
,
"tailwindcss"
:
"^0.7.4"
,
"tailwindcss"
:
"^0.7.4"
,
"vue"
:
"^2.6.6"
,
"vue"
:
"^2.6.6"
,
"vue-meta"
:
"^2.2.2"
,
"vue-template-compiler"
:
"^2.6.6"
"vue-template-compiler"
:
"^2.6.6"
},
"dependencies"
:
{
"vue-meta"
:
"^2.2.2"
}
}
}
}
resources/js/Pages/Contacts/Index.vue
View file @
6f9c5f1
...
@@ -63,11 +63,13 @@
...
@@ -63,11 +63,13 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
_
from
'lodash'
import
Icon
from
'@/Shared/Icon'
import
Icon
from
'@/Shared/Icon'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
mapValues
from
'lodash/mapValues'
import
Pagination
from
'@/Shared/Pagination'
import
Pagination
from
'@/Shared/Pagination'
import
pickBy
from
'lodash/pickBy'
import
SearchFilter
from
'@/Shared/SearchFilter'
import
SearchFilter
from
'@/Shared/SearchFilter'
import
throttle
from
'lodash/throttle'
export
default
{
export
default
{
metaInfo
:
{
title
:
'Contacts'
},
metaInfo
:
{
title
:
'Contacts'
},
...
@@ -91,8 +93,8 @@ export default {
...
@@ -91,8 +93,8 @@ export default {
},
},
watch
:
{
watch
:
{
form
:
{
form
:
{
handler
:
_
.
throttle
(
function
()
{
handler
:
throttle
(
function
()
{
let
query
=
_
.
pickBy
(
this
.
form
)
let
query
=
pickBy
(
this
.
form
)
this
.
$inertia
.
replace
(
this
.
route
(
'contacts'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
this
.
$inertia
.
replace
(
this
.
route
(
'contacts'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
},
150
),
},
150
),
deep
:
true
,
deep
:
true
,
...
@@ -100,7 +102,7 @@ export default {
...
@@ -100,7 +102,7 @@ export default {
},
},
methods
:
{
methods
:
{
reset
()
{
reset
()
{
this
.
form
=
_
.
mapValues
(
this
.
form
,
()
=>
null
)
this
.
form
=
mapValues
(
this
.
form
,
()
=>
null
)
},
},
},
},
}
}
...
...
resources/js/Pages/Organizations/Index.vue
View file @
6f9c5f1
...
@@ -55,11 +55,13 @@
...
@@ -55,11 +55,13 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
_
from
'lodash'
import
Icon
from
'@/Shared/Icon'
import
Icon
from
'@/Shared/Icon'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
mapValues
from
'lodash/mapValues'
import
Pagination
from
'@/Shared/Pagination'
import
Pagination
from
'@/Shared/Pagination'
import
pickBy
from
'lodash/pickBy'
import
SearchFilter
from
'@/Shared/SearchFilter'
import
SearchFilter
from
'@/Shared/SearchFilter'
import
throttle
from
'lodash/throttle'
export
default
{
export
default
{
metaInfo
:
{
title
:
'Organizations'
},
metaInfo
:
{
title
:
'Organizations'
},
...
@@ -83,8 +85,8 @@ export default {
...
@@ -83,8 +85,8 @@ export default {
},
},
watch
:
{
watch
:
{
form
:
{
form
:
{
handler
:
_
.
throttle
(
function
()
{
handler
:
throttle
(
function
()
{
let
query
=
_
.
pickBy
(
this
.
form
)
let
query
=
pickBy
(
this
.
form
)
this
.
$inertia
.
replace
(
this
.
route
(
'organizations'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
this
.
$inertia
.
replace
(
this
.
route
(
'organizations'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
},
150
),
},
150
),
deep
:
true
,
deep
:
true
,
...
@@ -92,7 +94,7 @@ export default {
...
@@ -92,7 +94,7 @@ export default {
},
},
methods
:
{
methods
:
{
reset
()
{
reset
()
{
this
.
form
=
_
.
mapValues
(
this
.
form
,
()
=>
null
)
this
.
form
=
mapValues
(
this
.
form
,
()
=>
null
)
},
},
},
},
}
}
...
...
resources/js/Pages/Users/Index.vue
View file @
6f9c5f1
...
@@ -61,10 +61,12 @@
...
@@ -61,10 +61,12 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
_
from
'lodash'
import
Icon
from
'@/Shared/Icon'
import
Icon
from
'@/Shared/Icon'
import
Layout
from
'@/Shared/Layout'
import
Layout
from
'@/Shared/Layout'
import
mapValues
from
'lodash/mapValues'
import
pickBy
from
'lodash/pickBy'
import
SearchFilter
from
'@/Shared/SearchFilter'
import
SearchFilter
from
'@/Shared/SearchFilter'
import
throttle
from
'lodash/throttle'
export
default
{
export
default
{
metaInfo
:
{
title
:
'Users'
},
metaInfo
:
{
title
:
'Users'
},
...
@@ -88,8 +90,8 @@ export default {
...
@@ -88,8 +90,8 @@ export default {
},
},
watch
:
{
watch
:
{
form
:
{
form
:
{
handler
:
_
.
throttle
(
function
()
{
handler
:
throttle
(
function
()
{
let
query
=
_
.
pickBy
(
this
.
form
)
let
query
=
pickBy
(
this
.
form
)
this
.
$inertia
.
replace
(
this
.
route
(
'users'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
this
.
$inertia
.
replace
(
this
.
route
(
'users'
,
Object
.
keys
(
query
).
length
?
query
:
{
remember
:
'forget'
}))
},
150
),
},
150
),
deep
:
true
,
deep
:
true
,
...
@@ -97,7 +99,7 @@ export default {
...
@@ -97,7 +99,7 @@ export default {
},
},
methods
:
{
methods
:
{
reset
()
{
reset
()
{
this
.
form
=
_
.
mapValues
(
this
.
form
,
()
=>
null
)
this
.
form
=
mapValues
(
this
.
form
,
()
=>
null
)
},
},
},
},
}
}
...
...
resources/js/Shared/TextareaInput.vue
View file @
6f9c5f1
...
@@ -7,8 +7,6 @@
...
@@ -7,8 +7,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
autosize
from
'autosize'
export
default
{
export
default
{
inheritAttrs
:
false
,
inheritAttrs
:
false
,
props
:
{
props
:
{
...
@@ -24,15 +22,6 @@ export default {
...
@@ -24,15 +22,6 @@ export default {
type
:
Array
,
type
:
Array
,
default
:
()
=>
[],
default
:
()
=>
[],
},
},
autosize
:
{
type
:
Boolean
,
default
:
false
,
},
},
mounted
()
{
if
(
this
.
autosize
)
{
autosize
(
this
.
$refs
.
input
)
}
},
},
methods
:
{
methods
:
{
focus
()
{
focus
()
{
...
...
webpack.mix.js
View file @
6f9c5f1
...
@@ -30,8 +30,5 @@ mix.js('resources/js/app.js', 'public/js')
...
@@ -30,8 +30,5 @@ mix.js('resources/js/app.js', 'public/js')
},
},
},
},
})
})
.
babelConfig
({
plugins
:
[
'@babel/plugin-syntax-dynamic-import'
],
})
.
version
()
.
version
()
.
sourceMaps
()
.
sourceMaps
()
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