@cyberskill/shared 1.208.0 → 1.210.0
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/dist/{src/config → config}/config.type.d.ts +1 -1
- package/dist/config/config.type.js +4 -0
- package/dist/{src/config → config}/config.util.d.ts +1 -1
- package/dist/config/config.util.js +49 -0
- package/dist/{src/config → config}/env/env.util.js +7 -7
- package/dist/config/eslint/index.js +18 -0
- package/dist/config/graphql-codegen/graphql-codegen.util.js +37 -0
- package/dist/config/index.js +6 -0
- package/dist/config/vitest/vitest.e2e.js +23 -0
- package/dist/config/vitest/vitest.unit.js +19 -0
- package/dist/constant/common.js +4 -0
- package/dist/node/apollo-server/apollo-server.util.js +29 -0
- package/dist/node/cli/index.js +110 -0
- package/dist/node/command/command.type.js +4 -0
- package/dist/node/command/command.util.js +144 -0
- package/dist/node/command/index.js +11 -0
- package/dist/node/express/express.util.js +48 -0
- package/dist/node/express/index.js +13 -0
- package/dist/node/fs/fs.util.js +48 -0
- package/dist/node/log/index.js +8 -0
- package/dist/{log.type-DTOvZHyz.js → node/log/log.type.js} +1 -1
- package/dist/node/log/log.util.js +59 -0
- package/dist/node/mongo/index.js +17 -0
- package/dist/node/mongo/mongo.type.js +16 -0
- package/dist/node/mongo/mongo.util.js +488 -0
- package/dist/node/package/index.js +10 -0
- package/dist/node/package/package.type.js +4 -0
- package/dist/node/package/package.util.js +225 -0
- package/dist/node/path/index.js +52 -0
- package/dist/node/path/path.constant.js +273 -0
- package/dist/node/storage/storage.util.js +51 -0
- package/dist/node/upload/index.js +7 -0
- package/dist/node/upload/upload.type.js +4 -0
- package/dist/node/upload/upload.util.js +126 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.13_@vitest_browser@3.2.4_jiti@2.4.2_j_cac3da623d5688a51c0b1a2270e144db/node_modules/vitest/dist/config.js +6 -0
- package/dist/react/apollo-client/apollo-client.component.js +20 -0
- package/dist/{src/react → react}/apollo-client/apollo-client.context.js +2 -2
- package/dist/{src/react → react}/apollo-client/apollo-client.type.d.ts +1 -1
- package/dist/react/apollo-client/apollo-client.util.js +101 -0
- package/dist/react/apollo-client/index.js +29 -0
- package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.component.js +7 -8
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.js +14 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.component.js +8 -15
- package/dist/react/apollo-error/apollo-error.module.scss.js +11 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.provider.js +2 -2
- package/dist/react/apollo-error/apollo-error.util.js +11 -0
- package/dist/react/loading/loading.component.js +34 -0
- package/dist/react/loading/loading.module.scss.js +15 -0
- package/dist/{src/react → react}/loading/loading.provider.d.ts +1 -1
- package/dist/react/loading/loading.provider.js +17 -0
- package/dist/react/log/log.util.js +30 -0
- package/dist/{src/react → react}/next-intl/next-intl.hoc.d.ts +1 -1
- package/dist/react/next-intl/next-intl.hoc.js +23 -0
- package/dist/react/next-intl/next-intl.provider.js +23 -0
- package/dist/{src/react → react}/next-intl/next-intl.type.d.ts +1 -1
- package/dist/react/storage/storage.hook.js +61 -0
- package/dist/react/storage/storage.util.js +35 -0
- package/dist/react/userback/userback.component.js +27 -0
- package/dist/style.css +1 -1
- package/dist/typescript/index.d.ts +2 -0
- package/dist/typescript/index.js +4 -0
- package/dist/{src/util → util}/common/common.util.js +14 -25
- package/dist/{src/util → util}/object/object.util.d.ts +1 -1
- package/dist/util/object/object.util.js +67 -0
- package/dist/util/string/string.util.js +51 -0
- package/package.json +77 -110
- package/dist/config-B7WSlzSh.js +0 -8
- package/dist/config-DDQ9k8fw.cjs +0 -1
- package/dist/config.util-Ci2CZDut.cjs +0 -1
- package/dist/config.util-DKBwEBKR.js +0 -61
- package/dist/favicon/android-icon-144x144.png +0 -0
- package/dist/favicon/android-icon-192x192.png +0 -0
- package/dist/favicon/android-icon-36x36.png +0 -0
- package/dist/favicon/android-icon-48x48.png +0 -0
- package/dist/favicon/android-icon-72x72.png +0 -0
- package/dist/favicon/android-icon-96x96.png +0 -0
- package/dist/favicon/apple-icon-114x114.png +0 -0
- package/dist/favicon/apple-icon-120x120.png +0 -0
- package/dist/favicon/apple-icon-144x144.png +0 -0
- package/dist/favicon/apple-icon-152x152.png +0 -0
- package/dist/favicon/apple-icon-180x180.png +0 -0
- package/dist/favicon/apple-icon-57x57.png +0 -0
- package/dist/favicon/apple-icon-60x60.png +0 -0
- package/dist/favicon/apple-icon-72x72.png +0 -0
- package/dist/favicon/apple-icon-76x76.png +0 -0
- package/dist/favicon/apple-icon-precomposed.png +0 -0
- package/dist/favicon/apple-icon.png +0 -0
- package/dist/favicon/browserconfig.xml +0 -2
- package/dist/favicon/favicon-16x16.png +0 -0
- package/dist/favicon/favicon-32x32.png +0 -0
- package/dist/favicon/favicon-96x96.png +0 -0
- package/dist/favicon/favicon.ico +0 -0
- package/dist/favicon/manifest.json +0 -41
- package/dist/favicon/ms-icon-144x144.png +0 -0
- package/dist/favicon/ms-icon-150x150.png +0 -0
- package/dist/favicon/ms-icon-310x310.png +0 -0
- package/dist/favicon/ms-icon-70x70.png +0 -0
- package/dist/log.type-CMvG6Box.cjs +0 -1
- package/dist/magic-string.es-C6Zk6wMx.js +0 -671
- package/dist/magic-string.es-CjWtD8Pa.cjs +0 -10
- package/dist/path.constant-CWtb99gS.cjs +0 -2
- package/dist/path.constant-CvSr0Rrx.js +0 -682
- package/dist/src/config/commitlint/index.cjs +0 -1
- package/dist/src/config/config.util.cjs +0 -1
- package/dist/src/config/config.util.js +0 -9
- package/dist/src/config/env/env.constant.cjs +0 -1
- package/dist/src/config/env/env.d.cjs +0 -1
- package/dist/src/config/env/env.d.js +0 -1
- package/dist/src/config/env/env.util.cjs +0 -1
- package/dist/src/config/env/index.cjs +0 -1
- package/dist/src/config/eslint/index.cjs +0 -1
- package/dist/src/config/eslint/index.js +0 -29
- package/dist/src/config/graphql-codegen/graphql-codegen.util.cjs +0 -1
- package/dist/src/config/graphql-codegen/graphql-codegen.util.js +0 -46
- package/dist/src/config/graphql-codegen/index.cjs +0 -1
- package/dist/src/config/index.cjs +0 -1
- package/dist/src/config/index.js +0 -5
- package/dist/src/config/lint-staged/index.cjs +0 -1
- package/dist/src/config/vitest/index.cjs +0 -1
- package/dist/src/config/vitest/vitest.e2e.cjs +0 -1
- package/dist/src/config/vitest/vitest.e2e.js +0 -33
- package/dist/src/config/vitest/vitest.unit.cjs +0 -1
- package/dist/src/config/vitest/vitest.unit.js +0 -30
- package/dist/src/config/vitest/vitest.unit.setup.cjs +0 -508
- package/dist/src/config/vitest/vitest.unit.setup.js +0 -31519
- package/dist/src/constant/common.cjs +0 -1
- package/dist/src/constant/common.js +0 -4
- package/dist/src/constant/index.cjs +0 -1
- package/dist/src/constant/response-status.cjs +0 -1
- package/dist/src/node/apollo-server/apollo-server.util.cjs +0 -1
- package/dist/src/node/apollo-server/apollo-server.util.js +0 -62
- package/dist/src/node/apollo-server/index.cjs +0 -1
- package/dist/src/node/cli/cli.util.cjs +0 -6
- package/dist/src/node/cli/cli.util.js +0 -171
- package/dist/src/node/cli/index.cjs +0 -1
- package/dist/src/node/cli/index.d.ts +0 -1
- package/dist/src/node/cli/index.js +0 -1
- package/dist/src/node/command/command.util.cjs +0 -1
- package/dist/src/node/command/command.util.js +0 -17
- package/dist/src/node/command/index.cjs +0 -1
- package/dist/src/node/command/index.js +0 -10
- package/dist/src/node/express/express.util.cjs +0 -1
- package/dist/src/node/express/express.util.js +0 -88
- package/dist/src/node/express/index.cjs +0 -1
- package/dist/src/node/express/index.js +0 -13
- package/dist/src/node/fs/fs.util.cjs +0 -1
- package/dist/src/node/fs/fs.util.js +0 -67
- package/dist/src/node/fs/index.cjs +0 -1
- package/dist/src/node/log/index.cjs +0 -1
- package/dist/src/node/log/index.js +0 -8
- package/dist/src/node/log/log.util.cjs +0 -1
- package/dist/src/node/log/log.util.js +0 -60
- package/dist/src/node/mongo/index.cjs +0 -1
- package/dist/src/node/mongo/index.js +0 -26
- package/dist/src/node/mongo/mongo.constant.cjs +0 -1
- package/dist/src/node/mongo/mongo.util.cjs +0 -5
- package/dist/src/node/mongo/mongo.util.js +0 -564
- package/dist/src/node/package/index.cjs +0 -1
- package/dist/src/node/package/index.js +0 -9
- package/dist/src/node/package/package.util.cjs +0 -1
- package/dist/src/node/package/package.util.js +0 -13
- package/dist/src/node/path/index.cjs +0 -1
- package/dist/src/node/path/index.js +0 -52
- package/dist/src/node/path/path.constant.cjs +0 -1
- package/dist/src/node/path/path.constant.js +0 -49
- package/dist/src/node/path/path.util.cjs +0 -1
- package/dist/src/node/storage/index.cjs +0 -1
- package/dist/src/node/storage/storage.util.cjs +0 -1
- package/dist/src/node/storage/storage.util.js +0 -81
- package/dist/src/node/upload/index.cjs +0 -1
- package/dist/src/node/upload/index.js +0 -6
- package/dist/src/node/upload/upload.util.cjs +0 -1
- package/dist/src/node/upload/upload.util.js +0 -8
- package/dist/src/node/ws/index.cjs +0 -1
- package/dist/src/node/ws/ts.util.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.component.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.component.js +0 -21
- package/dist/src/react/apollo-client/apollo-client.constant.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.context.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.hook.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.hook.js +0 -11
- package/dist/src/react/apollo-client/apollo-client.util.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.util.js +0 -116
- package/dist/src/react/apollo-client/index.cjs +0 -1
- package/dist/src/react/apollo-client/index.js +0 -30
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.component.cjs +0 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs +0 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.cjs +0 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.js +0 -24
- package/dist/src/react/apollo-client-nextjs/index.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.component.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.context.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.hook.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.provider.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.util.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.util.js +0 -11
- package/dist/src/react/apollo-error/index.cjs +0 -1
- package/dist/src/react/i18next/i18next.hook.cjs +0 -1
- package/dist/src/react/i18next/i18next.util.cjs +0 -1
- package/dist/src/react/i18next/index.cjs +0 -1
- package/dist/src/react/loading/index.cjs +0 -1
- package/dist/src/react/loading/loading.component.cjs +0 -6
- package/dist/src/react/loading/loading.component.js +0 -61
- package/dist/src/react/loading/loading.context.cjs +0 -1
- package/dist/src/react/loading/loading.hook.cjs +0 -1
- package/dist/src/react/loading/loading.provider.cjs +0 -1
- package/dist/src/react/loading/loading.provider.js +0 -17
- package/dist/src/react/log/index.cjs +0 -1
- package/dist/src/react/log/log.util.cjs +0 -1
- package/dist/src/react/log/log.util.js +0 -30
- package/dist/src/react/next-intl/index.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.constant.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.context.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.hoc.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.hoc.js +0 -35
- package/dist/src/react/next-intl/next-intl.hook.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.provider.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.provider.js +0 -25
- package/dist/src/react/storage/index.cjs +0 -1
- package/dist/src/react/storage/storage.hook.cjs +0 -1
- package/dist/src/react/storage/storage.hook.js +0 -77
- package/dist/src/react/storage/storage.util.cjs +0 -1
- package/dist/src/react/storage/storage.util.js +0 -60
- package/dist/src/react/toast/index.cjs +0 -1
- package/dist/src/react/userback/index.cjs +0 -1
- package/dist/src/react/userback/userback.component.cjs +0 -1
- package/dist/src/react/userback/userback.component.js +0 -54
- package/dist/src/typescript/common.cjs +0 -1
- package/dist/src/typescript/index.cjs +0 -1
- package/dist/src/typescript/index.d.ts +0 -2
- package/dist/src/typescript/index.js +0 -4
- package/dist/src/typescript/react.cjs +0 -1
- package/dist/src/typescript/react.js +0 -1
- package/dist/src/typescript/style.d.cjs +0 -1
- package/dist/src/typescript/style.d.js +0 -1
- package/dist/src/util/common/common.util.cjs +0 -1
- package/dist/src/util/common/index.cjs +0 -1
- package/dist/src/util/index.cjs +0 -1
- package/dist/src/util/object/index.cjs +0 -1
- package/dist/src/util/object/object.util.cjs +0 -1
- package/dist/src/util/object/object.util.js +0 -77
- package/dist/src/util/serializer/index.cjs +0 -1
- package/dist/src/util/serializer/serializer.util.cjs +0 -1
- package/dist/src/util/string/index.cjs +0 -1
- package/dist/src/util/string/string.util.cjs +0 -1
- package/dist/src/util/string/string.util.js +0 -64
- package/dist/src/util/validate/index.cjs +0 -1
- package/dist/src/util/validate/validate.util.cjs +0 -1
- package/dist/tsconfig.base.json +0 -37
- package/dist/upload.util-CE3MjBdh.cjs +0 -1
- package/dist/upload.util-D4aUdmPo.js +0 -160
- /package/dist/{src/config → config}/commitlint/index.d.ts +0 -0
- /package/dist/{src/config → config}/commitlint/index.js +0 -0
- /package/dist/{src/config → config}/env/env.constant.d.ts +0 -0
- /package/dist/{src/config → config}/env/env.constant.js +0 -0
- /package/dist/{src/config → config}/env/env.type.d.ts +0 -0
- /package/dist/{src/config → config}/env/env.util.d.ts +0 -0
- /package/dist/{src/config → config}/env/index.d.ts +0 -0
- /package/dist/{src/config → config}/env/index.js +0 -0
- /package/dist/{src/config → config}/eslint/index.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/graphql-codegen.type.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/graphql-codegen.util.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/index.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/index.js +0 -0
- /package/dist/{src/config → config}/index.d.ts +0 -0
- /package/dist/{src/config → config}/lint-staged/index.d.ts +0 -0
- /package/dist/{src/config → config}/lint-staged/index.js +0 -0
- /package/dist/{src/config → config}/vitest/index.d.ts +0 -0
- /package/dist/{src/config → config}/vitest/index.js +0 -0
- /package/dist/{src/config → config}/vitest/vitest.e2e.d.ts +0 -0
- /package/dist/{src/config → config}/vitest/vitest.unit.d.ts +0 -0
- /package/dist/{src/constant → constant}/common.d.ts +0 -0
- /package/dist/{src/constant → constant}/index.d.ts +0 -0
- /package/dist/{src/constant → constant}/index.js +0 -0
- /package/dist/{src/constant → constant}/response-status.d.ts +0 -0
- /package/dist/{src/constant → constant}/response-status.js +0 -0
- /package/dist/{src/node → node}/apollo-server/apollo-server.type.d.ts +0 -0
- /package/dist/{src/node → node}/apollo-server/apollo-server.util.d.ts +0 -0
- /package/dist/{src/node → node}/apollo-server/index.d.ts +0 -0
- /package/dist/{src/node → node}/apollo-server/index.js +0 -0
- /package/dist/{src/node/cli/cli.util.d.ts → node/cli/index.d.ts} +0 -0
- /package/dist/{src/node → node}/command/command.type.d.ts +0 -0
- /package/dist/{src/node → node}/command/command.util.d.ts +0 -0
- /package/dist/{src/node → node}/command/index.d.ts +0 -0
- /package/dist/{src/node → node}/express/express.type.d.ts +0 -0
- /package/dist/{src/node → node}/express/express.util.d.ts +0 -0
- /package/dist/{src/node → node}/express/index.d.ts +0 -0
- /package/dist/{src/node → node}/fs/fs.type.d.ts +0 -0
- /package/dist/{src/node → node}/fs/fs.util.d.ts +0 -0
- /package/dist/{src/node → node}/fs/index.d.ts +0 -0
- /package/dist/{src/node → node}/fs/index.js +0 -0
- /package/dist/{src/node → node}/log/index.d.ts +0 -0
- /package/dist/{src/node → node}/log/log.type.d.ts +0 -0
- /package/dist/{src/node → node}/log/log.util.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/index.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.constant.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.constant.js +0 -0
- /package/dist/{src/node → node}/mongo/mongo.type.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.util.d.ts +0 -0
- /package/dist/{src/node → node}/package/index.d.ts +0 -0
- /package/dist/{src/node → node}/package/package.type.d.ts +0 -0
- /package/dist/{src/node → node}/package/package.util.d.ts +0 -0
- /package/dist/{src/node → node}/path/index.d.ts +0 -0
- /package/dist/{src/node → node}/path/path.constant.d.ts +0 -0
- /package/dist/{src/node → node}/path/path.util.d.ts +0 -0
- /package/dist/{src/node → node}/path/path.util.js +0 -0
- /package/dist/{src/node → node}/storage/index.d.ts +0 -0
- /package/dist/{src/node → node}/storage/index.js +0 -0
- /package/dist/{src/node → node}/storage/storage.util.d.ts +0 -0
- /package/dist/{src/node → node}/upload/index.d.ts +0 -0
- /package/dist/{src/node → node}/upload/upload.type.d.ts +0 -0
- /package/dist/{src/node → node}/upload/upload.util.d.ts +0 -0
- /package/dist/{src/node → node}/ws/index.d.ts +0 -0
- /package/dist/{src/node → node}/ws/index.js +0 -0
- /package/dist/{src/node → node}/ws/ts.util.d.ts +0 -0
- /package/dist/{src/node → node}/ws/ts.util.js +0 -0
- /package/dist/{src/node → node}/ws/ws.type.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.component.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.constant.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.constant.js +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.context.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.hook.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/index.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.component.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.rsc.js +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/index.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/index.js +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.component.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.context.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.context.js +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.hook.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.hook.js +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.provider.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.type.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/index.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/index.js +0 -0
- /package/dist/{src/react → react}/i18next/i18next.hook.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/i18next.hook.js +0 -0
- /package/dist/{src/react → react}/i18next/i18next.util.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/i18next.util.js +0 -0
- /package/dist/{src/react → react}/i18next/index.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/index.js +0 -0
- /package/dist/{src/react → react}/loading/index.d.ts +0 -0
- /package/dist/{src/react → react}/loading/index.js +0 -0
- /package/dist/{src/react → react}/loading/loading.component.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.context.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.context.js +0 -0
- /package/dist/{src/react → react}/loading/loading.hook.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.hook.js +0 -0
- /package/dist/{src/react → react}/loading/loading.type.d.ts +0 -0
- /package/dist/{src/react → react}/log/index.d.ts +0 -0
- /package/dist/{src/react → react}/log/index.js +0 -0
- /package/dist/{src/react → react}/log/log.type.d.ts +0 -0
- /package/dist/{src/react → react}/log/log.util.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/index.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/index.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.constant.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.constant.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.context.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.context.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.hook.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.hook.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.provider.d.ts +0 -0
- /package/dist/{src/react → react}/storage/index.d.ts +0 -0
- /package/dist/{src/react → react}/storage/index.js +0 -0
- /package/dist/{src/react → react}/storage/storage.hook.d.ts +0 -0
- /package/dist/{src/react → react}/storage/storage.util.d.ts +0 -0
- /package/dist/{src/react → react}/toast/index.d.ts +0 -0
- /package/dist/{src/react → react}/toast/index.js +0 -0
- /package/dist/{src/react → react}/userback/index.d.ts +0 -0
- /package/dist/{src/react → react}/userback/index.js +0 -0
- /package/dist/{src/react → react}/userback/userback.component.d.ts +0 -0
- /package/dist/{src/react → react}/userback/userback.type.d.ts +0 -0
- /package/dist/{src/typescript/common.d.ts → typescript/common.type.d.ts} +0 -0
- /package/dist/{src/typescript/common.js → typescript/common.type.js} +0 -0
- /package/dist/{src/typescript/react.d.ts → typescript/react.type.d.ts} +0 -0
- /package/dist/{src/util → util}/common/common.type.d.ts +0 -0
- /package/dist/{src/util → util}/common/common.util.d.ts +0 -0
- /package/dist/{src/util → util}/common/index.d.ts +0 -0
- /package/dist/{src/util → util}/common/index.js +0 -0
- /package/dist/{src/util → util}/index.d.ts +0 -0
- /package/dist/{src/util → util}/index.js +0 -0
- /package/dist/{src/util → util}/object/index.d.ts +0 -0
- /package/dist/{src/util → util}/object/index.js +0 -0
- /package/dist/{src/util → util}/serializer/index.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/index.js +0 -0
- /package/dist/{src/util → util}/serializer/serializer.type.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/serializer.util.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/serializer.util.js +0 -0
- /package/dist/{src/util → util}/string/index.d.ts +0 -0
- /package/dist/{src/util → util}/string/index.js +0 -0
- /package/dist/{src/util → util}/string/string.type.d.ts +0 -0
- /package/dist/{src/util → util}/string/string.util.d.ts +0 -0
- /package/dist/{src/util → util}/validate/index.d.ts +0 -0
- /package/dist/{src/util → util}/validate/index.js +0 -0
- /package/dist/{src/util → util}/validate/validate.util.d.ts +0 -0
- /package/dist/{src/util → util}/validate/validate.util.js +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "node-fetch";
|
|
2
|
-
import "../../config/env/env.util.js";
|
|
3
|
-
import { K as r, O as g, R as m, U as c, Q as k } from "../../../path.constant-CvSr0Rrx.js";
|
|
4
|
-
import "../fs/fs.util.js";
|
|
5
|
-
import "../log/log.util.js";
|
|
6
|
-
import "../path/path.util.js";
|
|
7
|
-
export {
|
|
8
|
-
r as getLatestPackageVersion,
|
|
9
|
-
g as getPackage,
|
|
10
|
-
m as installDependencies,
|
|
11
|
-
c as setupPackages,
|
|
12
|
-
k as updatePackage
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../../../path.constant-CWtb99gS.cjs"),I=require("./path.util.cjs");exports.BUILD_DIRECTORY=_.BUILD_DIRECTORY;exports.COMMIT_LINT_CLI=_.COMMIT_LINT_CLI;exports.COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME=_.COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME;exports.COMMIT_LINT_PACKAGE_NAME=_.COMMIT_LINT_PACKAGE_NAME;exports.CYBERSKILL_CLI=_.CYBERSKILL_CLI;exports.CYBERSKILL_CLI_PATH=_.CYBERSKILL_CLI_PATH;exports.CYBERSKILL_DIRECTORY=_.CYBERSKILL_DIRECTORY;exports.CYBERSKILL_PACKAGE_NAME=_.CYBERSKILL_PACKAGE_NAME;exports.ESLINT_CLI=_.ESLINT_CLI;exports.ESLINT_INSPECT_CLI=_.ESLINT_INSPECT_CLI;exports.ESLINT_INSPECT_PACKAGE_NAME=_.ESLINT_INSPECT_PACKAGE_NAME;exports.ESLINT_PACKAGE_NAME=_.ESLINT_PACKAGE_NAME;exports.GIT_CLI=_.GIT_CLI;exports.GIT_COMMIT_EDITMSG=_.GIT_COMMIT_EDITMSG;exports.GIT_HOOK=_.GIT_HOOK;exports.GIT_IGNORE=_.GIT_IGNORE;exports.LINT_STAGED_CLI=_.LINT_STAGED_CLI;exports.LINT_STAGED_PACKAGE_NAME=_.LINT_STAGED_PACKAGE_NAME;exports.MIGRATE_MONGO_CLI=_.MIGRATE_MONGO_CLI;exports.MIGRATE_MONGO_CONFIG=_.MIGRATE_MONGO_CONFIG;exports.MIGRATE_MONGO_PACKAGE_NAME=_.MIGRATE_MONGO_PACKAGE_NAME;exports.NODE_MODULES=_.NODE_MODULES;exports.NODE_MODULES_INSPECT_CLI=_.NODE_MODULES_INSPECT_CLI;exports.NODE_MODULES_INSPECT_PACKAGE_NAME=_.NODE_MODULES_INSPECT_PACKAGE_NAME;exports.PACKAGE_JSON=_.PACKAGE_JSON;exports.PACKAGE_LOCK_JSON=_.PACKAGE_LOCK_JSON;exports.PATH=_.PATH;exports.PNPM_CLI=_.PNPM_CLI;exports.PNPM_EXEC_CLI=_.PNPM_EXEC_CLI;exports.PNPM_LOCK_YAML=_.PNPM_LOCK_YAML;exports.PUBLIC_DIRECTORY=_.PUBLIC_DIRECTORY;exports.SIMPLE_GIT_HOOKS_PACKAGE_NAME=_.SIMPLE_GIT_HOOKS_PACKAGE_NAME;exports.SIMPLE_GIT_HOOK_CLI=_.SIMPLE_GIT_HOOK_CLI;exports.SIMPLE_GIT_HOOK_JSON=_.SIMPLE_GIT_HOOK_JSON;exports.TSCONFIG_JSON=_.TSCONFIG_JSON;exports.TSC_CLI=_.TSC_CLI;exports.TSC_PACKAGE_NAME=_.TSC_PACKAGE_NAME;exports.TSX_CLI=_.TSX_CLI;exports.VITEST_CLI=_.VITEST_CLI;exports.VITEST_PACKAGE_NAME=_.VITEST_PACKAGE_NAME;exports.WORKING_DIRECTORY=_.WORKING_DIRECTORY;exports.command=_.command;exports.createGitHooksConfig=_.createGitHooksConfig;exports.dirname=I.dirname;exports.join=I.join;exports.path=I.path;exports.resolve=I.resolve;exports.resolveWorkingPath=I.resolveWorkingPath;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { B as E, m as C, l as a, k as s, g as A, h as N, f as T, C as L, i as O, x as M, w as G, E as S, r as P, e as K, d as R, G as D, n as o, L as e, D as r, M as Y, A as H, N as t, z as B, y as i, a as m, b as n, F as U, s as f, t as p, c as F, P as J, u as V, v as c, S as d, T as g, p as h, o as k, q as l, j as v, V as x, W, I as j, H as X } from "../../../path.constant-CvSr0Rrx.js";
|
|
2
|
-
import { dirname as q, join as u, path as w, resolve as y, resolveWorkingPath as z } from "./path.util.js";
|
|
3
|
-
export {
|
|
4
|
-
E as BUILD_DIRECTORY,
|
|
5
|
-
C as COMMIT_LINT_CLI,
|
|
6
|
-
a as COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME,
|
|
7
|
-
s as COMMIT_LINT_PACKAGE_NAME,
|
|
8
|
-
A as CYBERSKILL_CLI,
|
|
9
|
-
N as CYBERSKILL_CLI_PATH,
|
|
10
|
-
T as CYBERSKILL_DIRECTORY,
|
|
11
|
-
L as CYBERSKILL_PACKAGE_NAME,
|
|
12
|
-
O as ESLINT_CLI,
|
|
13
|
-
M as ESLINT_INSPECT_CLI,
|
|
14
|
-
G as ESLINT_INSPECT_PACKAGE_NAME,
|
|
15
|
-
S as ESLINT_PACKAGE_NAME,
|
|
16
|
-
P as GIT_CLI,
|
|
17
|
-
K as GIT_COMMIT_EDITMSG,
|
|
18
|
-
R as GIT_HOOK,
|
|
19
|
-
D as GIT_IGNORE,
|
|
20
|
-
o as LINT_STAGED_CLI,
|
|
21
|
-
e as LINT_STAGED_PACKAGE_NAME,
|
|
22
|
-
r as MIGRATE_MONGO_CLI,
|
|
23
|
-
Y as MIGRATE_MONGO_CONFIG,
|
|
24
|
-
H as MIGRATE_MONGO_PACKAGE_NAME,
|
|
25
|
-
t as NODE_MODULES,
|
|
26
|
-
B as NODE_MODULES_INSPECT_CLI,
|
|
27
|
-
i as NODE_MODULES_INSPECT_PACKAGE_NAME,
|
|
28
|
-
m as PACKAGE_JSON,
|
|
29
|
-
n as PACKAGE_LOCK_JSON,
|
|
30
|
-
U as PATH,
|
|
31
|
-
f as PNPM_CLI,
|
|
32
|
-
p as PNPM_EXEC_CLI,
|
|
33
|
-
F as PNPM_LOCK_YAML,
|
|
34
|
-
J as PUBLIC_DIRECTORY,
|
|
35
|
-
V as SIMPLE_GIT_HOOKS_PACKAGE_NAME,
|
|
36
|
-
c as SIMPLE_GIT_HOOK_CLI,
|
|
37
|
-
d as SIMPLE_GIT_HOOK_JSON,
|
|
38
|
-
g as TSCONFIG_JSON,
|
|
39
|
-
h as TSC_CLI,
|
|
40
|
-
k as TSC_PACKAGE_NAME,
|
|
41
|
-
l as TSX_CLI,
|
|
42
|
-
v as VITEST_CLI,
|
|
43
|
-
x as VITEST_PACKAGE_NAME,
|
|
44
|
-
W as WORKING_DIRECTORY,
|
|
45
|
-
j as command,
|
|
46
|
-
X as createGitHooksConfig,
|
|
47
|
-
q as dirname,
|
|
48
|
-
u as join,
|
|
49
|
-
w as path,
|
|
50
|
-
y as resolve,
|
|
51
|
-
z as resolveWorkingPath
|
|
52
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("fs-extra");require("../../config/env/env.util.cjs");const _=require("../../../path.constant-CWtb99gS.cjs");require("./path.util.cjs");exports.BUILD_DIRECTORY=_.BUILD_DIRECTORY;exports.COMMIT_LINT_CLI=_.COMMIT_LINT_CLI;exports.COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME=_.COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME;exports.COMMIT_LINT_PACKAGE_NAME=_.COMMIT_LINT_PACKAGE_NAME;exports.CYBERSKILL_CLI=_.CYBERSKILL_CLI;exports.CYBERSKILL_CLI_PATH=_.CYBERSKILL_CLI_PATH;exports.CYBERSKILL_DIRECTORY=_.CYBERSKILL_DIRECTORY;exports.CYBERSKILL_PACKAGE_NAME=_.CYBERSKILL_PACKAGE_NAME;exports.ESLINT_CLI=_.ESLINT_CLI;exports.ESLINT_INSPECT_CLI=_.ESLINT_INSPECT_CLI;exports.ESLINT_INSPECT_PACKAGE_NAME=_.ESLINT_INSPECT_PACKAGE_NAME;exports.ESLINT_PACKAGE_NAME=_.ESLINT_PACKAGE_NAME;exports.GIT_CLI=_.GIT_CLI;exports.GIT_COMMIT_EDITMSG=_.GIT_COMMIT_EDITMSG;exports.GIT_HOOK=_.GIT_HOOK;exports.GIT_IGNORE=_.GIT_IGNORE;exports.LINT_STAGED_CLI=_.LINT_STAGED_CLI;exports.LINT_STAGED_PACKAGE_NAME=_.LINT_STAGED_PACKAGE_NAME;exports.MIGRATE_MONGO_CLI=_.MIGRATE_MONGO_CLI;exports.MIGRATE_MONGO_CONFIG=_.MIGRATE_MONGO_CONFIG;exports.MIGRATE_MONGO_PACKAGE_NAME=_.MIGRATE_MONGO_PACKAGE_NAME;exports.NODE_MODULES=_.NODE_MODULES;exports.NODE_MODULES_INSPECT_CLI=_.NODE_MODULES_INSPECT_CLI;exports.NODE_MODULES_INSPECT_PACKAGE_NAME=_.NODE_MODULES_INSPECT_PACKAGE_NAME;exports.PACKAGE_JSON=_.PACKAGE_JSON;exports.PACKAGE_LOCK_JSON=_.PACKAGE_LOCK_JSON;exports.PATH=_.PATH;exports.PNPM_CLI=_.PNPM_CLI;exports.PNPM_EXEC_CLI=_.PNPM_EXEC_CLI;exports.PNPM_LOCK_YAML=_.PNPM_LOCK_YAML;exports.PUBLIC_DIRECTORY=_.PUBLIC_DIRECTORY;exports.SIMPLE_GIT_HOOKS_PACKAGE_NAME=_.SIMPLE_GIT_HOOKS_PACKAGE_NAME;exports.SIMPLE_GIT_HOOK_CLI=_.SIMPLE_GIT_HOOK_CLI;exports.SIMPLE_GIT_HOOK_JSON=_.SIMPLE_GIT_HOOK_JSON;exports.TSCONFIG_JSON=_.TSCONFIG_JSON;exports.TSC_CLI=_.TSC_CLI;exports.TSC_PACKAGE_NAME=_.TSC_PACKAGE_NAME;exports.TSX_CLI=_.TSX_CLI;exports.VITEST_CLI=_.VITEST_CLI;exports.VITEST_PACKAGE_NAME=_.VITEST_PACKAGE_NAME;exports.WORKING_DIRECTORY=_.WORKING_DIRECTORY;exports.command=_.command;exports.createGitHooksConfig=_.createGitHooksConfig;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import "fs-extra";
|
|
2
|
-
import "../../config/env/env.util.js";
|
|
3
|
-
import { B as a, m as N, l as T, k as s, g as L, h as O, f as M, C as G, i as S, x as P, w as K, E as R, r as D, e as o, d as Y, G as H, n as m, L as r, D as t, M as B, A as i, N as p, z as U, y as e, a as F, b as J, F as V, s as c, t as f, c as n, P as d, u as g, v as k, S as x, T as W, p as X, o as b, q as h, j, V as l, W as q, I as u, H as v } from "../../../path.constant-CvSr0Rrx.js";
|
|
4
|
-
import "./path.util.js";
|
|
5
|
-
export {
|
|
6
|
-
a as BUILD_DIRECTORY,
|
|
7
|
-
N as COMMIT_LINT_CLI,
|
|
8
|
-
T as COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME,
|
|
9
|
-
s as COMMIT_LINT_PACKAGE_NAME,
|
|
10
|
-
L as CYBERSKILL_CLI,
|
|
11
|
-
O as CYBERSKILL_CLI_PATH,
|
|
12
|
-
M as CYBERSKILL_DIRECTORY,
|
|
13
|
-
G as CYBERSKILL_PACKAGE_NAME,
|
|
14
|
-
S as ESLINT_CLI,
|
|
15
|
-
P as ESLINT_INSPECT_CLI,
|
|
16
|
-
K as ESLINT_INSPECT_PACKAGE_NAME,
|
|
17
|
-
R as ESLINT_PACKAGE_NAME,
|
|
18
|
-
D as GIT_CLI,
|
|
19
|
-
o as GIT_COMMIT_EDITMSG,
|
|
20
|
-
Y as GIT_HOOK,
|
|
21
|
-
H as GIT_IGNORE,
|
|
22
|
-
m as LINT_STAGED_CLI,
|
|
23
|
-
r as LINT_STAGED_PACKAGE_NAME,
|
|
24
|
-
t as MIGRATE_MONGO_CLI,
|
|
25
|
-
B as MIGRATE_MONGO_CONFIG,
|
|
26
|
-
i as MIGRATE_MONGO_PACKAGE_NAME,
|
|
27
|
-
p as NODE_MODULES,
|
|
28
|
-
U as NODE_MODULES_INSPECT_CLI,
|
|
29
|
-
e as NODE_MODULES_INSPECT_PACKAGE_NAME,
|
|
30
|
-
F as PACKAGE_JSON,
|
|
31
|
-
J as PACKAGE_LOCK_JSON,
|
|
32
|
-
V as PATH,
|
|
33
|
-
c as PNPM_CLI,
|
|
34
|
-
f as PNPM_EXEC_CLI,
|
|
35
|
-
n as PNPM_LOCK_YAML,
|
|
36
|
-
d as PUBLIC_DIRECTORY,
|
|
37
|
-
g as SIMPLE_GIT_HOOKS_PACKAGE_NAME,
|
|
38
|
-
k as SIMPLE_GIT_HOOK_CLI,
|
|
39
|
-
x as SIMPLE_GIT_HOOK_JSON,
|
|
40
|
-
W as TSCONFIG_JSON,
|
|
41
|
-
X as TSC_CLI,
|
|
42
|
-
b as TSC_PACKAGE_NAME,
|
|
43
|
-
h as TSX_CLI,
|
|
44
|
-
j as VITEST_CLI,
|
|
45
|
-
l as VITEST_PACKAGE_NAME,
|
|
46
|
-
q as WORKING_DIRECTORY,
|
|
47
|
-
u as command,
|
|
48
|
-
v as createGitHooksConfig
|
|
49
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("node:path"),o=require("../../config/env/env.util.cjs"),t=o.getEnv(),n=r,i=n.dirname;function s(...e){return n.resolve(t.CWD,...e)}function c(...e){return n.resolve(...e)}function u(...e){return n.join(...e)}exports.dirname=i;exports.join=u;exports.path=n;exports.resolve=c;exports.resolveWorkingPath=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./storage.util.cjs");exports.storage=e.storage;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var a=(r,t,n)=>new Promise((g,y)=>{var h=e=>{try{i(n.next(e))}catch(u){y(u)}},E=e=>{try{i(n.throw(e))}catch(u){y(u)}},i=e=>e.done?g(e.value):Promise.resolve(e.value).then(h,E);i((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("node-persist"),_=require("../../config/env/env.util.cjs"),c=require("../log/log.util.cjs"),l=_.getEnv();function s(){return a(this,null,function*(){o.defaultInstance||(yield o.init({dir:l.CYBERSKILL_STORAGE_DIRECTORY}))})}const w={get(r){return a(this,null,function*(){try{yield s();const t=yield o.getItem(r);return t!=null?t:null}catch(t){return c.catchError(t,{returnValue:null})}})},set(r,t){return a(this,null,function*(){try{yield s(),yield o.setItem(r,t)}catch(n){c.catchError(n)}})},remove(r){return a(this,null,function*(){try{yield s(),yield o.removeItem(r)}catch(t){c.catchError(t)}})},keys(){return a(this,null,function*(){try{yield s();const r=yield o.keys();return Array.isArray(r)?r:(c.log.warn("[Storage:keys] Invalid keys response:",r),[])}catch(r){return c.catchError(r,{returnValue:[]})}})},getLogLink(r){return a(this,null,function*(){try{return`${l.CYBERSKILL_STORAGE_DIRECTORY} (key: ${r})`}catch(t){return c.catchError(t,{returnValue:null})}})}};exports.storage=w;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
var a = (r, t, n) => new Promise((m, u) => {
|
|
2
|
-
var g = (e) => {
|
|
3
|
-
try {
|
|
4
|
-
i(n.next(e));
|
|
5
|
-
} catch (y) {
|
|
6
|
-
u(y);
|
|
7
|
-
}
|
|
8
|
-
}, w = (e) => {
|
|
9
|
-
try {
|
|
10
|
-
i(n.throw(e));
|
|
11
|
-
} catch (y) {
|
|
12
|
-
u(y);
|
|
13
|
-
}
|
|
14
|
-
}, i = (e) => e.done ? m(e.value) : Promise.resolve(e.value).then(g, w);
|
|
15
|
-
i((n = n.apply(r, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import o from "node-persist";
|
|
18
|
-
import { getEnv as I } from "../../config/env/env.util.js";
|
|
19
|
-
import { catchError as s, log as h } from "../log/log.util.js";
|
|
20
|
-
const l = I();
|
|
21
|
-
function c() {
|
|
22
|
-
return a(this, null, function* () {
|
|
23
|
-
o.defaultInstance || (yield o.init({
|
|
24
|
-
dir: l.CYBERSKILL_STORAGE_DIRECTORY
|
|
25
|
-
}));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
const L = {
|
|
29
|
-
get(r) {
|
|
30
|
-
return a(this, null, function* () {
|
|
31
|
-
try {
|
|
32
|
-
yield c();
|
|
33
|
-
const t = yield o.getItem(r);
|
|
34
|
-
return t != null ? t : null;
|
|
35
|
-
} catch (t) {
|
|
36
|
-
return s(t, { returnValue: null });
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
|
-
set(r, t) {
|
|
41
|
-
return a(this, null, function* () {
|
|
42
|
-
try {
|
|
43
|
-
yield c(), yield o.setItem(r, t);
|
|
44
|
-
} catch (n) {
|
|
45
|
-
s(n);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
remove(r) {
|
|
50
|
-
return a(this, null, function* () {
|
|
51
|
-
try {
|
|
52
|
-
yield c(), yield o.removeItem(r);
|
|
53
|
-
} catch (t) {
|
|
54
|
-
s(t);
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
},
|
|
58
|
-
keys() {
|
|
59
|
-
return a(this, null, function* () {
|
|
60
|
-
try {
|
|
61
|
-
yield c();
|
|
62
|
-
const r = yield o.keys();
|
|
63
|
-
return Array.isArray(r) ? r : (h.warn("[Storage:keys] Invalid keys response:", r), []);
|
|
64
|
-
} catch (r) {
|
|
65
|
-
return s(r, { returnValue: [] });
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
getLogLink(r) {
|
|
70
|
-
return a(this, null, function* () {
|
|
71
|
-
try {
|
|
72
|
-
return `${l.CYBERSKILL_STORAGE_DIRECTORY} (key: ${r})`;
|
|
73
|
-
} catch (t) {
|
|
74
|
-
return s(t, { returnValue: null });
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
export {
|
|
80
|
-
L as storage
|
|
81
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../upload.util-CE3MjBdh.cjs");exports.E_UploadType=e.E_UploadType;exports.createUploadConfig=e.createUploadConfig;exports.upload=e.upload;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../fs/fs.util.cjs");require("../../../path.constant-CWtb99gS.cjs");require("../path/path.util.cjs");const e=require("../../../upload.util-CE3MjBdh.cjs");exports.createUploadConfig=e.createUploadConfig;exports.upload=e.upload;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ts.util.cjs");exports.createWSServer=e.createWSServer;exports.initGraphQLWS=e.initGraphQLWS;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("graphql-ws/use/ws"),t=require("ws");function c(e){return new t.WebSocketServer({server:e.server,path:e.path})}function n(e){return r.useServer({schema:e.schema},e.server)}exports.createWSServer=c;exports.initGraphQLWS=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@apollo/client/react/react.cjs"),e=require("react"),n=require("../apollo-error/apollo-error.component.cjs");require("../apollo-error/apollo-error.context.cjs");const c=require("../apollo-error/apollo-error.provider.cjs"),i=require("react-hot-toast"),a=require("./apollo-client.context.cjs"),p=require("./apollo-client.util.cjs");function s({options:r,children:t}){const o=e.useMemo(()=>p.getClient(r||{}),[r]);return e.createElement(e.Fragment,null,e.createElement(c.ApolloErrorProvider,null,e.createElement(a.ApolloClientProvider,{client:o},e.createElement(l.ApolloProvider,{client:o},t)),e.createElement(n.ApolloErrorComponent,null)),e.createElement(i.Toaster,{position:"top-right"}))}exports.ApolloProvider=s;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ApolloProvider as l } from "@apollo/client/react/react.cjs";
|
|
2
|
-
import r, { useMemo as m } from "react";
|
|
3
|
-
import { ApolloErrorComponent as i } from "../apollo-error/apollo-error.component.js";
|
|
4
|
-
import "../apollo-error/apollo-error.context.js";
|
|
5
|
-
import { ApolloErrorProvider as n } from "../apollo-error/apollo-error.provider.js";
|
|
6
|
-
import { Toaster as p } from "react-hot-toast";
|
|
7
|
-
import { ApolloClientProvider as a } from "./apollo-client.context.js";
|
|
8
|
-
import { getClient as c } from "./apollo-client.util.js";
|
|
9
|
-
function g({
|
|
10
|
-
options: e,
|
|
11
|
-
children: t
|
|
12
|
-
}) {
|
|
13
|
-
const o = m(
|
|
14
|
-
() => c(e || {}),
|
|
15
|
-
[e]
|
|
16
|
-
);
|
|
17
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(a, { client: o }, /* @__PURE__ */ r.createElement(l, { client: o }, t)), /* @__PURE__ */ r.createElement(i, null)), /* @__PURE__ */ r.createElement(p, { position: "top-right" }));
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
g as ApolloProvider
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="/graphql";exports.GRAPHQL_URI_DEFAULT=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(null);function n({client:o,children:l}){return e.createElement(t,{value:o},l)}exports.ApolloClientContext=t;exports.ApolloClientProvider=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),o=require("./apollo-client.context.cjs");function l(){const e=t.use(o.ApolloClientContext);if(!e)throw new Error("useApolloClient must be used within an ApolloClientProvider");return e}exports.useApolloClient=l;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { use as t } from "react";
|
|
2
|
-
import { ApolloClientContext as e } from "./apollo-client.context.js";
|
|
3
|
-
function r() {
|
|
4
|
-
const o = t(e);
|
|
5
|
-
if (!o)
|
|
6
|
-
throw new Error("useApolloClient must be used within an ApolloClientProvider");
|
|
7
|
-
return o;
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
r as useApolloClient
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty;var w=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var L=(t,e,n)=>e in t?j(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U=(t,e)=>{for(var n in e||(e={}))R.call(e,n)&&L(t,n,e[n]);if(w)for(var n of w(e))x.call(e,n)&&L(t,n,e[n]);return t};var h=(t,e,n)=>L(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("@apollo/client/core/core.cjs"),f=require("@apollo/client/link/core/core.cjs"),G=require("@apollo/client/link/error/error.cjs"),P=require("@apollo/client/link/remove-typename/remove-typename.cjs"),S=require("@apollo/client/link/subscriptions/subscriptions.cjs"),I=require("@apollo/client/utilities/utilities.cjs"),F=require("apollo-upload-client/createUploadLink.mjs"),H=require("graphql-ws"),q=require("react"),M=require("../apollo-error/apollo-error.util.cjs"),c=require("../log/log.util.cjs"),T=require("react-hot-toast"),v=require("./apollo-client.constant.cjs");class C extends f.ApolloLink{constructor(){super(...arguments);h(this,"count",0)}request(n,r){const g=Date.now();return this.count+=1,r(n).map(d=>{const p=Date.now()-g,a=n.operationName||"Unnamed";return c.log.info(`[Apollo] #${this.count}: ${a} (${p}ms)`),d})}}function D(t){const{uri:e,wsUrl:n,customLinks:r}=t,g=new C,d=G.onError(({graphQLErrors:o,networkError:i,protocolErrors:s,operation:m})=>{var y,$;const N=(m==null?void 0:m.operationName)||"Unknown";if(o&&o.forEach(({message:l,locations:u,path:_})=>{c.log.error(`[GraphQL error] ${N}: ${l}, Location: ${JSON.stringify(u,null,4)}, Path: ${_}`)}),s&&s.forEach(({message:l,extensions:u})=>{c.log.error(`[Protocol error]: ${l}, Extensions: ${JSON.stringify(u,null,4)}`)}),i&&c.log.error(`[Network error]: ${i}`),o||s||i){const l=((y=o==null?void 0:o[0])==null?void 0:y.message)||(($=s==null?void 0:s[0])==null?void 0:$.message)||(i==null?void 0:i.message)||"Unexpected error",u=new k.ApolloError({graphQLErrors:o||[],protocolErrors:s||[],clientErrors:[],networkError:i||null,errorMessage:l,extraInfo:{operation:m}});typeof window!="undefined"&&T.toast.error(_=>q.createElement(q.Fragment,null,l," ",q.createElement("button",{type:"button",className:"text-blue-500 hover:text-blue-700",onClick:()=>{setTimeout(()=>{M.showGlobalApolloError(u)},0),T.toast.dismiss(_.id)}},"Show Details")))}}),p=P.removeTypenameFromVariables();e||c.log.warn(`[Apollo] No GraphQL URI provided — using "${v.GRAPHQL_URI_DEFAULT}" as default`);const a=F({uri:e!=null?e:v.GRAPHQL_URI_DEFAULT,credentials:"include",headers:{"apollo-require-preflight":"true"}}),A=n?new S.GraphQLWsLink(H.createClient({url:n})):f.ApolloLink.empty(),b=A instanceof f.ApolloLink?f.split(({query:o})=>{const i=I.getMainDefinition(o);return i.kind==="OperationDefinition"&&i.operation==="subscription"},A,a):a;return b===a&&n&&c.log.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."),[g,d,p,...r!=null?r:[],b]}function O(t={}){const e=f.from(D(t));return new k.ApolloClient(U({link:e,cache:new k.InMemoryCache},t))}exports.DevLoggerLink=C;exports.createApolloLinks=D;exports.getClient=O;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
var C = Object.defineProperty;
|
|
2
|
-
var y = Object.getOwnPropertySymbols;
|
|
3
|
-
var T = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var g = (t, e, n) => e in t ? C(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, U = (t, e) => {
|
|
5
|
-
for (var n in e || (e = {}))
|
|
6
|
-
T.call(e, n) && g(t, n, e[n]);
|
|
7
|
-
if (y)
|
|
8
|
-
for (var n of y(e))
|
|
9
|
-
G.call(e, n) && g(t, n, e[n]);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
var N = (t, e, n) => g(t, typeof e != "symbol" ? e + "" : e, n);
|
|
13
|
-
import { ApolloError as R, ApolloClient as I, InMemoryCache as P } from "@apollo/client/core/core.cjs";
|
|
14
|
-
import { ApolloLink as w, split as S, from as _ } from "@apollo/client/link/core/core.cjs";
|
|
15
|
-
import { onError as F } from "@apollo/client/link/error/error.cjs";
|
|
16
|
-
import { removeTypenameFromVariables as M } from "@apollo/client/link/remove-typename/remove-typename.cjs";
|
|
17
|
-
import { GraphQLWsLink as O } from "@apollo/client/link/subscriptions/subscriptions.cjs";
|
|
18
|
-
import { getMainDefinition as q } from "@apollo/client/utilities/utilities.cjs";
|
|
19
|
-
import H from "apollo-upload-client/createUploadLink.mjs";
|
|
20
|
-
import { createClient as J } from "graphql-ws";
|
|
21
|
-
import k from "react";
|
|
22
|
-
import { showGlobalApolloError as W } from "../apollo-error/apollo-error.util.js";
|
|
23
|
-
import { log as s } from "../log/log.util.js";
|
|
24
|
-
import { toast as x } from "react-hot-toast";
|
|
25
|
-
import { GRAPHQL_URI_DEFAULT as D } from "./apollo-client.constant.js";
|
|
26
|
-
class V extends w {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(...arguments);
|
|
29
|
-
N(this, "count", 0);
|
|
30
|
-
}
|
|
31
|
-
request(n, a) {
|
|
32
|
-
const u = Date.now();
|
|
33
|
-
return this.count += 1, a(n).map((p) => {
|
|
34
|
-
const d = Date.now() - u, f = n.operationName || "Unnamed";
|
|
35
|
-
return s.info(`[Apollo] #${this.count}: ${f} (${d}ms)`), p;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function j(t) {
|
|
40
|
-
const { uri: e, wsUrl: n, customLinks: a } = t, u = new V(), p = F(({ graphQLErrors: o, networkError: i, protocolErrors: l, operation: r }) => {
|
|
41
|
-
var A, h;
|
|
42
|
-
const v = (r == null ? void 0 : r.operationName) || "Unknown";
|
|
43
|
-
if (o && o.forEach(({ message: m, locations: c, path: L }) => {
|
|
44
|
-
s.error(
|
|
45
|
-
`[GraphQL error] ${v}: ${m}, Location: ${JSON.stringify(c, null, 4)}, Path: ${L}`
|
|
46
|
-
);
|
|
47
|
-
}), l && l.forEach(({ message: m, extensions: c }) => {
|
|
48
|
-
s.error(
|
|
49
|
-
`[Protocol error]: ${m}, Extensions: ${JSON.stringify(c, null, 4)}`
|
|
50
|
-
);
|
|
51
|
-
}), i && s.error(`[Network error]: ${i}`), o || l || i) {
|
|
52
|
-
const m = ((A = o == null ? void 0 : o[0]) == null ? void 0 : A.message) || ((h = l == null ? void 0 : l[0]) == null ? void 0 : h.message) || (i == null ? void 0 : i.message) || "Unexpected error", c = new R({
|
|
53
|
-
graphQLErrors: o || [],
|
|
54
|
-
protocolErrors: l || [],
|
|
55
|
-
clientErrors: [],
|
|
56
|
-
networkError: i || null,
|
|
57
|
-
errorMessage: m,
|
|
58
|
-
extraInfo: {
|
|
59
|
-
operation: r
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
typeof window != "undefined" && x.error((L) => /* @__PURE__ */ k.createElement(k.Fragment, null, m, " ", /* @__PURE__ */ k.createElement(
|
|
63
|
-
"button",
|
|
64
|
-
{
|
|
65
|
-
type: "button",
|
|
66
|
-
className: "text-blue-500 hover:text-blue-700",
|
|
67
|
-
onClick: () => {
|
|
68
|
-
setTimeout(() => {
|
|
69
|
-
W(c);
|
|
70
|
-
}, 0), x.dismiss(L.id);
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"Show Details"
|
|
74
|
-
)));
|
|
75
|
-
}
|
|
76
|
-
}), d = M();
|
|
77
|
-
e || s.warn(`[Apollo] No GraphQL URI provided — using "${D}" as default`);
|
|
78
|
-
const f = H({
|
|
79
|
-
uri: e != null ? e : D,
|
|
80
|
-
credentials: "include",
|
|
81
|
-
headers: {
|
|
82
|
-
"apollo-require-preflight": "true"
|
|
83
|
-
}
|
|
84
|
-
}), $ = n ? new O(J({ url: n })) : w.empty(), b = $ instanceof w ? S(
|
|
85
|
-
({ query: o }) => {
|
|
86
|
-
const i = q(o);
|
|
87
|
-
return i.kind === "OperationDefinition" && i.operation === "subscription";
|
|
88
|
-
},
|
|
89
|
-
$,
|
|
90
|
-
f
|
|
91
|
-
) : f;
|
|
92
|
-
return b === f && n && s.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."), [
|
|
93
|
-
u,
|
|
94
|
-
// 🪵 custom logger
|
|
95
|
-
p,
|
|
96
|
-
// ⚠️ Apollo's error handling
|
|
97
|
-
d,
|
|
98
|
-
// 🧼 cleans up __typename
|
|
99
|
-
...a != null ? a : [],
|
|
100
|
-
// 🔗 custom links
|
|
101
|
-
b
|
|
102
|
-
// 📡 HTTP vs WS routing (includes uploadLink)
|
|
103
|
-
];
|
|
104
|
-
}
|
|
105
|
-
function me(t = {}) {
|
|
106
|
-
const e = _(j(t));
|
|
107
|
-
return new I(U({
|
|
108
|
-
link: e,
|
|
109
|
-
cache: new P()
|
|
110
|
-
}, t));
|
|
111
|
-
}
|
|
112
|
-
export {
|
|
113
|
-
V as DevLoggerLink,
|
|
114
|
-
j as createApolloLinks,
|
|
115
|
-
me as getClient
|
|
116
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./apollo-client.component.cjs"),o=require("./apollo-client.constant.cjs"),t=require("./apollo-client.context.cjs");require("react");const r=require("./apollo-client.util.cjs"),n=require("@apollo/client/cache/cache.cjs"),e=require("@apollo/client/react/hooks/hooks.cjs");exports.ApolloProvider=u.ApolloProvider;exports.GRAPHQL_URI_DEFAULT=o.GRAPHQL_URI_DEFAULT;exports.ApolloClientContext=t.ApolloClientContext;exports.ApolloClientProvider=t.ApolloClientProvider;exports.DevLoggerLink=r.DevLoggerLink;exports.createApolloLinks=r.createApolloLinks;exports.getClient=r.getClient;Object.defineProperty(exports,"makeVar",{enumerable:!0,get:()=>n.makeVar});Object.defineProperty(exports,"useApolloClient",{enumerable:!0,get:()=>e.useApolloClient});Object.defineProperty(exports,"useBackgroundQuery",{enumerable:!0,get:()=>e.useBackgroundQuery});Object.defineProperty(exports,"useFragment",{enumerable:!0,get:()=>e.useFragment});Object.defineProperty(exports,"useLazyQuery",{enumerable:!0,get:()=>e.useLazyQuery});Object.defineProperty(exports,"useLoadableQuery",{enumerable:!0,get:()=>e.useLoadableQuery});Object.defineProperty(exports,"useMutation",{enumerable:!0,get:()=>e.useMutation});Object.defineProperty(exports,"useQuery",{enumerable:!0,get:()=>e.useQuery});Object.defineProperty(exports,"useQueryRefHandlers",{enumerable:!0,get:()=>e.useQueryRefHandlers});Object.defineProperty(exports,"useReactiveVar",{enumerable:!0,get:()=>e.useReactiveVar});Object.defineProperty(exports,"useReadQuery",{enumerable:!0,get:()=>e.useReadQuery});Object.defineProperty(exports,"useSubscription",{enumerable:!0,get:()=>e.useSubscription});Object.defineProperty(exports,"useSuspenseFragment",{enumerable:!0,get:()=>e.useSuspenseFragment});Object.defineProperty(exports,"useSuspenseQuery",{enumerable:!0,get:()=>e.useSuspenseQuery});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ApolloProvider as u } from "./apollo-client.component.js";
|
|
2
|
-
import { GRAPHQL_URI_DEFAULT as s } from "./apollo-client.constant.js";
|
|
3
|
-
import { ApolloClientContext as n, ApolloClientProvider as p } from "./apollo-client.context.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { DevLoggerLink as i, createApolloLinks as m, getClient as y } from "./apollo-client.util.js";
|
|
6
|
-
import { makeVar as f } from "@apollo/client/cache/cache.cjs";
|
|
7
|
-
import { useApolloClient as A, useBackgroundQuery as L, useFragment as d, useLazyQuery as g, useLoadableQuery as C, useMutation as R, useQuery as c, useQueryRefHandlers as k, useReactiveVar as v, useReadQuery as F, useSubscription as P, useSuspenseFragment as S, useSuspenseQuery as b } from "@apollo/client/react/hooks/hooks.cjs";
|
|
8
|
-
export {
|
|
9
|
-
n as ApolloClientContext,
|
|
10
|
-
p as ApolloClientProvider,
|
|
11
|
-
u as ApolloProvider,
|
|
12
|
-
i as DevLoggerLink,
|
|
13
|
-
s as GRAPHQL_URI_DEFAULT,
|
|
14
|
-
m as createApolloLinks,
|
|
15
|
-
y as getClient,
|
|
16
|
-
f as makeVar,
|
|
17
|
-
A as useApolloClient,
|
|
18
|
-
L as useBackgroundQuery,
|
|
19
|
-
d as useFragment,
|
|
20
|
-
g as useLazyQuery,
|
|
21
|
-
C as useLoadableQuery,
|
|
22
|
-
R as useMutation,
|
|
23
|
-
c as useQuery,
|
|
24
|
-
k as useQueryRefHandlers,
|
|
25
|
-
v as useReactiveVar,
|
|
26
|
-
F as useReadQuery,
|
|
27
|
-
P as useSubscription,
|
|
28
|
-
S as useSuspenseFragment,
|
|
29
|
-
b as useSuspenseQuery
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@apollo/client-integration-nextjs"),e=require("react"),n=require("../apollo-error/apollo-error.component.cjs");require("../apollo-error/apollo-error.context.cjs");const c=require("../apollo-error/apollo-error.provider.cjs"),i=require("react-hot-toast"),a=require("./apollo-client-nextjs.util.cjs");function p({options:r,children:o}){const t=e.useMemo(()=>()=>a.getClient(r||{}),[r]);return e.createElement(e.Fragment,null,e.createElement(c.ApolloErrorProvider,null,e.createElement(l.ApolloNextAppProvider,{makeClient:t},o),e.createElement(n.ApolloErrorComponent,null)),e.createElement(i.Toaster,{position:"top-right"}))}exports.ApolloProvider=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@apollo/client-integration-nextjs"),l=require("./apollo-client-nextjs.util.cjs"),i=(e={})=>t.registerApolloClient(()=>l.getClient(e));exports.makeClient=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var l=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var o=(t,e,n)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,r=(t,e)=>{for(var n in e||(e={}))a.call(e,n)&&o(t,n,e[n]);if(l)for(var n of l(e))s.call(e,n)&&o(t,n,e[n]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@apollo/client-integration-nextjs"),u=require("@apollo/client/link/core/core.cjs"),C=require("../apollo-client/apollo-client.util.cjs");function g(t={}){const e=u.from(C.createApolloLinks(t));return new c.ApolloClient(r({link:e,cache:new c.InMemoryCache},t))}exports.getClient=g;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var i = Object.defineProperty;
|
|
2
|
-
var n = Object.getOwnPropertySymbols;
|
|
3
|
-
var l = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var t = (e, o, r) => o in e ? i(e, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[o] = r, m = (e, o) => {
|
|
5
|
-
for (var r in o || (o = {}))
|
|
6
|
-
l.call(o, r) && t(e, r, o[r]);
|
|
7
|
-
if (n)
|
|
8
|
-
for (var r of n(o))
|
|
9
|
-
c.call(o, r) && t(e, r, o[r]);
|
|
10
|
-
return e;
|
|
11
|
-
};
|
|
12
|
-
import { ApolloClient as f, InMemoryCache as p } from "@apollo/client-integration-nextjs";
|
|
13
|
-
import { from as a } from "@apollo/client/link/core/core.cjs";
|
|
14
|
-
import { createApolloLinks as C } from "../apollo-client/apollo-client.util.js";
|
|
15
|
-
function A(e = {}) {
|
|
16
|
-
const o = a(C(e));
|
|
17
|
-
return new f(m({
|
|
18
|
-
link: o,
|
|
19
|
-
cache: new p()
|
|
20
|
-
}, e));
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
A as getClient
|
|
24
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./apollo-client-nextjs.component.cjs"),t=require("./apollo-client-nextjs.util.cjs");exports.ApolloProvider=e.ApolloProvider;exports.getClient=t.getClient;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),s=require("./apollo-error.context.cjs"),t={"modal-backdrop":"_modal-backdrop_8fveh_1","modal-content":"_modal-content_8fveh_11","btn-close":"_btn-close_8fveh_22","error-title":"_error-title_8fveh_36","btn-retry":"_btn-retry_8fveh_41","error-details":"_error-details_8fveh_54"};function m(){const o=e.use(s.ApolloErrorContext),r=o==null?void 0:o.error;if(!r)return null;const n=(c,l)=>l!=null&&l.length?e.createElement("div",null,e.createElement("strong",null,c,":"),e.createElement("ul",null,l.map(a=>e.createElement("li",{key:a.message},a.message)))):null;return e.createElement("div",{className:t["modal-backdrop"]},e.createElement("div",{className:t["modal-content"]},e.createElement("button",{type:"button",className:t["btn-close"],onClick:o.hideError},"✕"),e.createElement("div",{className:t["error-title"]},e.createElement("button",{type:"button",className:t["btn-retry"],onClick:()=>window.location.reload()},"Reload")," ",r.message),e.createElement("div",{className:t["error-details"]},r.networkError&&e.createElement("pre",{className:"network"},e.createElement("strong",null,"Network Error:")," ",r.networkError.message),n("GraphQL Errors",[...r.graphQLErrors]),n("Protocol Errors",[...r.protocolErrors]),n("Client Errors",[...r.clientErrors]),r.extraInfo&&e.createElement("pre",{className:"extra"},e.createElement("strong",null,"Extra Info:")," ",JSON.stringify(r.extraInfo,null,4)))))}exports.ApolloErrorComponent=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),t=o.createContext(void 0);exports.ApolloErrorContext=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),e=require("./apollo-error.context.cjs");function t(){const r=o.use(e.ApolloErrorContext);if(!r)throw new Error("useApolloError must be used within ApolloErrorProvider");return r}exports.useApolloError=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),c=require("./apollo-error.context.cjs"),a=require("./apollo-error.util.cjs");function n({children:l}){const[e,o]=r.useState(null);r.useEffect(()=>{a.setGlobalApolloErrorCallback(o)},[]);const t=r.useMemo(()=>({error:e,showError:o,hideError:()=>o(null)}),[e]);return r.createElement(c.ApolloErrorContext,{value:t},l)}exports.ApolloErrorProvider=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let l=null;function r(o){l=o}function t(o){l==null||l(o)}exports.setGlobalApolloErrorCallback=r;exports.showGlobalApolloError=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./apollo-error.component.cjs"),l=require("./apollo-error.context.cjs"),e=require("./apollo-error.hook.cjs"),t=require("./apollo-error.provider.cjs"),r=require("./apollo-error.util.cjs");exports.ApolloErrorComponent=o.ApolloErrorComponent;exports.ApolloErrorContext=l.ApolloErrorContext;exports.useApolloError=e.useApolloError;exports.ApolloErrorProvider=t.ApolloErrorProvider;exports.setGlobalApolloErrorCallback=r.setGlobalApolloErrorCallback;exports.showGlobalApolloError=r.showGlobalApolloError;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react-i18next"),t=e.useTranslation;exports.useTranslateI18next=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("i18next"),n=require("react-i18next");function i(t){return e.use(n.initReactI18next).init(t)}exports.initI18next=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./i18next.hook.cjs"),t=require("./i18next.util.cjs");exports.useTranslateI18next=e.useTranslateI18next;exports.initI18next=t.initI18next;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./loading.component.cjs"),e=require("./loading.context.cjs"),n=require("./loading.hook.cjs"),i=require("./loading.provider.cjs");exports.Loading=o.Loading;exports.LoadingContext=e.LoadingContext;exports.useLoading=n.useLoading;exports.LoadingProvider=i.LoadingProvider;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";var E=Object.defineProperty;var l=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var d=(e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&d(e,n,t[n]);if(l)for(var n of l(t))u.call(t,n)&&d(e,n,t[n]);return e};var f=(e,t)=>{var n={};for(var o in e)m.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&l)for(var o of l(e))t.indexOf(o)<0&&u.call(e,o)&&(n[o]=e[o]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("clsx"),c=require("react"),b="_full_b1d9o_1",y="_block_b1d9o_2",L="_container_b1d9o_40",N="_ring_b1d9o_50",h="_message_b1d9o_74",r={full:b,block:y,container:L,ring:N,message:h};function p(){if(document.getElementById("noscroll-style"))return;const e=document.createElement("style");e.id="noscroll-style",e.innerHTML=`
|
|
2
|
-
.noscroll {
|
|
3
|
-
overflow: hidden !important;
|
|
4
|
-
height: 100vh !important;
|
|
5
|
-
}
|
|
6
|
-
`,document.head.appendChild(e)}function k(x){var s=x,{full:e=!1,className:t="",message:n="Loading"}=s,o=f(s,["full","className","message"]);c.useEffect(()=>{if(e){document.body.classList.add("noscroll");const i=_=>_.preventDefault();return document.addEventListener("contextmenu",i),()=>{document.body.classList.remove("noscroll"),document.removeEventListener("contextmenu",i)}}},[e]),c.useEffect(()=>{p()},[]);function a(){return c.createElement("div",g({className:r.container},o),c.createElement("div",{className:r.ring}),c.createElement("div",{className:r.ring}),c.createElement("div",{className:r.ring}),c.createElement("div",{className:r.ring}),n&&c.createElement("div",{className:r.message},n))}return e?c.createElement("div",{className:v(r.full,t)},a()):c.createElement("div",{className:v(r.block,t)},a())}exports.Loading=k;
|