e0ec1c03e0
* Added create_at column for blocks * Populating created by * Added logic for storing created by * Added GetBlock by ID to store interface * Added creayed by and modified by properties * Added created by and modified by properties * Added lastmodifiedat property * Fixed existing webapp test * Added webapp unit tests * Added webapp unit tests * Added webapp unit tests * Adding server test * Added server tests * Fixed a bug causing created by to be set empty * Avodining timezone specific test behavior * Made cypress viewport bigger to avoid out-of-viewoport issues in multiple tests * Removed a leftover comment * Added updated at/by in table view * Added updated at in card view * Fixing sort * Fixed sorting of updated by * Fixed existing tests * Added table tests * Added cardTree fix * Fixed tests * Removed unused import * Update snapshots * Added a tamper attempt test * Removed some leftover debug code * Removed sending creator from client * Fixed lint error * Fixed a build issue * Avoided setting insert query params multiple times * Multiple minor review fixes * Fixed test
27 lines
645 B
TypeScript
27 lines
645 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import React from 'react'
|
|
|
|
const UserContext = React.createContext(undefined as IUser|undefined)
|
|
|
|
const WorkspaceUsersContext = React.createContext({
|
|
users: new Array<IUser>(),
|
|
usersById: new Map<string, IUser>(),
|
|
})
|
|
|
|
interface IUser {
|
|
id: string,
|
|
username: string,
|
|
email: string,
|
|
props: Record<string, any>,
|
|
createAt: number,
|
|
updateAt: number,
|
|
}
|
|
|
|
type WorkspaceUsers = {
|
|
users: Array<IUser>
|
|
usersById: Map<string, IUser>
|
|
}
|
|
|
|
export {IUser, UserContext, WorkspaceUsersContext, WorkspaceUsers}
|