@@ -24,8 +18,6 @@
diff --git a/resources/js/components/Menus/MobileTeamContextMenu.vue b/resources/js/components/Menus/MobileTeamContextMenu.vue
deleted file mode 100644
index 47632003..00000000
--- a/resources/js/components/Menus/MobileTeamContextMenu.vue
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
diff --git a/resources/js/components/Mobile/MobileNavigation.vue b/resources/js/components/Mobile/MobileNavigation.vue
index 1b98a3c5..5ac9c9a7 100644
--- a/resources/js/components/Mobile/MobileNavigation.vue
+++ b/resources/js/components/Mobile/MobileNavigation.vue
@@ -3,21 +3,6 @@
@@ -76,13 +61,6 @@
icon="hard-drive"
:is-hover-disabled="true"
/>
-
@@ -105,16 +83,6 @@
icon="settings"
:is-hover-disabled="true"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/resources/js/components/Notifications/Components/Notification.vue b/resources/js/components/Notifications/Components/Notification.vue
deleted file mode 100644
index 9bae315a..00000000
--- a/resources/js/components/Notifications/Components/Notification.vue
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{ notification.data.attributes.description }}
-
-
-
-
-
- {{ notification.data.attributes.created_at }}
-
-
-
-
-
-
-
-
-
- {{ $t('accept') }}
-
-
-
-
-
-
-
- {{ $t('decline') }}
-
-
-
-
-
-
-
- {{ action.params.button }}
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/resources/js/components/Notifications/Components/NotificationBell.vue b/resources/js/components/Notifications/Components/NotificationBell.vue
deleted file mode 100644
index 54fea8ae..00000000
--- a/resources/js/components/Notifications/Components/NotificationBell.vue
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
- {{ notificationCount }}
-
-
-
-
-
diff --git a/resources/js/components/Notifications/NotificationCenter.vue b/resources/js/components/Notifications/NotificationCenter.vue
deleted file mode 100644
index 5f2a3c0f..00000000
--- a/resources/js/components/Notifications/NotificationCenter.vue
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/resources/js/components/Notifications/NotificationsPopup.vue b/resources/js/components/Notifications/NotificationsPopup.vue
deleted file mode 100644
index 94bc8b0e..00000000
--- a/resources/js/components/Notifications/NotificationsPopup.vue
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-
-
-
-
-
-
- {{ $t('clear_all') }}
-
-
-
- {{ $t("not_any_notifications") }}
-
-
-
- {{ $t('unread') }}
-
-
-
-
-
- {{ $t('read') }}
-
-
-
-
-
-
-
-
- {{ $t('close') }}
-
-
-
-
-
-
diff --git a/resources/js/components/RemoteUpload/RemoteUploadPopup.vue b/resources/js/components/RemoteUpload/RemoteUploadPopup.vue
deleted file mode 100644
index 02d9fa26..00000000
--- a/resources/js/components/RemoteUpload/RemoteUploadPopup.vue
+++ /dev/null
@@ -1,164 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('cancel') }}
-
-
- {{ $t('upload') }}
-
-
-
-
-
-
diff --git a/resources/js/components/RemoteUpload/RemoteUploadProgress.vue b/resources/js/components/RemoteUpload/RemoteUploadProgress.vue
deleted file mode 100644
index 29c14439..00000000
--- a/resources/js/components/RemoteUpload/RemoteUploadProgress.vue
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
-
-
-
- {{ this.$t('remote_upload_progress', {processed: remoteUploadQueue.processed, total: remoteUploadQueue.total}) }}{{ remoteUploadQueue.failed > 0 ? ", " + this.$t('remote_upload_failed_count', {count: remoteUploadQueue.failed}) : '' }}
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/resources/js/components/Sidebar/SidebarNavigation.vue b/resources/js/components/Sidebar/SidebarNavigation.vue
index a34f3413..85e5a6af 100644
--- a/resources/js/components/Sidebar/SidebarNavigation.vue
+++ b/resources/js/components/Sidebar/SidebarNavigation.vue
@@ -7,26 +7,6 @@
-
-
-
- {{ user.data.meta.usages.costEstimate }}
-
-
- {{ $t('usage') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -139,41 +124,16 @@
size="18"
class="vue-feather text-theme"
/>
-
-
-
-
-
-
-
{{ result.title }}
@@ -397,20 +347,6 @@ export default {
value: 'AppOthers',
},
},
- {
- title: this.$t('go_to_payments'),
- action: {
- type: 'route',
- value: 'AppPayments',
- },
- },
- {
- title: this.$t('go_to_pages'),
- action: {
- type: 'route',
- value: 'Pages',
- },
- },
{
title: this.$t('go_to_languages'),
action: {
@@ -425,20 +361,6 @@ export default {
value: 'Users',
},
},
- {
- title: this.$t('show_all_plans'),
- action: {
- type: 'route',
- value: 'Plans',
- },
- },
- {
- title: this.$t('show_transactions'),
- action: {
- type: 'route',
- value: 'Invoices',
- },
- },
{
title: this.$t('application_settings'),
action: {
@@ -446,13 +368,6 @@ export default {
value: 'AppOthers',
},
},
- {
- title: this.$t('login_registration_settings'),
- action: {
- type: 'route',
- value: 'AppSignInUp',
- },
- },
{
title: this.$t('appearance_settings'),
action: {
@@ -460,20 +375,6 @@ export default {
value: 'AppAppearance',
},
},
- {
- title: this.$t('adsense_settings'),
- action: {
- type: 'route',
- value: 'AppAdsense',
- },
- },
- {
- title: this.$t('homepage_settings'),
- action: {
- type: 'route',
- value: 'AppIndex',
- },
- },
{
title: this.$t('environment_settings'),
action: {
@@ -519,20 +420,6 @@ export default {
value: 'Trash',
},
},
- {
- title: this.$t('go_to_team_folders'),
- action: {
- type: 'route',
- value: 'TeamFolders',
- },
- },
- {
- title: this.$t('go_to_shared_with_me'),
- action: {
- type: 'route',
- value: 'SharedWithMe',
- },
- },
]
let adminActions = [
@@ -567,13 +454,6 @@ export default {
value: 'Storage',
},
},
- {
- title: this.$t('show_billing'),
- action: {
- type: 'route',
- value: 'Billing',
- },
- },
{
title: this.$t('empty_your_trash'),
action: {
@@ -590,29 +470,7 @@ export default {
},
]
- let createList = [
- {
- title: this.$t('create_team_folder'),
- action: {
- type: 'function',
- value: 'create-team-folder',
- },
- },
- {
- title: this.$t('create_file_request'),
- action: {
- type: 'function',
- value: 'create-file-request',
- },
- },
- {
- title: this.$t('remote_upload'),
- action: {
- type: 'function',
- value: 'remote-upload',
- },
- },
- ]
+ let createList = []
let functionList = [
{
@@ -656,31 +514,6 @@ export default {
// Return commands for logged admin
if (this.isAdmin) {
- // Available only for fixed subscription
- if (this.config.subscriptionType === 'fixed') {
- adminLocations.push({
- title: this.$t('show_all_subscriptions'),
- action: {
- type: 'route',
- value: 'Subscriptions',
- },
- })
- }
-
- // Available only when is metered billing and plan doesnt exist or when is fixed billing
- if (
- (this.config.subscriptionType === 'metered' && !this.config.isCreatedMeteredPlan) ||
- this.config.subscriptionType === 'fixed'
- ) {
- adminActions.push({
- title: this.$t('create_plan'),
- action: {
- type: 'route',
- value: this.config.subscriptionType === 'fixed' ? 'CreateFixedPlan' : 'CreateMeteredPlan',
- },
- })
- }
-
return [].concat.apply(
[],
[functionList, createList, userSettings, fileLocations, adminLocations, adminActions]
@@ -819,18 +652,6 @@ export default {
if (arg.action.value === 'empty-trash') {
this.$emptyTrashQuietly()
}
-
- if (arg.action.value === 'create-team-folder') {
- this.$createTeamFolder()
- }
-
- if (arg.action.value === 'create-file-request') {
- this.$createFileRequest()
- }
-
- if (arg.action.value === 'remote-upload') {
- this.$openRemoteUploadPopup()
- }
}
this.exitSpotlight()
@@ -854,15 +675,6 @@ export default {
id: file.data.id,
},
})
- } else if (file.data.attributes.isTeamFolder) {
- let route = file.data.relationships.user.data.id === this.user.data.id
- ? 'TeamFolders'
- : 'SharedWithMe'
-
- this.$router.push({
- name: route,
- params: { id: file.data.id },
- })
} else {
this.$router.push({
name: 'Files',
diff --git a/resources/js/components/Subscription/FixedTransactionRow.vue b/resources/js/components/Subscription/FixedTransactionRow.vue
deleted file mode 100644
index f1e47d03..00000000
--- a/resources/js/components/Subscription/FixedTransactionRow.vue
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
- {{ row.data.attributes.note }}
-
-
-
-
-
-
-
- {{ row.data.relationships.user.data.attributes.name }}
-
-
- {{ row.data.relationships.user.data.attributes.email }}
-
-
-
-
- {{ $t('user_was_deleted') }}
-
-
-
-
- {{ $t(row.data.attributes.status) }}
-
-
-
-
- {{ $getTransactionMark(row.data.attributes.type) + row.data.attributes.price }}
-
-
-
-
- {{ row.data.attributes.created_at }}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/MeteredTransactionDetailRow.vue b/resources/js/components/Subscription/MeteredTransactionDetailRow.vue
deleted file mode 100644
index b9c9cfd6..00000000
--- a/resources/js/components/Subscription/MeteredTransactionDetailRow.vue
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
- {{ $t(usage.feature) }}
-
-
- {{ $t(`feature_usage_desc_${usage.feature}`) }}
-
-
-
-
- {{ usage.usage }}
-
-
-
-
- {{ usage.cost }}
-
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/MeteredTransactionRow.vue b/resources/js/components/Subscription/MeteredTransactionRow.vue
deleted file mode 100644
index 4635e523..00000000
--- a/resources/js/components/Subscription/MeteredTransactionRow.vue
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
- {{ row.data.attributes.note }}
-
-
-
-
-
-
-
- {{ row.data.relationships.user.data.attributes.name }}
-
-
- {{ row.data.relationships.user.data.attributes.email }}
-
-
-
-
- {{ $t('user_was_deleted') }}
-
-
-
-
- {{ $t(row.data.attributes.status) }}
-
-
-
-
- {{ $t(row.data.attributes.type) }}
-
-
-
-
- {{ $getTransactionMark(row.data.attributes.type) + row.data.attributes.price }}
-
-
-
-
- {{ row.data.attributes.created_at }}
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
diff --git a/resources/js/components/Subscription/PaymentCard.vue b/resources/js/components/Subscription/PaymentCard.vue
deleted file mode 100644
index dc929d5d..00000000
--- a/resources/js/components/Subscription/PaymentCard.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
- {{ card.data.attributes.brand }} ••••
- {{ card.data.attributes.last4 }}
-
-
-
{{ $t('expires') }} {{ card.data.attributes.expiration }}
-
-
-
-
diff --git a/resources/js/components/Subscription/PaymentMethod.vue b/resources/js/components/Subscription/PaymentMethod.vue
deleted file mode 100644
index fc021fb1..00000000
--- a/resources/js/components/Subscription/PaymentMethod.vue
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
- {{ description }}
-
-
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/PlanDetail.vue b/resources/js/components/Subscription/PlanDetail.vue
deleted file mode 100644
index eefedbc3..00000000
--- a/resources/js/components/Subscription/PlanDetail.vue
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
- {{ plan.data.attributes.name }}
-
-
-
-
-
-
-
- {{ $t(key === 'max_team_members' ? 'max_team_members_total' : key, { value: value }) }}
-
-
- {{ $t(`${key}.unlimited`) }}
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/PlanPeriodSwitcher.vue b/resources/js/components/Subscription/PlanPeriodSwitcher.vue
deleted file mode 100644
index d940671f..00000000
--- a/resources/js/components/Subscription/PlanPeriodSwitcher.vue
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
- {{ $t('billed_annually') }}
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/resources/js/components/Subscription/Popups/ChangeSubscriptionPopup.vue b/resources/js/components/Subscription/Popups/ChangeSubscriptionPopup.vue
deleted file mode 100644
index 933da5f1..00000000
--- a/resources/js/components/Subscription/Popups/ChangeSubscriptionPopup.vue
+++ /dev/null
@@ -1,196 +0,0 @@
-
-
-
-
-
-
-
- {{ $t("not_any_plan") }}
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('cancel') }}
-
-
- {{ $t('change_plan') }}
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/Popups/ChargePaymentPopup.vue b/resources/js/components/Subscription/Popups/ChargePaymentPopup.vue
deleted file mode 100644
index ecb6170b..00000000
--- a/resources/js/components/Subscription/Popups/ChargePaymentPopup.vue
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
-
-
- {{ $t("not_any_payment_method") }}
-
-
-
-
-
-
-
-
-
- {{ $t('select') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('select') }}
-
-
-
-
-
-
- {{ $t('cancel_payment') }}
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/Popups/SubscribeAccountPopup.vue b/resources/js/components/Subscription/Popups/SubscribeAccountPopup.vue
deleted file mode 100644
index 5164f1b7..00000000
--- a/resources/js/components/Subscription/Popups/SubscribeAccountPopup.vue
+++ /dev/null
@@ -1,312 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('select') }}
-
-
-
-
-
-
-
-
-
-
- {{ $t('select') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('select') }}
-
-
-
-
-
-
- {{ $t('cancel_payment') }}
-
-
-
-
-
-
-
-
- There isn't any plan yet.
-
-
-
-
-
-
-
-
-
-
- {{ $t('cancel') }}
-
- {{ $t('upgrade_account') }}
-
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/RestrictionWarningBar.vue b/resources/js/components/Subscription/RestrictionWarningBar.vue
deleted file mode 100644
index 73993b6b..00000000
--- a/resources/js/components/Subscription/RestrictionWarningBar.vue
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- {{ $t('restricted_account_warning') }}
-
-
-
-
diff --git a/resources/js/components/Subscription/UserBalance.vue b/resources/js/components/Subscription/UserBalance.vue
deleted file mode 100644
index 0e684661..00000000
--- a/resources/js/components/Subscription/UserBalance.vue
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
- {{ $t('balance') }}
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('make_payment') }}
-
-
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserBillingAlerts.vue b/resources/js/components/Subscription/UserBillingAlerts.vue
deleted file mode 100644
index e6866783..00000000
--- a/resources/js/components/Subscription/UserBillingAlerts.vue
+++ /dev/null
@@ -1,244 +0,0 @@
-
-
-
- {{ $t('billing_alert') }}
-
-
-
-
-
-
- {{ $t('billing_alert_description') }}
-
-
-
-
-
-
-
-
-
- {{ $t('update_alert') }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('set_alert') }}
-
-
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserEditSubscription.vue b/resources/js/components/Subscription/UserEditSubscription.vue
deleted file mode 100644
index 0a43d6b4..00000000
--- a/resources/js/components/Subscription/UserEditSubscription.vue
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
- {{ $t('edit_your_subscription') }}
-
-
-
-
- {{ $t('cancel_now') }}
-
-
-
-
-
- {{ $t('change_plan') }}
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserEmptySubscription.vue b/resources/js/components/Subscription/UserEmptySubscription.vue
deleted file mode 100644
index e6429ece..00000000
--- a/resources/js/components/Subscription/UserEmptySubscription.vue
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
- {{ $t('subscription') }}
-
-
-
-
-
- {{ $t('upgrade_to_get_more') }}
-
-
-
- {{ $t('upgrade_your_account') }}
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserFailedPayments.vue b/resources/js/components/Subscription/UserFailedPayments.vue
deleted file mode 100644
index 67e651b3..00000000
--- a/resources/js/components/Subscription/UserFailedPayments.vue
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- {{ $t('failed_payments') }}
-
-
-
-
-
- {{
- $t(
- "unable_to_charge"
- )
- }}
-
-
-
-
-
-
- {{ payment.data.attributes.note }}
-
-
-
-
- {{ $t(payment.data.attributes.source) }}
-
-
-
-
- {{ payment.data.attributes.created_at }}
-
-
-
-
- {{ payment.data.attributes.amount }}
-
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserFixedSubscriptionDetail.vue b/resources/js/components/Subscription/UserFixedSubscriptionDetail.vue
deleted file mode 100644
index 99bb628f..00000000
--- a/resources/js/components/Subscription/UserFixedSubscriptionDetail.vue
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
- {{ $t('subscription') }}
-
-
-
-
-
- {{ subscription.data.relationships.plan.data.attributes.name }} /
- {{ price }}
-
-
-
-
- {{ limit.message }}
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserStoredPaymentMethods.vue b/resources/js/components/Subscription/UserStoredPaymentMethods.vue
deleted file mode 100644
index 7b2cdb3b..00000000
--- a/resources/js/components/Subscription/UserStoredPaymentMethods.vue
+++ /dev/null
@@ -1,216 +0,0 @@
-
-
-
- {{ $t('payment_method') }}
-
-
-
-
-
- {{
- $t('credit_to_auto_withdraw', {
- credit: user.data.relationships.balance.data.attributes.formatted,
- })
- }}
-
-
-
-
-
-
- {{ $t('auto_settled_credit_card') }}
-
-
-
-
-
-
-
- {{ $t('add_payment_method') }}
-
-
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserTransactionsForFixedBilling.vue b/resources/js/components/Subscription/UserTransactionsForFixedBilling.vue
deleted file mode 100644
index 5890fb74..00000000
--- a/resources/js/components/Subscription/UserTransactionsForFixedBilling.vue
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
- {{ $t('transactions') }}
-
-
-
-
-
-
-
-
-
-
- {{ $t('user_invoices.empty') }}
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserTransactionsForMeteredBilling.vue b/resources/js/components/Subscription/UserTransactionsForMeteredBilling.vue
deleted file mode 100644
index 3254573b..00000000
--- a/resources/js/components/Subscription/UserTransactionsForMeteredBilling.vue
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
- {{ $t('transactions') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('user_invoices.empty') }}
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserUpdatePaymentMethodsExternally.vue b/resources/js/components/Subscription/UserUpdatePaymentMethodsExternally.vue
deleted file mode 100644
index 6af82f1e..00000000
--- a/resources/js/components/Subscription/UserUpdatePaymentMethodsExternally.vue
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
-
- {{ $t('update_payments') }}
-
-
-
-
- {{ $t('update_payments') }}
-
-
-
-
-
-
diff --git a/resources/js/components/Subscription/UserUsageEstimates.vue b/resources/js/components/Subscription/UserUsageEstimates.vue
deleted file mode 100644
index 38cdba49..00000000
--- a/resources/js/components/Subscription/UserUsageEstimates.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
- {{ $t('usage_estimates') }}
-
-
-
-
-
- {{ user.data.relationships.subscription.data.attributes.updated_at }}
- {{ $t('till_now') }}
-
-
-
-
-
- {{ $t(usage.feature) }}
-
-
- {{ $t(`feature_usage_desc_${usage.feature}`) }}
-
-
-
-
- {{ usage.usage }}
-
-
-
-
- {{ usage.cost }}
-
-
-
-
-
- {{ $t('records_updated_daily_bases') }}
-
-
-
-
diff --git a/resources/js/components/Teams/Components/PermissionToggleButton.vue b/resources/js/components/Teams/Components/PermissionToggleButton.vue
deleted file mode 100644
index 6f41a865..00000000
--- a/resources/js/components/Teams/Components/PermissionToggleButton.vue
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
- {{ $t(teamPermissions[permission]) }}
-
-
-
-
-
-
-
diff --git a/resources/js/components/Teams/Components/TeamFolderPreview.vue b/resources/js/components/Teams/Components/TeamFolderPreview.vue
deleted file mode 100644
index d56925b7..00000000
--- a/resources/js/components/Teams/Components/TeamFolderPreview.vue
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
- {{ teamFolder.data.attributes.name }}
-
-
- {{ $t('created_at') }} {{ teamFolder.data.attributes.created_at }}
-
-
-
-
-
-
-
diff --git a/resources/js/components/Teams/Components/TeamList.vue b/resources/js/components/Teams/Components/TeamList.vue
deleted file mode 100644
index 3e1d9363..00000000
--- a/resources/js/components/Teams/Components/TeamList.vue
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ entry.name }}
-
-
- {{ entry.email }}
-
-
-
-
-
-
- {{ entry.email }}
-
-
- {{ $t('waiting_for_accept_invitation') }}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/resources/js/components/Teams/Components/TeamMembersButton.vue b/resources/js/components/Teams/Components/TeamMembersButton.vue
deleted file mode 100644
index 542164b7..00000000
--- a/resources/js/components/Teams/Components/TeamMembersButton.vue
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
- {{ $t('not_selected') }}
-
-
-
-
-
-
-
diff --git a/resources/js/components/Teams/Components/TeamMembersPreview.vue b/resources/js/components/Teams/Components/TeamMembersPreview.vue
deleted file mode 100644
index e2d0b6b2..00000000
--- a/resources/js/components/Teams/Components/TeamMembersPreview.vue
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
+{{ membersCount - 3 }}
-
-
-
-
-
-
-
diff --git a/resources/js/components/Teams/CreateTeamFolderPopup.vue b/resources/js/components/Teams/CreateTeamFolderPopup.vue
deleted file mode 100644
index 69a0ed5a..00000000
--- a/resources/js/components/Teams/CreateTeamFolderPopup.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('add') }}
-
-
-
-
-
-
-
-
-
-
- {{ $t('add_at_least_one_member') }}
-
-
-
-
-
- {{ $t('add_at_least_one_member_into_team_folder') }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('cancel') }}
-
- {{ popupSubmit }}
-
-
-
-
-
-
diff --git a/resources/js/components/Teams/EditTeamFolderPopup.vue b/resources/js/components/Teams/EditTeamFolderPopup.vue
deleted file mode 100644
index 86866a62..00000000
--- a/resources/js/components/Teams/EditTeamFolderPopup.vue
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('add') }}
-
-
-
-
-
-
-
-
-
-
- {{ $t('your_members') }}:
- {{
- $t('add_at_least_one_member')
- }}
-
-
-
-
- {{ $t('add_at_least_one_member_into_team_folder') }}
-
-
-
-
-
-
-
- {{ $t('cancel') }}
-
- {{ $t('update_team_folder') }}
-
-
-
-
-
-
-
-
diff --git a/resources/js/components/Toaster/ToasterNotifications.vue b/resources/js/components/Toaster/ToasterNotifications.vue
index 4793ba0f..937ed586 100644
--- a/resources/js/components/Toaster/ToasterNotifications.vue
+++ b/resources/js/components/Toaster/ToasterNotifications.vue
@@ -1,17 +1,8 @@
-
-
-
-
diff --git a/resources/js/components/UI/Buttons/SocialLoginButtons.vue b/resources/js/components/UI/Buttons/SocialLoginButtons.vue
deleted file mode 100644
index 6b5fca15..00000000
--- a/resources/js/components/UI/Buttons/SocialLoginButtons.vue
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
diff --git a/resources/js/components/UI/Others/UserHeadline.vue b/resources/js/components/UI/Others/UserHeadline.vue
index c3447d05..dce18a75 100644
--- a/resources/js/components/UI/Others/UserHeadline.vue
+++ b/resources/js/components/UI/Others/UserHeadline.vue
@@ -11,29 +11,20 @@
-
diff --git a/resources/js/components/UploadRequest/CreateUploadRequestPopup.vue b/resources/js/components/UploadRequest/CreateUploadRequestPopup.vue
deleted file mode 100644
index 51b06b85..00000000
--- a/resources/js/components/UploadRequest/CreateUploadRequestPopup.vue
+++ /dev/null
@@ -1,210 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('cancel') }}
-
- {{ $t('create_request') }}
-
-
-
-
-
- {{ $t('awesome_iam_done') }}
-
-
-
-
-
-
diff --git a/resources/js/helpers/SubscriptionHelpers.js b/resources/js/helpers/SubscriptionHelpers.js
deleted file mode 100644
index 78310af3..00000000
--- a/resources/js/helpers/SubscriptionHelpers.js
+++ /dev/null
@@ -1,15 +0,0 @@
-const ValidatorHelpers = {
- install(Vue) {
- Vue.prototype.$generatePaystackReference = function () {
- let text = ''
-
- let possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
-
- for (let i = 0; i < 10; i++) text += possible.charAt(Math.floor(Math.random() * possible.length))
-
- return text
- }
- },
-}
-
-export default ValidatorHelpers
diff --git a/resources/js/helpers/ValidatorHelpers.js b/resources/js/helpers/ValidatorHelpers.js
index e558bbb1..6bf52709 100644
--- a/resources/js/helpers/ValidatorHelpers.js
+++ b/resources/js/helpers/ValidatorHelpers.js
@@ -1,31 +1,5 @@
-import store from '../store/index'
-
const ValidatorHelpers = {
install(Vue) {
- Vue.prototype.$cantInviteMember = function (email, invitations) {
- if (['metered', 'none'].includes(store.getters.config.subscriptionType)) {
- return false
- }
-
- // Get max team members limitations
- let limit = store.getters.user.data.meta.limitations.max_team_members
-
- // Unlimited option
- if (limit.total === -1) {
- return false
- }
-
- // Get emails from invitations and currently active members
- let newInvitationEmails = invitations.map((item) => item['email'])
- let allowedMemberEmails = limit.meta.allowed_emails
-
- // Get unique list of member emails
- let totalUniqueEmails = [...new Set(newInvitationEmails.concat(Object.values(allowedMemberEmails)))]
-
- // If there is more unique emails than can be in limit, disable ability to add member
- return totalUniqueEmails.length >= limit.total && !totalUniqueEmails.includes(email)
- }
-
Vue.prototype.$isValidEmail = function (email) {
return email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/) !== null
}
diff --git a/resources/js/helpers/functionHelpers.js b/resources/js/helpers/functionHelpers.js
index 2041e9c2..52cae22a 100644
--- a/resources/js/helpers/functionHelpers.js
+++ b/resources/js/helpers/functionHelpers.js
@@ -141,14 +141,6 @@ const FunctionHelpers = {
return source ? store.getters.config.host + '/' + source : ''
}
- Vue.prototype.$getCreditCardBrand = function (brand) {
- return `/assets/icons/${brand}.svg`
- }
-
- Vue.prototype.$getInvoiceLink = function (id) {
- return '/invoices/' + id
- }
-
Vue.prototype.$uploadFiles = async function (files) {
// Show alert message when upload is disabled
if (store.getters.user && !store.getters.user.data.meta.restrictions.canUpload) {
@@ -289,14 +281,11 @@ const FunctionHelpers = {
return store.getters.currentFolder.data.attributes.name
} else {
return {
- RequestUpload: this.$t('home'),
RecentUploads: this.$t('menu.latest'),
MySharedItems: this.$t('publicly_shared'),
Trash: this.$t('trash'),
Public: this.$t('menu.files'),
Files: this.$t('sidebar.home'),
- TeamFolders: this.$t('team_folders'),
- SharedWithMe: this.$t('shared_with_me'),
}[this.$route.name]
}
}
@@ -308,8 +297,6 @@ const FunctionHelpers = {
Trash: this.$t('trash'),
Public: this.$t('menu.files'),
Files: this.$t('sidebar.home'),
- TeamFolders: this.$t('team_folders'),
- SharedWithMe: this.$t('shared_with_me'),
}[this.$route.name]
}
@@ -320,89 +307,21 @@ const FunctionHelpers = {
Trash: 'trash2',
Public: 'hard-drive',
Files: 'hard-drive',
- TeamFolders: 'users',
- SharedWithMe: 'user-check',
}[this.$router.currentRoute.name]
}
Vue.prototype.$getDataByLocation = function () {
let routes = {
- RequestUpload: ['getUploadRequestFolder', router.currentRoute.params.id || undefined ],
Public: ['getSharedFolder', router.currentRoute.params.id || undefined],
Files: ['getFolder', router.currentRoute.params.id || undefined],
RecentUploads: ['getRecentUploads'],
MySharedItems: ['getMySharedItems'],
Trash: ['getTrash', router.currentRoute.params.id || undefined],
- TeamFolders: ['getTeamFolder', router.currentRoute.params.id || undefined],
- SharedWithMe: ['getSharedWithMeFolder', router.currentRoute.params.id || undefined],
}
store.dispatch(...routes[router.currentRoute.name])
}
- Vue.prototype.$getPaymentLogo = function (driver) {
- return (
- {
- paypal: store.getters.isDarkMode
- ? '/assets/payments/paypal-dark.svg'
- : '/assets/payments/paypal.svg',
- paystack: store.getters.isDarkMode
- ? '/assets/payments/paystack-dark.svg'
- : '/assets/payments/paystack.svg',
- stripe: '/assets/payments/stripe.svg',
- system: store.getters.isDarkMode
- ? this.$getImage(store.getters.config.app_logo_horizontal_dark)
- : this.$getImage(store.getters.config.app_logo_horizontal),
- }[driver] || this.$getImage(store.getters.config.app_logo_horizontal)
- )
- }
-
- Vue.prototype.$getSocialLogo = function (driver) {
- return {
- google: '/assets/socials/google.svg',
- facebook: '/assets/socials/facebook.svg',
- github: store.getters.isDarkMode ? '/assets/socials/github-dark.svg' : '/assets/socials/github.svg',
- }[driver]
- }
-
- Vue.prototype.$getSubscriptionStatusColor = function (status) {
- return {
- active: 'green',
- cancelled: 'yellow',
- completed: 'purple',
- }[status]
- }
-
- Vue.prototype.$getTransactionStatusColor = function (status) {
- return {
- completed: 'green',
- cancelled: 'yellow',
- error: 'red',
- }[status]
- }
-
- Vue.prototype.$getTransactionTypeColor = function (type) {
- return {
- credit: 'green',
- charge: 'purple',
- withdrawal: 'red',
- }[type]
- }
-
- Vue.prototype.$getTransactionStatusColor = function (type) {
- return {
- completed: 'green',
- error: 'red',
- }[type]
- }
-
- Vue.prototype.$getPlanStatusColor = function (type) {
- return {
- active: 'green',
- archived: 'red',
- }[type]
- }
-
Vue.prototype.$getUserRoleColor = function (role) {
return {
admin: 'purple',
@@ -410,28 +329,9 @@ const FunctionHelpers = {
}[role]
}
- Vue.prototype.$getTransactionTypeTextColor = function (type) {
- return {
- withdrawal: 'text-red',
- credit: 'text-green',
- charge: '',
- }[type]
- }
-
- Vue.prototype.$getTransactionMark = function (type) {
- return {
- withdrawal: '-',
- credit: '+',
- charge: '',
- }[type]
- }
-
Vue.prototype.$goToFileView = function (id) {
let locations = {
- RequestUpload: {name: 'RequestUpload', params: { token: this.$route.params.token, id: id }},
Public: {name: 'Public', params: { token: this.$route.params.token, id: id }},
- TeamFolders: { name: 'TeamFolders', params: { id: id } },
- SharedWithMe: { name: 'SharedWithMe', params: { id: id } },
MySharedItems: { name: 'Files', params: { id: id } },
Trash: { name: 'Trash', params: { id: id } },
Files: { name: 'Files', params: { id: id } },
@@ -524,19 +424,6 @@ const FunctionHelpers = {
})
}
- Vue.prototype.$mapIntoMemberResource = function (entry) {
- return {
- data: {
- attributes: {
- avatar: entry.avatar,
- name: entry.name,
- email: entry.email,
- color: entry.color,
- },
- },
- }
- }
-
Vue.prototype.$closePopup = function () {
events.$emit('popup:close')
}
@@ -561,18 +448,6 @@ const FunctionHelpers = {
Vue.prototype.$showMobileMenu = function (name) {
events.$emit('mobile-menu:show', name)
}
-
- Vue.prototype.$openSubscribeOptions = function () {
- events.$emit('popup:open', { name: 'select-plan-subscription' })
- }
-
- Vue.prototype.$changeSubscriptionOptions = function () {
- events.$emit('popup:open', { name: 'change-plan-subscription' })
- }
-
- Vue.prototype.$openRemoteUploadPopup = function () {
- events.$emit('popup:open', {name: 'remote-upload'})
- }
},
}
diff --git a/resources/js/helpers/itemHelpers.js b/resources/js/helpers/itemHelpers.js
index 635272d0..1fb3641e 100644
--- a/resources/js/helpers/itemHelpers.js
+++ b/resources/js/helpers/itemHelpers.js
@@ -103,64 +103,6 @@ const itemHelpers = {
}
}
- Vue.prototype.$dissolveTeamFolder = function (folder) {
- events.$emit('confirm:open', {
- title: i18n.t('really_dissolve_team'),
- message: i18n.t(
- 'really_dissolve_team_desc'
- ),
- action: {
- id: folder.data.id,
- operation: 'dissolve-team-folder',
- },
- })
- }
-
- Vue.prototype.$detachMeFromTeamFolder = function (folder) {
- events.$emit('confirm:open', {
- title: i18n.t('really_leave_team'),
- message: i18n.t(
- "really_leave_team_desc"
- ),
- action: {
- id: folder.data.id,
- operation: 'leave-team-folder',
- },
- })
- }
-
- Vue.prototype.$createTeamFolder = function () {
- // Show alert message when create folder is disabled
- if (!store.getters.user.data.meta.restrictions.canCreateTeamFolder) {
- Vue.prototype.$temporarilyDisabledFolderCreate()
-
- return
- }
-
- events.$emit('popup:open', { name: 'create-team-folder' })
- }
-
- Vue.prototype.$convertAsTeamFolder = function (entry) {
- events.$emit('popup:open', {
- name: 'create-team-folder',
- item: entry,
- })
- }
-
- Vue.prototype.$createFileRequest = function (entry = undefined) {
- events.$emit('popup:open', {
- name: 'create-file-request',
- item: entry,
- })
- }
-
- Vue.prototype.$updateTeamFolder = function (entry) {
- events.$emit('popup:open', {
- name: 'update-team-folder',
- item: entry,
- })
- }
-
Vue.prototype.$removeFavourite = function (folder) {
store.dispatch('removeFromFavourites', folder)
}
diff --git a/resources/js/main.js b/resources/js/main.js
index 4910b292..d3d22581 100644
--- a/resources/js/main.js
+++ b/resources/js/main.js
@@ -7,7 +7,6 @@ import App from './App.vue'
import store from './store'
import { events } from './bus'
-import SubscriptionHelpers from './helpers/SubscriptionHelpers'
import ValidatorHelpers from './helpers/ValidatorHelpers'
import functionHelpers from './helpers/functionHelpers'
import AlertHelpers from './helpers/AlertHelpers'
@@ -15,7 +14,6 @@ import itemHelpers from './helpers/itemHelpers'
import { VueReCaptcha } from 'vue-recaptcha-v3'
Vue.use(VueRouter)
-Vue.use(SubscriptionHelpers)
Vue.use(ValidatorHelpers)
Vue.use(functionHelpers)
Vue.use(AlertHelpers)
diff --git a/resources/js/router.js b/resources/js/router.js
index 0f258a1c..27c44bbd 100644
--- a/resources/js/router.js
+++ b/resources/js/router.js
@@ -1,13 +1,10 @@
-import routesUploadRequest from './routes/routesUploadRequest'
import routesMaintenance from './routes/routesMaintenance'
import routesShared from './routes/routesShared'
import routesOthers from './routes/routesOthers'
import routesAdmin from './routes/routesAdmin'
-import routesIndex from './routes/routesIndex'
import routesAuth from './routes/routesAuth'
import routesUser from './routes/routesUser'
import routesFile from './routes/routesFile'
-import routesTeam from './routes/routesTeam'
import store from './store/index'
import Router from 'vue-router'
import Vue from 'vue'
@@ -17,16 +14,13 @@ Vue.use(Router)
const router = new Router({
mode: 'history',
routes: [
- ...routesUploadRequest,
...routesMaintenance,
...routesShared,
...routesOthers,
...routesAdmin,
- ...routesIndex,
...routesAuth,
...routesUser,
...routesFile,
- ...routesTeam,
],
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {
diff --git a/resources/js/routes/routesAdmin.js b/resources/js/routes/routesAdmin.js
index b0540eee..0d447206 100644
--- a/resources/js/routes/routesAdmin.js
+++ b/resources/js/routes/routesAdmin.js
@@ -17,51 +17,6 @@ const routesAdmin = [
title: 'dashboard',
},
},
- {
- name: 'Invoices',
- path: '/admin/invoices',
- component: () => import(/* webpackChunkName: "chunks/invoices" */ '../views/Admin/Invoices'),
- meta: {
- requiresAuth: true,
- title: 'transactions',
- },
- },
- {
- name: 'Subscriptions',
- path: '/admin/subscriptions',
- component: () => import(/* webpackChunkName: "chunks/subscriptions" */ '../views/Admin/Subscriptions'),
- meta: {
- requiresAuth: true,
- title: 'subscriptions',
- },
- },
- {
- name: 'Pages',
- path: '/admin/pages',
- component: () => import(/* webpackChunkName: "chunks/pages" */ '../views/Admin/Pages'),
- meta: {
- requiresAuth: true,
- title: 'pages',
- },
- },
- {
- name: 'PageEdit',
- path: '/admin/pages/:slug',
- component: () => import(/* webpackChunkName: "chunks/page-edit" */ '../views/Admin/Pages/PageEdit'),
- meta: {
- requiresAuth: true,
- title: 'edit_page',
- },
- },
- {
- name: 'Plans',
- path: '/admin/plans',
- component: () => import(/* webpackChunkName: "chunks/plans" */ '../views/Admin/Plans'),
- meta: {
- requiresAuth: true,
- title: 'pricing_plans',
- },
- },
{
name: 'Users',
path: '/admin/users',
@@ -80,30 +35,6 @@ const routesAdmin = [
title: 'create_user',
},
},
- {
- name: 'CreateFixedPlan',
- path: '/admin/plan/create/fixed',
- component: () =>
- import(
- /* webpackChunkName: "chunks/plan-create/fixed" */ '../views/Admin/Plans/Create/CreateFixedPlan'
- ),
- meta: {
- requiresAuth: true,
- title: 'create_plan',
- },
- },
- {
- name: 'CreateMeteredPlan',
- path: '/admin/plan/create/metered',
- component: () =>
- import(
- /* webpackChunkName: "chunks/plan-create/metered" */ '../views/Admin/Plans/Create/CreateMeteredPlan'
- ),
- meta: {
- requiresAuth: true,
- title: 'create_plan',
- },
- },
{
path: '/admin/user/:id',
component: () => import(/* webpackChunkName: "chunks/user" */ '../views/Admin/Users/User'),
@@ -136,18 +67,6 @@ const routesAdmin = [
title: 'routes_title.users_storage_usage',
},
},
- {
- name: 'UserSubscription',
- path: '/admin/user/:id/subscription',
- component: () =>
- import(
- /* webpackChunkName: "chunks/user-subscription" */ '../views/Admin/Users/UserTabs/UserSubscription'
- ),
- meta: {
- requiresAuth: true,
- title: 'subscription',
- },
- },
{
name: 'UserPassword',
path: '/admin/user/:id/password',
@@ -174,132 +93,6 @@ const routesAdmin = [
},
],
},
- {
- name: 'PlanFixed',
- path: '/admin/plan/:id',
- component: () => import(/* webpackChunkName: "chunks/plan" */ '../views/Admin/Plans/FixedPlan'),
- meta: {
- requiresAuth: true,
- title: 'plan',
- },
- children: [
- {
- name: 'PlanFixedSubscribers',
- path: '/admin/plan/:id/fixed/subscribers',
- component: () =>
- import(
- /* webpackChunkName: "chunks/plan-subscribers" */ '../views/Admin/Plans/Tabs/PlanSubscribers'
- ),
- meta: {
- requiresAuth: true,
- title: 'subscribers',
- },
- },
- {
- name: 'PlanFixedSettings',
- path: '/admin/plan/:id/fixed/settings',
- component: () =>
- import(
- /* webpackChunkName: "chunks/plan-settings" */ '../views/Admin/Plans/Tabs/PlanFixedSettings'
- ),
- meta: {
- requiresAuth: true,
- title: 'plan_settings',
- },
- },
- {
- name: 'PlanFixedDelete',
- path: '/admin/plan/:id/fixed/delete',
- component: () =>
- import(/* webpackChunkName: "chunks/plan-delete" */ '../views/Admin/Plans/Tabs/PlanDelete'),
- meta: {
- requiresAuth: true,
- title: 'plan_delete',
- },
- },
- ],
- },
- {
- name: 'PlanMetered',
- path: '/admin/plan/:id',
- component: () => import(/* webpackChunkName: "chunks/plan" */ '../views/Admin/Plans/MeteredPlan'),
- meta: {
- requiresAuth: true,
- title: 'plan',
- },
- children: [
- {
- name: 'PlanMeteredSubscribers',
- path: '/admin/plan/:id/metered/subscribers',
- component: () =>
- import(
- /* webpackChunkName: "chunks/plan-subscribers" */ '../views/Admin/Plans/Tabs/PlanSubscribers'
- ),
- meta: {
- requiresAuth: true,
- title: 'subscribers',
- },
- },
- {
- name: 'PlanMeteredSettings',
- path: '/admin/plan/:id/metered/settings',
- component: () =>
- import(
- /* webpackChunkName: "chunks/plan-settings" */ '../views/Admin/Plans/Tabs/PlanMeteredSettings'
- ),
- meta: {
- requiresAuth: true,
- title: 'plan_settings',
- },
- },
- {
- name: 'PlanMeteredDelete',
- path: '/admin/plan/:id/metered/delete',
- component: () =>
- import(/* webpackChunkName: "chunks/plan-delete" */ '../views/Admin/Plans/Tabs/PlanDelete'),
- meta: {
- requiresAuth: true,
- title: 'plan_delete',
- },
- },
- ],
- },
- {
- name: 'PaymentSettings',
- path: '/admin/payments',
- component: () =>
- import(/* webpackChunkName: "chunks/payments" */ '../views/Admin/PaymentSettings/PaymentSettings'),
- meta: {
- requiresAuth: true,
- title: 'Payment Settings',
- },
- children: [
- {
- name: 'AppBillings',
- path: '/admin/payments/billings',
- component: () =>
- import(
- /* webpackChunkName: "chunks/payments/billings" */ '../views/Admin/PaymentSettings/PaymentSettingsTab/Billings'
- ),
- meta: {
- requiresAuth: true,
- title: 'billings',
- },
- },
- {
- name: 'AppPayments',
- path: '/admin/payments/payments',
- component: () =>
- import(
- /* webpackChunkName: "chunks/payments/settings" */ '../views/Admin/PaymentSettings/PaymentSettingsTab/Payments'
- ),
- meta: {
- requiresAuth: true,
- title: 'payments',
- },
- },
- ],
- },
{
name: 'AppSettings',
path: '/admin/settings',
@@ -322,18 +115,6 @@ const routesAdmin = [
title: 'appearance',
},
},
- {
- name: 'AppIndex',
- path: '/admin/settings/index',
- component: () =>
- import(
- /* webpackChunkName: "chunks/app-index" */ '../views/Admin/Settings/AppSettingsTabs/Index'
- ),
- meta: {
- requiresAuth: true,
- title: 'Index',
- },
- },
{
name: 'AppEnvironment',
path: '/admin/settings/environment',
@@ -358,30 +139,6 @@ const routesAdmin = [
title: 'others',
},
},
- {
- name: 'AppSignInUp',
- path: '/admin/settings/sign-in',
- component: () =>
- import(
- /* webpackChunkName: "chunks/app-sign-in-out" */ '../views/Admin/Settings/AppSettingsTabs/SignInUp'
- ),
- meta: {
- requiresAuth: true,
- title: 'Sign In/Up',
- },
- },
- {
- name: 'AppAdsense',
- path: '/admin/settings/adsense',
- component: () =>
- import(
- /* webpackChunkName: "chunks/app-adsense" */ '../views/Admin/Settings/AppSettingsTabs/Adsense'
- ),
- meta: {
- requiresAuth: true,
- title: 'Adsense',
- },
- },
{
name: 'AppServer',
path: '/admin/settings/server',
diff --git a/resources/js/routes/routesAuth.js b/resources/js/routes/routesAuth.js
index a9aa1eee..2cbc0962 100644
--- a/resources/js/routes/routesAuth.js
+++ b/resources/js/routes/routesAuth.js
@@ -1,13 +1,4 @@
const routesAuth = [
- {
- name: 'SuccessfullyVerified',
- path: '/successfully-verified',
- component: () =>
- import(/* webpackChunkName: "chunks/successfully-email-verified" */ '../views/Auth/SuccessfullyEmailVerified'),
- meta: {
- requiresAuth: false,
- },
- },
{
name: 'SuccessfullySend',
path: '/successfully-send',
@@ -24,14 +15,6 @@ const routesAuth = [
requiresAuth: false,
},
},
- {
- name: 'SignUp',
- path: '/sign-up',
- component: () => import(/* webpackChunkName: "chunks/sign-up" */ '../views/Auth/SignUp'),
- meta: {
- requiresAuth: false,
- },
- },
{
name: 'ForgottenPassword',
path: '/forgotten-password',
diff --git a/resources/js/routes/routesFile.js b/resources/js/routes/routesFile.js
index 8c39c50f..f5fa8ad6 100644
--- a/resources/js/routes/routesFile.js
+++ b/resources/js/routes/routesFile.js
@@ -38,23 +38,6 @@ const routesFile = [
requiresAuth: true,
},
},
- {
- name: 'TeamFolders',
- path: '/platform/team-folders/:id?',
- component: () => import(/* webpackChunkName: "chunks/team-folders" */ '../views/FileView/TeamFolders'),
- meta: {
- requiresAuth: true,
- },
- },
- {
- name: 'SharedWithMe',
- path: '/platform/shared-with-me/:id?',
- component: () =>
- import(/* webpackChunkName: "chunks/shared-with-me" */ '../views/FileView/SharedWithMe'),
- meta: {
- requiresAuth: true,
- },
- },
],
},
]
diff --git a/resources/js/routes/routesIndex.js b/resources/js/routes/routesIndex.js
deleted file mode 100644
index c9222d6b..00000000
--- a/resources/js/routes/routesIndex.js
+++ /dev/null
@@ -1,28 +0,0 @@
-const routesIndex = [
- {
- name: 'Homepage',
- path: '/',
- component: () => import(/* webpackChunkName: "chunks/homepage" */ '../views/Frontpage/Homepage'),
- meta: {
- requiresAuth: false,
- },
- },
- {
- name: 'DynamicPage',
- path: '/page/:slug',
- component: () => import(/* webpackChunkName: "chunks/dynamic-page" */ '../views/Frontpage/DynamicPage'),
- meta: {
- requiresAuth: false,
- },
- },
- {
- name: 'ContactUs',
- path: '/contact-us',
- component: () => import(/* webpackChunkName: "chunks/contact-us" */ '../views/Frontpage/ContactUs'),
- meta: {
- requiresAuth: false,
- },
- },
-]
-
-export default routesIndex
diff --git a/resources/js/routes/routesTeam.js b/resources/js/routes/routesTeam.js
deleted file mode 100644
index fce466c1..00000000
--- a/resources/js/routes/routesTeam.js
+++ /dev/null
@@ -1,12 +0,0 @@
-const routesTeam = [
- {
- name: 'Invitation',
- path: '/team-folder-invitation/:id',
- component: () => import(/* webpackChunkName: "chunks/invitation" */ '../views/Teams/Invitation'),
- meta: {
- requiresAuth: false,
- },
- },
-]
-
-export default routesTeam
diff --git a/resources/js/routes/routesUploadRequest.js b/resources/js/routes/routesUploadRequest.js
deleted file mode 100644
index 09674fa7..00000000
--- a/resources/js/routes/routesUploadRequest.js
+++ /dev/null
@@ -1,23 +0,0 @@
-const routesShared = [
- {
- name: 'Request',
- path: '/request',
- component: () => import(/* webpackChunkName: "chunks/request" */ '../views/UploadRequest'),
- meta: {
- requiresAuth: false,
- },
- children: [
- {
- name: 'RequestUpload',
- path: '/request/:token/upload/:id?',
- component: () =>
- import(/* webpackChunkName: "chunks/request-upload" */ '../views/FileView/UploadRequestFiles'),
- meta: {
- requiresAuth: false,
- },
- },
- ],
- },
-]
-
-export default routesShared
diff --git a/resources/js/routes/routesUser.js b/resources/js/routes/routesUser.js
index 070fd165..295e221c 100644
--- a/resources/js/routes/routesUser.js
+++ b/resources/js/routes/routesUser.js
@@ -34,15 +34,6 @@ const routesUser = [
title: 'storage',
},
},
- {
- name: 'Billing',
- path: '/user/settings/billing',
- component: () => import(/* webpackChunkName: "chunks/billing" */ '../views/User/Billing'),
- meta: {
- requiresAuth: true,
- title: 'billing',
- },
- },
],
},
]
diff --git a/resources/js/store/index.js b/resources/js/store/index.js
index 826c6f52..39efafe5 100644
--- a/resources/js/store/index.js
+++ b/resources/js/store/index.js
@@ -1,30 +1,22 @@
import Vuex from 'vuex'
import Vue from 'vue'
-import uploadRequest from './modules/uploadRequest'
import fileFunctions from './modules/fileFunctions'
-import broadcasting from './modules/broadcasting'
import fileBrowser from './modules/fileBrowser'
-import payments from './modules/payments'
import userAuth from './modules/userAuth'
import sharing from './modules/sharing'
import lists from './modules/lists'
-import teams from './modules/teams'
import app from './modules/app'
Vue.use(Vuex)
export default new Vuex.Store({
modules: {
- uploadRequest,
fileFunctions,
- broadcasting,
fileBrowser,
- payments,
userAuth,
sharing,
lists,
- teams,
app,
},
})
diff --git a/resources/js/store/modules/app.js b/resources/js/store/modules/app.js
index 41f436f8..5bfef88f 100644
--- a/resources/js/store/modules/app.js
+++ b/resources/js/store/modules/app.js
@@ -5,8 +5,6 @@ import router from '../../router'
const defaultState = {
isVisibleNavigationBars: localStorage.getItem('is_navigation_bars') !== 'false',
- isVisibleNotificationCenter: false,
- notificationCount: 0,
isDarkMode: false,
isVisibleSidebar: localStorage.getItem('file_info_visibility') === 'true' || false,
itemViewType: localStorage.getItem('preview_type') || 'list',
@@ -126,60 +124,13 @@ const mutations = {
REPLACE_CONFIG_VALUE(state, { key, value }) {
state.config[key] = value
},
- SET_SOCIAL_LOGIN_CONFIGURED(state, service) {
- if (service === 'facebook') {
- state.config.allowedFacebookLogin = true
- state.config.isFacebookLoginConfigured = true
- }
-
- if (service === 'google') {
- state.config.allowedGoogleLogin = true
- state.config.isGoogleLoginConfigured = true
- }
-
- if (service === 'github') {
- state.config.allowedGithubLogin = true
- state.config.isGithubLoginConfigured = true
- }
-
- if (service === 'recaptcha') {
- state.config.allowedRecaptcha = true
- state.config.isRecaptchaConfigured = true
- }
- },
- SET_STRIPE_CREDENTIALS(state, data) {
- state.config.stripe_public_key = data.key
- state.config.isStripe = true
- },
- SET_PAYSTACK_CREDENTIALS(state, data) {
- state.config.paystack_public_key = data.key
- state.config.isPaystack = true
- },
- SET_PAYPAL_CREDENTIALS(state, data) {
- state.config.paypal_client_id = data.key
- state.config.isPayPal = true
-
- if (data.live)
- state.config.isPayPalLive = data.live
- },
UPDATE_DARK_MODE_STATUS(state, val) {
state.isDarkMode = val
},
- UPDATE_NOTIFICATION_COUNT(state, val) {
- state.notificationCount = val
- },
- TOGGLE_NOTIFICATION_CENTER(state) {
- state.isVisibleNotificationCenter = !state.isVisibleNotificationCenter
- },
- CLOSE_NOTIFICATION_CENTER(state) {
- state.isVisibleNotificationCenter = false
- },
}
const getters = {
- isVisibleNotificationCenter: (state) => state.isVisibleNotificationCenter,
isVisibleNavigationBars: (state) => state.isVisibleNavigationBars,
- notificationCount: (state) => state.notificationCount,
isVisibleSidebar: (state) => state.isVisibleSidebar,
itemViewType: (state) => state.itemViewType,
api: (state) => state.config.api,
diff --git a/resources/js/store/modules/broadcasting.js b/resources/js/store/modules/broadcasting.js
deleted file mode 100644
index a5c16f5c..00000000
--- a/resources/js/store/modules/broadcasting.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import { events } from '../../bus'
-import i18n from "../../i18n"
-
-const defaultState = {
- remoteUploadQueue: undefined,
- isBroadcasting: false,
-}
-
-const actions = {
- runConnection: ({ commit, getters, dispatch }) => {
- commit('SET_RUNNING_COMMUNICATION')
-
- Echo.private(`App.Users.Models.User.${getters.user.data.id}`)
- .listen('.RemoteFile.Created', (event) => {
- commit('UPDATE_REMOTE_UPLOAD_QUEUE', event.payload)
-
- // If user is located in same directory as remote upload was called, then show the files
- if (
- event.payload.file &&
- (!getters.currentFolder && !event.payload.file.data.attributes.parent_id) ||
- (getters.currentFolder && event.payload.file.data.attributes.parent_id === getters.currentFolder.data.id)
- ) {
- // Add received item into view
- commit('ADD_NEW_ITEMS', event.payload.file)
- }
-
- if (event.payload.progress.total === event.payload.progress.processed) {
- events.$emit('toaster', {
- type: 'success',
- message: i18n.t('remote_download_finished'),
- })
- }
- })
- .notification((notification) => {
- // Play audio
- new Audio('/audio/blop.wav').play()
-
- // Call toaster notification
- events.$emit('notification', {
- data: {
- type: notification.category,
- id: notification.id,
- attributes: {
- action: notification.action,
- description: notification.description,
- title: notification.title,
- category: notification.category,
- },
- },
- })
-
- // Reload user data to update notifications
- dispatch('getAppData')
- })
- },
-}
-
-const mutations = {
- SET_RUNNING_COMMUNICATION(state) {
- state.isBroadcasting = true
- },
- UPDATE_REMOTE_UPLOAD_QUEUE(state, payload) {
- if (payload.progress.total !== payload.progress.processed) {
- state.remoteUploadQueue = {
- total: payload.progress.total,
- processed: payload.progress.processed,
- }
- } else {
- state.remoteUploadQueue = undefined
- }
- },
-}
-
-const getters = {
- remoteUploadQueue: (state) => state.remoteUploadQueue,
- isBroadcasting: (state) => state.isBroadcasting,
-}
-
-export default {
- state: defaultState,
- getters,
- actions,
- mutations,
-}
diff --git a/resources/js/store/modules/fileBrowser.js b/resources/js/store/modules/fileBrowser.js
index 26219445..31075498 100644
--- a/resources/js/store/modules/fileBrowser.js
+++ b/resources/js/store/modules/fileBrowser.js
@@ -104,7 +104,6 @@ const actions = {
return new Promise((resolve, reject) => {
// Get route
let route = {
- RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/navigation`,
Public: `/api/browse/navigation/${router.currentRoute.params.token}`,
}[router.currentRoute.name] || '/api/browse/navigation'
diff --git a/resources/js/store/modules/fileFunctions.js b/resources/js/store/modules/fileFunctions.js
index 849fb017..3bc1ec1c 100644
--- a/resources/js/store/modules/fileFunctions.js
+++ b/resources/js/store/modules/fileFunctions.js
@@ -59,7 +59,6 @@ const actions = {
// Get route
let route = {
- RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/move`,
Public: `/api/editor/move/${router.currentRoute.params.token}`,
}[router.currentRoute.name] || '/api/move'
@@ -87,7 +86,6 @@ const actions = {
createFolder: ({ commit, getters, dispatch }, folder) => {
// Get route
let route = {
- RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/create-folder`,
Public: `/api/editor/create-folder/${router.currentRoute.params.token}`,
}[router.currentRoute.name] || '/api/create-folder'
@@ -126,7 +124,6 @@ const actions = {
// Get route
let route = {
- RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/rename/${data.id}`,
Public: `/api/editor/rename/${data.id}/${router.currentRoute.params.token}`,
}[router.currentRoute.name] || `/api/rename/${data.id}`
@@ -149,7 +146,6 @@ const actions = {
return new Promise((resolve, reject) => {
// Get route
let route = {
- RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/upload`,
Public: `/api/editor/upload/${router.currentRoute.params.token}`,
}[router.currentRoute.name] || '/api/upload'
@@ -317,7 +313,6 @@ const actions = {
// Get route
let route = {
- RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/remove`,
Public: `/api/editor/remove/${router.currentRoute.params.token}`,
}[router.currentRoute.name] || '/api/remove'
diff --git a/resources/js/store/modules/lists.js b/resources/js/store/modules/lists.js
index d80cf5dd..0fef8828 100644
--- a/resources/js/store/modules/lists.js
+++ b/resources/js/store/modules/lists.js
@@ -89,48 +89,6 @@ const defaultState = {
value: 'sa-east-1',
},
],
- transactionColumns: [
- {
- label: 'note',
- field: 'note',
- sortable: true,
- },
- {
- label: 'user',
- field: 'user_id',
- sortable: true,
- },
- {
- label: 'status',
- field: 'status',
- sortable: true,
- },
- {
- label: 'type',
- field: 'type',
- sortable: true,
- },
- {
- label: 'total',
- field: 'amount',
- sortable: true,
- },
- {
- label: 'payed_at',
- field: 'created_at',
- sortable: true,
- },
- {
- label: 'service',
- field: 'driver',
- sortable: true,
- },
- {
- label: 'actions',
- field: 'actions',
- sortable: false,
- },
- ],
roles: [
{
label: 'roles.admin',
@@ -141,24 +99,6 @@ const defaultState = {
value: 'user',
},
],
- subscriptionTypes: [
- {
- label: 'Metered',
- value: 'metered',
- },
- {
- label: 'Fixed',
- value: 'fixed',
- },
- {
- label: 'None',
- value: 'none',
- },
- ],
- teamPermissions: {
- 'can-edit': 'can_edit',
- 'can-view': 'can_view',
- },
countries: [
{ label: 'Czech Republic', value: 'CZ' },
{ label: 'Slovakia', value: 'SK' },
@@ -434,558 +374,6 @@ const defaultState = {
value: 168,
},
],
- intervalList: [
- {
- label: 'monthly',
- value: 'month',
- },
- {
- label: 'yearly',
- value: 'year',
- },
- ],
- currencyList: [
- {
- label: 'USD - United States Dollar',
- value: 'USD',
- },
- {
- label: 'EUR - Euro',
- value: 'EUR',
- },
- {
- label: 'GBP - British Pound',
- value: 'GBP',
- },
- {
- label: 'AFN - Afghan Afghani',
- value: 'AFN',
- },
- {
- label: 'ALL - Albanian Lek',
- value: 'ALL',
- },
- {
- label: 'DZD - Algerian Dinar',
- value: 'DZD',
- },
- {
- label: 'AOA - Angolan Kwanza',
- value: 'AOA',
- },
- {
- label: 'ARS - Argentine Peso',
- value: 'ARS',
- },
- {
- label: 'AMD - Armenian Dram',
- value: 'AMD',
- },
- {
- label: 'AWG - Aruban Florin',
- value: 'AWG',
- },
- {
- label: 'AUD - Australian Dollar',
- value: 'AUD',
- },
- {
- label: 'AZN - Azerbaijani Manat',
- value: 'AZN',
- },
- {
- label: 'BDT - Bangladeshi Taka',
- value: 'BDT',
- },
- {
- label: 'BBD - Barbadian Dollar',
- value: 'BBD',
- },
- {
- label: 'BZD - Belize Dollar',
- value: 'BZD',
- },
- {
- label: 'BMD - Bermudian Dollar',
- value: 'BMD',
- },
- {
- label: 'BOB - Bolivian Boliviano',
- value: 'BOB',
- },
- {
- label: 'BAM - Bosnia & Herzegovina Convertible Mark',
- value: 'BAM',
- },
- {
- label: 'BWP - Botswana Pula',
- value: 'BWP',
- },
- {
- label: 'BRL - Brazilian Real',
- value: 'BRL',
- },
- {
- label: 'BND - Brunei Dollar',
- value: 'BND',
- },
- {
- label: 'BGN - Bulgarian Lev',
- value: 'BGN',
- },
- {
- label: 'BIF - Burundian Franc',
- value: 'BIF',
- },
- {
- label: 'KHR - Cambodian Riel',
- value: 'KHR',
- },
- {
- label: 'CAD - Canadian Dollar',
- value: 'CAD',
- },
- {
- label: 'CVE - Cape Verdean Escudo',
- value: 'CVE',
- },
- {
- label: 'KYD - Cayman Islands Dollar',
- value: 'KYD',
- },
- {
- label: 'XAF - Central African Cfa Franc',
- value: 'XAF',
- },
- {
- label: 'XPF - Cfp Franc',
- value: 'XPF',
- },
- {
- label: 'CLP - Chilean Peso',
- value: 'CLP',
- },
- {
- label: 'CNY - Chinese Renminbi Yuan',
- value: 'CNY',
- },
- {
- label: 'COP - Colombian Peso',
- value: 'COP',
- },
- {
- label: 'KMF - Comorian Franc',
- value: 'KMF',
- },
- {
- label: 'CDF - Congolese Franc',
- value: 'CDF',
- },
- {
- label: 'CRC - Costa Rican Colón',
- value: 'CRC',
- },
- {
- label: 'HRK - Croatian Kuna',
- value: 'HRK',
- },
- {
- label: 'CZK - Czech Koruna',
- value: 'CZK',
- },
- {
- label: 'DKK - Danish Krone',
- value: 'DKK',
- },
- {
- label: 'DJF - Djiboutian Franc',
- value: 'DJF',
- },
- {
- label: 'DOP - Dominican Peso',
- value: 'DOP',
- },
- {
- label: 'XCD - East Caribbean Dollar',
- value: 'XCD',
- },
- {
- label: 'EGP - Egyptian Pound',
- value: 'EGP',
- },
- {
- label: 'ETB - Ethiopian Birr',
- value: 'ETB',
- },
- {
- label: 'FKP - Falkland Islands Pound',
- value: 'FKP',
- },
- {
- label: 'FJD - Fijian Dollar',
- value: 'FJD',
- },
- {
- label: 'GMD - Gambian Dalasi',
- value: 'GMD',
- },
- {
- label: 'GEL - Georgian Lari',
- value: 'GEL',
- },
- {
- label: 'GIP - Gibraltar Pound',
- value: 'GIP',
- },
- {
- label: 'GTQ - Guatemalan Quetzal',
- value: 'GTQ',
- },
- {
- label: 'GNF - Guinean Franc',
- value: 'GNF',
- },
- {
- label: 'GYD - Guyanese Dollar',
- value: 'GYD',
- },
- {
- label: 'HTG - Haitian Gourde',
- value: 'HTG',
- },
- {
- label: 'HNL - Honduran Lempira',
- value: 'HNL',
- },
- {
- label: 'HKD - Hong Kong Dollar',
- value: 'HKD',
- },
- {
- label: 'HUF - Hungarian Forint',
- value: 'HUF',
- },
- {
- label: 'ISK - Icelandic Króna',
- value: 'ISK',
- },
- {
- label: 'INR - Indian Rupee',
- value: 'INR',
- },
- {
- label: 'IDR - Indonesian Rupiah',
- value: 'IDR',
- },
- {
- label: 'ILS - Israeli New Sheqel',
- value: 'ILS',
- },
- {
- label: 'JMD - Jamaican Dollar',
- value: 'JMD',
- },
- {
- label: 'JPY - Japanese Yen',
- value: 'JPY',
- },
- {
- label: 'KZT - Kazakhstani Tenge',
- value: 'KZT',
- },
- {
- label: 'KES - Kenyan Shilling',
- value: 'KES',
- },
- {
- label: 'KGS - Kyrgyzstani Som',
- value: 'KGS',
- },
- {
- label: 'LAK - Lao Kip',
- value: 'LAK',
- },
- {
- label: 'LBP - Lebanese Pound',
- value: 'LBP',
- },
- {
- label: 'LSL - Lesotho Loti',
- value: 'LSL',
- },
- {
- label: 'LRD - Liberian Dollar',
- value: 'LRD',
- },
- {
- label: 'MOP - Macanese Pataca',
- value: 'MOP',
- },
- {
- label: 'MKD - Macedonian Denar',
- value: 'MKD',
- },
- {
- label: 'MGA - Malagasy Ariary',
- value: 'MGA',
- },
- {
- label: 'MWK - Malawian Kwacha',
- value: 'MWK',
- },
- {
- label: 'MYR - Malaysian Ringgit',
- value: 'MYR',
- },
- {
- label: 'MVR - Maldivian Rufiyaa',
- value: 'MVR',
- },
- {
- label: 'MRO - Mauritanian Ouguiya',
- value: 'MRO',
- },
- {
- label: 'MUR - Mauritian Rupee',
- value: 'MUR',
- },
- {
- label: 'MXN - Mexican Peso',
- value: 'MXN',
- },
- {
- label: 'MDL - Moldovan Leu',
- value: 'MDL',
- },
- {
- label: 'MNT - Mongolian Tögrög',
- value: 'MNT',
- },
- {
- label: 'MAD - Moroccan Dirham',
- value: 'MAD',
- },
- {
- label: 'MZN - Mozambican Metical',
- value: 'MZN',
- },
- {
- label: 'MMK - Myanmar Kyat',
- value: 'MMK',
- },
- {
- label: 'NAD - Namibian Dollar',
- value: 'NAD',
- },
- {
- label: 'NPR - Nepalese Rupee',
- value: 'NPR',
- },
- {
- label: 'ANG - Netherlands Antillean Gulden',
- value: 'ANG',
- },
- {
- label: 'TWD - New Taiwan Dollar',
- value: 'TWD',
- },
- {
- label: 'NZD - New Zealand Dollar',
- value: 'NZD',
- },
- {
- label: 'NIO - Nicaraguan Córdoba',
- value: 'NIO',
- },
- {
- label: 'NGN - Nigerian Naira',
- value: 'NGN',
- },
- {
- label: 'NOK - Norwegian Krone',
- value: 'NOK',
- },
- {
- label: 'PKR - Pakistani Rupee',
- value: 'PKR',
- },
- {
- label: 'PAB - Panamanian Balboa',
- value: 'PAB',
- },
- {
- label: 'PGK - Papua New Guinean Kina',
- value: 'PGK',
- },
- {
- label: 'PYG - Paraguayan Guaraní',
- value: 'PYG',
- },
- {
- label: 'PEN - Peruvian Nuevo Sol',
- value: 'PEN',
- },
- {
- label: 'PHP - Philippine Peso',
- value: 'PHP',
- },
- {
- label: 'PLN - Polish Złoty',
- value: 'PLN',
- },
- {
- label: 'QAR - Qatari Riyal',
- value: 'QAR',
- },
- {
- label: 'RON - Romanian Leu',
- value: 'RON',
- },
- {
- label: 'RUB - Russian Ruble',
- value: 'RUB',
- },
- {
- label: 'RWF - Rwandan Franc',
- value: 'RWF',
- },
- {
- label: 'STD - São Tomé and Príncipe Dobra',
- value: 'STD',
- },
- {
- label: 'SHP - Saint Helenian Pound',
- value: 'SHP',
- },
- {
- label: 'SVC - Salvadoran Colón',
- value: 'SVC',
- },
- {
- label: 'WST - Samoan Tala',
- value: 'WST',
- },
- {
- label: 'SAR - Saudi Riyal',
- value: 'SAR',
- },
- {
- label: 'RSD - Serbian Dinar',
- value: 'RSD',
- },
- {
- label: 'SCR - Seychellois Rupee',
- value: 'SCR',
- },
- {
- label: 'SLL - Sierra Leonean Leone',
- value: 'SLL',
- },
- {
- label: 'SGD - Singapore Dollar',
- value: 'SGD',
- },
- {
- label: 'SBD - Solomon Islands Dollar',
- value: 'SBD',
- },
- {
- label: 'SOS - Somali Shilling',
- value: 'SOS',
- },
- {
- label: 'ZAR - South African Rand',
- value: 'ZAR',
- },
- {
- label: 'KRW - South Korean Won',
- value: 'KRW',
- },
- {
- label: 'LKR - Sri Lankan Rupee',
- value: 'LKR',
- },
- {
- label: 'SRD - Surinamese Dollar',
- value: 'SRD',
- },
- {
- label: 'SZL - Swazi Lilangeni',
- value: 'SZL',
- },
- {
- label: 'SEK - Swedish Krona',
- value: 'SEK',
- },
- {
- label: 'CHF - Swiss Franc',
- value: 'CHF',
- },
- {
- label: 'TJS - Tajikistani Somoni',
- value: 'TJS',
- },
- {
- label: 'TZS - Tanzanian Shilling',
- value: 'TZS',
- },
- {
- label: 'THB - Thai Baht',
- value: 'THB',
- },
- {
- label: 'TOP - Tongan Paʻanga',
- value: 'TOP',
- },
- {
- label: 'TTD - Trinidad and Tobago Dollar',
- value: 'TTD',
- },
- {
- label: 'TRY - Turkish Lira',
- value: 'TRY',
- },
- {
- label: 'UGX - Ugandan Shilling',
- value: 'UGX',
- },
- {
- label: 'UAH - Ukrainian Hryvnia',
- value: 'UAH',
- },
- {
- label: 'AED - United Arab Emirates Dirham',
- value: 'AED',
- },
- {
- label: 'UYU - Uruguayan Peso',
- value: 'UYU',
- },
- {
- label: 'UZS - Uzbekistani Som',
- value: 'UZS',
- },
- {
- label: 'VUV - Vanuatu Vatu',
- value: 'VUV',
- },
- {
- label: 'VND - Vietnamese Đồng',
- value: 'VND',
- },
- {
- label: 'XOF - West African Cfa Franc',
- value: 'XOF',
- },
- {
- label: 'YER - Yemeni Rial',
- value: 'YER',
- },
- {
- label: 'ZMW - Zambian Kwacha',
- value: 'ZMW',
- },
- ],
timezones: [
{
value: '-12.0',
@@ -1115,12 +503,7 @@ const defaultState = {
}
const getters = {
- transactionColumns: (state) => state.transactionColumns,
- subscriptionTypes: (state) => state.subscriptionTypes,
- teamPermissions: (state) => state.teamPermissions,
expirationList: (state) => state.expirationList,
- currencyList: (state) => state.currencyList,
- intervalList: (state) => state.intervalList,
timezones: (state) => state.timezones,
countries: (state) => state.countries,
s3Regions: (state) => state.s3Regions,
diff --git a/resources/js/store/modules/payments.js b/resources/js/store/modules/payments.js
deleted file mode 100644
index 0c25c4c9..00000000
--- a/resources/js/store/modules/payments.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import { events } from '../../bus'
-
-const defaultState = {
- singleChargeAmount: undefined,
-}
-
-const actions = {
- callSingleChargeProcess: ({ commit }, amount) => {
- // Open popup with payment methods
- events.$emit('popup:open', { name: 'select-payment-method' })
-
- // Store charge amount
- commit('SET_SINGLE_CHARGE_AMOUNT', amount)
- },
-}
-
-const mutations = {
- SET_SINGLE_CHARGE_AMOUNT(state, amount) {
- state.singleChargeAmount = amount
- },
-}
-
-const getters = {
- singleChargeAmount: (state) => state.singleChargeAmount,
-}
-
-export default {
- state: defaultState,
- getters,
- actions,
- mutations,
-}
diff --git a/resources/js/store/modules/teams.js b/resources/js/store/modules/teams.js
deleted file mode 100644
index 203296ca..00000000
--- a/resources/js/store/modules/teams.js
+++ /dev/null
@@ -1,129 +0,0 @@
-import router from '../../router'
-import { events } from '../../bus'
-import i18n from '../../i18n'
-import axios from 'axios'
-import Vue from 'vue'
-
-const defaultState = {
- currentTeamFolder: undefined,
-}
-
-const actions = {
- getTeamFolder: ({ commit, getters }, id) => {
- commit('LOADING_STATE', { loading: true, data: [] })
-
- if (typeof id === 'undefined') {
- commit('SET_CURRENT_TEAM_FOLDER', null)
- }
-
- axios
- .get(`${getters.api}/teams/folders/${id}${getters.sorting.URI}`)
- .then((response) => {
- let folders = response.data.folders.data
- let files = response.data.files.data
-
- commit('LOADING_STATE', {
- loading: false,
- data: folders.concat(files),
- })
- commit('SET_CURRENT_FOLDER', response.data.root)
-
- if (
- !getters.currentTeamFolder ||
- getters.currentTeamFolder.data.id !== response.data.teamFolder.data.id
- ) {
- commit('SET_CURRENT_TEAM_FOLDER', response.data.teamFolder)
- }
-
- events.$emit('scrollTop')
- })
- .catch((error) => {
- // Redirect if unauthenticated
- if ([401, 403].includes(error.response.status)) {
- commit('SET_AUTHORIZED', false)
- router.push({ name: 'SignIn' })
- } else {
- // Show error message
- events.$emit('alert:open', {
- title: i18n.t('popup_error.title'),
- message: i18n.t('popup_error.message'),
- })
- }
- })
- },
- getSharedWithMeFolder: ({ commit, getters }, id) => {
- commit('LOADING_STATE', { loading: true, data: [] })
-
- if (typeof id === 'undefined') {
- commit('SET_CURRENT_TEAM_FOLDER', null)
- }
-
- axios
- .get(`${getters.api}/teams/shared-with-me/${id}${getters.sorting.URI}`)
- .then((response) => {
- let folders = response.data.folders.data
- let files = response.data.files.data
-
- commit('LOADING_STATE', {
- loading: false,
- data: folders.concat(files),
- })
- commit('SET_CURRENT_FOLDER', response.data.root)
-
- if (
- !getters.currentTeamFolder ||
- getters.currentTeamFolder.data.id !== response.data.teamFolder.data.id
- ) {
- commit('SET_CURRENT_TEAM_FOLDER', response.data.teamFolder)
- }
-
- events.$emit('scrollTop')
- })
- .catch((error) => {
- // Redirect if unauthenticated
- if ([401, 403].includes(error.response.status)) {
- commit('SET_AUTHORIZED', false)
- router.push({ name: 'SignIn' })
- } else {
- // Show error message
- events.$emit('alert:open', {
- title: i18n.t('popup_error.title'),
- message: i18n.t('popup_error.message'),
- })
- }
- })
- },
- getTeamFolderTree: ({ commit, getters }) => {
- return new Promise((resolve, reject) => {
- axios
- .get(`/api/teams/folders/${getters.currentTeamFolder.data.id}/tree${getters.sorting.URI}`)
- .then((response) => {
- resolve(response)
-
- commit('UPDATE_FOLDER_TREE', response.data)
- })
- .catch((error) => {
- reject(error)
-
- Vue.prototype.$isSomethingWrong()
- })
- })
- },
-}
-
-const mutations = {
- SET_CURRENT_TEAM_FOLDER(state, payload) {
- state.currentTeamFolder = payload
- },
-}
-
-const getters = {
- currentTeamFolder: (state) => state.currentTeamFolder,
-}
-
-export default {
- state: defaultState,
- getters,
- actions,
- mutations,
-}
diff --git a/resources/js/store/modules/uploadRequest.js b/resources/js/store/modules/uploadRequest.js
deleted file mode 100644
index eeafcef7..00000000
--- a/resources/js/store/modules/uploadRequest.js
+++ /dev/null
@@ -1,83 +0,0 @@
-import router from '../../router'
-import { events } from '../../bus'
-import axios from 'axios'
-import Vue from 'vue'
-
-const defaultState = {
- uploadRequest: undefined,
-}
-
-const actions = {
- getUploadRequestFolder: ({ commit, getters }, id) => {
- commit('LOADING_STATE', { loading: true, data: [] })
-
- return new Promise((resolve, reject) => {
- axios
- .get(`/api/upload-request/${router.currentRoute.params.token}/browse/${id}${getters.sorting.URI}`)
- .then((response) => {
- let folders = response.data.folders.data
- let files = response.data.files.data
-
- commit('LOADING_STATE', {
- loading: false,
- data: folders.concat(files),
- })
- commit('SET_CURRENT_FOLDER', response.data.root)
-
- events.$emit('scrollTop')
-
- resolve(response)
- })
- .catch((error) => {
- Vue.prototype.$isSomethingWrong()
-
- reject(error)
- })
- })
- },
- getUploadRequestDetail: ({ commit }) => {
- return new Promise((resolve, reject) => {
- axios.get(`/api/upload-request/${router.currentRoute.params.token}`)
- .then((response) => {
- resolve(response)
-
- // Stop loading spinner
- if (['active', 'filled', 'expired'].includes(response.data.data.attributes.status) )
- commit('LOADING_STATE', { loading: false, data: [] })
-
- commit('SET_UPLOAD_REQUEST', response.data)
-
- // Set current folder if exist
- if (! router.currentRoute.params.id) {
- commit('SET_CURRENT_FOLDER', response.data.data.relationships.folder)
- }
- })
- })
- },
- closeUploadRequest: ({ commit }) => {
- axios
- .delete(`/api/upload-request/${router.currentRoute.params.token}`)
- .then((response) => {
- commit('LOADING_STATE', { loading: false, data: [] })
- commit('SET_UPLOAD_REQUEST', response.data)
- })
- .catch(() => this.$isSomethingWrong())
- },
-}
-
-const mutations = {
- SET_UPLOAD_REQUEST(state, payload) {
- state.uploadRequest = payload
- },
-}
-
-const getters = {
- uploadRequest: (state) => state.uploadRequest,
-}
-
-export default {
- state: defaultState,
- getters,
- actions,
- mutations,
-}
diff --git a/resources/js/store/modules/userAuth.js b/resources/js/store/modules/userAuth.js
index 5ee0dc2a..8121efa7 100644
--- a/resources/js/store/modules/userAuth.js
+++ b/resources/js/store/modules/userAuth.js
@@ -16,11 +16,6 @@ const actions = {
resolve(response)
commit('RETRIEVE_USER', response.data)
- commit('UPDATE_NOTIFICATION_COUNT', response.data.data.relationships.unreadNotifications.data.length)
-
- if (! getters.isBroadcasting && getters.config.broadcasting === 'pusher') {
- dispatch('runConnection')
- }
})
.catch((error) => {
reject(error)
@@ -53,16 +48,6 @@ const actions = {
router.push({name: 'Homepage'})
})
},
- socialiteRedirect: ({ commit }, provider) => {
- axios
- .get(`/api/socialite/${provider}/redirect`)
- .then((response) => {
- if (response.data.url) {
- window.location.href = response.data.url
- }
- })
- .catch(() => this.$isSomethingWrong())
- },
addToFavourites: (context, folder) => {
let addFavourites = []
let items = [folder]
@@ -116,19 +101,6 @@ const actions = {
})
.catch(() => Vue.prototype.$isSomethingWrong())
},
- readAllNotifications: ({ commit }) => {
- axios.post('/api/user/notifications/read')
- .then(() => {
- commit('UPDATE_NOTIFICATION_COUNT', 0)
- })
- },
- deleteAllNotifications: ({ commit }) => {
- axios.delete('/api/user/notifications')
- .then(() => {
- commit('FLUSH_NOTIFICATIONS')
- })
- .catch(() => Vue.prototype.$isSomethingWrong())
- },
}
const mutations = {
@@ -178,34 +150,9 @@ const mutations = {
}
})
},
- FLUSH_NOTIFICATIONS(state) {
- state.user.data.relationships.readNotifications.data = []
- state.user.data.relationships.unreadNotifications.data = []
- },
- CLEAR_NOTIFICATION_ACTION_DATA(state, notificationId) {
- if (state.user.data.relationships.readNotifications.data.length) {
- state.user.data.relationships.readNotifications.data.map(notification => {
- if (notification.data.id === notificationId) {
- notification.data.attributes.action = undefined
- }
- })
- }
-
- if (state.user.data.relationships.unreadNotifications.data.length) {
- state.user.data.relationships.unreadNotifications.data.map(notification => {
- if (notification.data.id === notificationId) {
- notification.data.attributes.action = undefined
- }
- })
- }
- },
}
const getters = {
- isLimitedUser: (state) =>
- state.user &&
- state.user.data.relationships.failedPayments &&
- state.user.data.relationships.failedPayments.data.length === 3,
permission: (state) => state.permission,
user: (state) => state.user,
}
diff --git a/resources/js/views/Admin.vue b/resources/js/views/Admin.vue
index d5f6d50a..729e7d50 100644
--- a/resources/js/views/Admin.vue
+++ b/resources/js/views/Admin.vue
@@ -4,12 +4,6 @@
-
-
-
-
-
-
@@ -18,7 +12,6 @@
-
@@ -84,61 +77,13 @@ import {
UsersIcon,
} from 'vue-feather-icons'
import { mapGetters } from 'vuex'
-import CreateUploadRequestPopup from "../components/UploadRequest/CreateUploadRequestPopup";
-import CreateTeamFolderPopup from "../components/Teams/CreateTeamFolderPopup";
-import NotificationsPopup from "../components/Notifications/NotificationsPopup";
-import RemoteUploadPopup from "../components/RemoteUpload/RemoteUploadPopup";
export default {
name: 'Admin',
computed: {
...mapGetters(['isVisibleNavigationBars', 'config']),
nav() {
- let subscriptionLinks = {
- metered: [
- {
- title: this.$t('payments'),
- route: 'PaymentSettings',
- icon: 'card',
- },
- {
- title: this.$t('plans'),
- route: 'Plans',
- icon: 'database',
- linkActivation: ['plans', 'plan'],
- },
- {
- title: this.$t('transactions'),
- route: 'Invoices',
- icon: 'file-text',
- },
- ],
- fixed: [
- {
- title: this.$t('payments'),
- route: 'PaymentSettings',
- icon: 'card',
- },
- {
- title: this.$t('subscriptions'),
- route: 'Subscriptions',
- icon: 'dollar',
- },
- {
- title: this.$t('plans'),
- route: 'Plans',
- icon: 'database',
- linkActivation: ['plans', 'plan'],
- },
- {
- title: this.$t('transactions'),
- route: 'Invoices',
- icon: 'file-text',
- },
- ],
- }[this.config.subscriptionType]
-
- let sections = [
+ return [
{
groupCollapsable: false,
groupTitle: this.$t('admin'),
@@ -159,43 +104,17 @@ export default {
route: 'AppSettings',
icon: 'settings',
},
- ],
- },
- {
- groupCollapsable: false,
- groupTitle: this.$t('content'),
- groupLinks: [
- {
- title: this.$t('pages'),
- route: 'Pages',
- icon: 'monitor',
- },
- {
- title: this.$t('languages'),
- route: 'Language',
- icon: 'globe',
- },
+ {
+ title: this.$t('languages'),
+ route: 'Language',
+ icon: 'globe',
+ },
],
},
]
-
- // Push subscription if there is metered or fixed type
- if (this.config.subscriptionType !== 'none') {
- sections.push({
- groupCollapsable: false,
- groupTitle: this.$t('subscription'),
- groupLinks: subscriptionLinks,
- })
- }
-
- return sections
},
},
components: {
- RemoteUploadPopup,
- NotificationsPopup,
- CreateTeamFolderPopup,
- CreateUploadRequestPopup,
MobileNavigationToolbar,
FilePreview,
Spotlight,
diff --git a/resources/js/views/Admin/Dashboard.vue b/resources/js/views/Admin/Dashboard.vue
index 579fcaad..1e6dbdac 100644
--- a/resources/js/views/Admin/Dashboard.vue
+++ b/resources/js/views/Admin/Dashboard.vue
@@ -6,11 +6,6 @@
-
-
- As you installed app with metered subscription type, you have to create your plan as soon as possible to prevent new user registration without automatically assigned subscription plan.
-
-
We detect your cron jobs probably doesn't work correctly, please check it, you need it for running app correctly. If you set your cron job, please get back one minute later.
@@ -50,22 +45,6 @@