@coopenomics/desktop 2.2.9 → 2025.4.29
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/.env-example +6 -1
- package/.env-testnet +8 -0
- package/CHANGELOG.md +11 -0
- package/Dockerfile +12 -0
- package/extensions/market/install.ts +78 -0
- package/extensions/market-admin/install.ts +42 -0
- package/extensions/participant/install.ts +125 -0
- package/extensions/powerup/install.ts +20 -0
- package/extensions/soviet/install.ts +83 -0
- package/package.json +6 -5
- package/quasar.config.cjs +5 -12
- package/src/app/App.vue +44 -73
- package/src/app/layouts/default.vue +40 -0
- package/src/app/layouts/useDefaultLayoutLogic.ts +59 -0
- package/src/app/providers/routes/index.ts +19 -34
- package/src/app/styles/style.css +4 -0
- package/src/boot/init.ts +6 -0
- package/src/boot/sentry.ts +1 -2
- package/src/desktops/index.ts +0 -6
- package/src/entities/Account/api/index.ts +11 -2
- package/src/entities/Account/model/index.ts +1 -1
- package/src/entities/Account/model/store.ts +15 -5
- package/src/entities/Account/types/index.ts +9 -1
- package/src/entities/Agenda/api/index.ts +20 -0
- package/src/entities/Agenda/index.ts +2 -0
- package/src/entities/Agenda/model/index.ts +2 -0
- package/src/entities/Agenda/model/store.ts +36 -0
- package/src/entities/Agenda/model/types.ts +4 -0
- package/src/entities/Branch/model/index.ts +1 -1
- package/src/entities/Desktop/api/index.ts +16 -1
- package/src/entities/Desktop/model/store.ts +112 -106
- package/src/entities/Desktop/model/types.ts +14 -1
- package/src/entities/Document/api/index.ts +24 -0
- package/src/entities/Document/index.ts +2 -0
- package/src/entities/Document/model/store.ts +117 -0
- package/src/entities/Document/model/types.ts +18 -0
- package/src/entities/Meet/api/index.ts +58 -0
- package/src/entities/Meet/index.ts +2 -0
- package/src/entities/Meet/model/store.ts +72 -0
- package/src/entities/Meet/types/index.ts +7 -0
- package/src/entities/Payment/api/index.ts +20 -0
- package/src/entities/Payment/model/index.ts +2 -0
- package/src/entities/Payment/model/store.ts +62 -0
- package/src/entities/Payment/model/types.ts +7 -0
- package/src/entities/Session/model/store.ts +5 -6
- package/src/entities/System/model/store.ts +1 -1
- package/src/entities/User/model/stores.ts +3 -1
- package/src/entities/Wallet/api/index.ts +15 -33
- package/src/entities/Wallet/model/stores.ts +3 -23
- package/src/entities/Wallet/model/types.ts +2 -3
- package/src/features/Account/UpdateAccount/api/index.ts +14 -0
- package/src/features/Account/UpdateAccount/index.ts +1 -0
- package/src/features/Account/UpdateAccount/model/index.ts +16 -0
- package/src/features/Agreementer/SignAgreementDialog/ui/SignAgreementDialog.vue +1 -1
- package/src/features/Branch/SelectBranch/index.ts +2 -0
- package/src/features/Branch/SelectBranch/ui/SelectBranchOverlay.vue +52 -104
- package/src/features/Decision/CreateProject/ui/CreateProjectFreeDecisionButton.vue +1 -1
- package/src/features/Decision/ParticipantApplication/model/index.ts +38 -0
- package/src/features/FreeDecision/CreateProject/model/index.ts +92 -0
- package/src/features/FreeDecision/CreateProject/ui/CreateProjectFreeDecisionButton.vue +51 -0
- package/src/features/FreeDecision/CreateProject/ui/index.ts +1 -0
- package/src/features/FreeDecision/GenerateDecision/index.ts +1 -0
- package/src/features/FreeDecision/GenerateDecision/model/index.ts +36 -0
- package/src/features/FreeDecision/index.ts +2 -0
- package/src/features/Meet/CloseMeetWithDecision/index.ts +1 -0
- package/src/features/Meet/CloseMeetWithDecision/model/index.ts +92 -0
- package/src/features/Meet/CreateMeet/index.ts +2 -0
- package/src/features/Meet/CreateMeet/model/index.ts +65 -0
- package/src/features/Meet/CreateMeet/ui/CreateMeet.vue +34 -0
- package/src/features/Meet/CreateMeet/ui/CreateMeetForm.vue +136 -0
- package/src/features/Meet/CreateMeet/ui/index.ts +2 -0
- package/src/features/Meet/GenerateAgenda/index.ts +1 -0
- package/src/features/Meet/GenerateAgenda/model/index.ts +18 -0
- package/src/features/Meet/GenerateBallot/index.ts +1 -0
- package/src/features/Meet/GenerateBallot/model/index.ts +18 -0
- package/src/features/Meet/GenerateNotification/index.ts +1 -0
- package/src/features/Meet/GenerateNotification/model/index.ts +18 -0
- package/src/features/Meet/GenerateSovietDecision/index.ts +1 -0
- package/src/features/Meet/GenerateSovietDecision/model/index.ts +48 -0
- package/src/features/Meet/MeetDetailsManagement/index.ts +1 -0
- package/src/features/Meet/MeetDetailsManagement/model/index.ts +121 -0
- package/src/features/Meet/RestartMeet/index.ts +2 -0
- package/src/features/Meet/RestartMeet/model/index.ts +54 -0
- package/src/features/Meet/RestartMeet/ui/RestartMeet.vue +46 -0
- package/src/features/Meet/RestartMeet/ui/RestartMeetForm.vue +92 -0
- package/src/features/Meet/RestartMeet/ui/index.ts +2 -0
- package/src/features/Meet/VoteOnMeet/index.ts +1 -0
- package/src/features/Meet/VoteOnMeet/model/index.ts +18 -0
- package/src/features/Payment/SetStatus/api/index.ts +20 -0
- package/src/features/Payment/SetStatus/index.ts +1 -0
- package/src/features/Payment/SetStatus/model/index.ts +30 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderPaidStatusButton/SetOrderPaidStatusButton.vue +7 -3
- package/src/features/PaymentMethod/AddPaymentMethod/model/index.ts +2 -2
- package/src/features/PaymentMethod/AddPaymentMethod/ui/AddPaymentButton.vue +1 -1
- package/src/features/PaymentMethod/DeletePaymentMethod/model/index.ts +1 -1
- package/src/features/PaymentMethod/DeletePaymentMethod/ui/DeletePaymentMethodButton.vue +3 -1
- package/src/features/Request/CancelRequest/ui/CancelButton.vue +1 -1
- package/src/features/Request/ConfirmRecieveOnRequest/ui/ConfirmRecieveOnRequest.vue +1 -1
- package/src/features/Request/CreateParentOffer/ui/CreateParentOfferForm/CreateParentOfferForm.vue +3 -5
- package/src/features/Request/CreateParentOffer/ui/ImageUploaderWithPreview/ImageUploaderWithPreview.vue +4 -3
- package/src/features/Request/DisputeOnRequest/ui/DisputeOnRequestButton.vue +1 -1
- package/src/features/Request/ModerateRequest/ui/ModerateRequestButton.vue +2 -2
- package/src/features/Request/PublishRequest/ui/PublishRequestButton.vue +1 -1
- package/src/features/Request/RecieveOnRequest/ui/RecieveOnRequestButton.vue +1 -1
- package/src/features/Request/UnpublishRequest/ui/UnpublishRequestButton.vue +1 -1
- package/src/features/Union/AddCooperative/model/index.ts +4 -5
- package/src/features/Union/AddCooperative/ui/AddCooperativeForm.vue +5 -6
- package/src/features/User/AddUser/ui/AddUserDialog/AddUserDialog.vue +7 -4
- package/src/features/User/LoginUser/model/index.ts +3 -3
- package/src/features/User/LoginUser/ui/LoginForm/LoginForm.vue +0 -6
- package/src/features/User/Logout/model/index.ts +5 -3
- package/src/features/Wallet/DepositToWallet/ui/DepositButton/DepositButton.vue +8 -7
- package/src/features/Wallet/WithdrawFromWallet/ui/withdrawButton.vue +6 -7
- package/src/pages/Blank/index.ts +1 -0
- package/src/pages/Contacts/ContactsPage.vue +64 -0
- package/src/{widgets/Cooperative/Contacts → pages/Cooperative/ChangeContacts}/ui/index.ts +0 -1
- package/src/{widgets/Cooperative/Contributions/ui/ChangeContributions.vue → pages/Cooperative/ChangeRegisterPayments/ui/ChangeRegisterPayments.vue} +10 -11
- package/src/pages/Cooperative/ChangeRegisterPayments/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfAgenda/index.ts +1 -0
- package/src/pages/Cooperative/ListOfAgenda/ui/ListOfAgendaQuestions.vue +118 -0
- package/src/pages/Cooperative/ListOfAgenda/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfDocuments/ListOfDocumentsPage.vue +24 -0
- package/src/pages/Cooperative/ListOfMeets/model/index.ts +1 -0
- package/src/pages/Cooperative/ListOfMeets/model/model.ts +117 -0
- package/src/pages/Cooperative/ListOfMeets/ui/ListOfMeetsPage.vue +90 -0
- package/src/pages/Cooperative/ListOfMeets/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfOrders/index.ts +1 -1
- package/src/pages/Cooperative/ListOfOrders/ui/ListOfOrdersPage.vue +0 -4
- package/src/pages/Cooperative/ListOfParticipants/ui/ListOfParticipantsPage.vue +61 -10
- package/src/pages/Cooperative/ListOfParticipants/ui/index.ts +1 -1
- package/src/pages/Cooperative/MeetDetails/ui/MeetDetailsPage.vue +88 -0
- package/src/pages/Cooperative/MeetDetails/ui/index.ts +1 -0
- package/src/pages/Cooperative/{ListOfBranches/ui/ListOfBranchesPage.vue → MemberBranchList/ui/MemberBranchListPage.vue} +2 -4
- package/src/pages/Cooperative/MemberBranchList/ui/index.ts +1 -0
- package/src/pages/Cooperative/Payments/index.ts +1 -0
- package/src/pages/Cooperative/Payments/ui/PaymentsPage.vue +7 -0
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionPage/ExtensionPage.vue +35 -20
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionsShowcase/ExtensionsShowcase.vue +2 -2
- package/src/pages/{ExtStore → ExtensionStore}/InstalledExtensions/InstalledExtensions.vue +2 -2
- package/src/pages/Marketplace/OfferPage/ui/OfferPage.vue +1 -1
- package/src/pages/Marketplace/Showcase/ui/ShowcasePage.vue +1 -1
- package/src/pages/Marketplace/SuppliesList/ui/SuppliesListPage.vue +1 -1
- package/src/pages/Marketplace/UserParentOffers/ui/UserParentOffersPage.vue +1 -1
- package/src/pages/Marketplace/UserSuppliesList/ui/UserSuppliesListPage.vue +1 -1
- package/src/pages/PermissionDenied/index.ts +1 -0
- package/src/pages/Registrator/SignUp/EmailInput.vue +2 -3
- package/src/pages/Registrator/SignUp/GenerateAccount.vue +2 -3
- package/src/pages/Registrator/SignUp/PayInitial.vue +1 -1
- package/src/pages/Registrator/SignUp/ReadStatement.vue +2 -2
- package/src/pages/Registrator/SignUp/SelectBranch.vue +2 -2
- package/src/pages/Registrator/SignUp/SignStatement.vue +2 -2
- package/src/pages/Registrator/SignUp/SignUp.vue +5 -12
- package/src/pages/Registrator/SignUp/WaitingRegistration.vue +1 -5
- package/src/pages/Registrator/SignUp/Welcome.vue +4 -3
- package/src/pages/Union/ConnectionAgreement/index.ts +1 -0
- package/src/pages/Union/ListOfCooperatives/ui/UnionPageListOfCooperatives.vue +139 -6
- package/src/pages/User/DocumentsPage/UserDocumentsPage.vue +23 -0
- package/src/pages/User/DocumentsPage/index.ts +1 -0
- package/src/pages/User/PaymentsPage/ui/UserPayments.vue +11 -0
- package/src/pages/User/PaymentsPage/ui/index.ts +1 -0
- package/src/pages/User/ProfilePage/index.ts +1 -0
- package/src/pages/User/ProfilePage/ui/ProfilePage.vue +114 -0
- package/src/pages/User/ProfilePage/ui/index.ts +1 -0
- package/src/pages/User/SettingsPage/ui/index.ts +1 -1
- package/src/pages/User/WalletPage/index.ts +1 -0
- package/src/pages/User/WalletPage/ui/WalletPage.vue +72 -0
- package/src/pages/User/WalletPage/ui/index.ts +1 -0
- package/src/processes/init-app/index.ts +28 -0
- package/src/processes/init-installed-extensions/index.ts +25 -0
- package/src/processes/init-wallet/index.ts +40 -0
- package/src/processes/navigation-guard-setup/index.ts +45 -0
- package/src/processes/process-decisions/index.ts +275 -0
- package/src/processes/select-branch/index.ts +80 -0
- package/src/processes/watch-branch-overlay/index.ts +38 -0
- package/src/processes/watch-desktop-health/index.ts +33 -0
- package/src/shared/api/alerts.ts +2 -6
- package/src/shared/api/axios.ts +4 -5
- package/src/shared/api/client.ts +3 -4
- package/src/shared/api/eosio.ts +1 -2
- package/src/shared/api/utils.ts +1 -3
- package/src/shared/config/index.ts +0 -1
- package/src/shared/hooks/index.ts +2 -0
- package/src/shared/hooks/useAgendaPoints.ts +24 -0
- package/src/shared/hooks/useWindowSize.ts +13 -0
- package/src/shared/lib/composables/useDisplayName.ts +34 -0
- package/src/shared/lib/composables/useEditableData.ts +1 -1
- package/src/shared/lib/navigation/index.ts +2 -0
- package/src/shared/lib/navigation/routeUtils.ts +51 -0
- package/src/shared/lib/navigation/useBackButton.ts +63 -0
- package/src/shared/lib/utils/dates/validateDateWithinRange.ts +23 -0
- package/src/shared/ui/BaseDocument/BaseDocument.vue +120 -90
- package/src/{components/menu/blockchainStatus.vue → shared/ui/BlockchainStatusBar/BlockchainStatusBar.vue} +1 -0
- package/src/shared/ui/BlockchainStatusBar/index.ts +1 -0
- package/src/shared/ui/CardStyles/index.scss +61 -0
- package/src/shared/ui/ComplexDocument/ComplexDocument.vue +31 -8
- package/src/shared/ui/CopyableInput/index.ts +1 -0
- package/src/shared/ui/CopyableInput/ui/CopyableInput.vue +62 -0
- package/src/shared/ui/EditableEntrepreneurCard/EditableEntrepreneurCard.vue +171 -0
- package/src/shared/ui/EditableEntrepreneurCard/index.ts +1 -0
- package/src/{widgets/IndividualCard/ui/IndividualCard.vue → shared/ui/EditableIndividualCard/EditableIndividualCard.vue} +101 -68
- package/src/shared/ui/EditableIndividualCard/index.ts +1 -0
- package/src/shared/ui/EditableOrganizationCard/EditableOrganizationCard.vue +225 -0
- package/src/shared/ui/EditableOrganizationCard/index.ts +1 -0
- package/src/shared/ui/Form/Form.vue +3 -1
- package/src/shared/ui/InputStyles/index.scss +29 -0
- package/src/shared/ui/TabStyles/index.scss +53 -0
- package/src/shared/ui/UserDataForm/OrganizationDataForm/OrganizationDataForm.vue +1 -0
- package/src/shared/ui/index.ts +1 -0
- package/src/{components/history/AccountEvents.vue → widgets/AccountActions/AccountActionsPage.vue} +2 -2
- package/src/widgets/AccountActions/index.ts +1 -0
- package/src/widgets/BankDetailsCard/ui/BankDetailsCard.vue +2 -2
- package/src/widgets/BranchCard/ui/BranchCard.vue +2 -2
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/DocumentCard.vue +48 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/DocumentsTable.vue +162 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/ListOfDocumentsWidget.vue +77 -120
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/index.ts +3 -1
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/ListOfOrdersWidget.vue +135 -128
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/OrderCard.vue +74 -0
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/index.ts +2 -1
- package/src/widgets/Cooperative/Payments/ListOfPayments/ui/ListOfPaymentsWidget.vue +216 -0
- package/src/widgets/Cooperative/Payments/ListOfPayments/ui/PaymentCard.vue +73 -0
- package/src/widgets/Cooperative/Payments/ListOfPayments/ui/index.ts +2 -0
- package/src/widgets/Cooperative/Payments/index.ts +1 -0
- package/src/widgets/Desktop/LeftDrawerMenu/LeftDrawerMenu.vue +3 -2
- package/src/widgets/Desktop/SecondLevelMenuList/SecondLevelMenuList.vue +58 -91
- package/src/widgets/Desktop/WorkspaceMenu/WorkspaceMenu.vue +114 -59
- package/src/widgets/{ExtStore/ExtensionCard → ExtensionCard}/ExtensionCard.vue +12 -7
- package/src/widgets/Header/BackButton/BackButton.vue +25 -0
- package/src/widgets/Header/BackButton/index.ts +1 -0
- package/src/widgets/Header/CommonHeader/CooperativeSettingsHeader.vue +34 -0
- package/src/widgets/Header/CommonHeader/ExtstoreHeader.vue +41 -0
- package/src/widgets/Header/CommonHeader/Header.vue +33 -198
- package/src/widgets/Header/CommonHeader/HeaderStyles.scss +22 -0
- package/src/widgets/Header/CommonHeader/MainHeader.vue +87 -0
- package/src/widgets/Header/CommonHeader/UserSettingsHeader.vue +29 -0
- package/src/widgets/Header/CommonHeader/index.ts +1 -1
- package/src/widgets/Header/SettingsDropdown/SettingsDropdown.vue +0 -6
- package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Base/Base.vue +1 -2
- package/src/widgets/Meets/MeetDetailsActions/MeetDetailsActions.vue +51 -0
- package/src/widgets/Meets/MeetDetailsActions/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsActions/model.ts +46 -0
- package/src/widgets/Meets/MeetDetailsAgenda/MeetDetailsAgenda.vue +29 -0
- package/src/widgets/Meets/MeetDetailsAgenda/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsHeader/MeetDetailsHeader.vue +40 -0
- package/src/widgets/Meets/MeetDetailsHeader/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsVoting/MeetDetailsVoting.vue +77 -0
- package/src/widgets/Meets/MeetDetailsVoting/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsVoting/model.ts +117 -0
- package/src/widgets/Meets/MeetInfoCard/ui/MeetInfoCard.vue +38 -0
- package/src/widgets/Meets/MeetInfoCard/ui/index.ts +1 -0
- package/src/widgets/Meets/MeetsTable/ui/MeetsTable.vue +118 -0
- package/src/widgets/Meets/MeetsTable/ui/index.ts +1 -0
- package/src/widgets/Participants/index.ts +1 -0
- package/src/widgets/Participants/ui/ParticipantCard.vue +89 -0
- package/src/widgets/Participants/ui/ParticipantDetails.vue +79 -0
- package/src/widgets/Participants/ui/ParticipantsTable.vue +129 -0
- package/src/widgets/Participants/ui/index.ts +4 -0
- package/src/widgets/Questions/index.ts +3 -0
- package/src/widgets/Questions/ui/QuestionCard/QuestionCard.vue +109 -0
- package/src/widgets/Questions/ui/QuestionCard/index.ts +1 -0
- package/src/widgets/Questions/ui/QuestionsTable/QuestionsTable.vue +177 -0
- package/src/widgets/Questions/ui/QuestionsTable/index.ts +1 -0
- package/src/widgets/Questions/ui/VotingButtons/VotingButtons.vue +75 -0
- package/src/widgets/Questions/ui/VotingButtons/index.ts +1 -0
- package/src/widgets/Questions/ui/index.ts +3 -0
- package/src/widgets/RequireAgreements/index.ts +1 -0
- package/src/widgets/User/PaymentMethods/ui/PaymentMethods.vue +81 -85
- package/tsconfig.json +1 -1
- package/extensions/powerup/boot.ts +0 -17
- package/src/app/providers/card/store.ts +0 -42
- package/src/boot/branch-selector.ts +0 -40
- package/src/boot/init-stores.ts +0 -45
- package/src/boot/navigation-guards.ts +0 -46
- package/src/components/menu/footerMobileMenu.vue +0 -79
- package/src/components/soviet/index.vue +0 -76
- package/src/components/soviet/staff.vue +0 -274
- package/src/desktops/User/index.ts +0 -1
- package/src/desktops/User/model/index.ts +0 -328
- package/src/entities/Menu/model/store.ts +0 -69
- package/src/entities/Menu/model/types.ts +0 -11
- package/src/entities/Menu/ui/index.ts +0 -1
- package/src/entities/Order/api/index.ts +0 -14
- package/src/entities/Order/model/store.ts +0 -87
- package/src/features/Order/SetStatus/api/index.ts +0 -7
- package/src/features/Order/SetStatus/model/index.ts +0 -23
- package/src/pages/Cooperative/Contacts/ui/ContactsPage.vue +0 -7
- package/src/pages/Cooperative/ListOfBranches/ui/index.ts +0 -1
- package/src/pages/Documentor/ListOfDocuments/ListOfDocumentsPage.vue +0 -12
- package/src/pages/Union/Connection/index.ts +0 -1
- package/src/pages/_layouts/blank.vue +0 -24
- package/src/pages/_layouts/default.vue +0 -79
- package/src/types/index.ts +0 -3
- package/src/widgets/Commutator/Commutator.vue +0 -7
- package/src/widgets/Commutator/index.ts +0 -1
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/ListOfQuestions.vue +0 -273
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/index.ts +0 -1
- package/src/widgets/Cooperative/Contacts/ui/Contacts.vue +0 -52
- package/src/widgets/Cooperative/Contributions/ui/index.ts +0 -1
- package/src/widgets/Cooperative/Description/ui/SetDescription.vue +0 -4
- package/src/widgets/Cooperative/Description/ui/index.ts +0 -1
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/ListOfParticipantsWidget.vue +0 -103
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/index.ts +0 -1
- package/src/widgets/Desktop/SecondLevelMenu/SecondLevelMenu.vue +0 -59
- package/src/widgets/Desktop/SecondLevelMenu/index.ts +0 -1
- package/src/widgets/IndividualCard/ui/index.ts +0 -1
- package/src/widgets/OrganizationCard/ui/OrganizationCard.vue +0 -44
- package/src/widgets/OrganizationCard/ui/index.ts +0 -1
- package/src/widgets/Union/ListOfCooperatives/ui/UnionListOfCooperatives.vue +0 -136
- package/src/widgets/Union/ListOfCooperatives/ui/index.ts +0 -1
- package/src/entities/{Menu → Document}/model/index.ts +0 -0
- package/src/entities/{Order → Meet}/model/index.ts +0 -0
- package/src/entities/{Order → Payment}/index.ts +0 -0
- package/src/features/{Order/SetStatus → Decision/ParticipantApplication}/index.ts +0 -0
- package/src/{widgets/Request/SupplyOrderRequestCard → features/FreeDecision/CreateProject}/index.ts +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderCompletedStatusButton/SetOrderCompletedStatusButton.vue +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderCompletedStatusButton/index.ts +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderPaidStatusButton/index.ts +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderRefundedStatusButton/SetOrderRefundedStatusButton.vue +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderRefundedStatusButton/index.ts +0 -0
- package/src/pages/{blank/blank.vue → Blank/BlankPage.vue} +0 -0
- package/src/pages/{Cooperative/Contacts/ui → Contacts}/index.ts +0 -0
- package/src/pages/Cooperative/{Contacts → ChangeContacts}/index.ts +0 -0
- package/src/{widgets/Cooperative/Contacts → pages/Cooperative/ChangeContacts}/ui/ChangeContacts.vue +0 -0
- package/src/pages/Cooperative/{ListOfBranches → ChangeRegisterPayments}/index.ts +0 -0
- package/src/pages/{Documentor → Cooperative}/ListOfDocuments/index.ts +0 -0
- package/src/pages/{Installer → Cooperative/ListOfMeets}/index.ts +0 -0
- package/src/{widgets/Cooperative/Agenda/ListOfQuestions → pages/Cooperative/MeetDetails}/index.ts +0 -0
- package/src/{widgets/Cooperative/Contacts → pages/Cooperative/MemberBranchList}/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/BaseRoute/ExtensionStoreBase.vue +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/BaseRoute/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionPage/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionsShowcase/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/InstalledExtensions/index.ts +0 -0
- package/src/pages/{_layouts/permissionDenied.vue → PermissionDenied/PermissionDenied.vue} +0 -0
- package/src/pages/Union/{Connection/ConnectionPage.vue → ConnectionAgreement/ConnectionAgreementPage.vue} +0 -0
- package/src/{widgets/Cooperative/Contributions → pages/Union/InstallCooperative}/index.ts +0 -0
- package/src/pages/{Installer → Union/InstallCooperative}/ui/InstallCooperativePage.vue +0 -0
- package/src/pages/{Installer → Union/InstallCooperative}/ui/index.ts +0 -0
- package/src/{widgets/Cooperative/Participants/ListOfParticipants → pages/User/PaymentsPage}/index.ts +0 -0
- package/src/{components/history → widgets/AccountActions}/AccountLink.vue +0 -0
- package/src/{components/history → widgets/AccountActions}/ActionCell.vue +0 -0
- package/src/{components/history → widgets/AccountActions}/DataCell.vue +0 -0
- package/src/widgets/{IndividualCard → Cooperative/Payments/ListOfPayments}/index.ts +0 -0
- package/src/widgets/{ExtStore/ExtensionCard → ExtensionCard}/index.ts +0 -0
- package/src/widgets/{Request → Marketplace}/CreateChildOrderCard/CreateChildOrderCard.vue +0 -0
- package/src/widgets/{Request → Marketplace}/CreateChildOrderCard/index.ts +0 -0
- package/src/widgets/{Request → Marketplace}/RequestCard/RequestCard.vue +0 -0
- package/src/widgets/{Request → Marketplace}/RequestCard/index.ts +0 -0
- package/src/{entities/Menu → widgets/Marketplace/SupplyOrderRequestCard}/index.ts +1 -1
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/model/index.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/model/types.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Base/index.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/EightStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/FifthStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/FirstStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/FourthStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/SecondStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/SeventhStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/SixthStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/ThirdStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/index.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/index.ts +0 -0
- /package/src/widgets/{OrganizationCard → Meets/MeetInfoCard}/index.ts +0 -0
- /package/src/widgets/{Union/ListOfCooperatives → Meets/MeetsTable}/index.ts +0 -0
- /package/src/widgets/{Agreementer/RequireAgreements → RequireAgreements}/ui/RequireAgreements.vue +0 -0
- /package/src/widgets/{Agreementer/RequireAgreements → RequireAgreements}/ui/index.ts +0 -0
package/.env-example
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
-
|
1
|
+
NODE_ENV=development
|
2
|
+
BACKEND_URL=http://127.0.0.1:2998
|
3
|
+
CHAIN_URL=http://127.0.0.1:8888
|
4
|
+
CHAIN_ID=f50256680336ee6daaeee93915b945c1166b5dfc98977adcb717403ae225c559
|
5
|
+
CURRENCY=RUB
|
6
|
+
COOP_SHORT_NAME=Локальный Кооператив
|
2
7
|
SITE_DESCRIPTION=кооперативная экономика для сообществ и бизнеса
|
3
8
|
SITE_IMAGE=https://ia.media-imdb.com/images/rock.jpg
|
package/.env-testnet
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
NODE_ENV=development
|
2
|
+
BACKEND_URL=https://testnet.coopenomics.world/backend
|
3
|
+
CHAIN_URL=https://api-testnet.coopenomics.world
|
4
|
+
CHAIN_ID=f0364a3f9fd913081f1c0b05c6f8f50a59b2ba60bb928cb321ba3a9a36316624
|
5
|
+
CURRENCY=RUB
|
6
|
+
COOP_SHORT_NAME=Цифровой Кооператив
|
7
|
+
SITE_DESCRIPTION=кооперативная экономика для сообществ и бизнеса
|
8
|
+
SITE_IMAGE=https://ia.media-imdb.com/images/rock.jpg
|
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.2.10](https://github.com/coopenomics/mono/compare/v2.2.9...v2.2.10) (2025-03-27)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* add Zeus type ([7bcb6e3](https://github.com/coopenomics/mono/commit/7bcb6e30a77b0ab89c5293188b58f08f19c8761e))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
6
17
|
## [2.2.9](https://github.com/coopenomics/mono/compare/v2.2.8...v2.2.9) (2025-03-12)
|
7
18
|
|
8
19
|
**Note:** Version bump only for package @coopenomics/desktop
|
package/Dockerfile
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
import { markRaw } from 'vue'
|
2
|
+
import { ShowcasePage } from 'src/pages/Marketplace/Showcase'
|
3
|
+
import { CreateParentOfferPage } from 'src/pages/Marketplace/CreateParentOffer'
|
4
|
+
import { UserParentOffersPage } from 'src/pages/Marketplace/UserParentOffers'
|
5
|
+
import { UserSuppliesListPage } from 'src/pages/Marketplace/UserSuppliesList'
|
6
|
+
|
7
|
+
export default async function () {
|
8
|
+
return {
|
9
|
+
workspace: 'market',
|
10
|
+
routes: [
|
11
|
+
{
|
12
|
+
meta: {
|
13
|
+
title: 'Стол заказов',
|
14
|
+
icon: 'fa-solid fa-shop',
|
15
|
+
roles: [],
|
16
|
+
},
|
17
|
+
path: '/:coopname/market',
|
18
|
+
name: 'market',
|
19
|
+
children: [
|
20
|
+
{
|
21
|
+
path: 'showcase',
|
22
|
+
name: 'marketplace-showcase',
|
23
|
+
component: markRaw(ShowcasePage),
|
24
|
+
children: [
|
25
|
+
{
|
26
|
+
path: ':id',
|
27
|
+
name: 'marketplace-showcase-id',
|
28
|
+
component: markRaw(ShowcasePage),
|
29
|
+
},
|
30
|
+
],
|
31
|
+
meta: {
|
32
|
+
title: 'Витрина',
|
33
|
+
icon: '',
|
34
|
+
roles: [],
|
35
|
+
},
|
36
|
+
},
|
37
|
+
{
|
38
|
+
path: 'create-offer',
|
39
|
+
name: 'marketplace-create-offer',
|
40
|
+
component: markRaw(CreateParentOfferPage),
|
41
|
+
meta: {
|
42
|
+
title: 'Создать объявление',
|
43
|
+
icon: '',
|
44
|
+
roles: [],
|
45
|
+
},
|
46
|
+
},
|
47
|
+
{
|
48
|
+
path: 'user-offers',
|
49
|
+
name: 'marketplace-user-offers',
|
50
|
+
component: markRaw(UserParentOffersPage),
|
51
|
+
children: [
|
52
|
+
{
|
53
|
+
path: ':id',
|
54
|
+
name: 'marketplace-user-offer-id',
|
55
|
+
component: markRaw(UserParentOffersPage),
|
56
|
+
},
|
57
|
+
],
|
58
|
+
meta: {
|
59
|
+
title: 'Мои объявления',
|
60
|
+
icon: '',
|
61
|
+
roles: [],
|
62
|
+
},
|
63
|
+
},
|
64
|
+
{
|
65
|
+
path: 'user-supplies',
|
66
|
+
name: 'marketplace-user-supplies',
|
67
|
+
component: markRaw(UserSuppliesListPage),
|
68
|
+
meta: {
|
69
|
+
title: 'Мои заказы',
|
70
|
+
icon: '',
|
71
|
+
roles: [],
|
72
|
+
},
|
73
|
+
},
|
74
|
+
]
|
75
|
+
}
|
76
|
+
]
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { markRaw } from 'vue'
|
2
|
+
import { ModerationPage } from 'src/pages/Marketplace/Moderation'
|
3
|
+
import { SuppliesListPage } from 'src/pages/Marketplace/SuppliesList'
|
4
|
+
|
5
|
+
export default async function () {
|
6
|
+
return {
|
7
|
+
workspace: 'market-admin',
|
8
|
+
routes: [
|
9
|
+
{
|
10
|
+
meta: {
|
11
|
+
title: 'Стол администратора',
|
12
|
+
icon: 'fa-solid fa-shop-lock',
|
13
|
+
roles: ['chairman', 'member'],
|
14
|
+
},
|
15
|
+
path: '/:coopname/market-admin',
|
16
|
+
name: 'market-admin',
|
17
|
+
children: [
|
18
|
+
{
|
19
|
+
path: 'moderation',
|
20
|
+
name: 'marketplace-moderation',
|
21
|
+
component: markRaw(ModerationPage),
|
22
|
+
meta: {
|
23
|
+
title: 'Модерация',
|
24
|
+
icon: '',
|
25
|
+
roles: ['member', 'chairman'],
|
26
|
+
},
|
27
|
+
},
|
28
|
+
{
|
29
|
+
path: 'supplies',
|
30
|
+
name: 'marketplace-supplies',
|
31
|
+
component: markRaw(SuppliesListPage),
|
32
|
+
meta: {
|
33
|
+
title: 'Все заказы',
|
34
|
+
icon: '',
|
35
|
+
roles: ['member', 'chairman'],
|
36
|
+
},
|
37
|
+
},
|
38
|
+
]
|
39
|
+
}
|
40
|
+
]
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
import { markRaw } from 'vue'
|
2
|
+
import { ProfilePage } from 'src/pages/User/ProfilePage'
|
3
|
+
import { WalletPage } from 'src/pages/User/WalletPage'
|
4
|
+
import { ConnectionAgreementPage } from 'src/pages/Union/ConnectionAgreement'
|
5
|
+
import { UserPaymentMethodsPage } from 'src/pages/User/PaymentMethodsPage'
|
6
|
+
import { ContactsPage } from 'src/pages/Contacts'
|
7
|
+
// import { ListOfMeetsPage } from 'src/pages/Cooperative/ListOfMeets'
|
8
|
+
// import { MeetDetailsPage } from 'src/pages/Cooperative/MeetDetails'
|
9
|
+
import { UserDocumentsPage } from 'src/pages/User/DocumentsPage'
|
10
|
+
import { UserPaymentsPage } from 'src/pages/User/PaymentsPage'
|
11
|
+
import { agreementsBase } from 'src/shared/lib/consts/workspaces'
|
12
|
+
|
13
|
+
export default async function () {
|
14
|
+
return {
|
15
|
+
workspace: 'participant',
|
16
|
+
routes: [
|
17
|
+
{
|
18
|
+
meta: {
|
19
|
+
title: 'Стол пайщика',
|
20
|
+
icon: 'fa-solid fa-id-card',
|
21
|
+
roles: ['user', 'chairman', 'member'],
|
22
|
+
},
|
23
|
+
path: '/:coopname/user',
|
24
|
+
name: 'participant',
|
25
|
+
children: [
|
26
|
+
{
|
27
|
+
meta: {
|
28
|
+
title: 'Мой Профиль',
|
29
|
+
icon: 'fa-solid fa-user',
|
30
|
+
roles: [],
|
31
|
+
agreements: agreementsBase
|
32
|
+
},
|
33
|
+
path: 'profile',
|
34
|
+
name: 'profile',
|
35
|
+
component: markRaw(ProfilePage),
|
36
|
+
children: [],
|
37
|
+
},
|
38
|
+
{
|
39
|
+
meta: {
|
40
|
+
title: 'Мой Кошелёк',
|
41
|
+
icon: 'fa-solid fa-wallet',
|
42
|
+
roles: [],
|
43
|
+
agreements: agreementsBase
|
44
|
+
},
|
45
|
+
path: 'wallet',
|
46
|
+
name: 'wallet',
|
47
|
+
component: markRaw(WalletPage),
|
48
|
+
children: [],
|
49
|
+
},
|
50
|
+
{
|
51
|
+
meta: {
|
52
|
+
title: 'Моё Подключение',
|
53
|
+
icon: 'fas fa-link',
|
54
|
+
roles: ['user'],
|
55
|
+
conditions: 'isCoop === true && coopname === "voskhod"',
|
56
|
+
},
|
57
|
+
path: '/:coopname/connect',
|
58
|
+
name: 'connect',
|
59
|
+
component: markRaw(ConnectionAgreementPage),
|
60
|
+
},
|
61
|
+
{
|
62
|
+
meta: {
|
63
|
+
title: 'Мои Реквизиты',
|
64
|
+
icon: 'fas fa-link',
|
65
|
+
roles: ['user', 'member', 'chairman']
|
66
|
+
},
|
67
|
+
path: '/:coopname/connect',
|
68
|
+
name: 'payment-methods',
|
69
|
+
component: markRaw(UserPaymentMethodsPage),
|
70
|
+
},
|
71
|
+
{
|
72
|
+
meta: {
|
73
|
+
title: 'Мои Документы',
|
74
|
+
icon: 'fa-solid fa-file-invoice',
|
75
|
+
roles: ['user', 'member', 'chairman'],
|
76
|
+
},
|
77
|
+
path: 'documents',
|
78
|
+
name: 'user-documents',
|
79
|
+
component: markRaw(UserDocumentsPage),
|
80
|
+
},
|
81
|
+
{
|
82
|
+
meta: {
|
83
|
+
title: 'Мои Платежи',
|
84
|
+
icon: 'fa-solid fa-money-bill-transfer',
|
85
|
+
roles: ['user', 'member', 'chairman'],
|
86
|
+
},
|
87
|
+
path: 'payments',
|
88
|
+
name: 'user-payments',
|
89
|
+
component: markRaw(UserPaymentsPage),
|
90
|
+
},
|
91
|
+
// {
|
92
|
+
// meta: {
|
93
|
+
// title: 'Мои Собрания',
|
94
|
+
// icon: 'fa-solid fa-users-between-lines',
|
95
|
+
// roles: ['user', 'member', 'chairman'],
|
96
|
+
// },
|
97
|
+
// path: 'meets',
|
98
|
+
// name: 'user-meets',
|
99
|
+
// component: markRaw(ListOfMeetsPage),
|
100
|
+
// children: [
|
101
|
+
// {
|
102
|
+
// path: ':hash',
|
103
|
+
// name: 'user-meet-details',
|
104
|
+
// component: markRaw(MeetDetailsPage),
|
105
|
+
// meta: {
|
106
|
+
// test: true
|
107
|
+
// }
|
108
|
+
// },
|
109
|
+
// ],
|
110
|
+
// },
|
111
|
+
{
|
112
|
+
path: '/:coopname/contacts',
|
113
|
+
name: 'contacts',
|
114
|
+
component: markRaw(ContactsPage),
|
115
|
+
meta: {
|
116
|
+
title: 'Наши Контакты',
|
117
|
+
icon: 'fa-solid fa-info',
|
118
|
+
roles: [],
|
119
|
+
},
|
120
|
+
},
|
121
|
+
]
|
122
|
+
}
|
123
|
+
]
|
124
|
+
}
|
125
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { markRaw } from 'vue'
|
2
|
+
import Page from './src/Powerup.vue'
|
3
|
+
|
4
|
+
export default async function () {
|
5
|
+
return {
|
6
|
+
workspace: 'powerup',
|
7
|
+
routes: [
|
8
|
+
{
|
9
|
+
path: '/powerup',
|
10
|
+
name: 'powerup',
|
11
|
+
component: markRaw(Page),
|
12
|
+
meta: {
|
13
|
+
title: 'Power Up',
|
14
|
+
icon: 'fa-bolt',
|
15
|
+
roles: []
|
16
|
+
}
|
17
|
+
}
|
18
|
+
]
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { markRaw } from 'vue'
|
2
|
+
import { ListOfAgendaQuestions } from 'src/pages/Cooperative/ListOfAgenda'
|
3
|
+
import { ListOfParticipantsPage } from 'src/pages/Cooperative/ListOfParticipants'
|
4
|
+
import { ListOfDocumentsPage } from 'src/pages/Cooperative/ListOfDocuments'
|
5
|
+
import { PaymentsPage } from 'src/pages/Cooperative/Payments'
|
6
|
+
// import { ListOfMeetsPage } from 'src/pages/Cooperative/ListOfMeets'
|
7
|
+
// import { MeetDetailsPage } from 'src/pages/Cooperative/MeetDetails'
|
8
|
+
|
9
|
+
export default async function () {
|
10
|
+
return {
|
11
|
+
workspace: 'soviet',
|
12
|
+
routes: [
|
13
|
+
{
|
14
|
+
meta: {
|
15
|
+
title: 'Стол совета',
|
16
|
+
icon: 'fa-regular fa-circle',
|
17
|
+
roles: ['chairman', 'member'],
|
18
|
+
},
|
19
|
+
path: '/:coopname/soviet',
|
20
|
+
name: 'soviet',
|
21
|
+
children: [
|
22
|
+
{
|
23
|
+
path: 'agenda',
|
24
|
+
name: 'agenda',
|
25
|
+
component: markRaw(ListOfAgendaQuestions),
|
26
|
+
meta: {
|
27
|
+
title: 'Повестка',
|
28
|
+
icon: 'fa-solid fa-check-to-slot',
|
29
|
+
roles: ['chairman', 'member'],
|
30
|
+
},
|
31
|
+
},
|
32
|
+
{
|
33
|
+
path: 'participants',
|
34
|
+
name: 'participants',
|
35
|
+
component: markRaw(ListOfParticipantsPage),
|
36
|
+
meta: {
|
37
|
+
title: 'Пайщики',
|
38
|
+
icon: 'fa-solid fa-users',
|
39
|
+
roles: ['chairman', 'member'],
|
40
|
+
},
|
41
|
+
},
|
42
|
+
{
|
43
|
+
path: 'documents',
|
44
|
+
name: 'documents',
|
45
|
+
component: markRaw(ListOfDocumentsPage),
|
46
|
+
meta: {
|
47
|
+
title: 'Документы',
|
48
|
+
icon: 'fa-solid fa-file-invoice',
|
49
|
+
roles: ['chairman', 'member'],
|
50
|
+
},
|
51
|
+
},
|
52
|
+
{
|
53
|
+
path: 'payments/:username?',
|
54
|
+
name: 'payments',
|
55
|
+
component: markRaw(PaymentsPage),
|
56
|
+
meta: {
|
57
|
+
title: 'Платежи',
|
58
|
+
icon: 'fa-solid fa-file-invoice',
|
59
|
+
roles: ['chairman', 'member'],
|
60
|
+
},
|
61
|
+
},
|
62
|
+
// {
|
63
|
+
// path: 'meets',
|
64
|
+
// name: 'meets',
|
65
|
+
// component: markRaw(ListOfMeetsPage),
|
66
|
+
// meta: {
|
67
|
+
// title: 'Собрания',
|
68
|
+
// icon: 'fa-solid fa-users-between-lines',
|
69
|
+
// roles: ['chairman', 'member'],
|
70
|
+
// },
|
71
|
+
// children: [
|
72
|
+
// {
|
73
|
+
// path: ':hash',
|
74
|
+
// name: 'meet-details',
|
75
|
+
// component: markRaw(MeetDetailsPage),
|
76
|
+
// },
|
77
|
+
// ],
|
78
|
+
// },
|
79
|
+
]
|
80
|
+
}
|
81
|
+
]
|
82
|
+
}
|
83
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@coopenomics/desktop",
|
3
|
-
"version": "
|
3
|
+
"version": "2025.4.29",
|
4
4
|
"description": "A Desktop Project",
|
5
5
|
"productName": "Desktop App",
|
6
6
|
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
|
@@ -15,13 +15,14 @@
|
|
15
15
|
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore",
|
16
16
|
"test": "echo \"No test specified\" && exit 0",
|
17
17
|
"dev": "concurrently -n 'DESKTOP' -c 'bgRed.white' \"quasar dev\"",
|
18
|
+
"devnet": "quasar dev",
|
18
19
|
"build:lib": "vite build",
|
19
20
|
"build": "quasar build",
|
20
21
|
"prepublishOnly": "npm run build:lib"
|
21
22
|
},
|
22
23
|
"dependencies": {
|
23
|
-
"@coopenomics/controller": "
|
24
|
-
"@coopenomics/sdk": "
|
24
|
+
"@coopenomics/controller": "2025.4.29",
|
25
|
+
"@coopenomics/sdk": "2025.4.29",
|
25
26
|
"@dicebear/collection": "^9.0.1",
|
26
27
|
"@dicebear/core": "^9.0.1",
|
27
28
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
@@ -45,7 +46,7 @@
|
|
45
46
|
"@wharfkit/wallet-plugin-privatekey": "^1.1.0",
|
46
47
|
"axios": "^1.2.1",
|
47
48
|
"compression": "^1.7.4",
|
48
|
-
"cooptypes": "
|
49
|
+
"cooptypes": "2025.4.29",
|
49
50
|
"dompurify": "^3.1.7",
|
50
51
|
"dotenv": "^16.4.5",
|
51
52
|
"email-regex": "^5.0.0",
|
@@ -94,5 +95,5 @@
|
|
94
95
|
"npm": ">= 6.13.4",
|
95
96
|
"yarn": ">= 1.21.1"
|
96
97
|
},
|
97
|
-
"gitHead": "
|
98
|
+
"gitHead": "397670473ae57d53b0b48cd1c3bc6e2d531015fa"
|
98
99
|
}
|
package/quasar.config.cjs
CHANGED
@@ -10,17 +10,12 @@
|
|
10
10
|
require('dotenv').config();
|
11
11
|
const { configure } = require('quasar/wrappers');
|
12
12
|
const path = require('path');
|
13
|
-
const glob = require('glob')
|
14
13
|
|
15
14
|
module.exports = configure(function (/* ctx */) {
|
16
|
-
// Ищем все boot файлы в директории extensions
|
17
|
-
const extensionBootFiles = glob
|
18
|
-
.sync('extensions/**/boot.{ts,js}') // Ищем файлы с расширениями .ts и .js
|
19
|
-
.map(file => '../../' + file.replace(/\.(ts|js)$/, '')) // Добавляем ../../ и убираем расширение
|
20
15
|
|
21
16
|
return {
|
22
17
|
htmlVariables: {
|
23
|
-
SITE_TITLE: process.env.
|
18
|
+
SITE_TITLE: process.env.COOP_SHORT_NAME || 'Цифровой Кооператив',
|
24
19
|
SITE_DESCRIPTION:
|
25
20
|
process.env.SITE_DESCRIPTION ||
|
26
21
|
'кооперативная экономика для сообществ и бизнеса',
|
@@ -34,11 +29,8 @@ module.exports = configure(function (/* ctx */) {
|
|
34
29
|
// --> boot files are part of "main.js"
|
35
30
|
// https://v2.quasar.dev/quasar-cli-vite/boot-files
|
36
31
|
boot: [
|
37
|
-
'init
|
38
|
-
'
|
39
|
-
'i18n', 'axios', 'sentry',
|
40
|
-
'branch-selector',
|
41
|
-
...extensionBootFiles
|
32
|
+
'init',
|
33
|
+
'i18n', 'axios', 'sentry'
|
42
34
|
],
|
43
35
|
|
44
36
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
|
@@ -128,7 +120,8 @@ module.exports = configure(function (/* ctx */) {
|
|
128
120
|
open: false, // opens browser window automatically
|
129
121
|
port: 3005,
|
130
122
|
hmr:{
|
131
|
-
|
123
|
+
clientPort: 3005,
|
124
|
+
// overlay: false
|
132
125
|
}
|
133
126
|
},
|
134
127
|
|
package/src/app/App.vue
CHANGED
@@ -1,87 +1,58 @@
|
|
1
|
-
<template lang=
|
1
|
+
<template lang="pug">
|
2
2
|
div(v-if="isLoaded").breable-text
|
3
3
|
router-view
|
4
4
|
RequireAgreements
|
5
5
|
SelectBranchOverlay
|
6
6
|
</template>
|
7
|
-
<script setup lang="ts">
|
8
|
-
import { onMounted, ref, watch } from 'vue'
|
9
|
-
import { FailAlert } from 'src/shared/api/alerts'
|
10
|
-
import { handleException } from 'src/shared/api';
|
11
|
-
import { useRoute } from 'vue-router'
|
12
|
-
import 'src/app/styles/quasar-variables.sass'
|
13
|
-
import { useDesktopStore } from 'src/entities/Desktop/model';
|
14
|
-
import { Cookies, LocalStorage, QSpinnerGears, useQuasar } from 'quasar';
|
15
7
|
|
16
|
-
|
17
|
-
import {
|
18
|
-
import {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
const
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
8
|
+
<script setup lang="ts">
|
9
|
+
import { onMounted, ref } from 'vue'
|
10
|
+
import { useRoute } from 'vue-router'
|
11
|
+
import { Cookies, LocalStorage } from 'quasar'
|
12
|
+
import { FailAlert } from 'src/shared/api/alerts'
|
13
|
+
import { handleException } from 'src/shared/api'
|
14
|
+
import { RequireAgreements } from 'src/widgets/RequireAgreements'
|
15
|
+
import { SelectBranchOverlay } from 'src/features/Branch/SelectBranch'
|
16
|
+
import { useSystemStore } from 'src/entities/System/model'
|
17
|
+
import { useDesktopHealthWatcherProcess } from 'src/processes/watch-desktop-health'
|
18
|
+
|
19
|
+
const { info } = useSystemStore()
|
20
|
+
const route = useRoute()
|
21
|
+
const isLoaded = ref(false)
|
22
|
+
|
23
|
+
// запускаем процесс мониторинга "технического обслуживания"
|
24
|
+
useDesktopHealthWatcherProcess()
|
25
|
+
|
26
|
+
onMounted(() => {
|
27
|
+
try {
|
28
|
+
removeLoader()
|
29
|
+
isLoaded.value = true
|
30
|
+
|
31
|
+
const ref = Cookies.get('referer') || String(route.query.r || '')
|
32
|
+
if (ref) {
|
33
|
+
LocalStorage.setItem(`${info.coopname}:referer`, ref)
|
34
|
+
}
|
35
|
+
} catch (e) {
|
36
|
+
console.error(e)
|
37
|
+
handleException(e)
|
38
|
+
isLoaded.value = true
|
39
|
+
removeLoader()
|
40
|
+
}
|
33
41
|
})
|
34
|
-
}
|
35
|
-
|
36
|
-
const disableLoading = () => {
|
37
|
-
$q.loading.hide()
|
38
|
-
}
|
39
|
-
|
40
|
-
const onlineCheck = () => {
|
41
|
-
if (desktop.online === false) {
|
42
|
-
enableLoading()
|
43
|
-
} else {
|
44
|
-
disableLoading()
|
45
|
-
}
|
46
|
-
}
|
47
42
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
try {
|
55
|
-
removeLoader()
|
56
|
-
isLoaded.value = true
|
57
|
-
|
58
|
-
const ref = Cookies.get('referer') || String(route.query.r || '')
|
59
|
-
|
60
|
-
if (ref) {
|
61
|
-
LocalStorage.setItem(`${info.coopname}:referer`, ref)
|
43
|
+
function removeLoader() {
|
44
|
+
const loaderContainer = document.querySelector('.loader-container')
|
45
|
+
if (loaderContainer) {
|
46
|
+
loaderContainer.remove()
|
47
|
+
} else {
|
48
|
+
FailAlert('Возникла ошибка при загрузке сайта :(')
|
62
49
|
}
|
63
|
-
} catch (e: unknown) {
|
64
|
-
|
65
|
-
console.error(e)
|
66
|
-
handleException(e)
|
67
|
-
// router.push({ name: 'somethingBad' })
|
68
|
-
isLoaded.value = true
|
69
|
-
removeLoader()
|
70
50
|
}
|
71
|
-
|
72
|
-
})
|
73
|
-
|
74
|
-
function removeLoader() {
|
75
|
-
const loaderContainer = document.querySelector('.loader-container')
|
76
|
-
if (loaderContainer) {
|
77
|
-
loaderContainer.remove()
|
78
|
-
} else {
|
79
|
-
FailAlert('Возникла ошибка при загрузке сайта :(')
|
80
|
-
}
|
81
|
-
}
|
82
51
|
</script>
|
83
52
|
<style>
|
84
53
|
.q-loading__backdrop {
|
85
|
-
|
54
|
+
/* стиль полного оверлея технического обслуживания */
|
55
|
+
opacity: 1 !important;
|
86
56
|
}
|
87
|
-
|
57
|
+
|
58
|
+
</style>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
q-layout(view="lHh LpR fff")
|
3
|
+
Header(:showDrawer="showDrawer" @toggle-left-drawer="toggleLeftDrawer")
|
4
|
+
|
5
|
+
q-drawer(v-if="showDrawer" v-model="leftDrawerOpen" side="left" bordered :width="200")
|
6
|
+
LeftDrawerMenu
|
7
|
+
|
8
|
+
q-footer(v-if="!loggedIn" :class="headerClass" bordered)
|
9
|
+
ContactsFooter(:text="footerText")
|
10
|
+
|
11
|
+
q-page-container
|
12
|
+
q-page
|
13
|
+
router-view
|
14
|
+
</template>
|
15
|
+
|
16
|
+
<script setup lang="ts">
|
17
|
+
import { Header } from 'src/widgets/Header/CommonHeader'
|
18
|
+
import { LeftDrawerMenu } from 'src/widgets/Desktop/LeftDrawerMenu'
|
19
|
+
import { ContactsFooter } from 'src/shared/ui/Footer'
|
20
|
+
import { useDefaultLayoutLogic} from './useDefaultLayoutLogic'
|
21
|
+
|
22
|
+
const {
|
23
|
+
leftDrawerOpen,
|
24
|
+
showDrawer,
|
25
|
+
headerClass,
|
26
|
+
footerText,
|
27
|
+
loggedIn,
|
28
|
+
toggleLeftDrawer,
|
29
|
+
} = useDefaultLayoutLogic()
|
30
|
+
</script>
|
31
|
+
|
32
|
+
<style lang="scss">
|
33
|
+
.drawer-right {
|
34
|
+
border-left: 1px solid #00800038 !important;
|
35
|
+
}
|
36
|
+
|
37
|
+
.drawer-left {
|
38
|
+
border-right: 1px solid #00800038 !important;
|
39
|
+
}
|
40
|
+
</style>
|