@coopenomics/desktop 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +9 -0
- package/.env-example +3 -0
- package/.eslintignore +8 -0
- package/.eslintrc.cjs +91 -0
- package/.prettierrc +7 -0
- package/.vscode/extensions.json +15 -0
- package/.vscode/settings.json +14 -0
- package/CHANGELOG.md +495 -0
- package/Env-example.ts +12 -0
- package/README.md +38 -0
- package/extensions/powerup/boot.ts +17 -0
- package/extensions/powerup/src/Powerup.vue +3 -0
- package/index.html +78 -0
- package/package.json +98 -0
- package/postcss.config.cjs +27 -0
- package/public/documents/privacy_policy.pdf +0 -0
- package/public/documents/regulation_on_the_cpp_wallet.pdf +0 -0
- package/public/documents/regulation_on_the_procedure_and_rules_for_using_a_simple_electronic_signature.pdf +0 -0
- package/public/documents/user_agreement.pdf +0 -0
- package/public/documents/ustav.pdf +0 -0
- package/public/icons/favicon-128x128.png +0 -0
- package/public/icons/favicon-16x16.png +0 -0
- package/public/icons/favicon-32x32.png +0 -0
- package/public/icons/favicon-96x96.png +0 -0
- package/public/logo.svg +1 -0
- package/public/open.ttf +0 -0
- package/public/pwa/pwa_icon_128x128.png +0 -0
- package/public/pwa/pwa_icon_144x144.png +0 -0
- package/public/pwa/pwa_icon_152x152.png +0 -0
- package/public/pwa/pwa_icon_192x192.png +0 -0
- package/public/pwa/pwa_icon_256x256.png +0 -0
- package/public/pwa/pwa_icon_384x384.png +0 -0
- package/public/pwa/pwa_icon_48x48.png +0 -0
- package/public/pwa/pwa_icon_512x512.png +0 -0
- package/public/pwa/pwa_icon_72x72.png +0 -0
- package/public/pwa/pwa_icon_96x96.png +0 -0
- package/public/roboto.ttf +0 -0
- package/public/service-worker.js +17 -0
- package/public/ubuntu.ttf +0 -0
- package/quasar.config.cjs +256 -0
- package/src/app/App.vue +85 -0
- package/src/app/config/index.ts +188 -0
- package/src/app/providers/card/store.ts +39 -0
- package/src/app/providers/router.ts +28 -0
- package/src/app/providers/routes/index.ts +288 -0
- package/src/app/service-worker.js +12 -0
- package/src/app/styles/app.scss +29 -0
- package/src/app/styles/quasar-variables.sass +556 -0
- package/src/app/styles/style.css +388 -0
- package/src/assets/anime.svg +187 -0
- package/src/assets/bizsystem.svg +1 -0
- package/src/assets/blockchain.svg +1 -0
- package/src/assets/buycheaper.svg +1 -0
- package/src/assets/cart.svg +3 -0
- package/src/assets/club1.svg +1 -0
- package/src/assets/club2.svg +1 -0
- package/src/assets/clubs.png +0 -0
- package/src/assets/clubs.svg +1 -0
- package/src/assets/crown.svg +3 -0
- package/src/assets/dacom.png +0 -0
- package/src/assets/dacom2.png +0 -0
- package/src/assets/dacom_night.svg +1 -0
- package/src/assets/dacom_night2.png +0 -0
- package/src/assets/dao_free.svg +1 -0
- package/src/assets/flow1.svg +1 -0
- package/src/assets/flow2.svg +1 -0
- package/src/assets/flow3.svg +1 -0
- package/src/assets/flow4.svg +1 -0
- package/src/assets/header-logo.svg +25 -0
- package/src/assets/history.svg +4 -0
- package/src/assets/logo-white.png +0 -0
- package/src/assets/logo.png +0 -0
- package/src/assets/main.svg +1 -0
- package/src/assets/menu.svg +3 -0
- package/src/assets/order.svg +5 -0
- package/src/assets/pin.svg +4 -0
- package/src/assets/quasar-logo-vertical.svg +15 -0
- package/src/assets/sellmore.svg +1 -0
- package/src/assets/star.svg +4 -0
- package/src/assets/systemadmin.svg +1 -0
- package/src/assets/systemfunds.svg +1 -0
- package/src/assets/systemgoals.svg +1 -0
- package/src/assets/systemgov.svg +1 -0
- package/src/assets/systemprojects.svg +1 -0
- package/src/assets/systemtasks.svg +1 -0
- package/src/assets/ticket.svg +1 -0
- package/src/assets/union.svg +3 -0
- package/src/assets/user.png +0 -0
- package/src/assets/wallet.svg +4 -0
- package/src/assets/welcome.jpeg +0 -0
- package/src/boot/.gitkeep +0 -0
- package/src/boot/axios.ts +31 -0
- package/src/boot/branch-selector.ts +42 -0
- package/src/boot/i18n.ts +33 -0
- package/src/boot/init-stores.ts +43 -0
- package/src/boot/map.ts +7 -0
- package/src/boot/navigation-guards.ts +48 -0
- package/src/boot/sentry.ts +26 -0
- package/src/chainsMain.ts +8 -0
- package/src/components/history/AccountEvents.vue +137 -0
- package/src/components/history/AccountLink.vue +11 -0
- package/src/components/history/ActionCell.vue +96 -0
- package/src/components/history/DataCell.vue +84 -0
- package/src/components/menu/blockchainStatus.vue +84 -0
- package/src/components/menu/footerMobileMenu.vue +77 -0
- package/src/components/soviet/index.vue +76 -0
- package/src/components/soviet/staff.vue +272 -0
- package/src/css/quasar.variables.scss +50 -0
- package/src/desktops/Chairman/index.ts +1 -0
- package/src/desktops/Chairman/model/index.ts +63 -0
- package/src/desktops/Member/index.ts +1 -0
- package/src/desktops/Member/model/index.ts +63 -0
- package/src/desktops/Setup/index.ts +1 -0
- package/src/desktops/Setup/model/index.ts +63 -0
- package/src/desktops/User/index.ts +1 -0
- package/src/desktops/User/model/index.ts +325 -0
- package/src/desktops/index.ts +9 -0
- package/src/entities/Account/api/index.ts +17 -0
- package/src/entities/Account/index.ts +2 -0
- package/src/entities/Account/model/index.ts +1 -0
- package/src/entities/Account/model/store.ts +25 -0
- package/src/entities/Account/types/index.ts +3 -0
- package/src/entities/Agreement/api/index.ts +46 -0
- package/src/entities/Agreement/index.ts +2 -0
- package/src/entities/Agreement/model/index.ts +1 -0
- package/src/entities/Agreement/model/store.ts +49 -0
- package/src/entities/Branch/api/index.ts +34 -0
- package/src/entities/Branch/index.ts +2 -0
- package/src/entities/Branch/model/index.ts +2 -0
- package/src/entities/Branch/model/store.ts +36 -0
- package/src/entities/Branch/model/types.ts +7 -0
- package/src/entities/Cooperative/api/index.ts +106 -0
- package/src/entities/Cooperative/index.ts +2 -0
- package/src/entities/Cooperative/model/index.ts +2 -0
- package/src/entities/Cooperative/model/stores.ts +123 -0
- package/src/entities/Cooperative/model/types.ts +19 -0
- package/src/entities/Decision/index.ts +1 -0
- package/src/entities/Decision/model/index.ts +1 -0
- package/src/entities/Decision/model/types.ts +4 -0
- package/src/entities/Desktop/api/index.ts +10 -0
- package/src/entities/Desktop/index.ts +2 -0
- package/src/entities/Desktop/model/index.ts +1 -0
- package/src/entities/Desktop/model/store.ts +135 -0
- package/src/entities/Desktop/model/types.ts +29 -0
- package/src/entities/Extension/api/index.ts +19 -0
- package/src/entities/Extension/index.ts +2 -0
- package/src/entities/Extension/model/index.ts +2 -0
- package/src/entities/Extension/model/store.ts +71 -0
- package/src/entities/Extension/model/types.ts +28 -0
- package/src/entities/Installer/index.ts +1 -0
- package/src/entities/Installer/model/index.ts +1 -0
- package/src/entities/Installer/model/store.ts +36 -0
- package/src/entities/Menu/index.ts +2 -0
- package/src/entities/Menu/model/index.ts +2 -0
- package/src/entities/Menu/model/store.ts +69 -0
- package/src/entities/Menu/model/types.ts +11 -0
- package/src/entities/Menu/ui/index.ts +1 -0
- package/src/entities/Order/api/index.ts +14 -0
- package/src/entities/Order/index.ts +1 -0
- package/src/entities/Order/model/index.ts +1 -0
- package/src/entities/Order/model/store.ts +87 -0
- package/src/entities/Registrator/index.ts +2 -0
- package/src/entities/Registrator/model/index.ts +1 -0
- package/src/entities/Registrator/model/store.ts +237 -0
- package/src/entities/Registrator/ui/index.ts +1 -0
- package/src/entities/Request/api/index.ts +192 -0
- package/src/entities/Request/index.ts +3 -0
- package/src/entities/Request/model/index.ts +1 -0
- package/src/entities/Request/model/stores.ts +123 -0
- package/src/entities/Request/model/types.ts +57 -0
- package/src/entities/Request/ui/index.ts +1 -0
- package/src/entities/Session/api/index.ts +21 -0
- package/src/entities/Session/index.ts +2 -0
- package/src/entities/Session/model/index.ts +2 -0
- package/src/entities/Session/model/store.ts +100 -0
- package/src/entities/Session/model/types.ts +1 -0
- package/src/entities/Settings/api/index.ts +8 -0
- package/src/entities/Settings/index.ts +2 -0
- package/src/entities/Settings/model/index.ts +1 -0
- package/src/entities/Settings/model/store.ts +24 -0
- package/src/entities/System/api/index.ts +12 -0
- package/src/entities/System/index.ts +2 -0
- package/src/entities/System/model/index.ts +1 -0
- package/src/entities/System/model/store.ts +24 -0
- package/src/entities/System/types/index.ts +3 -0
- package/src/entities/Union/model/index.ts +1 -0
- package/src/entities/Union/model/store.ts +19 -0
- package/src/entities/User/api/index.ts +75 -0
- package/src/entities/User/index.ts +3 -0
- package/src/entities/User/model/entity.ts +47 -0
- package/src/entities/User/model/index.ts +2 -0
- package/src/entities/User/model/stores.ts +49 -0
- package/src/entities/User/model/types.ts +36 -0
- package/src/entities/User/ui/index.ts +1 -0
- package/src/entities/Wallet/api/index.ts +192 -0
- package/src/entities/Wallet/index.ts +3 -0
- package/src/entities/Wallet/model/index.ts +2 -0
- package/src/entities/Wallet/model/stores.ts +108 -0
- package/src/entities/Wallet/model/types.ts +77 -0
- package/src/entities/Wallet/ui/WalletBalance/WalletBalance.vue +35 -0
- package/src/entities/Wallet/ui/WalletBalance/index.ts +1 -0
- package/src/entities/Wallet/ui/WalletProgramsList/WalletProgramsList.vue +15 -0
- package/src/entities/Wallet/ui/WalletProgramsList/index.ts +1 -0
- package/src/entities/Wallet/ui/index.ts +2 -0
- package/src/env.d.ts +28 -0
- package/src/features/Agreementer/GenerateAgreement/index.ts +1 -0
- package/src/features/Agreementer/GenerateAgreement/model/index.ts +24 -0
- package/src/features/Agreementer/GenerateAgreement/ui/AgreementReader.vue +37 -0
- package/src/features/Agreementer/GenerateAgreement/ui/index.ts +1 -0
- package/src/features/Agreementer/ReadAgreementDialog/index.ts +1 -0
- package/src/features/Agreementer/ReadAgreementDialog/ui/ReadAgreementDialog.vue +58 -0
- package/src/features/Agreementer/ReadAgreementDialog/ui/index.ts +1 -0
- package/src/features/Agreementer/SignAgreementDialog/api/index.ts +26 -0
- package/src/features/Agreementer/SignAgreementDialog/index.ts +3 -0
- package/src/features/Agreementer/SignAgreementDialog/model/index.ts +27 -0
- package/src/features/Agreementer/SignAgreementDialog/ui/SignAgreementDialog.vue +73 -0
- package/src/features/Agreementer/SignAgreementDialog/ui/index.ts +1 -0
- package/src/features/Branch/CreateBranch/api/index.ts +16 -0
- package/src/features/Branch/CreateBranch/index.ts +2 -0
- package/src/features/Branch/CreateBranch/model/index.ts +49 -0
- package/src/features/Branch/CreateBranch/ui/CreateBranchButton.vue +61 -0
- package/src/features/Branch/CreateBranch/ui/index.ts +1 -0
- package/src/features/Branch/EditBranch/api/index.ts +16 -0
- package/src/features/Branch/EditBranch/index.ts +2 -0
- package/src/features/Branch/EditBranch/model/index.ts +34 -0
- package/src/features/Branch/SelectBranch/api/index.ts +15 -0
- package/src/features/Branch/SelectBranch/index.ts +1 -0
- package/src/features/Branch/SelectBranch/model/index.ts +18 -0
- package/src/features/Branch/SelectBranch/ui/SelectBranchOverlay.vue +109 -0
- package/src/features/Branch/SelectBranch/ui/index.ts +1 -0
- package/src/features/Cooperative/AddAdmin/index.ts +1 -0
- package/src/features/Cooperative/AddAdmin/model/index.ts +27 -0
- package/src/features/Cooperative/CreateBoard/index.ts +1 -0
- package/src/features/Cooperative/CreateBoard/model/index.ts +27 -0
- package/src/features/Cooperative/DeleteAdmin/index.ts +1 -0
- package/src/features/Cooperative/DeleteAdmin/model/index.ts +27 -0
- package/src/features/Cooperative/SetRights/index.ts +1 -0
- package/src/features/Cooperative/SetRights/model/index.ts +27 -0
- package/src/features/Cooperative/UpdateBoard/index.ts +1 -0
- package/src/features/Cooperative/UpdateBoard/model/index.ts +27 -0
- package/src/features/Cooperative/UpdateCoop/index.ts +1 -0
- package/src/features/Cooperative/UpdateCoop/model/index.ts +27 -0
- package/src/features/Decision/AuthorizeAndExecDecision/index.ts +1 -0
- package/src/features/Decision/AuthorizeAndExecDecision/model/index.ts +83 -0
- package/src/features/Decision/AutomateDecision/index.ts +1 -0
- package/src/features/Decision/AutomateDecision/model/index.ts +27 -0
- package/src/features/Decision/CreateProject/index.ts +1 -0
- package/src/features/Decision/CreateProject/model/index.ts +84 -0
- package/src/features/Decision/CreateProject/ui/CreateProjectFreeDecisionButton.vue +51 -0
- package/src/features/Decision/CreateProject/ui/index.ts +1 -0
- package/src/features/Decision/DisautomateDecision/index.ts +1 -0
- package/src/features/Decision/DisautomateDecision/model/index.ts +27 -0
- package/src/features/Decision/GenerateProjectDocument/index.ts +1 -0
- package/src/features/Decision/GenerateProjectDocument/model/index.ts +22 -0
- package/src/features/Decision/PublishProject/index.ts +1 -0
- package/src/features/Decision/PublishProject/model/index.ts +22 -0
- package/src/features/Decision/ValidateDecision/index.ts +1 -0
- package/src/features/Decision/ValidateDecision/model/index.ts +27 -0
- package/src/features/Decision/VoteAgainstDecision/index.ts +1 -0
- package/src/features/Decision/VoteAgainstDecision/model/index.ts +27 -0
- package/src/features/Decision/VoteForDecision/index.ts +1 -0
- package/src/features/Decision/VoteForDecision/model/index.ts +32 -0
- package/src/features/Extension/InstallExtension/index.ts +1 -0
- package/src/features/Extension/InstallExtension/model/index.ts +25 -0
- package/src/features/Extension/UninstallExtension/index.ts +1 -0
- package/src/features/Extension/UninstallExtension/model/index.ts +23 -0
- package/src/features/Extension/UpdateExtension/index.ts +1 -0
- package/src/features/Extension/UpdateExtension/model/index.ts +25 -0
- package/src/features/Fund/CreateFund/index.ts +1 -0
- package/src/features/Fund/CreateFund/model/index.ts +27 -0
- package/src/features/Fund/DeleteFund/index.ts +1 -0
- package/src/features/Fund/DeleteFund/model/index.ts +27 -0
- package/src/features/Fund/EditFund/index.ts +1 -0
- package/src/features/Fund/EditFund/model/index.ts +27 -0
- package/src/features/Installer/api/index.ts +13 -0
- package/src/features/Installer/index.ts +2 -0
- package/src/features/Installer/model/index.ts +20 -0
- package/src/features/Installer/ui/RequestKeyForm/RequestKeyForm.vue +57 -0
- package/src/features/Installer/ui/RequestKeyForm/index.ts +1 -0
- package/src/features/Installer/ui/SetSovietForm/SetSovietForm.vue +71 -0
- package/src/features/Installer/ui/SetSovietForm/index.ts +1 -0
- package/src/features/Installer/ui/index.ts +2 -0
- package/src/features/Order/SetStatus/api/index.ts +7 -0
- package/src/features/Order/SetStatus/index.ts +1 -0
- package/src/features/Order/SetStatus/model/index.ts +23 -0
- package/src/features/Order/SetStatus/ui/SetOrderCompletedStatusButton/SetOrderCompletedStatusButton.vue +48 -0
- package/src/features/Order/SetStatus/ui/SetOrderCompletedStatusButton/index.ts +1 -0
- package/src/features/Order/SetStatus/ui/SetOrderPaidStatusButton/SetOrderPaidStatusButton.vue +49 -0
- package/src/features/Order/SetStatus/ui/SetOrderPaidStatusButton/index.ts +1 -0
- package/src/features/Order/SetStatus/ui/SetOrderRefundedStatusButton/SetOrderRefundedStatusButton.vue +49 -0
- package/src/features/Order/SetStatus/ui/SetOrderRefundedStatusButton/index.ts +1 -0
- package/src/features/PaymentMethod/AddPaymentMethod/index.ts +2 -0
- package/src/features/PaymentMethod/AddPaymentMethod/model/index.ts +56 -0
- package/src/features/PaymentMethod/AddPaymentMethod/ui/AddPaymentButton.vue +166 -0
- package/src/features/PaymentMethod/AddPaymentMethod/ui/index.ts +1 -0
- package/src/features/PaymentMethod/DeletePaymentMethod/index.ts +1 -0
- package/src/features/PaymentMethod/DeletePaymentMethod/model/index.ts +29 -0
- package/src/features/PaymentMethod/DeletePaymentMethod/ui/DeletePaymentMethodButton.vue +67 -0
- package/src/features/PaymentMethod/DeletePaymentMethod/ui/index.ts +1 -0
- package/src/features/PaymentMethod/UpdateBankAccount/api/index.ts +14 -0
- package/src/features/PaymentMethod/UpdateBankAccount/index.ts +1 -0
- package/src/features/PaymentMethod/UpdateBankAccount/model/index.ts +34 -0
- package/src/features/Request/AcceptRequest/api/index.ts +53 -0
- package/src/features/Request/AcceptRequest/index.ts +3 -0
- package/src/features/Request/AcceptRequest/model/index.ts +1 -0
- package/src/features/Request/AcceptRequest/model/types.ts +5 -0
- package/src/features/Request/AcceptRequest/ui/AcceptButton.vue +37 -0
- package/src/features/Request/AcceptRequest/ui/index.ts +1 -0
- package/src/features/Request/CancelRequest/api/index.ts +44 -0
- package/src/features/Request/CancelRequest/index.ts +3 -0
- package/src/features/Request/CancelRequest/model/index.ts +1 -0
- package/src/features/Request/CancelRequest/model/types.ts +5 -0
- package/src/features/Request/CancelRequest/ui/CancelButton.vue +36 -0
- package/src/features/Request/CancelRequest/ui/index.ts +1 -0
- package/src/features/Request/CompleteOnRequest/api/index.ts +43 -0
- package/src/features/Request/CompleteOnRequest/index.ts +3 -0
- package/src/features/Request/CompleteOnRequest/model/index.ts +1 -0
- package/src/features/Request/CompleteOnRequest/model/types.ts +5 -0
- package/src/features/Request/CompleteOnRequest/ui/CompleteOnRequestButton.vue +37 -0
- package/src/features/Request/CompleteOnRequest/ui/index.ts +1 -0
- package/src/features/Request/ConfirmRecieveOnRequest/api/index.ts +53 -0
- package/src/features/Request/ConfirmRecieveOnRequest/index.ts +3 -0
- package/src/features/Request/ConfirmRecieveOnRequest/model/index.ts +1 -0
- package/src/features/Request/ConfirmRecieveOnRequest/model/types.ts +5 -0
- package/src/features/Request/ConfirmRecieveOnRequest/ui/ConfirmRecieveOnRequest.vue +37 -0
- package/src/features/Request/ConfirmRecieveOnRequest/ui/index.ts +1 -0
- package/src/features/Request/ConfirmSupplyOnRequest/api/index.ts +53 -0
- package/src/features/Request/ConfirmSupplyOnRequest/index.ts +3 -0
- package/src/features/Request/ConfirmSupplyOnRequest/model/index.ts +1 -0
- package/src/features/Request/ConfirmSupplyOnRequest/model/types.ts +5 -0
- package/src/features/Request/ConfirmSupplyOnRequest/ui/ConfirmSupplyOnRequestButton.vue +38 -0
- package/src/features/Request/ConfirmSupplyOnRequest/ui/index.ts +1 -0
- package/src/features/Request/CreateChildOrder/api/index.ts +60 -0
- package/src/features/Request/CreateChildOrder/index.ts +3 -0
- package/src/features/Request/CreateChildOrder/model/index.ts +1 -0
- package/src/features/Request/CreateChildOrder/model/types.ts +17 -0
- package/src/features/Request/CreateChildOrder/ui/CreateChildOrderButton/CreateChildOrderButton.vue +30 -0
- package/src/features/Request/CreateChildOrder/ui/CreateChildOrderButton/index.ts +1 -0
- package/src/features/Request/CreateChildOrder/ui/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/api/index.ts +61 -0
- package/src/features/Request/CreateParentOffer/index.ts +3 -0
- package/src/features/Request/CreateParentOffer/model/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/model/types.ts +22 -0
- package/src/features/Request/CreateParentOffer/ui/CreateParentOfferForm/CreateParentOfferForm.vue +78 -0
- package/src/features/Request/CreateParentOffer/ui/CreateParentOfferForm/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/ui/ImageUploaderWithPreview/ImageUploaderWithPreview.vue +48 -0
- package/src/features/Request/CreateParentOffer/ui/ImageUploaderWithPreview/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/ui/ImagesPreview/ImagesPreview.vue +104 -0
- package/src/features/Request/CreateParentOffer/ui/ImagesPreview/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/ui/index.ts +3 -0
- package/src/features/Request/DeclineRequest/api/index.ts +45 -0
- package/src/features/Request/DeclineRequest/index.ts +3 -0
- package/src/features/Request/DeclineRequest/model/index.ts +1 -0
- package/src/features/Request/DeclineRequest/model/types.ts +5 -0
- package/src/features/Request/DeclineRequest/ui/DeclineButton.vue +37 -0
- package/src/features/Request/DeclineRequest/ui/index.ts +1 -0
- package/src/features/Request/DeliverOnRequest/api/index.ts +43 -0
- package/src/features/Request/DeliverOnRequest/index.ts +3 -0
- package/src/features/Request/DeliverOnRequest/model/index.ts +1 -0
- package/src/features/Request/DeliverOnRequest/model/types.ts +5 -0
- package/src/features/Request/DeliverOnRequest/ui/DeliverOnRequestButton.vue +38 -0
- package/src/features/Request/DeliverOnRequest/ui/index.ts +1 -0
- package/src/features/Request/DisputeOnRequest/api/index.ts +53 -0
- package/src/features/Request/DisputeOnRequest/index.ts +3 -0
- package/src/features/Request/DisputeOnRequest/model/index.ts +1 -0
- package/src/features/Request/DisputeOnRequest/model/types.ts +5 -0
- package/src/features/Request/DisputeOnRequest/ui/DisputeOnRequestButton.vue +37 -0
- package/src/features/Request/DisputeOnRequest/ui/index.ts +1 -0
- package/src/features/Request/ModerateRequest/api/index.ts +43 -0
- package/src/features/Request/ModerateRequest/index.ts +3 -0
- package/src/features/Request/ModerateRequest/model/index.ts +1 -0
- package/src/features/Request/ModerateRequest/model/types.ts +6 -0
- package/src/features/Request/ModerateRequest/ui/ModerateRequestButton.vue +40 -0
- package/src/features/Request/ModerateRequest/ui/index.ts +1 -0
- package/src/features/Request/ProhibitRequest/api/index.ts +43 -0
- package/src/features/Request/ProhibitRequest/index.ts +3 -0
- package/src/features/Request/ProhibitRequest/model/index.ts +1 -0
- package/src/features/Request/ProhibitRequest/model/types.ts +5 -0
- package/src/features/Request/ProhibitRequest/ui/ProhibitRequestButton.vue +36 -0
- package/src/features/Request/ProhibitRequest/ui/index.ts +1 -0
- package/src/features/Request/PublishRequest/api/index.ts +44 -0
- package/src/features/Request/PublishRequest/index.ts +3 -0
- package/src/features/Request/PublishRequest/model/index.ts +1 -0
- package/src/features/Request/PublishRequest/model/types.ts +5 -0
- package/src/features/Request/PublishRequest/ui/PublishRequestButton.vue +36 -0
- package/src/features/Request/PublishRequest/ui/index.ts +1 -0
- package/src/features/Request/RecieveOnRequest/api/index.ts +53 -0
- package/src/features/Request/RecieveOnRequest/index.ts +3 -0
- package/src/features/Request/RecieveOnRequest/model/index.ts +1 -0
- package/src/features/Request/RecieveOnRequest/model/types.ts +5 -0
- package/src/features/Request/RecieveOnRequest/ui/RecieveOnRequestButton.vue +37 -0
- package/src/features/Request/RecieveOnRequest/ui/index.ts +1 -0
- package/src/features/Request/SupplyOnRequest/api/index.ts +53 -0
- package/src/features/Request/SupplyOnRequest/index.ts +3 -0
- package/src/features/Request/SupplyOnRequest/model/index.ts +1 -0
- package/src/features/Request/SupplyOnRequest/model/types.ts +5 -0
- package/src/features/Request/SupplyOnRequest/ui/SupplyOnRequestButton.vue +37 -0
- package/src/features/Request/SupplyOnRequest/ui/index.ts +1 -0
- package/src/features/Request/UnpublishRequest/api/index.ts +44 -0
- package/src/features/Request/UnpublishRequest/index.ts +3 -0
- package/src/features/Request/UnpublishRequest/model/index.ts +1 -0
- package/src/features/Request/UnpublishRequest/model/types.ts +5 -0
- package/src/features/Request/UnpublishRequest/ui/UnpublishRequestButton.vue +36 -0
- package/src/features/Request/UnpublishRequest/ui/index.ts +1 -0
- package/src/features/Request/UpdateRequest/api/index.ts +47 -0
- package/src/features/Request/UpdateRequest/index.ts +3 -0
- package/src/features/Request/UpdateRequest/model/index.ts +1 -0
- package/src/features/Request/UpdateRequest/model/types.ts +10 -0
- package/src/features/Request/UpdateRequest/ui/UpdateRequestButton.vue +28 -0
- package/src/features/Request/UpdateRequest/ui/index.ts +1 -0
- package/src/features/Settings/UpdateSettings/api/index.ts +11 -0
- package/src/features/Settings/UpdateSettings/index.ts +2 -0
- package/src/features/Settings/UpdateSettings/model/index.ts +16 -0
- package/src/features/Settings/index.ts +2 -0
- package/src/features/Union/ActivateCooperative/index.ts +1 -0
- package/src/features/Union/ActivateCooperative/model/index.ts +33 -0
- package/src/features/Union/AddCooperative/index.ts +2 -0
- package/src/features/Union/AddCooperative/model/index.ts +33 -0
- package/src/features/Union/AddCooperative/ui/AddCooperativeForm.vue +91 -0
- package/src/features/Union/AddCooperative/ui/index.ts +1 -0
- package/src/features/Union/BlockCooperative/index.ts +1 -0
- package/src/features/Union/BlockCooperative/model/index.ts +33 -0
- package/src/features/Union/DeleteCooperative/index.ts +1 -0
- package/src/features/Union/DeleteCooperative/model/index.ts +32 -0
- package/src/features/Union/LoadCooperatives/api/index.ts +33 -0
- package/src/features/Union/LoadCooperatives/index.ts +2 -0
- package/src/features/Union/LoadCooperatives/model/index.ts +16 -0
- package/src/features/User/AddUser/api/index.ts +11 -0
- package/src/features/User/AddUser/index.ts +3 -0
- package/src/features/User/AddUser/model/index.ts +59 -0
- package/src/features/User/AddUser/ui/AddUserDialog/AddUserDialog.vue +232 -0
- package/src/features/User/AddUser/ui/AddUserDialog/index.ts +1 -0
- package/src/features/User/AddUser/ui/index.ts +1 -0
- package/src/features/User/CreateUser/api/index.ts +65 -0
- package/src/features/User/CreateUser/index.ts +2 -0
- package/src/features/User/CreateUser/model/index.ts +237 -0
- package/src/features/User/LoginUser/api/index.ts +20 -0
- package/src/features/User/LoginUser/index.ts +2 -0
- package/src/features/User/LoginUser/model/index.ts +69 -0
- package/src/features/User/LoginUser/ui/LoginForm/LoginForm.vue +78 -0
- package/src/features/User/LoginUser/ui/LoginForm/index.ts +1 -0
- package/src/features/User/Logout/api/index.ts +16 -0
- package/src/features/User/Logout/index.ts +2 -0
- package/src/features/User/Logout/model/index.ts +21 -0
- package/src/features/User/LostKey/api/index.ts +9 -0
- package/src/features/User/LostKey/index.ts +2 -0
- package/src/features/User/LostKey/model/index.ts +11 -0
- package/src/features/User/ResetKey/api/index.ts +9 -0
- package/src/features/User/ResetKey/index.ts +2 -0
- package/src/features/User/ResetKey/model/index.ts +11 -0
- package/src/features/User/UpdateMeta/index.ts +1 -0
- package/src/features/User/UpdateMeta/model/index.ts +34 -0
- package/src/features/Wallet/DepositToWallet/index.ts +1 -0
- package/src/features/Wallet/DepositToWallet/ui/DepositButton/DepositButton.vue +79 -0
- package/src/features/Wallet/DepositToWallet/ui/DepositButton/index.ts +1 -0
- package/src/features/Wallet/DepositToWallet/ui/index.ts +1 -0
- package/src/features/Wallet/WithdrawFromWallet/index.ts +1 -0
- package/src/features/Wallet/WithdrawFromWallet/ui/index.ts +1 -0
- package/src/features/Wallet/WithdrawFromWallet/ui/withdrawButton.vue +54 -0
- package/src/i18n/index.ts +5 -0
- package/src/i18n/ru-RU/index.ts +7 -0
- package/src/index.ts +1 -0
- package/src/pages/Cooperative/Contacts/index.ts +1 -0
- package/src/pages/Cooperative/Contacts/ui/ContactsPage.vue +7 -0
- package/src/pages/Cooperative/Contacts/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfBranches/index.ts +1 -0
- package/src/pages/Cooperative/ListOfBranches/ui/ListOfBranchesPage.vue +101 -0
- package/src/pages/Cooperative/ListOfBranches/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfOrders/index.ts +1 -0
- package/src/pages/Cooperative/ListOfOrders/ui/ListOfOrdersPage.vue +12 -0
- package/src/pages/Cooperative/ListOfOrders/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfParticipants/index.ts +1 -0
- package/src/pages/Cooperative/ListOfParticipants/ui/ListOfParticipantsPage.vue +14 -0
- package/src/pages/Cooperative/ListOfParticipants/ui/index.ts +1 -0
- package/src/pages/Cooperative/MembersPage/MembersPage.vue +10 -0
- package/src/pages/Cooperative/MembersPage/index.ts +1 -0
- package/src/pages/Cooperative/SettingsPage/CooperativeSettingsPage.vue +5 -0
- package/src/pages/Cooperative/SettingsPage/index.ts +1 -0
- package/src/pages/Documentor/ListOfDocuments/ListOfDocumentsPage.vue +10 -0
- package/src/pages/Documentor/ListOfDocuments/index.ts +1 -0
- package/src/pages/ExtStore/BaseRoute/ExtensionStoreBase.vue +5 -0
- package/src/pages/ExtStore/BaseRoute/index.ts +1 -0
- package/src/pages/ExtStore/ExtensionPage/ExtensionPage.vue +205 -0
- package/src/pages/ExtStore/ExtensionPage/index.ts +1 -0
- package/src/pages/ExtStore/ExtensionsShowcase/ExtensionsShowcase.vue +18 -0
- package/src/pages/ExtStore/ExtensionsShowcase/index.ts +1 -0
- package/src/pages/ExtStore/InstalledExtensions/InstalledExtensions.vue +18 -0
- package/src/pages/ExtStore/InstalledExtensions/index.ts +1 -0
- package/src/pages/Installer/index.ts +1 -0
- package/src/pages/Installer/ui/InstallCooperativePage.vue +9 -0
- package/src/pages/Installer/ui/index.ts +1 -0
- package/src/pages/Marketplace/CreateParentOffer/index.ts +1 -0
- package/src/pages/Marketplace/CreateParentOffer/ui/CreateParentOfferPage.vue +13 -0
- package/src/pages/Marketplace/CreateParentOffer/ui/index.ts +1 -0
- package/src/pages/Marketplace/MainPage/index.ts +1 -0
- package/src/pages/Marketplace/MainPage/ui/MainPage.vue +36 -0
- package/src/pages/Marketplace/MainPage/ui/index.ts +1 -0
- package/src/pages/Marketplace/Moderation/index.ts +1 -0
- package/src/pages/Marketplace/Moderation/ui/ModerationPage.vue +59 -0
- package/src/pages/Marketplace/Moderation/ui/index.ts +1 -0
- package/src/pages/Marketplace/OfferPage/index.ts +1 -0
- package/src/pages/Marketplace/OfferPage/ui/OfferPage.vue +162 -0
- package/src/pages/Marketplace/OfferPage/ui/index.ts +1 -0
- package/src/pages/Marketplace/Showcase/index.ts +1 -0
- package/src/pages/Marketplace/Showcase/ui/ShowcasePage.vue +42 -0
- package/src/pages/Marketplace/Showcase/ui/index.ts +1 -0
- package/src/pages/Marketplace/SuppliesList/index.ts +1 -0
- package/src/pages/Marketplace/SuppliesList/ui/SuppliesListPage.vue +18 -0
- package/src/pages/Marketplace/SuppliesList/ui/index.ts +1 -0
- package/src/pages/Marketplace/UserParentOffers/index.ts +1 -0
- package/src/pages/Marketplace/UserParentOffers/ui/UserParentOffersPage.vue +44 -0
- package/src/pages/Marketplace/UserParentOffers/ui/index.ts +1 -0
- package/src/pages/Marketplace/UserSuppliesList/index.ts +1 -0
- package/src/pages/Marketplace/UserSuppliesList/ui/UserSuppliesListPage.vue +29 -0
- package/src/pages/Marketplace/UserSuppliesList/ui/index.ts +1 -0
- package/src/pages/Registrator/LostKey/index.ts +1 -0
- package/src/pages/Registrator/LostKey/ui/LostKeyPage.vue +13 -0
- package/src/pages/Registrator/LostKey/ui/index.ts +1 -0
- package/src/pages/Registrator/ResetKey/index.ts +1 -0
- package/src/pages/Registrator/ResetKey/ui/ResetKeyPage.vue +9 -0
- package/src/pages/Registrator/ResetKey/ui/index.ts +1 -0
- package/src/pages/Registrator/SignIn/index.ts +1 -0
- package/src/pages/Registrator/SignIn/ui/SignInPage.vue +26 -0
- package/src/pages/Registrator/SignIn/ui/index.ts +1 -0
- package/src/pages/Registrator/SignUp/EmailInput.vue +74 -0
- package/src/pages/Registrator/SignUp/GenerateAccount.vue +82 -0
- package/src/pages/Registrator/SignUp/PayInitial.vue +70 -0
- package/src/pages/Registrator/SignUp/ReadStatement.vue +103 -0
- package/src/pages/Registrator/SignUp/SelectBranch.vue +50 -0
- package/src/pages/Registrator/SignUp/SetUserData.vue +64 -0
- package/src/pages/Registrator/SignUp/SignStatement.vue +189 -0
- package/src/pages/Registrator/SignUp/SignUp.vue +119 -0
- package/src/pages/Registrator/SignUp/WaitingRegistration.vue +69 -0
- package/src/pages/Registrator/SignUp/Welcome.vue +30 -0
- package/src/pages/Registrator/SignUp/index.ts +1 -0
- package/src/pages/Support/SupportPage.vue +38 -0
- package/src/pages/Support/index.ts +1 -0
- package/src/pages/Union/Connection/ConnectionPage.vue +107 -0
- package/src/pages/Union/Connection/index.ts +1 -0
- package/src/pages/Union/ListOfCooperatives/index.ts +1 -0
- package/src/pages/Union/ListOfCooperatives/ui/UnionPageListOfCooperatives.vue +8 -0
- package/src/pages/Union/ListOfCooperatives/ui/index.ts +1 -0
- package/src/pages/User/CardPage/index.ts +1 -0
- package/src/pages/User/CardPage/ui/CoopCardPage.vue +8 -0
- package/src/pages/User/CardPage/ui/index.ts +1 -0
- package/src/pages/User/IdentityPage/index.ts +1 -0
- package/src/pages/User/IdentityPage/ui/IdentityPage.vue +15 -0
- package/src/pages/User/IdentityPage/ui/index.ts +1 -0
- package/src/pages/User/PaymentMethodsPage/index.ts +1 -0
- package/src/pages/User/PaymentMethodsPage/ui/PaymentMethods.vue +15 -0
- package/src/pages/User/PaymentMethodsPage/ui/index.ts +1 -0
- package/src/pages/User/SettingsPage/index.ts +1 -0
- package/src/pages/User/SettingsPage/ui/UserSettingsPage.vue +5 -0
- package/src/pages/User/SettingsPage/ui/index.ts +1 -0
- package/src/pages/User/WalletPage/index.ts +1 -0
- package/src/pages/User/WalletPage/ui/WalletPage.vue +14 -0
- package/src/pages/User/WalletPage/ui/index.ts +1 -0
- package/src/pages/_layouts/blank.vue +24 -0
- package/src/pages/_layouts/default.vue +78 -0
- package/src/pages/_layouts/permissionDenied.vue +20 -0
- package/src/pages/blank/blank.vue +9 -0
- package/src/pages/index.vue +5 -0
- package/src/quasar.d.ts +9 -0
- package/src/shared/api/alerts.ts +27 -0
- package/src/shared/api/axios.ts +72 -0
- package/src/shared/api/client.ts +13 -0
- package/src/shared/api/crypto.ts +86 -0
- package/src/shared/api/eosio.ts +122 -0
- package/src/shared/api/errors.ts +40 -0
- package/src/shared/api/index.ts +5 -0
- package/src/shared/api/indexDB.ts +39 -0
- package/src/shared/api/sleep.ts +1 -0
- package/src/shared/api/utils.ts +9 -0
- package/src/shared/api/wif.ts +9 -0
- package/src/shared/config/ActionsList.ts +23 -0
- package/src/shared/config/ContractsList.ts +32 -0
- package/src/shared/config/LimitsList.ts +7 -0
- package/src/shared/config/SecondaryIndexesNumbersList.ts +15 -0
- package/src/shared/config/SecondaryIndexesTypesList.ts +7 -0
- package/src/shared/config/TablesList.ts +12 -0
- package/src/shared/config/index.ts +6 -0
- package/src/shared/lib/composables/useEditableData.ts +58 -0
- package/src/shared/lib/composables/useEditableTableRows.ts +89 -0
- package/src/shared/lib/consts/workspaces/index.ts +1 -0
- package/src/shared/lib/document/api/index.ts +12 -0
- package/src/shared/lib/document/index.ts +2 -0
- package/src/shared/lib/document/model/entity.ts +64 -0
- package/src/shared/lib/document/model/index.ts +2 -0
- package/src/shared/lib/document/model/types.ts +9 -0
- package/src/shared/lib/types/crypto/index.ts +5 -0
- package/src/shared/lib/types/document/index.ts +15 -0
- package/src/shared/lib/types/errors/base.ts +5 -0
- package/src/shared/lib/types/errors/index.ts +1 -0
- package/src/shared/lib/types/graphql/index.ts +14 -0
- package/src/shared/lib/types/payments/index.ts +23 -0
- package/src/shared/lib/types/user/IUserData.ts +28 -0
- package/src/shared/lib/types/user/index.ts +53 -0
- package/src/shared/lib/utils/dates/formatToFromNow.ts +6 -0
- package/src/shared/lib/utils/dates/formatToHumanDate.ts +6 -0
- package/src/shared/lib/utils/dates/moment.ts +6 -0
- package/src/shared/lib/utils/formatAssetToReadable.ts +10 -0
- package/src/shared/lib/utils/formatDateForEos.ts +6 -0
- package/src/shared/lib/utils/formatToAsset.ts +4 -0
- package/src/shared/lib/utils/generateUsername.ts +9 -0
- package/src/shared/lib/utils/getNameFromUserData.ts +9 -0
- package/src/shared/lib/utils/index.ts +6 -0
- package/src/shared/lib/utils/isDomainRule.ts +4 -0
- package/src/shared/lib/utils/notEmptyPhoneRule.ts +3 -0
- package/src/shared/lib/utils/notEmptyRule.ts +3 -0
- package/src/shared/lib/utils/validEmailRule.ts +6 -0
- package/src/shared/lib/utils/validatePersonalNameRule.ts +3 -0
- package/src/shared/locales/ru/base.yml +12 -0
- package/src/shared/locales/ru.ts +12 -0
- package/src/shared/store/index.ts +202 -0
- package/src/shared/ui/AutoAvatar/AutoAvatar.vue +37 -0
- package/src/shared/ui/AutoAvatar/index.ts +1 -0
- package/src/shared/ui/BaseDocument/BaseDocument.vue +202 -0
- package/src/shared/ui/BaseDocument/index.ts +1 -0
- package/src/shared/ui/BranchSelector/BranchSelector.vue +47 -0
- package/src/shared/ui/BranchSelector/index.ts +1 -0
- package/src/shared/ui/ComplexDocument/ComplexDocument.vue +25 -0
- package/src/shared/ui/ComplexDocument/index.ts +1 -0
- package/src/shared/ui/DocumentHtmlReader/DocumentHtmlReader.vue +57 -0
- package/src/shared/ui/DocumentHtmlReader/index.ts +1 -0
- package/src/shared/ui/EditableActions/EditableActions.vue +34 -0
- package/src/shared/ui/EditableActions/index.ts +1 -0
- package/src/shared/ui/Footer/Contacts.vue +24 -0
- package/src/shared/ui/Footer/index.ts +1 -0
- package/src/shared/ui/Form/Form.vue +33 -0
- package/src/shared/ui/Form/index.ts +1 -0
- package/src/shared/ui/ImageCarousel/ImageCarousel.vue +68 -0
- package/src/shared/ui/ImageCarousel/index.ts +1 -0
- package/src/shared/ui/Loader/Loader.vue +19 -0
- package/src/shared/ui/Loader/index.ts +1 -0
- package/src/shared/ui/Map/Map.vue +52 -0
- package/src/shared/ui/Map/index.ts +1 -0
- package/src/shared/ui/ModalBase/ModalBase.vue +26 -0
- package/src/shared/ui/ModalBase/index.ts +1 -0
- package/src/shared/ui/PayWithProvider/PayWithProvider.vue +19 -0
- package/src/shared/ui/PayWithProvider/index.ts +1 -0
- package/src/shared/ui/Providers/Bank/Bank.vue +105 -0
- package/src/shared/ui/Providers/Bank/index.ts +1 -0
- package/src/shared/ui/Providers/Yookassa/Yookassa.vue +57 -0
- package/src/shared/ui/Providers/Yookassa/index.ts +1 -0
- package/src/shared/ui/ToogleDarkLight/ToogleDarkLight.vue +34 -0
- package/src/shared/ui/ToogleDarkLight/index.ts +1 -0
- package/src/shared/ui/UserDataForm/EntrepreneurDataForm/EntrepreneurDataForm.vue +115 -0
- package/src/shared/ui/UserDataForm/EntrepreneurDataForm/index.ts +1 -0
- package/src/shared/ui/UserDataForm/IndividualDataForm/IndividualDataForm.vue +40 -0
- package/src/shared/ui/UserDataForm/IndividualDataForm/index.ts +1 -0
- package/src/shared/ui/UserDataForm/OrganizationDataForm/OrganizationDataForm.vue +129 -0
- package/src/shared/ui/UserDataForm/OrganizationDataForm/index.ts +1 -0
- package/src/shared/ui/UserDataForm/UserDataForm/UserDataForm.vue +47 -0
- package/src/shared/ui/UserDataForm/UserDataForm/index.ts +1 -0
- package/src/shared/ui/ZodForm/ZodForm.vue +169 -0
- package/src/shared/ui/ZodForm/index.ts +1 -0
- package/src/shims-vue.d.ts +10 -0
- package/src/stores/index.ts +34 -0
- package/src/stores/store-flag.d.ts +10 -0
- package/src/types/index.ts +3 -0
- package/src/widgets/Agreementer/RequireAgreements/ui/RequireAgreements.vue +71 -0
- package/src/widgets/Agreementer/RequireAgreements/ui/index.ts +1 -0
- package/src/widgets/BankDetailsCard/index.ts +1 -0
- package/src/widgets/BankDetailsCard/ui/BankDetailsCard.vue +107 -0
- package/src/widgets/BankDetailsCard/ui/index.ts +1 -0
- package/src/widgets/BranchCard/index.ts +1 -0
- package/src/widgets/BranchCard/ui/BranchCard.vue +100 -0
- package/src/widgets/BranchCard/ui/index.ts +1 -0
- package/src/widgets/Commutator/Commutator.vue +7 -0
- package/src/widgets/Commutator/index.ts +1 -0
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/index.ts +1 -0
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/ListOfQuestions.vue +265 -0
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Contacts/index.ts +1 -0
- package/src/widgets/Cooperative/Contacts/ui/ChangeContacts.vue +56 -0
- package/src/widgets/Cooperative/Contacts/ui/Contacts.vue +52 -0
- package/src/widgets/Cooperative/Contacts/ui/index.ts +2 -0
- package/src/widgets/Cooperative/Contributions/index.ts +1 -0
- package/src/widgets/Cooperative/Contributions/ui/ChangeContributions.vue +88 -0
- package/src/widgets/Cooperative/Contributions/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Description/ui/SetDescription.vue +4 -0
- package/src/widgets/Cooperative/Description/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Details/index.ts +1 -0
- package/src/widgets/Cooperative/Details/ui/Details.vue +32 -0
- package/src/widgets/Cooperative/Details/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/index.ts +1 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/ListOfDocumentsWidget.vue +156 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Funds/index.ts +1 -0
- package/src/widgets/Cooperative/Funds/ui/AccumulationFunds.vue +121 -0
- package/src/widgets/Cooperative/Funds/ui/AddAccumulationFund.vue +79 -0
- package/src/widgets/Cooperative/Funds/ui/AddExpenseFund.vue +76 -0
- package/src/widgets/Cooperative/Funds/ui/ChangeFunds.vue +11 -0
- package/src/widgets/Cooperative/Funds/ui/ExpenseFunds.vue +113 -0
- package/src/widgets/Cooperative/Funds/ui/index.ts +3 -0
- package/src/widgets/Cooperative/Install/InstallWidgetBase/index.ts +1 -0
- package/src/widgets/Cooperative/Install/InstallWidgetBase/ui/InstallWidgetBase.vue +29 -0
- package/src/widgets/Cooperative/Install/InstallWidgetBase/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Members/index.ts +1 -0
- package/src/widgets/Cooperative/Members/ui/Members.vue +220 -0
- package/src/widgets/Cooperative/Members/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Orders/ListOfOrders/index.ts +1 -0
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/ListOfOrdersWidget.vue +209 -0
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Participants/ExitCard/index.ts +1 -0
- package/src/widgets/Cooperative/Participants/ExitCard/ui/ExitCard.vue +15 -0
- package/src/widgets/Cooperative/Participants/ExitCard/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Participants/ListOfParticipants/index.ts +1 -0
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/ListOfParticipantsWidget.vue +103 -0
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/index.ts +1 -0
- package/src/widgets/Desktop/LeftDrawerMenu/LeftDrawerMenu.vue +10 -0
- package/src/widgets/Desktop/LeftDrawerMenu/index.ts +1 -0
- package/src/widgets/Desktop/SecondLevelMenu/SecondLevelMenu.vue +57 -0
- package/src/widgets/Desktop/SecondLevelMenu/index.ts +1 -0
- package/src/widgets/Desktop/SecondLevelMenuList/SecondLevelMenuList.vue +86 -0
- package/src/widgets/Desktop/SecondLevelMenuList/index.ts +1 -0
- package/src/widgets/Desktop/WorkspaceMenu/WorkspaceMenu.vue +94 -0
- package/src/widgets/Desktop/WorkspaceMenu/index.ts +1 -0
- package/src/widgets/ExtStore/ExtensionCard/ExtensionCard.vue +38 -0
- package/src/widgets/ExtStore/ExtensionCard/index.ts +1 -0
- package/src/widgets/Header/CommonHeader/Header.vue +203 -0
- package/src/widgets/Header/CommonHeader/index.ts +1 -0
- package/src/widgets/Header/SettingsDropdown/SettingsDropdown.vue +86 -0
- package/src/widgets/Header/SettingsDropdown/index.ts +1 -0
- package/src/widgets/IndividualCard/index.ts +1 -0
- package/src/widgets/IndividualCard/ui/IndividualCard.vue +170 -0
- package/src/widgets/IndividualCard/ui/index.ts +1 -0
- package/src/widgets/OrganizationCard/index.ts +1 -0
- package/src/widgets/OrganizationCard/ui/OrganizationCard.vue +44 -0
- package/src/widgets/OrganizationCard/ui/index.ts +1 -0
- package/src/widgets/Registrator/AlreadyRegistered/AlreadyRegistered.vue +19 -0
- package/src/widgets/Registrator/AlreadyRegistered/index.ts +1 -0
- package/src/widgets/Registrator/LostKey/index.ts +1 -0
- package/src/widgets/Registrator/LostKey/ui/LostKey.vue +63 -0
- package/src/widgets/Registrator/LostKey/ui/index.ts +1 -0
- package/src/widgets/Registrator/ResetKey/index.ts +1 -0
- package/src/widgets/Registrator/ResetKey/ui/ResetKey.vue +89 -0
- package/src/widgets/Registrator/ResetKey/ui/index.ts +1 -0
- package/src/widgets/Registrator/SignIn/SignIn.vue +12 -0
- package/src/widgets/Registrator/SignIn/index.ts +1 -0
- package/src/widgets/Request/CreateChildOrderCard/CreateChildOrderCard.vue +57 -0
- package/src/widgets/Request/CreateChildOrderCard/index.ts +1 -0
- package/src/widgets/Request/RequestCard/RequestCard.vue +37 -0
- package/src/widgets/Request/RequestCard/index.ts +1 -0
- package/src/widgets/Request/SupplyOrderRequestCard/index.ts +2 -0
- package/src/widgets/Request/SupplyOrderRequestCard/model/index.ts +1 -0
- package/src/widgets/Request/SupplyOrderRequestCard/model/types.ts +10 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Base/Base.vue +93 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Base/index.ts +1 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/EightStep.vue +28 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/FifthStep.vue +34 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/FirstStep.vue +39 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/FourthStep.vue +37 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/SecondStep.vue +18 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/SeventhStep.vue +37 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/SixthStep.vue +37 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/ThirdStep.vue +51 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/index.ts +8 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/index.ts +1 -0
- package/src/widgets/Union/ListOfCooperatives/index.ts +1 -0
- package/src/widgets/Union/ListOfCooperatives/ui/UnionListOfCooperatives.vue +136 -0
- package/src/widgets/Union/ListOfCooperatives/ui/index.ts +1 -0
- package/src/widgets/User/CoopCard/index.ts +1 -0
- package/src/widgets/User/CoopCard/ui/CoopCard.vue +111 -0
- package/src/widgets/User/CoopCard/ui/index.ts +1 -0
- package/src/widgets/User/LogoutCard/index.ts +1 -0
- package/src/widgets/User/LogoutCard/ui/LogoutCard.vue +31 -0
- package/src/widgets/User/LogoutCard/ui/index.ts +1 -0
- package/src/widgets/User/PaymentMethods/index.ts +1 -0
- package/src/widgets/User/PaymentMethods/ui/PaymentMethods.vue +116 -0
- package/src/widgets/User/PaymentMethods/ui/index.ts +1 -0
- package/src/widgets/User/PersonalCard/index.ts +1 -0
- package/src/widgets/User/PersonalCard/ui/PersonalCard.vue +109 -0
- package/src/widgets/User/PersonalCard/ui/UserQR.vue +5 -0
- package/src/widgets/User/PersonalCard/ui/index.ts +2 -0
- package/src/widgets/User/WalletCard/index.ts +1 -0
- package/src/widgets/User/WalletCard/ui/WalletCard.vue +26 -0
- package/src/widgets/User/WalletCard/ui/index.ts +1 -0
- package/src-ssr/middlewares/render.ts +59 -0
- package/src-ssr/server.ts +134 -0
- package/src-ssr/ssr-flag.d.ts +10 -0
- package/tsconfig.json +25 -0
- package/tsconfig.vue-tsc.json +9 -0
- package/vite.111config.js +37 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
<script setup lang="ts">
|
2
|
+
import { CancelButton } from 'src/features/Request/CancelRequest'
|
3
|
+
import { ConfirmRecieveOnRequestButton } from 'src/features/Request/ConfirmRecieveOnRequest'
|
4
|
+
import { computed, withDefaults } from 'vue'
|
5
|
+
import type { IStepProps } from '../../model'
|
6
|
+
import { useSessionStore } from 'src/entities/Session'
|
7
|
+
const session = useSessionStore()
|
8
|
+
const username = computed(() => session.username)
|
9
|
+
|
10
|
+
const props = withDefaults(defineProps<IStepProps>(), {})
|
11
|
+
const isActive = computed(() => props.request.status === 'recieved1')
|
12
|
+
const currentStep = computed(()=> props.currentStep)
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<template lang="pug">
|
16
|
+
div
|
17
|
+
template(v-if="props.iAmAuthorizer")
|
18
|
+
q-step(
|
19
|
+
:name="7"
|
20
|
+
title="Подтвердите выдачу имущества"
|
21
|
+
icon="settings"
|
22
|
+
:done="currentStep > 7"
|
23
|
+
)
|
24
|
+
span Пожалуйста, подтвердите выдачу имущества по заказу в течении {time}
|
25
|
+
q-stepper-navigation.q-gutter-sm
|
26
|
+
CancelButton(v-if="iAmAuthorizer && isActive" :request-id="Number(request.id)" :coopname="request.coopname" :username="username")
|
27
|
+
ConfirmRecieveOnRequestButton(v-if="iAmAuthorizer && isActive" :request-id="Number(request.id)" :coopname="request.coopname" :username="username")
|
28
|
+
|
29
|
+
template(v-else)
|
30
|
+
q-step(
|
31
|
+
:name="7"
|
32
|
+
title="Формируются закрывающие документы"
|
33
|
+
icon="settings"
|
34
|
+
:done="currentStep > 7"
|
35
|
+
)
|
36
|
+
span Ожидаем цифровую подпись уполномоченного на акте приёма-передачи имущества
|
37
|
+
</template>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<script setup lang="ts">
|
2
|
+
import { CancelButton } from 'src/features/Request/CancelRequest'
|
3
|
+
import { RecieveOnRequestButton } from 'src/features/Request/RecieveOnRequest'
|
4
|
+
import { computed, withDefaults } from 'vue'
|
5
|
+
import type { IStepProps } from '../../model'
|
6
|
+
import { useSessionStore } from 'src/entities/Session'
|
7
|
+
const session = useSessionStore()
|
8
|
+
const username = computed(() => session.username)
|
9
|
+
|
10
|
+
const props = withDefaults(defineProps<IStepProps>(), {})
|
11
|
+
const isActive = computed(() => props.request.status === 'delivered')
|
12
|
+
const currentStep = computed(()=> props.currentStep)
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<template lang="pug">
|
16
|
+
div
|
17
|
+
template(v-if="props.iAmReciever")
|
18
|
+
q-step(
|
19
|
+
:name="6"
|
20
|
+
title="Получите имущество из участка"
|
21
|
+
icon="settings"
|
22
|
+
:done="currentStep > 6"
|
23
|
+
)
|
24
|
+
span Пожалуйста, получите имущество из участка {point} в течении {time}
|
25
|
+
q-stepper-navigation.q-gutter-sm
|
26
|
+
CancelButton(v-if="iAmReciever && isActive" :request-id=Number("request.id") :coopname="request.coopname" :username="username")
|
27
|
+
RecieveOnRequestButton(v-if="iAmReciever && isActive" :request-id=Number("request.id") :coopname="request.coopname" :username="username")
|
28
|
+
|
29
|
+
template(v-else)
|
30
|
+
q-step(
|
31
|
+
:name="6"
|
32
|
+
title="Заказчик получает имущество"
|
33
|
+
icon="settings"
|
34
|
+
:done="currentStep > 6"
|
35
|
+
)
|
36
|
+
span Заказчик получит имущество не позднее чем через {time}
|
37
|
+
</template>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<script setup lang="ts">
|
2
|
+
import { CancelButton } from 'src/features/Request/CancelRequest'
|
3
|
+
import { SupplyOnRequestButton } from 'src/features/Request/SupplyOnRequest'
|
4
|
+
import { computed, withDefaults } from 'vue'
|
5
|
+
import type { IStepProps } from '../../model'
|
6
|
+
|
7
|
+
import { useSessionStore } from 'src/entities/Session'
|
8
|
+
const session = useSessionStore()
|
9
|
+
const username = computed(() => session.username)
|
10
|
+
|
11
|
+
const props = withDefaults(defineProps<IStepProps>(), {})
|
12
|
+
const currentStep = computed(()=> props.currentStep)
|
13
|
+
const isActive = computed(() => props.request.status === 'authorized')
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<template lang="pug">
|
17
|
+
div
|
18
|
+
template(v-if="iAmAuthorizer")
|
19
|
+
q-step(
|
20
|
+
:name="3"
|
21
|
+
title="Примите имущество"
|
22
|
+
icon="settings"
|
23
|
+
:done="currentStep > 3"
|
24
|
+
)
|
25
|
+
span Пожалуйста, осмотрите имущество и примите его в кооператив, оставив подпись на акте приёма-передачи.
|
26
|
+
|
27
|
+
q-stepper-navigation.q-gutter-sm
|
28
|
+
CancelButton(:request-id="Number(request.id)" :coopname="request.coopname" :username="username")
|
29
|
+
SupplyOnRequestButton(:request-id="Number(request.id)" :coopname="request.coopname" :username="username")
|
30
|
+
|
31
|
+
template(v-else-if="iAmSupplier")
|
32
|
+
q-step(
|
33
|
+
:name="3"
|
34
|
+
title="Доставьте имущество до участка"
|
35
|
+
icon="settings"
|
36
|
+
:done="currentStep > 3"
|
37
|
+
)
|
38
|
+
span Пожалуйста, доставьте имущество до ближайшего участка в течении {time} и покажите {QR}
|
39
|
+
q-stepper-navigation.q-gutter-sm
|
40
|
+
CancelButton(v-if="iAmSupplier && isActive" :request-id="Number(request.id)" :coopname="request.coopname" :username="username")
|
41
|
+
|
42
|
+
|
43
|
+
template(v-else-if="iAmReciever")
|
44
|
+
q-step(
|
45
|
+
:name="3"
|
46
|
+
title="Поставщик доставляет имущество"
|
47
|
+
icon="settings"
|
48
|
+
:done="currentStep > 3"
|
49
|
+
)
|
50
|
+
span Прямо сейчас поставщик везёт ваше имущество на участок и доставит его не позднее чем через {time}
|
51
|
+
</template>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export { default as FirstStep } from './FirstStep.vue'
|
2
|
+
export { default as SecondStep } from './SecondStep.vue'
|
3
|
+
export { default as ThirdStep } from './ThirdStep.vue'
|
4
|
+
export { default as FourthStep } from './FourthStep.vue'
|
5
|
+
export { default as FifthStep } from './FifthStep.vue'
|
6
|
+
export { default as SixthStep } from './SixthStep.vue'
|
7
|
+
export { default as SeventhStep } from './SeventhStep.vue'
|
8
|
+
export { default as EightStep } from './EightStep.vue'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Base'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ui'
|
@@ -0,0 +1,136 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div
|
3
|
+
q-table(
|
4
|
+
v-if="coops"
|
5
|
+
ref="tableRef" v-model:expanded="expanded"
|
6
|
+
flat
|
7
|
+
:rows="coops"
|
8
|
+
:columns="columns"
|
9
|
+
:table-colspan="9"
|
10
|
+
row-key="username"
|
11
|
+
:pagination="pagination"
|
12
|
+
virtual-scroll
|
13
|
+
:virtual-scroll-item-size="48"
|
14
|
+
:rows-per-page-options="[10]"
|
15
|
+
:loading="onLoading"
|
16
|
+
:no-data-label="'Нет кооперативов'"
|
17
|
+
).full-height
|
18
|
+
template(#top)
|
19
|
+
|
20
|
+
|
21
|
+
template(#header="props")
|
22
|
+
|
23
|
+
q-tr(:props="props")
|
24
|
+
q-th(auto-width)
|
25
|
+
|
26
|
+
q-th(
|
27
|
+
v-for="col in props.cols"
|
28
|
+
:key="col.name"
|
29
|
+
:props="props"
|
30
|
+
) {{ col.label }}
|
31
|
+
|
32
|
+
template(#body="props")
|
33
|
+
q-tr(:key="`m_${props.row.username}`" :props="props")
|
34
|
+
q-td(auto-width)
|
35
|
+
q-btn(size="sm" color="primary" round dense :icon="props.expand ? 'remove' : 'add'" @click="props.expand = !props.expand")
|
36
|
+
q-td {{ props.row.username }}
|
37
|
+
q-td {{ props.row.announce }}
|
38
|
+
|
39
|
+
q-td
|
40
|
+
q-badge(v-if="props.row.status === 'active'" color="teal") активен
|
41
|
+
q-badge(v-if="props.row.status === 'pending'" color="orange") на рассмотрении
|
42
|
+
q-badge(v-if="props.row.status === 'blocked'" color="red") заблокирован
|
43
|
+
|
44
|
+
q-td {{ moment(props.row.created_at).format('DD.MM.YY HH:mm:ss') }}
|
45
|
+
|
46
|
+
q-td
|
47
|
+
q-btn-dropdown( label="действия" flat size="sm")
|
48
|
+
q-list
|
49
|
+
q-item(v-if="props.row.status !== 'active'" clickable v-close-popup @click="activate(props.row.username)")
|
50
|
+
q-item-section
|
51
|
+
q-item-label Активировать
|
52
|
+
q-item(v-if="props.row.status !== 'blocked'" clickable v-close-popup @click="block(props.row.username)")
|
53
|
+
q-item-section
|
54
|
+
q-item-label Заблокировать
|
55
|
+
//- q-item(clickable v-close-popup @click="deleteCoop(props.row.username)")
|
56
|
+
//- q-item-section
|
57
|
+
//- q-item-label Удалить
|
58
|
+
|
59
|
+
q-tr(v-show="props.expand" :key="`e_${props.row.username}`" :props="props" class="q-virtual-scroll--with-prev")
|
60
|
+
q-td(colspan="100%")
|
61
|
+
slot(:expand="props.expand" :receiver="props.row.username")
|
62
|
+
ListOfDocumentsWidget(:expand="true" :documentType="'newsubmitted'" :filter="{receiver: props.row.username, data: getDataFilter(props.row.document.hash)}")
|
63
|
+
|
64
|
+
</template>
|
65
|
+
<script setup lang="ts">
|
66
|
+
import { useLoadCooperatives } from 'src/features/Union/LoadCooperatives';
|
67
|
+
const {loadCooperatives} = useLoadCooperatives()
|
68
|
+
import { useUnionStore } from 'src/entities/Union/model';
|
69
|
+
import { computed, ref } from 'vue';
|
70
|
+
import moment from 'moment-with-locales-es6'
|
71
|
+
import { useActivateCooperative } from 'src/features/Union/ActivateCooperative';
|
72
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api/alerts';
|
73
|
+
import { useBlockCooperative } from 'src/features/Union/BlockCooperative';
|
74
|
+
const union = useUnionStore()
|
75
|
+
|
76
|
+
import { ListOfDocumentsWidget } from 'src/widgets/Cooperative/Documents/ListOfDocuments';
|
77
|
+
const getDataFilter = (hash: string) => {
|
78
|
+
return {
|
79
|
+
document: {
|
80
|
+
hash: hash.toUpperCase()
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
const coops = computed(() => union.coops)
|
86
|
+
|
87
|
+
loadCooperatives()
|
88
|
+
|
89
|
+
const activate = async (coopname: string) => {
|
90
|
+
const {activateCooperative} = useActivateCooperative()
|
91
|
+
|
92
|
+
try {
|
93
|
+
await activateCooperative(coopname)
|
94
|
+
loadCooperatives()
|
95
|
+
SuccessAlert('Кооператив активирован')
|
96
|
+
} catch(e: any) {
|
97
|
+
FailAlert(e.message)
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
const block = async (coopname: string) => {
|
102
|
+
const {blockCooperative} = useBlockCooperative()
|
103
|
+
|
104
|
+
try {
|
105
|
+
await blockCooperative(coopname)
|
106
|
+
loadCooperatives()
|
107
|
+
SuccessAlert('Кооператив заблокирован')
|
108
|
+
} catch(e: any) {
|
109
|
+
FailAlert(e.message)
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
const onLoading = ref(false)
|
115
|
+
|
116
|
+
const columns = [
|
117
|
+
{ name: 'username', align: 'left', label: 'Аккаунт', field: 'username', sortable: true },
|
118
|
+
{ name: 'announce', align: 'left', label: 'Сайт', field: 'announce', sortable: false },
|
119
|
+
|
120
|
+
{ name: 'status', align: 'left', label: 'Статус', field: 'status', sortable: true },
|
121
|
+
{
|
122
|
+
name: 'created_at',
|
123
|
+
align: 'left',
|
124
|
+
label: 'Дата заявки',
|
125
|
+
field: 'created_at',
|
126
|
+
sortable: true,
|
127
|
+
},
|
128
|
+
{ name: 'actions', align: 'center', label: '', field: 'actions', sortable: false },
|
129
|
+
] as any
|
130
|
+
|
131
|
+
const expanded = ref([])
|
132
|
+
const tableRef = ref(null)
|
133
|
+
const pagination = ref({ rowsPerPage: 0 })
|
134
|
+
|
135
|
+
|
136
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as UnionListOfCooperatives} from './UnionListOfCooperatives.vue'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ui'
|
@@ -0,0 +1,111 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div.q-pa-md
|
3
|
+
div.row
|
4
|
+
div.col-md-12.col-xs-12
|
5
|
+
q-card(flat round class="cooperative-card" style="border-radius: 20px;")
|
6
|
+
div.q-pa-sm.row.items-center.q-pa-md
|
7
|
+
div.col-12.col-md-3.flex.justify-center
|
8
|
+
AutoAvatar(style="width: 60px; border-radius: 50%;" :username="currentUser.username")
|
9
|
+
div.col-12.col-md-9.q-mt-sm.q-mt-md-0
|
10
|
+
q-badge(color="primary" style="font-size: 12px; margin-bottom: 4px;") {{role}}
|
11
|
+
div.text-h6 {{displayName}}
|
12
|
+
div.row
|
13
|
+
DepositButton.col-6.border-left-radius-buttons
|
14
|
+
WithdrawButton.col-6.border-right-radius-buttons
|
15
|
+
|
16
|
+
WalletBalance.q-mt-lg
|
17
|
+
|
18
|
+
|
19
|
+
//- div.col-md-6.col-xs-12.q-mt-lg
|
20
|
+
|
21
|
+
|
22
|
+
</template>
|
23
|
+
|
24
|
+
<script lang="ts" setup>
|
25
|
+
import { WalletBalance } from 'src/entities/Wallet/ui'
|
26
|
+
import { DepositButton } from 'src/features/Wallet/DepositToWallet'
|
27
|
+
import { WithdrawButton } from 'src/features/Wallet/WithdrawFromWallet'
|
28
|
+
import { AutoAvatar } from 'src/shared/ui/AutoAvatar';
|
29
|
+
|
30
|
+
import { useCurrentUserStore } from 'src/entities/User'
|
31
|
+
import type { IEntrepreneurData, IIndividualData, IOrganizationData } from 'src/shared/lib/types/user/IUserData';
|
32
|
+
import { computed } from 'vue';
|
33
|
+
const currentUser = useCurrentUserStore()
|
34
|
+
|
35
|
+
const userType = computed(() => currentUser.userAccount?.type)
|
36
|
+
|
37
|
+
const role = computed(() => {
|
38
|
+
if (currentUser.userAccount?.role === 'user')
|
39
|
+
return 'Пайщик'
|
40
|
+
else if (currentUser.userAccount?.role === 'member')
|
41
|
+
return 'Член совета'
|
42
|
+
else if (currentUser.userAccount?.role === 'chairman')
|
43
|
+
return 'Председатель совета'
|
44
|
+
else return ''
|
45
|
+
});
|
46
|
+
|
47
|
+
const individualProfile = computed(() => {
|
48
|
+
if (userType.value === 'individual') {
|
49
|
+
return currentUser.userAccount?.private_data as IIndividualData
|
50
|
+
}
|
51
|
+
return null
|
52
|
+
})
|
53
|
+
|
54
|
+
const entrepreneurProfile = computed(() => {
|
55
|
+
if (userType.value === 'entrepreneur') {
|
56
|
+
return currentUser.userAccount?.private_data as IEntrepreneurData
|
57
|
+
}
|
58
|
+
return null
|
59
|
+
})
|
60
|
+
|
61
|
+
const organizationProfile = computed(() => {
|
62
|
+
if (userType.value === 'organization') {
|
63
|
+
return currentUser.userAccount?.private_data as IOrganizationData
|
64
|
+
}
|
65
|
+
return null
|
66
|
+
})
|
67
|
+
|
68
|
+
// const userProfile = computed(() => {
|
69
|
+
// if (userType.value === 'individual' || userType.value === 'entrepreneur') {
|
70
|
+
// return individualProfile?.value || entrepreneurProfile?.value
|
71
|
+
// }
|
72
|
+
// return organizationProfile?.value
|
73
|
+
// })
|
74
|
+
|
75
|
+
const displayName = computed(() => {
|
76
|
+
if (userType.value === 'individual') {
|
77
|
+
return `${individualProfile.value?.last_name} ${individualProfile.value?.first_name} ${individualProfile.value?.middle_name}`
|
78
|
+
} else if (userType.value === 'entrepreneur') {
|
79
|
+
return `${entrepreneurProfile.value?.last_name} ${entrepreneurProfile.value?.first_name} ${entrepreneurProfile.value?.middle_name}`
|
80
|
+
} else {
|
81
|
+
return organizationProfile.value?.short_name
|
82
|
+
}
|
83
|
+
})
|
84
|
+
|
85
|
+
// const inn_ogrn = computed(() => {
|
86
|
+
// if (organizationProfile.value)
|
87
|
+
// return `${organizationProfile.value.details.inn} / ${organizationProfile.value.details.ogrn}`
|
88
|
+
// else return ''
|
89
|
+
// })
|
90
|
+
|
91
|
+
</script>
|
92
|
+
<style lang="scss" scoped>
|
93
|
+
.cooperative-card {
|
94
|
+
max-width: 400px;
|
95
|
+
width: 100%;
|
96
|
+
}
|
97
|
+
|
98
|
+
.border-left-radius-buttons {
|
99
|
+
border-top-left-radius: 0px !important;
|
100
|
+
border-top-right-radius: 0px !important;
|
101
|
+
border-bottom-right-radius: 0px !important;
|
102
|
+
border-bottom-left-radius: 20px !important;
|
103
|
+
}
|
104
|
+
|
105
|
+
.border-right-radius-buttons {
|
106
|
+
border-top-right-radius: 0px !important;
|
107
|
+
border-top-left-radius: 0px !important;
|
108
|
+
border-bottom-right-radius: 20px !important;
|
109
|
+
border-bottom-left-radius: 0px !important;
|
110
|
+
}
|
111
|
+
</style>
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as CoopCard } from './CoopCard.vue'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ui'
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div
|
3
|
+
q-card(flat).q-pa-md
|
4
|
+
p.text-h6 Выйти из приложения
|
5
|
+
div.q-pa-sm
|
6
|
+
span Для повторного входа потребуется ввести ключ доступа, выданный при регистрации.
|
7
|
+
q-btn(size="sm" color="primary" @click="logout").q-mt-md
|
8
|
+
q-icon( color="white" name="logout")
|
9
|
+
span.q-ml-sm Выйти
|
10
|
+
|
11
|
+
</template>
|
12
|
+
<script lang="ts" setup>
|
13
|
+
import { useRouter } from 'vue-router';
|
14
|
+
import { useLogoutUser } from 'src/features/User/Logout/model'
|
15
|
+
import { FailAlert } from 'src/shared/api';
|
16
|
+
|
17
|
+
const router = useRouter()
|
18
|
+
|
19
|
+
const logout = async () => {
|
20
|
+
const { logout } = useLogoutUser()
|
21
|
+
|
22
|
+
try {
|
23
|
+
await logout()
|
24
|
+
router.push({ name: 'signin' })
|
25
|
+
|
26
|
+
} catch (e: any) {
|
27
|
+
FailAlert('Ошибка при выходе: ' + e.message)
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as LogoutCard} from './LogoutCard.vue'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ui'
|
@@ -0,0 +1,116 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div(flat bordered).q-pa-md
|
3
|
+
p Указанные реквизиты используются кооперативом для возврата паевых взносов пайщику.
|
4
|
+
|
5
|
+
AddPaymentMethodButton(:username="username")
|
6
|
+
|
7
|
+
q-list.full-width.q-mt-lg
|
8
|
+
q-item(v-for="(method, index) in wallet.methods" :key="method.method_id").full-width
|
9
|
+
q-card(flat).full-width
|
10
|
+
div(v-if="method.method_type ==='sbp' && isSBPData(method.data)")
|
11
|
+
div(style="max-width: 300px").flex.justify-between
|
12
|
+
|
13
|
+
span
|
14
|
+
span {{ index + 1}}.
|
15
|
+
span(v-if="method.method_type ==='sbp'").q-pl-xs СБП
|
16
|
+
DeletePaymentButton(:size="'xs'" :username="username" :method_id="method.method_id")
|
17
|
+
|
18
|
+
|
19
|
+
q-input(v-model="method.data.phone" label="Номер телефона" standout="bg-teal text-white" readonly).full-width
|
20
|
+
|
21
|
+
div(style="max-width: 300px" v-if="method.method_type ==='bank_transfer' && isBankTransferData(method.data)")
|
22
|
+
div.flex.justify-between
|
23
|
+
span
|
24
|
+
span {{ index + 1 }}.
|
25
|
+
span(v-if="method.method_type ==='bank_transfer'").q-pl-xs Банковский перевод
|
26
|
+
DeletePaymentButton(:size="'xs'" :username="username" :method_id="method.method_id")
|
27
|
+
|
28
|
+
div
|
29
|
+
q-select(
|
30
|
+
v-model="method.data.currency"
|
31
|
+
readonly
|
32
|
+
label="Валюта счёта"
|
33
|
+
standout="bg-teal text-white"
|
34
|
+
:options="[{ label: 'RUB', value: 'RUB' }]"
|
35
|
+
emit-value
|
36
|
+
map-options
|
37
|
+
)
|
38
|
+
|
39
|
+
q-input(
|
40
|
+
v-model="method.data.bank_name"
|
41
|
+
readonly
|
42
|
+
standout="bg-teal text-white"
|
43
|
+
label="Наименование банка"
|
44
|
+
autocomplete="off"
|
45
|
+
)
|
46
|
+
|
47
|
+
q-input(
|
48
|
+
v-model="method.data.details.corr"
|
49
|
+
standout="bg-teal text-white"
|
50
|
+
readonly
|
51
|
+
mask="####################"
|
52
|
+
label="Корреспондентский счет"
|
53
|
+
autocomplete="off"
|
54
|
+
)
|
55
|
+
|
56
|
+
q-input(
|
57
|
+
v-model="method.data.details.bik"
|
58
|
+
readonly
|
59
|
+
standout="bg-teal text-white"
|
60
|
+
mask="#########"
|
61
|
+
label="БИК"
|
62
|
+
autocomplete="off"
|
63
|
+
)
|
64
|
+
|
65
|
+
q-input(
|
66
|
+
v-model="method.data.details.kpp"
|
67
|
+
readonly
|
68
|
+
standout="bg-teal text-white"
|
69
|
+
mask="#########"
|
70
|
+
label="КПП"
|
71
|
+
autocomplete="off"
|
72
|
+
)
|
73
|
+
|
74
|
+
q-input(
|
75
|
+
v-model="method.data.account_number"
|
76
|
+
standout="bg-teal text-white"
|
77
|
+
readonly
|
78
|
+
mask="####################"
|
79
|
+
label="Номер счета"
|
80
|
+
autocomplete="off"
|
81
|
+
)
|
82
|
+
|
83
|
+
|
84
|
+
</template>
|
85
|
+
|
86
|
+
<script lang="ts" setup>
|
87
|
+
import { useWalletStore } from 'src/entities/Wallet';
|
88
|
+
import { COOPNAME } from 'src/shared/config';
|
89
|
+
import { computed } from 'vue';
|
90
|
+
import { AddPaymentMethodButton } from 'src/features/PaymentMethod/AddPaymentMethod';
|
91
|
+
import type { IBankTransferData, ISBPData } from 'src/features/PaymentMethod/AddPaymentMethod/model';
|
92
|
+
import { DeletePaymentButton } from 'src/features/PaymentMethod/DeletePaymentMethod/ui';
|
93
|
+
|
94
|
+
const props = defineProps({
|
95
|
+
username: {
|
96
|
+
type: String,
|
97
|
+
required: true,
|
98
|
+
},
|
99
|
+
})
|
100
|
+
|
101
|
+
const wallet = useWalletStore()
|
102
|
+
|
103
|
+
const username = computed(() => props.username)
|
104
|
+
|
105
|
+
wallet.loadUserWalet({ coopname: COOPNAME, username: username.value })
|
106
|
+
|
107
|
+
function isSBPData(data: ISBPData | IBankTransferData): data is ISBPData {
|
108
|
+
return (data as ISBPData).phone !== undefined;
|
109
|
+
}
|
110
|
+
|
111
|
+
function isBankTransferData(data: ISBPData | IBankTransferData): data is IBankTransferData {
|
112
|
+
return (data as IBankTransferData).account_number !== undefined;
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as PaymentMethodsCard} from './PaymentMethods.vue'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ui'
|
@@ -0,0 +1,109 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div(v-if="currentUser?.username" flat bordered).q-pa-md
|
3
|
+
div.row
|
4
|
+
div.col-md-4.col-xs-12
|
5
|
+
div(style="flex-grow: 1; display: flex; justify-content: center;")
|
6
|
+
//- UserQR
|
7
|
+
|
8
|
+
AutoAvatar(style="width: 125px;" :username="currentUser.username").q-pa-sm.q-pt-lg
|
9
|
+
|
10
|
+
div.col-md-8.col-xs-12
|
11
|
+
div
|
12
|
+
div
|
13
|
+
q-item
|
14
|
+
q-item-section
|
15
|
+
q-item-label(caption) Пайщик
|
16
|
+
q-item-label {{ displayName }}
|
17
|
+
|
18
|
+
|
19
|
+
q-item
|
20
|
+
q-item-section
|
21
|
+
q-item-label(caption) Зарегистрирован как
|
22
|
+
q-item-label(v-if="userType === 'individual'") физическое лицо
|
23
|
+
q-item-label(v-if="userType === 'entrepreneur'") индивидуальный предприниматель
|
24
|
+
q-item-label(v-if="userType === 'organization'") юридическое лицо
|
25
|
+
|
26
|
+
q-item
|
27
|
+
q-item-section
|
28
|
+
q-item-label(caption) Имя аккаунта
|
29
|
+
q-item-label {{ currentUser.username }}
|
30
|
+
|
31
|
+
q-item(v-if="userType === 'individual' && individualProfile")
|
32
|
+
q-item-section
|
33
|
+
q-item-label(caption) Дата рождения
|
34
|
+
q-item-label {{ individualProfile.birthdate }}
|
35
|
+
|
36
|
+
q-item(v-if="userType === 'organization' && organizationProfile")
|
37
|
+
q-item-section
|
38
|
+
q-item-label(caption) ИНН / ОГРН
|
39
|
+
q-item-label {{ inn_ogrn }}
|
40
|
+
|
41
|
+
q-item(v-if="userProfile")
|
42
|
+
q-item-section
|
43
|
+
q-item-label(caption) Телефон
|
44
|
+
q-item-label {{ userProfile.phone }}
|
45
|
+
|
46
|
+
q-item(v-if="userProfile")
|
47
|
+
q-item-section
|
48
|
+
q-item-label(caption) Почта
|
49
|
+
q-item-label {{ userProfile.email }}
|
50
|
+
|
51
|
+
</template>
|
52
|
+
|
53
|
+
<script lang="ts" setup>
|
54
|
+
import { AutoAvatar } from 'src/shared/ui/AutoAvatar';
|
55
|
+
import { useCurrentUserStore } from 'src/entities/User'
|
56
|
+
import type { IEntrepreneurData, IIndividualData, IOrganizationData } from 'src/shared/lib/types/user/IUserData';
|
57
|
+
import { computed } from 'vue';
|
58
|
+
const currentUser = useCurrentUserStore()
|
59
|
+
|
60
|
+
const userType = computed(() => currentUser.userAccount?.type)
|
61
|
+
|
62
|
+
const individualProfile = computed(() => {
|
63
|
+
if (userType.value === 'individual') {
|
64
|
+
return currentUser.userAccount?.private_data as IIndividualData
|
65
|
+
}
|
66
|
+
return null
|
67
|
+
})
|
68
|
+
|
69
|
+
const entrepreneurProfile = computed(() => {
|
70
|
+
if (userType.value === 'entrepreneur') {
|
71
|
+
return currentUser.userAccount?.private_data as IEntrepreneurData
|
72
|
+
}
|
73
|
+
return null
|
74
|
+
})
|
75
|
+
|
76
|
+
const organizationProfile = computed(() => {
|
77
|
+
if (userType.value === 'organization') {
|
78
|
+
return currentUser.userAccount?.private_data as IOrganizationData
|
79
|
+
}
|
80
|
+
return null
|
81
|
+
})
|
82
|
+
|
83
|
+
const userProfile = computed(() => {
|
84
|
+
if (userType.value === 'individual' || userType.value === 'entrepreneur') {
|
85
|
+
return individualProfile?.value || entrepreneurProfile?.value
|
86
|
+
}
|
87
|
+
return organizationProfile?.value
|
88
|
+
})
|
89
|
+
|
90
|
+
const displayName = computed(() => {
|
91
|
+
if (userType.value === 'individual') {
|
92
|
+
return `${individualProfile.value?.last_name} ${individualProfile.value?.first_name} ${individualProfile.value?.middle_name}`
|
93
|
+
} else if (userType.value === 'entrepreneur') {
|
94
|
+
return `${entrepreneurProfile.value?.last_name} ${entrepreneurProfile.value?.first_name} ${entrepreneurProfile.value?.middle_name}`
|
95
|
+
} else {
|
96
|
+
return organizationProfile.value?.short_name
|
97
|
+
}
|
98
|
+
})
|
99
|
+
|
100
|
+
const inn_ogrn = computed(() => {
|
101
|
+
if (organizationProfile.value)
|
102
|
+
return `${organizationProfile.value.details.inn} / ${organizationProfile.value.details.ogrn}`
|
103
|
+
else return ''
|
104
|
+
})
|
105
|
+
|
106
|
+
</script>
|
107
|
+
<style>
|
108
|
+
|
109
|
+
</style>
|