@underpostnet/cyberia 3.2.80
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/.dockerignore +14 -0
- package/.env.example +144 -0
- package/.github/workflows/cyberia-client.cd.yml +40 -0
- package/.github/workflows/cyberia-server.cd.yml +40 -0
- package/.github/workflows/docker-image.cyberia-client.ci.yml +71 -0
- package/.github/workflows/docker-image.cyberia-client.dev.ci.yml +70 -0
- package/.github/workflows/docker-image.cyberia-server.ci.yml +71 -0
- package/.github/workflows/docker-image.cyberia-server.dev.ci.yml +71 -0
- package/.github/workflows/docker-image.engine-cyberia.ci.yml +53 -0
- package/.github/workflows/docker-image.engine-cyberia.dev.ci.yml +53 -0
- package/.github/workflows/engine-cyberia.cd.yml +157 -0
- package/.github/workflows/engine-cyberia.ci.yml +125 -0
- package/.github/workflows/ghpkg.ci.yml +160 -0
- package/.github/workflows/gitlab.ci.yml +20 -0
- package/.github/workflows/hardhat.ci.yml +82 -0
- package/.github/workflows/npmpkg.ci.yml +126 -0
- package/.github/workflows/publish.ci.yml +87 -0
- package/.github/workflows/publish.cyberia.ci.yml +79 -0
- package/.github/workflows/pwa-microservices-template-page.cd.yml +65 -0
- package/.github/workflows/pwa-microservices-template-test.ci.yml +33 -0
- package/.github/workflows/release.cd.yml +46 -0
- package/.nycrc +9 -0
- package/.prettierignore +12 -0
- package/.prettierrc +9 -0
- package/.vscode/extensions.json +10 -0
- package/.vscode/settings.json +26 -0
- package/CHANGELOG.md +2516 -0
- package/CLI-HELP.md +1099 -0
- package/Dockerfile +161 -0
- package/Dockerfile.dev +161 -0
- package/Dockerfile.test +165 -0
- package/LICENSE +21 -0
- package/README.md +259 -0
- package/baremetal/commission-workflows.json +211 -0
- package/baremetal/packer-workflows.json +24 -0
- package/bin/build.js +261 -0
- package/bin/build.template.js +33 -0
- package/bin/cyberia.js +5627 -0
- package/bin/deploy.js +1547 -0
- package/bin/index.js +5627 -0
- package/bump.config.js +27 -0
- package/compose.env +144 -0
- package/conf.js +952 -0
- package/deployment.yaml +418 -0
- package/docker-compose.yml +434 -0
- package/examples/static-page/README.md +150 -0
- package/examples/static-page/ssr-components/CustomPage.js +554 -0
- package/examples/static-page/static-config-example.json +57 -0
- package/hardhat/.env.example +31 -0
- package/hardhat/contracts/ObjectLayerToken.sol +391 -0
- package/hardhat/deployments/.gitkeep +0 -0
- package/hardhat/deployments/hardhat-ObjectLayerToken.json +11 -0
- package/hardhat/hardhat.config.js +136 -0
- package/hardhat/ignition/modules/.gitkeep +0 -0
- package/hardhat/ignition/modules/ObjectLayerToken.js +21 -0
- package/hardhat/networks/besu-object-layer.network.json +138 -0
- package/hardhat/package-lock.json +2871 -0
- package/hardhat/package.json +43 -0
- package/hardhat/scripts/deployObjectLayerToken.js +98 -0
- package/hardhat/test/ObjectLayerToken.js +696 -0
- package/hardhat/types/ethers-contracts/ObjectLayerToken.ts +690 -0
- package/hardhat/types/ethers-contracts/common.ts +92 -0
- package/hardhat/types/ethers-contracts/factories/ObjectLayerToken__factory.ts +1055 -0
- package/hardhat/types/ethers-contracts/factories/index.ts +4 -0
- package/hardhat/types/ethers-contracts/hardhat.d.ts +47 -0
- package/hardhat/types/ethers-contracts/index.ts +6 -0
- package/ipfs/configure-ipfs.sh +13 -0
- package/jsconfig.json +9 -0
- package/manifests/cronjobs/dd-cron/dd-cron-backup.yaml +48 -0
- package/manifests/cronjobs/dd-cron/dd-cron-dns.yaml +48 -0
- package/manifests/deployment/adminer/deployment.yaml +32 -0
- package/manifests/deployment/adminer/kustomization.yaml +7 -0
- package/manifests/deployment/adminer/service.yaml +13 -0
- package/manifests/deployment/dd-cyberia-development/deployment.yaml +418 -0
- package/manifests/deployment/dd-cyberia-development/grpc-service.yaml +17 -0
- package/manifests/deployment/dd-cyberia-development/proxy.yaml +189 -0
- package/manifests/deployment/dd-cyberia-development/pv-pvc.yaml +164 -0
- package/manifests/deployment/dd-default-development/deployment.yaml +163 -0
- package/manifests/deployment/dd-default-development/proxy.yaml +46 -0
- package/manifests/deployment/fastapi/backend-deployment.yml +120 -0
- package/manifests/deployment/fastapi/backend-service.yml +19 -0
- package/manifests/deployment/fastapi/frontend-deployment.yml +54 -0
- package/manifests/deployment/fastapi/frontend-service.yml +15 -0
- package/manifests/deployment/fastapi/initial_data.sh +8 -0
- package/manifests/deployment/kafka/deployment.yaml +67 -0
- package/manifests/deployment/mongo-express/deployment.yaml +62 -0
- package/manifests/deployment/phpmyadmin/deployment.yaml +54 -0
- package/manifests/deployment/playwright/deployment.yaml +52 -0
- package/manifests/deployment/spark/spark-pi-py.yaml +20 -0
- package/manifests/deployment/tensorflow/tf-gpu-test.yaml +63 -0
- package/manifests/envoy-service-nodeport.yaml +22 -0
- package/manifests/grafana/deployment.yaml +64 -0
- package/manifests/grafana/kustomization.yaml +7 -0
- package/manifests/grafana/pvc.yaml +12 -0
- package/manifests/grafana/service.yaml +14 -0
- package/manifests/grafana/storage-class.yaml +9 -0
- package/manifests/ipfs/configmap.yaml +64 -0
- package/manifests/ipfs/headless-service.yaml +35 -0
- package/manifests/ipfs/kustomization.yaml +8 -0
- package/manifests/ipfs/statefulset.yaml +149 -0
- package/manifests/ipfs/storage-class.yaml +9 -0
- package/manifests/kind-config-dev.yaml +20 -0
- package/manifests/kind-config.yaml +12 -0
- package/manifests/kubeadm-calico-config.yaml +14 -0
- package/manifests/letsencrypt-prod.yaml +14 -0
- package/manifests/lxd/lxd-admin-profile.yaml +26 -0
- package/manifests/lxd/lxd-preseed.yaml +30 -0
- package/manifests/mariadb/kustomization.yaml +9 -0
- package/manifests/mariadb/pv.yaml +12 -0
- package/manifests/mariadb/pvc.yaml +10 -0
- package/manifests/mariadb/service.yaml +10 -0
- package/manifests/mariadb/statefulset.yaml +56 -0
- package/manifests/mariadb/storage-class.yaml +10 -0
- package/manifests/mongodb/headless-service.yaml +10 -0
- package/manifests/mongodb/kustomization.yaml +11 -0
- package/manifests/mongodb/pv-pvc.yaml +59 -0
- package/manifests/mongodb/statefulset.yaml +113 -0
- package/manifests/mongodb/storage-class.yaml +9 -0
- package/manifests/mongodb-4.4/headless-service.yaml +10 -0
- package/manifests/mongodb-4.4/kustomization.yaml +9 -0
- package/manifests/mongodb-4.4/mongodb-nodeport.yaml +17 -0
- package/manifests/mongodb-4.4/pv-pvc.yaml +19 -0
- package/manifests/mongodb-4.4/service-deployment.yaml +61 -0
- package/manifests/mongodb-4.4/statefulset.yaml +79 -0
- package/manifests/mongodb-4.4/storage-class.yaml +9 -0
- package/manifests/mysql/kustomization.yaml +7 -0
- package/manifests/mysql/pv-pvc.yaml +27 -0
- package/manifests/mysql/statefulset.yaml +55 -0
- package/manifests/postgresql/configmap.yaml +9 -0
- package/manifests/postgresql/kustomization.yaml +10 -0
- package/manifests/postgresql/pv.yaml +15 -0
- package/manifests/postgresql/pvc.yaml +13 -0
- package/manifests/postgresql/service.yaml +10 -0
- package/manifests/postgresql/statefulset.yaml +37 -0
- package/manifests/prometheus/deployment.yaml +82 -0
- package/manifests/pv-pvc-dd.yaml +34 -0
- package/manifests/valkey/kustomization.yaml +7 -0
- package/manifests/valkey/service.yaml +10 -0
- package/manifests/valkey/statefulset.yaml +37 -0
- package/manifests/valkey/valkey-nodeport.yaml +17 -0
- package/mongodb/entrypoint.sh +76 -0
- package/nginx.conf +128 -0
- package/nodemon.json +6 -0
- package/package.json +101 -0
- package/packer/images/Rocky9Amd64/Makefile +62 -0
- package/packer/images/Rocky9Amd64/QUICKSTART.md +113 -0
- package/packer/images/Rocky9Amd64/README.md +122 -0
- package/packer/images/Rocky9Amd64/http/rocky9.ks.pkrtpl.hcl +114 -0
- package/packer/images/Rocky9Amd64/rocky9.pkr.hcl +164 -0
- package/packer/images/Rocky9Arm64/Makefile +69 -0
- package/packer/images/Rocky9Arm64/README.md +122 -0
- package/packer/images/Rocky9Arm64/http/rocky9.ks.pkrtpl.hcl +114 -0
- package/packer/images/Rocky9Arm64/rocky9.pkr.hcl +171 -0
- package/packer/scripts/fuse-nbd +64 -0
- package/packer/scripts/fuse-tar-root +63 -0
- package/proxy.yaml +189 -0
- package/pv-pvc.yaml +164 -0
- package/scripts/device-scan.sh +65 -0
- package/scripts/disk-clean.sh +182 -0
- package/scripts/disk-devices.sh +13 -0
- package/scripts/gen-fqdns.sh +14 -0
- package/scripts/gpu-diag.sh +19 -0
- package/scripts/ip-info.sh +118 -0
- package/scripts/ipxe-setup.sh +200 -0
- package/scripts/k3s-node-setup.sh +124 -0
- package/scripts/kubeadm-node-setup.sh +317 -0
- package/scripts/link-local-underpost-cli.sh +6 -0
- package/scripts/lxd-vm-setup.sh +208 -0
- package/scripts/maas-nat-firewalld.sh +145 -0
- package/scripts/maas-setup.sh +135 -0
- package/scripts/maas-upload-boot-resource.sh +183 -0
- package/scripts/nat-iptables.sh +111 -0
- package/scripts/nvim.sh +91 -0
- package/scripts/packer-init-vars-file.sh +40 -0
- package/scripts/packer-setup.sh +289 -0
- package/scripts/ports-ls.sh +33 -0
- package/scripts/quick-tftp.sh +19 -0
- package/scripts/rhel-grpc-setup.sh +56 -0
- package/scripts/rocky-kickstart.sh +986 -0
- package/scripts/rocky-pwa.sh +200 -0
- package/scripts/rocky-setup.sh +106 -0
- package/scripts/rpmfusion-ffmpeg-setup.sh +32 -0
- package/scripts/ssl.sh +170 -0
- package/scripts/test-monitor.sh +248 -0
- package/src/api/atlas-sprite-sheet/atlas-sprite-sheet.controller.js +30 -0
- package/src/api/atlas-sprite-sheet/atlas-sprite-sheet.model.js +155 -0
- package/src/api/atlas-sprite-sheet/atlas-sprite-sheet.router.js +39 -0
- package/src/api/atlas-sprite-sheet/atlas-sprite-sheet.service.js +382 -0
- package/src/api/core/core.controller.js +8 -0
- package/src/api/core/core.model.js +11 -0
- package/src/api/core/core.router.js +23 -0
- package/src/api/core/core.service.js +30 -0
- package/src/api/crypto/crypto.controller.js +10 -0
- package/src/api/crypto/crypto.model.js +23 -0
- package/src/api/crypto/crypto.router.js +23 -0
- package/src/api/crypto/crypto.service.js +64 -0
- package/src/api/cyberia-action/cyberia-action.controller.js +8 -0
- package/src/api/cyberia-action/cyberia-action.model.js +79 -0
- package/src/api/cyberia-action/cyberia-action.router.js +21 -0
- package/src/api/cyberia-action/cyberia-action.service.js +58 -0
- package/src/api/cyberia-client-hints/cyberia-client-hints.controller.js +27 -0
- package/src/api/cyberia-client-hints/cyberia-client-hints.model.js +100 -0
- package/src/api/cyberia-client-hints/cyberia-client-hints.router.js +70 -0
- package/src/api/cyberia-client-hints/cyberia-client-hints.service.js +152 -0
- package/src/api/cyberia-dialogue/cyberia-dialogue.controller.js +8 -0
- package/src/api/cyberia-dialogue/cyberia-dialogue.model.js +36 -0
- package/src/api/cyberia-dialogue/cyberia-dialogue.router.js +20 -0
- package/src/api/cyberia-dialogue/cyberia-dialogue.service.js +57 -0
- package/src/api/cyberia-entity/cyberia-entity.controller.js +6 -0
- package/src/api/cyberia-entity/cyberia-entity.model.js +25 -0
- package/src/api/cyberia-entity/cyberia-entity.router.js +17 -0
- package/src/api/cyberia-entity/cyberia-entity.service.js +42 -0
- package/src/api/cyberia-entity-type-default/cyberia-entity-type-default.controller.js +6 -0
- package/src/api/cyberia-entity-type-default/cyberia-entity-type-default.model.js +67 -0
- package/src/api/cyberia-entity-type-default/cyberia-entity-type-default.router.js +17 -0
- package/src/api/cyberia-entity-type-default/cyberia-entity-type-default.service.js +46 -0
- package/src/api/cyberia-instance/cyberia-fallback-world.js +337 -0
- package/src/api/cyberia-instance/cyberia-instance-boot.service.js +57 -0
- package/src/api/cyberia-instance/cyberia-instance-map.service.js +583 -0
- package/src/api/cyberia-instance/cyberia-instance.controller.js +42 -0
- package/src/api/cyberia-instance/cyberia-instance.model.js +117 -0
- package/src/api/cyberia-instance/cyberia-instance.router.js +75 -0
- package/src/api/cyberia-instance/cyberia-instance.service.js +190 -0
- package/src/api/cyberia-instance/cyberia-portal-connector.js +260 -0
- package/src/api/cyberia-instance/cyberia-world-generator.js +618 -0
- package/src/api/cyberia-instance-conf/cyberia-instance-conf.controller.js +6 -0
- package/src/api/cyberia-instance-conf/cyberia-instance-conf.model.js +200 -0
- package/src/api/cyberia-instance-conf/cyberia-instance-conf.router.js +17 -0
- package/src/api/cyberia-instance-conf/cyberia-instance-conf.service.js +46 -0
- package/src/api/cyberia-map/cyberia-map.controller.js +6 -0
- package/src/api/cyberia-map/cyberia-map.model.js +33 -0
- package/src/api/cyberia-map/cyberia-map.router.js +19 -0
- package/src/api/cyberia-map/cyberia-map.service.js +76 -0
- package/src/api/cyberia-quest/cyberia-quest.controller.js +9 -0
- package/src/api/cyberia-quest/cyberia-quest.model.js +67 -0
- package/src/api/cyberia-quest/cyberia-quest.router.js +26 -0
- package/src/api/cyberia-quest/cyberia-quest.service.js +97 -0
- package/src/api/cyberia-quest-progress/cyberia-quest-progress.controller.js +6 -0
- package/src/api/cyberia-quest-progress/cyberia-quest-progress.model.js +49 -0
- package/src/api/cyberia-quest-progress/cyberia-quest-progress.router.js +21 -0
- package/src/api/cyberia-quest-progress/cyberia-quest-progress.service.js +42 -0
- package/src/api/cyberia-saga/cyberia-saga.controller.js +6 -0
- package/src/api/cyberia-saga/cyberia-saga.model.js +59 -0
- package/src/api/cyberia-saga/cyberia-saga.router.js +17 -0
- package/src/api/cyberia-saga/cyberia-saga.service.js +42 -0
- package/src/api/cyberia-server-defaults/cyberia-server-defaults.js +1076 -0
- package/src/api/cyberia-skill/cyberia-skill.controller.js +6 -0
- package/src/api/cyberia-skill/cyberia-skill.model.js +50 -0
- package/src/api/cyberia-skill/cyberia-skill.router.js +17 -0
- package/src/api/cyberia-skill/cyberia-skill.service.js +42 -0
- package/src/api/default/default.controller.js +6 -0
- package/src/api/default/default.model.js +20 -0
- package/src/api/default/default.router.js +21 -0
- package/src/api/default/default.service.js +42 -0
- package/src/api/document/document.controller.js +9 -0
- package/src/api/document/document.model.js +95 -0
- package/src/api/document/document.router.js +32 -0
- package/src/api/document/document.service.js +633 -0
- package/src/api/file/file.controller.js +15 -0
- package/src/api/file/file.model.js +127 -0
- package/src/api/file/file.ref.json +39 -0
- package/src/api/file/file.router.js +36 -0
- package/src/api/file/file.service.js +499 -0
- package/src/api/instance/instance.controller.js +8 -0
- package/src/api/instance/instance.model.js +34 -0
- package/src/api/instance/instance.router.js +27 -0
- package/src/api/instance/instance.service.js +75 -0
- package/src/api/ipfs/ipfs.controller.js +8 -0
- package/src/api/ipfs/ipfs.model.js +77 -0
- package/src/api/ipfs/ipfs.router.js +26 -0
- package/src/api/ipfs/ipfs.service.js +145 -0
- package/src/api/object-layer/object-layer.controller.js +18 -0
- package/src/api/object-layer/object-layer.model.js +200 -0
- package/src/api/object-layer/object-layer.router.js +729 -0
- package/src/api/object-layer/object-layer.service.js +894 -0
- package/src/api/object-layer-render-frames/object-layer-render-frames.controller.js +6 -0
- package/src/api/object-layer-render-frames/object-layer-render-frames.model.js +93 -0
- package/src/api/object-layer-render-frames/object-layer-render-frames.router.js +17 -0
- package/src/api/object-layer-render-frames/object-layer-render-frames.service.js +46 -0
- package/src/api/test/test.controller.js +14 -0
- package/src/api/test/test.model.js +14 -0
- package/src/api/test/test.router.js +23 -0
- package/src/api/test/test.service.js +35 -0
- package/src/api/types.js +24 -0
- package/src/api/user/guest.service.js +100 -0
- package/src/api/user/postman_collection.json +216 -0
- package/src/api/user/user.build.js +16 -0
- package/src/api/user/user.controller.js +35 -0
- package/src/api/user/user.model.js +142 -0
- package/src/api/user/user.router.js +367 -0
- package/src/api/user/user.service.js +582 -0
- package/src/api.js +23 -0
- package/src/cli/baremetal.js +3947 -0
- package/src/cli/cloud-init.js +673 -0
- package/src/cli/cluster.js +1395 -0
- package/src/cli/db.js +1533 -0
- package/src/cli/deploy.js +1542 -0
- package/src/cli/docker-compose.js +802 -0
- package/src/cli/env.js +177 -0
- package/src/cli/fs.js +380 -0
- package/src/cli/image.js +389 -0
- package/src/cli/index.js +1059 -0
- package/src/cli/ipfs.js +182 -0
- package/src/cli/kickstart.js +271 -0
- package/src/cli/kubectl.js +214 -0
- package/src/cli/lxd.js +1232 -0
- package/src/cli/monitor.js +659 -0
- package/src/cli/release.js +595 -0
- package/src/cli/repository.js +1969 -0
- package/src/cli/run.js +3326 -0
- package/src/cli/secrets.js +151 -0
- package/src/cli/ssh.js +975 -0
- package/src/cli/static.js +653 -0
- package/src/cli/system.js +332 -0
- package/src/cli/test.js +176 -0
- package/src/client/Cryptokoyn.index.js +30 -0
- package/src/client/CyberiaPortal.index.js +31 -0
- package/src/client/Default.index.js +77 -0
- package/src/client/Itemledger.index.js +35 -0
- package/src/client/Underpost.index.js +31 -0
- package/src/client/components/core/404.js +20 -0
- package/src/client/components/core/500.js +20 -0
- package/src/client/components/core/Account.js +630 -0
- package/src/client/components/core/AgGrid.js +238 -0
- package/src/client/components/core/Alert.js +76 -0
- package/src/client/components/core/AppStore.js +69 -0
- package/src/client/components/core/Auth.js +353 -0
- package/src/client/components/core/Badge.js +26 -0
- package/src/client/components/core/Blockchain.js +41 -0
- package/src/client/components/core/Blog.js +9 -0
- package/src/client/components/core/BtnIcon.js +109 -0
- package/src/client/components/core/CalendarCore.js +437 -0
- package/src/client/components/core/Chat.js +62 -0
- package/src/client/components/core/ClientEvents.js +163 -0
- package/src/client/components/core/ColorPaletteElement.js +309 -0
- package/src/client/components/core/CommonJs.js +1014 -0
- package/src/client/components/core/Content.js +349 -0
- package/src/client/components/core/Css.js +1134 -0
- package/src/client/components/core/CssCore.js +881 -0
- package/src/client/components/core/D3Chart.js +44 -0
- package/src/client/components/core/Docs.js +478 -0
- package/src/client/components/core/DropDown.js +321 -0
- package/src/client/components/core/EventBus.js +96 -0
- package/src/client/components/core/EventsUI.js +130 -0
- package/src/client/components/core/FileExplorer.js +1406 -0
- package/src/client/components/core/FullScreen.js +201 -0
- package/src/client/components/core/Input.js +537 -0
- package/src/client/components/core/Keyboard.js +80 -0
- package/src/client/components/core/KeyboardAvoidance.js +145 -0
- package/src/client/components/core/LoadingAnimation.js +152 -0
- package/src/client/components/core/LogIn.js +212 -0
- package/src/client/components/core/LogOut.js +72 -0
- package/src/client/components/core/Logger.js +22 -0
- package/src/client/components/core/Modal.js +2956 -0
- package/src/client/components/core/NotificationManager.js +80 -0
- package/src/client/components/core/Pagination.js +252 -0
- package/src/client/components/core/Panel.js +1308 -0
- package/src/client/components/core/PanelForm.js +915 -0
- package/src/client/components/core/Polyhedron.js +947 -0
- package/src/client/components/core/PublicProfile.js +895 -0
- package/src/client/components/core/Recover.js +211 -0
- package/src/client/components/core/Responsive.js +146 -0
- package/src/client/components/core/RichText.js +33 -0
- package/src/client/components/core/Router.js +523 -0
- package/src/client/components/core/Scroll.js +76 -0
- package/src/client/components/core/SearchBox.js +1007 -0
- package/src/client/components/core/SignUp.js +153 -0
- package/src/client/components/core/SocketIo.js +163 -0
- package/src/client/components/core/SocketIoHandler.js +75 -0
- package/src/client/components/core/Stream.js +161 -0
- package/src/client/components/core/ToggleSwitch.js +89 -0
- package/src/client/components/core/ToolTip.js +78 -0
- package/src/client/components/core/Translate.js +694 -0
- package/src/client/components/core/Validator.js +140 -0
- package/src/client/components/core/VanillaJs.js +485 -0
- package/src/client/components/core/Wallet.js +95 -0
- package/src/client/components/core/WebComponent.js +44 -0
- package/src/client/components/core/Webhook.js +58 -0
- package/src/client/components/core/Worker.js +313 -0
- package/src/client/components/core/windowGetDimensions.js +269 -0
- package/src/client/components/cryptokoyn/AppShellCryptokoyn.js +352 -0
- package/src/client/components/cryptokoyn/AppStoreCryptokoyn.js +5 -0
- package/src/client/components/cryptokoyn/CssCryptokoyn.js +212 -0
- package/src/client/components/cryptokoyn/LogInCryptokoyn.js +16 -0
- package/src/client/components/cryptokoyn/LogOutCryptokoyn.js +12 -0
- package/src/client/components/cryptokoyn/RouterCryptokoyn.js +37 -0
- package/src/client/components/cryptokoyn/SettingsCryptokoyn.js +16 -0
- package/src/client/components/cryptokoyn/SignUpCryptokoyn.js +11 -0
- package/src/client/components/cryptokoyn/SocketIoCryptokoyn.js +6 -0
- package/src/client/components/cyberia/ActionEngineCyberia.js +1867 -0
- package/src/client/components/cyberia/EntityEngineCyberia.js +585 -0
- package/src/client/components/cyberia/InstanceEngineCyberia.js +1088 -0
- package/src/client/components/cyberia/InstanceSelectionView.js +900 -0
- package/src/client/components/cyberia/MapEngineCyberia.js +1976 -0
- package/src/client/components/cyberia/ObjectLayerEngine.js +1540 -0
- package/src/client/components/cyberia/ObjectLayerEngineModal.js +2420 -0
- package/src/client/components/cyberia/ObjectLayerEngineViewer.js +1522 -0
- package/src/client/components/cyberia/SharedDefaultsCyberia.js +528 -0
- package/src/client/components/cyberia-portal/AppShellCyberiaPortal.js +772 -0
- package/src/client/components/cyberia-portal/AppStoreCyberiaPortal.js +5 -0
- package/src/client/components/cyberia-portal/CssCyberiaPortal.js +254 -0
- package/src/client/components/cyberia-portal/LogInCyberiaPortal.js +21 -0
- package/src/client/components/cyberia-portal/LogOutCyberiaPortal.js +16 -0
- package/src/client/components/cyberia-portal/MainBodyCyberiaPortal.js +518 -0
- package/src/client/components/cyberia-portal/RouterCyberiaPortal.js +72 -0
- package/src/client/components/cyberia-portal/SettingsCyberiaPortal.js +16 -0
- package/src/client/components/cyberia-portal/SignUpCyberiaPortal.js +13 -0
- package/src/client/components/cyberia-portal/SocketIoCyberiaPortal.js +6 -0
- package/src/client/components/cyberia-portal/TranslateCyberiaPortal.js +48 -0
- package/src/client/components/default/AppShellDefault.js +765 -0
- package/src/client/components/default/AppStoreDefault.js +5 -0
- package/src/client/components/default/CommonDefault.js +29 -0
- package/src/client/components/default/CssDefault.js +27 -0
- package/src/client/components/default/LogInDefault.js +16 -0
- package/src/client/components/default/LogOutDefault.js +12 -0
- package/src/client/components/default/RouterDefault.js +47 -0
- package/src/client/components/default/SettingsDefault.js +16 -0
- package/src/client/components/default/SignUpDefault.js +11 -0
- package/src/client/components/default/SocketIoDefault.js +6 -0
- package/src/client/components/default/TranslateDefault.js +7 -0
- package/src/client/components/itemledger/AppShellItemledger.js +353 -0
- package/src/client/components/itemledger/AppStoreItemledger.js +5 -0
- package/src/client/components/itemledger/CssItemledger.js +212 -0
- package/src/client/components/itemledger/LogInItemledger.js +17 -0
- package/src/client/components/itemledger/LogOutItemledger.js +12 -0
- package/src/client/components/itemledger/RouterItemledger.js +38 -0
- package/src/client/components/itemledger/SettingsItemledger.js +16 -0
- package/src/client/components/itemledger/SignUpItemledger.js +11 -0
- package/src/client/components/itemledger/SocketIoItemledger.js +6 -0
- package/src/client/components/itemledger/TranslateItemledger.js +7 -0
- package/src/client/components/underpost/AppShellUnderpost.js +691 -0
- package/src/client/components/underpost/AppStoreUnderpost.js +5 -0
- package/src/client/components/underpost/CssUnderpost.js +281 -0
- package/src/client/components/underpost/CyberpunkBloggerUnderpost.js +879 -0
- package/src/client/components/underpost/DocumentSearchProvider.js +448 -0
- package/src/client/components/underpost/LabGalleryUnderpost.js +79 -0
- package/src/client/components/underpost/LogInUnderpost.js +25 -0
- package/src/client/components/underpost/LogOutUnderpost.js +17 -0
- package/src/client/components/underpost/RouterUnderpost.js +45 -0
- package/src/client/components/underpost/SettingsUnderpost.js +16 -0
- package/src/client/components/underpost/SignUpUnderpost.js +11 -0
- package/src/client/components/underpost/SocketIoUnderpost.js +6 -0
- package/src/client/components/underpost/TranslateUnderpost.js +10 -0
- package/src/client/public/cryptokoyn/assets/banner/koyn-social.png +0 -0
- package/src/client/public/cryptokoyn/assets/logo/base-icon.png +0 -0
- package/src/client/public/cryptokoyn/assets/logo/cryptokoyn.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/android-chrome-144x144.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/android-chrome-192x192.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/android-chrome-256x256.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/android-chrome-36x36.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/android-chrome-48x48.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/android-chrome-72x72.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/android-chrome-96x96.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-114x114-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-114x114.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-120x120-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-120x120.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-144x144-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-144x144.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-152x152-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-152x152.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-180x180-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-180x180.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-57x57-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-57x57.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-60x60-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-60x60.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-72x72-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-72x72.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-76x76-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-76x76.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon-precomposed.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/apple-touch-icon.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/favicon-16x16.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/favicon-32x32.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/mstile-144x144.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/mstile-150x150.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/mstile-310x150.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/mstile-310x310.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/mstile-70x70.png +0 -0
- package/src/client/public/cryptokoyn/assets/splash/safari-pinned-tab.svg +42 -0
- package/src/client/public/cryptokoyn/browserconfig.xml +12 -0
- package/src/client/public/cryptokoyn/favicon.ico +0 -0
- package/src/client/public/cryptokoyn/microdata.json +85 -0
- package/src/client/public/cryptokoyn/site.webmanifest +57 -0
- package/src/client/public/cryptokoyn/sitemap +148 -0
- package/src/client/public/cyberia-docs/ACTION-SYSTEM.md +307 -0
- package/src/client/public/cyberia-docs/ARCHITECTURE.md +309 -0
- package/src/client/public/cyberia-docs/CYBERIA-CLI.md +204 -0
- package/src/client/public/cyberia-docs/CYBERIA-CLIENT.md +341 -0
- package/src/client/public/cyberia-docs/CYBERIA-LORE.md +84 -0
- package/src/client/public/cyberia-docs/CYBERIA-SAGA.md +394 -0
- package/src/client/public/cyberia-docs/CYBERIA-SERVER.md +294 -0
- package/src/client/public/cyberia-docs/CYBERIA.md +259 -0
- package/src/client/public/cyberia-docs/ENTITY-PROFILE.md +242 -0
- package/src/client/public/cyberia-docs/HARDHAT-MODULE.md +300 -0
- package/src/client/public/cyberia-docs/OFF-CHAIN-ECONOMY.md +309 -0
- package/src/client/public/cyberia-docs/QUEST-SYSTEM.md +228 -0
- package/src/client/public/cyberia-docs/ROADMAP.md +240 -0
- package/src/client/public/cyberia-docs/UNDERPOST-PLATFORM.md +106 -0
- package/src/client/public/cyberia-docs/WHITE-PAPER.md +740 -0
- package/src/client/public/default/android-chrome-144x144.png +0 -0
- package/src/client/public/default/android-chrome-192x192.png +0 -0
- package/src/client/public/default/android-chrome-256x256.png +0 -0
- package/src/client/public/default/android-chrome-36x36.png +0 -0
- package/src/client/public/default/android-chrome-384x384.png +0 -0
- package/src/client/public/default/android-chrome-48x48.png +0 -0
- package/src/client/public/default/android-chrome-512x512.png +0 -0
- package/src/client/public/default/android-chrome-72x72.png +0 -0
- package/src/client/public/default/android-chrome-96x96.png +0 -0
- package/src/client/public/default/apple-touch-icon-1024x1024.png +0 -0
- package/src/client/public/default/apple-touch-icon-114x114-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-114x114.png +0 -0
- package/src/client/public/default/apple-touch-icon-120x120-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-120x120.png +0 -0
- package/src/client/public/default/apple-touch-icon-144x144-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-144x144.png +0 -0
- package/src/client/public/default/apple-touch-icon-152x152-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-152x152.png +0 -0
- package/src/client/public/default/apple-touch-icon-167x167.png +0 -0
- package/src/client/public/default/apple-touch-icon-180x180-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-180x180.png +0 -0
- package/src/client/public/default/apple-touch-icon-57x57-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-57x57.png +0 -0
- package/src/client/public/default/apple-touch-icon-60x60-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-60x60.png +0 -0
- package/src/client/public/default/apple-touch-icon-72x72-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-72x72.png +0 -0
- package/src/client/public/default/apple-touch-icon-76x76-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-76x76.png +0 -0
- package/src/client/public/default/apple-touch-icon-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1125x2436.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1136x640.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1170x2532.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1179x2556.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1242x2208.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1242x2688.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1284x2778.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1290x2796.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1334x750.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1488x2266.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1536x2048.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1620x2160.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1640x2160.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1668x2224.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1668x2388.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1792x828.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2048x1536.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2048x2732.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2160x1620.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2160x1640.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2208x1242.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2224x1668.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2266x1488.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2388x1668.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2436x1125.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2532x1170.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2556x1179.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2688x1242.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2732x2048.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2778x1284.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2796x1290.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-640x1136.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-750x1334.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-828x1792.png +0 -0
- package/src/client/public/default/assets/background/dark.jpg +0 -0
- package/src/client/public/default/assets/background/dark.svg +557 -0
- package/src/client/public/default/assets/background/white.jpg +0 -0
- package/src/client/public/default/assets/background/white0-min.jpg +0 -0
- package/src/client/public/default/assets/background/white0.jpg +0 -0
- package/src/client/public/default/assets/logo/base-icon.png +0 -0
- package/src/client/public/default/assets/logo/underpost.gif +0 -0
- package/src/client/public/default/assets/mailer/api-user-check.png +0 -0
- package/src/client/public/default/assets/mailer/api-user-default-avatar.png +0 -0
- package/src/client/public/default/assets/mailer/api-user-invalid-token.png +0 -0
- package/src/client/public/default/assets/mailer/api-user-recover.png +0 -0
- package/src/client/public/default/browserconfig.xml +12 -0
- package/src/client/public/default/favicon-16x16.png +0 -0
- package/src/client/public/default/favicon-32x32.png +0 -0
- package/src/client/public/default/favicon-48x48.png +0 -0
- package/src/client/public/default/favicon.ico +0 -0
- package/src/client/public/default/manifest.webmanifest +69 -0
- package/src/client/public/default/mstile-144x144.png +0 -0
- package/src/client/public/default/mstile-150x150.png +0 -0
- package/src/client/public/default/mstile-310x150.png +0 -0
- package/src/client/public/default/mstile-310x310.png +0 -0
- package/src/client/public/default/mstile-70x70.png +0 -0
- package/src/client/public/default/safari-pinned-tab.svg +24 -0
- package/src/client/public/default/site.webmanifest +69 -0
- package/src/client/public/default/sitemap +148 -0
- package/src/client/public/default/yandex-browser-50x50.png +0 -0
- package/src/client/public/default/yandex-browser-manifest.json +9 -0
- package/src/client/public/doc/favicon.ico +0 -0
- package/src/client/public/doc/sitemap +148 -0
- package/src/client/public/itemledger/android-chrome-144x144.png +0 -0
- package/src/client/public/itemledger/android-chrome-192x192.png +0 -0
- package/src/client/public/itemledger/android-chrome-256x256.png +0 -0
- package/src/client/public/itemledger/android-chrome-36x36.png +0 -0
- package/src/client/public/itemledger/android-chrome-384x384.png +0 -0
- package/src/client/public/itemledger/android-chrome-48x48.png +0 -0
- package/src/client/public/itemledger/android-chrome-512x512.png +0 -0
- package/src/client/public/itemledger/android-chrome-72x72.png +0 -0
- package/src/client/public/itemledger/android-chrome-96x96.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-1024x1024.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-114x114.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-120x120.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-144x144.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-152x152.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-167x167.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-180x180.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-57x57.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-60x60.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-72x72.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-76x76.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon-precomposed.png +0 -0
- package/src/client/public/itemledger/apple-touch-icon.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1125x2436.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1136x640.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1170x2532.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1179x2556.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1242x2208.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1242x2688.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1284x2778.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1290x2796.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1334x750.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1488x2266.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1536x2048.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1620x2160.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1640x2160.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1668x2224.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1668x2388.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-1792x828.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2048x1536.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2048x2732.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2160x1620.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2160x1640.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2208x1242.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2224x1668.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2266x1488.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2388x1668.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2436x1125.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2532x1170.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2556x1179.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2688x1242.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2732x2048.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2778x1284.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-2796x1290.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-640x1136.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-750x1334.png +0 -0
- package/src/client/public/itemledger/apple-touch-startup-image-828x1792.png +0 -0
- package/src/client/public/itemledger/assets/logo/base-icon.png +0 -0
- package/src/client/public/itemledger/browserconfig.xml +12 -0
- package/src/client/public/itemledger/favicon-16x16.png +0 -0
- package/src/client/public/itemledger/favicon-32x32.png +0 -0
- package/src/client/public/itemledger/favicon-48x48.png +0 -0
- package/src/client/public/itemledger/favicon.ico +0 -0
- package/src/client/public/itemledger/manifest.webmanifest +69 -0
- package/src/client/public/itemledger/microdata.json +71 -0
- package/src/client/public/itemledger/mstile-144x144.png +0 -0
- package/src/client/public/itemledger/mstile-150x150.png +0 -0
- package/src/client/public/itemledger/mstile-310x150.png +0 -0
- package/src/client/public/itemledger/mstile-310x310.png +0 -0
- package/src/client/public/itemledger/mstile-70x70.png +0 -0
- package/src/client/public/itemledger/sitemap +148 -0
- package/src/client/public/itemledger/yandex-browser-50x50.png +0 -0
- package/src/client/public/itemledger/yandex-browser-manifest.json +9 -0
- package/src/client/public/test/favicon.ico +0 -0
- package/src/client/public/test/sitemap +148 -0
- package/src/client/services/atlas-sprite-sheet/atlas-sprite-sheet.service.js +137 -0
- package/src/client/services/core/core.service.js +309 -0
- package/src/client/services/crypto/crypto.service.js +68 -0
- package/src/client/services/cyberia-action/cyberia-action.service.js +99 -0
- package/src/client/services/cyberia-client-hints/cyberia-client-hints.service.js +99 -0
- package/src/client/services/cyberia-dialogue/cyberia-dialogue.service.js +99 -0
- package/src/client/services/cyberia-entity/cyberia-entity.management.js +57 -0
- package/src/client/services/cyberia-entity/cyberia-entity.service.js +99 -0
- package/src/client/services/cyberia-entity-type-default/cyberia-entity-type-default.service.js +99 -0
- package/src/client/services/cyberia-instance/cyberia-instance.management.js +194 -0
- package/src/client/services/cyberia-instance/cyberia-instance.service.js +137 -0
- package/src/client/services/cyberia-instance-conf/cyberia-instance-conf.service.js +99 -0
- package/src/client/services/cyberia-map/cyberia-map.management.js +193 -0
- package/src/client/services/cyberia-map/cyberia-map.service.js +120 -0
- package/src/client/services/cyberia-quest/cyberia-quest.service.js +99 -0
- package/src/client/services/cyberia-quest-progress/cyberia-quest-progress.service.js +99 -0
- package/src/client/services/cyberia-saga/cyberia-saga.service.js +99 -0
- package/src/client/services/cyberia-skill/cyberia-skill.service.js +99 -0
- package/src/client/services/default/default.management.js +1015 -0
- package/src/client/services/default/default.service.js +99 -0
- package/src/client/services/document/document.service.js +134 -0
- package/src/client/services/file/file.service.js +94 -0
- package/src/client/services/instance/instance.management.js +78 -0
- package/src/client/services/instance/instance.service.js +107 -0
- package/src/client/services/ipfs/ipfs.service.js +118 -0
- package/src/client/services/object-layer/object-layer.management.js +414 -0
- package/src/client/services/object-layer/object-layer.service.js +208 -0
- package/src/client/services/object-layer-render-frames/object-layer-render-frames.service.js +99 -0
- package/src/client/services/test/test.service.js +68 -0
- package/src/client/services/user/guest.service.js +86 -0
- package/src/client/services/user/user.management.js +51 -0
- package/src/client/services/user/user.service.js +106 -0
- package/src/client/ssr/RootDocument.js +237 -0
- package/src/client/ssr/body/404.js +77 -0
- package/src/client/ssr/body/500.js +76 -0
- package/src/client/ssr/body/CacheControl.js +117 -0
- package/src/client/ssr/body/CyberiaDefaultSplashScreen.js +97 -0
- package/src/client/ssr/body/DefaultSplashScreen.js +97 -0
- package/src/client/ssr/body/SwaggerDarkMode.js +285 -0
- package/src/client/ssr/body/UnderpostDefaultSplashScreen.js +90 -0
- package/src/client/ssr/head/CryptokoynScripts.js +4 -0
- package/src/client/ssr/head/Css.js +241 -0
- package/src/client/ssr/head/CyberiaPortalScripts.js +6 -0
- package/src/client/ssr/head/DefaultScripts.js +6 -0
- package/src/client/ssr/head/ItemledgerScripts.js +4 -0
- package/src/client/ssr/head/Microdata.js +11 -0
- package/src/client/ssr/head/Production.js +1 -0
- package/src/client/ssr/head/Pwa.js +146 -0
- package/src/client/ssr/head/PwaItemledger.js +197 -0
- package/src/client/ssr/head/Seo.js +15 -0
- package/src/client/ssr/head/UnderpostScripts.js +6 -0
- package/src/client/ssr/mailer/DefaultRecoverEmail.js +20 -0
- package/src/client/ssr/mailer/DefaultVerifyEmail.js +16 -0
- package/src/client/ssr/views/Cyberia404.js +328 -0
- package/src/client/ssr/views/CyberiaServerMetrics.js +1070 -0
- package/src/client/ssr/views/Maintenance.js +64 -0
- package/src/client/ssr/views/NoNetworkConnection.js +68 -0
- package/src/client/ssr/views/Test.js +199 -0
- package/src/client/sw/core.sw.js +274 -0
- package/src/client-builder/client-build-docs.js +493 -0
- package/src/client-builder/client-build-live.js +100 -0
- package/src/client-builder/client-build.js +1092 -0
- package/src/client-builder/client-dev-server.js +88 -0
- package/src/client-builder/client-formatted.js +170 -0
- package/src/client-builder/client-icons.js +108 -0
- package/src/client-builder/ssr.js +124 -0
- package/src/client.build.js +17 -0
- package/src/client.dev.js +21 -0
- package/src/db/DataBaseProvider.js +213 -0
- package/src/db/mariadb/MariaDB.js +72 -0
- package/src/db/mongo/MongoBootstrap.js +657 -0
- package/src/db/mongo/MongooseDB.js +199 -0
- package/src/grpc/cyberia/grpc-server.js +162 -0
- package/src/index.js +357 -0
- package/src/mailer/EmailRender.js +116 -0
- package/src/mailer/MailerProvider.js +213 -0
- package/src/projects/cyberia/atlas-sprite-sheet-generator.js +413 -0
- package/src/projects/cyberia/besu-genesis-generator.js +1630 -0
- package/src/projects/cyberia/catalog-cyberia.js +90 -0
- package/src/projects/cyberia/gemini-client.js +175 -0
- package/src/projects/cyberia/generate-saga.js +2137 -0
- package/src/projects/cyberia/hot-reload-trigger.js +163 -0
- package/src/projects/cyberia/instance-data.js +719 -0
- package/src/projects/cyberia/ipfs-client.js +599 -0
- package/src/projects/cyberia/map-preview-generator.js +304 -0
- package/src/projects/cyberia/object-layer.js +978 -0
- package/src/projects/cyberia/semantic-layer-generator-floor.js +319 -0
- package/src/projects/cyberia/semantic-layer-generator-resource.js +259 -0
- package/src/projects/cyberia/semantic-layer-generator-skin.js +1164 -0
- package/src/projects/cyberia/semantic-layer-generator.js +753 -0
- package/src/projects/cyberia/shape-generator.js +1060 -0
- package/src/projects/underpost/catalog-underpost.js +60 -0
- package/src/proxy.js +19 -0
- package/src/runtime/cyberia-client/Dockerfile +49 -0
- package/src/runtime/cyberia-client/Dockerfile.dev +75 -0
- package/src/runtime/cyberia-server/Dockerfile +43 -0
- package/src/runtime/cyberia-server/Dockerfile.dev +56 -0
- package/src/runtime/engine-cyberia/Dockerfile +161 -0
- package/src/runtime/engine-cyberia/Dockerfile.dev +161 -0
- package/src/runtime/engine-cyberia/Dockerfile.test +165 -0
- package/src/runtime/engine-cyberia/compose.env +144 -0
- package/src/runtime/engine-cyberia/docker-compose.yml +434 -0
- package/src/runtime/engine-cyberia/ipfs/configure-ipfs.sh +13 -0
- package/src/runtime/engine-cyberia/mongodb/entrypoint.sh +76 -0
- package/src/runtime/engine-cyberia/nginx.conf +128 -0
- package/src/runtime/express/Dockerfile +45 -0
- package/src/runtime/express/Express.js +285 -0
- package/src/runtime/lampp/Dockerfile +62 -0
- package/src/runtime/lampp/Lampp.js +359 -0
- package/src/runtime/nginx/Nginx.js +250 -0
- package/src/runtime/wp/Dockerfile +62 -0
- package/src/runtime/wp/Wp.js +642 -0
- package/src/server/auth.js +713 -0
- package/src/server/backup.js +102 -0
- package/src/server/catalog.js +72 -0
- package/src/server/conf.js +2316 -0
- package/src/server/cron.js +476 -0
- package/src/server/crypto.js +210 -0
- package/src/server/data-query.js +461 -0
- package/src/server/dns.js +553 -0
- package/src/server/downloader.js +73 -0
- package/src/server/logger.js +229 -0
- package/src/server/middlewares.js +152 -0
- package/src/server/peer.js +75 -0
- package/src/server/process.js +299 -0
- package/src/server/proxy.js +139 -0
- package/src/server/runtime-status.js +252 -0
- package/src/server/runtime.js +183 -0
- package/src/server/start.js +272 -0
- package/src/server/tls.js +254 -0
- package/src/server/valkey.js +201 -0
- package/src/server.js +25 -0
- package/src/ws/IoInterface.js +129 -0
- package/src/ws/IoServer.js +68 -0
- package/src/ws/core/channels/core.ws.chat.js +68 -0
- package/src/ws/core/channels/core.ws.mailer.js +116 -0
- package/src/ws/core/channels/core.ws.stream.js +90 -0
- package/src/ws/core/core.ws.connection.js +41 -0
- package/src/ws/core/core.ws.emit.js +37 -0
- package/src/ws/core/core.ws.server.js +44 -0
- package/src/ws/default/channels/default.ws.main.js +57 -0
- package/src/ws/default/default.ws.connection.js +35 -0
- package/src/ws/default/default.ws.emit.js +14 -0
- package/src/ws/default/default.ws.server.js +39 -0
- package/test/api.test.js +53 -0
- package/test/crypto.test.js +117 -0
- package/test/cyberia-instance-conf-defaults.test.js +140 -0
- package/test/deploy-monitor.test.js +267 -0
- package/test/shape-generator.test.js +463 -0
- package/tsconfig.docs.json +15 -0
- package/typedoc.dd-cyberia.json +31 -0
- package/typedoc.json +31 -0
|
@@ -0,0 +1,1070 @@
|
|
|
1
|
+
// CyberiaServerMetrics.js — SSR dashboard for the cyberia-server
|
|
2
|
+
// metrics API.
|
|
3
|
+
//
|
|
4
|
+
// The runtime contract is:
|
|
5
|
+
// - Polls GET /api/v1/metrics every POLL_INTERVAL_MS.
|
|
6
|
+
// - Derives per-second rates locally by diffing successive snapshots
|
|
7
|
+
// (the server only publishes monotonic counters).
|
|
8
|
+
// - Renders to a static HTML/CSS shell — no SPA framework, no build
|
|
9
|
+
// step. Every value is text in a single-page console.
|
|
10
|
+
//
|
|
11
|
+
// Visual contract:
|
|
12
|
+
// - Retro pixel-art RPG aesthetic: 'Jersey 15' display font, hard 2 px
|
|
13
|
+
// borders, terminal palette, no border-radius, no shadows.
|
|
14
|
+
// - Dark/light themes via a persisted toggle (data-theme on <html>).
|
|
15
|
+
// - Icons and the display font are self-hosted on cyberiaonline.com — no
|
|
16
|
+
// third-party CDN. Icons are pixel-art PNGs; each is paired with a text
|
|
17
|
+
// label, so a decorative glyph never carries information alone.
|
|
18
|
+
// - Dense data layout suitable for operators monitoring a live server.
|
|
19
|
+
|
|
20
|
+
const POLL_INTERVAL_MS = 2000;
|
|
21
|
+
|
|
22
|
+
const s = (el) => document.querySelector(el);
|
|
23
|
+
const sa = (el) => document.querySelectorAll(el);
|
|
24
|
+
|
|
25
|
+
const append = (el, html) => s(el).insertAdjacentHTML('beforeend', html);
|
|
26
|
+
|
|
27
|
+
const setHTML = (el, html) => {
|
|
28
|
+
const element = s(el);
|
|
29
|
+
if (element) element.innerHTML = html;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// Instance sub-path instance variant handler
|
|
33
|
+
const basePath = () => {
|
|
34
|
+
const seg = (window.location.pathname || '/').split('/').filter(Boolean)[0] || '';
|
|
35
|
+
return seg ? `/${seg}` : '';
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const apiUrl = (path) => `${basePath()}${path}`;
|
|
39
|
+
|
|
40
|
+
// ── Formatters ─────────────────────────────────────────────────────────────
|
|
41
|
+
|
|
42
|
+
const pad = (n, w = 2) => String(n).padStart(w, '0');
|
|
43
|
+
|
|
44
|
+
const formatUptime = (seconds) => {
|
|
45
|
+
if (!Number.isFinite(seconds) || seconds < 0) return '--:--:--';
|
|
46
|
+
const s = Math.floor(seconds);
|
|
47
|
+
const d = Math.floor(s / 86400);
|
|
48
|
+
const h = Math.floor((s % 86400) / 3600);
|
|
49
|
+
const m = Math.floor((s % 3600) / 60);
|
|
50
|
+
const sec = s % 60;
|
|
51
|
+
return d > 0 ? `${d}d ${pad(h)}:${pad(m)}:${pad(sec)}` : `${pad(h)}:${pad(m)}:${pad(sec)}`;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const formatNumber = (n) => {
|
|
55
|
+
if (!Number.isFinite(n)) return '0';
|
|
56
|
+
return Math.round(n).toLocaleString('en-US');
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const formatBytes = (bytes) => {
|
|
60
|
+
if (!Number.isFinite(bytes) || bytes <= 0) return '0 B';
|
|
61
|
+
const units = ['B', 'KiB', 'MiB', 'GiB', 'TiB'];
|
|
62
|
+
let i = 0;
|
|
63
|
+
let v = bytes;
|
|
64
|
+
while (v >= 1024 && i < units.length - 1) {
|
|
65
|
+
v /= 1024;
|
|
66
|
+
i++;
|
|
67
|
+
}
|
|
68
|
+
return `${v.toFixed(v >= 100 ? 0 : v >= 10 ? 1 : 2)} ${units[i]}`;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const formatRate = (n, unit) => {
|
|
72
|
+
if (!Number.isFinite(n) || n <= 0) return `0 ${unit}`;
|
|
73
|
+
if (n >= 1000) return `${(n / 1000).toFixed(1)} k${unit}`;
|
|
74
|
+
return `${n.toFixed(n >= 100 ? 0 : 1)} ${unit}`;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const formatPercent = (value) => {
|
|
78
|
+
if (!Number.isFinite(value)) return '0.00';
|
|
79
|
+
return value.toFixed(2);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// Health palette. Closed enum — any unknown value falls through to
|
|
83
|
+
// the worst known severity ("critical").
|
|
84
|
+
const HEALTH_TONE = {
|
|
85
|
+
healthy: 'ok',
|
|
86
|
+
degraded: 'warn',
|
|
87
|
+
maintenance: 'info',
|
|
88
|
+
critical: 'err',
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const LOAD_TONE = {
|
|
92
|
+
low: 'ok',
|
|
93
|
+
moderate: 'warn',
|
|
94
|
+
high: 'warn',
|
|
95
|
+
critical: 'err',
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const toneClass = (tone) => `tone-${tone || 'muted'}`;
|
|
99
|
+
|
|
100
|
+
// ── Rate tracker ────────────────────────────────────────────────────────────
|
|
101
|
+
// The server only exposes monotonically-increasing counters; the
|
|
102
|
+
// dashboard derives /s rates by diffing the prior snapshot. Implemented
|
|
103
|
+
// as a pair of free functions (rather than a class) so the inlined
|
|
104
|
+
// browser script can recreate the closure without method-shorthand
|
|
105
|
+
// surprises from Function.prototype.toString.
|
|
106
|
+
const rateState = { prev: null, prevTs: 0 };
|
|
107
|
+
|
|
108
|
+
const rateDiff = (curr, key) => {
|
|
109
|
+
if (!rateState.prev) return 0;
|
|
110
|
+
const dt = (curr._ts - rateState.prevTs) / 1000;
|
|
111
|
+
if (dt <= 0) return 0;
|
|
112
|
+
return (Number(curr[key] || 0) - Number(rateState.prev[key] || 0)) / dt;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const rateUpdate = (snapshot) => {
|
|
116
|
+
rateState.prev = snapshot;
|
|
117
|
+
rateState.prevTs = snapshot._ts;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// ── Assets (self-hosted on cyberiaonline.com; no third-party CDN) ────────────
|
|
121
|
+
// Icons and the display font are served from the project's own asset host. The
|
|
122
|
+
// dashboard runs on server.cyberiaonline.com, so these are absolute cross-origin
|
|
123
|
+
// URLs: <img> icons load without CORS; the @font-face degrades to a monospace
|
|
124
|
+
// stack if the asset host omits CORS headers for the font.
|
|
125
|
+
const ICON_BASE = 'https://www.cyberiaonline.com/assets/ui-icons/';
|
|
126
|
+
|
|
127
|
+
// Logical id -> pixel-art icon file. Every id is paired with a text label, so an
|
|
128
|
+
// icon is decorative and a missing glyph never hides information.
|
|
129
|
+
const ICONS = {
|
|
130
|
+
pulse: 'server.png',
|
|
131
|
+
cpu: 'engine.png',
|
|
132
|
+
tick: 'reload.png',
|
|
133
|
+
load: 'stats.png',
|
|
134
|
+
plug: 'cloud.png',
|
|
135
|
+
users: 'character.png',
|
|
136
|
+
map: 'map.png',
|
|
137
|
+
cube: 'polyhedron.png',
|
|
138
|
+
stack: 'stack.png',
|
|
139
|
+
alert: 'skull.png',
|
|
140
|
+
down: 'arrow-down.png',
|
|
141
|
+
up: 'arrow-up.png',
|
|
142
|
+
doc: 'doc.png',
|
|
143
|
+
clock: 'clock.png',
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
const icon = (id) => `<img class="icon" src="${ICON_BASE}${ICONS[id] || ICONS.cube}" alt="" />`;
|
|
147
|
+
|
|
148
|
+
// ── Theme ────────────────────────────────────────────────────────────────────
|
|
149
|
+
// Dark is the default console look; the toggle flips to a warm parchment light
|
|
150
|
+
// theme and persists the choice. First load with no stored choice follows the OS
|
|
151
|
+
// preference. The palette lives in CSS custom properties keyed off
|
|
152
|
+
// documentElement[data-theme]; these helpers only flip that attribute.
|
|
153
|
+
const THEME_KEY = 'cyberia-metrics-theme';
|
|
154
|
+
|
|
155
|
+
const currentTheme = () => (document.documentElement.getAttribute('data-theme') === 'light' ? 'light' : 'dark');
|
|
156
|
+
|
|
157
|
+
const applyTheme = (theme) => {
|
|
158
|
+
document.documentElement.setAttribute('data-theme', theme === 'light' ? 'light' : 'dark');
|
|
159
|
+
const label = s('.theme-toggle-label');
|
|
160
|
+
if (label) label.textContent = currentTheme().toUpperCase();
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
const initTheme = () => {
|
|
164
|
+
let stored = null;
|
|
165
|
+
try {
|
|
166
|
+
stored = localStorage.getItem(THEME_KEY);
|
|
167
|
+
} catch (_) {}
|
|
168
|
+
const prefersLight = window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches;
|
|
169
|
+
applyTheme(stored === 'light' || stored === 'dark' ? stored : prefersLight ? 'light' : 'dark');
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
const toggleTheme = () => {
|
|
173
|
+
const next = currentTheme() === 'light' ? 'dark' : 'light';
|
|
174
|
+
applyTheme(next);
|
|
175
|
+
try {
|
|
176
|
+
localStorage.setItem(THEME_KEY, next);
|
|
177
|
+
} catch (_) {}
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
const themeToggle = () => `
|
|
181
|
+
<button type="button" class="theme-toggle" title="Toggle light / dark theme" aria-label="Toggle theme">
|
|
182
|
+
<img class="icon" src="${ICON_BASE}pallet-colors.png" alt="" />
|
|
183
|
+
<span class="theme-toggle-label">${currentTheme().toUpperCase()}</span>
|
|
184
|
+
</button>
|
|
185
|
+
`;
|
|
186
|
+
|
|
187
|
+
// ── Atoms ──────────────────────────────────────────────────────────────────
|
|
188
|
+
|
|
189
|
+
const kv = (label, value, tone) => html`
|
|
190
|
+
<div class="kv">
|
|
191
|
+
<span class="kv-label">${label}</span>
|
|
192
|
+
<span class="kv-value ${toneClass(tone)}">${value}</span>
|
|
193
|
+
</div>
|
|
194
|
+
`;
|
|
195
|
+
|
|
196
|
+
const meter = (label, current, max, hint) => {
|
|
197
|
+
const denom = Number(max) || 1;
|
|
198
|
+
const pct = Math.min(100, Math.max(0, (Number(current) / denom) * 100));
|
|
199
|
+
const tone = pct >= 90 ? 'err' : pct >= 70 ? 'warn' : 'ok';
|
|
200
|
+
return html`
|
|
201
|
+
<div class="meter">
|
|
202
|
+
<div class="meter-head">
|
|
203
|
+
<span class="meter-label">${label}</span>
|
|
204
|
+
<span class="meter-value ${toneClass(tone)}">${formatNumber(current)} / ${formatNumber(max)}</span>
|
|
205
|
+
</div>
|
|
206
|
+
<div class="meter-bar">
|
|
207
|
+
<div class="meter-fill ${toneClass(tone)}" style="width: ${pct.toFixed(1)}%"></div>
|
|
208
|
+
</div>
|
|
209
|
+
<div class="meter-foot">
|
|
210
|
+
<span>${pct.toFixed(1)} %</span>
|
|
211
|
+
<span>${hint || ''}</span>
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
`;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
const panel = (titleIcon, title, body, meta) => html`
|
|
218
|
+
<section class="panel">
|
|
219
|
+
<header class="panel-head">
|
|
220
|
+
<h2 class="panel-title">${icon(titleIcon)}<span>${title}</span></h2>
|
|
221
|
+
${meta ? `<span class="panel-meta">${meta}</span>` : ''}
|
|
222
|
+
</header>
|
|
223
|
+
<div class="panel-body">${body}</div>
|
|
224
|
+
</section>
|
|
225
|
+
`;
|
|
226
|
+
|
|
227
|
+
// ── Renderers ──────────────────────────────────────────────────────────────
|
|
228
|
+
|
|
229
|
+
const renderHealthPanel = (m) => {
|
|
230
|
+
const tone = HEALTH_TONE[m.health] || 'err';
|
|
231
|
+
return panel(
|
|
232
|
+
'pulse',
|
|
233
|
+
'Health',
|
|
234
|
+
html`
|
|
235
|
+
<div class="health-block">
|
|
236
|
+
<span class="health-dot ${toneClass(tone)}"></span>
|
|
237
|
+
<div>
|
|
238
|
+
<div class="health-status ${toneClass(tone)}">${(m.health || 'unknown').toUpperCase()}</div>
|
|
239
|
+
<div class="health-desc">${m.health_description || '—'}</div>
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
242
|
+
<div class="grid-2">
|
|
243
|
+
${kv('Instance', m.instance_code || '—')} ${kv('Uptime', formatUptime(m.server_uptime_sec))}
|
|
244
|
+
</div>
|
|
245
|
+
`,
|
|
246
|
+
new Date(m.timestamp).toISOString().replace('T', ' ').slice(0, 19) + ' UTC',
|
|
247
|
+
);
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const renderRuntimePanel = (m) => {
|
|
251
|
+
const r = m.runtime || {};
|
|
252
|
+
return panel(
|
|
253
|
+
'tick',
|
|
254
|
+
'Simulation',
|
|
255
|
+
html`
|
|
256
|
+
<div class="grid-2">
|
|
257
|
+
${kv('Tick rate', `${r.tick_rate_hz || 0} Hz`)} ${kv('Snapshot rate', `${r.snapshot_rate_hz || 0} Hz`)}
|
|
258
|
+
${kv('Tick #', formatNumber(r.current_tick))}
|
|
259
|
+
${kv('Tick duration', `${(r.tick_duration_ms || 0).toFixed(2)} ms`)}
|
|
260
|
+
${kv('AOI radius', `${(r.aoi_radius || 0).toFixed(1)}`)} ${kv('GOMAXPROCS', r.gomaxprocs || r.num_cpu || 0)}
|
|
261
|
+
</div>
|
|
262
|
+
`,
|
|
263
|
+
);
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
const renderProcessPanel = (m) => {
|
|
267
|
+
const r = m.runtime || {};
|
|
268
|
+
return panel(
|
|
269
|
+
'cpu',
|
|
270
|
+
'Process',
|
|
271
|
+
html`
|
|
272
|
+
<div class="grid-2">
|
|
273
|
+
${kv('Go version', r.go_version || '—')} ${kv('Goroutines', formatNumber(r.num_goroutine))}
|
|
274
|
+
${kv('Heap alloc', `${formatNumber(r.heap_alloc_mb)} MiB`)}
|
|
275
|
+
${kv('Heap sys', `${formatNumber(r.heap_sys_mb)} MiB`)} ${kv('GC cycles', formatNumber(r.num_gc))}
|
|
276
|
+
${kv('CPU cores', r.num_cpu || 0)}
|
|
277
|
+
</div>
|
|
278
|
+
`,
|
|
279
|
+
);
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
const renderWorkloadPanel = (m) => {
|
|
283
|
+
const w = m.workload || {};
|
|
284
|
+
const tone = LOAD_TONE[w.current_load] || 'err';
|
|
285
|
+
return panel(
|
|
286
|
+
'load',
|
|
287
|
+
'Workload',
|
|
288
|
+
html`
|
|
289
|
+
<div class="load-readout">
|
|
290
|
+
<div class="load-pct ${toneClass(tone)}">${formatPercent(w.load_percentage)}%</div>
|
|
291
|
+
<div class="load-tag ${toneClass(tone)}">${(w.current_load || 'unknown').toUpperCase()}</div>
|
|
292
|
+
</div>
|
|
293
|
+
${meter('Entity capacity', m.entities?.total_entities || 0, w.max_entity_capacity || 0, 'entities')}
|
|
294
|
+
${meter('Object layers', m.entities?.total_object_layers || 0, w.max_object_layers || 0, 'layers')}
|
|
295
|
+
`,
|
|
296
|
+
);
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
const renderWebsocketPanel = (m, snap) => {
|
|
300
|
+
const w = m.websocket || {};
|
|
301
|
+
const inRate = rateDiff(snap, '_msgIn');
|
|
302
|
+
const outRate = rateDiff(snap, '_msgOut');
|
|
303
|
+
const bInRate = rateDiff(snap, '_byIn');
|
|
304
|
+
const bOutRate = rateDiff(snap, '_byOut');
|
|
305
|
+
const errRate = rateDiff(snap, '_errTotal');
|
|
306
|
+
const errTone = errRate > 0.1 ? 'err' : (w.read_errors_total || 0) + (w.write_errors_total || 0) > 0 ? 'warn' : 'ok';
|
|
307
|
+
|
|
308
|
+
return panel(
|
|
309
|
+
'plug',
|
|
310
|
+
'WebSocket',
|
|
311
|
+
html`
|
|
312
|
+
<div class="grid-3">
|
|
313
|
+
${kv('Status', (w.status || '—').toUpperCase(), w.status === 'running' ? 'ok' : 'warn')}
|
|
314
|
+
${kv('Active', formatNumber(w.active_connections))} ${kv('Uptime', formatUptime(w.uptime_sec))}
|
|
315
|
+
</div>
|
|
316
|
+
<table class="grid-table">
|
|
317
|
+
<thead>
|
|
318
|
+
<tr>
|
|
319
|
+
<th></th>
|
|
320
|
+
<th>RATE / s</th>
|
|
321
|
+
<th>TOTAL</th>
|
|
322
|
+
</tr>
|
|
323
|
+
</thead>
|
|
324
|
+
<tbody>
|
|
325
|
+
<tr>
|
|
326
|
+
<th>${icon('down')} Messages in</th>
|
|
327
|
+
<td>${formatRate(inRate, 'msg/s')}</td>
|
|
328
|
+
<td>${formatNumber(w.messages_in_total)}</td>
|
|
329
|
+
</tr>
|
|
330
|
+
<tr>
|
|
331
|
+
<th>${icon('up')} Messages out</th>
|
|
332
|
+
<td>${formatRate(outRate, 'msg/s')}</td>
|
|
333
|
+
<td>${formatNumber(w.messages_out_total)}</td>
|
|
334
|
+
</tr>
|
|
335
|
+
<tr>
|
|
336
|
+
<th>${icon('down')} Bytes in</th>
|
|
337
|
+
<td>${formatBytes(bInRate)}/s</td>
|
|
338
|
+
<td>${formatBytes(w.bytes_in_total)}</td>
|
|
339
|
+
</tr>
|
|
340
|
+
<tr>
|
|
341
|
+
<th>${icon('up')} Bytes out</th>
|
|
342
|
+
<td>${formatBytes(bOutRate)}/s</td>
|
|
343
|
+
<td>${formatBytes(w.bytes_out_total)}</td>
|
|
344
|
+
</tr>
|
|
345
|
+
<tr class="${toneClass(errTone)}">
|
|
346
|
+
<th>${icon('alert')} Errors</th>
|
|
347
|
+
<td>${formatRate(errRate, 'err/s')}</td>
|
|
348
|
+
<td>${formatNumber((w.read_errors_total || 0) + (w.write_errors_total || 0))}</td>
|
|
349
|
+
</tr>
|
|
350
|
+
<tr>
|
|
351
|
+
<th>${icon('users')} Connects</th>
|
|
352
|
+
<td>—</td>
|
|
353
|
+
<td>${formatNumber(w.connects_total)}</td>
|
|
354
|
+
</tr>
|
|
355
|
+
<tr>
|
|
356
|
+
<th>${icon('users')} Disconnects</th>
|
|
357
|
+
<td>—</td>
|
|
358
|
+
<td>${formatNumber(w.disconnects_total)}</td>
|
|
359
|
+
</tr>
|
|
360
|
+
</tbody>
|
|
361
|
+
</table>
|
|
362
|
+
`,
|
|
363
|
+
);
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
const renderEntitiesPanel = (m) => {
|
|
367
|
+
const e = m.entities || {};
|
|
368
|
+
// Stable type → icon mapping. Keys mirror the closed enum the API
|
|
369
|
+
// emits in entities_by_type; an unknown key falls back to the
|
|
370
|
+
// generic cube glyph.
|
|
371
|
+
const typeIcon = {
|
|
372
|
+
player: 'users',
|
|
373
|
+
bot: 'cpu',
|
|
374
|
+
floor: 'map',
|
|
375
|
+
obstacle: 'cube',
|
|
376
|
+
foreground: 'stack',
|
|
377
|
+
portal: 'plug',
|
|
378
|
+
resource: 'stack',
|
|
379
|
+
};
|
|
380
|
+
const rows = (e.entities_by_type || [])
|
|
381
|
+
.map(
|
|
382
|
+
(et) => html`
|
|
383
|
+
<tr class="${et.count === 0 ? 'muted' : ''}">
|
|
384
|
+
<th>${icon(typeIcon[et.type] || 'cube')} ${et.type}</th>
|
|
385
|
+
<td>${formatNumber(et.count)}</td>
|
|
386
|
+
<td>${formatNumber(et.active_object_layers)}</td>
|
|
387
|
+
<td>${formatNumber(et.total_object_layers)}</td>
|
|
388
|
+
</tr>
|
|
389
|
+
`,
|
|
390
|
+
)
|
|
391
|
+
.join('');
|
|
392
|
+
return panel(
|
|
393
|
+
'cube',
|
|
394
|
+
'Entities',
|
|
395
|
+
html`
|
|
396
|
+
<div class="grid-3">
|
|
397
|
+
${kv('Total', formatNumber(e.total_entities))} ${kv('Active layers', formatNumber(e.active_object_layers))}
|
|
398
|
+
${kv('Avg layers/entity', formatPercent(e.avg_object_layers_per_entity))}
|
|
399
|
+
</div>
|
|
400
|
+
<table class="grid-table">
|
|
401
|
+
<thead>
|
|
402
|
+
<tr>
|
|
403
|
+
<th>TYPE</th>
|
|
404
|
+
<th>COUNT</th>
|
|
405
|
+
<th>ACTIVE</th>
|
|
406
|
+
<th>LAYERS</th>
|
|
407
|
+
</tr>
|
|
408
|
+
</thead>
|
|
409
|
+
<tbody>
|
|
410
|
+
${rows || `<tr><td colspan="4" class="muted">no entities loaded</td></tr>`}
|
|
411
|
+
</tbody>
|
|
412
|
+
</table>
|
|
413
|
+
`,
|
|
414
|
+
);
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
const renderMapsPanel = (m) => {
|
|
418
|
+
const maps = m.maps || [];
|
|
419
|
+
if (maps.length === 0) {
|
|
420
|
+
return panel('map', 'Maps', `<div class="muted center">no maps loaded</div>`);
|
|
421
|
+
}
|
|
422
|
+
const rows = maps
|
|
423
|
+
.map(
|
|
424
|
+
(mp) => html`
|
|
425
|
+
<tr>
|
|
426
|
+
<th>${icon('map')} ${mp.map_code}</th>
|
|
427
|
+
<td>${mp.grid_w}×${mp.grid_h}</td>
|
|
428
|
+
<td class="${mp.players > 0 ? 'tone-ok' : ''}">${formatNumber(mp.players)}</td>
|
|
429
|
+
<td>${formatNumber(mp.bots)}</td>
|
|
430
|
+
<td>${formatNumber(mp.floors)}</td>
|
|
431
|
+
<td>${formatNumber(mp.obstacles)}</td>
|
|
432
|
+
<td>${formatNumber(mp.foregrounds)}</td>
|
|
433
|
+
<td>${formatNumber(mp.portals)}</td>
|
|
434
|
+
<td>${formatNumber(mp.resources)}</td>
|
|
435
|
+
<td><strong>${formatNumber(mp.total_entities)}</strong></td>
|
|
436
|
+
</tr>
|
|
437
|
+
`,
|
|
438
|
+
)
|
|
439
|
+
.join('');
|
|
440
|
+
return panel(
|
|
441
|
+
'map',
|
|
442
|
+
'Maps',
|
|
443
|
+
html`
|
|
444
|
+
<table class="grid-table dense">
|
|
445
|
+
<thead>
|
|
446
|
+
<tr>
|
|
447
|
+
<th>CODE</th>
|
|
448
|
+
<th>GRID</th>
|
|
449
|
+
<th>PLY</th>
|
|
450
|
+
<th>BOT</th>
|
|
451
|
+
<th>FLR</th>
|
|
452
|
+
<th>OBS</th>
|
|
453
|
+
<th>FG</th>
|
|
454
|
+
<th>PRT</th>
|
|
455
|
+
<th>RES</th>
|
|
456
|
+
<th>TOTAL</th>
|
|
457
|
+
</tr>
|
|
458
|
+
</thead>
|
|
459
|
+
<tbody>
|
|
460
|
+
${rows}
|
|
461
|
+
</tbody>
|
|
462
|
+
</table>
|
|
463
|
+
`,
|
|
464
|
+
`${maps.length} map${maps.length === 1 ? '' : 's'}`,
|
|
465
|
+
);
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
const renderDashboard = (m) => {
|
|
469
|
+
// Snapshot the throughput counters into rate-tracker shape so the
|
|
470
|
+
// rate diffs are stable across panel re-renders.
|
|
471
|
+
const snap = {
|
|
472
|
+
_ts: Date.now(),
|
|
473
|
+
_msgIn: m.websocket?.messages_in_total || 0,
|
|
474
|
+
_msgOut: m.websocket?.messages_out_total || 0,
|
|
475
|
+
_byIn: m.websocket?.bytes_in_total || 0,
|
|
476
|
+
_byOut: m.websocket?.bytes_out_total || 0,
|
|
477
|
+
_errTotal: (m.websocket?.read_errors_total || 0) + (m.websocket?.write_errors_total || 0),
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
const body = html`
|
|
481
|
+
<main class="dash">
|
|
482
|
+
<header class="dash-head">
|
|
483
|
+
<div class="brand">
|
|
484
|
+
<span class="brand-emblem"><img class="brand-logo" src="${ICON_BASE}cyberia-white.png" alt="Cyberia" /></span>
|
|
485
|
+
<span class="brand-text">CYBERIA SERVER</span>
|
|
486
|
+
</div>
|
|
487
|
+
<nav class="dash-nav">
|
|
488
|
+
<a href="${apiUrl('/api/v1/docs')}">${icon('doc')}<span>API docs</span></a>
|
|
489
|
+
<a href="${apiUrl('/api/v1/openapi.json')}">${icon('doc')}<span>openapi.json</span></a>
|
|
490
|
+
<a href="${apiUrl('/api/v1/postman.json')}" download>${icon('doc')}<span>postman</span></a>
|
|
491
|
+
${themeToggle()}
|
|
492
|
+
</nav>
|
|
493
|
+
</header>
|
|
494
|
+
<section class="grid-12">
|
|
495
|
+
<div class="col-4">${renderHealthPanel(m)}</div>
|
|
496
|
+
<div class="col-4">${renderRuntimePanel(m)}</div>
|
|
497
|
+
<div class="col-4">${renderProcessPanel(m)}</div>
|
|
498
|
+
<div class="col-4">${renderWorkloadPanel(m)}</div>
|
|
499
|
+
<div class="col-8">${renderWebsocketPanel(m, snap)}</div>
|
|
500
|
+
<div class="col-6">${renderEntitiesPanel(m)}</div>
|
|
501
|
+
<div class="col-6">${renderMapsPanel(m)}</div>
|
|
502
|
+
</section>
|
|
503
|
+
<footer class="dash-foot">
|
|
504
|
+
<span>POLL ${POLL_INTERVAL_MS} ms</span>
|
|
505
|
+
<span>RFC 9457 problem+json on error</span>
|
|
506
|
+
<span>v${(window.renderPayload && window.renderPayload.version) || '0.0.0'}</span>
|
|
507
|
+
</footer>
|
|
508
|
+
</main>
|
|
509
|
+
`;
|
|
510
|
+
|
|
511
|
+
setHTML('.dashboard-content', body);
|
|
512
|
+
rateUpdate(snap);
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
// ── Fetch loop ─────────────────────────────────────────────────────────────
|
|
516
|
+
|
|
517
|
+
const renderError = (status, detail) => {
|
|
518
|
+
setHTML(
|
|
519
|
+
'.dashboard-content',
|
|
520
|
+
html`
|
|
521
|
+
<div class="dash-error">
|
|
522
|
+
<div class="dash-error-tag">${icon('alert')} HTTP ${status}</div>
|
|
523
|
+
<div class="dash-error-body">${detail}</div>
|
|
524
|
+
<div class="dash-error-foot">retrying in ${POLL_INTERVAL_MS / 1000}s</div>
|
|
525
|
+
</div>
|
|
526
|
+
`,
|
|
527
|
+
);
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
const fetchMetrics = async () => {
|
|
531
|
+
try {
|
|
532
|
+
const res = await fetch(apiUrl('/api/v1/metrics'), { headers: { Accept: 'application/json' } });
|
|
533
|
+
if (!res.ok) {
|
|
534
|
+
// RFC 9457: server returns problem+json with a stable `title`/`detail`.
|
|
535
|
+
let detail = res.statusText;
|
|
536
|
+
try {
|
|
537
|
+
const problem = await res.json();
|
|
538
|
+
detail = problem.detail || problem.title || detail;
|
|
539
|
+
} catch (_) {
|
|
540
|
+
// body wasn't JSON; ignore.
|
|
541
|
+
}
|
|
542
|
+
renderError(res.status, detail);
|
|
543
|
+
return;
|
|
544
|
+
}
|
|
545
|
+
const metrics = await res.json();
|
|
546
|
+
renderDashboard(metrics);
|
|
547
|
+
} catch (err) {
|
|
548
|
+
renderError('NET', String((err && err.message) || err));
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
const main = () => {
|
|
553
|
+
initTheme();
|
|
554
|
+
document.addEventListener('click', (event) => {
|
|
555
|
+
const toggle = event.target.closest && event.target.closest('.theme-toggle');
|
|
556
|
+
if (toggle) {
|
|
557
|
+
event.preventDefault();
|
|
558
|
+
toggleTheme();
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
append(
|
|
562
|
+
'body',
|
|
563
|
+
html`
|
|
564
|
+
<style>
|
|
565
|
+
@font-face {
|
|
566
|
+
font-family: 'Jersey 15';
|
|
567
|
+
font-style: normal;
|
|
568
|
+
font-weight: 400;
|
|
569
|
+
font-display: swap;
|
|
570
|
+
src: url('https://www.cyberiaonline.com/assets/fonts/Jersey15-Regular.ttf') format('truetype');
|
|
571
|
+
}
|
|
572
|
+
/* Dark is the default (no-JS and OS-dark). initTheme() may switch to
|
|
573
|
+
light before first paint; the toggle persists the choice. */
|
|
574
|
+
:root {
|
|
575
|
+
--bg: #0a0d12;
|
|
576
|
+
--bg-2: #11161e;
|
|
577
|
+
--bg-3: #161c25;
|
|
578
|
+
--fg: #d8dee9;
|
|
579
|
+
--fg-dim: #8a93a3;
|
|
580
|
+
--fg-muted: #5b6473;
|
|
581
|
+
--line: #2a3140;
|
|
582
|
+
--line-2: #1a1f2a;
|
|
583
|
+
--ok: #7ee787;
|
|
584
|
+
--warn: #f0b429;
|
|
585
|
+
--err: #ff6b6b;
|
|
586
|
+
--info: #c084fc;
|
|
587
|
+
--accent: #7dd3fc;
|
|
588
|
+
--scanline: rgba(255, 255, 255, 0.03);
|
|
589
|
+
--logo-tile: #ffffff00;
|
|
590
|
+
--brand-text: #f0b429;
|
|
591
|
+
}
|
|
592
|
+
:root[data-theme='light'] {
|
|
593
|
+
--bg: #e7e3d7;
|
|
594
|
+
--bg-2: #f3f0e7;
|
|
595
|
+
--bg-3: #e2ded0;
|
|
596
|
+
--fg: #20242c;
|
|
597
|
+
--fg-dim: #5a6270;
|
|
598
|
+
--fg-muted: #857f6f;
|
|
599
|
+
--line: #c3bca8;
|
|
600
|
+
--line-2: #d8d2c1;
|
|
601
|
+
--ok: #2f8f3e;
|
|
602
|
+
--warn: #a9710a;
|
|
603
|
+
--err: #c73838;
|
|
604
|
+
--info: #7c3aed;
|
|
605
|
+
--accent: #0e6f95;
|
|
606
|
+
--scanline: rgba(0, 0, 0, 0.045);
|
|
607
|
+
--logo-tile: #ffffff00;
|
|
608
|
+
--brand-text: #b68719;
|
|
609
|
+
}
|
|
610
|
+
* {
|
|
611
|
+
box-sizing: border-box;
|
|
612
|
+
}
|
|
613
|
+
.brand-text {
|
|
614
|
+
color: var(--brand-text);
|
|
615
|
+
}
|
|
616
|
+
html,
|
|
617
|
+
body {
|
|
618
|
+
margin: 0;
|
|
619
|
+
padding: 0;
|
|
620
|
+
background: var(--bg);
|
|
621
|
+
color: var(--fg);
|
|
622
|
+
font-family: 'Jersey 15', ui-monospace, 'IBM Plex Mono', Menlo, monospace;
|
|
623
|
+
font-size: 20px;
|
|
624
|
+
line-height: 1.3;
|
|
625
|
+
letter-spacing: 0.4px;
|
|
626
|
+
min-height: 100vh;
|
|
627
|
+
font-variant-numeric: tabular-nums;
|
|
628
|
+
transition:
|
|
629
|
+
background 0.15s ease,
|
|
630
|
+
color 0.15s ease;
|
|
631
|
+
}
|
|
632
|
+
body::before {
|
|
633
|
+
content: '';
|
|
634
|
+
position: fixed;
|
|
635
|
+
inset: 0;
|
|
636
|
+
pointer-events: none;
|
|
637
|
+
background-image: repeating-linear-gradient(
|
|
638
|
+
to bottom,
|
|
639
|
+
var(--scanline) 0,
|
|
640
|
+
var(--scanline) 1px,
|
|
641
|
+
transparent 1px,
|
|
642
|
+
transparent 3px
|
|
643
|
+
);
|
|
644
|
+
z-index: 1;
|
|
645
|
+
}
|
|
646
|
+
.icon {
|
|
647
|
+
width: 15px;
|
|
648
|
+
height: 15px;
|
|
649
|
+
vertical-align: -2px;
|
|
650
|
+
margin-right: 6px;
|
|
651
|
+
}
|
|
652
|
+
a {
|
|
653
|
+
color: var(--accent);
|
|
654
|
+
text-decoration: none;
|
|
655
|
+
}
|
|
656
|
+
a:hover {
|
|
657
|
+
color: var(--fg);
|
|
658
|
+
}
|
|
659
|
+
.dash {
|
|
660
|
+
position: relative;
|
|
661
|
+
z-index: 2;
|
|
662
|
+
max-width: 1440px;
|
|
663
|
+
margin: 0 auto;
|
|
664
|
+
padding: 16px 20px 32px;
|
|
665
|
+
}
|
|
666
|
+
.dash-head {
|
|
667
|
+
display: flex;
|
|
668
|
+
align-items: center;
|
|
669
|
+
justify-content: space-between;
|
|
670
|
+
gap: 16px;
|
|
671
|
+
border: 2px solid var(--line);
|
|
672
|
+
background: var(--bg-2);
|
|
673
|
+
padding: 10px 16px;
|
|
674
|
+
margin-bottom: 16px;
|
|
675
|
+
}
|
|
676
|
+
.brand {
|
|
677
|
+
display: flex;
|
|
678
|
+
align-items: center;
|
|
679
|
+
gap: 12px;
|
|
680
|
+
font-family: 'Jersey 15', ui-monospace, monospace;
|
|
681
|
+
font-size: 24px;
|
|
682
|
+
letter-spacing: 3px;
|
|
683
|
+
color: var(--accent);
|
|
684
|
+
}
|
|
685
|
+
.brand-emblem {
|
|
686
|
+
display: inline-flex;
|
|
687
|
+
align-items: center;
|
|
688
|
+
justify-content: center;
|
|
689
|
+
width: 34px;
|
|
690
|
+
height: 34px;
|
|
691
|
+
background: var(--logo-tile);
|
|
692
|
+
border: 2px solid var(--line);
|
|
693
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
|
|
694
|
+
}
|
|
695
|
+
.brand-logo {
|
|
696
|
+
width: 24px;
|
|
697
|
+
height: 24px;
|
|
698
|
+
display: block;
|
|
699
|
+
}
|
|
700
|
+
.dash-nav {
|
|
701
|
+
display: flex;
|
|
702
|
+
gap: 8px;
|
|
703
|
+
flex-wrap: wrap;
|
|
704
|
+
}
|
|
705
|
+
.dash-nav a {
|
|
706
|
+
display: inline-flex;
|
|
707
|
+
align-items: center;
|
|
708
|
+
padding: 4px 10px;
|
|
709
|
+
border: 2px solid var(--line);
|
|
710
|
+
background: var(--bg-3);
|
|
711
|
+
color: var(--fg);
|
|
712
|
+
font-size: 16px;
|
|
713
|
+
letter-spacing: 1px;
|
|
714
|
+
text-transform: uppercase;
|
|
715
|
+
}
|
|
716
|
+
.dash-nav a:hover {
|
|
717
|
+
border-color: var(--accent);
|
|
718
|
+
color: var(--accent);
|
|
719
|
+
}
|
|
720
|
+
.theme-toggle {
|
|
721
|
+
display: inline-flex;
|
|
722
|
+
align-items: center;
|
|
723
|
+
gap: 6px;
|
|
724
|
+
padding: 4px 10px;
|
|
725
|
+
border: 2px solid var(--line);
|
|
726
|
+
background: var(--bg-3);
|
|
727
|
+
color: var(--fg);
|
|
728
|
+
font-family: 'Jersey 15', ui-monospace, monospace;
|
|
729
|
+
font-size: 16px;
|
|
730
|
+
letter-spacing: 1px;
|
|
731
|
+
text-transform: uppercase;
|
|
732
|
+
cursor: pointer;
|
|
733
|
+
}
|
|
734
|
+
.theme-toggle:hover {
|
|
735
|
+
border-color: var(--accent);
|
|
736
|
+
color: var(--accent);
|
|
737
|
+
}
|
|
738
|
+
.theme-toggle .icon {
|
|
739
|
+
width: 16px;
|
|
740
|
+
height: 16px;
|
|
741
|
+
margin-right: 0;
|
|
742
|
+
}
|
|
743
|
+
.theme-toggle-label {
|
|
744
|
+
min-width: 42px;
|
|
745
|
+
text-align: left;
|
|
746
|
+
}
|
|
747
|
+
.grid-12 {
|
|
748
|
+
display: grid;
|
|
749
|
+
grid-template-columns: repeat(12, 1fr);
|
|
750
|
+
gap: 12px;
|
|
751
|
+
}
|
|
752
|
+
.col-4 {
|
|
753
|
+
grid-column: span 4;
|
|
754
|
+
}
|
|
755
|
+
.col-6 {
|
|
756
|
+
grid-column: span 6;
|
|
757
|
+
}
|
|
758
|
+
.col-8 {
|
|
759
|
+
grid-column: span 8;
|
|
760
|
+
}
|
|
761
|
+
@media (max-width: 1100px) {
|
|
762
|
+
.col-4,
|
|
763
|
+
.col-6,
|
|
764
|
+
.col-8 {
|
|
765
|
+
grid-column: span 12;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
.panel {
|
|
769
|
+
border: 2px solid var(--line);
|
|
770
|
+
background: var(--bg-2);
|
|
771
|
+
display: flex;
|
|
772
|
+
flex-direction: column;
|
|
773
|
+
min-height: 100%;
|
|
774
|
+
}
|
|
775
|
+
.panel-head {
|
|
776
|
+
display: flex;
|
|
777
|
+
align-items: center;
|
|
778
|
+
justify-content: space-between;
|
|
779
|
+
padding: 8px 12px;
|
|
780
|
+
border-bottom: 2px solid var(--line);
|
|
781
|
+
background: var(--bg-3);
|
|
782
|
+
}
|
|
783
|
+
.panel-title {
|
|
784
|
+
margin: 0;
|
|
785
|
+
font-family: 'Jersey 15', ui-monospace, monospace;
|
|
786
|
+
font-size: 15px;
|
|
787
|
+
letter-spacing: 2px;
|
|
788
|
+
color: var(--fg);
|
|
789
|
+
text-transform: uppercase;
|
|
790
|
+
display: flex;
|
|
791
|
+
align-items: center;
|
|
792
|
+
}
|
|
793
|
+
.panel-meta {
|
|
794
|
+
font-size: 13px;
|
|
795
|
+
color: var(--fg-muted);
|
|
796
|
+
letter-spacing: 1px;
|
|
797
|
+
}
|
|
798
|
+
.panel-body {
|
|
799
|
+
padding: 12px;
|
|
800
|
+
display: flex;
|
|
801
|
+
flex-direction: column;
|
|
802
|
+
gap: 12px;
|
|
803
|
+
flex: 1;
|
|
804
|
+
}
|
|
805
|
+
.kv {
|
|
806
|
+
display: flex;
|
|
807
|
+
justify-content: space-between;
|
|
808
|
+
padding: 4px 6px;
|
|
809
|
+
background: var(--bg-3);
|
|
810
|
+
border: 1px solid var(--line-2);
|
|
811
|
+
}
|
|
812
|
+
.kv-label {
|
|
813
|
+
color: var(--fg-dim);
|
|
814
|
+
font-size: 14px;
|
|
815
|
+
text-transform: uppercase;
|
|
816
|
+
letter-spacing: 1px;
|
|
817
|
+
}
|
|
818
|
+
.kv-value {
|
|
819
|
+
color: var(--fg);
|
|
820
|
+
font-weight: 700;
|
|
821
|
+
font-size: 16px;
|
|
822
|
+
}
|
|
823
|
+
.grid-2 {
|
|
824
|
+
display: grid;
|
|
825
|
+
grid-template-columns: 1fr 1fr;
|
|
826
|
+
gap: 6px;
|
|
827
|
+
}
|
|
828
|
+
.grid-3 {
|
|
829
|
+
display: grid;
|
|
830
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
831
|
+
gap: 6px;
|
|
832
|
+
}
|
|
833
|
+
.meter {
|
|
834
|
+
background: var(--bg-3);
|
|
835
|
+
border: 1px solid var(--line-2);
|
|
836
|
+
padding: 6px 8px;
|
|
837
|
+
}
|
|
838
|
+
.meter-head,
|
|
839
|
+
.meter-foot {
|
|
840
|
+
display: flex;
|
|
841
|
+
justify-content: space-between;
|
|
842
|
+
font-size: 14px;
|
|
843
|
+
}
|
|
844
|
+
.meter-label {
|
|
845
|
+
color: var(--fg-dim);
|
|
846
|
+
text-transform: uppercase;
|
|
847
|
+
letter-spacing: 1px;
|
|
848
|
+
}
|
|
849
|
+
.meter-value {
|
|
850
|
+
font-weight: 700;
|
|
851
|
+
}
|
|
852
|
+
.meter-bar {
|
|
853
|
+
height: 10px;
|
|
854
|
+
margin: 4px 0;
|
|
855
|
+
background: var(--bg);
|
|
856
|
+
border: 1px solid var(--line);
|
|
857
|
+
position: relative;
|
|
858
|
+
overflow: hidden;
|
|
859
|
+
}
|
|
860
|
+
.meter-fill {
|
|
861
|
+
height: 100%;
|
|
862
|
+
background-image: repeating-linear-gradient(
|
|
863
|
+
45deg,
|
|
864
|
+
currentColor 0,
|
|
865
|
+
currentColor 4px,
|
|
866
|
+
rgba(0, 0, 0, 0.25) 4px,
|
|
867
|
+
rgba(0, 0, 0, 0.25) 8px
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
.meter-foot {
|
|
871
|
+
color: var(--fg-muted);
|
|
872
|
+
font-size: 13px;
|
|
873
|
+
}
|
|
874
|
+
.grid-table {
|
|
875
|
+
width: 100%;
|
|
876
|
+
border-collapse: collapse;
|
|
877
|
+
font-size: 15px;
|
|
878
|
+
}
|
|
879
|
+
.grid-table th,
|
|
880
|
+
.grid-table td {
|
|
881
|
+
padding: 4px 6px;
|
|
882
|
+
text-align: right;
|
|
883
|
+
border-bottom: 1px solid var(--line-2);
|
|
884
|
+
}
|
|
885
|
+
.grid-table thead th {
|
|
886
|
+
color: var(--fg-muted);
|
|
887
|
+
text-align: right;
|
|
888
|
+
text-transform: uppercase;
|
|
889
|
+
letter-spacing: 1px;
|
|
890
|
+
font-size: 12px;
|
|
891
|
+
border-bottom: 2px solid var(--line);
|
|
892
|
+
}
|
|
893
|
+
.grid-table tbody th {
|
|
894
|
+
text-align: left;
|
|
895
|
+
color: var(--fg-dim);
|
|
896
|
+
font-weight: 400;
|
|
897
|
+
text-transform: capitalize;
|
|
898
|
+
}
|
|
899
|
+
.grid-table.dense th,
|
|
900
|
+
.grid-table.dense td {
|
|
901
|
+
padding: 3px 6px;
|
|
902
|
+
font-size: 14px;
|
|
903
|
+
}
|
|
904
|
+
.health-block {
|
|
905
|
+
display: flex;
|
|
906
|
+
align-items: center;
|
|
907
|
+
gap: 14px;
|
|
908
|
+
padding: 8px 4px;
|
|
909
|
+
}
|
|
910
|
+
.health-dot {
|
|
911
|
+
width: 16px;
|
|
912
|
+
height: 16px;
|
|
913
|
+
border: 2px solid currentColor;
|
|
914
|
+
background: currentColor;
|
|
915
|
+
flex: 0 0 16px;
|
|
916
|
+
animation: blink 1.6s steps(2, end) infinite;
|
|
917
|
+
}
|
|
918
|
+
@keyframes blink {
|
|
919
|
+
0%,
|
|
920
|
+
60% {
|
|
921
|
+
opacity: 1;
|
|
922
|
+
}
|
|
923
|
+
70%,
|
|
924
|
+
100% {
|
|
925
|
+
opacity: 0.35;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
.health-status {
|
|
929
|
+
font-family: 'Jersey 15', ui-monospace, monospace;
|
|
930
|
+
font-size: 20px;
|
|
931
|
+
letter-spacing: 2px;
|
|
932
|
+
}
|
|
933
|
+
.health-desc {
|
|
934
|
+
font-size: 14px;
|
|
935
|
+
color: var(--fg-dim);
|
|
936
|
+
margin-top: 4px;
|
|
937
|
+
}
|
|
938
|
+
.load-readout {
|
|
939
|
+
display: flex;
|
|
940
|
+
align-items: baseline;
|
|
941
|
+
gap: 12px;
|
|
942
|
+
padding: 4px 6px;
|
|
943
|
+
background: var(--bg-3);
|
|
944
|
+
border: 1px solid var(--line-2);
|
|
945
|
+
}
|
|
946
|
+
.load-pct {
|
|
947
|
+
font-family: 'Jersey 15', ui-monospace, monospace;
|
|
948
|
+
font-size: 32px;
|
|
949
|
+
letter-spacing: 1px;
|
|
950
|
+
}
|
|
951
|
+
.load-tag {
|
|
952
|
+
font-family: 'Jersey 15', ui-monospace, monospace;
|
|
953
|
+
font-size: 14px;
|
|
954
|
+
letter-spacing: 2px;
|
|
955
|
+
padding: 2px 8px;
|
|
956
|
+
border: 2px solid currentColor;
|
|
957
|
+
}
|
|
958
|
+
.dash-foot {
|
|
959
|
+
margin-top: 16px;
|
|
960
|
+
padding: 8px 16px;
|
|
961
|
+
border: 2px solid var(--line);
|
|
962
|
+
background: var(--bg-2);
|
|
963
|
+
display: flex;
|
|
964
|
+
justify-content: space-between;
|
|
965
|
+
font-size: 14px;
|
|
966
|
+
color: var(--fg-muted);
|
|
967
|
+
letter-spacing: 1px;
|
|
968
|
+
}
|
|
969
|
+
.dash-error {
|
|
970
|
+
margin: 80px auto;
|
|
971
|
+
max-width: 520px;
|
|
972
|
+
border: 2px solid var(--err);
|
|
973
|
+
background: var(--bg-2);
|
|
974
|
+
color: var(--err);
|
|
975
|
+
padding: 24px;
|
|
976
|
+
text-align: center;
|
|
977
|
+
}
|
|
978
|
+
.dash-error-tag {
|
|
979
|
+
font-family: 'Jersey 15', ui-monospace, monospace;
|
|
980
|
+
font-size: 18px;
|
|
981
|
+
letter-spacing: 2px;
|
|
982
|
+
margin-bottom: 12px;
|
|
983
|
+
}
|
|
984
|
+
.dash-error-body {
|
|
985
|
+
color: var(--fg);
|
|
986
|
+
font-size: 16px;
|
|
987
|
+
}
|
|
988
|
+
.dash-error-foot {
|
|
989
|
+
color: var(--fg-muted);
|
|
990
|
+
font-size: 13px;
|
|
991
|
+
margin-top: 12px;
|
|
992
|
+
}
|
|
993
|
+
.muted {
|
|
994
|
+
color: var(--fg-muted);
|
|
995
|
+
}
|
|
996
|
+
.center {
|
|
997
|
+
text-align: center;
|
|
998
|
+
}
|
|
999
|
+
.tone-ok {
|
|
1000
|
+
color: var(--ok);
|
|
1001
|
+
}
|
|
1002
|
+
.tone-warn {
|
|
1003
|
+
color: var(--warn);
|
|
1004
|
+
}
|
|
1005
|
+
.tone-err {
|
|
1006
|
+
color: var(--err);
|
|
1007
|
+
}
|
|
1008
|
+
.tone-info {
|
|
1009
|
+
color: var(--info);
|
|
1010
|
+
}
|
|
1011
|
+
.tone-muted {
|
|
1012
|
+
color: var(--fg-muted);
|
|
1013
|
+
}
|
|
1014
|
+
</style>
|
|
1015
|
+
<div class="dashboard-content"></div>
|
|
1016
|
+
`,
|
|
1017
|
+
);
|
|
1018
|
+
|
|
1019
|
+
fetchMetrics();
|
|
1020
|
+
setInterval(fetchMetrics, POLL_INTERVAL_MS);
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
SrrComponent = () =>
|
|
1024
|
+
html`<script>
|
|
1025
|
+
{
|
|
1026
|
+
const POLL_INTERVAL_MS = ${POLL_INTERVAL_MS};
|
|
1027
|
+
const s = ${s};
|
|
1028
|
+
const sa = ${sa};
|
|
1029
|
+
const append = ${append};
|
|
1030
|
+
const setHTML = ${setHTML};
|
|
1031
|
+
const basePath = ${basePath};
|
|
1032
|
+
const apiUrl = ${apiUrl};
|
|
1033
|
+
const pad = ${pad};
|
|
1034
|
+
const formatUptime = ${formatUptime};
|
|
1035
|
+
const formatNumber = ${formatNumber};
|
|
1036
|
+
const formatBytes = ${formatBytes};
|
|
1037
|
+
const formatRate = ${formatRate};
|
|
1038
|
+
const formatPercent = ${formatPercent};
|
|
1039
|
+
const HEALTH_TONE = ${JSON.stringify(HEALTH_TONE)};
|
|
1040
|
+
const LOAD_TONE = ${JSON.stringify(LOAD_TONE)};
|
|
1041
|
+
const toneClass = ${toneClass};
|
|
1042
|
+
const rateState = { prev: null, prevTs: 0 };
|
|
1043
|
+
const rateDiff = ${rateDiff};
|
|
1044
|
+
const rateUpdate = ${rateUpdate};
|
|
1045
|
+
const ICON_BASE = ${JSON.stringify(ICON_BASE)};
|
|
1046
|
+
const ICONS = ${JSON.stringify(ICONS)};
|
|
1047
|
+
const icon = ${icon};
|
|
1048
|
+
const THEME_KEY = ${JSON.stringify(THEME_KEY)};
|
|
1049
|
+
const currentTheme = ${currentTheme};
|
|
1050
|
+
const applyTheme = ${applyTheme};
|
|
1051
|
+
const initTheme = ${initTheme};
|
|
1052
|
+
const toggleTheme = ${toggleTheme};
|
|
1053
|
+
const themeToggle = ${themeToggle};
|
|
1054
|
+
const kv = ${kv};
|
|
1055
|
+
const meter = ${meter};
|
|
1056
|
+
const panel = ${panel};
|
|
1057
|
+
const renderHealthPanel = ${renderHealthPanel};
|
|
1058
|
+
const renderRuntimePanel = ${renderRuntimePanel};
|
|
1059
|
+
const renderProcessPanel = ${renderProcessPanel};
|
|
1060
|
+
const renderWorkloadPanel = ${renderWorkloadPanel};
|
|
1061
|
+
const renderWebsocketPanel = ${renderWebsocketPanel};
|
|
1062
|
+
const renderEntitiesPanel = ${renderEntitiesPanel};
|
|
1063
|
+
const renderMapsPanel = ${renderMapsPanel};
|
|
1064
|
+
const renderDashboard = ${renderDashboard};
|
|
1065
|
+
const renderError = ${renderError};
|
|
1066
|
+
const fetchMetrics = ${fetchMetrics};
|
|
1067
|
+
const main = ${main};
|
|
1068
|
+
window.onload = main;
|
|
1069
|
+
}
|
|
1070
|
+
</script>`;
|