Moved tabletop characters to left side of the screen

This commit is contained in:
Thaum Rystra
2024-04-12 17:05:20 +02:00
parent 4793b34a55
commit 08640f2bf2
27 changed files with 496 additions and 1370 deletions

View File

@@ -2,15 +2,25 @@ import SimpleSchema from 'simpl-schema';
import '/imports/api/sharing/sharing';
import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS';
let SharingSchema = new SimpleSchema({
export interface Shared {
owner: string,
readers: string[],
writers: string[],
public: boolean,
readersCanCopy?: true,
}
const SharingSchema = new SimpleSchema({
owner: {
type: String,
regEx: SimpleSchema.RegEx.Id,
//@ts-expect-error index not defined
index: 1
},
readers: {
type: Array,
defaultValue: [],
//@ts-expect-error index not defined
index: 1,
maxCount: STORAGE_LIMITS.readersCount,
},
@@ -21,6 +31,7 @@ let SharingSchema = new SimpleSchema({
writers: {
type: Array,
defaultValue: [],
//@ts-expect-error index not defined
index: 1,
maxCount: STORAGE_LIMITS.writersCount,
},
@@ -31,6 +42,7 @@ let SharingSchema = new SimpleSchema({
public: {
type: Boolean,
defaultValue: false,
//@ts-expect-error index not defined
index: 1,
},
readersCanCopy: {