- .multiselect-actions as position:fixed

- zipping popup when generate zip for multiple files download
This commit is contained in:
Peter Papp
2020-12-21 09:56:03 +01:00
parent 07086c7550
commit 7da4d1f64b
21 changed files with 530 additions and 418 deletions

View File

@@ -2,7 +2,7 @@
return [ return [
'version' => '1.8-rc.1', 'version' => '1.8-rc.2',
// Define size of chunk uploaded by MB. E.g. integer 128 means chunk size will be 128MB. // Define size of chunk uploaded by MB. E.g. integer 128 means chunk size will be 128MB.
'chunk_size' => env('CHUNK_SIZE', '128'), 'chunk_size' => env('CHUNK_SIZE', '128'),

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
public/js/main.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,112 +1,65 @@
{ {
"/js/main.js": "/js/main.js", "/chunks/files~chunks/shared-files~chunks/shared-page.js": "/chunks/files~chunks/shared-files~chunks/shared-page.js?id=8f93581df784e7b9e1ae",
"/css/app.css": "/css/app.css", "/js/main.js": "/js/main.js?id=9a3ef9313a36f5e109ed",
"/chunks/admin.js": "/chunks/admin.js?id=5807ec412746448047f9", "/css/app.css": "/css/app.css?id=8f6d5dcb7110a726e142",
"/chunks/admin-account.js": "/chunks/admin-account.js?id=d820e99a25f40cc97570", "/chunks/admin.js": "/chunks/admin.js?id=60df31e17e9a453717dc",
"/chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chu~2d9ff916.js": "/chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chu~2d9ff916.js?id=1ad1b7b56512338223eb", "/chunks/admin-account.js": "/chunks/admin-account.js?id=ab97f01586b286e0bba2",
"/chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/create-new-password~chunks/datab~01aef58e.js": "/chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/create-new-password~chunks/datab~01aef58e.js?id=6c02fe91a2e167b63a98", "/chunks/app-appearance.js": "/chunks/app-appearance.js?id=cbcbdb5159db1fdef0fe",
"/chunks/admin~chunks/files~chunks/settings~chunks/shared-files~chunks/shared-page.js": "/chunks/admin~chunks/files~chunks/settings~chunks/shared-files~chunks/shared-page.js?id=312acc0ff7daa010eea5", "/chunks/app-billings.js": "/chunks/app-billings.js?id=2a85f4c8ad09b50f4358",
"/chunks/app-appearance.js": "/chunks/app-appearance.js?id=03e587de7dd10fba3ead", "/chunks/app-email.js": "/chunks/app-email.js?id=49806a5c914ca1a14bff",
"/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~605f4c49.js": "/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~605f4c49.js?id=fd3c7242b5c765b469e4", "/chunks/app-index.js": "/chunks/app-index.js?id=ff6fb3cb1780d6ea76f2",
"/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~8cc7d96f.js": "/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~8cc7d96f.js?id=ebb1b6ed1df237b56cd9", "/chunks/app-others.js": "/chunks/app-others.js?id=ebc9676ed26d701a599c",
"/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~b9e5655a.js": "/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~b9e5655a.js?id=a8bd98f9f181d9ee68fd", "/chunks/app-payments.js": "/chunks/app-payments.js?id=ad822a37d1d7c6e99a08",
"/chunks/app-billings.js": "/chunks/app-billings.js?id=2b87899e656ed382d260", "/chunks/app-settings.js": "/chunks/app-settings.js?id=e23a68dba034c047ff44",
"/chunks/app-email.js": "/chunks/app-email.js?id=2e5a1b525d335367cfc1", "/chunks/app-setup.js": "/chunks/app-setup.js?id=c1c6fcc091a248b10060",
"/chunks/app-index.js": "/chunks/app-index.js?id=05747ca2c86a1daea9cd", "/chunks/billings-detail.js": "/chunks/billings-detail.js?id=0e1d52490ae1b9e56c74",
"/chunks/app-others.js": "/chunks/app-others.js?id=55e1ec30bdca87c1adef", "/chunks/contact-us.js": "/chunks/contact-us.js?id=a5150dcf81c8e1ab23a4",
"/chunks/app-payments.js": "/chunks/app-payments.js?id=796c7c2cfb9c6c39c8a7", "/chunks/create-new-password.js": "/chunks/create-new-password.js?id=58c543c4f92b5ca9a284",
"/chunks/app-settings.js": "/chunks/app-settings.js?id=b85ce942737e25c37b8a", "/chunks/dashboard.js": "/chunks/dashboard.js?id=d2faf26107f56da1ab92",
"/chunks/app-settings~chunks/dashboard~chunks/invoices~chunks/page-edit~chunks/pages~chunks/plan~chunk~8a0e1d25.js": "/chunks/app-settings~chunks/dashboard~chunks/invoices~chunks/page-edit~chunks/pages~chunks/plan~chunk~8a0e1d25.js?id=99eb5ed6af46738c97e0", "/chunks/database.js": "/chunks/database.js?id=45630822140f0f9d8fb5",
"/chunks/app-setup.js": "/chunks/app-setup.js?id=78bbf0b2065cf270dbe6", "/chunks/dynamic-page.js": "/chunks/dynamic-page.js?id=08a0c2de8f93e0222600",
"/chunks/billings-detail.js": "/chunks/billings-detail.js?id=573e29a00589cb5d3489", "/chunks/environment-setup.js": "/chunks/environment-setup.js?id=be1c6cf5bbedf5c987da",
"/chunks/contact-us.js": "/chunks/contact-us.js?id=7ded3c3e9668eea6c15c", "/chunks/files.js": "/chunks/files.js?id=e182df6a47e8764f428a",
"/chunks/contact-us~chunks/dynamic-page~chunks/landing-page.js": "/chunks/contact-us~chunks/dynamic-page~chunks/landing-page.js?id=96ac1ede73f3fc9afa37", "/chunks/forgotten-password.js": "/chunks/forgotten-password.js?id=7ff98232e7b4cc5d2c2a",
"/chunks/create-new-password.js": "/chunks/create-new-password.js?id=278eef02eace89698f20", "/chunks/installation-disclaimer.js": "/chunks/installation-disclaimer.js?id=d6ff4604fd61fd8a081d",
"/chunks/dashboard.js": "/chunks/dashboard.js?id=62896779642616a310ca", "/chunks/invoices.js": "/chunks/invoices.js?id=57d1985369f98a192d79",
"/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.js": "/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.js?id=ec6fdf1d9f2a839f31cf", "/chunks/landing-page.js": "/chunks/landing-page.js?id=9b500c8f5f2de6ae01b3",
"/chunks/dashboard~chunks/invoices~chunks/pages~chunks/plan-subscribers~chunks/plans~chunks/settings-i~0e2a0654.js": "/chunks/dashboard~chunks/invoices~chunks/pages~chunks/plan-subscribers~chunks/plans~chunks/settings-i~0e2a0654.js?id=d7795f20187163939276", "/chunks/not-found-shared.js": "/chunks/not-found-shared.js?id=53d4f9c58bdac1e568c7",
"/chunks/database.js": "/chunks/database.js?id=c7aa7caa9126b1ecdffa", "/chunks/page-edit.js": "/chunks/page-edit.js?id=682b2836ee0726d72409",
"/chunks/dynamic-page.js": "/chunks/dynamic-page.js?id=1d8ee4bfbcde69c97021", "/chunks/pages.js": "/chunks/pages.js?id=21e8b757a564a787fe98",
"/chunks/environment-setup.js": "/chunks/environment-setup.js?id=86093752b39920044fda", "/chunks/plan.js": "/chunks/plan.js?id=d679b2c4e3dafe7cb4de",
"/chunks/files.js": "/chunks/files.js?id=dec50700cb69d226f79d", "/chunks/plan-create.js": "/chunks/plan-create.js?id=921149e0082c663f0ce8",
"/chunks/files~chunks/settings-subscription~chunks/shared-files~chunks/shared-page~chunks/user-subscription.js": "/chunks/files~chunks/settings-subscription~chunks/shared-files~chunks/shared-page~chunks/user-subscription.js?id=e285e842f58178d681c4", "/chunks/plan-delete.js": "/chunks/plan-delete.js?id=daff73302efdfacc542a",
"/chunks/files~chunks/shared-files~chunks/shared-page.js": "/chunks/files~chunks/shared-files~chunks/shared-page.js?id=a4cde4f0838e7f06ac53", "/chunks/plan-settings.js": "/chunks/plan-settings.js?id=3047e82dffef9a9a5f36",
"/chunks/files~chunks/shared-page.js": "/chunks/files~chunks/shared-page.js?id=825fdc29b64056380220", "/chunks/plan-subscribers.js": "/chunks/plan-subscribers.js?id=d46857048beab30edb45",
"/chunks/forgotten-password.js": "/chunks/forgotten-password.js?id=06fc72f0d9a057bb8f18", "/chunks/plans.js": "/chunks/plans.js?id=383d645f1f5c330417e2",
"/chunks/installation-disclaimer.js": "/chunks/installation-disclaimer.js?id=8a5dfc3d2d07db1102db", "/chunks/profile.js": "/chunks/profile.js?id=a71f52eb082c5173b37e",
"/chunks/invoices.js": "/chunks/invoices.js?id=2352574bc22e5e3f7dac", "/chunks/purchase-code.js": "/chunks/purchase-code.js?id=7ef575dcdf8d8cce1781",
"/chunks/landing-page.js": "/chunks/landing-page.js?id=dabf50b10edb2ae2f388", "/chunks/settings.js": "/chunks/settings.js?id=e92a372ac6714092f999",
"/chunks/not-found-shared.js": "/chunks/not-found-shared.js?id=6666b81edc5ff6f60e82", "/chunks/settings-create-payment-methods.js": "/chunks/settings-create-payment-methods.js?id=8e425a5fcac0dfed8979",
"/chunks/page-edit.js": "/chunks/page-edit.js?id=f7e24a5841604313332a", "/chunks/settings-invoices.js": "/chunks/settings-invoices.js?id=124785707d6d7eefc088",
"/chunks/pages.js": "/chunks/pages.js?id=7ec1c496031ff8478b51", "/chunks/settings-password.js": "/chunks/settings-password.js?id=f7b86ce4daef5d65b9c7",
"/chunks/plan.js": "/chunks/plan.js?id=cc041fb9c2cb9ad8f0ff", "/chunks/settings-payment-methods.js": "/chunks/settings-payment-methods.js?id=f42ae386174e7b5cd923",
"/chunks/plan-create.js": "/chunks/plan-create.js?id=a66d8ae3a6edd08b755b", "/chunks/settings-storage.js": "/chunks/settings-storage.js?id=d74048cf27bfd83ecacb",
"/chunks/plan-delete.js": "/chunks/plan-delete.js?id=0732885b6e0839afe66e", "/chunks/settings-subscription.js": "/chunks/settings-subscription.js?id=754550f7d1abe0678d00",
"/chunks/plan-settings.js": "/chunks/plan-settings.js?id=445ca1affcefaf37cbfc", "/chunks/setup-wizard.js": "/chunks/setup-wizard.js?id=47090233afc7b0cdf855",
"/chunks/plan-subscribers.js": "/chunks/plan-subscribers.js?id=8372954a6c160302859d", "/chunks/shared-files.js": "/chunks/shared-files.js?id=adbeabe4eee0cdaefbf4",
"/chunks/plans.js": "/chunks/plans.js?id=0941e8c0e85e81162cc8", "/chunks/shared-page.js": "/chunks/shared-page.js?id=691e43731207990aeef3",
"/chunks/profile.js": "/chunks/profile.js?id=b91a5757f57bdaee120d", "/chunks/sign-in.js": "/chunks/sign-in.js?id=ec080714b24154cf1081",
"/chunks/profile~chunks/settings-password.js": "/chunks/profile~chunks/settings-password.js?id=a44394b1fa09f996a9fd", "/chunks/sign-up.js": "/chunks/sign-up.js?id=0d8b571bcf5a54f073fd",
"/chunks/purchase-code.js": "/chunks/purchase-code.js?id=8c92667fa59dc9fd7ac7", "/chunks/stripe-credentials.js": "/chunks/stripe-credentials.js?id=1855b3385d413077987b",
"/chunks/settings.js": "/chunks/settings.js?id=0be829a409b9cbcb9bfc", "/chunks/subscription-plans.js": "/chunks/subscription-plans.js?id=8f7dd3b0a9efd8b23cb6",
"/chunks/settings-create-payment-methods.js": "/chunks/settings-create-payment-methods.js?id=25225a758b04d6d48617", "/chunks/subscription-service.js": "/chunks/subscription-service.js?id=5d6baf6541a2045e07d4",
"/chunks/settings-invoices.js": "/chunks/settings-invoices.js?id=c7499d2d79bf9620dfa5", "/chunks/upgrade.js": "/chunks/upgrade.js?id=5b8044541a28db10a800",
"/chunks/settings-password.js": "/chunks/settings-password.js?id=015ead5623aee1a543cf", "/chunks/upgrade-billing.js": "/chunks/upgrade-billing.js?id=a7aac734e0697c974314",
"/chunks/settings-payment-methods.js": "/chunks/settings-payment-methods.js?id=1810248d2c5931651314", "/chunks/upgrade-plan.js": "/chunks/upgrade-plan.js?id=b5d285ace19d55d6caba",
"/chunks/settings-storage.js": "/chunks/settings-storage.js?id=013b6f15f907caaecd1e", "/chunks/user.js": "/chunks/user.js?id=a22678762221f8ece00f",
"/chunks/settings-subscription.js": "/chunks/settings-subscription.js?id=6172a89afe3b27cb76cd", "/chunks/user-create.js": "/chunks/user-create.js?id=d2c5a7a23e892ea0b74f",
"/chunks/setup-wizard.js": "/chunks/setup-wizard.js?id=99b4f321902fe6b0eb23", "/chunks/user-delete.js": "/chunks/user-delete.js?id=97382205d44cc82a7362",
"/chunks/shared-files.js": "/chunks/shared-files.js?id=1860b9031f41ed46d0e0", "/chunks/user-detail.js": "/chunks/user-detail.js?id=368fa9dff628423894ea",
"/chunks/shared-page.js": "/chunks/shared-page.js?id=e1ec047f428e84866150", "/chunks/user-invoices.js": "/chunks/user-invoices.js?id=25a90c334e0edcf8497a",
"/chunks/sign-in.js": "/chunks/sign-in.js?id=ddb0ae9561462e691ce3", "/chunks/user-password.js": "/chunks/user-password.js?id=66ca2fe7b5f27aea03b4",
"/chunks/sign-up.js": "/chunks/sign-up.js?id=be89f6dcf7372d23668f", "/chunks/user-storage.js": "/chunks/user-storage.js?id=1197c179b53abd596800",
"/chunks/stripe-credentials.js": "/chunks/stripe-credentials.js?id=0e09f1509a73646c3198", "/chunks/user-subscription.js": "/chunks/user-subscription.js?id=df85e3892af3ff39a586",
"/chunks/subscription-plans.js": "/chunks/subscription-plans.js?id=7a4e1ba1d08b0bb37453", "/chunks/users.js": "/chunks/users.js?id=0c6242dfef922c485c2b"
"/chunks/subscription-service.js": "/chunks/subscription-service.js?id=f672876adcf877e6e126",
"/chunks/upgrade.js": "/chunks/upgrade.js?id=1c94ed3f8c2c366f730b",
"/chunks/upgrade-billing.js": "/chunks/upgrade-billing.js?id=638ac716c4995894563c",
"/chunks/upgrade-billing~chunks/upgrade-plan.js": "/chunks/upgrade-billing~chunks/upgrade-plan.js?id=7e805915ede7c330c6d1",
"/chunks/upgrade-plan.js": "/chunks/upgrade-plan.js?id=ecc3c773b7c8ff422cf7",
"/chunks/user.js": "/chunks/user.js?id=1e0f9c8cab76e5ef871f",
"/chunks/user-create.js": "/chunks/user-create.js?id=fb808e071ab049b55490",
"/chunks/user-delete.js": "/chunks/user-delete.js?id=9c7eb4dab2be288cb884",
"/chunks/user-detail.js": "/chunks/user-detail.js?id=43545e2d110b40a47756",
"/chunks/user-invoices.js": "/chunks/user-invoices.js?id=b05dcb7e7ad2f4959e52",
"/chunks/user-password.js": "/chunks/user-password.js?id=57fe622e9a03e834d6fa",
"/chunks/user-storage.js": "/chunks/user-storage.js?id=76465e9a36a2ab78eff3",
"/chunks/user-subscription.js": "/chunks/user-subscription.js?id=e9528debb38dc1654cef",
"/chunks/users.js": "/chunks/users.js?id=78680d85246eba5b175f",
"/chunks/files~chunks/shared-files~chunks/shared-page.26f61afe093cfc6fcc31.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.26f61afe093cfc6fcc31.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.0409f2be9b8fae48bc0e.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.0409f2be9b8fae48bc0e.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.561868279bd6362106a2.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.561868279bd6362106a2.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.1be4f3619f322e69050e.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.1be4f3619f322e69050e.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.91a3c224897022b44c26.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.91a3c224897022b44c26.hot-update.js",
"/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.fb777acf4b5b41782634.hot-update.js": "/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.fb777acf4b5b41782634.hot-update.js",
"/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.3044bf028fed1d232f3d.hot-update.js": "/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.3044bf028fed1d232f3d.hot-update.js",
"/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.0fa6b04eb4652f65bf33.hot-update.js": "/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.0fa6b04eb4652f65bf33.hot-update.js",
"/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.9a85b6d86883a1475d80.hot-update.js": "/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.9a85b6d86883a1475d80.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.9a85b6d86883a1475d80.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.9a85b6d86883a1475d80.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.96218d2892c934980486.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.96218d2892c934980486.hot-update.js",
"/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.ab4aa9a7e19be158baa1.hot-update.js": "/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.ab4aa9a7e19be158baa1.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.6faedac422d55e0d5a3a.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.6faedac422d55e0d5a3a.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.25d0c9fb4cfa80b2e0e0.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.25d0c9fb4cfa80b2e0e0.hot-update.js",
"/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.9d6e6d48e5fde10bf744.hot-update.js": "/chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/settings-payment-meth~f48e9e59.9d6e6d48e5fde10bf744.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.8cf6480d4b16f5c0f0bb.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.8cf6480d4b16f5c0f0bb.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.e9bc118c3127867bf288.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.e9bc118c3127867bf288.hot-update.js",
"/js/main.1dc13e9d35f240fe8b07.hot-update.js": "/js/main.1dc13e9d35f240fe8b07.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.cbf266dd26e828f26721.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.cbf266dd26e828f26721.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.fbf55581bf870999da6d.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.fbf55581bf870999da6d.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.bff4bfd4000101d0e52d.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.bff4bfd4000101d0e52d.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.af0a74a904a148ad3a0a.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.af0a74a904a148ad3a0a.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.6ef07d0614cf18c4740d.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.6ef07d0614cf18c4740d.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.a3adb5cf5abc84dd347a.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.a3adb5cf5abc84dd347a.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.a241881e613a00d90f28.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.a241881e613a00d90f28.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.c55bd6bed8021bdc84c3.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.c55bd6bed8021bdc84c3.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.6dedb3a5397bd91ac1a8.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.6dedb3a5397bd91ac1a8.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.8ed3ae2f8e45a4c8304e.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.8ed3ae2f8e45a4c8304e.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.3db4d8afe5133dcfb01f.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.3db4d8afe5133dcfb01f.hot-update.js",
"/js/main.c887c39d7a54feb6ce81.hot-update.js": "/js/main.c887c39d7a54feb6ce81.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.e8c7e6f6ea6610b10001.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.e8c7e6f6ea6610b10001.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.9b617eb9e09fb967a4b0.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.9b617eb9e09fb967a4b0.hot-update.js",
"/chunks/files~chunks/shared-files~chunks/shared-page.fe10bd623384781e7c23.hot-update.js": "/chunks/files~chunks/shared-files~chunks/shared-page.fe10bd623384781e7c23.hot-update.js"
} }

View File

@@ -12,6 +12,8 @@
<!--Mobile Navigation--> <!--Mobile Navigation-->
<MobileNavigation/> <MobileNavigation/>
<ProcessingPopup/>
<!--Confirm Popup--> <!--Confirm Popup-->
<Confirm/> <Confirm/>
@@ -65,6 +67,7 @@
import MobileSortingAndPreview from '@/components/FilesView/MobileSortingAndPreview' import MobileSortingAndPreview from '@/components/FilesView/MobileSortingAndPreview'
import MobileMultiSelectMenu from '@/components/FilesView/MobileMultiSelectMenu' import MobileMultiSelectMenu from '@/components/FilesView/MobileMultiSelectMenu'
import ToastrWrapper from '@/components/Others/Notifications/ToastrWrapper' import ToastrWrapper from '@/components/Others/Notifications/ToastrWrapper'
import ProcessingPopup from '@/components/FilesView/ProcessingPopup'
import FileFullPreview from '@/components/FilesView/FileFullPreview' import FileFullPreview from '@/components/FilesView/FileFullPreview'
import MobileNavigation from '@/components/Others/MobileNavigation' import MobileNavigation from '@/components/Others/MobileNavigation'
import CookieDisclaimer from '@/components/Others/CookieDisclaimer' import CookieDisclaimer from '@/components/Others/CookieDisclaimer'
@@ -91,6 +94,7 @@ export default {
MobileNavigation, MobileNavigation,
CookieDisclaimer, CookieDisclaimer,
FileFullPreview, FileFullPreview,
ProcessingPopup,
ToastrWrapper, ToastrWrapper,
CreateFolder, CreateFolder,
ShareCreate, ShareCreate,

View File

@@ -81,7 +81,7 @@ export default {
.multiselect-actions { .multiselect-actions {
display: flex; display: flex;
padding: 10px 15px; padding: 10px 15px;
position: absolute; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;

View File

@@ -0,0 +1,127 @@
<template>
<transition name="popup">
<div class="popup" v-if="isZippingFiles">
<div class="popup-wrapper">
<div class="popup-content">
<div class="spinner-wrapper">
<Spinner/>
</div>
<h1 class="title">{{ $t('popup_zipping.title') }}</h1>
<p class="message">{{ $t('popup_zipping.message') }}</p>
</div>
</div>
</div>
</transition>
</template>
<script>
import Spinner from '@/components/FilesView/Spinner'
import { mapGetters } from 'vuex'
export default {
name: 'ProcessingPopup',
components: {
Spinner
},
computed: {
...mapGetters([
'isZippingFiles'
])
}
}
</script>
<style scoped lang="scss">
@import '@assets/vue-file-manager/_variables';
@import '@assets/vue-file-manager/_mixins';
.spinner-wrapper {
padding-bottom: 90px;
position: relative;
}
.popup {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
overflow: auto;
height: 100%;
}
.popup-wrapper {
z-index: 12;
position: absolute;
left: 0;
right: 0;
max-width: 480px;
top: 50%;
transform: translateY(-50%) scale(1);
margin: 0 auto;
padding: 20px;
box-shadow: $light_mode_popup_shadow;
border-radius: 8px;
text-align: center;
background: white;
}
.popup-content {
.title {
@include font-size(22);
font-weight: 700;
color: $text;
}
.message {
@include font-size(16);
color: #333;
margin-top: 5px;
}
}
@media only screen and (max-width: 690px) {
.popup-wrapper {
padding: 20px;
left: 15px;
right: 15px;
}
}
@media (prefers-color-scheme: dark) {
.popup-wrapper {
background: $dark_mode_background;
}
.popup-content {
.title {
color: $dark_mode_text_primary;
}
.message {
color: $dark_mode_text_secondary;
}
}
}
// Animations
.popup-enter-active {
animation: popup-in 0.35s 0.15s ease both;
}
.popup-leave-active {
animation: popup-in 0.15s ease reverse;
}
@keyframes popup-in {
0% {
opacity: 0;
transform: scale(0.7);
}
100% {
opacity: 1;
transform: scale(1);
}
}
</style>

View File

@@ -43,11 +43,7 @@
}) })
// Close popup // Close popup
events.$on('popup:close', () => { events.$on('popup:close', () => this.isVisibleWrapper = false)
// Close popup
this.isVisibleWrapper = false
})
} }
} }
</script> </script>

View File

@@ -1,14 +1,23 @@
<template> <template>
<transition name="vignette"> <transition name="vignette">
<div v-if="isVisibleVignette" class="vignette" @click="closePopup"></div> <div v-if="isVisible" class="vignette" @click="closePopup"></div>
</transition> </transition>
</template> </template>
<script> <script>
import {events} from '@/bus' import {events} from '@/bus'
import { mapGetters } from 'vuex'
export default { export default {
name: 'Vignette', name: 'Vignette',
computed: {
...mapGetters([
'isZippingFiles'
]),
isVisible() {
return this.isZippingFiles || this.isVisibleVignette
},
},
data() { data() {
return { return {
isVisibleVignette: false, isVisibleVignette: false,
@@ -31,9 +40,7 @@
events.$on('alert:open', () => this.isVisibleVignette = true) events.$on('alert:open', () => this.isVisibleVignette = true)
events.$on('success:open', () => this.isVisibleVignette = true) events.$on('success:open', () => this.isVisibleVignette = true)
events.$on('confirm:open', () => this.isVisibleVignette = true) events.$on('confirm:open', () => this.isVisibleVignette = true)
events.$on('mobileSortingAndPreviewVignette', (state) => { events.$on('mobileSortingAndPreviewVignette', (state) => this.isVisibleVignette = state)
this.isVisibleVignette = state
})
} }
} }

View File

@@ -517,6 +517,10 @@
"title": "Oh no", "title": "Oh no",
"message": "File of this type ({mimetype}) is not allowed to upload." "message": "File of this type ({mimetype}) is not allowed to upload."
}, },
"popup_zipping": {
"title": "Zipping Your Files...",
"message": "Please wait until your files start downloading."
},
"popup_create_folder": { "popup_create_folder": {
"folder_default_name": "New Folder", "folder_default_name": "New Folder",
"title": "Create Folder", "title": "Create Folder",

View File

@@ -560,6 +560,10 @@
"message": "Sorry, your file is too large and can't be uploaded", "message": "Sorry, your file is too large and can't be uploaded",
"title": "File is too large" "title": "File is too large"
}, },
"popup_zipping": {
"title": "Zipping Your Files...",
"message": "Please wait until your files start downloading."
},
"popup_rename": { "popup_rename": {
"title": "Rename Your {item}", "title": "Rename Your {item}",
"label": "Edit Name", "label": "Edit Name",

View File

@@ -519,6 +519,10 @@
"title": "Ospravelnujume sa", "title": "Ospravelnujume sa",
"message": "Nieje povolené nahrávať tento typ súboru ({mimetype})." "message": "Nieje povolené nahrávať tento typ súboru ({mimetype})."
}, },
"popup_zipping": {
"title": "Súbory sa zipujú...",
"message": "Čakajte prosím, kým súbory sa nezačnú sťahovať."
},
"popup_create_folder": { "popup_create_folder": {
"folder_default_name": "Nový priečinok", "folder_default_name": "Nový priečinok",
"title": "Vytvoriť priečinok", "title": "Vytvoriť priečinok",

View File

@@ -1,3 +1,4 @@
import Vue from "vue"
import axios from 'axios' import axios from 'axios'
import {events} from '@/bus' import {events} from '@/bus'
import router from '@/router' import router from '@/router'
@@ -84,7 +85,7 @@ const actions = {
commit('LOADING_STATE', {loading: false, data: response.data}) commit('LOADING_STATE', {loading: false, data: response.data})
events.$emit('scrollTop') events.$emit('scrollTop')
}) })
.catch(() => isSomethingWrong()) .catch(() => Vue.prototype.$isSomethingWrong())
}, },
getShared: ({commit, getters}) => { getShared: ({commit, getters}) => {
commit('LOADING_STATE', {loading: true, data: []}) commit('LOADING_STATE', {loading: true, data: []})
@@ -107,7 +108,7 @@ const actions = {
events.$emit('scrollTop') events.$emit('scrollTop')
}) })
.catch(() => isSomethingWrong()) .catch(() => Vue.prototype.$isSomethingWrong())
}, },
getParticipantUploads: ({commit, getters}) => { getParticipantUploads: ({commit, getters}) => {
commit('LOADING_STATE', {loading: true, data: []}) commit('LOADING_STATE', {loading: true, data: []})
@@ -126,7 +127,7 @@ const actions = {
events.$emit('scrollTop') events.$emit('scrollTop')
}) })
.catch(() => isSomethingWrong()) .catch(() => Vue.prototype.$isSomethingWrong())
}, },
getTrash: ({commit, getters}) => { getTrash: ({commit, getters}) => {
commit('LOADING_STATE', {loading: true, data: []}) commit('LOADING_STATE', {loading: true, data: []})
@@ -148,7 +149,7 @@ const actions = {
events.$emit('scrollTop') events.$emit('scrollTop')
}) })
.catch(() => isSomethingWrong()) .catch(() => Vue.prototype.$isSomethingWrong())
}, },
getSearchResult: ({commit, getters}, query) => { getSearchResult: ({commit, getters}, query) => {
commit('LOADING_STATE', {loading: true, data: []}) commit('LOADING_STATE', {loading: true, data: []})
@@ -171,7 +172,7 @@ const actions = {
.then(response => { .then(response => {
commit('LOADING_STATE', {loading: false, data: response.data}) commit('LOADING_STATE', {loading: false, data: response.data})
}) })
.catch(() => isSomethingWrong()) .catch(() => Vue.prototype.$isSomethingWrong())
}, },
getFolderTree: ({commit, getters}) => { getFolderTree: ({commit, getters}) => {
@@ -197,7 +198,7 @@ const actions = {
.catch((error) => { .catch((error) => {
reject(error) reject(error)
isSomethingWrong() Vue.prototype.$isSomethingWrong()
}) })
}) })
}, },
@@ -302,14 +303,6 @@ const getters = {
data: state => state.data, data: state => state.data,
} }
// Show error message
function isSomethingWrong() {
events.$emit('alert:open', {
title: i18n.t('popup_error.title'),
message: i18n.t('popup_error.message'),
})
}
export default { export default {
state: defaultState, state: defaultState,
getters, getters,

View File

@@ -1,337 +1,357 @@
import i18n from '@/i18n/index' import i18n from '@/i18n/index'
import router from '@/router' import router from '@/router'
import {events} from '@/bus' import { events } from '@/bus'
import { Store } from 'vuex' import { last } from 'lodash'
import {last} from 'lodash'
import axios from 'axios' import axios from 'axios'
import Vue from "vue" import Vue from 'vue'
const defaultState = {
isZippingFiles: false,
}
const actions = { const actions = {
downloadFiles: ({ getters }) => { downloadFiles: ({ commit, getters }) => {
let files = [] let files = []
// get unique_ids of selected files // get unique_ids of selected files
getters.fileInfoDetail.forEach(file => files.push(file.unique_id)) getters.fileInfoDetail.forEach(file => files.push(file.unique_id))
// Get route // Get route
let route = getters.sharedDetail && ! getters.sharedDetail.protected let route = getters.sharedDetail && !getters.sharedDetail.protected
? '/api/zip/public/' + router.currentRoute.params.token ? '/api/zip/public/' + router.currentRoute.params.token
: '/api/zip' : '/api/zip'
axios.post(route, { commit('ZIPPING_FILE_STATUS', true)
files: files
})
.then(response => {
Vue.prototype.$downloadFile(response.data.url, response.data.name)
})
.catch(() => {
Vue.prototype.$isSomethingWrong()
})
},
moveItem: ({commit, getters, dispatch}, {to_item ,noSelectedItem}) => {
let itemsToMove = [] axios.post(route, {
let items = [noSelectedItem] files: files
})
.then(response => {
Vue.prototype.$downloadFile(response.data.url, response.data.name)
})
.catch(() => {
Vue.prototype.$isSomethingWrong()
})
.finally(() => {
commit('ZIPPING_FILE_STATUS', false)
})
},
moveItem: ({ commit, getters, dispatch }, { to_item, noSelectedItem }) => {
// If coming no selected item dont get items to move from fileInfoDetail let itemsToMove = []
if (!noSelectedItem) let items = [noSelectedItem]
items = getters.fileInfoDetail
items.forEach(data => itemsToMove.push({ // If coming no selected item dont get items to move from fileInfoDetail
'force_delete': data.deleted_at ? true : false, if (!noSelectedItem)
"unique_id": data.unique_id, items = getters.fileInfoDetail
'type': data.type
}))
// Remove file preview items.forEach(data => itemsToMove.push({
if (!noSelectedItem) 'force_delete': data.deleted_at ? true : false,
commit('CLEAR_FILEINFO_DETAIL') 'unique_id': data.unique_id,
'type': data.type
}))
// Get route // Remove file preview
let route = getters.sharedDetail && ! getters.sharedDetail.protected if (!noSelectedItem)
? '/api/move/public/' + router.currentRoute.params.token commit('CLEAR_FILEINFO_DETAIL')
: '/api/move'
axios // Get route
.post(route, { let route = getters.sharedDetail && !getters.sharedDetail.protected
_method: 'post', ? '/api/move/public/' + router.currentRoute.params.token
to_unique_id: to_item.unique_id, : '/api/move'
items: itemsToMove
})
.then(() => {
itemsToMove.forEach(item => {
commit('REMOVE_ITEM', item.unique_id)
commit('INCREASE_FOLDER_ITEM', to_item.unique_id)
if (item.type === 'folder') axios
dispatch('getAppData') .post(route, {
if ( getters.currentFolder.location === 'public') _method: 'post',
dispatch('getFolderTree') to_unique_id: to_item.unique_id,
}) items: itemsToMove
}) })
.catch(() => Vue.prototype.$isSomethingWrong()) .then(() => {
}, itemsToMove.forEach(item => {
createFolder: ({commit, getters, dispatch}, folderName) => { commit('REMOVE_ITEM', item.unique_id)
commit('INCREASE_FOLDER_ITEM', to_item.unique_id)
// Get route if (item.type === 'folder')
let route = getters.sharedDetail && ! getters.sharedDetail.protected dispatch('getAppData')
? '/api/create-folder/public/' + router.currentRoute.params.token if (getters.currentFolder.location === 'public')
: '/api/create-folder' dispatch('getFolderTree')
})
})
.catch(() => Vue.prototype.$isSomethingWrong())
},
createFolder: ({ commit, getters, dispatch }, folderName) => {
axios // Get route
.post(route, { let route = getters.sharedDetail && !getters.sharedDetail.protected
parent_id: getters.currentFolder.unique_id, ? '/api/create-folder/public/' + router.currentRoute.params.token
name: folderName : '/api/create-folder'
})
.then(response => {
commit('ADD_NEW_FOLDER', response.data)
events.$emit('scrollTop') axios
.post(route, {
parent_id: getters.currentFolder.unique_id,
name: folderName
})
.then(response => {
commit('ADD_NEW_FOLDER', response.data)
if ( getters.currentFolder.location !== 'public' ) events.$emit('scrollTop')
dispatch('getAppData')
if ( getters.currentFolder.location === 'public')
dispatch('getFolderTree')
}) if (getters.currentFolder.location !== 'public')
.catch(() => Vue.prototype.$isSomethingWrong()) dispatch('getAppData')
}, if (getters.currentFolder.location === 'public')
renameItem: ({commit, getters, dispatch}, data) => { dispatch('getFolderTree')
// Updated name in favourites panel })
if (getters.permission === 'master' && data.type === 'folder') .catch(() => Vue.prototype.$isSomethingWrong())
commit('UPDATE_NAME_IN_FAVOURITES', data) },
renameItem: ({ commit, getters, dispatch }, data) => {
// Get route // Updated name in favourites panel
let route = getters.sharedDetail && ! getters.sharedDetail.protected if (getters.permission === 'master' && data.type === 'folder')
? '/api/rename-item/' + data.unique_id + '/public/' + router.currentRoute.params.token commit('UPDATE_NAME_IN_FAVOURITES', data)
: '/api/rename-item/' + data.unique_id
axios // Get route
.post(route, { let route = getters.sharedDetail && !getters.sharedDetail.protected
name: data.name, ? '/api/rename-item/' + data.unique_id + '/public/' + router.currentRoute.params.token
type: data.type, : '/api/rename-item/' + data.unique_id
_method: 'patch'
})
.then(response => {
commit('CHANGE_ITEM_NAME', response.data)
if (data.type === 'folder' && getters.currentFolder.location !== 'public') axios
dispatch('getAppData') .post(route, {
if (data.type === 'folder' && getters.currentFolder.location === 'public') name: data.name,
dispatch('getFolderTree') type: data.type,
}) _method: 'patch'
.catch(() => Vue.prototype.$isSomethingWrong()) })
}, .then(response => {
uploadFiles: ({commit, getters}, {form, fileSize, totalUploadedSize}) => { commit('CHANGE_ITEM_NAME', response.data)
return new Promise((resolve, reject) => {
// Get route if (data.type === 'folder' && getters.currentFolder.location !== 'public')
let route = getters.sharedDetail && ! getters.sharedDetail.protected dispatch('getAppData')
? '/api/upload/public/' + router.currentRoute.params.token if (data.type === 'folder' && getters.currentFolder.location === 'public')
: '/api/upload' dispatch('getFolderTree')
})
.catch(() => Vue.prototype.$isSomethingWrong())
},
uploadFiles: ({ commit, getters }, { form, fileSize, totalUploadedSize }) => {
return new Promise((resolve, reject) => {
// Create cancel token for axios cancelation // Get route
const CancelToken = axios.CancelToken; let route = getters.sharedDetail && !getters.sharedDetail.protected
const source = CancelToken.source(); ? '/api/upload/public/' + router.currentRoute.params.token
: '/api/upload'
axios // Create cancel token for axios cancelation
.post(route, form, { const CancelToken = axios.CancelToken
cancelToken: source.token, const source = CancelToken.source()
headers: {
'Content-Type': 'application/octet-stream'
},
onUploadProgress: event => {
var percentCompleted = Math.floor(((totalUploadedSize + event.loaded) / fileSize) * 100) axios
.post(route, form, {
cancelToken: source.token,
headers: {
'Content-Type': 'application/octet-stream'
},
onUploadProgress: event => {
commit('UPLOADING_FILE_PROGRESS', percentCompleted >= 100 ? 100 : percentCompleted) var percentCompleted = Math.floor(((totalUploadedSize + event.loaded) / fileSize) * 100)
if (percentCompleted >= 100) { commit('UPLOADING_FILE_PROGRESS', percentCompleted >= 100 ? 100 : percentCompleted)
commit('PROCESSING_FILE', true)
}
}
})
.then(response => {
commit('PROCESSING_FILE', false)
// Check if user is in uploading folder, if yes, than show new file if (percentCompleted >= 100) {
if (response.data.folder_id == getters.currentFolder.unique_id) commit('PROCESSING_FILE', true)
commit('ADD_NEW_ITEMS', response.data) }
}
})
.then(response => {
commit('PROCESSING_FILE', false)
resolve(response) // Check if user is in uploading folder, if yes, than show new file
}) if (response.data.folder_id == getters.currentFolder.unique_id)
.catch(error => { commit('ADD_NEW_ITEMS', response.data)
commit('PROCESSING_FILE', false)
reject(error) resolve(response)
})
.catch(error => {
commit('PROCESSING_FILE', false)
switch (error.response.status) { reject(error)
case 423:
events.$emit('alert:open', {
emoji: '😬😬😬',
title: i18n.t('popup_exceed_limit.title'),
message: i18n.t('popup_exceed_limit.message')
})
break;
case 415:
events.$emit('alert:open', {
emoji: '😬😬😬',
title: i18n.t('popup_mimetypes_blacklist.title'),
message: i18n.t('popup_mimetypes_blacklist.message')
})
break;
case 413:
events.$emit('alert:open', {
emoji: '😟😟😟',
title: i18n.t('popup_paylod_error.title'),
message: i18n.t('popup_paylod_error.message')
})
break;
default:
events.$emit('alert:open', {
title: i18n.t('popup_error.title'),
message: i18n.t('popup_error.message'),
})
break;
}
// Reset uploader switch (error.response.status) {
commit('UPDATE_FILE_COUNT_PROGRESS', undefined) case 423:
}) events.$emit('alert:open', {
emoji: '😬😬😬',
title: i18n.t('popup_exceed_limit.title'),
message: i18n.t('popup_exceed_limit.message')
})
break
case 415:
events.$emit('alert:open', {
emoji: '😬😬😬',
title: i18n.t('popup_mimetypes_blacklist.title'),
message: i18n.t('popup_mimetypes_blacklist.message')
})
break
case 413:
events.$emit('alert:open', {
emoji: '😟😟😟',
title: i18n.t('popup_paylod_error.title'),
message: i18n.t('popup_paylod_error.message')
})
break
default:
events.$emit('alert:open', {
title: i18n.t('popup_error.title'),
message: i18n.t('popup_error.message')
})
break
}
// Cancel the upload request // Reset uploader
events.$on('cancel-upload', () => { commit('UPDATE_FILE_COUNT_PROGRESS', undefined)
source.cancel(); })
// Hide upload progress bar // Cancel the upload request
commit('PROCESSING_FILE', false) events.$on('cancel-upload', () => {
commit('UPDATE_FILE_COUNT_PROGRESS', undefined) source.cancel()
})
})
},
restoreItem: ({commit, getters}, item) => {
let restoreToHome = false // Hide upload progress bar
commit('PROCESSING_FILE', false)
commit('UPDATE_FILE_COUNT_PROGRESS', undefined)
})
})
},
restoreItem: ({ commit, getters }, item) => {
// Check if file can be restored to home directory let restoreToHome = false
if (getters.currentFolder.location === 'trash')
restoreToHome = true
// Remove file // Check if file can be restored to home directory
commit('REMOVE_ITEM', item.unique_id) if (getters.currentFolder.location === 'trash')
restoreToHome = true
// Remove file preview // Remove file
commit('CLEAR_FILEINFO_DETAIL') commit('REMOVE_ITEM', item.unique_id)
axios // Remove file preview
.post(getters.api + '/restore-item/' + item.unique_id, { commit('CLEAR_FILEINFO_DETAIL')
type: item.type,
to_home: restoreToHome,
_method: 'patch'
})
.catch(() => Vue.prototype.$isSomethingWrong())
},
deleteItem: ({commit, getters, dispatch}, noSelectedItem) => {
let itemsToDelete = [] axios
let items = [noSelectedItem] .post(getters.api + '/restore-item/' + item.unique_id, {
type: item.type,
to_home: restoreToHome,
_method: 'patch'
})
.catch(() => Vue.prototype.$isSomethingWrong())
},
deleteItem: ({ commit, getters, dispatch }, noSelectedItem) => {
// If coming no selected item dont get items to move from fileInfoDetail let itemsToDelete = []
if(!noSelectedItem) let items = [noSelectedItem]
items = getters.fileInfoDetail
items.forEach(data => { // If coming no selected item dont get items to move from fileInfoDetail
itemsToDelete.push({ if (!noSelectedItem)
'force_delete': data.deleted_at ? true : false, items = getters.fileInfoDetail
'type': data.type,
"unique_id": data.unique_id
})
// Remove file items.forEach(data => {
commit('REMOVE_ITEM', data.unique_id) itemsToDelete.push({
'force_delete': data.deleted_at ? true : false,
'type': data.type,
'unique_id': data.unique_id
})
// Remove item from sidebar // Remove file
if (getters.permission === 'master') { commit('REMOVE_ITEM', data.unique_id)
if (data.type === 'folder') // Remove item from sidebar
commit('REMOVE_ITEM_FROM_FAVOURITES', data) if (getters.permission === 'master') {
}
// Remove file if (data.type === 'folder')
commit('REMOVE_ITEM', data.unique_id) commit('REMOVE_ITEM_FROM_FAVOURITES', data)
}
// Remove item from sidebar // Remove file
if (getters.permission === 'master') { commit('REMOVE_ITEM', data.unique_id)
if (data.type === 'folder') // Remove item from sidebar
commit('REMOVE_ITEM_FROM_FAVOURITES', data) if (getters.permission === 'master') {
}
})
// Remove file preview if (data.type === 'folder')
if(!noSelectedItem){ commit('REMOVE_ITEM_FROM_FAVOURITES', data)
commit('CLEAR_FILEINFO_DETAIL') }
} })
// Get route // Remove file preview
let route = getters.sharedDetail && ! getters.sharedDetail.protected if (!noSelectedItem) {
? '/api/remove-item/public/' + router.currentRoute.params.token commit('CLEAR_FILEINFO_DETAIL')
: '/api/remove-item' }
axios // Get route
.post(route, { let route = getters.sharedDetail && !getters.sharedDetail.protected
_method: 'post', ? '/api/remove-item/public/' + router.currentRoute.params.token
data: itemsToDelete : '/api/remove-item'
})
.then(() => {
itemsToDelete.forEach(data => { axios
.post(route, {
_method: 'post',
data: itemsToDelete
})
.then(() => {
// If is folder, update app data itemsToDelete.forEach(data => {
if (data.type === 'folder') {
if (data.unique_id === getters.currentFolder.unique_id) { // If is folder, update app data
if (data.type === 'folder') {
if ( getters.currentFolder.location === 'public' ) { if (data.unique_id === getters.currentFolder.unique_id) {
dispatch('browseShared', [{folder: last(getters.browseHistory), back: true, init: false}])
} else {
dispatch('getFolder', [{folder: last(getters.browseHistory), back: true, init: false}])
}
}
}
})
if ( getters.currentFolder.location !== 'public' ) if (getters.currentFolder.location === 'public') {
dispatch('getAppData') dispatch('browseShared', [{ folder: last(getters.browseHistory), back: true, init: false }])
} else {
dispatch('getFolder', [{ folder: last(getters.browseHistory), back: true, init: false }])
}
}
}
})
if ( getters.currentFolder.location === 'public') if (getters.currentFolder.location !== 'public')
dispatch('getFolderTree') dispatch('getAppData')
}) if (getters.currentFolder.location === 'public')
.catch(() => Vue.prototype.$isSomethingWrong()) dispatch('getFolderTree')
},
emptyTrash: ({commit, getters}) => {
// Clear file browser })
commit('LOADING_STATE', {loading: true, data: []}) .catch(() => Vue.prototype.$isSomethingWrong())
},
emptyTrash: ({ commit, getters }) => {
axios // Clear file browser
.post(getters.api + '/empty-trash', { commit('LOADING_STATE', { loading: true, data: [] })
_method: 'delete'
})
.then(() => {
commit('LOADING_STATE', {loading: false, data: []})
events.$emit('scrollTop')
// Remove file preview axios
commit('CLEAR_FILEINFO_DETAIL') .post(getters.api + '/empty-trash', {
}) _method: 'delete'
.catch(() => Vue.prototype.$isSomethingWrong()) })
}, .then(() => {
commit('LOADING_STATE', { loading: false, data: [] })
events.$emit('scrollTop')
// Remove file preview
commit('CLEAR_FILEINFO_DETAIL')
})
.catch(() => Vue.prototype.$isSomethingWrong())
}
}
const mutations = {
ZIPPING_FILE_STATUS(state, status) {
state.isZippingFiles = status
}
}
const getters = {
isZippingFiles: state => state.isZippingFiles
} }
export default { export default {
actions, state: defaultState,
mutations,
actions,
getters
} }

View File

@@ -18,7 +18,7 @@ $dark_background: #EBEBEB;
$shadow: 0 7px 25px 1px rgba(0, 0, 0, 0.12); $shadow: 0 7px 25px 1px rgba(0, 0, 0, 0.12);
$light_mode_input_background: hsla(210, 10%, 98%, 1); $light_mode_input_background: hsla(210, 10%, 98%, 1);
$light_mode_popup_shadow: 0 15px 50px 10px rgba(26,38,74,0.12); $light_mode_popup_shadow: 0 2px 40px rgba(26,38,74,0.12);
$light_mode_vignette: rgba(9, 8, 12, 0.35); $light_mode_vignette: rgba(9, 8, 12, 0.35);
// Dark Mode // Dark Mode