mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
Ever since we started bundling the app with webpack, there’s been less and less overlap between our ‘static’ directory (files belonging to the frontend app) and Django’s interpretation of the ‘static’ directory (files served directly to the web). Split the app out to its own ‘web’ directory outside of ‘static’, and remove all the custom collectstatic --ignore rules. This makes it much clearer what’s actually being served to the web, and what’s being bundled by webpack. It also shrinks the release tarball by 3%. Signed-off-by: Anders Kaseorg <anders@zulip.com>
72 lines
1.8 KiB
TypeScript
72 lines
1.8 KiB
TypeScript
// TODO/typescript: Move this to message_store
|
|
export type MatchedMessage = {
|
|
match_content?: string;
|
|
match_subject?: string;
|
|
};
|
|
|
|
// TODO/typescript: Move this to message_store
|
|
export type MessageType = "private" | "stream";
|
|
|
|
// TODO/typescript: Move this to message_store
|
|
export type RawMessage = {
|
|
sender_email: string;
|
|
stream_id: number;
|
|
subject: string;
|
|
type: MessageType;
|
|
} & MatchedMessage;
|
|
|
|
// TODO/typescript: Move this to message_store
|
|
export type Message = RawMessage & {
|
|
to_user_ids: string;
|
|
topic: string;
|
|
};
|
|
|
|
// TODO/typescript: Move this to server_events_dispatch
|
|
export type UserGroupUpdateEvent = {
|
|
id: number;
|
|
type: string;
|
|
group_id: number;
|
|
data: {
|
|
name?: string;
|
|
description?: string;
|
|
};
|
|
};
|
|
|
|
// TODO/typescript: Move this to server_events
|
|
export type TopicLink = {
|
|
text: string;
|
|
url: string;
|
|
};
|
|
|
|
// TODO/typescript: Move this to server_events
|
|
export type UpdateMessageEvent = {
|
|
id: number;
|
|
type: string;
|
|
user_id: number | null;
|
|
rendering_only: boolean;
|
|
message_id: number;
|
|
message_ids: number[];
|
|
flags: string[];
|
|
edit_timestamp: number;
|
|
stream_name?: string;
|
|
stream_id?: number;
|
|
new_stream_id?: number;
|
|
propagate_mode?: string;
|
|
orig_subject?: string;
|
|
subject?: string;
|
|
topic_links?: TopicLink[];
|
|
orig_content?: string;
|
|
orig_rendered_content?: string;
|
|
prev_rendered_content_version?: number;
|
|
content?: string;
|
|
rendered_content?: string;
|
|
is_me_message?: boolean;
|
|
// The server is still using subject.
|
|
// This will not be set until it gets fixed.
|
|
topic?: string;
|
|
};
|
|
|
|
// TODO/typescript: Move the User and Stream placeholder
|
|
// types to their appropriate modules.
|
|
export type User = Record<string, never>;
|