Skip to content

Commit b13ec6b

Browse files
committed
Implement one user concurrent access for storylines
1 parent 6ab1b8b commit b13ec6b

File tree

9 files changed

+473
-86
lines changed

9 files changed

+473
-86
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
VITE_APP_API_URL=#{API_URL}#
2+
VITE_APP_SOCKET_URL=#{SOCKET_URL}#
23
VITE_APP_CURR_ENV=#{CURR_ENV}#
34
VITE_APP_NET_API_URL=#{NET_API_URL}#

server/index.js

Lines changed: 194 additions & 43 deletions
Large diffs are not rendered by default.

server/package-lock.json

Lines changed: 52 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
"decompress": "^4.2.1",
1717
"dotenv": "^16.3.1",
1818
"express": "^4.18.2",
19+
"express-ws": "^5.0.2",
1920
"formidable": "^2.1.2",
2021
"fs-extra": "^11.1.0",
2122
"moment": "^2.29.4",
2223
"path": "^0.12.7",
2324
"recursive-readdir": "^2.2.3",
24-
"simple-git": "^3.27.0"
25+
"simple-git": "^3.27.0",
26+
"uuid": "^11.0.3"
2527
}
2628
}

src/components/helpers/confirmation-modal.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class="flex justify-center items-center"
55
content-class="flex flex-col max-w-xl mx-4 p-4 bg-white dark:bg-gray-900 border dark:border-gray-700 rounded-lg space-y-2"
66
>
7-
<h2 slot="header" class="text-lg font-bold">{{ message }}</h2>
7+
<h2 slot="header" :class="messageClass ?? 'text-lg font-bold'">{{ message }}</h2>
88
<div class="w-full flex justify-end">
99
<button class="editor-button confirm-button hover:bg-gray-800" @click.stop="onOk">
1010
{{ $t('editor.confirm') }}
@@ -28,6 +28,7 @@ import { VueFinalModal } from 'vue-final-modal';
2828
export default class MetadataEditorV extends Vue {
2929
@Prop() message!: string;
3030
@Prop() name!: string;
31+
@Prop() messageClass?: string;
3132
3233
onOk(): void {
3334
this.$emit('ok');

0 commit comments

Comments
 (0)