zulip/web/shared/src/internal_url.js.flow
Anders Kaseorg c1675913a2 web: Move web app to ‘web’ directory.
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>
2023-02-23 16:04:17 -08:00

31 lines
709 B
Plaintext

/**
* @flow strict
*/
"use strict";
declare export function encodeHashComponent(str: string): string;
declare export function decodeHashComponent(str: string): string;
declare export function stream_id_to_slug(
stream_id: number,
maybe_get_stream_name: (id: number) => ?string,
): string;
declare export function encode_stream_id(
stream_id: number,
maybe_get_stream_name: (id: number) => ?string,
): string;
declare export function by_stream_url(
stream_id: number,
maybe_get_stream_name: (id: number) => ?string,
): string;
declare export function by_stream_topic_url(
stream_id: number,
topic: string,
maybe_get_stream_name: (id: number) => ?string,
): string;