BGS lets the only human of a game against bots take back their last saved move (protocol 0.10.0 `undo:available` / `undo`). The board's Undo button offers it once the turn in progress has nothing left to undo locally, and never during replays, analyses or round planning, for spectators, or while a move is on its way. A double click on Undo cannot reach it. BGS then sends the earlier state. A committed state that takes back the player's own moves drops the turn buffer, a bid being edited, open dialogs, a hybrid plant's fuel choice and the bid dialled into the calculator. The label is translated in all 16 languages. Unit tests and the protocol browser smoke cover the control, and the development sandbox mimics BGS's undo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
71 lines
2.2 KiB
JSON
71 lines
2.2 KiB
JSON
{
|
|
"name": "powergrid-viewer",
|
|
"version": "2.3.5",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/boardgamers/powergrid.git",
|
|
"directory": "viewer"
|
|
},
|
|
"homepage": "https://github.com/boardgamers/powergrid#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/boardgamers/powergrid/issues"
|
|
},
|
|
"scripts": {
|
|
"serve": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
|
|
"build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
"test:unit": "vue-cli-service test:unit",
|
|
"package": "vue-cli-service build --target lib --name powergrid-viewer src/wrapper.ts && node ../scripts/check-bundle-size.mjs",
|
|
"prepublishOnly": "npm run package",
|
|
"test:browser": "node scripts/protocol-smoke.mjs",
|
|
"test:tutorial": "node --test tests/tutorial/lessons.cjs",
|
|
"test:tutorial:browser": "node scripts/tutorial-smoke.mjs",
|
|
"preview:tutorial": "node scripts/tutorial-preview.mjs",
|
|
"tutorial:manifest": "node scripts/tutorial-manifest.cjs"
|
|
},
|
|
"dependencies": {
|
|
"@boardgamers/protocol": "0.10.0",
|
|
"core-js": "^3.6.5",
|
|
"lodash": "^4.17.19",
|
|
"powergrid-engine": "workspace:../engine",
|
|
"regenerator-runtime": "^0.13.7",
|
|
"tslib": "^2.2.0",
|
|
"vue": "^2.6.11",
|
|
"vue-class-component": "^7.2.3",
|
|
"vue-property-decorator": "^9.1.2",
|
|
"zod": "4.6.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/assert": "^1.4.7",
|
|
"@types/chai": "^4.2.11",
|
|
"@types/events": "^3.0.0",
|
|
"@types/lodash": "^4.14.154",
|
|
"@types/mocha": "^5.2.4",
|
|
"@types/node": "15.3.0",
|
|
"@types/webpack-env": "1.18.8",
|
|
"@typescript-eslint/parser": "^4.26.1",
|
|
"@vue/cli-plugin-babel": "~4.4.0",
|
|
"@vue/cli-plugin-typescript": "~4.4.0",
|
|
"@vue/cli-plugin-unit-mocha": "~4.4.0",
|
|
"@vue/cli-service": "~4.4.0",
|
|
"@vue/test-utils": "^1.0.3",
|
|
"chai": "^4.1.2",
|
|
"eslint": "^7.28.0",
|
|
"eslint-plugin-vue": "^7.11.0",
|
|
"playwright": "1.62.1",
|
|
"sass": "^1.26.5",
|
|
"sass-loader": "^8.0.2",
|
|
"typescript": "^5.9.3",
|
|
"vue-template-compiler": "^2.6.11"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"dist/powergrid-viewer.umd.min.js",
|
|
"dist/powergrid-viewer.umd.min.locale-*.js",
|
|
"dist/powergrid-viewer.umd.min.geography-*.js",
|
|
"dist/powergrid-viewer.css",
|
|
"dist/img",
|
|
"dist/media",
|
|
"tsconfig.json",
|
|
"public/audio"
|
|
]
|
|
}
|