mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
CreatePersonaTokenPopup implementation
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,76 +1,133 @@
|
||||
{
|
||||
"/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~6c99cc74.js": "/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~6c99cc74.js?id=94c9a052e6e82569e862",
|
||||
"/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=ebb51a58a95a14da110b",
|
||||
"/chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser.js": "/chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser.js?id=f3dc8d59297f76bf9573",
|
||||
"/chunks/admin~chunks/platform~chunks/shared.js": "/chunks/admin~chunks/platform~chunks/shared.js?id=41b42ac4d0a735daa6cc",
|
||||
"/chunks/files~chunks/shared/file-browser~chunks/shared/single-file.js": "/chunks/files~chunks/shared/file-browser~chunks/shared/single-file.js?id=6dc32b9b0f6d281d6a26",
|
||||
"/chunks/files~chunks/shared/file-browser.js": "/chunks/files~chunks/shared/file-browser.js?id=dd14a1d618e603d300fb",
|
||||
"/chunks/not-found.js": "/chunks/not-found.js?id=87a13ef68b45d7543699",
|
||||
"/chunks/profile~chunks/settings-password.js": "/chunks/profile~chunks/settings-password.js?id=eb1b0461791657cc54ce",
|
||||
"/vendors~chunks/platform~chunks/shared.js": "/vendors~chunks/platform~chunks/shared.js?id=bc26c252f2ba5f4d6360",
|
||||
"/js/main.js": "/js/main.js?id=dc03118374fc6ca92617",
|
||||
"/css/app.css": "/css/app.css?id=a8f94d0c5a6f4a1185b1",
|
||||
"/chunks/admin.js": "/chunks/admin.js?id=9c64b111c6911aae7e15",
|
||||
"/chunks/admin-account.js": "/chunks/admin-account.js?id=86b763ce14425cc51947",
|
||||
"/chunks/app-appearance.js": "/chunks/app-appearance.js?id=22ed25d12fde931a6384",
|
||||
"/chunks/app-billings.js": "/chunks/app-billings.js?id=6f98598d588c394bbaf6",
|
||||
"/chunks/app-email.js": "/chunks/app-email.js?id=74dfa50e070b752372de",
|
||||
"/chunks/app-index.js": "/chunks/app-index.js?id=03834d79455e3e9f6c72",
|
||||
"/chunks/app-language.js": "/chunks/app-language.js?id=e5ab59656bb2c1aaefa5",
|
||||
"/chunks/app-others.js": "/chunks/app-others.js?id=4fdbd34bad92dccaf31a",
|
||||
"/chunks/app-payments.js": "/chunks/app-payments.js?id=efece9c92dea88c05578",
|
||||
"/chunks/app-settings.js": "/chunks/app-settings.js?id=46aed146ad695e6530b7",
|
||||
"/chunks/app-setup.js": "/chunks/app-setup.js?id=ab0d2bd0a378d29f10b4",
|
||||
"/chunks/billings-detail.js": "/chunks/billings-detail.js?id=2cfda34a5cbcfa80b125",
|
||||
"/chunks/contact-us.js": "/chunks/contact-us.js?id=9ccd4c02178f4b6e7278",
|
||||
"/chunks/create-new-password.js": "/chunks/create-new-password.js?id=7ad3557be542c00d77fd",
|
||||
"/chunks/dashboard.js": "/chunks/dashboard.js?id=ae19be8c8bc403c815f3",
|
||||
"/chunks/database.js": "/chunks/database.js?id=ffc140d6a6ea7963cd40",
|
||||
"/chunks/dynamic-page.js": "/chunks/dynamic-page.js?id=8b23935ea7aa9730902a",
|
||||
"/chunks/email-verified.js": "/chunks/email-verified.js?id=bd5e569c62dc884f4a87",
|
||||
"/chunks/environment-setup.js": "/chunks/environment-setup.js?id=b78dc7d4a781b8ce1e6b",
|
||||
"/chunks/files.js": "/chunks/files.js?id=9a658936883b34ee484a",
|
||||
"/chunks/forgotten-password.js": "/chunks/forgotten-password.js?id=5af9e720ce6b3a566d17",
|
||||
"/chunks/homepage.js": "/chunks/homepage.js?id=b4f57d89ed27bc70b335",
|
||||
"/chunks/installation-disclaimer.js": "/chunks/installation-disclaimer.js?id=fca5d397ce7e81d2388f",
|
||||
"/chunks/invoices.js": "/chunks/invoices.js?id=9c9facbd02511ca391de",
|
||||
"/chunks/page-edit.js": "/chunks/page-edit.js?id=1bfdb163e64dd0103e6c",
|
||||
"/chunks/pages.js": "/chunks/pages.js?id=929b8c99895129e7765b",
|
||||
"/chunks/plan.js": "/chunks/plan.js?id=c04980a769c53eac9702",
|
||||
"/chunks/plan-create.js": "/chunks/plan-create.js?id=a4b5a191f52028490d20",
|
||||
"/chunks/plan-delete.js": "/chunks/plan-delete.js?id=82741fb5261f08150514",
|
||||
"/chunks/plan-settings.js": "/chunks/plan-settings.js?id=eb631dd60eda973ddad4",
|
||||
"/chunks/plan-subscribers.js": "/chunks/plan-subscribers.js?id=24aa1d29e50b816ad886",
|
||||
"/chunks/plans.js": "/chunks/plans.js?id=974287b8ed7b22ca9d9d",
|
||||
"/chunks/platform.js": "/chunks/platform.js?id=7db1002700c23a934dd8",
|
||||
"/chunks/profile.js": "/chunks/profile.js?id=1abb937525ea9941f58d",
|
||||
"/chunks/purchase-code.js": "/chunks/purchase-code.js?id=3c4c7dfede2f235b459a",
|
||||
"/chunks/settings.js": "/chunks/settings.js?id=63cffab455dfff4e69fa",
|
||||
"/chunks/settings-create-payment-methods.js": "/chunks/settings-create-payment-methods.js?id=2299c2992957c6e40719",
|
||||
"/chunks/settings-invoices.js": "/chunks/settings-invoices.js?id=45a74cda818069e5b06b",
|
||||
"/chunks/settings-password.js": "/chunks/settings-password.js?id=5a87802daef5f25106cb",
|
||||
"/chunks/settings-payment-methods.js": "/chunks/settings-payment-methods.js?id=c9cb709ac5bec8a657c6",
|
||||
"/chunks/settings-storage.js": "/chunks/settings-storage.js?id=2c8487ac06bb589aa5b7",
|
||||
"/chunks/settings-subscription.js": "/chunks/settings-subscription.js?id=f8796db5378f62399f23",
|
||||
"/chunks/setup-wizard.js": "/chunks/setup-wizard.js?id=d60972a2216523642850",
|
||||
"/chunks/shared.js": "/chunks/shared.js?id=0c7a3d4f575dbf4f21b0",
|
||||
"/chunks/shared/authenticate.js": "/chunks/shared/authenticate.js?id=86820a408438c3513b20",
|
||||
"/chunks/shared/file-browser.js": "/chunks/shared/file-browser.js?id=72b0747c31534d3235e3",
|
||||
"/chunks/shared/single-file.js": "/chunks/shared/single-file.js?id=03fb36b0d38a3218221f",
|
||||
"/chunks/sign-in.js": "/chunks/sign-in.js?id=c0cee9fd1b07d47a5645",
|
||||
"/chunks/sign-up.js": "/chunks/sign-up.js?id=fba111e00801bb09ab4f",
|
||||
"/chunks/stripe-credentials.js": "/chunks/stripe-credentials.js?id=08b7d59384397b00aedf",
|
||||
"/chunks/subscription-plans.js": "/chunks/subscription-plans.js?id=1ecd54723469b1976017",
|
||||
"/chunks/subscription-service.js": "/chunks/subscription-service.js?id=3e480de6985a816bca2f",
|
||||
"/chunks/upgrade-billing.js": "/chunks/upgrade-billing.js?id=c86dc4d2baa0347eb760",
|
||||
"/chunks/upgrade-plan.js": "/chunks/upgrade-plan.js?id=dae14e5e76e0b93e6a73",
|
||||
"/chunks/user.js": "/chunks/user.js?id=91c3e68c04873712f235",
|
||||
"/chunks/user-create.js": "/chunks/user-create.js?id=cbe7a7de7f1f0b7900f2",
|
||||
"/chunks/user-delete.js": "/chunks/user-delete.js?id=dc708437ba1e5ebc0a0d",
|
||||
"/chunks/user-detail.js": "/chunks/user-detail.js?id=12c84179aaa9cebcb255",
|
||||
"/chunks/user-invoices.js": "/chunks/user-invoices.js?id=777a07bc5ec4f185477e",
|
||||
"/chunks/user-password.js": "/chunks/user-password.js?id=3214eb9dadcbeb1e685f",
|
||||
"/chunks/user-storage.js": "/chunks/user-storage.js?id=92037267138bb75304ec",
|
||||
"/chunks/user-subscription.js": "/chunks/user-subscription.js?id=9a9e247c61190a3ef745",
|
||||
"/chunks/users.js": "/chunks/users.js?id=9d3aef23a49ec78dfef0"
|
||||
"/js/main.js": "/js/main.js",
|
||||
"/css/app.css": "/css/app.css",
|
||||
"/chunks/admin.js": "/chunks/admin.js?id=baf8a45b3c1d04f09229",
|
||||
"/chunks/admin-account.js": "/chunks/admin-account.js?id=61bd29aac87199e45174",
|
||||
"/chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chu~c7a13fb0.js": "/chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chu~c7a13fb0.js?id=d21b5946c88a87e9099d",
|
||||
"/chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/create-new-password~chunks/datab~a7b1c983.js": "/chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/create-new-password~chunks/datab~a7b1c983.js?id=b80fc9fc5b08a9c60e2e",
|
||||
"/chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/~eeab5771.js": "/chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/~eeab5771.js?id=b26eff2899df7f85229d",
|
||||
"/chunks/admin~chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser.js": "/chunks/admin~chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser.js?id=146db62ff2aa25c39386",
|
||||
"/chunks/admin~chunks/files~chunks/settings~chunks/shared/file-browser.js": "/chunks/admin~chunks/files~chunks/settings~chunks/shared/file-browser.js?id=e23621e57bab3e9e349a",
|
||||
"/chunks/admin~chunks/platform.js": "/chunks/admin~chunks/platform.js?id=4da2e03f6f01c274a7cc",
|
||||
"/chunks/admin~chunks/platform~chunks/settings~chunks/shared.js": "/chunks/admin~chunks/platform~chunks/settings~chunks/shared.js?id=875730e50ad4c6f2af74",
|
||||
"/chunks/admin~chunks/platform~chunks/shared.js": "/chunks/admin~chunks/platform~chunks/shared.js?id=d5f38340fc411f440efd",
|
||||
"/chunks/app-appearance.js": "/chunks/app-appearance.js?id=b709bf1d7c3cd24f9529",
|
||||
"/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=075ff381293e1a20d167",
|
||||
"/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=5f27527c258dada4aeb9",
|
||||
"/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=b6c9565875974d8c350c",
|
||||
"/chunks/app-billings.js": "/chunks/app-billings.js?id=b23ac97d9e65beff5fc6",
|
||||
"/chunks/app-email.js": "/chunks/app-email.js?id=35afede5ea121718e2cc",
|
||||
"/chunks/app-index.js": "/chunks/app-index.js?id=0d8a74f6041001c36ab3",
|
||||
"/chunks/app-language.js": "/chunks/app-language.js?id=8f77e8eebf32943fdf4b",
|
||||
"/chunks/app-language~chunks/app-settings~chunks/dashboard~chunks/invoices~chunks/page-edit~chunks/pag~824d674f.js": "/chunks/app-language~chunks/app-settings~chunks/dashboard~chunks/invoices~chunks/page-edit~chunks/pag~824d674f.js?id=2551061f37c2a8056921",
|
||||
"/chunks/app-language~chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/s~0d12a0aa.js": "/chunks/app-language~chunks/dashboard~chunks/files~chunks/invoices~chunks/pages~chunks/plans~chunks/s~0d12a0aa.js?id=47e97b1952f5eef3bb34",
|
||||
"/chunks/app-others.js": "/chunks/app-others.js?id=a16de82f2298df235166",
|
||||
"/chunks/app-payments.js": "/chunks/app-payments.js?id=245920077be074208693",
|
||||
"/chunks/app-settings.js": "/chunks/app-settings.js?id=d57e806c59d1aef2eb3a",
|
||||
"/chunks/app-setup.js": "/chunks/app-setup.js?id=526bb7b757956f6c70c3",
|
||||
"/chunks/billings-detail.js": "/chunks/billings-detail.js?id=3805f23ba0a474ce7b4e",
|
||||
"/chunks/contact-us.js": "/chunks/contact-us.js?id=67b977184f0744593de9",
|
||||
"/chunks/contact-us~chunks/dynamic-page~chunks/homepage.js": "/chunks/contact-us~chunks/dynamic-page~chunks/homepage.js?id=2a8def187ec322eb760e",
|
||||
"/chunks/create-new-password.js": "/chunks/create-new-password.js?id=72d02c781aa8e6295069",
|
||||
"/chunks/dashboard.js": "/chunks/dashboard.js?id=a7aef88def02bf2fec08",
|
||||
"/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=1027aa9c1e090b196d29",
|
||||
"/chunks/database.js": "/chunks/database.js?id=27ab279a8b380da7a0e8",
|
||||
"/chunks/dynamic-page.js": "/chunks/dynamic-page.js?id=1141f8e183483da82e8a",
|
||||
"/chunks/email-verified.js": "/chunks/email-verified.js?id=60a7eabffc13b2fe48e0",
|
||||
"/chunks/environment-setup.js": "/chunks/environment-setup.js?id=041528704987f876c2d0",
|
||||
"/chunks/files.js": "/chunks/files.js?id=54c6dddb471986e202f3",
|
||||
"/chunks/files~chunks/platform~chunks/shared/file-browser.js": "/chunks/files~chunks/platform~chunks/shared/file-browser.js?id=f97243d3db23c6255bc5",
|
||||
"/chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser.js": "/chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser.js?id=3b96cba1e5482e4c33d4",
|
||||
"/chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser~chunks/shared/single-file.js": "/chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser~chunks/shared/single-file.js?id=48f4f2c0aa3064162ad9",
|
||||
"/chunks/files~chunks/settings-subscription~chunks/shared/file-browser~chunks/user-subscription.js": "/chunks/files~chunks/settings-subscription~chunks/shared/file-browser~chunks/user-subscription.js?id=1b96ff16168a192ea787",
|
||||
"/chunks/files~chunks/shared/file-browser.js": "/chunks/files~chunks/shared/file-browser.js?id=87253c5f59242e420579",
|
||||
"/chunks/files~chunks/shared/file-browser~chunks/shared/single-file.js": "/chunks/files~chunks/shared/file-browser~chunks/shared/single-file.js?id=a6be7116bbdadfb8b1cc",
|
||||
"/chunks/forgotten-password.js": "/chunks/forgotten-password.js?id=96019e230f0c5b59478a",
|
||||
"/chunks/homepage.js": "/chunks/homepage.js?id=5a299216398f59a4947b",
|
||||
"/chunks/installation-disclaimer.js": "/chunks/installation-disclaimer.js?id=12cbea54eb6f5b94606c",
|
||||
"/chunks/invoices.js": "/chunks/invoices.js?id=35179ba2b74cdaf74492",
|
||||
"/chunks/not-found.js": "/chunks/not-found.js?id=3f0c127b00d113541acc",
|
||||
"/chunks/page-edit.js": "/chunks/page-edit.js?id=761c916a5efdee5ffddd",
|
||||
"/chunks/pages.js": "/chunks/pages.js?id=7b3c7ee8c586e73fe65a",
|
||||
"/chunks/plan.js": "/chunks/plan.js?id=c4cc3da1bedaa9139087",
|
||||
"/chunks/plan-create.js": "/chunks/plan-create.js?id=2a672b390de82eb8cef6",
|
||||
"/chunks/plan-delete.js": "/chunks/plan-delete.js?id=f00946b7df419813f099",
|
||||
"/chunks/plan-settings.js": "/chunks/plan-settings.js?id=dbc08f8cdc23900ef40a",
|
||||
"/chunks/plan-subscribers.js": "/chunks/plan-subscribers.js?id=8c4b655b9286e06894c5",
|
||||
"/chunks/plans.js": "/chunks/plans.js?id=2b26173a02ed9f86e875",
|
||||
"/chunks/platform.js": "/chunks/platform.js?id=377133abe0c9b3471bda",
|
||||
"/chunks/platform~chunks/shared.js": "/chunks/platform~chunks/shared.js?id=be3d7cf51585313cf53b",
|
||||
"/chunks/profile.js": "/chunks/profile.js?id=41b536880e846017d2d0",
|
||||
"/chunks/profile~chunks/settings-password.js": "/chunks/profile~chunks/settings-password.js?id=93ffe6eca4dcafbe8234",
|
||||
"/chunks/purchase-code.js": "/chunks/purchase-code.js?id=b35e751cdc1946a4fb60",
|
||||
"/chunks/settings.js": "/chunks/settings.js?id=5ac359cf5b836e66708d",
|
||||
"/chunks/settings-create-payment-methods.js": "/chunks/settings-create-payment-methods.js?id=7404a1125aee6014b72a",
|
||||
"/chunks/settings-invoices.js": "/chunks/settings-invoices.js?id=094eb70eb2fa6b7c8dd2",
|
||||
"/chunks/settings-password.js": "/chunks/settings-password.js?id=5a905222648d4b4cdc97",
|
||||
"/chunks/settings-payment-methods.js": "/chunks/settings-payment-methods.js?id=47ad97b554fcc1564685",
|
||||
"/chunks/settings-storage.js": "/chunks/settings-storage.js?id=b06d4a1d504b2a6cbeed",
|
||||
"/chunks/settings-subscription.js": "/chunks/settings-subscription.js?id=1bffa4ae7d545af08355",
|
||||
"/chunks/settings~chunks/settings-password.js": "/chunks/settings~chunks/settings-password.js?id=f5aaffe3aa073cb2ee19",
|
||||
"/chunks/setup-wizard.js": "/chunks/setup-wizard.js?id=41d3478184ec24644a1c",
|
||||
"/chunks/shared.js": "/chunks/shared.js?id=7524b7a783d4aed23794",
|
||||
"/chunks/shared/authenticate.js": "/chunks/shared/authenticate.js?id=bfdf9bb904d354bdcbd1",
|
||||
"/chunks/shared/file-browser.js": "/chunks/shared/file-browser.js?id=0f6c34512740fca7e007",
|
||||
"/chunks/shared/single-file.js": "/chunks/shared/single-file.js?id=7886247bb35deada28a2",
|
||||
"/chunks/sign-in.js": "/chunks/sign-in.js?id=799cae3044c4c56debf8",
|
||||
"/chunks/sign-up.js": "/chunks/sign-up.js?id=b30b10ca09b115efc6ca",
|
||||
"/chunks/stripe-credentials.js": "/chunks/stripe-credentials.js?id=b2bc73016f0811f6838d",
|
||||
"/chunks/subscription-plans.js": "/chunks/subscription-plans.js?id=e12081daec0f6ea047ab",
|
||||
"/chunks/subscription-service.js": "/chunks/subscription-service.js?id=a09dc140a3914fb64a1a",
|
||||
"/chunks/upgrade-billing.js": "/chunks/upgrade-billing.js?id=3fe276a31a66ba244d10",
|
||||
"/chunks/upgrade-billing~chunks/upgrade-plan.js": "/chunks/upgrade-billing~chunks/upgrade-plan.js?id=43888143d0a6afe67d7a",
|
||||
"/chunks/upgrade-plan.js": "/chunks/upgrade-plan.js?id=5979a154f760a992e617",
|
||||
"/chunks/user.js": "/chunks/user.js?id=41076be9126702330159",
|
||||
"/chunks/user-create.js": "/chunks/user-create.js?id=c65b1718b207ae7b678e",
|
||||
"/chunks/user-delete.js": "/chunks/user-delete.js?id=ecebc7e50b64744420c3",
|
||||
"/chunks/user-detail.js": "/chunks/user-detail.js?id=7ae038f6b4a4683c5bdb",
|
||||
"/chunks/user-invoices.js": "/chunks/user-invoices.js?id=1395c30e08946026fbc4",
|
||||
"/chunks/user-password.js": "/chunks/user-password.js?id=f5fa3532fb7f4f5f2707",
|
||||
"/chunks/user-storage.js": "/chunks/user-storage.js?id=e19c7dee4ef5eb38a075",
|
||||
"/chunks/user-subscription.js": "/chunks/user-subscription.js?id=c6ec1b7215530cfdbceb",
|
||||
"/chunks/users.js": "/chunks/users.js?id=71de2e012c4c566a8ec3",
|
||||
"/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~6c99cc74.js": "/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~6c99cc74.js?id=0a6998f62a162c08a48f",
|
||||
"/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~cfac0ed6.js": "/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~cfac0ed6.js?id=f66c7653a087fe1f3320",
|
||||
"/vendors~chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser~chunks/shared/single-file.js": "/vendors~chunks/files~chunks/platform~chunks/shared~chunks/shared/file-browser~chunks/shared/single-file.js?id=9d10953d3b088324dfe3",
|
||||
"/vendors~chunks/platform~chunks/shared.js": "/vendors~chunks/platform~chunks/shared.js?id=7d09e0b0658e140a7ffa",
|
||||
"/chunks/settings.17ab36c66821f7b6866c.hot-update.js": "/chunks/settings.17ab36c66821f7b6866c.hot-update.js",
|
||||
"/chunks/settings-password.17ab36c66821f7b6866c.hot-update.js": "/chunks/settings-password.17ab36c66821f7b6866c.hot-update.js",
|
||||
"/chunks/settings.53e438519217d537096f.hot-update.js": "/chunks/settings.53e438519217d537096f.hot-update.js",
|
||||
"/chunks/settings.6f5297b3203e182729f6.hot-update.js": "/chunks/settings.6f5297b3203e182729f6.hot-update.js",
|
||||
"/chunks/settings.f5ce69eb059a0f7d89cd.hot-update.js": "/chunks/settings.f5ce69eb059a0f7d89cd.hot-update.js",
|
||||
"/chunks/settings.19e7a6e5f8dc4db80b10.hot-update.js": "/chunks/settings.19e7a6e5f8dc4db80b10.hot-update.js",
|
||||
"/js/main.dbe9b9568031b99c5d98.hot-update.js": "/js/main.dbe9b9568031b99c5d98.hot-update.js",
|
||||
"/chunks/files~chunks/platform~chunks/settings~chunks/shared/file-browser.js": "/chunks/files~chunks/platform~chunks/settings~chunks/shared/file-browser.js?id=3b7644fd6adcc9225ced",
|
||||
"/chunks/settings.dbe9b9568031b99c5d98.hot-update.js": "/chunks/settings.dbe9b9568031b99c5d98.hot-update.js",
|
||||
"/js/main.c6082624d9f9e6d06e86.hot-update.js": "/js/main.c6082624d9f9e6d06e86.hot-update.js",
|
||||
"/chunks/files~chunks/shared/file-browser.c6082624d9f9e6d06e86.hot-update.js": "/chunks/files~chunks/shared/file-browser.c6082624d9f9e6d06e86.hot-update.js",
|
||||
"/chunks/platform.c6082624d9f9e6d06e86.hot-update.js": "/chunks/platform.c6082624d9f9e6d06e86.hot-update.js",
|
||||
"/chunks/settings.c6082624d9f9e6d06e86.hot-update.js": "/chunks/settings.c6082624d9f9e6d06e86.hot-update.js",
|
||||
"/js/main.58cc86ea6ab750cde2bf.hot-update.js": "/js/main.58cc86ea6ab750cde2bf.hot-update.js",
|
||||
"/chunks/files~chunks/shared/file-browser.58cc86ea6ab750cde2bf.hot-update.js": "/chunks/files~chunks/shared/file-browser.58cc86ea6ab750cde2bf.hot-update.js",
|
||||
"/chunks/platform.58cc86ea6ab750cde2bf.hot-update.js": "/chunks/platform.58cc86ea6ab750cde2bf.hot-update.js",
|
||||
"/chunks/settings.58cc86ea6ab750cde2bf.hot-update.js": "/chunks/settings.58cc86ea6ab750cde2bf.hot-update.js",
|
||||
"/js/main.022805217285043b46e8.hot-update.js": "/js/main.022805217285043b46e8.hot-update.js",
|
||||
"/chunks/settings.022805217285043b46e8.hot-update.js": "/chunks/settings.022805217285043b46e8.hot-update.js",
|
||||
"/chunks/settings.debd97760771aeabba49.hot-update.js": "/chunks/settings.debd97760771aeabba49.hot-update.js",
|
||||
"/chunks/settings.f6b1869429e318c00591.hot-update.js": "/chunks/settings.f6b1869429e318c00591.hot-update.js",
|
||||
"/chunks/settings.d10cfc4f45fda477d7df.hot-update.js": "/chunks/settings.d10cfc4f45fda477d7df.hot-update.js",
|
||||
"/chunks/settings-password.685d1a0c206e8764d2af.hot-update.js": "/chunks/settings-password.685d1a0c206e8764d2af.hot-update.js",
|
||||
"/chunks/settings.65e3452a376df1c6e884.hot-update.js": "/chunks/settings.65e3452a376df1c6e884.hot-update.js",
|
||||
"/chunks/settings.36fc0ac40984d06fe6df.hot-update.js": "/chunks/settings.36fc0ac40984d06fe6df.hot-update.js",
|
||||
"/chunks/settings.e6a83b31c5b460718694.hot-update.js": "/chunks/settings.e6a83b31c5b460718694.hot-update.js",
|
||||
"/chunks/settings.4a002fab9a0600dea828.hot-update.js": "/chunks/settings.4a002fab9a0600dea828.hot-update.js",
|
||||
"/chunks/settings.b5bec99fd23ec2965a2a.hot-update.js": "/chunks/settings.b5bec99fd23ec2965a2a.hot-update.js",
|
||||
"/chunks/settings.4a199f4535b38c2c4654.hot-update.js": "/chunks/settings.4a199f4535b38c2c4654.hot-update.js",
|
||||
"/chunks/settings.0ef802fd5678297a854e.hot-update.js": "/chunks/settings.0ef802fd5678297a854e.hot-update.js",
|
||||
"/chunks/settings.5f5b672fb39e0d145a43.hot-update.js": "/chunks/settings.5f5b672fb39e0d145a43.hot-update.js",
|
||||
"/chunks/settings.7e6d3073a140f1b85706.hot-update.js": "/chunks/settings.7e6d3073a140f1b85706.hot-update.js",
|
||||
"/chunks/settings.2e6e7181135688eb9895.hot-update.js": "/chunks/settings.2e6e7181135688eb9895.hot-update.js",
|
||||
"/chunks/settings.caf2daafbba194301628.hot-update.js": "/chunks/settings.caf2daafbba194301628.hot-update.js",
|
||||
"/chunks/settings.d8e4f0a17901aa0dcb5c.hot-update.js": "/chunks/settings.d8e4f0a17901aa0dcb5c.hot-update.js",
|
||||
"/chunks/settings.448ed3b222a05345f252.hot-update.js": "/chunks/settings.448ed3b222a05345f252.hot-update.js"
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<div class="share-link">
|
||||
<lock-icon v-if="isLocked" @click="openShareOptions" class="lock-icon" size="17" />
|
||||
<unlock-icon v-if="! isLocked" @click="openShareOptions" class="lock-icon" size="17" />
|
||||
<CopyInput :item="singleFile" class="copy-share-link" size="small" />
|
||||
<CopyShareLink :item="singleFile" class="copy-share-link" size="small" />
|
||||
</div>
|
||||
</ListInfoItem>
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
import ImageMetaData from '@/components/FilesView/ImageMetaData'
|
||||
import EmptyMessage from '@/components/FilesView/EmptyMessage'
|
||||
import TitlePreview from '@/components/FilesView/TitlePreview'
|
||||
import CopyInput from '@/components/Others/Forms/CopyInput'
|
||||
import CopyShareLink from '@/components/Others/Forms/CopyShareLink'
|
||||
import ListInfoItem from '@/components/Others/ListInfoItem'
|
||||
import ListInfo from '@/components/Others/ListInfo'
|
||||
import {mapGetters} from 'vuex'
|
||||
@@ -110,7 +110,7 @@
|
||||
TitlePreview,
|
||||
ListInfoItem,
|
||||
UnlockIcon,
|
||||
CopyInput,
|
||||
CopyShareLink,
|
||||
Edit2Icon,
|
||||
LockIcon,
|
||||
ListInfo,
|
||||
|
||||
125
resources/js/components/Others/CreatePersonaTokenPopup.vue
Normal file
125
resources/js/components/Others/CreatePersonaTokenPopup.vue
Normal file
@@ -0,0 +1,125 @@
|
||||
<template>
|
||||
<PopupWrapper name="create-personal-token">
|
||||
|
||||
<PopupHeader :title="$t('Create Personal Token')" icon="key" />
|
||||
|
||||
<PopupContent>
|
||||
<ValidationObserver v-if="! token" @submit.prevent="createTokenForm" ref="createToken" v-slot="{ invalid }" tag="form" class="form-wrapper">
|
||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper password" name="Token Name" rules="required" v-slot="{ errors }">
|
||||
<label class="input-label"> {{ $t('Token Name') }}:</label>
|
||||
<input v-model="name" :class="{'is-error': errors[0]}" type="text" ref="input" class="focus-border-theme" :placeholder="$t('Type token name...')">
|
||||
<span class="error-message" v-if="errors[0]">{{ errors[0] }}</span>
|
||||
</ValidationProvider>
|
||||
</ValidationObserver>
|
||||
|
||||
<div v-if="token" class="form-wrapper">
|
||||
<div v-if="token">
|
||||
<div class="input-wrapper">
|
||||
<label class="input-label">{{ $t('Your Personal Access Token') }}:</label>
|
||||
<CopyInput size="small" :str="token['plainTextToken']" />
|
||||
</div>
|
||||
</div>
|
||||
<InfoBox style="margin-bottom: 0; margin-top: 20px">
|
||||
<p v-html="$t('Make sure to <b class=\'text-theme\'>copy your personal access token now</b>. You won’t be able to see it again!')"></p>
|
||||
</InfoBox>
|
||||
</div>
|
||||
</PopupContent>
|
||||
|
||||
<PopupActions v-if="! token">
|
||||
<ButtonBase
|
||||
class="popup-button"
|
||||
@click.native="$closePopup()"
|
||||
button-style="secondary"
|
||||
>
|
||||
{{ $t('global.cancel') }}
|
||||
</ButtonBase>
|
||||
<ButtonBase
|
||||
class="popup-button"
|
||||
@click.native="createTokenForm"
|
||||
button-style="theme"
|
||||
:loading="isLoading"
|
||||
:disabled="isLoading"
|
||||
>
|
||||
{{ $t('Create Token') }}
|
||||
</ButtonBase>
|
||||
</PopupActions>
|
||||
|
||||
<PopupActions v-if="token">
|
||||
<ButtonBase
|
||||
class="popup-button"
|
||||
@click.native="closePopup"
|
||||
button-style="theme"
|
||||
>
|
||||
{{ $t('shared_form.button_done') }}
|
||||
</ButtonBase>
|
||||
</PopupActions>
|
||||
</PopupWrapper>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {ValidationProvider, ValidationObserver} from 'vee-validate/dist/vee-validate.full'
|
||||
import PopupWrapper from '@/components/Others/Popup/PopupWrapper'
|
||||
import PopupActions from '@/components/Others/Popup/PopupActions'
|
||||
import PopupContent from '@/components/Others/Popup/PopupContent'
|
||||
import PopupHeader from '@/components/Others/Popup/PopupHeader'
|
||||
import CopyInput from '@/components/Others/Forms/CopyInput'
|
||||
import ButtonBase from '@/components/FilesView/ButtonBase'
|
||||
import InfoBox from '@/components/Others/Forms/InfoBox'
|
||||
import {required} from 'vee-validate/dist/rules'
|
||||
import axios from 'axios'
|
||||
|
||||
export default {
|
||||
name: "CreatePersonaTokenPopup",
|
||||
components: {
|
||||
ValidationProvider,
|
||||
ValidationObserver,
|
||||
PopupWrapper,
|
||||
PopupActions,
|
||||
PopupContent,
|
||||
PopupHeader,
|
||||
ButtonBase,
|
||||
CopyInput,
|
||||
required,
|
||||
InfoBox,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isLoading: false,
|
||||
name: undefined,
|
||||
token: undefined
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async createTokenForm() {
|
||||
|
||||
const isValid = await this.$refs.createToken.validate()
|
||||
|
||||
if (!isValid) return
|
||||
|
||||
this.isLoading = true
|
||||
|
||||
axios
|
||||
.post('/api/user/token/create', {
|
||||
name: this.name
|
||||
})
|
||||
.then(response => {
|
||||
this.token = response.data
|
||||
})
|
||||
.catch(() => this.$isSomethingWrong())
|
||||
.finally(() => {
|
||||
this.isLoading = false
|
||||
this.name = undefined
|
||||
})
|
||||
},
|
||||
closePopup() {
|
||||
this.$closePopup()
|
||||
this.token = undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "@assets/vuefilemanager/_inapp-forms.scss";
|
||||
@import '@assets/vuefilemanager/_forms';
|
||||
</style>
|
||||
@@ -1,28 +1,27 @@
|
||||
<template>
|
||||
<div class="inline-wrapper icon-append copy-input" :class="size" @click="copyUrl">
|
||||
<input ref="sel" :value="item.shared.link" id="link-input" type="text" class="input-text" readonly>
|
||||
<input ref="sel" :value="str" id="link-input" type="text" class="input-text" readonly>
|
||||
<div class="multi-icon">
|
||||
<div class="icon-item group hover-bg-theme-100">
|
||||
<link-icon v-if="! isCopiedLink" size="14" class="group-hover-text-theme hover-text-theme"/>
|
||||
<copy-icon v-if="! isCopiedLink" size="14" class="group-hover-text-theme hover-text-theme"/>
|
||||
<check-icon v-if="isCopiedLink" size="14" class="group-hover-text-theme hover-text-theme"/>
|
||||
</div>
|
||||
<div class="icon-item group hover-bg-theme-100" @click.stop.prevent="menuForEmail">
|
||||
<send-icon size="14" class="group-hover-text-theme hover-text-theme" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { LinkIcon, CheckIcon, SendIcon } from 'vue-feather-icons'
|
||||
import { events } from '@/bus'
|
||||
import { CopyIcon, CheckIcon, SendIcon } from 'vue-feather-icons'
|
||||
|
||||
export default {
|
||||
name: 'CopyInput',
|
||||
props: ['size', 'item'],
|
||||
props: [
|
||||
'size',
|
||||
'str'
|
||||
],
|
||||
components: {
|
||||
CheckIcon,
|
||||
LinkIcon,
|
||||
CopyIcon,
|
||||
SendIcon
|
||||
},
|
||||
data() {
|
||||
@@ -31,13 +30,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
menuForEmail() {
|
||||
events.$emit('popup:open', {
|
||||
name: 'share-edit',
|
||||
item: this.item,
|
||||
sentToEmail: true,
|
||||
})
|
||||
},
|
||||
copyUrl() {
|
||||
|
||||
// Get input value
|
||||
@@ -76,6 +68,7 @@ export default {
|
||||
border-top-right-radius: 8px;
|
||||
|
||||
line,
|
||||
rect,
|
||||
path,
|
||||
polygon {
|
||||
color: $text;
|
||||
@@ -93,6 +86,7 @@ export default {
|
||||
line,
|
||||
polyline,
|
||||
path,
|
||||
rect,
|
||||
polygon {
|
||||
color: inherit;
|
||||
}
|
||||
@@ -158,6 +152,7 @@ export default {
|
||||
|
||||
line,
|
||||
path,
|
||||
rect,
|
||||
polygon {
|
||||
color: inherit !important;
|
||||
}
|
||||
@@ -165,8 +160,6 @@ export default {
|
||||
.icon-item {
|
||||
border-color: #333333;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.copy-input {
|
||||
|
||||
178
resources/js/components/Others/Forms/CopyShareLink.vue
Normal file
178
resources/js/components/Others/Forms/CopyShareLink.vue
Normal file
@@ -0,0 +1,178 @@
|
||||
<template>
|
||||
<div class="inline-wrapper icon-append copy-input" :class="size" @click="copyUrl">
|
||||
<input ref="sel" :value="item.shared.link" id="link-input" type="text" class="input-text" readonly>
|
||||
<div class="multi-icon">
|
||||
<div class="icon-item group hover-bg-theme-100">
|
||||
<link-icon v-if="! isCopiedLink" size="14" class="group-hover-text-theme hover-text-theme"/>
|
||||
<check-icon v-if="isCopiedLink" size="14" class="group-hover-text-theme hover-text-theme"/>
|
||||
</div>
|
||||
<div class="icon-item group hover-bg-theme-100" @click.stop.prevent="menuForEmail">
|
||||
<send-icon size="14" class="group-hover-text-theme hover-text-theme" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { LinkIcon, CheckIcon, SendIcon } from 'vue-feather-icons'
|
||||
import { events } from '@/bus'
|
||||
|
||||
export default {
|
||||
name: 'CopyShareLink',
|
||||
props: ['size', 'item'],
|
||||
components: {
|
||||
CheckIcon,
|
||||
LinkIcon,
|
||||
SendIcon
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isCopiedLink: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
menuForEmail() {
|
||||
events.$emit('popup:open', {
|
||||
name: 'share-edit',
|
||||
item: this.item,
|
||||
sentToEmail: true,
|
||||
})
|
||||
},
|
||||
copyUrl() {
|
||||
|
||||
// Get input value
|
||||
var copyText = document.getElementById('link-input')
|
||||
|
||||
// select link
|
||||
copyText.select()
|
||||
copyText.setSelectionRange(0, 99999)
|
||||
|
||||
// Copy
|
||||
document.execCommand('copy')
|
||||
|
||||
// Mark button as copied
|
||||
this.isCopiedLink = true
|
||||
|
||||
// Reset copy button
|
||||
setTimeout(() => {
|
||||
this.isCopiedLink = false
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '@assets/vuefilemanager/_variables';
|
||||
@import '@assets/vuefilemanager/_mixins';
|
||||
@import "@assets/vuefilemanager/_inapp-forms.scss";
|
||||
@import "@assets/vuefilemanager/_forms.scss";
|
||||
|
||||
.multi-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: $light_background;
|
||||
border-bottom-right-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
|
||||
line,
|
||||
path,
|
||||
polygon {
|
||||
color: $text;
|
||||
}
|
||||
|
||||
.icon-item {
|
||||
padding: 9px 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-left: 1px solid $light_mode_border_darken;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
|
||||
line,
|
||||
polyline,
|
||||
path,
|
||||
polygon {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom-right-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Single page
|
||||
.copy-input {
|
||||
border: 1px solid $light_mode_border_darken;
|
||||
border-radius: 8px;
|
||||
|
||||
&.small {
|
||||
|
||||
&.icon-append {
|
||||
|
||||
.icon {
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
padding: 6px 10px;
|
||||
@include font-size(13);
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input {
|
||||
text-overflow: ellipsis;
|
||||
box-shadow: none;
|
||||
|
||||
&:disabled {
|
||||
color: $text;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
||||
.copy-input {
|
||||
border-color: #333333;
|
||||
}
|
||||
|
||||
.multi-icon {
|
||||
background: $dark_mode_foreground;
|
||||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
|
||||
|
||||
line,
|
||||
path,
|
||||
polygon {
|
||||
color: inherit !important;
|
||||
}
|
||||
|
||||
.icon-item {
|
||||
border-color: #333333;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.copy-input {
|
||||
input {
|
||||
color: $dark_mode_text_primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -71,7 +71,7 @@
|
||||
<div v-if="isGeneratedShared" class="form-wrapper">
|
||||
<div class="input-wrapper">
|
||||
<label class="input-label">{{ this.sharedViaEmail ? $t('shared_form.label_share_vie_email') : $t('shared_form.label_shared_url') }}:</label>
|
||||
<CopyInput size="small" :item="pickedItem" />
|
||||
<CopyShareLink size="small" :item="pickedItem" />
|
||||
</div>
|
||||
</div>
|
||||
</PopupContent>
|
||||
@@ -100,7 +100,7 @@ import SwitchInput from '@/components/Others/Forms/SwitchInput'
|
||||
import SelectInput from '@/components/Others/Forms/SelectInput'
|
||||
import ThumbnailItem from '@/components/Others/ThumbnailItem'
|
||||
import ActionButton from '@/components/Others/ActionButton'
|
||||
import CopyInput from '@/components/Others/Forms/CopyInput'
|
||||
import CopyShareLink from '@/components/Others/Forms/CopyShareLink'
|
||||
import TabWrapper from '@/components/Others/TabWrapper'
|
||||
import TabOption from '@/components/Others/TabOption'
|
||||
import ButtonBase from '@/components/FilesView/ButtonBase'
|
||||
@@ -129,7 +129,7 @@ export default {
|
||||
SelectInput,
|
||||
SwitchInput,
|
||||
ButtonBase,
|
||||
CopyInput,
|
||||
CopyShareLink,
|
||||
MailIcon,
|
||||
required,
|
||||
LinkIcon,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<div v-if="! sendToRecipientsMenu || (sendToRecipientsMenu && isEmailSended)" class="input-wrapper copy-input">
|
||||
<label class="input-label">{{ $t('shared_form.label_share_vie_email') }}:</label>
|
||||
<CopyInput size="small" :item="pickedItem" />
|
||||
<CopyShareLink size="small" :item="pickedItem" />
|
||||
</div>
|
||||
|
||||
<ValidationObserver @submit.prevent v-if="sendToRecipientsMenu && !isEmailSended" v-slot="{ invalid }" ref="shareEmail" tag="form" class="form-wrapper">
|
||||
@@ -106,7 +106,7 @@
|
||||
import MultiEmailInput from '@/components/Others/Forms/MultiEmailInput'
|
||||
import ThumbnailItem from '@/components/Others/ThumbnailItem'
|
||||
import ActionButton from '@/components/Others/ActionButton'
|
||||
import CopyInput from '@/components/Others/Forms/CopyInput'
|
||||
import CopyShareLink from '@/components/Others/Forms/CopyShareLink'
|
||||
import ButtonBase from '@/components/FilesView/ButtonBase'
|
||||
import InfoBox from '@/components/Others/Forms/InfoBox'
|
||||
import {required} from 'vee-validate/dist/rules'
|
||||
@@ -130,7 +130,7 @@
|
||||
MultiEmailInput,
|
||||
SwitchInput,
|
||||
ButtonBase,
|
||||
CopyInput,
|
||||
CopyShareLink,
|
||||
required,
|
||||
InfoBox,
|
||||
},
|
||||
|
||||
@@ -125,11 +125,15 @@
|
||||
<!--2FA popups-->
|
||||
<TwoFactorRecoveryCodesPopup />
|
||||
<TwoFactorSetupPopup />
|
||||
|
||||
<!--Access Token Popup-->
|
||||
<CreatePersonaTokenPopup />
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import TwoFactorRecoveryCodesPopup from '@/components/Others/TwoFactorRecoveryCodesPopup'
|
||||
import CreatePersonaTokenPopup from '@/components/Others/CreatePersonaTokenPopup'
|
||||
import TwoFactorSetupPopup from '@/components/Others/TwoFactorSetupPopup'
|
||||
import ContentSidebar from '@/components/Sidebar/ContentSidebar'
|
||||
import ContentGroup from '@/components/Sidebar/ContentGroup'
|
||||
@@ -155,6 +159,7 @@
|
||||
name: 'Settings',
|
||||
components: {
|
||||
TwoFactorRecoveryCodesPopup,
|
||||
CreatePersonaTokenPopup,
|
||||
TwoFactorSetupPopup,
|
||||
ContentSidebar,
|
||||
CreditCardIcon,
|
||||
|
||||
@@ -1,27 +1,37 @@
|
||||
<template>
|
||||
<PageTab>
|
||||
<PageTabGroup class="form block-form">
|
||||
<FormLabel>{{ $t('Personal Access Token') }}</FormLabel>
|
||||
<InfoBox v-if="tokens.length === 0">
|
||||
<p>{{ $t("You don't have any created personal access tokens yet.") }}</p>
|
||||
</InfoBox>
|
||||
|
||||
<ButtonBase @click.native="openCreateTokenPopup" type="submit" button-style="theme" class="confirm-form">
|
||||
{{ $t('Create Token') }}
|
||||
</ButtonBase>
|
||||
</PageTabGroup>
|
||||
<PageTabGroup>
|
||||
<ValidationObserver ref="password" @submit.prevent="resetPassword" v-slot="{ invalid }" tag="form" class="form block-form">
|
||||
<FormLabel>{{ $t('user_password.title') }}</FormLabel>
|
||||
<div class="block-wrapper">
|
||||
<label>{{ $t('page_create_password.label_new_pass') }}:</label>
|
||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper" name="New Password"
|
||||
rules="required" v-slot="{ errors }">
|
||||
rules="required" v-slot="{ errors }">
|
||||
<input v-model="newPassword" :placeholder="$t('page_create_password.label_new_pass')"
|
||||
type="password"
|
||||
class="focus-border-theme"
|
||||
:class="{'is-error': errors[0]}"/>
|
||||
type="password"
|
||||
class="focus-border-theme"
|
||||
:class="{'is-error': errors[0]}" />
|
||||
<span class="error-message" v-if="errors[0]">{{ errors[0] }}</span>
|
||||
</ValidationProvider>
|
||||
</div>
|
||||
<div class="block-wrapper">
|
||||
<label>{{ $t('page_create_password.label_confirm_pass') }}:</label>
|
||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper" name="Confirm Your Password"
|
||||
rules="required" v-slot="{ errors }">
|
||||
rules="required" v-slot="{ errors }">
|
||||
<input v-model="newPasswordConfirmation"
|
||||
:placeholder="$t('page_create_password.label_confirm_pass')" type="password"
|
||||
class="focus-border-theme"
|
||||
:class="{'is-error': errors[0]}"/>
|
||||
:placeholder="$t('page_create_password.label_confirm_pass')" type="password"
|
||||
class="focus-border-theme"
|
||||
:class="{'is-error': errors[0]}" />
|
||||
<span class="error-message" v-if="errors[0]">{{ errors[0] }}</span>
|
||||
</ValidationProvider>
|
||||
</div>
|
||||
@@ -50,7 +60,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="user && user.data.attributes.two_factor_authentication" class="block-wrapper">
|
||||
<div class="input-wrapper">
|
||||
<div class="inline-wrapper button-block">
|
||||
@@ -78,118 +87,133 @@
|
||||
|
||||
<script>
|
||||
import {ValidationProvider, ValidationObserver} from 'vee-validate/dist/vee-validate.full'
|
||||
import PageTabGroup from '@/components/Others/Layout/PageTabGroup'
|
||||
import UserImageInput from '@/components/Others/UserImageInput'
|
||||
import SwitchInput from '@/components/Others/Forms/SwitchInput'
|
||||
import FormLabel from '@/components/Others/Forms/FormLabel'
|
||||
import MobileHeader from '@/components/Mobile/MobileHeader'
|
||||
import ButtonBase from '@/components/FilesView/ButtonBase'
|
||||
import PageTab from '@/components/Others/Layout/PageTab'
|
||||
import InfoBox from '@/components/Others/Forms/InfoBox'
|
||||
import PageHeader from '@/components/Others/PageHeader'
|
||||
import ThemeLabel from '@/components/Others/ThemeLabel'
|
||||
import {required} from 'vee-validate/dist/rules'
|
||||
import {mapGetters} from 'vuex'
|
||||
import {events} from '@/bus'
|
||||
import axios from 'axios'
|
||||
|
||||
import PageTabGroup from '@/components/Others/Layout/PageTabGroup'
|
||||
import UserImageInput from '@/components/Others/UserImageInput'
|
||||
import SwitchInput from '@/components/Others/Forms/SwitchInput'
|
||||
import FormLabel from '@/components/Others/Forms/FormLabel'
|
||||
import MobileHeader from '@/components/Mobile/MobileHeader'
|
||||
import ButtonBase from '@/components/FilesView/ButtonBase'
|
||||
import PageTab from '@/components/Others/Layout/PageTab'
|
||||
import PageHeader from '@/components/Others/PageHeader'
|
||||
import ThemeLabel from '@/components/Others/ThemeLabel'
|
||||
import {required} from 'vee-validate/dist/rules'
|
||||
import {mapGetters} from 'vuex'
|
||||
import {events} from '@/bus'
|
||||
import axios from 'axios'
|
||||
export default {
|
||||
name: 'Password',
|
||||
components: {
|
||||
PageTabGroup,
|
||||
FormLabel,
|
||||
PageTab,
|
||||
InfoBox,
|
||||
ValidationProvider,
|
||||
ValidationObserver,
|
||||
UserImageInput,
|
||||
SwitchInput,
|
||||
MobileHeader,
|
||||
PageHeader,
|
||||
ButtonBase,
|
||||
ThemeLabel,
|
||||
required,
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['user'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
newPasswordConfirmation: '',
|
||||
newPassword: '',
|
||||
isLoading: false,
|
||||
tokens: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async resetPassword() {
|
||||
|
||||
export default {
|
||||
name: 'Password',
|
||||
components: {
|
||||
PageTabGroup,
|
||||
FormLabel,
|
||||
PageTab,
|
||||
ValidationProvider,
|
||||
ValidationObserver,
|
||||
UserImageInput,
|
||||
SwitchInput,
|
||||
MobileHeader,
|
||||
PageHeader,
|
||||
ButtonBase,
|
||||
ThemeLabel,
|
||||
required,
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['user'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
newPasswordConfirmation: '',
|
||||
newPassword: '',
|
||||
isLoading: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async resetPassword() {
|
||||
// Validate fields
|
||||
const isValid = await this.$refs.password.validate();
|
||||
|
||||
// Validate fields
|
||||
const isValid = await this.$refs.password.validate();
|
||||
if (!isValid) return;
|
||||
|
||||
if (!isValid) return;
|
||||
// Send request to get user reset link
|
||||
axios
|
||||
.post(this.$store.getters.api + '/user/password', {
|
||||
password: this.newPassword,
|
||||
password_confirmation: this.newPasswordConfirmation,
|
||||
})
|
||||
.then(() => {
|
||||
|
||||
// Send request to get user reset link
|
||||
axios
|
||||
.post(this.$store.getters.api + '/user/password', {
|
||||
password: this.newPassword,
|
||||
password_confirmation: this.newPasswordConfirmation,
|
||||
})
|
||||
.then(() => {
|
||||
// Reset inputs
|
||||
this.newPassword = ''
|
||||
this.newPasswordConfirmation = ''
|
||||
|
||||
// Reset inputs
|
||||
this.newPassword = ''
|
||||
this.newPasswordConfirmation = ''
|
||||
// Reset errors
|
||||
this.$refs.password.reset()
|
||||
|
||||
// Reset errors
|
||||
this.$refs.password.reset()
|
||||
// Show error message
|
||||
events.$emit('success:open', {
|
||||
title: this.$t('popup_pass_changed.title'),
|
||||
message: this.$t('popup_pass_changed.message'),
|
||||
})
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
// Show error message
|
||||
events.$emit('success:open', {
|
||||
title: this.$t('popup_pass_changed.title'),
|
||||
message: this.$t('popup_pass_changed.message'),
|
||||
})
|
||||
})
|
||||
.catch(error => {
|
||||
if (error.response.status == 422) {
|
||||
|
||||
if (error.response.status == 422) {
|
||||
if (error.response.data.errors['password']) {
|
||||
|
||||
if (error.response.data.errors['password']) {
|
||||
|
||||
this.$refs.password.setErrors({
|
||||
'New Password': error.response.data.errors['password']
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
open2faPopup() {
|
||||
events.$emit('popup:open', {name: 'two-factor-authentication-confirm'})
|
||||
},
|
||||
showRecoveryCodes() {
|
||||
events.$emit('popup:open', {name: 'two-factor-recovery-codes'})
|
||||
}
|
||||
}
|
||||
}
|
||||
this.$refs.password.setErrors({
|
||||
'New Password': error.response.data.errors['password']
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getPersonalAccessTokens() {
|
||||
axios.get('/api/user/tokens')
|
||||
.then(response => {
|
||||
this.tokens = response.data
|
||||
})
|
||||
.catch(() => this.$isSomethingWrong())
|
||||
},
|
||||
open2faPopup() {
|
||||
events.$emit('popup:open', {name: 'two-factor-authentication-confirm'})
|
||||
},
|
||||
showRecoveryCodes() {
|
||||
events.$emit('popup:open', {name: 'two-factor-recovery-codes'})
|
||||
},
|
||||
openCreateTokenPopup() {
|
||||
events.$emit('popup:open', {name: 'create-personal-token'})
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getPersonalAccessTokens()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '@assets/vuefilemanager/_variables';
|
||||
@import '@assets/vuefilemanager/_mixins';
|
||||
@import '@assets/vuefilemanager/_forms';
|
||||
@import '@assets/vuefilemanager/_mixins';
|
||||
@import '@assets/vuefilemanager/_forms';
|
||||
|
||||
.block-form {
|
||||
max-width: 100%;
|
||||
}
|
||||
.block-form {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
@media only screen and (max-width: 960px) {
|
||||
|
||||
.form {
|
||||
.button-base {
|
||||
width: 100%;
|
||||
margin-top: 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
.form {
|
||||
.button-base {
|
||||
width: 100%;
|
||||
margin-top: 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 690px) {
|
||||
|
||||
@@ -202,8 +226,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\Accounts;
|
||||
|
||||
use App\Models\File;
|
||||
use App\Models\Folder;
|
||||
use App\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
use Tests\TestCase;
|
||||
|
||||
class PersonalAccessTokenTest extends TestCase
|
||||
@@ -17,11 +17,14 @@ class PersonalAccessTokenTest extends TestCase
|
||||
$user = User::factory(User::class)
|
||||
->create();
|
||||
|
||||
Sanctum::actingAs($user);
|
||||
$response = $this
|
||||
->actingAs($user)
|
||||
->postJson('/api/user/token/create', [
|
||||
'name' => 'token',
|
||||
])
|
||||
->assertStatus(201);
|
||||
|
||||
$this->postJson('/api/user/token/create', [
|
||||
'name' => 'token',
|
||||
])->assertStatus(201);
|
||||
dd(json_decode($response->content(), true));
|
||||
|
||||
$this->assertDatabaseHas('personal_access_tokens', [
|
||||
'tokenable_id' => $user->id,
|
||||
@@ -37,13 +40,13 @@ class PersonalAccessTokenTest extends TestCase
|
||||
$user = User::factory(User::class)
|
||||
->create();
|
||||
|
||||
Sanctum::actingAs($user);
|
||||
|
||||
$user->createToken('token');
|
||||
|
||||
$token_id = $user->tokens()->first()->id;
|
||||
|
||||
$this->deleteJson("/api/user/token/revoke/$token_id")
|
||||
$this
|
||||
->actingAs($user)
|
||||
->deleteJson("/api/user/token/revoke/$token_id")
|
||||
->assertStatus(204);
|
||||
|
||||
$this->assertDatabaseMissing('personal_access_tokens', [
|
||||
|
||||
Reference in New Issue
Block a user