feat(viewer): support editing chat messages
This commit is contained in:
parent
5921c3c1d0
commit
da6ce4cd6d
3 changed files with 24 additions and 17 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "powergrid-viewer",
|
||||
"version": "2.1.10",
|
||||
"version": "2.1.11",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/boardgamers/powergrid.git",
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
"tutorial:manifest": "node scripts/tutorial-manifest.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@boardgamers/protocol": "0.4.2",
|
||||
"@boardgamers/protocol": "0.5.0",
|
||||
"core-js": "^3.6.5",
|
||||
"lodash": "^4.17.19",
|
||||
"powergrid-engine": "workspace:../engine",
|
||||
|
|
|
|||
30
viewer/pnpm-lock.yaml
generated
30
viewer/pnpm-lock.yaml
generated
|
|
@ -1,12 +1,14 @@
|
|||
lockfileVersion: 5.4
|
||||
|
||||
specifiers:
|
||||
'@boardgamers/protocol': 0.4.2
|
||||
'@boardgamers/protocol': 0.5.0
|
||||
'@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
|
||||
|
|
@ -29,12 +31,10 @@ specifiers:
|
|||
vue-class-component: ^7.2.3
|
||||
vue-property-decorator: ^9.1.2
|
||||
vue-template-compiler: ^2.6.11
|
||||
'@types/node': 15.3.0
|
||||
'@types/webpack-env': 1.18.8
|
||||
zod: 4.6.4
|
||||
|
||||
dependencies:
|
||||
'@boardgamers/protocol': 0.4.2
|
||||
'@boardgamers/protocol': 0.5.0
|
||||
core-js: 3.12.1
|
||||
lodash: 4.17.21
|
||||
powergrid-engine: link:../engine
|
||||
|
|
@ -51,6 +51,8 @@ devDependencies:
|
|||
'@types/events': 3.0.0
|
||||
'@types/lodash': 4.14.169
|
||||
'@types/mocha': 5.2.7
|
||||
'@types/node': 15.3.0
|
||||
'@types/webpack-env': 1.18.8
|
||||
'@typescript-eslint/parser': 4.26.1_t2pndrslmzswfoo56qukh7j2xa
|
||||
'@vue/cli-plugin-babel': 4.4.6_wk3ecsakdzdntnoc6zjm4vkc6m
|
||||
'@vue/cli-plugin-typescript': 4.4.6_66ljlrl2sgzmqziwi3olz77yay
|
||||
|
|
@ -65,8 +67,6 @@ devDependencies:
|
|||
sass-loader: 8.0.2_sass@1.32.13
|
||||
typescript: 5.9.3
|
||||
vue-template-compiler: 2.6.12
|
||||
'@types/node': 15.3.0
|
||||
'@types/webpack-env': 1.18.8
|
||||
|
||||
packages:
|
||||
/@babel/code-frame/7.12.11:
|
||||
|
|
@ -1464,10 +1464,10 @@ packages:
|
|||
to-fast-properties: 2.0.0
|
||||
dev: true
|
||||
|
||||
/@boardgamers/protocol/0.4.2:
|
||||
/@boardgamers/protocol/0.5.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-dFWwj/uIR8LZuiFSPX++63f4Ivd3cG4JFFWCCObOu6u5RYw5GBT95rcSIiiWRLkBkXWKXgv3awQ/RMrAf+uFDQ==,
|
||||
integrity: sha512-9SjU0cSktwxeMLItCW5VmUeSFl3Kg965JkKFf+BKZBxR2a2dyFoMKE3RYN2+ZwrI6GNS1mA6Fki9HOHQnD2WRw==,
|
||||
}
|
||||
dependencies:
|
||||
zod: 4.6.4
|
||||
|
|
@ -1713,6 +1713,13 @@ packages:
|
|||
}
|
||||
dev: true
|
||||
|
||||
/@types/webpack-env/1.18.8:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-G9eAoJRMLjcvN4I08wB5I7YofOb/kaJNd5uoCMX+LbKXTPCF+ZIHuqTnFaK9Jz1rgs035f9JUPUhNFtqgucy/A==,
|
||||
}
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/parser/4.26.1_t2pndrslmzswfoo56qukh7j2xa:
|
||||
resolution:
|
||||
{
|
||||
|
|
@ -13155,10 +13162,3 @@ packages:
|
|||
integrity: sha512-AXSD6hvGdvRjajG/l1cC+d6IrhH+sjmPKtYeQdJIK8MFJl3LyClzS+o/YsVC+zQZPupAaeH5skwwm8YqYH7BqA==,
|
||||
}
|
||||
dev: false
|
||||
|
||||
/@types/webpack-env/1.18.8:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-G9eAoJRMLjcvN4I08wB5I7YofOb/kaJNd5uoCMX+LbKXTPCF+ZIHuqTnFaK9Jz1rgs035f9JUPUhNFtqgucy/A==,
|
||||
}
|
||||
dev: true
|
||||
|
|
|
|||
|
|
@ -32,12 +32,19 @@ export function mountGameChat(emitter: ViewerEmitter<any, any>, host: Element):
|
|||
.bgs-game-chat .chat-mention{height:auto;padding:0 2px;border:0;background:transparent;color:inherit;font:inherit;font-weight:bold;text-decoration:underline}
|
||||
.bgs-game-chat article a{color:inherit;text-decoration:underline}
|
||||
.bgs-game-chat .chat-translate{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:24px;height:24px;min-height:0;padding:4px;margin-left:3px;border:0;background:transparent;color:inherit;opacity:.55}
|
||||
.bgs-game-chat .chat-edit{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:24px;height:24px;min-height:0;padding:4px;margin-left:3px;border:0;background:transparent;color:inherit;opacity:.55}
|
||||
.bgs-game-chat .chat-translate:hover,.bgs-game-chat .chat-translate:focus-visible{opacity:1}
|
||||
.bgs-game-chat .chat-edit:hover,.bgs-game-chat .chat-edit:focus-visible{opacity:1}
|
||||
.bgs-game-chat .chat-translate[aria-pressed="true"]{opacity:1;background:#75818d26}
|
||||
.bgs-game-chat .chat-edit[aria-pressed="true"]{opacity:1;background:#75818d26}
|
||||
.bgs-game-chat .chat-translate[aria-busy="true"]{background:transparent;cursor:wait}
|
||||
.bgs-game-chat .chat-edit[aria-busy="true"]{background:transparent;cursor:wait}
|
||||
.chat-suggestions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
|
||||
.chat-suggestions:empty{display:none}
|
||||
.chat-suggestions button[aria-pressed="true"]{outline:2px solid #527f89}
|
||||
.bgs-game-chat .chat-editing{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;opacity:.85;padding:3px 0;flex-shrink:0}
|
||||
.bgs-game-chat .chat-editing[hidden]{display:none}
|
||||
.bgs-game-chat .chat-edit-cancel{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:0;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
|
||||
.bgs-game-chat .chat-status{font-size:12px;margin-top:6px}
|
||||
.bgs-game-chat .chat-status:empty{display:none}
|
||||
.chat-shortcut{position:fixed;right:89px;bottom:max(17px,env(safe-area-inset-bottom));z-index:900;display:inline-flex;align-items:center;gap:7px;box-sizing:border-box;height:40px;padding:0 10px 0 13px;border:1px solid #6a8589;border-radius:20px;background:#263521;color:#fff;font:600 14px Arial,sans-serif;cursor:pointer;box-shadow:0 2px 6px #0003}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue