@coopenomics/desktop 2.2.10 → 2025.5.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/.env-example +6 -1
- package/.env-testnet +8 -0
- package/Dockerfile +12 -0
- package/alias-resolver.js +35 -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 +14 -7
- package/quasar.config.cjs +28 -15
- 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/router.ts +4 -3
- 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 +14 -14
- package/src/desktops/index.ts +0 -6
- package/src/entities/Account/model/index.ts +1 -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 +4 -4
- 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/env.d.ts +2 -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 -105
- 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 +4 -5
- package/src/features/Request/CreateParentOffer/ui/ImageUploaderWithPreview/ImageUploaderWithPreview.vue +5 -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 +5 -5
- package/src/features/Union/AddCooperative/ui/AddCooperativeForm.vue +6 -9
- package/src/features/User/AddUser/ui/AddUserDialog/AddUserDialog.vue +4 -4
- package/src/features/User/LoginUser/model/index.ts +3 -7
- package/src/features/User/LoginUser/ui/LoginForm/LoginForm.vue +0 -6
- package/src/features/User/Logout/model/index.ts +2 -1
- package/src/features/Wallet/DepositToWallet/ui/DepositButton/DepositButton.vue +10 -7
- package/src/features/Wallet/WithdrawFromWallet/ui/withdrawButton.vue +7 -6
- 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} +12 -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/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 +51 -24
- 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 +4 -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 +6 -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 +5 -5
- package/src/shared/api/client.ts +4 -4
- package/src/shared/api/eosio.ts +2 -2
- package/src/shared/api/indexDB.ts +3 -0
- package/src/shared/api/utils.ts +2 -2
- package/src/shared/config/Environment.ts +68 -0
- package/src/shared/config/index.ts +2 -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/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/proxy/dicebear-collection.cjs +21 -0
- package/src/shared/lib/proxy/dicebear-core.cjs +20 -0
- package/src/shared/lib/proxy/email-regex.cjs +19 -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/ClientOnly/ClientOnly.vue +15 -0
- package/src/shared/ui/ClientOnly/index.ts +1 -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 +9 -8
- package/src/shared/ui/EditableIndividualCard/EditableIndividualCard.vue +10 -10
- package/src/shared/ui/EditableOrganizationCard/EditableOrganizationCard.vue +57 -47
- 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/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 +88 -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 +2 -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/src-ssr/middlewares/injectEnv.ts +49 -0
- 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 -51
- 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 -329
- 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 -186
- 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/IndividualCard.vue +0 -170
- 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/Cooperative/{ListOfBranches/ui/ListOfBranchesPage.vue → MemberBranchList/ui/MemberBranchListPage.vue} +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/Dockerfile
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
// Перенаправление импортов для ESM модулей в SSR
|
2
|
+
const path = require('path');
|
3
|
+
const fs = require('fs');
|
4
|
+
|
5
|
+
// Список модулей, которые нужно перенаправить
|
6
|
+
const modulesToResolve = {
|
7
|
+
'@dicebear/core': path.resolve(__dirname, 'src/shared/lib/proxy/dicebear-core.cjs'),
|
8
|
+
'@dicebear/collection': path.resolve(__dirname, 'src/shared/lib/proxy/dicebear-collection.cjs'),
|
9
|
+
'email-regex': path.resolve(__dirname, 'src/shared/lib/proxy/email-regex.cjs')
|
10
|
+
};
|
11
|
+
|
12
|
+
// Проверяем, существуют ли прокси-файлы
|
13
|
+
Object.entries(modulesToResolve).forEach(([moduleName, proxyPath]) => {
|
14
|
+
if (!fs.existsSync(proxyPath)) {
|
15
|
+
console.error(`Прокси-файл для ${moduleName} не найден по пути ${proxyPath}`);
|
16
|
+
process.exit(1);
|
17
|
+
}
|
18
|
+
});
|
19
|
+
|
20
|
+
// Регистрируем перехватчик для require
|
21
|
+
require.extensions['.js'] = function(module, filename) {
|
22
|
+
const originalCompile = module._compile;
|
23
|
+
|
24
|
+
module._compile = function(content, filename) {
|
25
|
+
// Заменяем импорты проблемных модулей на наши прокси
|
26
|
+
Object.keys(modulesToResolve).forEach(moduleName => {
|
27
|
+
const regex = new RegExp(`require\\(['"]${moduleName}['"]\\)`, 'g');
|
28
|
+
content = content.replace(regex, `require('${modulesToResolve[moduleName]}')`);
|
29
|
+
});
|
30
|
+
|
31
|
+
return originalCompile.call(this, content, filename);
|
32
|
+
};
|
33
|
+
|
34
|
+
module._compile(fs.readFileSync(filename, 'utf8'), filename);
|
35
|
+
};
|
@@ -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.5.2",
|
4
4
|
"description": "A Desktop Project",
|
5
5
|
"productName": "Desktop App",
|
6
6
|
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
|
@@ -15,13 +15,17 @@
|
|
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",
|
19
|
+
"ssr": "quasar dev --mode ssr",
|
18
20
|
"build:lib": "vite build",
|
19
|
-
"build": "quasar build",
|
20
|
-
"
|
21
|
+
"build:spa": "quasar build",
|
22
|
+
"build": "quasar build --mode ssr",
|
23
|
+
"prepublishOnly": "npm run build:lib",
|
24
|
+
"start": "node -r ./alias-resolver.js dist/ssr/index.js"
|
21
25
|
},
|
22
26
|
"dependencies": {
|
23
|
-
"@coopenomics/controller": "
|
24
|
-
"@coopenomics/sdk": "
|
27
|
+
"@coopenomics/controller": "2025.5.2",
|
28
|
+
"@coopenomics/sdk": "2025.5.2",
|
25
29
|
"@dicebear/collection": "^9.0.1",
|
26
30
|
"@dicebear/core": "^9.0.1",
|
27
31
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
@@ -45,13 +49,15 @@
|
|
45
49
|
"@wharfkit/wallet-plugin-privatekey": "^1.1.0",
|
46
50
|
"axios": "^1.2.1",
|
47
51
|
"compression": "^1.7.4",
|
48
|
-
"cooptypes": "
|
52
|
+
"cooptypes": "2025.5.2",
|
49
53
|
"dompurify": "^3.1.7",
|
50
54
|
"dotenv": "^16.4.5",
|
51
55
|
"email-regex": "^5.0.0",
|
52
56
|
"eosjs": "^22.1.0",
|
53
57
|
"express": "^4.21.0",
|
58
|
+
"graphql-ws": "^5.16.0",
|
54
59
|
"idb": "^8.0.0",
|
60
|
+
"isomorphic-ws": "^5.0.0",
|
55
61
|
"lodash": "^4.17.21",
|
56
62
|
"moment-with-locales-es6": "^1.0.1",
|
57
63
|
"pinia": "^2.0.11",
|
@@ -59,6 +65,7 @@
|
|
59
65
|
"pug": "^3.0.3",
|
60
66
|
"qrcode": "^1.5.4",
|
61
67
|
"quasar": "^2.16.0",
|
68
|
+
"serialize-javascript": "^6.0.2",
|
62
69
|
"swiper": "^11.1.7",
|
63
70
|
"vite": "2.9.16",
|
64
71
|
"vue": "^3.4.18",
|
@@ -94,5 +101,5 @@
|
|
94
101
|
"npm": ">= 6.13.4",
|
95
102
|
"yarn": ">= 1.21.1"
|
96
103
|
},
|
97
|
-
"gitHead": "
|
104
|
+
"gitHead": "b930543c2bd9a67214210dd1909d535816f1ec8f"
|
98
105
|
}
|
package/quasar.config.cjs
CHANGED
@@ -7,20 +7,26 @@
|
|
7
7
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js
|
8
8
|
|
9
9
|
// const config = require('./src/shared/config/Env.ts');
|
10
|
-
|
10
|
+
|
11
11
|
const { configure } = require('quasar/wrappers');
|
12
12
|
const path = require('path');
|
13
|
-
const glob = require('glob')
|
14
13
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
|
15
|
+
module.exports = configure(function (ctx) {
|
16
|
+
|
17
|
+
const isSSR = ctx.mode.ssr;
|
18
|
+
const isDev = ctx.dev;
|
19
|
+
|
20
|
+
// Загружаем переменные окружения всегда в режиме разработки
|
21
|
+
// или только для клиентской части в продакшн
|
22
|
+
const env = (isDev || !isSSR) ? require('dotenv').config().parsed : {
|
23
|
+
CLIENT: process.env.CLIENT,
|
24
|
+
SERVER: process.env.SERVER,
|
25
|
+
};
|
20
26
|
|
21
27
|
return {
|
22
28
|
htmlVariables: {
|
23
|
-
SITE_TITLE: process.env.
|
29
|
+
SITE_TITLE: process.env.COOP_SHORT_NAME || 'Цифровой Кооператив',
|
24
30
|
SITE_DESCRIPTION:
|
25
31
|
process.env.SITE_DESCRIPTION ||
|
26
32
|
'кооперативная экономика для сообществ и бизнеса',
|
@@ -34,11 +40,8 @@ module.exports = configure(function (/* ctx */) {
|
|
34
40
|
// --> boot files are part of "main.js"
|
35
41
|
// https://v2.quasar.dev/quasar-cli-vite/boot-files
|
36
42
|
boot: [
|
37
|
-
'init
|
38
|
-
'
|
39
|
-
'i18n', 'axios', 'sentry',
|
40
|
-
'branch-selector',
|
41
|
-
...extensionBootFiles
|
43
|
+
'init',
|
44
|
+
'i18n', 'axios', 'sentry'
|
42
45
|
],
|
43
46
|
|
44
47
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
|
@@ -80,7 +83,8 @@ module.exports = configure(function (/* ctx */) {
|
|
80
83
|
|
81
84
|
// publicPath: '/',
|
82
85
|
// analyze: true,
|
83
|
-
env: require('dotenv').config().parsed,
|
86
|
+
// env: require('dotenv').config().parsed,
|
87
|
+
env,
|
84
88
|
// rawDefine: {}
|
85
89
|
// ignorePublicFolder: true,
|
86
90
|
// minify: false,
|
@@ -119,6 +123,10 @@ module.exports = configure(function (/* ctx */) {
|
|
119
123
|
{ server: false },
|
120
124
|
],
|
121
125
|
],
|
126
|
+
|
127
|
+
optimizeDeps: {
|
128
|
+
include: ['@dicebear/core', '@dicebear/collection']
|
129
|
+
},
|
122
130
|
},
|
123
131
|
|
124
132
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
|
@@ -128,7 +136,8 @@ module.exports = configure(function (/* ctx */) {
|
|
128
136
|
open: false, // opens browser window automatically
|
129
137
|
port: 3005,
|
130
138
|
hmr:{
|
131
|
-
|
139
|
+
// clientPort: 3005,
|
140
|
+
// overlay: false
|
132
141
|
}
|
133
142
|
},
|
134
143
|
|
@@ -190,8 +199,12 @@ module.exports = configure(function (/* ctx */) {
|
|
190
199
|
// (gets superseded if process.env.PORT is specified at runtime)
|
191
200
|
|
192
201
|
middlewares: [
|
202
|
+
'injectEnv', // middleware для инъекции process.env в window.__ENV__
|
193
203
|
'render', // keep this as last one
|
194
204
|
],
|
205
|
+
|
206
|
+
// Не обрабатывать эти модули для SSR
|
207
|
+
noExternal: ['@dicebear/core', '@dicebear/collection']
|
195
208
|
},
|
196
209
|
|
197
210
|
// https://v2.quasar.dev/quasar-cli-vite/developing-pwa/configuring-pwa
|