Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

web: Move web app to ‘web’ directory.

Anders Kaseorgc1675913a214
diff --git a/.eslintignore b/.eslintignore
index 0edb2533ec8..f079026d774 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -4,11 +4,12 @@
/docs/_build
/static/generated
-/static/third
/static/webpack-bundles
/var/*
!/var/puppeteer
/var/puppeteer/*
!/var/puppeteer/test_credentials.d.ts
+/web/generated
+/web/third
/zulip-current-venv
/zulip-py3-venv
diff --git a/.eslintrc.json b/.eslintrc.json
index 13bd96a8c90..015961eb0f3 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -137,7 +137,7 @@
}
},
{
- "files": ["static/js/**"],
+ "files": ["web/src/**"],
"globals": {
"StripeCheckout": false
}
@@ -217,7 +217,7 @@
}
},
{
- "files": ["tools/debug-require.js"],
+ "files": ["web/debug-require.js"],
"env": {
"browser": true,
"es2020": false
@@ -231,7 +231,7 @@
}
},
{
- "files": ["static/**"],
+ "files": ["web/shared/**", "web/src/**", "web/third/**"],
"env": {
"browser": true,
"node": false
@@ -244,7 +244,7 @@
}
},
{
- "files": ["static/shared/**"],
+ "files": ["web/shared/**"],
"env": {
"browser": false,
"shared-node-browser": true
@@ -255,9 +255,9 @@
{
"zones": [
{
- "target": "./static/shared",
+ "target": "./web/shared",
"from": ".",
- "except": ["./node_modules", "./static/shared"]
+ "except": ["./node_modules", "./web/shared"]
}
]
}
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.yml
index 05052b653ae..1f78bc39d19 100644
--- a/.github/workflows/production-suite.yml
+++ b/.github/workflows/production-suite.yml
@@ -14,9 +14,8 @@ on:
- puppet/**
- requirements/**
- scripts/**
- - static/assets/**
- - static/third/**
- tools/**
+ - web/third/**
- webpack.config.ts
- yarn.lock
- zerver/worker/queue_processors.py
diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml
index 478752e549f..be1462648d1 100644
--- a/.github/workflows/zulip-ci.yml
+++ b/.github/workflows/zulip-ci.yml
@@ -155,9 +155,9 @@ jobs:
# Ban check-database-compatibility.py from transitively
# relying on static/generated, because it might not be
# up-to-date at that point in upgrade-zulip-stage-2.
- chmod 000 static/generated
+ chmod 000 static/generated web/generated
./scripts/lib/check-database-compatibility.py
- chmod 755 static/generated
+ chmod 755 static/generated web/generated
- name: Run documentation and api tests
if: ${{ matrix.include_documentation_tests }}
diff --git a/.prettierignore b/.prettierignore
index 641a993f58e..c60c009b07a 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -2,9 +2,9 @@
/corporate/tests/stripe_fixtures
/help/**/*.md
/locale
-/static/third
/templates/**/*.md
/tools/setup/emoji/emoji_map.json
+/web/third
/zerver/tests/fixtures
/zerver/webhooks/*/doc.md
/zerver/webhooks/*/fixtures
diff --git a/docs/THIRDPARTY b/docs/THIRDPARTY
index 919a0163025..b12735c21a8 100644
--- a/docs/THIRDPARTY
+++ b/docs/THIRDPARTY
@@ -51,25 +51,25 @@ Files: static/audio/notification_sounds/zulip.*
Copyright: 2011 Vidsyn
License: CC0-1.0
-Files: static/third/bootstrap/css/bootstrap-btn.css
+Files: web/third/bootstrap/css/bootstrap-btn.css
Copyright: 2011-2014 Twitter, Inc
License: Expat
-Files: static/third/bootstrap/css/bootstrap.css
+Files: web/third/bootstrap/css/bootstrap.css
Copyright: 2012 Twitter, Inc
License: Apache-2.0
Comment: The software has been modified.
-Files: static/third/bootstrap/js/bootstrap.js
+Files: web/third/bootstrap/js/bootstrap.js
Copyright: 2012 Twitter, Inc
License: Apache-2.0
-Files: static/third/bootstrap-typeahead/*
+Files: web/third/bootstrap-typeahead/*
Copyright: 2012 Twitter, Inc
License: Apache-2.0
Comment: Bootstrap typeahead. The software has been modified.
-Files: static/third/bootstrap-tooltip/*
+Files: web/third/bootstrap-tooltip/*
Copyright: 2012 Twitter, Inc
License: Apache-2.0
Comment: Bootstrap tooltip and bootstrap popover. The software has been modified.
@@ -78,16 +78,16 @@ Files: static/generated/emoji/images/emoji/unicode/*
Copyright: Google, Inc.
License: Apache-2.0
-Files: static/third/jquery-idle/jquery.idle.js
+Files: web/third/jquery-idle/jquery.idle.js
Copyright: 2011-2013 Henrique Boaventura
License: Expat
Comment: The software has been modified.
-Files: static/third/marked/*
+Files: web/third/marked/*
Copyright: 2011-2013, Christopher Jeffrey
License: Expat
-Files: static/shared/icons/ellipsis-v-solid.svg
+Files: web/shared/icons/ellipsis-v-solid.svg
Copyright: 2017 Fonticons, Inc.
License: CC-BY-4.0
Comment: This icon is picked from Version 5.13.0 of Font Awesome
@@ -109,7 +109,7 @@ Files: static/audio/notification_sounds/*
Copyright: 2021 Stefan Mertens
License: CC0-1.0
-Files: static/shared/icons/globe.svg
+Files: web/shared/icons/globe.svg
Source: https://github.com/ionic-team/ionicons/blob/v5.5.2/src/svg/earth.svg, modified to increase the width of the globe outline.
Copyright: 2015-present Ionic (http://ionic.io/)
License: Expat
@@ -118,7 +118,7 @@ Files: tools/check-thirdparty
Copyright: 2020 Kandra Labs, Inc.
License: GPL-2.0+
-Files: static/shared/icons/mute.svg
+Files: web/shared/icons/mute.svg
Source: https://fonts.google.com/icons?selected=Material+Symbols+Rounded:volume_mute
Copyright: Google, Inc.
License: Apache-2.0
diff --git a/docs/contributing/code-style.md b/docs/contributing/code-style.md
index fcb4d36060f..a5ebf3c0dac 100644
--- a/docs/contributing/code-style.md
+++ b/docs/contributing/code-style.md
@@ -274,7 +274,7 @@ editor](https://prettier.io/docs/en/editors.html).
Combine adjacent on-ready functions, if they are logically related.
The best way to build complicated DOM elements is a Handlebars template
-like `static/templates/message_reactions.hbs`. For simpler things
+like `web/templates/message_reactions.hbs`. For simpler things
you can use jQuery DOM building APIs like so:
```js
diff --git a/docs/development/using.md b/docs/development/using.md
index 53141b25a14..3bdf0412a7a 100644
--- a/docs/development/using.md
+++ b/docs/development/using.md
@@ -75,8 +75,8 @@ the development environment][authentication-dev-server].
- Most changes will take effect automatically. Details:
- If you change CSS files, your changes will appear immediately via
webpack hot module replacement.
- - If you change JavaScript code (`static/js`) or Handlebars
- templates (`static/templates`), the browser window will be
+ - If you change JavaScript code (`web/src`) or Handlebars
+ templates (`web/templates`), the browser window will be
reloaded automatically.
- For Jinja2 backend templates (`templates/*`), you'll need to reload
the browser window to see your changes.
diff --git a/docs/documentation/helpcenter.md b/docs/documentation/helpcenter.md
index 74999318bb2..1f36d5da76e 100644
--- a/docs/documentation/helpcenter.md
+++ b/docs/documentation/helpcenter.md
@@ -241,7 +241,7 @@ Use non-Mac keyboard keys; for example `Enter`, instead of `Return`. Zulip will
automatically translate non-Mac keys to the Mac versions for users with a Mac
user agent. If you want to confirm that your documentation is rendering Mac keys
correctly when writing documentation in Windows or Linux, you can temporarily
-change `has_mac_keyboard` in `/static/js/common.ts` to always return `True`.
+change `has_mac_keyboard` in `/web/src/common.ts` to always return `True`.
Then when you view your documentation changes in the development environment,
the keyboard shortcuts should be rendered with Mac keys where appropriate.
diff --git a/docs/git/cheat-sheet.md b/docs/git/cheat-sheet.md
index 4489da73c6a..253eca702df 100644
--- a/docs/git/cheat-sheet.md
+++ b/docs/git/cheat-sheet.md
@@ -79,7 +79,7 @@ See also [fixing commits][fix-commit]
- `git fetch origin`: fetch origin repository
- `git fetch upstream`: fetch upstream repository
- grep
- - `git grep update_unread_counts static/js`: Search our JS for references to update_unread_counts.
+ - `git grep update_unread_counts web/src`: Search our JS for references to update_unread_counts.
- log
- `git log`: show commit logs
- `git log --oneline | head`: To quickly see the latest ten commits on a branch.
diff --git a/docs/overview/directory-structure.md b/docs/overview/directory-structure.md
index 04ceb7274eb..a902196f541 100644
--- a/docs/overview/directory-structure.md
+++ b/docs/overview/directory-structure.md
@@ -50,23 +50,25 @@ templating systems.
- `templates/zerver/` For [Jinja2](http://jinja.pocoo.org/) templates
for the backend (for zerver app; logged-in content is in `templates/zerver/app`).
-- `static/templates/` [Handlebars](https://handlebarsjs.com/) templates for the frontend.
+- `web/templates/` [Handlebars](https://handlebarsjs.com/) templates for the frontend.
---
-### JavaScript, TypeScript, and other static assets
+### JavaScript, TypeScript, and other frontend assets
-- `static/js/` Zulip's own JavaScript and TypeScript sources.
+- `web/src/` Zulip's own JavaScript and TypeScript sources.
-- `static/styles/` Zulip's own CSS.
+- `web/styles/` Zulip's own CSS.
-- `static/images/` Zulip's images.
+- `web/images/` Images bundled with webpack.
-- `static/third/` Third-party JavaScript and CSS that has been vendored.
+- `static/images/` Images served directly to the web.
+
+- `web/third/` Third-party JavaScript and CSS that has been vendored.
- `node_modules/` Third-party JavaScript installed via `yarn`.
-- `static/shared/icons/` Icons placed in this directory are compiled
+- `web/shared/icons/` Icons placed in this directory are compiled
into an icon font.
---
diff --git a/docs/subsystems/analytics.md b/docs/subsystems/analytics.md
index fa38bbfae57..873320701bf 100644
--- a/docs/subsystems/analytics.md
+++ b/docs/subsystems/analytics.md
@@ -182,9 +182,9 @@ The relevant files are:
get_chart_data in this file. The bottom half of this file (with all the
raw sql queries) is for a different page (/activity), not related to
/stats.
-- static/js/stats/stats.js: The JavaScript and Plotly code.
+- web/src/stats/stats.js: The JavaScript and Plotly code.
- templates/analytics/stats.html
-- static/styles/stats.css and static/styles/portico.css: We are in the
+- web/styles/stats.css and web/styles/portico.css: We are in the
process of re-styling this page to use in-app css instead of portico css,
but there is currently still a lot of portico influence.
- analytics/urls.py: Has the URL routes; it's unlikely you will have to
diff --git a/docs/subsystems/dependencies.md b/docs/subsystems/dependencies.md
index 8e63cc51b01..fd28de5e4d4 100644
--- a/docs/subsystems/dependencies.md
+++ b/docs/subsystems/dependencies.md
@@ -242,7 +242,7 @@ reasoning here.
release tarball.
- **Checked-in packages**. In contrast with Python, we have a few
JavaScript dependencies that we have copied into the main Zulip
- repository under `static/third`, often with patches. These date
+ repository under `web/third`, often with patches. These date
from an era before `npm` existed. It is a project goal to eliminate
these checked-in versions of dependencies and instead use versions
managed by the npm repositories.
@@ -317,7 +317,7 @@ implementation of that tool.
The list of languages supported by our Markdown syntax highlighting
comes from the [pygments][] package. `tools/setup/build_pygments_data` is
-responsible for generating `static/generated/pygments_data.json` so that
+responsible for generating `web/generated/pygments_data.json` so that
our JavaScript Markdown processor has access to the supported list.
## Modifying provisioning
diff --git a/docs/subsystems/hashchange-system.md b/docs/subsystems/hashchange-system.md
index d72e15854a3..fd060f1e8c7 100644
--- a/docs/subsystems/hashchange-system.md
+++ b/docs/subsystems/hashchange-system.md
@@ -17,7 +17,7 @@ Some examples are:
stream.)
The main module in the frontend that manages this all is
-`static/js/hashchange.js` (plus `hash_util.js` for all the parsing
+`web/src/hashchange.js` (plus `hash_util.js` for all the parsing
code), which is unfortunately one of our thorniest modules. Part of
the reason that it's thorny is that it needs to support a lot of
different flows:
@@ -54,7 +54,7 @@ all of this (would be a good project to add them to the
[Puppeteer suite][testing-with-puppeteer]) and there's enough complexity
that it's easy to accidentally break something.
-The main external API lives in `static/js/browser_history.js`:
+The main external API lives in `web/src/browser_history.js`:
- `browser_history.update` is used to update the browser
history, and it should be called when the app code is taking care
@@ -97,7 +97,7 @@ reload itself:
start looking for a good time to reload, based on when the user is
idle (ideally, we'd reload when they're not looking and restore
state so that the user never knew it happened!). The logic for
- doing this is in `static/js/reload.js`; but regardless we'll reload
+ doing this is in `web/src/reload.js`; but regardless we'll reload
within 30 minutes unconditionally.
An important detail in server-initiated reloads is that we
diff --git a/docs/subsystems/hotspots.md b/docs/subsystems/hotspots.md
index c19b97bdd04..f8a8383fcad 100644
--- a/docs/subsystems/hotspots.md
+++ b/docs/subsystems/hotspots.md
@@ -30,7 +30,7 @@ ALL_HOTSPOTS = {
### Step 2: Configure hotspot placement
The target element and visual orientation of each hotspot is specified in
-`HOTSPOT_LOCATIONS` of `static/js/hotspots.js`.
+`HOTSPOT_LOCATIONS` of `web/src/hotspots.js`.
The `icon_offset` property specifies where the pulsing icon is placed _relative to
the width and height of the target element_.
@@ -67,7 +67,7 @@ content and behind sidebars and overlays. If a hotspot is associated with
a target element on a sidebar or overlay, the icon's z-index may need to
be increased to 101, 102, or 103.
-This adjustment can be made at the bottom of `static/styles/hotspots.css`:
+This adjustment can be made at the bottom of `web/styles/hotspots.css`:
```css
#hotspot_new_hotspot_name_icon {
diff --git a/docs/subsystems/html-css.md b/docs/subsystems/html-css.md
index 295aac3791b..73eb1ef99dc 100644
--- a/docs/subsystems/html-css.md
+++ b/docs/subsystems/html-css.md
@@ -2,13 +2,13 @@
## Zulip CSS organization
-The Zulip application's CSS can be found in the `static/styles/`
+The Zulip application's CSS can be found in the `web/styles/`
directory. Zulip uses [Bootstrap](https://getbootstrap.com/) as its
main third-party CSS library.
Zulip uses PostCSS for its CSS files. There are two high-level sections
of CSS: the "portico" (logged-out pages like /help/, /login/, etc.),
-and the app. The portico CSS lives under the `static/styles/portico`
+and the app. The portico CSS lives under the `web/styles/portico`
subdirectory.
## Editing Zulip CSS
@@ -111,7 +111,7 @@ path('config-error/google', TemplateView.as_view(
For text generated in the frontend, live-rendering HTML from
JavaScript for things like the main message feed, we use the
-[Handlebars][] template engine (files in `static/templates/`) and
+[Handlebars][] template engine (files in `web/templates/`) and
sometimes work directly from JavaScript code (though as a policy
matter, we try to avoid generating HTML directly in JavaScript
wherever possible).
@@ -150,13 +150,13 @@ relevant background as well.
### Primary build process
-Zulip's frontend is primarily JavaScript in the `static/js` directory;
+Zulip's frontend is primarily JavaScript in the `web/src` directory;
we are working on migrating these to TypeScript modules. Stylesheets
are written in CSS extended by various PostCSS plugins; they are
converted from plain CSS, and we have yet to take full advantage of
the features PostCSS offers. We use Webpack to transpile and build JS
and CSS bundles that the browser can understand, one for each entry
-points specified in `tools/webpack.*assets.json`; source maps are
+points specified in `web/webpack.*assets.json`; source maps are
generated in the process for better debugging experience.
In development mode, bundles are built and served on the fly using
@@ -169,7 +169,7 @@ ready for deployment.
You can trace which source files are included in which HTML templates
by comparing the `entrypoint` variables in the HTML templates under
-`templates/` with the bundles declared in `tools/webpack.*assets.json`.
+`templates/` with the bundles declared in `web/webpack.*assets.json`.
### Adding static files
@@ -187,34 +187,34 @@ first add it to the appropriate place under `static/`.
We update those versions periodically to ensure we're running a recent
version of third-party libraries.
- Third-party files that we have patched should all go in
- `static/third/`. Tag the commit with "[third]" when adding or
+ `web/third/`. Tag the commit with "[third]" when adding or
modifying a third-party package. Our goal is to the extent possible
to eliminate patched third-party code from the project.
-- Our own JavaScript and TypeScript files live under `static/js`. Ideally,
+- Our own JavaScript and TypeScript files live under `web/src`. Ideally,
new modules should be written in TypeScript (details on this policy below).
-- CSS files live under `static/styles`.
+- CSS files live under `web/styles`.
- Portico JavaScript ("portico" means for logged-out pages) lives under
- `static/js/portico`.
-- Custom SVG graphics living under `static/assets/icons` are compiled into
+ `web/src/portico`.
+- Custom SVG graphics living under `web/images/icons` are compiled into
custom icon webfonts by webfont-loader according to the
- `static/assets/icons/template.hbs` template.
+ `web/images/icons/template.hbs` template.
For your asset to be included in a development/production bundle, it
needs to be accessible from one of the entry points defined either in
-`tools/webpack.assets.json` or `tools/webpack.dev-assets.json`.
+`web/webpack.assets.json` or `web/webpack.dev-assets.json`.
- If you plan to only use the file within the app proper, and not on the login
page or other standalone pages, put it in the `app` bundle by importing it
- in `static/js/bundles/app.js`.
+ in `web/src/bundles/app.js`.
- If it needs to be available both in the app and all
logged-out/portico pages, import it to
- `static/js/bundles/common.js` which itself is imported to the
+ `web/src/bundles/common.js` which itself is imported to the
`app` and `common` bundles.
- If it's just used on a single standalone page which is only used in
a development environment (e.g. `/devlogin`) create a new entry
- point in `tools/webpack.dev-assets.json` or it's used in both
+ point in `web/webpack.dev-assets.json` or it's used in both
production and development (e.g. `/stats`) create a new entry point
- in `tools/webpack.assets.json`. Use the `bundle` macro (defined in
+ in `web/webpack.assets.json`. Use the `bundle` macro (defined in
`templates/zerver/base.html`) in the relevant Jinja2 template to
inject the compiled JS and CSS.
@@ -267,11 +267,11 @@ TypeScript also uses the ES6 module system. See our documentation on
Webpack does not ordinarily allow modules to be accessed directly from
the browser console, but for debugging convenience, we have a custom
-webpack plugin (`tools/debug-require-webpack-plugin.ts`) that exposes
+webpack plugin (`web/debug-require-webpack-plugin.ts`) that exposes
a version of the `require()` function to the development environment
browser console for this purpose. For example, you can access our
`people` module by evaluating
-`people = require("./static/js/people")`, or the third-party `lodash`
+`people = require("./web/src/people")`, or the third-party `lodash`
module with `_ = require("lodash")`. This mechanism is **not** a
stable API and should not be used for any purpose other than
interactive debugging.
diff --git a/docs/subsystems/input-pills.md b/docs/subsystems/input-pills.md
index 47448e21bca..60b39612416 100644
--- a/docs/subsystems/input-pills.md
+++ b/docs/subsystems/input-pills.md
@@ -26,7 +26,7 @@ var pills = input_pill.create({
});
```
-You can look at `static/js/user_pill.js` to see how the above
+You can look at `web/src/user_pill.js` to see how the above
methods are implemented. Essentially you just need to convert
from raw data (like an email) to structured data (like an object
with display_value, email, and user_id for a user), and vice
diff --git a/docs/subsystems/logging.md b/docs/subsystems/logging.md
index cb34d88f390..02cf459df68 100644
--- a/docs/subsystems/logging.md
+++ b/docs/subsystems/logging.md
@@ -191,7 +191,7 @@ might use). In development, this means displaying a highly visible
overlay over the message view area, to make exceptions in testing a
new feature hard to miss.
-- Blueslip is implemented in `static/js/blueslip.js`.
+- Blueslip is implemented in `web/src/blueslip.js`.
- In order to capture essentially any error occurring in the browser,
Blueslip listens for the `error` event on `window`, and has methods
for being manually triggered by Zulip JavaScript code for warnings
@@ -200,7 +200,7 @@ new feature hard to miss.
browser session, and includes them in reports to the server, so that
one can see cases where exceptions chained together. You can print
this log from the browser console using
- `blueslip = require("./static/js/blueslip"); blueslip.get_log()`.
+ `blueslip = require("./web/src/blueslip"); blueslip.get_log()`.
Blueslip supports several error levels:
@@ -236,7 +236,7 @@ and report to the server the following whenever a message is sent:
the server-rendered content, which can be used for statistics on how
effective our [local echo system](markdown.md) is.
-The code is all in `zerver/lib/report.py` and `static/js/sent_messages.js`.
+The code is all in `zerver/lib/report.py` and `web/src/sent_messages.js`.
We have similar reporting for the time it takes to narrow / switch to
a new view:
diff --git a/docs/subsystems/markdown.md b/docs/subsystems/markdown.md
index b56ce893f7c..2b69522d96d 100644
--- a/docs/subsystems/markdown.md
+++ b/docs/subsystems/markdown.md
@@ -17,7 +17,7 @@ authoritatively render messages to HTML (and implements
slow/expensive/complex features like querying the Twitter API to
render tweets nicely). The frontend implementation is in JavaScript,
based on [marked.js](https://github.com/chjj/marked)
-(`static/js/echo.js`), and is used to preview and locally echo
+(`web/src/echo.js`), and is used to preview and locally echo
messages the moment the sender hits Enter, without waiting for round
trip from the server. Those frontend renderings are only shown to the
sender of a message, and they are (ideally) identical to the backend
@@ -101,12 +101,12 @@ When changing Zulip's Markdown syntax, you need to update several
places:
- The backend Markdown processor (`zerver/lib/markdown/__init__.py`).
-- The frontend Markdown processor (`static/js/markdown.js` and sometimes
- `static/third/marked/lib/marked.js`), or `markdown.contains_backend_only_syntax` if
+- The frontend Markdown processor (`web/src/markdown.js` and sometimes
+ `web/third/marked/lib/marked.js`), or `markdown.contains_backend_only_syntax` if
your changes won't be supported in the frontend processor.
-- If desired, the typeahead logic in `static/js/composebox_typeahead.js`.
+- If desired, the typeahead logic in `web/src/composebox_typeahead.js`.
- The test suite, probably via adding entries to `zerver/tests/fixtures/markdown_test_cases.json`.
-- The in-app Markdown documentation (`markdown_help_rows` in `static/js/info_overlay.js`).
+- The in-app Markdown documentation (`markdown_help_rows` in `web/src/info_overlay.js`).
- The list of changes to Markdown at the end of this document.
Important considerations for any changes are:
diff --git a/docs/subsystems/notifications.md b/docs/subsystems/notifications.md
index fcdc1d63ce3..0c154aa02b4 100644
--- a/docs/subsystems/notifications.md
+++ b/docs/subsystems/notifications.md
@@ -97,7 +97,7 @@ as follows:
debugging this system, since it has so much complexity.
- Desktop notifications are the simplest; they are implemented
client-side by the web/desktop app's logic
- (`static/js/notifications.js`) inspecting the `flags` fields that
+ (`web/src/notifications.js`) inspecting the `flags` fields that
were spliced into `message` events by the Tornado system, as well as
the user's notification settings.
- The queue processors for those queues make the final determination
diff --git a/docs/subsystems/presence.md b/docs/subsystems/presence.md
index 5b26affd393..29a0161ed57 100644
--- a/docs/subsystems/presence.md
+++ b/docs/subsystems/presence.md
@@ -47,7 +47,7 @@ about that data structure:
- Users can disable their own presence updates in user settings
(`UserProfile.presence_enabled` is the flag storing [this user
preference](https://zulip.com/help/status-and-availability#disable-updating-availability)).
-- The `status_from_timestamp` function in `static/js/presence.js` is
+- The `status_from_timestamp` function in `web/src/presence.js` is
useful sample code; the `OFFLINE_THRESHOLD_SECS` check is critical
to correct output.
- We provide the data for e.g. whether the user was online on their
diff --git a/docs/subsystems/sending-messages.md b/docs/subsystems/sending-messages.md
index 94aa8107f88..1b35223f67c 100644
--- a/docs/subsystems/sending-messages.md
+++ b/docs/subsystems/sending-messages.md
@@ -162,7 +162,7 @@ messages.
properties (at the very least, message ID and timestamp) and
rerenders it in any message lists where it appears. This is
primarily done in the `process_from_server` function in
- `static/js/echo.js`.
+ `web/src/echo.js`.
### Local echo in message editing
diff --git a/docs/subsystems/slash-commands.md b/docs/subsystems/slash-commands.md
index 4ce79d4de9e..affda95daea 100644
--- a/docs/subsystems/slash-commands.md
+++ b/docs/subsystems/slash-commands.md
@@ -52,4 +52,4 @@ send a message with the raw content.
## Typeahead
Typeahead for both slash commands (and widgets) is implemented
-via the `slash_commands` object in `static/js/composebox_typeahead.js`.
+via the `slash_commands` object in `web/src/composebox_typeahead.js`.
diff --git a/docs/subsystems/typing-indicators.md b/docs/subsystems/typing-indicators.md
index ef14635dec6..c4b3ab89d73 100644
--- a/docs/subsystems/typing-indicators.md
+++ b/docs/subsystems/typing-indicators.md
@@ -45,7 +45,7 @@ repeated updates to the server, so that downstream clients know that the
user is still typing. (Zulip messages tend to be longer than
messages in other chat/text clients, so this detail is important.)
-We have a small state machine in `static/shared/js/typing_status.js` that
+We have a small state machine in `web/shared/src/typing_status.js` that
makes sure subsequent "start" requests get sent out every ten
seconds. (This document is intended to describe the high level
architecture; the actual time values may be tuned in future releases.
@@ -107,15 +107,15 @@ structures, and then it eventually shows or hides status messages.
We'll describe the flow of data through the web app
as a concrete example.
-The events will come in to `static/js/server_events_dispatch.js`.
+The events will come in to `web/src/server_events_dispatch.js`.
The `stop` and `start` operations get further handled by
-`static/js/typing_events.js`.
+`web/src/typing_events.js`.
The main goal is then to triage which events should lead to
display changes.
The web app client maintains a list of incoming "typists" using
-code in `static/js/typing_data.js`. The API here has functions
+code in `web/src/typing_data.js`. The API here has functions
like the following:
- `add_typist`
diff --git a/docs/subsystems/widgets.md b/docs/subsystems/widgets.md
index 70e5f182901..62dd87c9594 100644
--- a/docs/subsystems/widgets.md
+++ b/docs/subsystems/widgets.md
@@ -51,11 +51,11 @@ Some important code entities for the widget implementation are:
- `SubMessage` database table
- `/json/submessage` API endpoint
-- `static/js/submessage.js`
-- `static/js/poll_widget.js`
-- `static/js/widgetize.js`
-- `static/js/zform.js`
-- `static/templates/widgets/`
+- `web/src/submessage.js`
+- `web/src/poll_widget.js`
+- `web/src/widgetize.js`
+- `web/src/zform.js`
+- `web/templates/widgets/`
- `zerver/lib/widget.py`
- `zerver/views/submessage.py`
@@ -105,10 +105,10 @@ is given a parent `elem` when its `activate` function
is called. This is just a `<div>` inside of the parent
message in the message pane. The widget has access to
jQuery and template.render, and the developer can create
-new templates in `static/templates/widgets/`.
+new templates in `web/templates/widgets/`.
A good way to learn the system is to read the code
-in `static/js/poll_widget.js`. It is worth noting that
+in `web/src/poll_widget.js`. It is worth noting that
writing a new widget requires only minor backend
changes in the current architecture. This could change
in the future, but for now, a frontend developer mostly
@@ -299,7 +299,7 @@ When the message gets to the client, the codepath for **zform**
is actually quite similar to what happens with a more
customized widget like **poll**. (In fact, **zform** is a
sibling of **poll** and **zform** just has a somewhat more
-generic job to do.) In `static/js/widgetize.js` you will see
+generic job to do.) In `web/src/widgetize.js` you will see
where this code converges, with snippets like this:
```js
@@ -308,7 +308,7 @@ widgets.todo = todo_widget;
widgets.zform = zform;
```
-The code in `static/js/zform.js` renders the form (not
+The code in `web/src/zform.js` renders the form (not
shown here) and then sets up a click handler like below:
```js
diff --git a/docs/testing/linters.md b/docs/testing/linters.md
index e449d1259e6..fc6c3920405 100644
--- a/docs/testing/linters.md
+++ b/docs/testing/linters.md
@@ -45,8 +45,8 @@ You can also run them individually or pass specific files:
```bash
./tools/lint
-./tools/lint static/js/compose.js
-./tools/lint static/js/
+./tools/lint web/src/compose.js
+./tools/lint web/src/
```
`./tools/lint` has many useful options; you can read about them in its
diff --git a/docs/testing/testing-with-node.md b/docs/testing/testing-with-node.md
index 57d06a1eccb..558733c3451 100644
--- a/docs/testing/testing-with-node.md
+++ b/docs/testing/testing-with-node.md
@@ -39,7 +39,7 @@ in `frontend_tests/node_tests`. Here is an example test from
```
The names of the node tests generally align with the names of the
-modules they test. If you modify a JS module in `static/js` you should
+modules they test. If you modify a JS module in `web/src` you should
see if there are corresponding test in `frontend_tests/node_tests`. If
there are, you should strive to follow the patterns of the existing tests
and add your own tests.
@@ -120,7 +120,7 @@ For modules that you want to completely stub out, use a pattern like
this:
```js
-const reminder = mock_esm("../../static/js/reminder", {
+const reminder = mock_esm("../../web/src/reminder", {
is_deferred_delivery: noop,
});
diff --git a/docs/translating/internationalization.md b/docs/translating/internationalization.md
index 2d12023ec88..426ebf615af 100644
--- a/docs/translating/internationalization.md
+++ b/docs/translating/internationalization.md
@@ -239,7 +239,7 @@ $("#foo").html(
The only HTML tags allowed directly in translated strings are the
simple HTML tags enumerated in `default_html_elements`
-(`static/js/i18n.js`) with no attributes. This helps to avoid
+(`web/src/i18n.js`) with no attributes. This helps to avoid
exposing HTML details to translators. If you need to include more
complex markup such as a link, you can define a custom HTML tag
locally to the translation:
diff --git a/docs/tutorials/new-feature-tutorial.md b/docs/tutorials/new-feature-tutorial.md
index d52379ece40..27bb15db434 100644
--- a/docs/tutorials/new-feature-tutorial.md
+++ b/docs/tutorials/new-feature-tutorial.md
@@ -44,11 +44,11 @@ organization in Zulip). The following files are involved in the process:
**Frontend**
-- `static/templates/settings/organization_permissions_admin.hbs`: defines
+- `web/templates/settings/organization_permissions_admin.hbs`: defines
the structure of the admin permissions page (checkboxes for each organization
permission setting).
-- `static/js/settings_org.js`: handles organization setting form submission.
-- `static/js/server_events_dispatch.js`: handles events coming from the server
+- `web/src/settings_org.js`: handles organization setting form submission.
+- `web/src/server_events_dispatch.js`: handles events coming from the server
(ex: pushing an organization change to other open browsers and updating
the application's state).
@@ -124,17 +124,17 @@ Realm setting, in `test_realm.py`).
### Frontend changes
**JavaScript/TypeScript:** Zulip's JavaScript and TypeScript sources are
-located in the directory `static/js/`. The exact files you may need to change
+located in the directory `web/src/`. The exact files you may need to change
depend on your feature. If you've added a new event that is sent to clients,
-be sure to add a handler for it in `static/js/server_events_dispatch.js`.
+be sure to add a handler for it in `web/src/server_events_dispatch.js`.
-**CSS:** The primary CSS file is `static/styles/zulip.css`. If your new
+**CSS:** The primary CSS file is `web/styles/zulip.css`. If your new
feature requires UI changes, you may need to add additional CSS to this
file.
**Templates:** The initial page structure is rendered via Jinja2
templates located in `templates/zerver/app`. For JavaScript, Zulip uses
-Handlebars templates located in `static/templates`. Templates are
+Handlebars templates located in `web/templates`. Templates are
precompiled as part of the build/deploy process.
Zulip is fully internationalized, so when writing both HTML templates
@@ -532,7 +532,7 @@ to server when a realm is updated) and the change event needs to be
handled on the client.
To add the checkbox to the admin page, modify the relevant template in
-`static/templates/settings/`, which can be
+`web/templates/settings/`, which can be
`organization_permissions_admin.hbs` or `organization_settings_admin.hbs`
(omitted here since it is relatively straightforward).
@@ -540,10 +540,10 @@ If you're adding a non-checkbox field, you'll need to specify the type
of the field via the `data-setting-widget-type` attribute in the HTML
template.
-Then add the new form control in `static/js/admin.js`.
+Then add the new form control in `web/src/admin.js`.
```diff
- // static/js/admin.js
+ // web/src/admin.js
export function build_page() {
const options = {
@@ -556,7 +556,7 @@ Then add the new form control in `static/js/admin.js`.
```
The JavaScript code for organization settings and permissions can be found in
-`static/js/settings_org.js`.
+`web/src/settings_org.js`.
In frontend, we have split the `property_types` into three objects:
@@ -616,7 +616,7 @@ setting has changed, your function should be referenced in the
`settings_emoji.update_custom_emoji_ui`.
```diff
- // static/js/server_events_dispatch.js
+ // web/src/server_events_dispatch.js
function dispatch_normal_event(event) {
switch (event.type) {
diff --git a/docs/tutorials/writing-views.md b/docs/tutorials/writing-views.md
index 0e088640db7..05cd1d926dd 100644
--- a/docs/tutorials/writing-views.md
+++ b/docs/tutorials/writing-views.md
@@ -282,7 +282,7 @@ Zulip realm).
You should always use `channel.<method>` to make an `HTTP <method>` call
to the Zulip JSON API. As an example, in
-[static/js/admin.js](https://github.com/zulip/zulip/blob/main/static/js/admin.js)
+[web/src/admin.js](https://github.com/zulip/zulip/blob/main/web/src/admin.js)
```js
var url = "/json/realm";
diff --git a/frontend_tests/node_tests/activity.js b/frontend_tests/node_tests/activity.js
index 853757d70c6..984e8c80a00 100644
--- a/frontend_tests/node_tests/activity.js
+++ b/frontend_tests/node_tests/activity.js
@@ -18,15 +18,15 @@ const _document = {
},
};
-const channel = mock_esm("../../static/js/channel");
-const compose_state = mock_esm("../../static/js/compose_state");
-const narrow = mock_esm("../../static/js/narrow");
-const padded_widget = mock_esm("../../static/js/padded_widget");
-const pm_list = mock_esm("../../static/js/pm_list");
-const popovers = mock_esm("../../static/js/popovers");
-const resize = mock_esm("../../static/js/resize");
-const scroll_util = mock_esm("../../static/js/scroll_util");
-const watchdog = mock_esm("../../static/js/watchdog");
+const channel = mock_esm("../../web/src/channel");
+const compose_state = mock_esm("../../web/src/compose_state");
+const narrow = mock_esm("../../web/src/narrow");
+const padded_widget = mock_esm("../../web/src/padded_widget");
+const pm_list = mock_esm("../../web/src/pm_list");
+const popovers = mock_esm("../../web/src/popovers");
+const resize = mock_esm("../../web/src/resize");
+const scroll_util = mock_esm("../../web/src/scroll_util");
+const watchdog = mock_esm("../../web/src/watchdog");
set_global("document", _document);
diff --git a/frontend_tests/node_tests/alert_words_ui.js b/frontend_tests/node_tests/alert_words_ui.js
index a1a797133e1..d61a163d553 100644
--- a/frontend_tests/node_tests/alert_words_ui.js
+++ b/frontend_tests/node_tests/alert_words_ui.js
@@ -7,7 +7,7 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
-const channel = mock_esm("../../static/js/channel");
+const channel = mock_esm("../../web/src/channel");
const alert_words = zrequire("alert_words");
const alert_words_ui = zrequire("alert_words_ui");
@@ -20,7 +20,7 @@ const noop = () => {};
run_test("rerender_alert_words_ui", ({mock_template}) => {
let list_widget_create_called = false;
alert_words_ui.reset();
- const ListWidget = mock_esm("../../static/js/list_widget", {
+ const ListWidget = mock_esm("../../web/src/list_widget", {
modifier: noop,
create(container, words, opts) {
const alert_words = [];
diff --git a/frontend_tests/node_tests/billing.js b/frontend_tests/node_tests/billing.js
index eb6b09ebe0b..db3fd960466 100644
--- a/frontend_tests/node_tests/billing.js
+++ b/frontend_tests/node_tests/billing.js
@@ -14,7 +14,7 @@ const dom = new JSDOM(template, {pretendToBeVisual: true});
const document = dom.window.document;
const location = set_global("location", {});
-const helpers = mock_esm("../../static/js/billing/helpers", {
+const helpers = mock_esm("../../web/src/billing/helpers", {
set_tab() {},
});
diff --git a/frontend_tests/node_tests/billing_helpers.js b/frontend_tests/node_tests/billing_helpers.js
index d9b0b8e3b50..8ab378e4ea1 100644
--- a/frontend_tests/node_tests/billing_helpers.js
+++ b/frontend_tests/node_tests/billing_helpers.js
@@ -19,7 +19,7 @@ const dom = new JSDOM(template, {
const jquery = jQueryFactory(dom.window);
const history = set_global("history", {});
-const loading = mock_esm("../../static/js/loading");
+const loading = mock_esm("../../web/src/loading");
set_global("document", {
title: "Zulip",
});
diff --git a/frontend_tests/node_tests/blueslip_stacktrace.js b/frontend_tests/node_tests/blueslip_stacktrace.js
index 3b5ff72bb53..31929297289 100644
--- a/frontend_tests/node_tests/blueslip_stacktrace.js
+++ b/frontend_tests/node_tests/blueslip_stacktrace.js
@@ -10,8 +10,8 @@ const blueslip_stacktrace = zrequire("blueslip_stacktrace");
run_test("clean_path", () => {
// Local file
assert.strictEqual(
- blueslip_stacktrace.clean_path("webpack:///static/js/upload.js"),
- "/static/js/upload.js",
+ blueslip_stacktrace.clean_path("webpack:///web/src/upload.js"),
+ "/web/src/upload.js",
);
// Third party library (jQuery)
@@ -36,9 +36,9 @@ run_test("clean_function_name", () => {
// Local file
assert.deepEqual(
- blueslip_stacktrace.clean_function_name("Object../static/js/upload.js.exports.options"),
+ blueslip_stacktrace.clean_function_name("Object../web/src/upload.js.exports.options"),
{
- scope: "Object../static/js/upload.js.exports.",
+ scope: "Object../web/src/upload.js.exports.",
name: "options",
},
);
diff --git a/frontend_tests/node_tests/buddy_data.js b/frontend_tests/node_tests/buddy_data.js
index 0c1e327f9ea..95d886f11db 100644
--- a/frontend_tests/node_tests/buddy_data.js
+++ b/frontend_tests/node_tests/buddy_data.js
@@ -9,7 +9,7 @@ const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
const {page_params, user_settings} = require("../zjsunit/zpage_params");
-const timerender = mock_esm("../../static/js/timerender");
+const timerender = mock_esm("../../web/src/timerender");
const compose_fade_helper = zrequire("compose_fade_helper");
const muted_users = zrequire("muted_users");
diff --git a/frontend_tests/node_tests/buddy_list.js b/frontend_tests/node_tests/buddy_list.js
index 903a4e3c269..316d91301b9 100644
--- a/frontend_tests/node_tests/buddy_list.js
+++ b/frontend_tests/node_tests/buddy_list.js
@@ -9,8 +9,8 @@ const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
const $ = require("../zjsunit/zjquery");
-const padded_widget = mock_esm("../../static/js/padded_widget");
-const message_viewport = mock_esm("../../static/js/message_viewport");
+const padded_widget = mock_esm("../../web/src/padded_widget");
+const message_viewport = mock_esm("../../web/src/message_viewport");
const people = zrequire("people");
const {BuddyList} = zrequire("buddy_list");
diff --git a/frontend_tests/node_tests/channel.js b/frontend_tests/node_tests/channel.js
index a450f3f9dc9..c39317aac1d 100644
--- a/frontend_tests/node_tests/channel.js
+++ b/frontend_tests/node_tests/channel.js
@@ -13,7 +13,7 @@ const xhr_401 = {
};
let login_to_access_shown = false;
-mock_esm("../../static/js/spectators", {
+mock_esm("../../web/src/spectators", {
login_to_access() {
login_to_access_shown = true;
},
diff --git a/frontend_tests/node_tests/compose.js b/frontend_tests/node_tests/compose.js
index dd8b6267f4d..f33a7c6bcf9 100644
--- a/frontend_tests/node_tests/compose.js
+++ b/frontend_tests/node_tests/compose.js
@@ -28,19 +28,19 @@ set_global(
const fake_now = 555;
-const channel = mock_esm("../../static/js/channel");
-const compose_actions = mock_esm("../../static/js/compose_actions");
-const compose_fade = mock_esm("../../static/js/compose_fade");
-const compose_pm_pill = mock_esm("../../static/js/compose_pm_pill");
-const loading = mock_esm("../../static/js/loading");
-const markdown = mock_esm("../../static/js/markdown");
-const reminder = mock_esm("../../static/js/reminder");
-const rendered_markdown = mock_esm("../../static/js/rendered_markdown");
-const resize = mock_esm("../../static/js/resize");
-const sent_messages = mock_esm("../../static/js/sent_messages");
-const server_events = mock_esm("../../static/js/server_events");
-const transmit = mock_esm("../../static/js/transmit");
-const upload = mock_esm("../../static/js/upload");
+const channel = mock_esm("../../web/src/channel");
+const compose_actions = mock_esm("../../web/src/compose_actions");
+const compose_fade = mock_esm("../../web/src/compose_fade");
+const compose_pm_pill = mock_esm("../../web/src/compose_pm_pill");
+const loading = mock_esm("../../web/src/loading");
+const markdown = mock_esm("../../web/src/markdown");
+const reminder = mock_esm("../../web/src/reminder");
+const rendered_markdown = mock_esm("../../web/src/rendered_markdown");
+const resize = mock_esm("../../web/src/resize");
+const sent_messages = mock_esm("../../web/src/sent_messages");
+const server_events = mock_esm("../../web/src/server_events");
+const transmit = mock_esm("../../web/src/transmit");
+const upload = mock_esm("../../web/src/upload");
const compose_ui = zrequire("compose_ui");
const compose_banner = zrequire("compose_banner");
diff --git a/frontend_tests/node_tests/compose_actions.js b/frontend_tests/node_tests/compose_actions.js
index c9df8583976..132e1a8b08f 100644
--- a/frontend_tests/node_tests/compose_actions.js
+++ b/frontend_tests/node_tests/compose_actions.js
@@ -17,38 +17,38 @@ set_global("document", {
to_$: () => $("document-stub"),
});
-const channel = mock_esm("../../static/js/channel");
-const compose_fade = mock_esm("../../static/js/compose_fade", {
+const channel = mock_esm("../../web/src/channel");
+const compose_fade = mock_esm("../../web/src/compose_fade", {
clear_compose: noop,
});
-const compose_pm_pill = mock_esm("../../static/js/compose_pm_pill");
-const compose_ui = mock_esm("../../static/js/compose_ui", {
+const compose_pm_pill = mock_esm("../../web/src/compose_pm_pill");
+const compose_ui = mock_esm("../../web/src/compose_ui", {
autosize_textarea: noop,
is_full_size: () => false,
});
-const hash_util = mock_esm("../../static/js/hash_util");
-const narrow_state = mock_esm("../../static/js/narrow_state", {
+const hash_util = mock_esm("../../web/src/hash_util");
+const narrow_state = mock_esm("../../web/src/narrow_state", {
set_compose_defaults: noop,
});
-mock_esm("../../static/js/reload_state", {
+mock_esm("../../web/src/reload_state", {
is_in_progress: () => false,
});
-mock_esm("../../static/js/recent_topics_util", {
+mock_esm("../../web/src/recent_topics_util", {
is_visible: noop,
});
-mock_esm("../../static/js/drafts", {
+mock_esm("../../web/src/drafts", {
update_draft: noop,
});
-mock_esm("../../static/js/unread_ops", {
+mock_esm("../../web/src/unread_ops", {
notify_server_message_read: noop,
});
-mock_esm("../../static/js/message_lists", {
+mock_esm("../../web/src/message_lists", {
current: {
can_mark_messages_read: () => true,
},
});
-mock_esm("../../static/js/resize", {
+mock_esm("../../web/src/resize", {
reset_compose_message_max_height: noop,
});
diff --git a/frontend_tests/node_tests/compose_closed_ui.js b/frontend_tests/node_tests/compose_closed_ui.js
index f373b2f027a..c5d1107e361 100644
--- a/frontend_tests/node_tests/compose_closed_ui.js
+++ b/frontend_tests/node_tests/compose_closed_ui.js
@@ -7,13 +7,13 @@ const {mock_esm, set_global, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
-mock_esm("../../static/js/recent_topics_util", {
+mock_esm("../../web/src/recent_topics_util", {
is_visible: () => false,
});
const noop = () => {};
// Mocking and stubbing things
set_global("document", "document-stub");
-const message_lists = mock_esm("../../static/js/message_lists");
+const message_lists = mock_esm("../../web/src/message_lists");
function MessageListView() {
return {
maybe_rerender: noop,
@@ -21,7 +21,7 @@ function MessageListView() {
prepend: noop,
};
}
-mock_esm("../../static/js/message_list_view", {
+mock_esm("../../web/src/message_list_view", {
MessageListView,
});
// Code we're actually using/testing
diff --git a/frontend_tests/node_tests/compose_pm_pill.js b/frontend_tests/node_tests/compose_pm_pill.js
index 7758d35180a..0b77e85cccf 100644
--- a/frontend_tests/node_tests/compose_pm_pill.js
+++ b/frontend_tests/node_tests/compose_pm_pill.js
@@ -6,8 +6,8 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
-const compose_actions = mock_esm("../../static/js/compose_actions");
-const input_pill = mock_esm("../../static/js/input_pill");
+const compose_actions = mock_esm("../../web/src/compose_actions");
+const input_pill = mock_esm("../../web/src/input_pill");
const people = zrequire("people");
const compose_pm_pill = zrequire("compose_pm_pill");
diff --git a/frontend_tests/node_tests/compose_state.js b/frontend_tests/node_tests/compose_state.js
index 2ed0ed280ae..f84c8819118 100644
--- a/frontend_tests/node_tests/compose_state.js
+++ b/frontend_tests/node_tests/compose_state.js
@@ -5,7 +5,7 @@ const {strict: assert} = require("assert");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const compose_pm_pill = mock_esm("../../static/js/compose_pm_pill");
+const compose_pm_pill = mock_esm("../../web/src/compose_pm_pill");
const compose_state = zrequire("compose_state");
diff --git a/frontend_tests/node_tests/compose_ui.js b/frontend_tests/node_tests/compose_ui.js
index 896ff744131..502f8b2d0ed 100644
--- a/frontend_tests/node_tests/compose_ui.js
+++ b/frontend_tests/node_tests/compose_ui.js
@@ -13,15 +13,15 @@ const noop = () => {};
set_global("navigator", {});
-mock_esm("../../static/js/message_lists", {
+mock_esm("../../web/src/message_lists", {
current: {},
});
const compose_ui = zrequire("compose_ui");
const people = zrequire("people");
const user_status = zrequire("user_status");
-const hash_util = mock_esm("../../static/js/hash_util");
-const channel = mock_esm("../../static/js/channel");
+const hash_util = mock_esm("../../web/src/hash_util");
+const channel = mock_esm("../../web/src/channel");
const compose_actions = zrequire("compose_actions");
const message_lists = zrequire("message_lists");
const text_field_edit = mock_esm("text-field-edit");
diff --git a/frontend_tests/node_tests/compose_validate.js b/frontend_tests/node_tests/compose_validate.js
index f060f93f01c..bb682ea6c1f 100644
--- a/frontend_tests/node_tests/compose_validate.js
+++ b/frontend_tests/node_tests/compose_validate.js
@@ -11,8 +11,8 @@ const {page_params} = require("../zjsunit/zpage_params");
const {mock_banners} = require("./lib/compose_banner");
-const channel = mock_esm("../../static/js/channel");
-const compose_actions = mock_esm("../../static/js/compose_actions");
+const channel = mock_esm("../../web/src/channel");
+const compose_actions = mock_esm("../../web/src/compose_actions");
const compose_banner = zrequire("compose_banner");
const compose_pm_pill = zrequire("compose_pm_pill");
@@ -20,9 +20,9 @@ const compose_state = zrequire("compose_state");
const compose_validate = zrequire("compose_validate");
const peer_data = zrequire("peer_data");
const people = zrequire("people");
-const resolved_topic = zrequire("../shared/js/resolved_topic");
+const resolved_topic = zrequire("../shared/src/resolved_topic");
const settings_config = zrequire("settings_config");
-const settings_data = mock_esm("../../static/js/settings_data");
+const settings_data = mock_esm("../../web/src/settings_data");
const stream_data = zrequire("stream_data");
const me = {
diff --git a/frontend_tests/node_tests/compose_video.js b/frontend_tests/node_tests/compose_video.js
index 32820b92ba8..4798167fc3b 100644
--- a/frontend_tests/node_tests/compose_video.js
+++ b/frontend_tests/node_tests/compose_video.js
@@ -9,10 +9,10 @@ const {page_params} = require("../zjsunit/zpage_params");
const events = require("./lib/events");
-const channel = mock_esm("../../static/js/channel");
-const compose_ui = mock_esm("../../static/js/compose_ui");
-const upload = mock_esm("../../static/js/upload");
-mock_esm("../../static/js/resize", {
+const channel = mock_esm("../../web/src/channel");
+const compose_ui = mock_esm("../../web/src/compose_ui");
+const upload = mock_esm("../../web/src/upload");
+mock_esm("../../web/src/resize", {
watch_manual_resize() {},
});
set_global("document", {
diff --git a/frontend_tests/node_tests/composebox_typeahead.js b/frontend_tests/node_tests/composebox_typeahead.js
index ee55935150f..bae794afc72 100644
--- a/frontend_tests/node_tests/composebox_typeahead.js
+++ b/frontend_tests/node_tests/composebox_typeahead.js
@@ -9,20 +9,20 @@ const {user_settings} = require("../zjsunit/zpage_params");
const noop = () => {};
-const compose = mock_esm("../../static/js/compose", {
+const compose = mock_esm("../../web/src/compose", {
finish: noop,
});
-const compose_validate = mock_esm("../../static/js/compose_validate", {
+const compose_validate = mock_esm("../../web/src/compose_validate", {
warn_for_text_overflow_when_tries_to_send: () => true,
});
-const input_pill = mock_esm("../../static/js/input_pill");
-const message_user_ids = mock_esm("../../static/js/message_user_ids", {
+const input_pill = mock_esm("../../web/src/input_pill");
+const message_user_ids = mock_esm("../../web/src/message_user_ids", {
user_ids: () => [],
});
-const stream_topic_history = mock_esm("../../static/js/stream_topic_history", {
+const stream_topic_history = mock_esm("../../web/src/stream_topic_history", {
stream_has_topics: () => false,
});
-const stream_topic_history_util = mock_esm("../../static/js/stream_topic_history_util");
+const stream_topic_history_util = mock_esm("../../web/src/stream_topic_history_util");
let autosize_called;
@@ -34,7 +34,7 @@ set_global("setTimeout", (f, time) => {
});
set_global("document", "document-stub");
-const typeahead = zrequire("../shared/js/typeahead");
+const typeahead = zrequire("../shared/src/typeahead");
const compose_state = zrequire("compose_state");
const emoji = zrequire("emoji");
const typeahead_helper = zrequire("typeahead_helper");
diff --git a/frontend_tests/node_tests/copy_and_paste.js b/frontend_tests/node_tests/copy_and_paste.js
index 9fccd2bb3e3..71c54bffdb7 100644
--- a/frontend_tests/node_tests/copy_and_paste.js
+++ b/frontend_tests/node_tests/copy_and_paste.js
@@ -14,7 +14,7 @@ const {window} = new JSDOM("<!DOCTYPE html><p>Hello world</p>");
const {document} = window;
const $ = jquery(window);
-const compose_ui = mock_esm("../../static/js/compose_ui");
+const compose_ui = mock_esm("../../web/src/compose_ui");
set_global("document", document);
const copy_and_paste = zrequire("copy_and_paste");
diff --git a/frontend_tests/node_tests/dispatch.js b/frontend_tests/node_tests/dispatch.js
index f702d15f92c..d3ec47a1181 100644
--- a/frontend_tests/node_tests/dispatch.js
+++ b/frontend_tests/node_tests/dispatch.js
@@ -24,64 +24,64 @@ const typing_person1 = events.typing_person1;
set_global("setTimeout", (func) => func());
-const activity = mock_esm("../../static/js/activity");
-const alert_words_ui = mock_esm("../../static/js/alert_words_ui");
-const attachments_ui = mock_esm("../../static/js/attachments_ui");
-const bot_data = mock_esm("../../static/js/bot_data");
-const compose_pm_pill = mock_esm("../../static/js/compose_pm_pill");
-const composebox_typeahead = mock_esm("../../static/js/composebox_typeahead");
-const dark_theme = mock_esm("../../static/js/dark_theme");
-const emoji_picker = mock_esm("../../static/js/emoji_picker");
-const hotspots = mock_esm("../../static/js/hotspots");
-const linkifiers = mock_esm("../../static/js/linkifiers");
-const message_events = mock_esm("../../static/js/message_events");
-const message_lists = mock_esm("../../static/js/message_lists");
-const muted_topics_ui = mock_esm("../../static/js/muted_topics_ui");
-const muted_users_ui = mock_esm("../../static/js/muted_users_ui");
-const notifications = mock_esm("../../static/js/notifications");
-const pm_list = mock_esm("../../static/js/pm_list");
-const reactions = mock_esm("../../static/js/reactions");
-const realm_icon = mock_esm("../../static/js/realm_icon");
-const realm_logo = mock_esm("../../static/js/realm_logo");
-const realm_playground = mock_esm("../../static/js/realm_playground");
-const reload = mock_esm("../../static/js/reload");
-const scroll_bar = mock_esm("../../static/js/scroll_bar");
-const settings_account = mock_esm("../../static/js/settings_account");
-const settings_bots = mock_esm("../../static/js/settings_bots");
-const settings_display = mock_esm("../../static/js/settings_display");
-const settings_emoji = mock_esm("../../static/js/settings_emoji");
-const settings_exports = mock_esm("../../static/js/settings_exports");
-const settings_invites = mock_esm("../../static/js/settings_invites");
-const settings_linkifiers = mock_esm("../../static/js/settings_linkifiers");
-const settings_playgrounds = mock_esm("../../static/js/settings_playgrounds");
-const settings_notifications = mock_esm("../../static/js/settings_notifications");
-const settings_org = mock_esm("../../static/js/settings_org");
-const settings_profile_fields = mock_esm("../../static/js/settings_profile_fields");
+const activity = mock_esm("../../web/src/activity");
+const alert_words_ui = mock_esm("../../web/src/alert_words_ui");
+const attachments_ui = mock_esm("../../web/src/attachments_ui");
+const bot_data = mock_esm("../../web/src/bot_data");
+const compose_pm_pill = mock_esm("../../web/src/compose_pm_pill");
+const composebox_typeahead = mock_esm("../../web/src/composebox_typeahead");
+const dark_theme = mock_esm("../../web/src/dark_theme");
+const emoji_picker = mock_esm("../../web/src/emoji_picker");
+const hotspots = mock_esm("../../web/src/hotspots");
+const linkifiers = mock_esm("../../web/src/linkifiers");
+const message_events = mock_esm("../../web/src/message_events");
+const message_lists = mock_esm("../../web/src/message_lists");
+const muted_topics_ui = mock_esm("../../web/src/muted_topics_ui");
+const muted_users_ui = mock_esm("../../web/src/muted_users_ui");
+const notifications = mock_esm("../../web/src/notifications");
+const pm_list = mock_esm("../../web/src/pm_list");
+const reactions = mock_esm("../../web/src/reactions");
+const realm_icon = mock_esm("../../web/src/realm_icon");
+const realm_logo = mock_esm("../../web/src/realm_logo");
+const realm_playground = mock_esm("../../web/src/realm_playground");
+const reload = mock_esm("../../web/src/reload");
+const scroll_bar = mock_esm("../../web/src/scroll_bar");
+const settings_account = mock_esm("../../web/src/settings_account");
+const settings_bots = mock_esm("../../web/src/settings_bots");
+const settings_display = mock_esm("../../web/src/settings_display");
+const settings_emoji = mock_esm("../../web/src/settings_emoji");
+const settings_exports = mock_esm("../../web/src/settings_exports");
+const settings_invites = mock_esm("../../web/src/settings_invites");
+const settings_linkifiers = mock_esm("../../web/src/settings_linkifiers");
+const settings_playgrounds = mock_esm("../../web/src/settings_playgrounds");
+const settings_notifications = mock_esm("../../web/src/settings_notifications");
+const settings_org = mock_esm("../../web/src/settings_org");
+const settings_profile_fields = mock_esm("../../web/src/settings_profile_fields");
const settings_realm_user_settings_defaults = mock_esm(
- "../../static/js/settings_realm_user_settings_defaults",
+ "../../web/src/settings_realm_user_settings_defaults",
);
-const settings_realm_domains = mock_esm("../../static/js/settings_realm_domains");
-const settings_streams = mock_esm("../../static/js/settings_streams");
-const settings_user_groups_legacy = mock_esm("../../static/js/settings_user_groups_legacy");
-const settings_users = mock_esm("../../static/js/settings_users");
-const stream_data = mock_esm("../../static/js/stream_data");
-const stream_events = mock_esm("../../static/js/stream_events");
-const stream_list = mock_esm("../../static/js/stream_list");
-const stream_settings_ui = mock_esm("../../static/js/stream_settings_ui");
-const stream_topic_history = mock_esm("../../static/js/stream_topic_history");
-const submessage = mock_esm("../../static/js/submessage");
-mock_esm("../../static/js/top_left_corner", {
+const settings_realm_domains = mock_esm("../../web/src/settings_realm_domains");
+const settings_streams = mock_esm("../../web/src/settings_streams");
+const settings_user_groups_legacy = mock_esm("../../web/src/settings_user_groups_legacy");
+const settings_users = mock_esm("../../web/src/settings_users");
+const stream_data = mock_esm("../../web/src/stream_data");
+const stream_events = mock_esm("../../web/src/stream_events");
+const stream_list = mock_esm("../../web/src/stream_list");
+const stream_settings_ui = mock_esm("../../web/src/stream_settings_ui");
+const stream_topic_history = mock_esm("../../web/src/stream_topic_history");
+const submessage = mock_esm("../../web/src/submessage");
+mock_esm("../../web/src/top_left_corner", {
update_starred_count() {},
});
-const typing_events = mock_esm("../../static/js/typing_events");
-const ui = mock_esm("../../static/js/ui");
-const unread_ops = mock_esm("../../static/js/unread_ops");
-const user_events = mock_esm("../../static/js/user_events");
-const user_groups = mock_esm("../../static/js/user_groups");
-const user_group_edit = mock_esm("../../static/js/user_group_edit");
-const overlays = mock_esm("../../static/js/overlays");
-const user_groups_settings_ui = mock_esm("../../static/js/user_groups_settings_ui");
-mock_esm("../../static/js/giphy");
+const typing_events = mock_esm("../../web/src/typing_events");
+const ui = mock_esm("../../web/src/ui");
+const unread_ops = mock_esm("../../web/src/unread_ops");
+const user_events = mock_esm("../../web/src/user_events");
+const user_groups = mock_esm("../../web/src/user_groups");
+const user_group_edit = mock_esm("../../web/src/user_group_edit");
+const overlays = mock_esm("../../web/src/overlays");
+const user_groups_settings_ui = mock_esm("../../web/src/user_groups_settings_ui");
+mock_esm("../../web/src/giphy");
const electron_bridge = set_global("electron_bridge", {});
@@ -125,7 +125,7 @@ people.add_active_user(test_user);
message_helper.process_new_message(test_message);
const realm_emoji = {};
-const emoji_codes = zrequire("../generated/emoji/emoji_codes.json");
+const emoji_codes = zrequire("../../static/generated/emoji/emoji_codes.json");
emoji.initialize({realm_emoji, emoji_codes});
diff --git a/frontend_tests/node_tests/dispatch_subs.js b/frontend_tests/node_tests/dispatch_subs.js
index 086ed3cf7e2..43cdb2698d9 100644
--- a/frontend_tests/node_tests/dispatch_subs.js
+++ b/frontend_tests/node_tests/dispatch_subs.js
@@ -13,15 +13,15 @@ const events = require("./lib/events");
const event_fixtures = events.fixtures;
const test_user = events.test_user;
-const compose_fade = mock_esm("../../static/js/compose_fade");
-const message_lists = mock_esm("../../static/js/message_lists");
-const narrow_state = mock_esm("../../static/js/narrow_state");
-const overlays = mock_esm("../../static/js/overlays");
-const settings_org = mock_esm("../../static/js/settings_org");
-const settings_streams = mock_esm("../../static/js/settings_streams");
-const stream_events = mock_esm("../../static/js/stream_events");
-const stream_list = mock_esm("../../static/js/stream_list");
-const stream_settings_ui = mock_esm("../../static/js/stream_settings_ui");
+const compose_fade = mock_esm("../../web/src/compose_fade");
+const message_lists = mock_esm("../../web/src/message_lists");
+const narrow_state = mock_esm("../../web/src/narrow_state");
+const overlays = mock_esm("../../web/src/overlays");
+const settings_org = mock_esm("../../web/src/settings_org");
+const settings_streams = mock_esm("../../web/src/settings_streams");
+const stream_events = mock_esm("../../web/src/stream_events");
+const stream_list = mock_esm("../../web/src/stream_list");
+const stream_settings_ui = mock_esm("../../web/src/stream_settings_ui");
message_lists.current = {};
const peer_data = zrequire("peer_data");
diff --git a/frontend_tests/node_tests/drafts.js b/frontend_tests/node_tests/drafts.js
index 4b4d07a5c34..512c8b72d26 100644
--- a/frontend_tests/node_tests/drafts.js
+++ b/frontend_tests/node_tests/drafts.js
@@ -29,10 +29,10 @@ set_global("setTimeout", (f, delay) => {
assert.equal(delay, setTimeout_delay);
f();
});
-mock_esm("../../static/js/markdown", {
+mock_esm("../../web/src/markdown", {
apply_markdown: noop,
});
-mock_esm("../../static/js/overlays", {
+mock_esm("../../web/src/overlays", {
open_overlay: noop,
});
diff --git a/frontend_tests/node_tests/dropdown_list_widget.js b/frontend_tests/node_tests/dropdown_list_widget.js
index 3392c1918af..66a38e88a6f 100644
--- a/frontend_tests/node_tests/dropdown_list_widget.js
+++ b/frontend_tests/node_tests/dropdown_list_widget.js
@@ -9,7 +9,7 @@ const blueslip = require("../zjsunit/zblueslip");
const $ = require("../zjsunit/zjquery");
const noop = () => {};
-mock_esm("../../static/js/list_widget", {
+mock_esm("../../web/src/list_widget", {
create: () => ({init: noop}),
});
diff --git a/frontend_tests/node_tests/echo.js b/frontend_tests/node_tests/echo.js
index b2a9e2e2063..49b910aba35 100644
--- a/frontend_tests/node_tests/echo.js
+++ b/frontend_tests/node_tests/echo.js
@@ -9,23 +9,23 @@ const {make_stub} = require("../zjsunit/stub");
const {run_test} = require("../zjsunit/test");
const {page_params} = require("../zjsunit/zpage_params");
-const markdown = mock_esm("../../static/js/markdown");
-const message_lists = mock_esm("../../static/js/message_lists");
-const notifications = mock_esm("../../static/js/notifications");
+const markdown = mock_esm("../../web/src/markdown");
+const message_lists = mock_esm("../../web/src/message_lists");
+const notifications = mock_esm("../../web/src/notifications");
let disparities = [];
-mock_esm("../../static/js/ui", {
+mock_esm("../../web/src/ui", {
show_failed_message_success() {},
});
-mock_esm("../../static/js/sent_messages", {
+mock_esm("../../web/src/sent_messages", {
mark_disparity(local_id) {
disparities.push(local_id);
},
});
-const message_store = mock_esm("../../static/js/message_store", {
+const message_store = mock_esm("../../web/src/message_store", {
get: () => ({failed_request: true}),
update_booleans() {},
diff --git a/frontend_tests/node_tests/emoji.js b/frontend_tests/node_tests/emoji.js
index a16c7bb5164..e6aa9eb84ea 100644
--- a/frontend_tests/node_tests/emoji.js
+++ b/frontend_tests/node_tests/emoji.js
@@ -5,7 +5,7 @@ const {strict: assert} = require("assert");
const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const emoji_codes = zrequire("../generated/emoji/emoji_codes.json");
+const emoji_codes = zrequire("../../static/generated/emoji/emoji_codes.json");
const events = require("./lib/events");
diff --git a/frontend_tests/node_tests/emoji_picker.js b/frontend_tests/node_tests/emoji_picker.js
index 5aeb4541e76..f915cbf2e7e 100644
--- a/frontend_tests/node_tests/emoji_picker.js
+++ b/frontend_tests/node_tests/emoji_picker.js
@@ -10,7 +10,7 @@ const {run_test} = require("../zjsunit/test");
const emoji = zrequire("emoji");
const emoji_picker = zrequire("emoji_picker");
-const emoji_codes = zrequire("../generated/emoji/emoji_codes.json");
+const emoji_codes = zrequire("../../static/generated/emoji/emoji_codes.json");
run_test("initialize", () => {
emoji.initialize({
diff --git a/frontend_tests/node_tests/event_status.js b/frontend_tests/node_tests/event_status.js
index 40db98864f1..bf080e7ae31 100644
--- a/frontend_tests/node_tests/event_status.js
+++ b/frontend_tests/node_tests/event_status.js
@@ -7,7 +7,7 @@ const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
const event_status = zrequire("billing/event_status");
-const helpers = mock_esm("../../static/js/billing/helpers");
+const helpers = mock_esm("../../web/src/billing/helpers");
run_test("initialize_retry_with_another_card_link_click_handler", ({override}) => {
override(helpers, "create_ajax_request", (url, form_name, ignored_inputs, method, callback) => {
diff --git a/frontend_tests/node_tests/example3.js b/frontend_tests/node_tests/example3.js
index 5551d8849e6..3452370c680 100644
--- a/frontend_tests/node_tests/example3.js
+++ b/frontend_tests/node_tests/example3.js
@@ -11,7 +11,7 @@ const {page_params} = require("../zjsunit/zpage_params");
// narrows more broadly, but first let's test out a core piece of
// code that makes things work.
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
const stream_data = zrequire("stream_data");
// This is the first time we have to deal with page_params.
diff --git a/frontend_tests/node_tests/example4.js b/frontend_tests/node_tests/example4.js
index f80fafe0221..9c744e1e5e2 100644
--- a/frontend_tests/node_tests/example4.js
+++ b/frontend_tests/node_tests/example4.js
@@ -55,10 +55,10 @@ const {run_test} = require("../zjsunit/test");
*/
// We are going to use mock versions of some of our libraries.
-const activity = mock_esm("../../static/js/activity");
-const message_live_update = mock_esm("../../static/js/message_live_update");
-const pm_list = mock_esm("../../static/js/pm_list");
-const settings_users = mock_esm("../../static/js/settings_users");
+const activity = mock_esm("../../web/src/activity");
+const message_live_update = mock_esm("../../web/src/message_live_update");
+const pm_list = mock_esm("../../web/src/pm_list");
+const settings_users = mock_esm("../../web/src/settings_users");
// Use real versions of these modules.
const people = zrequire("people");
diff --git a/frontend_tests/node_tests/example5.js b/frontend_tests/node_tests/example5.js
index 26cdd498fb4..14ff97d0ece 100644
--- a/frontend_tests/node_tests/example5.js
+++ b/frontend_tests/node_tests/example5.js
@@ -20,15 +20,15 @@ const {run_test} = require("../zjsunit/test");
// First we tell the compiler to skip certain modules and just
// replace them with {}.
-const huddle_data = mock_esm("../../static/js/huddle_data");
-const message_lists = mock_esm("../../static/js/message_lists");
-const message_util = mock_esm("../../static/js/message_util");
-const notifications = mock_esm("../../static/js/notifications");
-const pm_list = mock_esm("../../static/js/pm_list");
-const recent_topics_data = mock_esm("../../static/js/recent_topics_data");
-const stream_list = mock_esm("../../static/js/stream_list");
-const unread_ops = mock_esm("../../static/js/unread_ops");
-const unread_ui = mock_esm("../../static/js/unread_ui");
+const huddle_data = mock_esm("../../web/src/huddle_data");
+const message_lists = mock_esm("../../web/src/message_lists");
+const message_util = mock_esm("../../web/src/message_util");
+const notifications = mock_esm("../../web/src/notifications");
+const pm_list = mock_esm("../../web/src/pm_list");
+const recent_topics_data = mock_esm("../../web/src/recent_topics_data");
+const stream_list = mock_esm("../../web/src/stream_list");
+const unread_ops = mock_esm("../../web/src/unread_ops");
+const unread_ui = mock_esm("../../web/src/unread_ui");
message_lists.home = {};
diff --git a/frontend_tests/node_tests/example7.js b/frontend_tests/node_tests/example7.js
index 342a615fbf5..d94e3519e2d 100644
--- a/frontend_tests/node_tests/example7.js
+++ b/frontend_tests/node_tests/example7.js
@@ -49,11 +49,11 @@ const {run_test} = require("../zjsunit/test");
value.)
*/
-const channel = mock_esm("../../static/js/channel");
-const message_lists = mock_esm("../../static/js/message_lists");
-const message_viewport = mock_esm("../../static/js/message_viewport");
-const notifications = mock_esm("../../static/js/notifications");
-const unread_ui = mock_esm("../../static/js/unread_ui");
+const channel = mock_esm("../../web/src/channel");
+const message_lists = mock_esm("../../web/src/message_lists");
+const message_viewport = mock_esm("../../web/src/message_viewport");
+const notifications = mock_esm("../../web/src/notifications");
+const unread_ui = mock_esm("../../web/src/unread_ui");
message_lists.current = {};
message_lists.home = {};
diff --git a/frontend_tests/node_tests/example8.js b/frontend_tests/node_tests/example8.js
index d3931ae1ffa..68a7e41063d 100644
--- a/frontend_tests/node_tests/example8.js
+++ b/frontend_tests/node_tests/example8.js
@@ -90,7 +90,7 @@ run_test("typing_events.render_notifications_for_narrow", ({override, mock_templ
const two_typing_users_rendered_html = "Two typing users rendered html stub";
// As you can see below, the first argument of mock_template takes
- // the relative path of the template we want to mock w.r.t static/templates/
+ // the relative path of the template we want to mock w.r.t web/templates/
//
// The second argument takes a boolean determining whether to render html.
// We mostly set this to `false` and recommend you avoid setting this to `true`
diff --git a/frontend_tests/node_tests/fenced_code.js b/frontend_tests/node_tests/fenced_code.js
index df7e1da3837..dbd42db3dec 100644
--- a/frontend_tests/node_tests/fenced_code.js
+++ b/frontend_tests/node_tests/fenced_code.js
@@ -5,7 +5,7 @@ const {strict: assert} = require("assert");
const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const fenced_code = zrequire("../shared/js/fenced_code");
+const fenced_code = zrequire("../shared/src/fenced_code");
// Check the default behavior of fenced code blocks
// works properly before Markdown is initialized.
diff --git a/frontend_tests/node_tests/fetch_status.js b/frontend_tests/node_tests/fetch_status.js
index 34e1ebaee85..8984254e2c3 100644
--- a/frontend_tests/node_tests/fetch_status.js
+++ b/frontend_tests/node_tests/fetch_status.js
@@ -5,7 +5,7 @@ const {strict: assert} = require("assert");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-mock_esm("../../static/js/message_scroll", {
+mock_esm("../../web/src/message_scroll", {
hide_loading_older() {},
show_loading_older() {},
diff --git a/frontend_tests/node_tests/filter.js b/frontend_tests/node_tests/filter.js
index bf4ec69bd86..03f43719a5d 100644
--- a/frontend_tests/node_tests/filter.js
+++ b/frontend_tests/node_tests/filter.js
@@ -10,12 +10,12 @@ const blueslip = require("../zjsunit/zblueslip");
const $ = require("../zjsunit/zjquery");
const {page_params} = require("../zjsunit/zpage_params");
-const message_store = mock_esm("../../static/js/message_store");
+const message_store = mock_esm("../../web/src/message_store");
-const resolved_topic = zrequire("../shared/js/resolved_topic");
+const resolved_topic = zrequire("../shared/src/resolved_topic");
const stream_data = zrequire("stream_data");
const people = zrequire("people");
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
const me = {
diff --git a/frontend_tests/node_tests/hashchange.js b/frontend_tests/node_tests/hashchange.js
index 98625fef021..e173952fbcf 100644
--- a/frontend_tests/node_tests/hashchange.js
+++ b/frontend_tests/node_tests/hashchange.js
@@ -11,24 +11,24 @@ const {user_settings} = require("../zjsunit/zpage_params");
let $window_stub;
set_global("to_$", () => $window_stub);
-mock_esm("../../static/js/search", {
+mock_esm("../../web/src/search", {
update_button_visibility() {},
});
set_global("document", "document-stub");
const history = set_global("history", {});
-const admin = mock_esm("../../static/js/admin");
-const drafts = mock_esm("../../static/js/drafts");
-const info_overlay = mock_esm("../../static/js/info_overlay");
-const message_viewport = mock_esm("../../static/js/message_viewport");
-const narrow = mock_esm("../../static/js/narrow");
-const overlays = mock_esm("../../static/js/overlays");
-const recent_topics_ui = mock_esm("../../static/js/recent_topics_ui");
-const settings = mock_esm("../../static/js/settings");
-const stream_settings_ui = mock_esm("../../static/js/stream_settings_ui");
-const ui_util = mock_esm("../../static/js/ui_util");
-const ui_report = mock_esm("../../static/js/ui_report");
-mock_esm("../../static/js/top_left_corner", {
+const admin = mock_esm("../../web/src/admin");
+const drafts = mock_esm("../../web/src/drafts");
+const info_overlay = mock_esm("../../web/src/info_overlay");
+const message_viewport = mock_esm("../../web/src/message_viewport");
+const narrow = mock_esm("../../web/src/narrow");
+const overlays = mock_esm("../../web/src/overlays");
+const recent_topics_ui = mock_esm("../../web/src/recent_topics_ui");
+const settings = mock_esm("../../web/src/settings");
+const stream_settings_ui = mock_esm("../../web/src/stream_settings_ui");
+const ui_util = mock_esm("../../web/src/ui_util");
+const ui_report = mock_esm("../../web/src/ui_report");
+mock_esm("../../web/src/top_left_corner", {
handle_narrow_deactivated() {},
});
set_global("favicon", {});
diff --git a/frontend_tests/node_tests/hotkey.js b/frontend_tests/node_tests/hotkey.js
index e441e3b0d45..bed835fe326 100644
--- a/frontend_tests/node_tests/hotkey.js
+++ b/frontend_tests/node_tests/hotkey.js
@@ -31,24 +31,24 @@ set_global("navigator", {
// jQuery stuff should go away if we make an initialize() method.
set_global("document", "document-stub");
-const browser_history = mock_esm("../../static/js/browser_history");
-const compose_actions = mock_esm("../../static/js/compose_actions");
-const condense = mock_esm("../../static/js/condense");
-const drafts = mock_esm("../../static/js/drafts");
-const emoji_picker = mock_esm("../../static/js/emoji_picker", {
+const browser_history = mock_esm("../../web/src/browser_history");
+const compose_actions = mock_esm("../../web/src/compose_actions");
+const condense = mock_esm("../../web/src/condense");
+const drafts = mock_esm("../../web/src/drafts");
+const emoji_picker = mock_esm("../../web/src/emoji_picker", {
reactions_popped: () => false,
});
-const gear_menu = mock_esm("../../static/js/gear_menu", {
+const gear_menu = mock_esm("../../web/src/gear_menu", {
is_open: () => false,
});
-const lightbox = mock_esm("../../static/js/lightbox");
-const list_util = mock_esm("../../static/js/list_util");
-const message_edit = mock_esm("../../static/js/message_edit");
-const message_lists = mock_esm("../../static/js/message_lists");
-const muted_topics_ui = mock_esm("../../static/js/muted_topics_ui");
-const narrow = mock_esm("../../static/js/narrow");
-const navigate = mock_esm("../../static/js/navigate");
-const overlays = mock_esm("../../static/js/overlays", {
+const lightbox = mock_esm("../../web/src/lightbox");
+const list_util = mock_esm("../../web/src/list_util");
+const message_edit = mock_esm("../../web/src/message_edit");
+const message_lists = mock_esm("../../web/src/message_lists");
+const muted_topics_ui = mock_esm("../../web/src/muted_topics_ui");
+const narrow = mock_esm("../../web/src/narrow");
+const navigate = mock_esm("../../web/src/navigate");
+const overlays = mock_esm("../../web/src/overlays", {
is_active: () => false,
settings_open: () => false,
streams_open: () => false,
@@ -58,31 +58,31 @@ const overlays = mock_esm("../../static/js/overlays", {
is_modal_open: () => false,
is_overlay_or_modal_open: () => overlays.is_modal_open() || overlays.is_active(),
});
-const popovers = mock_esm("../../static/js/popovers", {
+const popovers = mock_esm("../../web/src/popovers", {
user_info_manage_menu_popped: () => false,
message_info_popped: () => false,
user_sidebar_popped: () => false,
user_info_popped: () => false,
});
-const popover_menus = mock_esm("../../static/js/popover_menus", {
+const popover_menus = mock_esm("../../web/src/popover_menus", {
actions_popped: () => false,
});
-const reactions = mock_esm("../../static/js/reactions");
-const search = mock_esm("../../static/js/search");
-const settings_data = mock_esm("../../static/js/settings_data");
-const stream_list = mock_esm("../../static/js/stream_list");
-const stream_settings_ui = mock_esm("../../static/js/stream_settings_ui");
+const reactions = mock_esm("../../web/src/reactions");
+const search = mock_esm("../../web/src/search");
+const settings_data = mock_esm("../../web/src/settings_data");
+const stream_list = mock_esm("../../web/src/stream_list");
+const stream_settings_ui = mock_esm("../../web/src/stream_settings_ui");
-mock_esm("../../static/js/hotspots", {
+mock_esm("../../web/src/hotspots", {
is_open: () => false,
});
-mock_esm("../../static/js/recent_topics_util", {
+mock_esm("../../web/src/recent_topics_util", {
is_visible: () => false,
is_in_focus: () => false,
});
-const stream_popover = mock_esm("../../static/js/stream_popover", {
+const stream_popover = mock_esm("../../web/src/stream_popover", {
stream_popped: () => false,
topic_popped: () => false,
all_messages_popped: () => false,
@@ -109,7 +109,7 @@ message_lists.current = {
const activity = zrequire("activity");
const emoji = zrequire("emoji");
-const emoji_codes = zrequire("../generated/emoji/emoji_codes.json");
+const emoji_codes = zrequire("../../static/generated/emoji/emoji_codes.json");
const hotkey = zrequire("hotkey");
emoji.initialize({
diff --git a/frontend_tests/node_tests/i18n.js b/frontend_tests/node_tests/i18n.js
index e0db82a237c..d0361993d13 100644
--- a/frontend_tests/node_tests/i18n.js
+++ b/frontend_tests/node_tests/i18n.js
@@ -22,13 +22,13 @@ page_params.translation_data = {
// Re-register Zulip extensions so extensions registered previously with
// mocked i18n.ts do not interfere with following tests.
-require("../../static/js/templates");
+require("../../web/src/templates");
// All of our other tests stub out i18n activity;
// here we do a quick sanity check on the engine itself.
// `i18n.js` initializes FormatJS and is imported by
// `templates.js`.
-unmock_module("../../static/js/i18n");
+unmock_module("../../web/src/i18n");
const {$t, $t_html, get_language_name, get_language_list_columns, initialize} = zrequire("i18n");
run_test("$t", () => {
@@ -89,7 +89,7 @@ run_test("t_tag", ({mock_template}) => {
assert.ok(html.indexOf("Citer et répondre ou transférer") > 0);
});
- require("../../static/templates/actions_popover_content.hbs")(args);
+ require("../../web/templates/actions_popover_content.hbs")(args);
});
run_test("tr_tag", ({mock_template}) => {
@@ -117,7 +117,7 @@ run_test("tr_tag", ({mock_template}) => {
assert.equal(data, args);
assert.ok(html.indexOf("Déclencheurs de notification") > 0);
});
- require("../../static/templates/settings_tab.hbs")(args);
+ require("../../web/templates/settings_tab.hbs")(args);
});
run_test("language_list", () => {
diff --git a/frontend_tests/node_tests/input_pill.js b/frontend_tests/node_tests/input_pill.js
index 1678264141d..a21d6ae4c66 100644
--- a/frontend_tests/node_tests/input_pill.js
+++ b/frontend_tests/node_tests/input_pill.js
@@ -12,7 +12,7 @@ set_global("document", {});
const noop = () => {};
const example_img_link = "http://example.com/example.png";
-mock_esm("../../static/js/ui_util", {
+mock_esm("../../web/src/ui_util", {
place_caret_at_end: noop,
});
@@ -40,7 +40,7 @@ function pill_html(value, img_src, status_emoji_info) {
opts.status_emoji_info = status_emoji_info;
}
- return require("../../static/templates/input_pill.hbs")(opts);
+ return require("../../web/templates/input_pill.hbs")(opts);
}
run_test("basics", ({mock_template}) => {
diff --git a/frontend_tests/node_tests/internal_url.js b/frontend_tests/node_tests/internal_url.js
index 8e1e0d4246a..88ffd75b498 100644
--- a/frontend_tests/node_tests/internal_url.js
+++ b/frontend_tests/node_tests/internal_url.js
@@ -5,7 +5,7 @@ const {strict: assert} = require("assert");
const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const internal_url = zrequire("../shared/js/internal_url");
+const internal_url = zrequire("../shared/src/internal_url");
run_test("test encodeHashComponent", () => {
const decoded = "https://www.zulipexample.com";
diff --git a/frontend_tests/node_tests/lib/compose_banner.js b/frontend_tests/node_tests/lib/compose_banner.js
index 8249afe605b..0055e768b10 100644
--- a/frontend_tests/node_tests/lib/compose_banner.js
+++ b/frontend_tests/node_tests/lib/compose_banner.js
@@ -1,6 +1,6 @@
"use strict";
-const compose_banner = require("../../../static/js/compose_banner");
+const compose_banner = require("../../../web/src/compose_banner");
const $ = require("../../zjsunit/zjquery");
exports.mock_banners = () => {
diff --git a/frontend_tests/node_tests/lightbox.js b/frontend_tests/node_tests/lightbox.js
index 280a9d44bf8..87405b5114f 100644
--- a/frontend_tests/node_tests/lightbox.js
+++ b/frontend_tests/node_tests/lightbox.js
@@ -7,18 +7,18 @@ const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
set_global("Image", class Image {});
-mock_esm("../../static/js/overlays", {
+mock_esm("../../web/src/overlays", {
close_overlay() {},
close_active() {},
open_overlay() {},
});
-mock_esm("../../static/js/popovers", {
+mock_esm("../../web/src/popovers", {
hide_all() {},
});
-const rows = mock_esm("../../static/js/rows");
+const rows = mock_esm("../../web/src/rows");
-const message_store = mock_esm("../../static/js/message_store");
+const message_store = mock_esm("../../web/src/message_store");
const lightbox = zrequire("lightbox");
diff --git a/frontend_tests/node_tests/list_widget.js b/frontend_tests/node_tests/list_widget.js
index 3e07c7be9d2..41cb63fcede 100644
--- a/frontend_tests/node_tests/list_widget.js
+++ b/frontend_tests/node_tests/list_widget.js
@@ -10,7 +10,7 @@ const blueslip = require("../zjsunit/zblueslip");
// The ListWidget library allows you to insert objects
// that are either jQuery, Element, or just raw HTML
// strings. We initially test with raw strings.
-const ui = mock_esm("../../static/js/ui");
+const ui = mock_esm("../../web/src/ui");
// We only need very simple jQuery wrappers for when the
diff --git a/frontend_tests/node_tests/markdown.js b/frontend_tests/node_tests/markdown.js
index 95c101b5b0c..d9ec9ce834e 100644
--- a/frontend_tests/node_tests/markdown.js
+++ b/frontend_tests/node_tests/markdown.js
@@ -30,10 +30,10 @@ user_settings.translate_emoticons = false;
set_global("document", {compatMode: "CSS1Compat"});
const emoji = zrequire("emoji");
-const emoji_codes = zrequire("../generated/emoji/emoji_codes.json");
+const emoji_codes = zrequire("../../static/generated/emoji/emoji_codes.json");
const linkifiers = zrequire("linkifiers");
const pygments_data = zrequire("../generated/pygments_data.json");
-const fenced_code = zrequire("../shared/js/fenced_code");
+const fenced_code = zrequire("../shared/src/fenced_code");
const markdown_config = zrequire("markdown_config");
const markdown = zrequire("markdown");
const people = zrequire("people");
diff --git a/frontend_tests/node_tests/message_edit.js b/frontend_tests/node_tests/message_edit.js
index ffd8e73cb80..f3f5d80c985 100644
--- a/frontend_tests/node_tests/message_edit.js
+++ b/frontend_tests/node_tests/message_edit.js
@@ -12,7 +12,7 @@ const message_edit = zrequire("message_edit");
const is_content_editable = message_edit.is_content_editable;
-const settings_data = mock_esm("../../static/js/settings_data");
+const settings_data = mock_esm("../../web/src/settings_data");
run_test("is_content_editable", () => {
// You can't edit a null message
diff --git a/frontend_tests/node_tests/message_events.js b/frontend_tests/node_tests/message_events.js
index 1f45902815e..3a84c28bb1d 100644
--- a/frontend_tests/node_tests/message_events.js
+++ b/frontend_tests/node_tests/message_events.js
@@ -7,13 +7,13 @@ const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
const {page_params} = require("../zjsunit/zpage_params");
-const condense = mock_esm("../../static/js/condense");
-const message_edit = mock_esm("../../static/js/message_edit");
-const message_lists = mock_esm("../../static/js/message_lists");
-const notifications = mock_esm("../../static/js/notifications");
-const pm_list = mock_esm("../../static/js/pm_list");
-const stream_list = mock_esm("../../static/js/stream_list");
-const unread_ui = mock_esm("../../static/js/unread_ui");
+const condense = mock_esm("../../web/src/condense");
+const message_edit = mock_esm("../../web/src/message_edit");
+const message_lists = mock_esm("../../web/src/message_lists");
+const notifications = mock_esm("../../web/src/notifications");
+const pm_list = mock_esm("../../web/src/pm_list");
+const stream_list = mock_esm("../../web/src/stream_list");
+const unread_ui = mock_esm("../../web/src/unread_ui");
message_lists.current = {};
message_lists.all_rendered_message_lists = () => [message_lists.home, message_lists.current];
diff --git a/frontend_tests/node_tests/message_fetch.js b/frontend_tests/node_tests/message_fetch.js
index 552874bbb8d..5e8c4a17a70 100644
--- a/frontend_tests/node_tests/message_fetch.js
+++ b/frontend_tests/node_tests/message_fetch.js
@@ -20,27 +20,27 @@ function MessageListView() {
prepend: noop,
};
}
-mock_esm("../../static/js/message_list_view", {
+mock_esm("../../web/src/message_list_view", {
MessageListView,
});
-mock_esm("../../static/js/recent_topics_ui", {
+mock_esm("../../web/src/recent_topics_ui", {
process_messages: noop,
show_loading_indicator: noop,
hide_loading_indicator: noop,
});
-mock_esm("../../static/js/ui_report", {
+mock_esm("../../web/src/ui_report", {
hide_error: noop,
});
-const channel = mock_esm("../../static/js/channel");
-const message_helper = mock_esm("../../static/js/message_helper");
-const message_lists = mock_esm("../../static/js/message_lists");
-const message_util = mock_esm("../../static/js/message_util");
-const stream_list = mock_esm("../../static/js/stream_list", {
+const channel = mock_esm("../../web/src/channel");
+const message_helper = mock_esm("../../web/src/message_helper");
+const message_lists = mock_esm("../../web/src/message_lists");
+const message_util = mock_esm("../../web/src/message_util");
+const stream_list = mock_esm("../../web/src/stream_list", {
maybe_scroll_narrow_into_view() {},
});
-mock_esm("../../static/js/message_scroll", {
+mock_esm("../../web/src/message_scroll", {
show_loading_older: noop,
hide_loading_older: noop,
show_loading_newer: noop,
@@ -52,7 +52,7 @@ set_global("document", "document-stub");
const message_fetch = zrequire("message_fetch");
const {all_messages_data} = zrequire("all_messages_data");
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
const message_list = zrequire("message_list");
const people = zrequire("people");
diff --git a/frontend_tests/node_tests/message_flags.js b/frontend_tests/node_tests/message_flags.js
index 3918a4eb6cc..73d391108b4 100644
--- a/frontend_tests/node_tests/message_flags.js
+++ b/frontend_tests/node_tests/message_flags.js
@@ -5,10 +5,10 @@ const {strict: assert} = require("assert");
const {mock_esm, set_global, with_overrides, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const channel = mock_esm("../../static/js/channel");
-const ui = mock_esm("../../static/js/ui");
+const channel = mock_esm("../../web/src/channel");
+const ui = mock_esm("../../web/src/ui");
-mock_esm("../../static/js/starred_messages", {
+mock_esm("../../web/src/starred_messages", {
add() {},
get_starred_msg_ids: () => [1, 2, 3, 4, 5],
remove() {},
diff --git a/frontend_tests/node_tests/message_list.js b/frontend_tests/node_tests/message_list.js
index afdabbf479b..99efd69fd04 100644
--- a/frontend_tests/node_tests/message_list.js
+++ b/frontend_tests/node_tests/message_list.js
@@ -9,7 +9,7 @@ const blueslip = require("../zjsunit/zblueslip");
const $ = require("../zjsunit/zjquery");
const {page_params} = require("../zjsunit/zpage_params");
-// These unit tests for static/js/message_list.js emphasize the model-ish
+// These unit tests for web/src/message_list.js emphasize the model-ish
// aspects of the MessageList class. We have to stub out a few functions
// related to views and events to get the tests working.
@@ -23,8 +23,8 @@ set_global("document", {
},
});
-const narrow_state = mock_esm("../../static/js/narrow_state");
-const stream_data = mock_esm("../../static/js/stream_data");
+const narrow_state = mock_esm("../../web/src/narrow_state");
+const stream_data = mock_esm("../../web/src/stream_data");
const {MessageList} = zrequire("message_list");
function MessageListView() {
@@ -35,7 +35,7 @@ function MessageListView() {
clear_rendering_state: noop,
};
}
-mock_esm("../../static/js/message_list_view", {
+mock_esm("../../web/src/message_list_view", {
MessageListView,
});
const {Filter} = zrequire("filter");
diff --git a/frontend_tests/node_tests/message_list_data.js b/frontend_tests/node_tests/message_list_data.js
index 886776f876b..9df7f505e4f 100644
--- a/frontend_tests/node_tests/message_list_data.js
+++ b/frontend_tests/node_tests/message_list_data.js
@@ -8,7 +8,7 @@ const blueslip = require("../zjsunit/zblueslip");
const user_topics = zrequire("user_topics");
const muted_users = zrequire("muted_users");
-const {MessageListData} = zrequire("../js/message_list_data");
+const {MessageListData} = zrequire("../src/message_list_data");
const {Filter} = zrequire("filter");
function make_msg(msg_id) {
diff --git a/frontend_tests/node_tests/message_list_view.js b/frontend_tests/node_tests/message_list_view.js
index 5c15e9aabbd..41e3a44de11 100644
--- a/frontend_tests/node_tests/message_list_view.js
+++ b/frontend_tests/node_tests/message_list_view.js
@@ -13,7 +13,7 @@ set_global("document", "document-stub");
const noop = () => {};
// timerender calls setInterval when imported
-mock_esm("../../static/js/timerender", {
+mock_esm("../../web/src/timerender", {
render_date(time) {
return [{outerHTML: String(time.getTime())}];
},
@@ -22,7 +22,7 @@ mock_esm("../../static/js/timerender", {
},
});
-mock_esm("../../static/js/rows", {
+mock_esm("../../web/src/rows", {
get_table() {
return {
children() {
@@ -34,14 +34,14 @@ mock_esm("../../static/js/rows", {
},
});
-mock_esm("../../static/js/people", {
+mock_esm("../../web/src/people", {
sender_is_bot: () => false,
sender_is_guest: () => false,
small_avatar_url: () => "fake/small/avatar/url",
});
-const {Filter} = zrequire("../js/filter");
-const {MessageListView} = zrequire("../js/message_list_view");
+const {Filter} = zrequire("../src/filter");
+const {MessageListView} = zrequire("../src/message_list_view");
const message_list = zrequire("message_list");
const muted_users = zrequire("muted_users");
diff --git a/frontend_tests/node_tests/message_store.js b/frontend_tests/node_tests/message_store.js
index 52c7b0ba203..dbf12d6ba00 100644
--- a/frontend_tests/node_tests/message_store.js
+++ b/frontend_tests/node_tests/message_store.js
@@ -9,11 +9,11 @@ const {page_params} = require("../zjsunit/zpage_params");
const noop = () => {};
-mock_esm("../../static/js/stream_topic_history", {
+mock_esm("../../web/src/stream_topic_history", {
add_message: noop,
});
-mock_esm("../../static/js/recent_senders", {
+mock_esm("../../web/src/recent_senders", {
process_stream_message: noop,
process_private_message: noop,
});
diff --git a/frontend_tests/node_tests/narrow.js b/frontend_tests/node_tests/narrow.js
index 801a47bce18..554c62e8c38 100644
--- a/frontend_tests/node_tests/narrow.js
+++ b/frontend_tests/node_tests/narrow.js
@@ -14,15 +14,15 @@ const narrow_banner = zrequire("narrow_banner");
const narrow_state = zrequire("narrow_state");
const people = zrequire("people");
const stream_data = zrequire("stream_data");
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
const narrow = zrequire("narrow");
const settings_config = zrequire("settings_config");
-const compose_pm_pill = mock_esm("../../static/js/compose_pm_pill");
-mock_esm("../../static/js/spectators", {
+const compose_pm_pill = mock_esm("../../web/src/compose_pm_pill");
+mock_esm("../../web/src/spectators", {
login_to_access() {},
});
-const recent_topics_util = mock_esm("../../static/js/recent_topics_util", {
+const recent_topics_util = mock_esm("../../web/src/recent_topics_util", {
is_visible() {},
});
@@ -32,7 +32,7 @@ function empty_narrow_html(title, html, search_data) {
html,
search_data,
};
- return require("../../static/templates/empty_feed_notice.hbs")(opts);
+ return require("../../web/templates/empty_feed_notice.hbs")(opts);
}
function set_filter(operators) {
diff --git a/frontend_tests/node_tests/narrow_activate.js b/frontend_tests/node_tests/narrow_activate.js
index 8ee172ee9bc..fe9904b605a 100644
--- a/frontend_tests/node_tests/narrow_activate.js
+++ b/frontend_tests/node_tests/narrow_activate.js
@@ -6,34 +6,34 @@ const {mock_esm, set_global, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
-mock_esm("../../static/js/resize", {
+mock_esm("../../web/src/resize", {
resize_stream_filters_container() {},
});
-const all_messages_data = mock_esm("../../static/js/all_messages_data");
-const channel = mock_esm("../../static/js/channel");
-const compose_actions = mock_esm("../../static/js/compose_actions");
-const compose_banner = mock_esm("../../static/js/compose_banner");
-const compose_closed_ui = mock_esm("../../static/js/compose_closed_ui");
-const hashchange = mock_esm("../../static/js/hashchange");
-const message_fetch = mock_esm("../../static/js/message_fetch");
-const message_list = mock_esm("../../static/js/message_list");
-const message_lists = mock_esm("../../static/js/message_lists", {
+const all_messages_data = mock_esm("../../web/src/all_messages_data");
+const channel = mock_esm("../../web/src/channel");
+const compose_actions = mock_esm("../../web/src/compose_actions");
+const compose_banner = mock_esm("../../web/src/compose_banner");
+const compose_closed_ui = mock_esm("../../web/src/compose_closed_ui");
+const hashchange = mock_esm("../../web/src/hashchange");
+const message_fetch = mock_esm("../../web/src/message_fetch");
+const message_list = mock_esm("../../web/src/message_list");
+const message_lists = mock_esm("../../web/src/message_lists", {
home: {},
current: {},
set_current(msg_list) {
message_lists.current = msg_list;
},
});
-const message_scroll = mock_esm("../../static/js/message_scroll");
-const message_view_header = mock_esm("../../static/js/message_view_header");
-const notifications = mock_esm("../../static/js/notifications");
-const search = mock_esm("../../static/js/search");
-const stream_list = mock_esm("../../static/js/stream_list");
-const top_left_corner = mock_esm("../../static/js/top_left_corner");
-const typing_events = mock_esm("../../static/js/typing_events");
-const unread_ops = mock_esm("../../static/js/unread_ops");
-mock_esm("../../static/js/recent_topics_util", {
+const message_scroll = mock_esm("../../web/src/message_scroll");
+const message_view_header = mock_esm("../../web/src/message_view_header");
+const notifications = mock_esm("../../web/src/notifications");
+const search = mock_esm("../../web/src/search");
+const stream_list = mock_esm("../../web/src/stream_list");
+const top_left_corner = mock_esm("../../web/src/top_left_corner");
+const typing_events = mock_esm("../../web/src/typing_events");
+const unread_ops = mock_esm("../../web/src/unread_ops");
+mock_esm("../../web/src/recent_topics_util", {
is_visible() {},
});
@@ -45,7 +45,7 @@ set_global("setTimeout", (f, t) => {
f();
});
-mock_esm("../../static/js/user_topics", {
+mock_esm("../../web/src/user_topics", {
is_topic_muted: () => false,
});
diff --git a/frontend_tests/node_tests/narrow_local.js b/frontend_tests/node_tests/narrow_local.js
index 9ee9bf8b0be..42a62b5c0ba 100644
--- a/frontend_tests/node_tests/narrow_local.js
+++ b/frontend_tests/node_tests/narrow_local.js
@@ -5,13 +5,13 @@ const {strict: assert} = require("assert");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const all_messages_data = mock_esm("../../static/js/all_messages_data");
+const all_messages_data = mock_esm("../../web/src/all_messages_data");
-const {Filter} = zrequire("../js/filter");
-const {MessageListData} = zrequire("../js/message_list_data");
+const {Filter} = zrequire("../src/filter");
+const {MessageListData} = zrequire("../src/message_list_data");
const narrow_state = zrequire("narrow_state");
const narrow = zrequire("narrow");
-const resolved_topic = zrequire("../shared/js/resolved_topic");
+const resolved_topic = zrequire("../shared/src/resolved_topic");
function test_with(fixture) {
const filter = new Filter(fixture.filter_terms);
diff --git a/frontend_tests/node_tests/narrow_state.js b/frontend_tests/node_tests/narrow_state.js
index 9b62fd2eef7..b3d520a33f5 100644
--- a/frontend_tests/node_tests/narrow_state.js
+++ b/frontend_tests/node_tests/narrow_state.js
@@ -6,7 +6,7 @@ const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const people = zrequire("people");
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
const stream_data = zrequire("stream_data");
const narrow_state = zrequire("narrow_state");
diff --git a/frontend_tests/node_tests/narrow_unread.js b/frontend_tests/node_tests/narrow_unread.js
index 637a773e9d0..dc617744750 100644
--- a/frontend_tests/node_tests/narrow_unread.js
+++ b/frontend_tests/node_tests/narrow_unread.js
@@ -6,11 +6,11 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
-mock_esm("../../static/js/user_topics", {
+mock_esm("../../web/src/user_topics", {
is_topic_muted: () => false,
});
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
const message_store = zrequire("message_store");
const people = zrequire("people");
const stream_data = zrequire("stream_data");
diff --git a/frontend_tests/node_tests/people.js b/frontend_tests/node_tests/people.js
index 3506d08fb26..cebcacca2d3 100644
--- a/frontend_tests/node_tests/people.js
+++ b/frontend_tests/node_tests/people.js
@@ -12,7 +12,7 @@ const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
const {page_params, user_settings} = require("../zjsunit/zpage_params");
-const message_user_ids = mock_esm("../../static/js/message_user_ids");
+const message_user_ids = mock_esm("../../web/src/message_user_ids");
const muted_users = zrequire("muted_users");
const people = zrequire("people");
diff --git a/frontend_tests/node_tests/people_errors.js b/frontend_tests/node_tests/people_errors.js
index c414860d573..180a5a54727 100644
--- a/frontend_tests/node_tests/people_errors.js
+++ b/frontend_tests/node_tests/people_errors.js
@@ -6,7 +6,7 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
-const reload_state = mock_esm("../../static/js/reload_state", {
+const reload_state = mock_esm("../../web/src/reload_state", {
is_in_progress: () => false,
});
diff --git a/frontend_tests/node_tests/pill_typeahead.js b/frontend_tests/node_tests/pill_typeahead.js
index 6f292a33f5d..5be6a8bdb0e 100644
--- a/frontend_tests/node_tests/pill_typeahead.js
+++ b/frontend_tests/node_tests/pill_typeahead.js
@@ -23,7 +23,7 @@ const $fake_rendered_person = $.create("fake-rendered-person");
const $fake_rendered_stream = $.create("fake-rendered-stream");
const $fake_rendered_group = $.create("fake-rendered-group");
-mock_esm("../../static/js/typeahead_helper", {
+mock_esm("../../web/src/typeahead_helper", {
render_person() {
return $fake_rendered_person;
},
diff --git a/frontend_tests/node_tests/pm_list_data.js b/frontend_tests/node_tests/pm_list_data.js
index 2e4578fde13..f233d842967 100644
--- a/frontend_tests/node_tests/pm_list_data.js
+++ b/frontend_tests/node_tests/pm_list_data.js
@@ -5,9 +5,9 @@ const {strict: assert} = require("assert");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const unread = mock_esm("../../static/js/unread");
+const unread = mock_esm("../../web/src/unread");
-mock_esm("../../static/js/user_status", {
+mock_esm("../../web/src/user_status", {
get_status_emoji: () => ({
emoji_code: 20,
}),
diff --git a/frontend_tests/node_tests/poll_widget.js b/frontend_tests/node_tests/poll_widget.js
index 53b71bb8ae1..fd921569e3d 100644
--- a/frontend_tests/node_tests/poll_widget.js
+++ b/frontend_tests/node_tests/poll_widget.js
@@ -7,7 +7,7 @@ const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
const $ = require("../zjsunit/zjquery");
-const {PollData} = zrequire("../../static/shared/js/poll_data");
+const {PollData} = zrequire("../../web/shared/src/poll_data");
const poll_widget = zrequire("poll_widget");
diff --git a/frontend_tests/node_tests/popovers.js b/frontend_tests/node_tests/popovers.js
index 9137888da0f..9f015a4a29f 100644
--- a/frontend_tests/node_tests/popovers.js
+++ b/frontend_tests/node_tests/popovers.js
@@ -15,21 +15,21 @@ class Clipboard {
}
mock_cjs("clipboard", Clipboard);
-const rows = mock_esm("../../static/js/rows");
-mock_esm("../../static/js/emoji_picker", {
+const rows = mock_esm("../../web/src/rows");
+mock_esm("../../web/src/emoji_picker", {
hide_emoji_popover: noop,
});
-mock_esm("../../static/js/giphy", {
+mock_esm("../../web/src/giphy", {
hide_giphy_popover: noop,
});
-const message_lists = mock_esm("../../static/js/message_lists", {
+const message_lists = mock_esm("../../web/src/message_lists", {
current: {
view: {
message_containers: {},
},
},
});
-mock_esm("../../static/js/stream_popover", {
+mock_esm("../../web/src/stream_popover", {
hide_stream_popover: noop,
hide_topic_popover: noop,
hide_all_messages_popover: noop,
diff --git a/frontend_tests/node_tests/presence.js b/frontend_tests/node_tests/presence.js
index d8eb0622b5e..e525ba24687 100644
--- a/frontend_tests/node_tests/presence.js
+++ b/frontend_tests/node_tests/presence.js
@@ -7,7 +7,7 @@ const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
const {page_params, user_settings} = require("../zjsunit/zpage_params");
-const reload_state = mock_esm("../../static/js/reload_state", {
+const reload_state = mock_esm("../../web/src/reload_state", {
is_in_progress: () => false,
});
diff --git a/frontend_tests/node_tests/reactions.js b/frontend_tests/node_tests/reactions.js
index 0f2535daae3..f717f22fdc0 100644
--- a/frontend_tests/node_tests/reactions.js
+++ b/frontend_tests/node_tests/reactions.js
@@ -38,13 +38,13 @@ const sample_message = {
],
};
-const channel = mock_esm("../../static/js/channel");
-const emoji_picker = mock_esm("../../static/js/emoji_picker", {
+const channel = mock_esm("../../web/src/channel");
+const emoji_picker = mock_esm("../../web/src/emoji_picker", {
hide_emoji_popover() {},
});
-const message_lists = mock_esm("../../static/js/message_lists");
-const message_store = mock_esm("../../static/js/message_store");
-const spectators = mock_esm("../../static/js/spectators", {
+const message_lists = mock_esm("../../web/src/message_lists");
+const message_store = mock_esm("../../web/src/message_store");
+const spectators = mock_esm("../../web/src/spectators", {
login_to_access() {},
});
@@ -59,7 +59,7 @@ message_lists.current = {
set_global("document", "document-stub");
const emoji = zrequire("emoji");
-const emoji_codes = zrequire("../generated/emoji/emoji_codes.json");
+const emoji_codes = zrequire("../../static/generated/emoji/emoji_codes.json");
const people = zrequire("people");
const reactions = zrequire("reactions");
diff --git a/frontend_tests/node_tests/recent_senders.js b/frontend_tests/node_tests/recent_senders.js
index 4b3b7b8aadd..87ccdc1a734 100644
--- a/frontend_tests/node_tests/recent_senders.js
+++ b/frontend_tests/node_tests/recent_senders.js
@@ -23,10 +23,10 @@ function make_stream_message({stream_id, topic, sender_id}) {
return message;
}
-mock_esm("../../static/js/message_store", {
+mock_esm("../../web/src/message_store", {
get: (message_id) => messages.get(message_id),
});
-mock_esm("../../static/js/people", {
+mock_esm("../../web/src/people", {
my_current_user_id: () => 1,
});
diff --git a/frontend_tests/node_tests/recent_topics.js b/frontend_tests/node_tests/recent_topics.js
index 3a88d643fbd..7a38579387a 100644
--- a/frontend_tests/node_tests/recent_topics.js
+++ b/frontend_tests/node_tests/recent_topics.js
@@ -39,7 +39,7 @@ const topic10 = "topic-10";
let expected_data_to_replace_in_list_widget;
-const ListWidget = mock_esm("../../static/js/list_widget", {
+const ListWidget = mock_esm("../../web/src/list_widget", {
modifier: noop,
create(container, mapped_topic_values, opts) {
@@ -75,25 +75,25 @@ const ListWidget = mock_esm("../../static/js/list_widget", {
},
});
-mock_esm("../../static/js/compose_closed_ui", {
+mock_esm("../../web/src/compose_closed_ui", {
set_standard_text_for_reply_button: noop,
update_buttons_for_recent_topics: noop,
});
-mock_esm("../../static/js/hash_util", {
+mock_esm("../../web/src/hash_util", {
by_stream_url: test_url,
by_stream_topic_url: test_url,
by_conversation_and_time_url: test_url,
});
-mock_esm("../../static/js/message_list_data", {
+mock_esm("../../web/src/message_list_data", {
MessageListData: class {},
});
-mock_esm("../../static/js/message_store", {
+mock_esm("../../web/src/message_store", {
get: (msg_id) => messages[msg_id - 1],
});
-mock_esm("../../static/js/message_view_header", {
+mock_esm("../../web/src/message_view_header", {
render_title_area: noop,
});
-mock_esm("../../static/js/user_topics", {
+mock_esm("../../web/src/user_topics", {
is_topic_muted(stream_id, topic) {
if (stream_id === stream1 && topic === topic7) {
return true;
@@ -101,33 +101,33 @@ mock_esm("../../static/js/user_topics", {
return false;
},
});
-const narrow = mock_esm("../../static/js/narrow", {
+const narrow = mock_esm("../../web/src/narrow", {
update_narrow_title: noop,
hide_mark_as_read_turned_off_banner: noop,
handle_middle_pane_transition: noop,
has_shown_message_list_view: true,
});
-mock_esm("../../static/js/pm_list", {
+mock_esm("../../web/src/pm_list", {
update_private_messages: noop,
handle_narrow_deactivated: noop,
});
-mock_esm("../../static/js/recent_senders", {
+mock_esm("../../web/src/recent_senders", {
get_topic_recent_senders: () => [2, 1],
});
-mock_esm("../../static/js/stream_data", {
+mock_esm("../../web/src/stream_data", {
is_muted: () =>
// We only test via muted topics for now.
// TODO: Make muted streams and test them.
false,
});
-mock_esm("../../static/js/stream_list", {
+mock_esm("../../web/src/stream_list", {
handle_narrow_deactivated: noop,
});
-mock_esm("../../static/js/timerender", {
+mock_esm("../../web/src/timerender", {
last_seen_status_from_date: () => "Just now",
get_full_datetime: () => "date at time",
});
-mock_esm("../../static/js/sub_store", {
+mock_esm("../../web/src/sub_store", {
get(stream) {
if (stream === stream5) {
// No data is available for deactivated streams
@@ -142,10 +142,10 @@ mock_esm("../../static/js/sub_store", {
};
},
});
-mock_esm("../../static/js/top_left_corner", {
+mock_esm("../../web/src/top_left_corner", {
narrow_to_recent_topics: noop,
});
-mock_esm("../../static/js/unread", {
+mock_esm("../../web/src/unread", {
num_unread_for_topic(stream_id, topic) {
if (stream_id === 1 && topic === "topic-1") {
return 0;
diff --git a/frontend_tests/node_tests/rendered_markdown.js b/frontend_tests/node_tests/rendered_markdown.js
index f974563bb76..a9c8f49d526 100644
--- a/frontend_tests/node_tests/rendered_markdown.js
+++ b/frontend_tests/node_tests/rendered_markdown.js
@@ -17,7 +17,7 @@ class Clipboard {
mock_cjs("clipboard", Clipboard);
-const realm_playground = mock_esm("../../static/js/realm_playground");
+const realm_playground = mock_esm("../../web/src/realm_playground");
user_settings.emojiset = "apple";
const rm = zrequire("rendered_markdown");
diff --git a/frontend_tests/node_tests/resolved_topic.js b/frontend_tests/node_tests/resolved_topic.js
index 9627940b12b..b74708d1718 100644
--- a/frontend_tests/node_tests/resolved_topic.js
+++ b/frontend_tests/node_tests/resolved_topic.js
@@ -5,7 +5,7 @@ const {strict: assert} = require("assert");
const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const resolved_topic = zrequire("../shared/js/resolved_topic");
+const resolved_topic = zrequire("../shared/src/resolved_topic");
const topic_name = "asdf";
const resolved_name = "✔ " + topic_name;
diff --git a/frontend_tests/node_tests/scroll_util.js b/frontend_tests/node_tests/scroll_util.js
index 95644cc6aa9..b88fd5ca0bb 100644
--- a/frontend_tests/node_tests/scroll_util.js
+++ b/frontend_tests/node_tests/scroll_util.js
@@ -5,7 +5,7 @@ const {strict: assert} = require("assert");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-mock_esm("../../static/js/ui", {
+mock_esm("../../web/src/ui", {
get_scroll_element: (element) => element,
});
diff --git a/frontend_tests/node_tests/search_future.js b/frontend_tests/node_tests/search_future.js
index 038d2acb3a3..559f6f004a7 100644
--- a/frontend_tests/node_tests/search_future.js
+++ b/frontend_tests/node_tests/search_future.js
@@ -9,24 +9,24 @@ const {page_params} = require("../zjsunit/zpage_params");
const noop = () => {};
-const narrow = mock_esm("../../static/js/narrow");
-const narrow_state = mock_esm("../../static/js/narrow_state", {
+const narrow = mock_esm("../../web/src/narrow");
+const narrow_state = mock_esm("../../web/src/narrow_state", {
filter: () => false,
});
-const search_suggestion = mock_esm("../../static/js/search_suggestion");
+const search_suggestion = mock_esm("../../web/src/search_suggestion");
-mock_esm("../../static/js/search_pill_widget", {
+mock_esm("../../web/src/search_pill_widget", {
widget: {
getByElement: () => true,
},
});
-mock_esm("../../static/js/ui_util", {
+mock_esm("../../web/src/ui_util", {
place_caret_at_end: noop,
});
const search = zrequire("search");
const search_pill = zrequire("search_pill");
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
function test(label, f) {
run_test(label, ({override, mock_template}) => {
diff --git a/frontend_tests/node_tests/search_now.js b/frontend_tests/node_tests/search_now.js
index 700da3f123b..69b4fce50a7 100644
--- a/frontend_tests/node_tests/search_now.js
+++ b/frontend_tests/node_tests/search_now.js
@@ -9,13 +9,13 @@ const {page_params} = require("../zjsunit/zpage_params");
page_params.search_pills_enabled = false;
-const narrow = mock_esm("../../static/js/narrow");
-const narrow_state = mock_esm("../../static/js/narrow_state");
-const search_suggestion = mock_esm("../../static/js/search_suggestion");
+const narrow = mock_esm("../../web/src/narrow");
+const narrow_state = mock_esm("../../web/src/narrow_state");
+const search_suggestion = mock_esm("../../web/src/search_suggestion");
const Filter = {};
-mock_esm("../../static/js/filter", {
+mock_esm("../../web/src/filter", {
Filter,
});
diff --git a/frontend_tests/node_tests/search_pill.js b/frontend_tests/node_tests/search_pill.js
index a8d0583b2ae..7c1a4a72dac 100644
--- a/frontend_tests/node_tests/search_pill.js
+++ b/frontend_tests/node_tests/search_pill.js
@@ -5,7 +5,7 @@ const {strict: assert} = require("assert");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const input_pill = mock_esm("../../static/js/input_pill");
+const input_pill = mock_esm("../../web/src/input_pill");
const search_pill = zrequire("search_pill");
diff --git a/frontend_tests/node_tests/search_suggestion_future.js b/frontend_tests/node_tests/search_suggestion_future.js
index d7f1dc5efe5..84fd99c3956 100644
--- a/frontend_tests/node_tests/search_suggestion_future.js
+++ b/frontend_tests/node_tests/search_suggestion_future.js
@@ -6,8 +6,8 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const {page_params} = require("../zjsunit/zpage_params");
-const narrow_state = mock_esm("../../static/js/narrow_state");
-const stream_topic_history_util = mock_esm("../../static/js/stream_topic_history_util");
+const narrow_state = mock_esm("../../web/src/narrow_state");
+const stream_topic_history_util = mock_esm("../../web/src/stream_topic_history_util");
const huddle_data = zrequire("huddle_data");
diff --git a/frontend_tests/node_tests/search_suggestion_now.js b/frontend_tests/node_tests/search_suggestion_now.js
index bdcda11338a..c34d0e3e600 100644
--- a/frontend_tests/node_tests/search_suggestion_now.js
+++ b/frontend_tests/node_tests/search_suggestion_now.js
@@ -6,8 +6,8 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const {page_params} = require("../zjsunit/zpage_params");
-const narrow_state = mock_esm("../../static/js/narrow_state");
-const stream_topic_history_util = mock_esm("../../static/js/stream_topic_history_util");
+const narrow_state = mock_esm("../../web/src/narrow_state");
+const stream_topic_history_util = mock_esm("../../web/src/stream_topic_history_util");
const huddle_data = zrequire("huddle_data");
diff --git a/frontend_tests/node_tests/server_events.js b/frontend_tests/node_tests/server_events.js
index 6f23b7cc0f5..1e6633c76f5 100644
--- a/frontend_tests/node_tests/server_events.js
+++ b/frontend_tests/node_tests/server_events.js
@@ -18,9 +18,9 @@ set_global("document", {
});
set_global("addEventListener", noop);
-const channel = mock_esm("../../static/js/channel");
-const message_lists = mock_esm("../../static/js/message_lists");
-mock_esm("../../static/js/reload_state", {
+const channel = mock_esm("../../web/src/channel");
+const message_lists = mock_esm("../../web/src/message_lists");
+mock_esm("../../web/src/reload_state", {
is_in_progress() {
return false;
},
@@ -36,19 +36,19 @@ page_params.test_suite = false;
// we also directly write to pointer
set_global("pointer", {});
-mock_esm("../../static/js/ui_report", {
+mock_esm("../../web/src/ui_report", {
hide_error() {
return false;
},
});
-mock_esm("../../static/js/stream_events", {
+mock_esm("../../web/src/stream_events", {
update_property() {
throw new Error("subs update error");
},
});
-const message_events = mock_esm("../../static/js/message_events", {
+const message_events = mock_esm("../../web/src/message_events", {
insert_new_messages() {
throw new Error("insert error");
},
diff --git a/frontend_tests/node_tests/settings_emoji.js b/frontend_tests/node_tests/settings_emoji.js
index 387ecc4b77c..1656bbceb63 100644
--- a/frontend_tests/node_tests/settings_emoji.js
+++ b/frontend_tests/node_tests/settings_emoji.js
@@ -6,7 +6,7 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
-const upload_widget = mock_esm("../../static/js/upload_widget");
+const upload_widget = mock_esm("../../web/src/upload_widget");
const settings_emoji = zrequire("settings_emoji");
run_test("add_custom_emoji_post_render", () => {
diff --git a/frontend_tests/node_tests/settings_muted_topics.js b/frontend_tests/node_tests/settings_muted_topics.js
index 529819d8fbe..87a21c33dd6 100644
--- a/frontend_tests/node_tests/settings_muted_topics.js
+++ b/frontend_tests/node_tests/settings_muted_topics.js
@@ -6,8 +6,8 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
-const list_widget = mock_esm("../../static/js/list_widget");
-const muted_topics_ui = mock_esm("../../static/js/muted_topics_ui");
+const list_widget = mock_esm("../../web/src/list_widget");
+const muted_topics_ui = mock_esm("../../web/src/muted_topics_ui");
const settings_muted_topics = zrequire("settings_muted_topics");
const stream_data = zrequire("stream_data");
diff --git a/frontend_tests/node_tests/settings_muted_users.js b/frontend_tests/node_tests/settings_muted_users.js
index 16607e324e7..71e3fdc6171 100644
--- a/frontend_tests/node_tests/settings_muted_users.js
+++ b/frontend_tests/node_tests/settings_muted_users.js
@@ -6,8 +6,8 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
-const list_widget = mock_esm("../../static/js/list_widget");
-const muted_users_ui = mock_esm("../../static/js/muted_users_ui");
+const list_widget = mock_esm("../../web/src/list_widget");
+const muted_users_ui = mock_esm("../../web/src/muted_users_ui");
const settings_muted_users = zrequire("settings_muted_users");
const muted_users = zrequire("muted_users");
diff --git a/frontend_tests/node_tests/settings_org.js b/frontend_tests/node_tests/settings_org.js
index c1c80c7ab52..67cec70ea85 100644
--- a/frontend_tests/node_tests/settings_org.js
+++ b/frontend_tests/node_tests/settings_org.js
@@ -11,15 +11,15 @@ const {page_params} = require("../zjsunit/zpage_params");
const noop = () => {};
-const realm_icon = mock_esm("../../static/js/realm_icon");
+const realm_icon = mock_esm("../../web/src/realm_icon");
-const channel = mock_esm("../../static/js/channel");
+const channel = mock_esm("../../web/src/channel");
-mock_esm("../../static/js/csrf", {csrf_token: "token-stub"});
-mock_esm("../../static/js/list_widget", {
+mock_esm("../../web/src/csrf", {csrf_token: "token-stub"});
+mock_esm("../../web/src/list_widget", {
create: () => ({init: noop}),
});
-mock_esm("../../static/js/loading", {
+mock_esm("../../web/src/loading", {
make_indicator: noop,
destroy_indicator: noop,
});
diff --git a/frontend_tests/node_tests/settings_profile_fields.js b/frontend_tests/node_tests/settings_profile_fields.js
index dacf009d60b..38a2a95ee44 100644
--- a/frontend_tests/node_tests/settings_profile_fields.js
+++ b/frontend_tests/node_tests/settings_profile_fields.js
@@ -7,7 +7,7 @@ const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
const {page_params} = require("../zjsunit/zpage_params");
-const loading = mock_esm("../../static/js/loading");
+const loading = mock_esm("../../web/src/loading");
const SHORT_TEXT_ID = 1;
diff --git a/frontend_tests/node_tests/settings_realm_domains.js b/frontend_tests/node_tests/settings_realm_domains.js
index fe2ede6523d..bf217e88b55 100644
--- a/frontend_tests/node_tests/settings_realm_domains.js
+++ b/frontend_tests/node_tests/settings_realm_domains.js
@@ -6,9 +6,9 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
-const channel = mock_esm("../../static/js/channel");
+const channel = mock_esm("../../web/src/channel");
const noop = () => {};
-mock_esm("../../static/js/ui_report", {
+mock_esm("../../web/src/ui_report", {
success(msg, elem) {
elem.val(msg);
},
diff --git a/frontend_tests/node_tests/settings_user_groups_legacy.js b/frontend_tests/node_tests/settings_user_groups_legacy.js
index 8d200683415..a7724b9ac08 100644
--- a/frontend_tests/node_tests/settings_user_groups_legacy.js
+++ b/frontend_tests/node_tests/settings_user_groups_legacy.js
@@ -17,17 +17,17 @@ const pills = {
let create_item_handler;
-const channel = mock_esm("../../static/js/channel");
-const confirm_dialog = mock_esm("../../static/js/confirm_dialog");
-const dialog_widget = mock_esm("../../static/js/dialog_widget");
-const input_pill = mock_esm("../../static/js/input_pill");
-const typeahead_helper = mock_esm("../../static/js/typeahead_helper");
-const user_groups = mock_esm("../../static/js/user_groups", {
+const channel = mock_esm("../../web/src/channel");
+const confirm_dialog = mock_esm("../../web/src/confirm_dialog");
+const dialog_widget = mock_esm("../../web/src/dialog_widget");
+const input_pill = mock_esm("../../web/src/input_pill");
+const typeahead_helper = mock_esm("../../web/src/typeahead_helper");
+const user_groups = mock_esm("../../web/src/user_groups", {
get_user_group_from_id: noop,
remove: noop,
add: noop,
});
-const ui_report = mock_esm("../../static/js/ui_report");
+const ui_report = mock_esm("../../web/src/ui_report");
const people = zrequire("people");
const settings_data = zrequire("settings_data");
diff --git a/frontend_tests/node_tests/starred_messages.js b/frontend_tests/node_tests/starred_messages.js
index 57e4aea688b..4924f53fbe1 100644
--- a/frontend_tests/node_tests/starred_messages.js
+++ b/frontend_tests/node_tests/starred_messages.js
@@ -7,10 +7,10 @@ const {make_stub} = require("../zjsunit/stub");
const {run_test} = require("../zjsunit/test");
const {page_params, user_settings} = require("../zjsunit/zpage_params");
-const top_left_corner = mock_esm("../../static/js/top_left_corner", {
+const top_left_corner = mock_esm("../../web/src/top_left_corner", {
update_starred_count() {},
});
-const stream_popover = mock_esm("../../static/js/stream_popover", {
+const stream_popover = mock_esm("../../web/src/stream_popover", {
hide_topic_popover() {},
hide_starred_messages_popover() {},
});
diff --git a/frontend_tests/node_tests/stream_edit.js b/frontend_tests/node_tests/stream_edit.js
index 45904784df2..1b5ee318bda 100644
--- a/frontend_tests/node_tests/stream_edit.js
+++ b/frontend_tests/node_tests/stream_edit.js
@@ -2,7 +2,7 @@
const {strict: assert} = require("assert");
-const {get_stream_email_address} = require("../../static/js/stream_edit");
+const {get_stream_email_address} = require("../../web/src/stream_edit");
const {run_test} = require("../zjsunit/test");
run_test("get_stream_email_address", () => {
diff --git a/frontend_tests/node_tests/stream_events.js b/frontend_tests/node_tests/stream_events.js
index a0660c7a7d2..da9bbb406ab 100644
--- a/frontend_tests/node_tests/stream_events.js
+++ b/frontend_tests/node_tests/stream_events.js
@@ -10,31 +10,31 @@ const $ = require("../zjsunit/zjquery");
const noop = () => {};
-const color_data = mock_esm("../../static/js/color_data");
-const stream_color = mock_esm("../../static/js/stream_color");
-const stream_list = mock_esm("../../static/js/stream_list");
-const stream_muting = mock_esm("../../static/js/stream_muting");
-const stream_settings_ui = mock_esm("../../static/js/stream_settings_ui", {
+const color_data = mock_esm("../../web/src/color_data");
+const stream_color = mock_esm("../../web/src/stream_color");
+const stream_list = mock_esm("../../web/src/stream_list");
+const stream_muting = mock_esm("../../web/src/stream_muting");
+const stream_settings_ui = mock_esm("../../web/src/stream_settings_ui", {
update_settings_for_subscribed: noop,
});
-const unread_ui = mock_esm("../../static/js/unread_ui");
+const unread_ui = mock_esm("../../web/src/unread_ui");
-const message_lists = mock_esm("../../static/js/message_lists", {
+const message_lists = mock_esm("../../web/src/message_lists", {
current: {},
});
-const message_view_header = mock_esm("../../static/js/message_view_header", {
+const message_view_header = mock_esm("../../web/src/message_view_header", {
maybe_rerender_title_area_for_stream() {},
});
-mock_esm("../../static/js/recent_topics_ui", {
+mock_esm("../../web/src/recent_topics_ui", {
complete_rerender() {},
});
-mock_esm("../../static/js/settings_notifications", {
+mock_esm("../../web/src/settings_notifications", {
update_page() {},
});
-mock_esm("../../static/js/overlays", {streams_open: () => true});
+mock_esm("../../web/src/overlays", {streams_open: () => true});
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
const narrow_state = zrequire("narrow_state");
const peer_data = zrequire("peer_data");
const people = zrequire("people");
diff --git a/frontend_tests/node_tests/stream_list.js b/frontend_tests/node_tests/stream_list.js
index 53954186161..efee886172a 100644
--- a/frontend_tests/node_tests/stream_list.js
+++ b/frontend_tests/node_tests/stream_list.js
@@ -17,23 +17,23 @@ let num_unread_for_stream;
let stream_has_any_unread_mentions;
const noop = () => {};
-mock_esm("../../static/js/narrow_state", {
+mock_esm("../../web/src/narrow_state", {
active: () => false,
});
-const topic_list = mock_esm("../../static/js/topic_list");
-mock_esm("../../static/js/keydown_util", {
+const topic_list = mock_esm("../../web/src/topic_list");
+mock_esm("../../web/src/keydown_util", {
handle: noop,
});
-const scroll_util = mock_esm("../../static/js/scroll_util", {
+const scroll_util = mock_esm("../../web/src/scroll_util", {
scroll_element_into_container() {},
});
-mock_esm("../../static/js/ui", {get_scroll_element: ($element) => $element});
-mock_esm("../../static/js/unread", {
+mock_esm("../../web/src/ui", {get_scroll_element: ($element) => $element});
+mock_esm("../../web/src/unread", {
num_unread_for_stream: () => num_unread_for_stream,
stream_has_any_unread_mentions: () => stream_has_any_unread_mentions,
});
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
const stream_sort = zrequire("stream_sort");
const stream_data = zrequire("stream_data");
const stream_list = zrequire("stream_list");
diff --git a/frontend_tests/node_tests/stream_search.js b/frontend_tests/node_tests/stream_search.js
index 6a8744d9032..9a17fef6af7 100644
--- a/frontend_tests/node_tests/stream_search.js
+++ b/frontend_tests/node_tests/stream_search.js
@@ -11,14 +11,14 @@ const $ = require("../zjsunit/zjquery");
const noop = () => {};
-mock_esm("../../static/js/resize", {
+mock_esm("../../web/src/resize", {
resize_page_components: noop,
resize_stream_filters_container: noop,
});
-const popovers = mock_esm("../../static/js/popovers");
-const stream_popover = mock_esm("../../static/js/stream_popover");
+const popovers = mock_esm("../../web/src/popovers");
+const stream_popover = mock_esm("../../web/src/stream_popover");
const stream_list = zrequire("stream_list");
diff --git a/frontend_tests/node_tests/stream_settings_ui.js b/frontend_tests/node_tests/stream_settings_ui.js
index f6f55553bff..5da8cbabb9a 100644
--- a/frontend_tests/node_tests/stream_settings_ui.js
+++ b/frontend_tests/node_tests/stream_settings_ui.js
@@ -8,11 +8,11 @@ const $ = require("../zjsunit/zjquery");
const denmark_stream_id = 101;
-const ui = mock_esm("../../static/js/ui", {
+const ui = mock_esm("../../web/src/ui", {
get_content_element: ($element) => $element,
});
-mock_esm("../../static/js/hash_util", {
+mock_esm("../../web/src/hash_util", {
by_stream_url() {},
get_current_hash_section: () => denmark_stream_id,
});
diff --git a/frontend_tests/node_tests/stream_topic_history.js b/frontend_tests/node_tests/stream_topic_history.js
index a8f7e3438a1..324bb9a206e 100644
--- a/frontend_tests/node_tests/stream_topic_history.js
+++ b/frontend_tests/node_tests/stream_topic_history.js
@@ -5,8 +5,8 @@ const {strict: assert} = require("assert");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const channel = mock_esm("../../static/js/channel");
-const message_util = mock_esm("../../static/js/message_util");
+const channel = mock_esm("../../web/src/channel");
+const message_util = mock_esm("../../web/src/message_util");
const all_messages_data = zrequire("all_messages_data");
const unread = zrequire("unread");
diff --git a/frontend_tests/node_tests/submessage.js b/frontend_tests/node_tests/submessage.js
index d17e9df75a0..25d1b30fcb3 100644
--- a/frontend_tests/node_tests/submessage.js
+++ b/frontend_tests/node_tests/submessage.js
@@ -6,9 +6,9 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
-const channel = mock_esm("../../static/js/channel");
-const message_store = mock_esm("../../static/js/message_store");
-const widgetize = mock_esm("../../static/js/widgetize");
+const channel = mock_esm("../../web/src/channel");
+const message_store = mock_esm("../../web/src/message_store");
+const widgetize = mock_esm("../../web/src/widgetize");
const submessage = zrequire("submessage");
diff --git a/frontend_tests/node_tests/support.js b/frontend_tests/node_tests/support.js
index 3866a9c276b..da1384fc4de 100644
--- a/frontend_tests/node_tests/support.js
+++ b/frontend_tests/node_tests/support.js
@@ -13,7 +13,7 @@ const template = fs.readFileSync("templates/analytics/realm_details.html", "utf8
const dom = new JSDOM(template, {pretendToBeVisual: true});
const document = dom.window.document;
-zrequire("../js/analytics/support");
+zrequire("../src/analytics/support");
run_test("scrub_realm", () => {
$.get_initialize_function()();
diff --git a/frontend_tests/node_tests/top_left_corner.js b/frontend_tests/node_tests/top_left_corner.js
index a27c856aae9..c36fa6f35da 100644
--- a/frontend_tests/node_tests/top_left_corner.js
+++ b/frontend_tests/node_tests/top_left_corner.js
@@ -6,11 +6,11 @@ const {mock_esm, set_global, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
-mock_esm("../../static/js/resize", {
+mock_esm("../../web/src/resize", {
resize_stream_filters_container() {},
});
-const {Filter} = zrequire("../js/filter");
+const {Filter} = zrequire("../src/filter");
const top_left_corner = zrequire("top_left_corner");
run_test("narrowing", () => {
diff --git a/frontend_tests/node_tests/topic_generator.js b/frontend_tests/node_tests/topic_generator.js
index 9d9a0628680..fdb3387024b 100644
--- a/frontend_tests/node_tests/topic_generator.js
+++ b/frontend_tests/node_tests/topic_generator.js
@@ -5,10 +5,10 @@ const {strict: assert} = require("assert");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const user_topics = mock_esm("../../static/js/user_topics");
-const stream_data = mock_esm("../../static/js/stream_data");
-const stream_topic_history = mock_esm("../../static/js/stream_topic_history");
-const unread = mock_esm("../../static/js/unread");
+const user_topics = mock_esm("../../web/src/user_topics");
+const stream_data = mock_esm("../../web/src/stream_data");
+const stream_topic_history = mock_esm("../../web/src/stream_topic_history");
+const unread = mock_esm("../../web/src/unread");
const pm_conversations = zrequire("pm_conversations");
pm_conversations.recent = {};
diff --git a/frontend_tests/node_tests/topic_list_data.js b/frontend_tests/node_tests/topic_list_data.js
index ffb47d7d48b..80a807ea032 100644
--- a/frontend_tests/node_tests/topic_list_data.js
+++ b/frontend_tests/node_tests/topic_list_data.js
@@ -7,7 +7,7 @@ const _ = require("lodash");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-mock_esm("../../static/js/message_store", {
+mock_esm("../../web/src/message_store", {
get() {
return {
stream_id: 556,
@@ -15,16 +15,16 @@ mock_esm("../../static/js/message_store", {
};
},
});
-const user_topics = mock_esm("../../static/js/user_topics", {
+const user_topics = mock_esm("../../web/src/user_topics", {
is_topic_muted() {
return false;
},
});
-const narrow_state = mock_esm("../../static/js/narrow_state", {
+const narrow_state = mock_esm("../../web/src/narrow_state", {
topic() {},
});
-const topic_list = mock_esm("../../static/js/topic_list", {
+const topic_list = mock_esm("../../web/src/topic_list", {
get_topic_search_term() {},
});
diff --git a/frontend_tests/node_tests/transmit.js b/frontend_tests/node_tests/transmit.js
index c1ad7aef720..0d6c71a8615 100644
--- a/frontend_tests/node_tests/transmit.js
+++ b/frontend_tests/node_tests/transmit.js
@@ -9,10 +9,10 @@ const {page_params} = require("../zjsunit/zpage_params");
const noop = () => {};
-const channel = mock_esm("../../static/js/channel");
-const reload = mock_esm("../../static/js/reload");
-const reload_state = mock_esm("../../static/js/reload_state");
-const sent_messages = mock_esm("../../static/js/sent_messages", {
+const channel = mock_esm("../../web/src/channel");
+const reload = mock_esm("../../web/src/reload");
+const reload_state = mock_esm("../../web/src/reload_state");
+const sent_messages = mock_esm("../../web/src/sent_messages", {
start_tracking_message: noop,
report_server_ack: noop,
});
diff --git a/frontend_tests/node_tests/typeahead.js b/frontend_tests/node_tests/typeahead.js
index bfd3fbb20df..6cce0a631ad 100644
--- a/frontend_tests/node_tests/typeahead.js
+++ b/frontend_tests/node_tests/typeahead.js
@@ -5,7 +5,7 @@ const {strict: assert} = require("assert");
const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const typeahead = zrequire("../shared/js/typeahead");
+const typeahead = zrequire("../shared/src/typeahead");
const unicode_emojis = [
["1f43c", "panda_face"],
diff --git a/frontend_tests/node_tests/typeahead_helper.js b/frontend_tests/node_tests/typeahead_helper.js
index 1e235818a06..9996f36c4de 100644
--- a/frontend_tests/node_tests/typeahead_helper.js
+++ b/frontend_tests/node_tests/typeahead_helper.js
@@ -6,7 +6,7 @@ const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const {page_params, user_settings} = require("../zjsunit/zpage_params");
-const stream_topic_history = mock_esm("../../static/js/stream_topic_history");
+const stream_topic_history = mock_esm("../../web/src/stream_topic_history");
const settings_config = zrequire("settings_config");
const pm_conversations = zrequire("pm_conversations");
diff --git a/frontend_tests/node_tests/typing_status.js b/frontend_tests/node_tests/typing_status.js
index 5526deed0ef..a2e24533429 100644
--- a/frontend_tests/node_tests/typing_status.js
+++ b/frontend_tests/node_tests/typing_status.js
@@ -5,10 +5,10 @@ const {strict: assert} = require("assert");
const {mock_esm, set_global, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const compose_pm_pill = mock_esm("../../static/js/compose_pm_pill");
+const compose_pm_pill = mock_esm("../../web/src/compose_pm_pill");
const typing = zrequire("typing");
-const typing_status = zrequire("../shared/js/typing_status");
+const typing_status = zrequire("../shared/src/typing_status");
function make_time(secs) {
// make times semi-realistic
diff --git a/frontend_tests/node_tests/upgrade.js b/frontend_tests/node_tests/upgrade.js
index 3aeb39ecf45..141579d097f 100644
--- a/frontend_tests/node_tests/upgrade.js
+++ b/frontend_tests/node_tests/upgrade.js
@@ -16,8 +16,8 @@ const dom = new JSDOM(template, {pretendToBeVisual: true});
const document = dom.window.document;
const location = set_global("location", {});
-const helpers = zrequire("../js/billing/helpers");
-zrequire("../js/billing/upgrade");
+const helpers = zrequire("../src/billing/helpers");
+zrequire("../src/billing/upgrade");
run_test("initialize", ({override_rewire}) => {
page_params.annual_price = 8000;
diff --git a/frontend_tests/node_tests/upload.js b/frontend_tests/node_tests/upload.js
index abe93c1aefe..f720e6e779a 100644
--- a/frontend_tests/node_tests/upload.js
+++ b/frontend_tests/node_tests/upload.js
@@ -19,8 +19,8 @@ mock_esm("@uppy/core", {
});
mock_esm("@uppy/xhr-upload", {default: class XHRUpload {}});
-const compose_actions = mock_esm("../../static/js/compose_actions");
-mock_esm("../../static/js/csrf", {csrf_token: "csrf_token"});
+const compose_actions = mock_esm("../../web/src/compose_actions");
+mock_esm("../../web/src/csrf", {csrf_token: "csrf_token"});
const compose_ui = zrequire("compose_ui");
const upload = zrequire("upload");
diff --git a/frontend_tests/node_tests/user_events.js b/frontend_tests/node_tests/user_events.js
index b50020ad291..2a29c784265 100644
--- a/frontend_tests/node_tests/user_events.js
+++ b/frontend_tests/node_tests/user_events.js
@@ -7,41 +7,41 @@ const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
const {page_params} = require("../zjsunit/zpage_params");
-const message_live_update = mock_esm("../../static/js/message_live_update");
-const settings_account = mock_esm("../../static/js/settings_account", {
+const message_live_update = mock_esm("../../web/src/message_live_update");
+const settings_account = mock_esm("../../web/src/settings_account", {
update_email() {},
update_full_name() {},
update_account_settings_display() {},
});
-mock_esm("../../static/js/activity", {
+mock_esm("../../web/src/activity", {
redraw() {},
});
-mock_esm("../../static/js/compose", {
+mock_esm("../../web/src/compose", {
update_email() {},
});
-mock_esm("../../static/js/narrow_state", {
+mock_esm("../../web/src/narrow_state", {
update_email() {},
});
-mock_esm("../../static/js/pm_list", {
+mock_esm("../../web/src/pm_list", {
update_private_messages() {},
});
-mock_esm("../../static/js/settings_linkifiers", {
+mock_esm("../../web/src/settings_linkifiers", {
maybe_disable_widgets() {},
});
-mock_esm("../../static/js/settings_org", {
+mock_esm("../../web/src/settings_org", {
maybe_disable_widgets() {},
});
-mock_esm("../../static/js/settings_profile_fields", {
+mock_esm("../../web/src/settings_profile_fields", {
maybe_disable_widgets() {},
});
-mock_esm("../../static/js/settings_realm_user_settings_defaults", {
+mock_esm("../../web/src/settings_realm_user_settings_defaults", {
maybe_disable_widgets() {},
});
-mock_esm("../../static/js/settings_streams", {
+mock_esm("../../web/src/settings_streams", {
maybe_disable_widgets() {},
});
-mock_esm("../../static/js/settings_users", {
+mock_esm("../../web/src/settings_users", {
update_user_data() {},
});
diff --git a/frontend_tests/node_tests/user_search.js b/frontend_tests/node_tests/user_search.js
index 7801cb12954..cdee9127824 100644
--- a/frontend_tests/node_tests/user_search.js
+++ b/frontend_tests/node_tests/user_search.js
@@ -21,14 +21,14 @@ const fake_buddy_list = {
next_key() {},
};
-mock_esm("../../static/js/buddy_list", {
+mock_esm("../../web/src/buddy_list", {
buddy_list: fake_buddy_list,
});
-const popovers = mock_esm("../../static/js/popovers");
-const presence = mock_esm("../../static/js/presence");
-const stream_popover = mock_esm("../../static/js/stream_popover");
-const resize = mock_esm("../../static/js/resize");
+const popovers = mock_esm("../../web/src/popovers");
+const presence = mock_esm("../../web/src/presence");
+const stream_popover = mock_esm("../../web/src/stream_popover");
+const resize = mock_esm("../../web/src/resize");
set_global("document", _document);
diff --git a/frontend_tests/node_tests/user_status.js b/frontend_tests/node_tests/user_status.js
index ea7fd1b3789..b1af8c6d092 100644
--- a/frontend_tests/node_tests/user_status.js
+++ b/frontend_tests/node_tests/user_status.js
@@ -5,10 +5,10 @@ const {strict: assert} = require("assert");
const {mock_esm, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const channel = mock_esm("../../static/js/channel");
+const channel = mock_esm("../../web/src/channel");
const user_status = zrequire("user_status");
-const emoji_codes = zrequire("../generated/emoji/emoji_codes.json");
+const emoji_codes = zrequire("../../static/generated/emoji/emoji_codes.json");
const emoji = zrequire("emoji");
const emoji_params = {
diff --git a/frontend_tests/node_tests/user_topics.js b/frontend_tests/node_tests/user_topics.js
index 33145dd94f6..b21cb97f845 100644
--- a/frontend_tests/node_tests/user_topics.js
+++ b/frontend_tests/node_tests/user_topics.js
@@ -2,7 +2,7 @@
const {strict: assert} = require("assert");
-const {visibility_policy} = require("../../static/js/user_topics");
+const {visibility_policy} = require("../../web/src/user_topics");
const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
diff --git a/frontend_tests/node_tests/widgetize.js b/frontend_tests/node_tests/widgetize.js
index f4c91b9660b..814bee417d8 100644
--- a/frontend_tests/node_tests/widgetize.js
+++ b/frontend_tests/node_tests/widgetize.js
@@ -54,9 +54,9 @@ const fake_poll_widget = {
},
};
-const message_lists = mock_esm("../../static/js/message_lists", {current: {}});
-const narrow_state = mock_esm("../../static/js/narrow_state");
-mock_esm("../../static/js/poll_widget", fake_poll_widget);
+const message_lists = mock_esm("../../web/src/message_lists", {current: {}});
+const narrow_state = mock_esm("../../web/src/narrow_state");
+mock_esm("../../web/src/poll_widget", fake_poll_widget);
set_global("document", "document-stub");
diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.js
index 3da14f055f3..788e0e915c0 100644
--- a/frontend_tests/zjsunit/index.js
+++ b/frontend_tests/zjsunit/index.js
@@ -27,9 +27,9 @@ global.navigator = {
require("@babel/register")({
extensions: [".es6", ".es", ".jsx", ".js", ".mjs", ".ts"],
only: [
- new RegExp("^" + _.escapeRegExp(path.resolve(__dirname, "../../static/js") + path.sep)),
+ new RegExp("^" + _.escapeRegExp(path.resolve(__dirname, "../../web/src") + path.sep)),
new RegExp(
- "^" + _.escapeRegExp(path.resolve(__dirname, "../../static/shared/js") + path.sep),
+ "^" + _.escapeRegExp(path.resolve(__dirname, "../../web/shared/src") + path.sep),
),
],
plugins: [
@@ -90,7 +90,7 @@ function short_tb(tb) {
return lines.splice(0, i + 1).join("\n") + "\n(...)\n";
}
-require("../../static/js/templates"); // register Zulip extensions
+require("../../web/src/templates"); // register Zulip extensions
async function run_one_module(file) {
zjquery.clear_initialize_function();
@@ -121,16 +121,16 @@ test.set_verbose(files.length === 1);
_.debounce = immediate;
zpage_params.reset();
- namespace.mock_esm("../../static/js/blueslip", blueslip);
- require("../../static/js/blueslip");
- namespace.mock_esm("../../static/js/i18n", stub_i18n);
- require("../../static/js/i18n");
- namespace.mock_esm("../../static/js/page_params", zpage_params);
- require("../../static/js/page_params");
- namespace.mock_esm("../../static/js/user_settings", zpage_params);
- require("../../static/js/user_settings");
- namespace.mock_esm("../../static/js/realm_user_settings_defaults", zpage_params);
- require("../../static/js/realm_user_settings_defaults");
+ namespace.mock_esm("../../web/src/blueslip", blueslip);
+ require("../../web/src/blueslip");
+ namespace.mock_esm("../../web/src/i18n", stub_i18n);
+ require("../../web/src/i18n");
+ namespace.mock_esm("../../web/src/page_params", zpage_params);
+ require("../../web/src/page_params");
+ namespace.mock_esm("../../web/src/user_settings", zpage_params);
+ require("../../web/src/user_settings");
+ namespace.mock_esm("../../web/src/realm_user_settings_defaults", zpage_params);
+ require("../../web/src/realm_user_settings_defaults");
await run_one_module(file);
diff --git a/frontend_tests/zjsunit/namespace.js b/frontend_tests/zjsunit/namespace.js
index 82e83a3b03f..bde3369a54b 100644
--- a/frontend_tests/zjsunit/namespace.js
+++ b/frontend_tests/zjsunit/namespace.js
@@ -23,7 +23,7 @@ const real_jquery_path = require.resolve("../zjsunit/real_jquery.js");
let in_mid_render = false;
let jquery_function;
-const template_path = "/static/templates/";
+const template_path = "/web/templates/";
/* istanbul ignore next */
function need_to_mock_template_error(filename) {
@@ -268,10 +268,10 @@ exports.zrequire = function (short_fn) {
`,
);
- return require(`../../static/js/${short_fn}`);
+ return require(`../../web/src/${short_fn}`);
};
-const staticPath = path.resolve(__dirname, "../../static") + path.sep;
+const webPath = path.resolve(__dirname, "../../web") + path.sep;
exports.complain_about_unused_mocks = function () {
for (const filename of module_mocks.keys()) {
@@ -301,7 +301,7 @@ exports.finish = function () {
used_module_mocks.clear();
for (const path of Object.keys(require.cache)) {
- if (path.startsWith(staticPath)) {
+ if (path.startsWith(webPath)) {
delete require.cache[path];
}
}
diff --git a/postcss.config.js b/postcss.config.js
index d880538efd1..053437b30b1 100644
--- a/postcss.config.js
+++ b/postcss.config.js
@@ -2,7 +2,7 @@
const path = require("path");
-const {media_breakpoints} = require("./static/js/css_variables");
+const {media_breakpoints} = require("./web/src/css_variables");
module.exports = ({file}) => ({
plugins: [
diff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.py
index 26b668a6d7c..a2a01eae004 100755
--- a/scripts/lib/zulip_tools.py
+++ b/scripts/lib/zulip_tools.py
@@ -348,7 +348,7 @@ def generate_sha1sum_emoji(zulip_path: str) -> str:
sha = hashlib.sha1()
filenames = [
- "static/assets/zulip-emoji/zulip.png",
+ "web/images/zulip-emoji/zulip.png",
"tools/setup/emoji/emoji_map.json",
"tools/setup/emoji/build_emoji",
"tools/setup/emoji/emoji_setup_utils.py",
diff --git a/static/.gitignore b/static/.gitignore
index cb4096fb00d..ff46c39f49e 100644
--- a/static/.gitignore
+++ b/static/.gitignore
@@ -7,10 +7,3 @@
/generated/bots/
# From emoji
/generated/emoji
-/generated/emoji-styles
-# From passing pygments data to the frontend
-/generated/pygments_data.json
-# From passing time zone data to the frontend
-/generated/timezones.json
-# Legacy emoji data directory
-/third/emoji-data
diff --git a/static/assets/README b/static/assets/README
deleted file mode 100644
index 7df1ad329b2..00000000000
--- a/static/assets/README
+++ /dev/null
@@ -1,3 +0,0 @@
-This directory contains e.g. the editable originals for image files.
-
-The exported files we serve are checked in under static/.
diff --git a/tools/check-templates b/tools/check-templates
index 41c36332424..b97db2a8b13 100755
--- a/tools/check-templates
+++ b/tools/check-templates
@@ -25,9 +25,9 @@ EXCLUDED_FILES = [
# Our parser doesn't handle the way its conditionals are layered
"templates/zerver/emails/missed_message.source.html",
# Previously unchecked and our parser doesn't like its indentation
- "static/assets/icons/template.hbs",
+ "web/images/icons/template.hbs",
# Template checker recommends very hard to read indentation.
- "static/templates/bookend.hbs",
+ "web/templates/bookend.hbs",
# The parser does not like the indentation of custom ReadTheDocs templates
"docs/_templates/layout.html",
]
diff --git a/tools/find-unused-css b/tools/find-unused-css
index d5e90e1c6cd..c0dc7b17aa8 100755
--- a/tools/find-unused-css
+++ b/tools/find-unused-css
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# Hackish tool for attempting to find unused IDs / classes in our CSS
-for n in $(perl -lne 'print $1 while /[#.]([a-zA-Z0-9_-]+)/g' static/styles/zulip.css | sort -u); do
- if [ "$(git grep "$n" | grep -cv '^static/styles/zulip.css')" -eq 0 ]; then
+for n in $(perl -lne 'print $1 while /[#.]([a-zA-Z0-9_-]+)/g' web/styles/zulip.css | sort -u); do
+ if [ "$(git grep "$n" | grep -cv '^web/styles/zulip.css')" -eq 0 ]; then
echo "$n"
fi
done
diff --git a/tools/lib/provision_inner.py b/tools/lib/provision_inner.py
index acc1856ff0e..e708e8e1900 100755
--- a/tools/lib/provision_inner.py
+++ b/tools/lib/provision_inner.py
@@ -147,7 +147,7 @@ def setup_bash_profile() -> None:
def need_to_run_build_pygments_data() -> bool:
- if not os.path.exists("static/generated/pygments_data.json"):
+ if not os.path.exists("web/generated/pygments_data.json"):
return True
return is_digest_obsolete(
@@ -158,7 +158,7 @@ def need_to_run_build_pygments_data() -> bool:
def need_to_run_build_timezone_data() -> bool:
- if not os.path.exists("static/generated/timezones.json"):
+ if not os.path.exists("web/generated/timezones.json"):
return True
return is_digest_obsolete(
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py
index 36b4f0dbf6f..e0888c4661b 100644
--- a/tools/linter_lib/custom_check.py
+++ b/tools/linter_lib/custom_check.py
@@ -116,7 +116,7 @@ js_rules = RuleList(
rules=[
{
"pattern": "subject|SUBJECT",
- "exclude": {"static/js/types.ts", "static/js/util.ts", "frontend_tests/"},
+ "exclude": {"web/src/types.ts", "web/src/util.ts", "frontend_tests/"},
"exclude_pattern": "emails",
"description": "avoid subject in JS code",
"good_lines": ["topic_name"],
@@ -135,10 +135,10 @@ js_rules = RuleList(
"pattern": "[.]html[(]",
"exclude_pattern": r"""\.html\(("|'|render_|html|message\.content|util\.clean_user_content_links|rendered_|$|\)|error_html|widget_elem|\$error|\$\("<p>"\))""",
"exclude": {
- "static/js/portico",
- "static/js/lightbox.js",
- "static/js/ui_report.ts",
- "static/js/dialog_widget.js",
+ "web/src/portico",
+ "web/src/lightbox.js",
+ "web/src/ui_report.ts",
+ "web/src/dialog_widget.js",
"frontend_tests/",
},
"description": "Setting HTML content with jQuery .html() can lead to XSS security bugs. Consider .text() or using rendered_foo as a variable name if content comes from Handlebars and thus is already sanitized.",
@@ -190,12 +190,12 @@ js_rules = RuleList(
"description": "Use channel module for AJAX calls",
"exclude": {
# Internal modules can do direct network calls
- "static/js/blueslip.ts",
- "static/js/channel.js",
+ "web/src/blueslip.ts",
+ "web/src/channel.js",
# External modules that don't include channel.js
- "static/js/stats/",
- "static/js/portico/",
- "static/js/billing/",
+ "web/src/stats/",
+ "web/src/portico/",
+ "web/src/billing/",
},
"good_lines": ["channel.get(...)"],
"bad_lines": ["$.get()", "$.post()", "$.ajax()"],
@@ -547,7 +547,7 @@ html_rules: List["Rule"] = [
"templates/analytics/support.html",
# We have URL prefix and Pygments language name as placeholders
# in the below template which we don't want to be translatable.
- "static/templates/settings/playground_settings_admin.hbs",
+ "web/templates/settings/playground_settings_admin.hbs",
},
"good_lines": [
'<input class="stream-list-filter" type="text" placeholder="{{ _(\'Filter streams\') }}" />'
@@ -624,7 +624,7 @@ html_rules: List["Rule"] = [
"exclude_line": {
(
# Emoji should not be tagged for translation.
- "static/templates/keyboard_shortcuts.hbs",
+ "web/templates/keyboard_shortcuts.hbs",
'<img alt=":thumbs_up:"',
),
},
@@ -664,12 +664,12 @@ html_rules: List["Rule"] = [
"exclude_pattern": r""".*style ?=["'](display: ?none|background: {{|color: {{|background-color: {{).*""",
"exclude": {
# 5xx page doesn't have external CSS
- "static/html/5xx.html",
+ "web/html/5xx.html",
# exclude_pattern above handles color, but have other issues:
- "static/templates/draft.hbs",
- "static/templates/stream_settings/browse_streams_list_item.hbs",
- "static/templates/user_group_settings/browse_user_groups_list_item.hbs",
- "static/templates/single_message.hbs",
+ "web/templates/draft.hbs",
+ "web/templates/stream_settings/browse_streams_list_item.hbs",
+ "web/templates/user_group_settings/browse_user_groups_list_item.hbs",
+ "web/templates/single_message.hbs",
# Old-style email templates need to use inline style
# attributes; it should be possible to clean these up
# when we convert these templates to use premailer.
@@ -681,10 +681,10 @@ html_rules: List["Rule"] = [
"templates/zerver/accounts_home.html",
"templates/zerver/login.html",
# Needs the width cleaned up; display: none is fine
- "static/templates/dialog_change_password.hbs",
+ "web/templates/dialog_change_password.hbs",
# background image property is dynamically generated
- "static/templates/user_profile_modal.hbs",
- "static/templates/pm_list_item.hbs",
+ "web/templates/user_profile_modal.hbs",
+ "web/templates/pm_list_item.hbs",
# Inline styling for an svg; could be moved to CSS files?
"templates/zerver/landing_nav.html",
"templates/zerver/billing_nav.html",
@@ -693,8 +693,8 @@ html_rules: List["Rule"] = [
"templates/corporate/billing.html",
"templates/corporate/upgrade.html",
# Miscellaneous violations to be cleaned up
- "static/templates/user_info_popover_title.hbs",
- "static/templates/confirm_dialog/confirm_subscription_invites_warning.hbs",
+ "web/templates/user_info_popover_title.hbs",
+ "web/templates/confirm_dialog/confirm_subscription_invites_warning.hbs",
"templates/zerver/reset_confirm.html",
"templates/zerver/config_error.html",
"templates/zerver/dev_env_email_access_details.html",
@@ -722,7 +722,7 @@ handlebars_rules = RuleList(
*html_rules,
{
"pattern": "[<]script",
- "description": "Do not use inline <script> tags here; put JavaScript in static/js instead.",
+ "description": "Do not use inline <script> tags here; put JavaScript in web/src instead.",
},
{
"pattern": "{{ t (\"|')",
@@ -759,7 +759,7 @@ handlebars_rules = RuleList(
{
"pattern": r'href="#"',
"description": 'Avoid href="#" for elements with a JavaScript click handler.',
- "exclude": {"static/templates/navbar.hbs"},
+ "exclude": {"web/templates/navbar.hbs"},
},
],
)
diff --git a/tools/linter_lib/exclude.py b/tools/linter_lib/exclude.py
index 4466de202d4..0a3af23c6ca 100644
--- a/tools/linter_lib/exclude.py
+++ b/tools/linter_lib/exclude.py
@@ -1,7 +1,7 @@
# Exclude some directories and files from lint checking
EXCLUDED_FILES = [
# Third-party code that doesn't match our style
- "static/third",
+ "web/third",
# Transifex syncs translation.json files without trailing
# newlines; there's nothing other than trailing newlines we'd be
# checking for in these anyway.
diff --git a/tools/release-tarball-exclude.txt b/tools/release-tarball-exclude.txt
index 2e5de1413b7..cda0ccbf546 100644
--- a/tools/release-tarball-exclude.txt
+++ b/tools/release-tarball-exclude.txt
@@ -1,8 +1,8 @@
.gitignore
.gitattributes
-static/assets
corporate/
static/
+web/
tools/
zilencer/
templates/corporate
diff --git a/tools/setup/build_pygments_data b/tools/setup/build_pygments_data
index 93355a87467..8dfff98ee7f 100755
--- a/tools/setup/build_pygments_data
+++ b/tools/setup/build_pygments_data
@@ -7,7 +7,7 @@ from pygments.lexers import get_all_lexers
ZULIP_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../")
# The current priorities data set is based on StackOverflow's 2020 survey.
DATA_PATH = os.path.join(ZULIP_PATH, "tools", "setup", "lang.json")
-OUT_PATH = os.path.join(ZULIP_PATH, "static", "generated", "pygments_data.json")
+OUT_PATH = os.path.join(ZULIP_PATH, "web", "generated", "pygments_data.json")
with open(DATA_PATH) as f:
pygments_data = json.load(f)
diff --git a/tools/setup/build_timezone_values b/tools/setup/build_timezone_values
index 59415c463d8..ece4037b42f 100755
--- a/tools/setup/build_timezone_values
+++ b/tools/setup/build_timezone_values
@@ -13,7 +13,7 @@ sys.path.insert(0, ZULIP_PATH)
from zerver.lib.timezone import get_canonical_timezone_map
-OUT_PATH = os.path.join(ZULIP_PATH, "static", "generated", "timezones.json")
+OUT_PATH = os.path.join(ZULIP_PATH, "web", "generated", "timezones.json")
with open(OUT_PATH, "w") as f:
json.dump(
diff --git a/tools/setup/emoji/build_emoji b/tools/setup/emoji/build_emoji
index a9f3be96b27..7fd3780efe7 100755
--- a/tools/setup/emoji/build_emoji
+++ b/tools/setup/emoji/build_emoji
@@ -26,7 +26,7 @@ from tools.setup.emoji.emoji_setup_utils import (
)
TARGET_EMOJI_DUMP = os.path.join(ZULIP_PATH, "static", "generated", "emoji")
-TARGET_EMOJI_STYLES = os.path.join(ZULIP_PATH, "static", "generated", "emoji-styles")
+TARGET_EMOJI_STYLES = os.path.join(ZULIP_PATH, "web", "generated", "emoji-styles")
EMOJI_CACHE_PATH = "/srv/zulip-emoji-cache"
EMOJI_SCRIPT_DIR_PATH = os.path.join(ZULIP_PATH, "tools", "setup", "emoji")
NODE_MODULES_PATH = os.path.join(ZULIP_PATH, "node_modules")
@@ -61,7 +61,7 @@ span.emoji
.emoji-1f419
{{
- background-image: url(../emoji/images-google-64/1f419.png) !important;
+ background-image: url(../../../static/generated/emoji/images-google-64/1f419.png) !important;
background-position: 0% 0% !important;
background-size: contain !important;
}}
@@ -305,7 +305,7 @@ def setup_emoji_farms(cache_path: str, emoji_data: List[Dict[str, Any]]) -> None
ensure_emoji_image(img_info, src_emoji_farm, target_emoji_farm)
# Copy zulip.png to the emoji farm.
- zulip_image = os.path.join(ZULIP_PATH, "static", "assets", "zulip-emoji")
+ zulip_image = os.path.join(ZULIP_PATH, "web", "images", "zulip-emoji")
for f in os.listdir(zulip_image):
shutil.copy2(os.path.join(zulip_image, f), target_emoji_farm, follow_symlinks=False)
diff --git a/tools/test-js-with-node b/tools/test-js-with-node
index 81c8798265b..e9eda08b7a8 100755
--- a/tools/test-js-with-node
+++ b/tools/test-js-with-node
@@ -46,185 +46,185 @@ EXEMPT_FILES = make_set(
[
"frontend_tests/zjsunit/mdiff.js",
"frontend_tests/zjsunit/zjquery_element.js",
- "static/js/about_zulip.js",
- "static/js/add_subscribers_pill.js",
- "static/js/admin.js",
- "static/js/alert_popup.ts",
- "static/js/alert_words_ui.js",
- "static/js/archive.js",
- "static/js/assets.d.ts",
- "static/js/attachments_ui.js",
- "static/js/avatar.js",
- "static/js/billing/event_status.js",
- "static/js/billing/helpers.js",
- "static/js/billing/upgrade.js",
- "static/js/blueslip.ts",
- "static/js/blueslip_stacktrace.ts",
- "static/js/click_handlers.js",
- "static/js/compose.js",
- "static/js/compose_actions.js",
- "static/js/compose_banner.ts",
- "static/js/compose_closed_ui.js",
- "static/js/compose_fade.js",
- "static/js/compose_state.js",
- "static/js/compose_ui.js",
- "static/js/compose_validate.js",
- "static/js/composebox_typeahead.js",
- "static/js/condense.js",
- "static/js/confirm_dialog.js",
- "static/js/copy_and_paste.js",
- "static/js/csrf.ts",
- "static/js/css_variables.js",
- "static/js/dark_theme.js",
- "static/js/debug.js",
- "static/js/deprecated_feature_notice.js",
- "static/js/desktop_integration.js",
- "static/js/dialog_widget.js",
- "static/js/drafts.js",
- "static/js/dropdown_list_widget.js",
- "static/js/echo.js",
- "static/js/emoji_picker.js",
- "static/js/emojisets.js",
- "static/js/favicon.js",
- "static/js/feature_flags.ts",
- "static/js/feedback_widget.js",
- "static/js/flatpickr.js",
- "static/js/gear_menu.js",
- "static/js/giphy.js",
- "static/js/global.d.ts",
- "static/js/hash_util.js",
- "static/js/hashchange.js",
- "static/js/hbs.d.ts",
- "static/js/hotkey.js",
- "static/js/hotspots.js",
- "static/js/info_overlay.js",
- "static/js/invite.js",
- "static/js/lightbox.js",
- "static/js/list_util.ts",
- "static/js/list_widget.js",
- "static/js/loading.ts",
- "static/js/local_message.js",
- "static/js/localstorage.js",
- "static/js/message_edit.js",
- "static/js/message_edit_history.js",
- "static/js/message_events.js",
- "static/js/message_fetch.js",
- "static/js/message_list.js",
- "static/js/message_list_data.js",
- "static/js/message_list_view.js",
- "static/js/message_lists.js",
- "static/js/message_live_update.js",
- "static/js/message_scroll.js",
- "static/js/message_util.js",
- "static/js/message_view_header.js",
- "static/js/message_viewport.js",
- "static/js/muted_topics_ui.js",
- "static/js/muted_users_ui.js",
- "static/js/narrow.js",
- "static/js/navbar_alerts.js",
- "static/js/navigate.js",
- "static/js/notifications.js",
- "static/js/overlays.js",
- "static/js/padded_widget.ts",
- "static/js/page_params.ts",
- "static/js/pm_list.js",
- "static/js/pm_list_dom.js",
- "static/js/poll_widget.js",
- "static/js/popover_menus.js",
- "static/js/popover_menus_data.js",
- "static/js/popovers.js",
- "static/js/read_receipts.js",
- "static/js/ready.ts",
- "static/js/realm_icon.js",
- "static/js/realm_logo.js",
- "static/js/realm_playground.js",
- "static/js/realm_user_settings_defaults.ts",
- "static/js/recent_topics_ui.js",
- "static/js/recent_topics_util.js",
- "static/js/reload.js",
- "static/js/reminder.js",
- "static/js/resize.js",
- "static/js/rows.js",
- "static/js/scroll_bar.js",
- "static/js/search_pill_widget.js",
- "static/js/sent_messages.js",
- "static/js/server_events.js",
- "static/js/settings.js",
- "static/js/settings_account.js",
- "static/js/settings_bots.js",
- "static/js/settings_display.js",
- "static/js/settings_emoji.js",
- "static/js/settings_exports.js",
- "static/js/settings_invites.js",
- "static/js/settings_linkifiers.js",
- "static/js/settings_muted_topics.js",
- "static/js/settings_muted_users.js",
- "static/js/settings_notifications.js",
- "static/js/settings_org.js",
- "static/js/settings_panel_menu.js",
- "static/js/settings_playgrounds.js",
- "static/js/settings_profile_fields.js",
- "static/js/settings_realm_domains.js",
- "static/js/settings_realm_user_settings_defaults.js",
- "static/js/settings_sections.js",
- "static/js/settings_streams.js",
- "static/js/settings_toggle.js",
- "static/js/settings_ui.js",
- "static/js/settings_user_groups_legacy.js",
- "static/js/settings_users.js",
- "static/js/setup.js",
- "static/js/spectators.js",
- "static/js/spoilers.ts",
- "static/js/starred_messages_ui.js",
- "static/js/stream_bar.js",
- "static/js/stream_color.js",
- "static/js/stream_create.js",
- "static/js/stream_create_subscribers.js",
- "static/js/stream_edit.js",
- "static/js/stream_edit_subscribers.js",
- "static/js/stream_list.js",
- "static/js/stream_muting.js",
- "static/js/stream_popover.js",
- "static/js/stream_settings_containers.js",
- "static/js/stream_settings_ui.js",
- "static/js/stream_ui_updates.js",
- "static/js/submessage.js",
- "static/js/subscriber_api.js",
- "static/js/timerender.ts",
- "static/js/tippyjs.js",
- "static/js/todo_widget.js",
- "static/js/topic_list.js",
- "static/js/topic_zoom.js",
- "static/js/tutorial.js",
- "static/js/types.ts",
- "static/js/typing.js",
- "static/js/typing_events.js",
- "static/js/ui.js",
- "static/js/ui_init.js",
- "static/js/ui_report.ts",
- "static/js/ui_util.ts",
- "static/js/unread.js",
- "static/js/unread_ops.js",
- "static/js/unread_ui.js",
- "static/js/upload.js",
- "static/js/upload_widget.ts",
- "static/js/user_group_create.js",
- "static/js/user_group_create_members.js",
- "static/js/user_group_create_members_data.js",
- "static/js/user_group_edit.js",
- "static/js/user_group_edit_members.js",
- "static/js/user_group_ui_updates.js",
- "static/js/user_groups_settings_ui.js",
- "static/js/user_profile.js",
- "static/js/user_settings.ts",
- "static/js/user_status.js",
- "static/js/user_status_ui.js",
- "static/js/webpack_public_path.js",
- "static/js/zcommand.js",
- "static/js/zform.js",
- "static/js/zulip.js",
- "static/js/zulip_test.js",
- "static/shared/js/poll_data.js",
+ "web/shared/src/poll_data.js",
+ "web/src/about_zulip.js",
+ "web/src/add_subscribers_pill.js",
+ "web/src/admin.js",
+ "web/src/alert_popup.ts",
+ "web/src/alert_words_ui.js",
+ "web/src/archive.js",
+ "web/src/assets.d.ts",
+ "web/src/attachments_ui.js",
+ "web/src/avatar.js",
+ "web/src/billing/event_status.js",
+ "web/src/billing/helpers.js",
+ "web/src/billing/upgrade.js",
+ "web/src/blueslip.ts",
+ "web/src/blueslip_stacktrace.ts",
+ "web/src/click_handlers.js",
+ "web/src/compose.js",
+ "web/src/compose_actions.js",
+ "web/src/compose_banner.ts",
+ "web/src/compose_closed_ui.js",
+ "web/src/compose_fade.js",
+ "web/src/compose_state.js",
+ "web/src/compose_ui.js",
+ "web/src/compose_validate.js",
+ "web/src/composebox_typeahead.js",
+ "web/src/condense.js",
+ "web/src/confirm_dialog.js",
+ "web/src/copy_and_paste.js",
+ "web/src/csrf.ts",
+ "web/src/css_variables.js",
+ "web/src/dark_theme.js",
+ "web/src/debug.js",
+ "web/src/deprecated_feature_notice.js",
+ "web/src/desktop_integration.js",
+ "web/src/dialog_widget.js",
+ "web/src/drafts.js",
+ "web/src/dropdown_list_widget.js",
+ "web/src/echo.js",
+ "web/src/emoji_picker.js",
+ "web/src/emojisets.js",
+ "web/src/favicon.js",
+ "web/src/feature_flags.ts",
+ "web/src/feedback_widget.js",
+ "web/src/flatpickr.js",
+ "web/src/gear_menu.js",
+ "web/src/giphy.js",
+ "web/src/global.d.ts",
+ "web/src/hash_util.js",
+ "web/src/hashchange.js",
+ "web/src/hbs.d.ts",
+ "web/src/hotkey.js",
+ "web/src/hotspots.js",
+ "web/src/info_overlay.js",
+ "web/src/invite.js",
+ "web/src/lightbox.js",
+ "web/src/list_util.ts",
+ "web/src/list_widget.js",
+ "web/src/loading.ts",
+ "web/src/local_message.js",
+ "web/src/localstorage.js",
+ "web/src/message_edit.js",
+ "web/src/message_edit_history.js",
+ "web/src/message_events.js",
+ "web/src/message_fetch.js",
+ "web/src/message_list.js",
+ "web/src/message_list_data.js",
+ "web/src/message_list_view.js",
+ "web/src/message_lists.js",
+ "web/src/message_live_update.js",
+ "web/src/message_scroll.js",
+ "web/src/message_util.js",
+ "web/src/message_view_header.js",
+ "web/src/message_viewport.js",
+ "web/src/muted_topics_ui.js",
+ "web/src/muted_users_ui.js",
+ "web/src/narrow.js",
+ "web/src/navbar_alerts.js",
+ "web/src/navigate.js",
+ "web/src/notifications.js",
+ "web/src/overlays.js",
+ "web/src/padded_widget.ts",
+ "web/src/page_params.ts",
+ "web/src/pm_list.js",
+ "web/src/pm_list_dom.js",
+ "web/src/poll_widget.js",
+ "web/src/popover_menus.js",
+ "web/src/popover_menus_data.js",
+ "web/src/popovers.js",
+ "web/src/read_receipts.js",
+ "web/src/ready.ts",
+ "web/src/realm_icon.js",
+ "web/src/realm_logo.js",
+ "web/src/realm_playground.js",
+ "web/src/realm_user_settings_defaults.ts",
+ "web/src/recent_topics_ui.js",
+ "web/src/recent_topics_util.js",
+ "web/src/reload.js",
+ "web/src/reminder.js",
+ "web/src/resize.js",
+ "web/src/rows.js",
+ "web/src/scroll_bar.js",
+ "web/src/search_pill_widget.js",
+ "web/src/sent_messages.js",
+ "web/src/server_events.js",
+ "web/src/settings.js",
+ "web/src/settings_account.js",
+ "web/src/settings_bots.js",
+ "web/src/settings_display.js",
+ "web/src/settings_emoji.js",
+ "web/src/settings_exports.js",
+ "web/src/settings_invites.js",
+ "web/src/settings_linkifiers.js",
+ "web/src/settings_muted_topics.js",
+ "web/src/settings_muted_users.js",
+ "web/src/settings_notifications.js",
+ "web/src/settings_org.js",
+ "web/src/settings_panel_menu.js",
+ "web/src/settings_playgrounds.js",
+ "web/src/settings_profile_fields.js",
+ "web/src/settings_realm_domains.js",
+ "web/src/settings_realm_user_settings_defaults.js",
+ "web/src/settings_sections.js",
+ "web/src/settings_streams.js",
+ "web/src/settings_toggle.js",
+ "web/src/settings_ui.js",
+ "web/src/settings_user_groups_legacy.js",
+ "web/src/settings_users.js",
+ "web/src/setup.js",
+ "web/src/spectators.js",
+ "web/src/spoilers.ts",
+ "web/src/starred_messages_ui.js",
+ "web/src/stream_bar.js",
+ "web/src/stream_color.js",
+ "web/src/stream_create.js",
+ "web/src/stream_create_subscribers.js",
+ "web/src/stream_edit.js",
+ "web/src/stream_edit_subscribers.js",
+ "web/src/stream_list.js",
+ "web/src/stream_muting.js",
+ "web/src/stream_popover.js",
+ "web/src/stream_settings_containers.js",
+ "web/src/stream_settings_ui.js",
+ "web/src/stream_ui_updates.js",
+ "web/src/submessage.js",
+ "web/src/subscriber_api.js",
+ "web/src/timerender.ts",
+ "web/src/tippyjs.js",
+ "web/src/todo_widget.js",
+ "web/src/topic_list.js",
+ "web/src/topic_zoom.js",
+ "web/src/tutorial.js",
+ "web/src/types.ts",
+ "web/src/typing.js",
+ "web/src/typing_events.js",
+ "web/src/ui.js",
+ "web/src/ui_init.js",
+ "web/src/ui_report.ts",
+ "web/src/ui_util.ts",
+ "web/src/unread.js",
+ "web/src/unread_ops.js",
+ "web/src/unread_ui.js",
+ "web/src/upload.js",
+ "web/src/upload_widget.ts",
+ "web/src/user_group_create.js",
+ "web/src/user_group_create_members.js",
+ "web/src/user_group_create_members_data.js",
+ "web/src/user_group_edit.js",
+ "web/src/user_group_edit_members.js",
+ "web/src/user_group_ui_updates.js",
+ "web/src/user_groups_settings_ui.js",
+ "web/src/user_profile.js",
+ "web/src/user_settings.ts",
+ "web/src/user_status.js",
+ "web/src/user_status_ui.js",
+ "web/src/webpack_public_path.js",
+ "web/src/zcommand.js",
+ "web/src/zform.js",
+ "web/src/zulip.js",
+ "web/src/zulip_test.js",
]
)
@@ -396,11 +396,11 @@ def enforce_proper_coverage(coverage_json: Any) -> bool:
all_js_files = {
*glob.glob("frontend_tests/node_tests/*.js"),
*glob.glob("frontend_tests/zjsunit/*.js"),
- *glob.glob("static/js/*.js"),
- *glob.glob("static/js/*.ts"),
- *glob.glob("static/shared/js/*.js"),
- *glob.glob("static/shared/js/*.ts"),
- *glob.glob("static/js/billing/*.js"),
+ *glob.glob("web/shared/src/*.js"),
+ *glob.glob("web/shared/src/*.ts"),
+ *glob.glob("web/src/*.js"),
+ *glob.glob("web/src/*.ts"),
+ *glob.glob("web/src/billing/*.js"),
}
enforce_fully_covered = sorted(all_js_files - EXEMPT_FILES)
diff --git a/tools/update-prod-static b/tools/update-prod-static
index 53bc41dca73..7e960ddcf8c 100755
--- a/tools/update-prod-static
+++ b/tools/update-prod-static
@@ -49,21 +49,7 @@ run(["./tools/setup/build_timezone_values"])
run(["./tools/webpack", "--quiet"])
# Collect the files that we're going to serve; this creates prod-static/serve.
-run(
- [
- "./manage.py",
- "collectstatic",
- "--no-default-ignore",
- "-v0",
- "--noinput",
- "--ignore=assets",
- "--ignore=emoji-styles",
- "--ignore=html",
- "--ignore=js",
- "--ignore=styles",
- "--ignore=templates",
- ]
-)
+run(["./manage.py", "collectstatic", "-v0", "--noinput"])
# Compile translation strings to generate `.mo` files.
run(["./manage.py", "compilemessages", "-v0"])
diff --git a/tools/webpack b/tools/webpack
index f30341a79bc..ae7cc28b3e8 100755
--- a/tools/webpack
+++ b/tools/webpack
@@ -79,8 +79,8 @@ def build_for_dev_server(host: str, port: str, minify: bool, disable_host_check:
# We did a chdir to the root of the Zulip checkout above.
for filepath in [
"webpack.config.ts",
- "tools/webpack.assets.json",
- "tools/webpack.dev-assets.json",
+ "web/webpack.assets.json",
+ "web/webpack.dev-assets.json",
]:
watch_manager.add_watch(filepath, pyinotify.IN_MODIFY)
event_notifier.loop()
@@ -100,10 +100,10 @@ def build_for_most_tests() -> None:
# configuration for ALL tests, but figuring out the full history here
# was out of the scope of the effort here to add some comments and
# clean up names.
- with open("tools/webpack.assets.json") as json_data:
+ with open("web/webpack.assets.json") as json_data:
entries = json.load(json_data)
- with open("tools/webpack.dev-assets.json") as json_data:
+ with open("web/webpack.dev-assets.json") as json_data:
entries.update(json.load(json_data))
stat_data = {
diff --git a/tools/webpack.assets.json b/tools/webpack.assets.json
deleted file mode 100644
index d829facff79..00000000000
--- a/tools/webpack.assets.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "activity": [
- "./static/js/bundles/common",
- "sorttable",
- "./static/js/analytics/activity",
- "./static/styles/portico/activity.css"
- ],
- "billing": [
- "./static/js/bundles/portico",
- "./static/js/portico/landing-page",
- "./static/styles/portico/landing_page.css",
- "./static/js/billing/helpers",
- "./static/js/billing/billing",
- "./static/js/templates",
- "./static/js/loading",
- "./static/styles/portico/billing.css"
- ],
- "upgrade": [
- "./static/js/bundles/portico",
- "./static/js/portico/tippyjs",
- "./static/js/portico/landing-page",
- "./static/styles/portico/landing_page.css",
- "./static/js/billing/helpers",
- "./static/js/billing/upgrade",
- "./static/js/templates",
- "./static/js/loading",
- "./static/styles/portico/billing.css"
- ],
- "billing-event-status": [
- "./static/js/bundles/portico",
- "./static/styles/portico/landing_page.css",
- "./static/js/billing/event_status.js",
- "./static/js/billing/helpers",
- "./static/styles/portico/billing.css"
- ],
- "portico": ["./static/js/bundles/portico"],
- "error-styles": [
- "./static/third/bootstrap/css/bootstrap.css",
- "./static/styles/portico/portico_styles.css"
- ],
- "common": ["./static/js/bundles/common"],
- "help": [
- "./static/js/bundles/portico",
- "simplebar/dist/simplebar.css",
- "simplebar",
- "./static/js/portico/help",
- "./static/js/portico/tabbed-instructions"
- ],
- "landing-page": [
- "./static/js/bundles/portico",
- "./static/js/portico/landing-page",
- "./static/styles/portico/landing_page.css"
- ],
- "integrations": [
- "./static/js/bundles/portico",
- "./static/js/portico/integrations",
- "./static/styles/portico/landing_page.css",
- "./static/styles/portico/integrations.css"
- ],
- "communities": [
- "./static/js/bundles/portico",
- "./static/js/portico/communities",
- "./static/styles/portico/landing_page.css",
- "./static/styles/portico/integrations.css"
- ],
- "signup": ["./static/js/bundles/portico", "jquery-validation", "./static/js/portico/signup"],
- "register": ["./static/js/bundles/portico", "jquery-validation", "./static/js/portico/signup"],
- "confirm-preregistrationuser": [
- "./static/js/bundles/common",
- "./static/js/portico/confirm-preregistrationuser"
- ],
- "support": [
- "./static/js/bundles/common",
- "sorttable",
- "./static/js/analytics/activity",
- "./static/styles/portico/activity.css",
- "./static/js/analytics/support"
- ],
- "desktop-login": ["./static/js/bundles/portico", "./static/js/portico/desktop-login"],
- "desktop-redirect": ["./static/js/bundles/portico", "./static/js/portico/desktop-redirect"],
- "stats": [
- "./static/js/bundles/portico",
- "./static/styles/portico/stats.css",
- "./static/js/stats/stats",
- "tippy.js/dist/tippy.css"
- ],
- "app": ["./static/js/bundles/app"],
- "digest": ["./static/js/bundles/portico"]
-}
diff --git a/tools/webpack.dev-assets.json b/tools/webpack.dev-assets.json
deleted file mode 100644
index 0485e706d39..00000000000
--- a/tools/webpack.dev-assets.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "dev-login": ["./static/js/bundles/portico", "./static/js/portico/dev-login"],
- "dev-integrations-panel": [
- "./static/js/bundles/portico",
- "./static/js/portico/integrations_dev_panel",
- "./static/styles/portico/integrations_dev_panel.css",
- "./static/js/reload_state",
- "./static/js/channel"
- ],
- "dev-email-log": [
- "./static/js/bundles/common",
- "./static/js/portico/email_log",
- "./static/styles/portico/email_log.css",
- "./static/js/reload_state",
- "./static/js/channel"
- ]
-}
diff --git a/tsconfig.json b/tsconfig.json
index 899814ff022..f2a7bfbcb0f 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,7 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
- "*": ["static/js/types/*"],
+ "*": ["web/src/types/*"],
},
"types": [],
@@ -34,7 +34,7 @@
},
"exclude": [
/* Type stubs are not part of the top-level project. */
- "static/js/types",
+ "web/src/types",
/* Skip walking large generated directories. */
"docs/_build",
diff --git a/version.py b/version.py
index 85d0cfa2e77..6e02708e578 100644
--- a/version.py
+++ b/version.py
@@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 164
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
-PROVISION_VERSION = (222, 1)
+PROVISION_VERSION = (223, 0)
diff --git a/web/.gitignore b/web/.gitignore
new file mode 100644
index 00000000000..f3873c8bf6f
--- /dev/null
+++ b/web/.gitignore
@@ -0,0 +1,6 @@
+# From emoji
+/generated/emoji-styles
+# From passing pygments data to the frontend
+/generated/pygments_data.json
+# From passing time zone data to the frontend
+/generated/timezones.json
diff --git a/tools/debug-require-webpack-plugin.ts b/web/debug-require-webpack-plugin.ts
similarity index 100%
rename from tools/debug-require-webpack-plugin.ts
rename to web/debug-require-webpack-plugin.ts
diff --git a/tools/debug-require.js b/web/debug-require.js
similarity index 100%
rename from tools/debug-require.js
rename to web/debug-require.js
diff --git a/web/generated/README.md b/web/generated/README.md
new file mode 100644
index 00000000000..89b21be89e1
--- /dev/null
+++ b/web/generated/README.md
@@ -0,0 +1 @@
+This directory is for generated frontend assets.
diff --git a/static/html/5xx.html b/web/html/5xx.html
similarity index 100%
rename from static/html/5xx.html
rename to web/html/5xx.html
diff --git a/static/images/app-screenshots/android.svg b/web/images/app-screenshots/android.svg
similarity index 100%
rename from static/images/app-screenshots/android.svg
rename to web/images/app-screenshots/android.svg
diff --git a/static/images/app-screenshots/iphoneX.svg b/web/images/app-screenshots/iphoneX.svg
similarity index 100%
rename from static/images/app-screenshots/iphoneX.svg
rename to web/images/app-screenshots/iphoneX.svg
diff --git a/static/images/app-screenshots/macbook.png b/web/images/app-screenshots/macbook.png
similarity index 100%
rename from static/images/app-screenshots/macbook.png
rename to web/images/app-screenshots/macbook.png
diff --git a/static/images/app-screenshots/microsoft.png b/web/images/app-screenshots/microsoft.png
similarity index 100%
rename from static/images/app-screenshots/microsoft.png
rename to web/images/app-screenshots/microsoft.png
diff --git a/static/images/app-screenshots/ubuntu.png b/web/images/app-screenshots/ubuntu.png
similarity index 100%
rename from static/images/app-screenshots/ubuntu.png
rename to web/images/app-screenshots/ubuntu.png
diff --git a/static/images/app-screenshots/zulip-android.png b/web/images/app-screenshots/zulip-android.png
similarity index 100%
rename from static/images/app-screenshots/zulip-android.png
rename to web/images/app-screenshots/zulip-android.png
diff --git a/static/images/app-screenshots/zulip-iphone-rough.png b/web/images/app-screenshots/zulip-iphone-rough.png
similarity index 100%
rename from static/images/app-screenshots/zulip-iphone-rough.png
rename to web/images/app-screenshots/zulip-iphone-rough.png
diff --git a/static/images/checkbox-green.svg b/web/images/checkbox-green.svg
similarity index 100%
rename from static/images/checkbox-green.svg
rename to web/images/checkbox-green.svg
diff --git a/static/images/checkbox-white.svg b/web/images/checkbox-white.svg
similarity index 100%
rename from static/images/checkbox-white.svg
rename to web/images/checkbox-white.svg
diff --git a/static/images/checkbox.svg b/web/images/checkbox.svg
similarity index 100%
rename from static/images/checkbox.svg
rename to web/images/checkbox.svg
diff --git a/static/assets/default-default-avatar.svg b/web/images/default-default-avatar.svg
similarity index 100%
rename from static/assets/default-default-avatar.svg
rename to web/images/default-default-avatar.svg
diff --git a/static/images/dropdown.png b/web/images/dropdown.png
similarity index 100%
rename from static/images/dropdown.png
rename to web/images/dropdown.png
diff --git a/static/assets/emails/followup21.svg b/web/images/emails/followup21.svg
similarity index 100%
rename from static/assets/emails/followup21.svg
rename to web/images/emails/followup21.svg
diff --git a/static/assets/emails/followup22.svg b/web/images/emails/followup22.svg
similarity index 100%
rename from static/assets/emails/followup22.svg
rename to web/images/emails/followup22.svg
diff --git a/static/assets/emails/followup23.svg b/web/images/emails/followup23.svg
similarity index 100%
rename from static/assets/emails/followup23.svg
rename to web/images/emails/followup23.svg
diff --git a/static/assets/emails/footer.svg b/web/images/emails/footer.svg
similarity index 100%
rename from static/assets/emails/footer.svg
rename to web/images/emails/footer.svg
diff --git a/static/assets/emails/invitation_reminder.svg b/web/images/emails/invitation_reminder.svg
similarity index 100%
rename from static/assets/emails/invitation_reminder.svg
rename to web/images/emails/invitation_reminder.svg
diff --git a/static/assets/emails/logo.svg b/web/images/emails/logo.svg
similarity index 100%
rename from static/assets/emails/logo.svg
rename to web/images/emails/logo.svg
diff --git a/static/assets/emails/registration_confirmation.svg b/web/images/emails/registration_confirmation.svg
similarity index 100%
rename from static/assets/emails/registration_confirmation.svg
rename to web/images/emails/registration_confirmation.svg
diff --git a/static/images/giphy/GIPHY_attribution.png b/web/images/giphy/GIPHY_attribution.png
similarity index 100%
rename from static/images/giphy/GIPHY_attribution.png
rename to web/images/giphy/GIPHY_attribution.png
diff --git a/static/images/hotspots/fish.svg b/web/images/hotspots/fish.svg
similarity index 100%
rename from static/images/hotspots/fish.svg
rename to web/images/hotspots/fish.svg
diff --git a/static/images/hotspots/kelp.svg b/web/images/hotspots/kelp.svg
similarity index 100%
rename from static/images/hotspots/kelp.svg
rename to web/images/hotspots/kelp.svg
diff --git a/static/images/hotspots/speech-bubble.svg b/web/images/hotspots/speech-bubble.svg
similarity index 100%
rename from static/images/hotspots/speech-bubble.svg
rename to web/images/hotspots/speech-bubble.svg
diff --git a/static/images/hotspots/whale-bubble.svg b/web/images/hotspots/whale-bubble.svg
similarity index 100%
rename from static/images/hotspots/whale-bubble.svg
rename to web/images/hotspots/whale-bubble.svg
diff --git a/static/images/hotspots/whale.svg b/web/images/hotspots/whale.svg
similarity index 100%
rename from static/images/hotspots/whale.svg
rename to web/images/hotspots/whale.svg
diff --git a/static/assets/icons/arrow-left-circle.svg b/web/images/icons/arrow-left-circle.svg
similarity index 100%
rename from static/assets/icons/arrow-left-circle.svg
rename to web/images/icons/arrow-left-circle.svg
diff --git a/static/assets/icons/close.svg b/web/images/icons/close.svg
similarity index 100%
rename from static/assets/icons/close.svg
rename to web/images/icons/close.svg
diff --git a/static/assets/icons/template.hbs b/web/images/icons/template.hbs
similarity index 100%
rename from static/assets/icons/template.hbs
rename to web/images/icons/template.hbs
diff --git a/static/assets/icons/zulip-icons.font.js b/web/images/icons/zulip-icons.font.js
similarity index 100%
rename from static/assets/icons/zulip-icons.font.js
rename to web/images/icons/zulip-icons.font.js
diff --git a/static/images/landing-page/apps/waves.svg b/web/images/landing-page/apps/waves.svg
similarity index 100%
rename from static/images/landing-page/apps/waves.svg
rename to web/images/landing-page/apps/waves.svg
diff --git a/static/images/landing-page/arrow.png b/web/images/landing-page/arrow.png
similarity index 100%
rename from static/images/landing-page/arrow.png
rename to web/images/landing-page/arrow.png
diff --git a/static/images/landing-page/checkmark.png b/web/images/landing-page/checkmark.png
similarity index 100%
rename from static/images/landing-page/checkmark.png
rename to web/images/landing-page/checkmark.png
diff --git a/static/images/landing-page/education/companies-laptop.jpg b/web/images/landing-page/education/companies-laptop.jpg
similarity index 100%
rename from static/images/landing-page/education/companies-laptop.jpg
rename to web/images/landing-page/education/companies-laptop.jpg
diff --git a/static/images/landing-page/education/for-education-cover.jpg b/web/images/landing-page/education/for-education-cover.jpg
similarity index 100%
rename from static/images/landing-page/education/for-education-cover.jpg
rename to web/images/landing-page/education/for-education-cover.jpg
diff --git a/static/images/landing-page/events/for-events.jpg b/web/images/landing-page/events/for-events.jpg
similarity index 100%
rename from static/images/landing-page/events/for-events.jpg
rename to web/images/landing-page/events/for-events.jpg
diff --git a/static/images/landing-page/features/notifications.jpg b/web/images/landing-page/features/notifications.jpg
similarity index 100%
rename from static/images/landing-page/features/notifications.jpg
rename to web/images/landing-page/features/notifications.jpg
diff --git a/static/images/landing-page/logos/akamai.png b/web/images/landing-page/logos/akamai.png
similarity index 100%
rename from static/images/landing-page/logos/akamai.png
rename to web/images/landing-page/logos/akamai.png
diff --git a/static/images/landing-page/logos/cambridge-mobile-telematics.png b/web/images/landing-page/logos/cambridge-mobile-telematics.png
similarity index 100%
rename from static/images/landing-page/logos/cambridge-mobile-telematics.png
rename to web/images/landing-page/logos/cambridge-mobile-telematics.png
diff --git a/static/images/landing-page/logos/doctorondemand.png b/web/images/landing-page/logos/doctorondemand.png
similarity index 100%
rename from static/images/landing-page/logos/doctorondemand.png
rename to web/images/landing-page/logos/doctorondemand.png
diff --git a/static/images/landing-page/logos/layershift.png b/web/images/landing-page/logos/layershift.png
similarity index 100%
rename from static/images/landing-page/logos/layershift.png
rename to web/images/landing-page/logos/layershift.png
diff --git a/static/images/landing-page/logos/levelup.png b/web/images/landing-page/logos/levelup.png
similarity index 100%
rename from static/images/landing-page/logos/levelup.png
rename to web/images/landing-page/logos/levelup.png
diff --git a/static/images/landing-page/logos/mariadb.png b/web/images/landing-page/logos/mariadb.png
similarity index 100%
rename from static/images/landing-page/logos/mariadb.png
rename to web/images/landing-page/logos/mariadb.png
diff --git a/static/images/landing-page/logos/mixxx.png b/web/images/landing-page/logos/mixxx.png
similarity index 100%
rename from static/images/landing-page/logos/mixxx.png
rename to web/images/landing-page/logos/mixxx.png
diff --git a/static/images/landing-page/logos/panjiva.png b/web/images/landing-page/logos/panjiva.png
similarity index 100%
rename from static/images/landing-page/logos/panjiva.png
rename to web/images/landing-page/logos/panjiva.png
diff --git a/static/images/landing-page/logos/recurse.png b/web/images/landing-page/logos/recurse.png
similarity index 100%
rename from static/images/landing-page/logos/recurse.png
rename to web/images/landing-page/logos/recurse.png
diff --git a/static/images/landing-page/logos/wikimedia-outreach.png b/web/images/landing-page/logos/wikimedia-outreach.png
similarity index 100%
rename from static/images/landing-page/logos/wikimedia-outreach.png
rename to web/images/landing-page/logos/wikimedia-outreach.png
diff --git a/static/images/landing-page/mit-lobby-7.jpg b/web/images/landing-page/mit-lobby-7.jpg
similarity index 100%
rename from static/images/landing-page/mit-lobby-7.jpg
rename to web/images/landing-page/mit-lobby-7.jpg
diff --git a/static/images/landing-page/pycon-drone.jpg b/web/images/landing-page/pycon-drone.jpg
similarity index 100%
rename from static/images/landing-page/pycon-drone.jpg
rename to web/images/landing-page/pycon-drone.jpg
diff --git a/static/images/landing-page/pycon.jpg b/web/images/landing-page/pycon.jpg
similarity index 100%
rename from static/images/landing-page/pycon.jpg
rename to web/images/landing-page/pycon.jpg
diff --git a/static/images/landing-page/security.jpg b/web/images/landing-page/security.jpg
similarity index 100%
rename from static/images/landing-page/security.jpg
rename to web/images/landing-page/security.jpg
diff --git a/static/images/landing-page/why-zulip/why-zulip-threads.jpg b/web/images/landing-page/why-zulip/why-zulip-threads.jpg
similarity index 100%
rename from static/images/landing-page/why-zulip/why-zulip-threads.jpg
rename to web/images/landing-page/why-zulip/why-zulip-threads.jpg
diff --git a/static/images/landing-page/zulip-octopus.png b/web/images/landing-page/zulip-octopus.png
similarity index 100%
rename from static/images/landing-page/zulip-octopus.png
rename to web/images/landing-page/zulip-octopus.png
diff --git a/static/images/loading/loading-ellipsis.svg b/web/images/loading/loading-ellipsis.svg
similarity index 100%
rename from static/images/loading/loading-ellipsis.svg
rename to web/images/loading/loading-ellipsis.svg
diff --git a/static/images/loading/tail-spin.svg b/web/images/loading/tail-spin.svg
similarity index 100%
rename from static/images/loading/tail-spin.svg
rename to web/images/loading/tail-spin.svg
diff --git a/static/images/logo/white-zulip-logo-without-text.svg b/web/images/logo/white-zulip-logo-without-text.svg
similarity index 100%
rename from static/images/logo/white-zulip-logo-without-text.svg
rename to web/images/logo/white-zulip-logo-without-text.svg
diff --git a/static/assets/zulip-emoji/zulip.png b/web/images/zulip-emoji/zulip.png
similarity index 100%
rename from static/assets/zulip-emoji/zulip.png
rename to web/images/zulip-emoji/zulip.png
diff --git a/static/images/zulip-logo.svg b/web/images/zulip-logo.svg
similarity index 100%
rename from static/images/zulip-logo.svg
rename to web/images/zulip-logo.svg
diff --git a/static/shared/.gitignore b/web/shared/.gitignore
similarity index 100%
rename from static/shared/.gitignore
rename to web/shared/.gitignore
diff --git a/static/shared/.npmrc b/web/shared/.npmrc
similarity index 100%
rename from static/shared/.npmrc
rename to web/shared/.npmrc
diff --git a/static/shared/README.md b/web/shared/README.md
similarity index 100%
rename from static/shared/README.md
rename to web/shared/README.md
diff --git a/static/shared/icons/README.md b/web/shared/icons/README.md
similarity index 100%
rename from static/shared/icons/README.md
rename to web/shared/icons/README.md
diff --git a/static/shared/icons/bot.svg b/web/shared/icons/bot.svg
similarity index 100%
rename from static/shared/icons/bot.svg
rename to web/shared/icons/bot.svg
diff --git a/static/shared/icons/ellipsis-v-solid.svg b/web/shared/icons/ellipsis-v-solid.svg
similarity index 100%
rename from static/shared/icons/ellipsis-v-solid.svg
rename to web/shared/icons/ellipsis-v-solid.svg
diff --git a/static/shared/icons/gif.svg b/web/shared/icons/gif.svg
similarity index 100%
rename from static/shared/icons/gif.svg
rename to web/shared/icons/gif.svg
diff --git a/static/shared/icons/globe.svg b/web/shared/icons/globe.svg
similarity index 100%
rename from static/shared/icons/globe.svg
rename to web/shared/icons/globe.svg
diff --git a/static/shared/icons/language.svg b/web/shared/icons/language.svg
similarity index 100%
rename from static/shared/icons/language.svg
rename to web/shared/icons/language.svg
diff --git a/static/shared/icons/mute.svg b/web/shared/icons/mute.svg
similarity index 100%
rename from static/shared/icons/mute.svg
rename to web/shared/icons/mute.svg
diff --git a/static/shared/icons/readreceipts.svg b/web/shared/icons/readreceipts.svg
similarity index 100%
rename from static/shared/icons/readreceipts.svg
rename to web/shared/icons/readreceipts.svg
diff --git a/static/shared/package.json b/web/shared/package.json
similarity index 85%
rename from static/shared/package.json
rename to web/shared/package.json
index b809ee47bfb..e42a9bfe419 100644
--- a/static/shared/package.json
+++ b/web/shared/package.json
@@ -3,7 +3,7 @@
"version": "0.0.18",
"license": "Apache-2.0",
"scripts": {
- "prepare": "rm -rf lib && tsc && cp js/*.flow lib",
+ "prepare": "rm -rf lib && tsc && cp src/*.flow lib",
"version": "tools/npm-version",
"postversion": "tools/npm-postversion"
},
diff --git a/static/shared/js/fenced_code.js b/web/shared/src/fenced_code.js
similarity index 100%
rename from static/shared/js/fenced_code.js
rename to web/shared/src/fenced_code.js
diff --git a/static/shared/js/internal_url.js b/web/shared/src/internal_url.js
similarity index 100%
rename from static/shared/js/internal_url.js
rename to web/shared/src/internal_url.js
diff --git a/static/shared/js/internal_url.js.flow b/web/shared/src/internal_url.js.flow
similarity index 100%
rename from static/shared/js/internal_url.js.flow
rename to web/shared/src/internal_url.js.flow
diff --git a/static/shared/js/poll_data.js b/web/shared/src/poll_data.js
similarity index 100%
rename from static/shared/js/poll_data.js
rename to web/shared/src/poll_data.js
diff --git a/static/shared/js/poll_data.js.flow b/web/shared/src/poll_data.js.flow
similarity index 100%
rename from static/shared/js/poll_data.js.flow
rename to web/shared/src/poll_data.js.flow
diff --git a/static/shared/js/resolved_topic.js b/web/shared/src/resolved_topic.js
similarity index 100%
rename from static/shared/js/resolved_topic.js
rename to web/shared/src/resolved_topic.js
diff --git a/static/shared/js/resolved_topic.js.flow b/web/shared/src/resolved_topic.js.flow
similarity index 100%
rename from static/shared/js/resolved_topic.js.flow
rename to web/shared/src/resolved_topic.js.flow
diff --git a/static/shared/js/typeahead.js.flow b/web/shared/src/typeahead.js.flow
similarity index 100%
rename from static/shared/js/typeahead.js.flow
rename to web/shared/src/typeahead.js.flow
diff --git a/static/shared/js/typeahead.ts b/web/shared/src/typeahead.ts
similarity index 100%
rename from static/shared/js/typeahead.ts
rename to web/shared/src/typeahead.ts
diff --git a/static/shared/js/typing_status.js b/web/shared/src/typing_status.js
similarity index 100%
rename from static/shared/js/typing_status.js
rename to web/shared/src/typing_status.js
diff --git a/static/shared/js/typing_status.js.flow b/web/shared/src/typing_status.js.flow
similarity index 100%
rename from static/shared/js/typing_status.js.flow
rename to web/shared/src/typing_status.js.flow
diff --git a/static/shared/tools/npm-postversion b/web/shared/tools/npm-postversion
similarity index 100%
rename from static/shared/tools/npm-postversion
rename to web/shared/tools/npm-postversion
diff --git a/static/shared/tools/npm-version b/web/shared/tools/npm-version
similarity index 100%
rename from static/shared/tools/npm-version
rename to web/shared/tools/npm-version
diff --git a/static/shared/tsconfig.json b/web/shared/tsconfig.json
similarity index 93%
rename from static/shared/tsconfig.json
rename to web/shared/tsconfig.json
index 8c4d84eeeb8..282a18e9c66 100644
--- a/static/shared/tsconfig.json
+++ b/web/shared/tsconfig.json
@@ -4,7 +4,7 @@
"target": "es2019",
/* Modules */
- "rootDir": "js",
+ "rootDir": "src",
"moduleResolution": "node",
/* JavaScript Support */
@@ -28,5 +28,5 @@
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
},
- "include": ["js"],
+ "include": ["src"],
}
diff --git a/static/js/about_zulip.js b/web/src/about_zulip.js
similarity index 100%
rename from static/js/about_zulip.js
rename to web/src/about_zulip.js
diff --git a/static/js/activity.js b/web/src/activity.js
similarity index 100%
rename from static/js/activity.js
rename to web/src/activity.js
diff --git a/static/js/add_subscribers_pill.js b/web/src/add_subscribers_pill.js
similarity index 100%
rename from static/js/add_subscribers_pill.js
rename to web/src/add_subscribers_pill.js
diff --git a/static/js/admin.js b/web/src/admin.js
similarity index 100%
rename from static/js/admin.js
rename to web/src/admin.js
diff --git a/static/js/alert_popup.ts b/web/src/alert_popup.ts
similarity index 100%
rename from static/js/alert_popup.ts
rename to web/src/alert_popup.ts
diff --git a/static/js/alert_words.js b/web/src/alert_words.js
similarity index 100%
rename from static/js/alert_words.js
rename to web/src/alert_words.js
diff --git a/static/js/alert_words_ui.js b/web/src/alert_words_ui.js
similarity index 100%
rename from static/js/alert_words_ui.js
rename to web/src/alert_words_ui.js
diff --git a/static/js/all_messages_data.js b/web/src/all_messages_data.js
similarity index 100%
rename from static/js/all_messages_data.js
rename to web/src/all_messages_data.js
diff --git a/static/js/analytics/activity.js b/web/src/analytics/activity.js
similarity index 100%
rename from static/js/analytics/activity.js
rename to web/src/analytics/activity.js
diff --git a/static/js/analytics/support.js b/web/src/analytics/support.js
similarity index 100%
rename from static/js/analytics/support.js
rename to web/src/analytics/support.js
diff --git a/static/js/assets.d.ts b/web/src/assets.d.ts
similarity index 100%
rename from static/js/assets.d.ts
rename to web/src/assets.d.ts
diff --git a/static/js/attachments_ui.js b/web/src/attachments_ui.js
similarity index 100%
rename from static/js/attachments_ui.js
rename to web/src/attachments_ui.js
diff --git a/static/js/avatar.js b/web/src/avatar.js
similarity index 100%
rename from static/js/avatar.js
rename to web/src/avatar.js
diff --git a/static/js/billing/billing.js b/web/src/billing/billing.js
similarity index 100%
rename from static/js/billing/billing.js
rename to web/src/billing/billing.js
diff --git a/static/js/billing/event_status.js b/web/src/billing/event_status.js
similarity index 100%
rename from static/js/billing/event_status.js
rename to web/src/billing/event_status.js
diff --git a/static/js/billing/helpers.js b/web/src/billing/helpers.js
similarity index 100%
rename from static/js/billing/helpers.js
rename to web/src/billing/helpers.js
diff --git a/static/js/billing/upgrade.js b/web/src/billing/upgrade.js
similarity index 100%
rename from static/js/billing/upgrade.js
rename to web/src/billing/upgrade.js
diff --git a/static/js/blueslip.ts b/web/src/blueslip.ts
similarity index 100%
rename from static/js/blueslip.ts
rename to web/src/blueslip.ts
diff --git a/static/js/blueslip_stacktrace.ts b/web/src/blueslip_stacktrace.ts
similarity index 100%
rename from static/js/blueslip_stacktrace.ts
rename to web/src/blueslip_stacktrace.ts
diff --git a/static/js/bot_data.js b/web/src/bot_data.js
similarity index 100%
rename from static/js/bot_data.js
rename to web/src/bot_data.js
diff --git a/static/js/browser_history.js b/web/src/browser_history.js
similarity index 100%
rename from static/js/browser_history.js
rename to web/src/browser_history.js
diff --git a/static/js/buddy_data.js b/web/src/buddy_data.js
similarity index 100%
rename from static/js/buddy_data.js
rename to web/src/buddy_data.js
diff --git a/static/js/buddy_list.js b/web/src/buddy_list.js
similarity index 100%
rename from static/js/buddy_list.js
rename to web/src/buddy_list.js
diff --git a/static/js/bundles/app.js b/web/src/bundles/app.js
similarity index 100%
rename from static/js/bundles/app.js
rename to web/src/bundles/app.js
diff --git a/static/js/bundles/common.js b/web/src/bundles/common.js
similarity index 86%
rename from static/js/bundles/common.js
rename to web/src/bundles/common.js
index 5350b60cf64..2068a4bc2ef 100644
--- a/static/js/bundles/common.js
+++ b/web/src/bundles/common.js
@@ -1,5 +1,5 @@
import "../webpack_public_path";
-import "../../../tools/debug-require";
+import "../../debug-require";
import "../alert_popup";
import "../csrf";
import "../blueslip";
@@ -8,7 +8,7 @@ import "../../third/bootstrap/css/bootstrap.css";
import "../../third/bootstrap/css/bootstrap-btn.css";
import "simplebar/dist/simplebar.css";
import "font-awesome/css/font-awesome.css";
-import "../../assets/icons/zulip-icons.font";
+import "../../images/icons/zulip-icons.font";
import "source-sans/source-sans-3.css";
import "source-code-pro/source-code-pro.css";
import "../../styles/alerts.css";
diff --git a/static/js/bundles/portico.js b/web/src/bundles/portico.js
similarity index 100%
rename from static/js/bundles/portico.js
rename to web/src/bundles/portico.js
diff --git a/static/js/channel.js b/web/src/channel.js
similarity index 100%
rename from static/js/channel.js
rename to web/src/channel.js
diff --git a/static/js/click_handlers.js b/web/src/click_handlers.js
similarity index 100%
rename from static/js/click_handlers.js
rename to web/src/click_handlers.js
diff --git a/static/js/color_class.ts b/web/src/color_class.ts
similarity index 100%
rename from static/js/color_class.ts
rename to web/src/color_class.ts
diff --git a/static/js/color_data.ts b/web/src/color_data.ts
similarity index 100%
rename from static/js/color_data.ts
rename to web/src/color_data.ts
diff --git a/static/js/colorspace.ts b/web/src/colorspace.ts
similarity index 100%
rename from static/js/colorspace.ts
rename to web/src/colorspace.ts
diff --git a/static/js/common.ts b/web/src/common.ts
similarity index 100%
rename from static/js/common.ts
rename to web/src/common.ts
diff --git a/static/js/components.ts b/web/src/components.ts
similarity index 100%
rename from static/js/components.ts
rename to web/src/components.ts
diff --git a/static/js/compose.js b/web/src/compose.js
similarity index 100%
rename from static/js/compose.js
rename to web/src/compose.js
diff --git a/static/js/compose_actions.js b/web/src/compose_actions.js
similarity index 99%
rename from static/js/compose_actions.js
rename to web/src/compose_actions.js
index b46ac680aa7..b516af5e597 100644
--- a/static/js/compose_actions.js
+++ b/web/src/compose_actions.js
@@ -2,7 +2,7 @@ import autosize from "autosize";
import $ from "jquery";
import _ from "lodash";
-import * as fenced_code from "../shared/js/fenced_code";
+import * as fenced_code from "../shared/src/fenced_code";
import * as channel from "./channel";
import * as compose from "./compose";
diff --git a/static/js/compose_banner.ts b/web/src/compose_banner.ts
similarity index 100%
rename from static/js/compose_banner.ts
rename to web/src/compose_banner.ts
diff --git a/static/js/compose_closed_ui.js b/web/src/compose_closed_ui.js
similarity index 100%
rename from static/js/compose_closed_ui.js
rename to web/src/compose_closed_ui.js
diff --git a/static/js/compose_fade.js b/web/src/compose_fade.js
similarity index 100%
rename from static/js/compose_fade.js
rename to web/src/compose_fade.js
diff --git a/static/js/compose_fade_helper.js b/web/src/compose_fade_helper.js
similarity index 100%
rename from static/js/compose_fade_helper.js
rename to web/src/compose_fade_helper.js
diff --git a/static/js/compose_fade_users.js b/web/src/compose_fade_users.js
similarity index 100%
rename from static/js/compose_fade_users.js
rename to web/src/compose_fade_users.js
diff --git a/static/js/compose_pm_pill.js b/web/src/compose_pm_pill.js
similarity index 100%
rename from static/js/compose_pm_pill.js
rename to web/src/compose_pm_pill.js
diff --git a/static/js/compose_state.js b/web/src/compose_state.js
similarity index 100%
rename from static/js/compose_state.js
rename to web/src/compose_state.js
diff --git a/static/js/compose_ui.js b/web/src/compose_ui.js
similarity index 100%
rename from static/js/compose_ui.js
rename to web/src/compose_ui.js
diff --git a/static/js/compose_validate.js b/web/src/compose_validate.js
similarity index 99%
rename from static/js/compose_validate.js
rename to web/src/compose_validate.js
index 3f9bc75477a..23110ca9a45 100644
--- a/static/js/compose_validate.js
+++ b/web/src/compose_validate.js
@@ -1,6 +1,6 @@
import $ from "jquery";
-import * as resolved_topic from "../shared/js/resolved_topic";
+import * as resolved_topic from "../shared/src/resolved_topic";
import render_compose_banner from "../templates/compose_banner/compose_banner.hbs";
import render_not_subscribed_warning from "../templates/compose_banner/not_subscribed_warning.hbs";
import render_private_stream_warning from "../templates/compose_banner/private_stream_warning.hbs";
diff --git a/static/js/composebox_typeahead.js b/web/src/composebox_typeahead.js
similarity index 99%
rename from static/js/composebox_typeahead.js
rename to web/src/composebox_typeahead.js
index 6a3ba2a16d5..5cdf616870a 100644
--- a/static/js/composebox_typeahead.js
+++ b/web/src/composebox_typeahead.js
@@ -2,7 +2,7 @@ import $ from "jquery";
import _ from "lodash";
import pygments_data from "../generated/pygments_data.json";
-import * as typeahead from "../shared/js/typeahead";
+import * as typeahead from "../shared/src/typeahead";
import * as compose from "./compose";
import * as compose_pm_pill from "./compose_pm_pill";
diff --git a/static/js/condense.js b/web/src/condense.js
similarity index 100%
rename from static/js/condense.js
rename to web/src/condense.js
diff --git a/static/js/confirm_dialog.js b/web/src/confirm_dialog.js
similarity index 100%
rename from static/js/confirm_dialog.js
rename to web/src/confirm_dialog.js
diff --git a/static/js/copy_and_paste.js b/web/src/copy_and_paste.js
similarity index 100%
rename from static/js/copy_and_paste.js
rename to web/src/copy_and_paste.js
diff --git a/static/js/csrf.ts b/web/src/csrf.ts
similarity index 100%
rename from static/js/csrf.ts
rename to web/src/csrf.ts
diff --git a/static/js/css_variables.js b/web/src/css_variables.js
similarity index 100%
rename from static/js/css_variables.js
rename to web/src/css_variables.js
diff --git a/static/js/dark_theme.js b/web/src/dark_theme.js
similarity index 100%
rename from static/js/dark_theme.js
rename to web/src/dark_theme.js
diff --git a/static/js/debug.js b/web/src/debug.js
similarity index 98%
rename from static/js/debug.js
rename to web/src/debug.js
index a32bc432316..64b23f63a48 100644
--- a/static/js/debug.js
+++ b/web/src/debug.js
@@ -2,7 +2,7 @@
// This module is included from webpack in development mode. To access it from
// the browser console, run:
-// var debug = require("./static/js/debug");
+// var debug = require("./web/src/debug");
/*
debug.print_elapsed_time("foo", foo)
diff --git a/static/js/deprecated_feature_notice.js b/web/src/deprecated_feature_notice.js
similarity index 100%
rename from static/js/deprecated_feature_notice.js
rename to web/src/deprecated_feature_notice.js
diff --git a/static/js/desktop_integration.js b/web/src/desktop_integration.js
similarity index 100%
rename from static/js/desktop_integration.js
rename to web/src/desktop_integration.js
diff --git a/static/js/dialog_widget.js b/web/src/dialog_widget.js
similarity index 100%
rename from static/js/dialog_widget.js
rename to web/src/dialog_widget.js
diff --git a/static/js/drafts.js b/web/src/drafts.js
similarity index 100%
rename from static/js/drafts.js
rename to web/src/drafts.js
diff --git a/static/js/dropdown_list_widget.js b/web/src/dropdown_list_widget.js
similarity index 100%
rename from static/js/dropdown_list_widget.js
rename to web/src/dropdown_list_widget.js
diff --git a/static/js/echo.js b/web/src/echo.js
similarity index 100%
rename from static/js/echo.js
rename to web/src/echo.js
diff --git a/static/js/emoji.js b/web/src/emoji.js
similarity index 100%
rename from static/js/emoji.js
rename to web/src/emoji.js
diff --git a/static/js/emoji_picker.js b/web/src/emoji_picker.js
similarity index 99%
rename from static/js/emoji_picker.js
rename to web/src/emoji_picker.js
index f7c1cbd4fbf..b82656f797d 100644
--- a/static/js/emoji_picker.js
+++ b/web/src/emoji_picker.js
@@ -1,7 +1,7 @@
import $ from "jquery";
-import emoji_codes from "../generated/emoji/emoji_codes.json";
-import * as typeahead from "../shared/js/typeahead";
+import emoji_codes from "../../static/generated/emoji/emoji_codes.json";
+import * as typeahead from "../shared/src/typeahead";
import render_emoji_popover from "../templates/emoji_popover.hbs";
import render_emoji_popover_content from "../templates/emoji_popover_content.hbs";
import render_emoji_popover_search_results from "../templates/emoji_popover_search_results.hbs";
diff --git a/static/js/emojisets.js b/web/src/emojisets.js
similarity index 96%
rename from static/js/emojisets.js
rename to web/src/emojisets.js
index a0a97f3b023..04d1d1d3894 100644
--- a/static/js/emojisets.js
+++ b/web/src/emojisets.js
@@ -2,7 +2,7 @@ import google_sheet from "emoji-datasource-google/img/google/sheets-256/64.png";
import google_blob_sheet from "emoji-datasource-google-blob/img/google/sheets-256/64.png";
import twitter_sheet from "emoji-datasource-twitter/img/twitter/sheets-256/64.png";
-import octopus_url from "../generated/emoji/images-google-64/1f419.png";
+import octopus_url from "../../static/generated/emoji/images-google-64/1f419.png";
import {user_settings} from "./user_settings";
diff --git a/static/js/favicon.js b/web/src/favicon.js
similarity index 97%
rename from static/js/favicon.js
rename to web/src/favicon.js
index c626698fbf3..416789fd9a5 100644
--- a/static/js/favicon.js
+++ b/web/src/favicon.js
@@ -1,6 +1,6 @@
import $ from "jquery";
-import static_favicon_image from "../images/favicon.svg";
+import static_favicon_image from "../../static/images/favicon.svg";
import render_favicon_svg from "../templates/favicon.svg.hbs";
import * as blueslip from "./blueslip";
diff --git a/static/js/feature_flags.ts b/web/src/feature_flags.ts
similarity index 100%
rename from static/js/feature_flags.ts
rename to web/src/feature_flags.ts
diff --git a/static/js/feedback_widget.js b/web/src/feedback_widget.js
similarity index 100%
rename from static/js/feedback_widget.js
rename to web/src/feedback_widget.js
diff --git a/static/js/fetch_status.js b/web/src/fetch_status.js
similarity index 100%
rename from static/js/fetch_status.js
rename to web/src/fetch_status.js
diff --git a/static/js/filter.js b/web/src/filter.js
similarity index 99%
rename from static/js/filter.js
rename to web/src/filter.js
index bb867a80b83..85c0e97bbe5 100644
--- a/static/js/filter.js
+++ b/web/src/filter.js
@@ -1,7 +1,7 @@
import Handlebars from "handlebars/runtime";
import _ from "lodash";
-import * as resolved_topic from "../shared/js/resolved_topic";
+import * as resolved_topic from "../shared/src/resolved_topic";
import * as hash_util from "./hash_util";
import {$t} from "./i18n";
diff --git a/static/js/flatpickr.js b/web/src/flatpickr.js
similarity index 100%
rename from static/js/flatpickr.js
rename to web/src/flatpickr.js
diff --git a/static/js/fold_dict.ts b/web/src/fold_dict.ts
similarity index 100%
rename from static/js/fold_dict.ts
rename to web/src/fold_dict.ts
diff --git a/static/js/gear_menu.js b/web/src/gear_menu.js
similarity index 97%
rename from static/js/gear_menu.js
rename to web/src/gear_menu.js
index ee18dcffdc7..fc439963e0c 100644
--- a/static/js/gear_menu.js
+++ b/web/src/gear_menu.js
@@ -60,7 +60,7 @@ links:
#invite
When you click on the links there is a function
-called hashchanged() in static/js/hashchange.js
+called hashchanged() in web/src/hashchange.js
that gets invoked. (We register this as a listener
for the hashchange event.) This function then
launches the appropriate modal for each menu item.
@@ -73,8 +73,8 @@ mechanism to link to external pages, and they
have a target of "_blank".
The "info:" items use our info overlay system
-in static/js/info_overlay.js. They are dispatched
-using a click handler in static/js/click_handlers.js.
+in web/src/info_overlay.js. They are dispatched
+using a click handler in web/src/click_handlers.js.
The click handler uses "[data-overlay-trigger]" as
the selector and then calls browser_history.go_to_location.
*/
diff --git a/static/js/giphy.js b/web/src/giphy.js
similarity index 100%
rename from static/js/giphy.js
rename to web/src/giphy.js
diff --git a/static/js/global.d.ts b/web/src/global.d.ts
similarity index 82%
rename from static/js/global.d.ts
rename to web/src/global.d.ts
index 900e1119d76..b1fb6e68a3f 100644
--- a/static/js/global.d.ts
+++ b/web/src/global.d.ts
@@ -7,5 +7,5 @@ declare let zulip_test: any;
interface JQuery {
expectOne(): JQuery;
- tab(action?: string): this; // From static/third/bootstrap
+ tab(action?: string): this; // From web/third/bootstrap
}
diff --git a/static/js/hash_util.js b/web/src/hash_util.js
similarity index 99%
rename from static/js/hash_util.js
rename to web/src/hash_util.js
index dcf49bb6c51..ae7415c1c5b 100644
--- a/static/js/hash_util.js
+++ b/web/src/hash_util.js
@@ -1,4 +1,4 @@
-import * as internal_url from "../shared/js/internal_url";
+import * as internal_url from "../shared/src/internal_url";
import {page_params} from "./page_params";
import * as people from "./people";
diff --git a/static/js/hashchange.js b/web/src/hashchange.js
similarity index 100%
rename from static/js/hashchange.js
rename to web/src/hashchange.js
diff --git a/static/js/hbs.d.ts b/web/src/hbs.d.ts
similarity index 100%
rename from static/js/hbs.d.ts
rename to web/src/hbs.d.ts
diff --git a/static/js/hotkey.js b/web/src/hotkey.js
similarity index 100%
rename from static/js/hotkey.js
rename to web/src/hotkey.js
diff --git a/static/js/hotspots.js b/web/src/hotspots.js
similarity index 100%
rename from static/js/hotspots.js
rename to web/src/hotspots.js
diff --git a/static/js/huddle_data.js b/web/src/huddle_data.js
similarity index 100%
rename from static/js/huddle_data.js
rename to web/src/huddle_data.js
diff --git a/static/js/i18n.ts b/web/src/i18n.ts
similarity index 100%
rename from static/js/i18n.ts
rename to web/src/i18n.ts
diff --git a/static/js/info_overlay.js b/web/src/info_overlay.js
similarity index 100%
rename from static/js/info_overlay.js
rename to web/src/info_overlay.js
diff --git a/static/js/input_pill.js b/web/src/input_pill.js
similarity index 100%
rename from static/js/input_pill.js
rename to web/src/input_pill.js
diff --git a/static/js/invite.js b/web/src/invite.js
similarity index 100%
rename from static/js/invite.js
rename to web/src/invite.js
diff --git a/static/js/keydown_util.ts b/web/src/keydown_util.ts
similarity index 100%
rename from static/js/keydown_util.ts
rename to web/src/keydown_util.ts
diff --git a/static/js/lazy_set.ts b/web/src/lazy_set.ts
similarity index 100%
rename from static/js/lazy_set.ts
rename to web/src/lazy_set.ts
diff --git a/static/js/lightbox.js b/web/src/lightbox.js
similarity index 100%
rename from static/js/lightbox.js
rename to web/src/lightbox.js
diff --git a/static/js/linkifiers.js b/web/src/linkifiers.js
similarity index 100%
rename from static/js/linkifiers.js
rename to web/src/linkifiers.js
diff --git a/static/js/list_cursor.js b/web/src/list_cursor.js
similarity index 100%
rename from static/js/list_cursor.js
rename to web/src/list_cursor.js
diff --git a/static/js/list_util.ts b/web/src/list_util.ts
similarity index 100%
rename from static/js/list_util.ts
rename to web/src/list_util.ts
diff --git a/static/js/list_widget.js b/web/src/list_widget.js
similarity index 100%
rename from static/js/list_widget.js
rename to web/src/list_widget.js
diff --git a/static/js/loading.ts b/web/src/loading.ts
similarity index 94%
rename from static/js/loading.ts
rename to web/src/loading.ts
index cac69ad93e3..8150c5b9d7d 100644
--- a/static/js/loading.ts
+++ b/web/src/loading.ts
@@ -1,7 +1,7 @@
import $ from "jquery";
-import loading_black_image from "../images/loading/loader-black.svg";
-import loading_white_image from "../images/loading/loader-white.svg";
+import loading_black_image from "../../static/images/loading/loader-black.svg";
+import loading_white_image from "../../static/images/loading/loader-white.svg";
import render_loader from "../templates/loader.hbs";
export function make_indicator(
diff --git a/static/js/local_message.js b/web/src/local_message.js
similarity index 100%
rename from static/js/local_message.js
rename to web/src/local_message.js
diff --git a/static/js/localstorage.js b/web/src/localstorage.js
similarity index 100%
rename from static/js/localstorage.js
rename to web/src/localstorage.js
diff --git a/static/js/markdown.js b/web/src/markdown.js
similarity index 99%
rename from static/js/markdown.js
rename to web/src/markdown.js
index 1baf92fd1f0..6e68aeedc5a 100644
--- a/static/js/markdown.js
+++ b/web/src/markdown.js
@@ -2,13 +2,13 @@ import {isValid} from "date-fns";
import katex from "katex"; // eslint-disable-line import/no-unresolved
import _ from "lodash";
-import * as fenced_code from "../shared/js/fenced_code";
+import * as fenced_code from "../shared/src/fenced_code";
import marked from "../third/marked/lib/marked";
// This contains zulip's frontend Markdown implementation; see
// docs/subsystems/markdown.md for docs on our Markdown syntax. The other
// main piece in rendering Markdown client-side is
-// static/third/marked/lib/marked.js, which we have significantly
+// web/third/marked/lib/marked.js, which we have significantly
// modified from the original implementation.
// Docs: https://zulip.readthedocs.io/en/latest/subsystems/markdown.html
diff --git a/static/js/markdown_config.js b/web/src/markdown_config.js
similarity index 100%
rename from static/js/markdown_config.js
rename to web/src/markdown_config.js
diff --git a/static/js/message_edit.js b/web/src/message_edit.js
similarity index 99%
rename from static/js/message_edit.js
rename to web/src/message_edit.js
index 857aca9a2ed..a5a2f49c6c6 100644
--- a/static/js/message_edit.js
+++ b/web/src/message_edit.js
@@ -1,7 +1,7 @@
import ClipboardJS from "clipboard";
import $ from "jquery";
-import * as resolved_topic from "../shared/js/resolved_topic";
+import * as resolved_topic from "../shared/src/resolved_topic";
import render_delete_message_modal from "../templates/confirm_dialog/confirm_delete_message.hbs";
import render_message_edit_form from "../templates/message_edit_form.hbs";
import render_topic_edit_form from "../templates/topic_edit_form.hbs";
diff --git a/static/js/message_edit_history.js b/web/src/message_edit_history.js
similarity index 100%
rename from static/js/message_edit_history.js
rename to web/src/message_edit_history.js
diff --git a/static/js/message_events.js b/web/src/message_events.js
similarity index 100%
rename from static/js/message_events.js
rename to web/src/message_events.js
diff --git a/static/js/message_fetch.js b/web/src/message_fetch.js
similarity index 100%
rename from static/js/message_fetch.js
rename to web/src/message_fetch.js
diff --git a/static/js/message_flags.js b/web/src/message_flags.js
similarity index 100%
rename from static/js/message_flags.js
rename to web/src/message_flags.js
diff --git a/static/js/message_helper.js b/web/src/message_helper.js
similarity index 100%
rename from static/js/message_helper.js
rename to web/src/message_helper.js
diff --git a/static/js/message_list.js b/web/src/message_list.js
similarity index 100%
rename from static/js/message_list.js
rename to web/src/message_list.js
diff --git a/static/js/message_list_data.js b/web/src/message_list_data.js
similarity index 100%
rename from static/js/message_list_data.js
rename to web/src/message_list_data.js
diff --git a/static/js/message_list_view.js b/web/src/message_list_view.js
similarity index 99%
rename from static/js/message_list_view.js
rename to web/src/message_list_view.js
index 52072efe53e..6a1c2172f0f 100644
--- a/static/js/message_list_view.js
+++ b/web/src/message_list_view.js
@@ -2,7 +2,7 @@ import {isSameDay} from "date-fns";
import $ from "jquery";
import _ from "lodash";
-import * as resolved_topic from "../shared/js/resolved_topic";
+import * as resolved_topic from "../shared/src/resolved_topic";
import render_bookend from "../templates/bookend.hbs";
import render_login_to_view_image_button from "../templates/login_to_view_image_button.hbs";
import render_message_group from "../templates/message_group.hbs";
diff --git a/static/js/message_lists.js b/web/src/message_lists.js
similarity index 100%
rename from static/js/message_lists.js
rename to web/src/message_lists.js
diff --git a/static/js/message_live_update.js b/web/src/message_live_update.js
similarity index 100%
rename from static/js/message_live_update.js
rename to web/src/message_live_update.js
diff --git a/static/js/message_parser.ts b/web/src/message_parser.ts
similarity index 100%
rename from static/js/message_parser.ts
rename to web/src/message_parser.ts
diff --git a/static/js/message_scroll.js b/web/src/message_scroll.js
similarity index 100%
rename from static/js/message_scroll.js
rename to web/src/message_scroll.js
diff --git a/static/js/message_store.js b/web/src/message_store.js
similarity index 100%
rename from static/js/message_store.js
rename to web/src/message_store.js
diff --git a/static/js/message_user_ids.ts b/web/src/message_user_ids.ts
similarity index 100%
rename from static/js/message_user_ids.ts
rename to web/src/message_user_ids.ts
diff --git a/static/js/message_util.js b/web/src/message_util.js
similarity index 100%
rename from static/js/message_util.js
rename to web/src/message_util.js
diff --git a/static/js/message_view_header.js b/web/src/message_view_header.js
similarity index 100%
rename from static/js/message_view_header.js
rename to web/src/message_view_header.js
diff --git a/static/js/message_viewport.js b/web/src/message_viewport.js
similarity index 100%
rename from static/js/message_viewport.js
rename to web/src/message_viewport.js
diff --git a/static/js/muted_topics_ui.js b/web/src/muted_topics_ui.js
similarity index 100%
rename from static/js/muted_topics_ui.js
rename to web/src/muted_topics_ui.js
diff --git a/static/js/muted_users.ts b/web/src/muted_users.ts
similarity index 100%
rename from static/js/muted_users.ts
rename to web/src/muted_users.ts
diff --git a/static/js/muted_users_ui.js b/web/src/muted_users_ui.js
similarity index 100%
rename from static/js/muted_users_ui.js
rename to web/src/muted_users_ui.js
diff --git a/static/js/narrow.js b/web/src/narrow.js
similarity index 100%
rename from static/js/narrow.js
rename to web/src/narrow.js
diff --git a/static/js/narrow_banner.js b/web/src/narrow_banner.js
similarity index 100%
rename from static/js/narrow_banner.js
rename to web/src/narrow_banner.js
diff --git a/static/js/narrow_error.js b/web/src/narrow_error.js
similarity index 100%
rename from static/js/narrow_error.js
rename to web/src/narrow_error.js
diff --git a/static/js/narrow_state.js b/web/src/narrow_state.js
similarity index 100%
rename from static/js/narrow_state.js
rename to web/src/narrow_state.js
diff --git a/static/js/navbar_alerts.js b/web/src/navbar_alerts.js
similarity index 100%
rename from static/js/navbar_alerts.js
rename to web/src/navbar_alerts.js
diff --git a/static/js/navigate.js b/web/src/navigate.js
similarity index 100%
rename from static/js/navigate.js
rename to web/src/navigate.js
diff --git a/static/js/notifications.js b/web/src/notifications.js
similarity index 100%
rename from static/js/notifications.js
rename to web/src/notifications.js
diff --git a/static/js/overlays.js b/web/src/overlays.js
similarity index 100%
rename from static/js/overlays.js
rename to web/src/overlays.js
diff --git a/static/js/padded_widget.ts b/web/src/padded_widget.ts
similarity index 100%
rename from static/js/padded_widget.ts
rename to web/src/padded_widget.ts
diff --git a/static/js/page_params.ts b/web/src/page_params.ts
similarity index 100%
rename from static/js/page_params.ts
rename to web/src/page_params.ts
diff --git a/static/js/password_quality.ts b/web/src/password_quality.ts
similarity index 100%
rename from static/js/password_quality.ts
rename to web/src/password_quality.ts
diff --git a/static/js/peer_data.js b/web/src/peer_data.js
similarity index 100%
rename from static/js/peer_data.js
rename to web/src/peer_data.js
diff --git a/static/js/people.js b/web/src/people.js
similarity index 99%
rename from static/js/people.js
rename to web/src/people.js
index 95e96cd7d66..058f3c9a8a6 100644
--- a/static/js/people.js
+++ b/web/src/people.js
@@ -1,7 +1,7 @@
import md5 from "blueimp-md5";
import {format, utcToZonedTime} from "date-fns-tz";
-import * as typeahead from "../shared/js/typeahead";
+import * as typeahead from "../shared/src/typeahead";
import * as blueslip from "./blueslip";
import {FoldDict} from "./fold_dict";
diff --git a/static/js/pill_typeahead.js b/web/src/pill_typeahead.js
similarity index 100%
rename from static/js/pill_typeahead.js
rename to web/src/pill_typeahead.js
diff --git a/static/js/pm_conversations.js b/web/src/pm_conversations.js
similarity index 100%
rename from static/js/pm_conversations.js
rename to web/src/pm_conversations.js
diff --git a/static/js/pm_list.js b/web/src/pm_list.js
similarity index 100%
rename from static/js/pm_list.js
rename to web/src/pm_list.js
diff --git a/static/js/pm_list_data.js b/web/src/pm_list_data.js
similarity index 100%
rename from static/js/pm_list_data.js
rename to web/src/pm_list_data.js
diff --git a/static/js/pm_list_dom.js b/web/src/pm_list_dom.js
similarity index 100%
rename from static/js/pm_list_dom.js
rename to web/src/pm_list_dom.js
diff --git a/static/js/poll_widget.js b/web/src/poll_widget.js
similarity index 99%
rename from static/js/poll_widget.js
rename to web/src/poll_widget.js
index 4a33ded1370..46a945917a7 100644
--- a/static/js/poll_widget.js
+++ b/web/src/poll_widget.js
@@ -1,6 +1,6 @@
import $ from "jquery";
-import {PollData} from "../shared/js/poll_data";
+import {PollData} from "../shared/src/poll_data";
import render_widgets_poll_widget from "../templates/widgets/poll_widget.hbs";
import render_widgets_poll_widget_results from "../templates/widgets/poll_widget_results.hbs";
diff --git a/static/js/popover_menus.js b/web/src/popover_menus.js
similarity index 100%
rename from static/js/popover_menus.js
rename to web/src/popover_menus.js
diff --git a/static/js/popover_menus_data.js b/web/src/popover_menus_data.js
similarity index 100%
rename from static/js/popover_menus_data.js
rename to web/src/popover_menus_data.js
diff --git a/static/js/popovers.js b/web/src/popovers.js
similarity index 100%
rename from static/js/popovers.js
rename to web/src/popovers.js
diff --git a/static/js/portico/communities.js b/web/src/portico/communities.js
similarity index 100%
rename from static/js/portico/communities.js
rename to web/src/portico/communities.js
diff --git a/static/js/portico/confirm-preregistrationuser.js b/web/src/portico/confirm-preregistrationuser.js
similarity index 100%
rename from static/js/portico/confirm-preregistrationuser.js
rename to web/src/portico/confirm-preregistrationuser.js
diff --git a/static/js/portico/desktop-login.js b/web/src/portico/desktop-login.js
similarity index 100%
rename from static/js/portico/desktop-login.js
rename to web/src/portico/desktop-login.js
diff --git a/static/js/portico/desktop-redirect.js b/web/src/portico/desktop-redirect.js
similarity index 100%
rename from static/js/portico/desktop-redirect.js
rename to web/src/portico/desktop-redirect.js
diff --git a/static/js/portico/dev-login.js b/web/src/portico/dev-login.js
similarity index 100%
rename from static/js/portico/dev-login.js
rename to web/src/portico/dev-login.js
diff --git a/static/js/portico/email_log.js b/web/src/portico/email_log.js
similarity index 100%
rename from static/js/portico/email_log.js
rename to web/src/portico/email_log.js
diff --git a/static/js/portico/google-analytics.js b/web/src/portico/google-analytics.js
similarity index 100%
rename from static/js/portico/google-analytics.js
rename to web/src/portico/google-analytics.js
diff --git a/static/js/portico/header.js b/web/src/portico/header.js
similarity index 100%
rename from static/js/portico/header.js
rename to web/src/portico/header.js
diff --git a/static/js/portico/help.js b/web/src/portico/help.js
similarity index 100%
rename from static/js/portico/help.js
rename to web/src/portico/help.js
diff --git a/static/js/portico/integrations.js b/web/src/portico/integrations.js
similarity index 100%
rename from static/js/portico/integrations.js
rename to web/src/portico/integrations.js
diff --git a/static/js/portico/integrations_dev_panel.js b/web/src/portico/integrations_dev_panel.js
similarity index 100%
rename from static/js/portico/integrations_dev_panel.js
rename to web/src/portico/integrations_dev_panel.js
diff --git a/static/js/portico/landing-page.js b/web/src/portico/landing-page.js
similarity index 100%
rename from static/js/portico/landing-page.js
rename to web/src/portico/landing-page.js
diff --git a/static/js/portico/signup.js b/web/src/portico/signup.js
similarity index 100%
rename from static/js/portico/signup.js
rename to web/src/portico/signup.js
diff --git a/static/js/portico/tabbed-instructions.js b/web/src/portico/tabbed-instructions.js
similarity index 100%
rename from static/js/portico/tabbed-instructions.js
rename to web/src/portico/tabbed-instructions.js
diff --git a/static/js/portico/team.js b/web/src/portico/team.js
similarity index 100%
rename from static/js/portico/team.js
rename to web/src/portico/team.js
diff --git a/static/js/portico/tippyjs.js b/web/src/portico/tippyjs.js
similarity index 100%
rename from static/js/portico/tippyjs.js
rename to web/src/portico/tippyjs.js
diff --git a/static/js/presence.js b/web/src/presence.js
similarity index 100%
rename from static/js/presence.js
rename to web/src/presence.js
diff --git a/static/js/reactions.js b/web/src/reactions.js
similarity index 100%
rename from static/js/reactions.js
rename to web/src/reactions.js
diff --git a/static/js/read_receipts.js b/web/src/read_receipts.js
similarity index 100%
rename from static/js/read_receipts.js
rename to web/src/read_receipts.js
diff --git a/static/js/realm_icon.js b/web/src/realm_icon.js
similarity index 100%
rename from static/js/realm_icon.js
rename to web/src/realm_icon.js
diff --git a/static/js/realm_logo.js b/web/src/realm_logo.js
similarity index 100%
rename from static/js/realm_logo.js
rename to web/src/realm_logo.js
diff --git a/static/js/realm_playground.js b/web/src/realm_playground.js
similarity index 97%
rename from static/js/realm_playground.js
rename to web/src/realm_playground.js
index 3e1f5b656e4..a31de6ea004 100644
--- a/static/js/realm_playground.js
+++ b/web/src/realm_playground.js
@@ -1,4 +1,4 @@
-import * as typeahead from "../shared/js/typeahead";
+import * as typeahead from "../shared/src/typeahead";
import {$t} from "./i18n";
import * as typeahead_helper from "./typeahead_helper";
diff --git a/static/js/realm_user_settings_defaults.ts b/web/src/realm_user_settings_defaults.ts
similarity index 100%
rename from static/js/realm_user_settings_defaults.ts
rename to web/src/realm_user_settings_defaults.ts
diff --git a/static/js/recent_senders.js b/web/src/recent_senders.js
similarity index 100%
rename from static/js/recent_senders.js
rename to web/src/recent_senders.js
diff --git a/static/js/recent_topics_data.js b/web/src/recent_topics_data.js
similarity index 100%
rename from static/js/recent_topics_data.js
rename to web/src/recent_topics_data.js
diff --git a/static/js/recent_topics_ui.js b/web/src/recent_topics_ui.js
similarity index 100%
rename from static/js/recent_topics_ui.js
rename to web/src/recent_topics_ui.js
diff --git a/static/js/recent_topics_util.js b/web/src/recent_topics_util.js
similarity index 100%
rename from static/js/recent_topics_util.js
rename to web/src/recent_topics_util.js
diff --git a/static/js/reload.js b/web/src/reload.js
similarity index 100%
rename from static/js/reload.js
rename to web/src/reload.js
diff --git a/static/js/reload_state.ts b/web/src/reload_state.ts
similarity index 100%
rename from static/js/reload_state.ts
rename to web/src/reload_state.ts
diff --git a/static/js/reminder.js b/web/src/reminder.js
similarity index 100%
rename from static/js/reminder.js
rename to web/src/reminder.js
diff --git a/static/js/rendered_markdown.js b/web/src/rendered_markdown.js
similarity index 100%
rename from static/js/rendered_markdown.js
rename to web/src/rendered_markdown.js
diff --git a/static/js/resize.js b/web/src/resize.js
similarity index 100%
rename from static/js/resize.js
rename to web/src/resize.js
diff --git a/static/js/rows.js b/web/src/rows.js
similarity index 100%
rename from static/js/rows.js
rename to web/src/rows.js
diff --git a/static/js/rtl.js b/web/src/rtl.js
similarity index 100%
rename from static/js/rtl.js
rename to web/src/rtl.js
diff --git a/static/js/schema.js b/web/src/schema.js
similarity index 100%
rename from static/js/schema.js
rename to web/src/schema.js
diff --git a/static/js/scroll_bar.js b/web/src/scroll_bar.js
similarity index 100%
rename from static/js/scroll_bar.js
rename to web/src/scroll_bar.js
diff --git a/static/js/scroll_util.js b/web/src/scroll_util.js
similarity index 100%
rename from static/js/scroll_util.js
rename to web/src/scroll_util.js
diff --git a/static/js/search.js b/web/src/search.js
similarity index 100%
rename from static/js/search.js
rename to web/src/search.js
diff --git a/static/js/search_pill.js b/web/src/search_pill.js
similarity index 100%
rename from static/js/search_pill.js
rename to web/src/search_pill.js
diff --git a/static/js/search_pill_widget.js b/web/src/search_pill_widget.js
similarity index 100%
rename from static/js/search_pill_widget.js
rename to web/src/search_pill_widget.js
diff --git a/static/js/search_suggestion.js b/web/src/search_suggestion.js
similarity index 100%
rename from static/js/search_suggestion.js
rename to web/src/search_suggestion.js
diff --git a/static/js/search_util.ts b/web/src/search_util.ts
similarity index 100%
rename from static/js/search_util.ts
rename to web/src/search_util.ts
diff --git a/static/js/sent_messages.js b/web/src/sent_messages.js
similarity index 100%
rename from static/js/sent_messages.js
rename to web/src/sent_messages.js
diff --git a/static/js/server_events.js b/web/src/server_events.js
similarity index 100%
rename from static/js/server_events.js
rename to web/src/server_events.js
diff --git a/static/js/server_events_dispatch.js b/web/src/server_events_dispatch.js
similarity index 100%
rename from static/js/server_events_dispatch.js
rename to web/src/server_events_dispatch.js
diff --git a/static/js/settings.js b/web/src/settings.js
similarity index 100%
rename from static/js/settings.js
rename to web/src/settings.js
diff --git a/static/js/settings_account.js b/web/src/settings_account.js
similarity index 100%
rename from static/js/settings_account.js
rename to web/src/settings_account.js
diff --git a/static/js/settings_bots.js b/web/src/settings_bots.js
similarity index 100%
rename from static/js/settings_bots.js
rename to web/src/settings_bots.js
diff --git a/static/js/settings_config.ts b/web/src/settings_config.ts
similarity index 100%
rename from static/js/settings_config.ts
rename to web/src/settings_config.ts
diff --git a/static/js/settings_data.ts b/web/src/settings_data.ts
similarity index 100%
rename from static/js/settings_data.ts
rename to web/src/settings_data.ts
diff --git a/static/js/settings_display.js b/web/src/settings_display.js
similarity index 100%
rename from static/js/settings_display.js
rename to web/src/settings_display.js
diff --git a/static/js/settings_emoji.js b/web/src/settings_emoji.js
similarity index 99%
rename from static/js/settings_emoji.js
rename to web/src/settings_emoji.js
index 3456edf6dd1..3deb65c768e 100644
--- a/static/js/settings_emoji.js
+++ b/web/src/settings_emoji.js
@@ -1,6 +1,6 @@
import $ from "jquery";
-import emoji_codes from "../generated/emoji/emoji_codes.json";
+import emoji_codes from "../../static/generated/emoji/emoji_codes.json";
import render_confirm_deactivate_custom_emoji from "../templates/confirm_dialog/confirm_deactivate_custom_emoji.hbs";
import emoji_settings_warning_modal from "../templates/confirm_dialog/confirm_emoji_settings_warning.hbs";
import render_add_emoji from "../templates/settings/add_emoji.hbs";
diff --git a/static/js/settings_exports.js b/web/src/settings_exports.js
similarity index 100%
rename from static/js/settings_exports.js
rename to web/src/settings_exports.js
diff --git a/static/js/settings_invites.js b/web/src/settings_invites.js
similarity index 100%
rename from static/js/settings_invites.js
rename to web/src/settings_invites.js
diff --git a/static/js/settings_linkifiers.js b/web/src/settings_linkifiers.js
similarity index 100%
rename from static/js/settings_linkifiers.js
rename to web/src/settings_linkifiers.js
diff --git a/static/js/settings_muted_topics.js b/web/src/settings_muted_topics.js
similarity index 100%
rename from static/js/settings_muted_topics.js
rename to web/src/settings_muted_topics.js
diff --git a/static/js/settings_muted_users.js b/web/src/settings_muted_users.js
similarity index 100%
rename from static/js/settings_muted_users.js
rename to web/src/settings_muted_users.js
diff --git a/static/js/settings_notifications.js b/web/src/settings_notifications.js
similarity index 100%
rename from static/js/settings_notifications.js
rename to web/src/settings_notifications.js
diff --git a/static/js/settings_org.js b/web/src/settings_org.js
similarity index 100%
rename from static/js/settings_org.js
rename to web/src/settings_org.js
diff --git a/static/js/settings_panel_menu.js b/web/src/settings_panel_menu.js
similarity index 100%
rename from static/js/settings_panel_menu.js
rename to web/src/settings_panel_menu.js
diff --git a/static/js/settings_playgrounds.js b/web/src/settings_playgrounds.js
similarity index 100%
rename from static/js/settings_playgrounds.js
rename to web/src/settings_playgrounds.js
diff --git a/static/js/settings_profile_fields.js b/web/src/settings_profile_fields.js
similarity index 100%
rename from static/js/settings_profile_fields.js
rename to web/src/settings_profile_fields.js
diff --git a/static/js/settings_realm_domains.js b/web/src/settings_realm_domains.js
similarity index 100%
rename from static/js/settings_realm_domains.js
rename to web/src/settings_realm_domains.js
diff --git a/static/js/settings_realm_user_settings_defaults.js b/web/src/settings_realm_user_settings_defaults.js
similarity index 100%
rename from static/js/settings_realm_user_settings_defaults.js
rename to web/src/settings_realm_user_settings_defaults.js
diff --git a/static/js/settings_sections.js b/web/src/settings_sections.js
similarity index 100%
rename from static/js/settings_sections.js
rename to web/src/settings_sections.js
diff --git a/static/js/settings_streams.js b/web/src/settings_streams.js
similarity index 100%
rename from static/js/settings_streams.js
rename to web/src/settings_streams.js
diff --git a/static/js/settings_toggle.js b/web/src/settings_toggle.js
similarity index 100%
rename from static/js/settings_toggle.js
rename to web/src/settings_toggle.js
diff --git a/static/js/settings_ui.js b/web/src/settings_ui.js
similarity index 100%
rename from static/js/settings_ui.js
rename to web/src/settings_ui.js
diff --git a/static/js/settings_user_groups_legacy.js b/web/src/settings_user_groups_legacy.js
similarity index 100%
rename from static/js/settings_user_groups_legacy.js
rename to web/src/settings_user_groups_legacy.js
diff --git a/static/js/settings_users.js b/web/src/settings_users.js
similarity index 100%
rename from static/js/settings_users.js
rename to web/src/settings_users.js
diff --git a/static/js/setup.js b/web/src/setup.js
similarity index 100%
rename from static/js/setup.js
rename to web/src/setup.js
diff --git a/static/js/spectators.js b/web/src/spectators.js
similarity index 100%
rename from static/js/spectators.js
rename to web/src/spectators.js
diff --git a/static/js/spoilers.ts b/web/src/spoilers.ts
similarity index 100%
rename from static/js/spoilers.ts
rename to web/src/spoilers.ts
diff --git a/static/js/starred_messages.js b/web/src/starred_messages.js
similarity index 100%
rename from static/js/starred_messages.js
rename to web/src/starred_messages.js
diff --git a/static/js/starred_messages_ui.js b/web/src/starred_messages_ui.js
similarity index 100%
rename from static/js/starred_messages_ui.js
rename to web/src/starred_messages_ui.js
diff --git a/static/js/stats/stats.js b/web/src/stats/stats.js
similarity index 100%
rename from static/js/stats/stats.js
rename to web/src/stats/stats.js
diff --git a/static/js/stream_bar.js b/web/src/stream_bar.js
similarity index 100%
rename from static/js/stream_bar.js
rename to web/src/stream_bar.js
diff --git a/static/js/stream_color.js b/web/src/stream_color.js
similarity index 100%
rename from static/js/stream_color.js
rename to web/src/stream_color.js
diff --git a/static/js/stream_create.js b/web/src/stream_create.js
similarity index 100%
rename from static/js/stream_create.js
rename to web/src/stream_create.js
diff --git a/static/js/stream_create_subscribers.js b/web/src/stream_create_subscribers.js
similarity index 100%
rename from static/js/stream_create_subscribers.js
rename to web/src/stream_create_subscribers.js
diff --git a/static/js/stream_create_subscribers_data.js b/web/src/stream_create_subscribers_data.js
similarity index 100%
rename from static/js/stream_create_subscribers_data.js
rename to web/src/stream_create_subscribers_data.js
diff --git a/static/js/stream_data.js b/web/src/stream_data.js
similarity index 100%
rename from static/js/stream_data.js
rename to web/src/stream_data.js
diff --git a/static/js/stream_edit.js b/web/src/stream_edit.js
similarity index 100%
rename from static/js/stream_edit.js
rename to web/src/stream_edit.js
diff --git a/static/js/stream_edit_subscribers.js b/web/src/stream_edit_subscribers.js
similarity index 100%
rename from static/js/stream_edit_subscribers.js
rename to web/src/stream_edit_subscribers.js
diff --git a/static/js/stream_events.js b/web/src/stream_events.js
similarity index 100%
rename from static/js/stream_events.js
rename to web/src/stream_events.js
diff --git a/static/js/stream_list.js b/web/src/stream_list.js
similarity index 100%
rename from static/js/stream_list.js
rename to web/src/stream_list.js
diff --git a/static/js/stream_muting.js b/web/src/stream_muting.js
similarity index 100%
rename from static/js/stream_muting.js
rename to web/src/stream_muting.js
diff --git a/static/js/stream_pill.js b/web/src/stream_pill.js
similarity index 100%
rename from static/js/stream_pill.js
rename to web/src/stream_pill.js
diff --git a/static/js/stream_popover.js b/web/src/stream_popover.js
similarity index 99%
rename from static/js/stream_popover.js
rename to web/src/stream_popover.js
index dfe83cb9564..b8cabf1e8b1 100644
--- a/static/js/stream_popover.js
+++ b/web/src/stream_popover.js
@@ -1,7 +1,7 @@
import ClipboardJS from "clipboard";
import $ from "jquery";
-import * as resolved_topic from "../shared/js/resolved_topic";
+import * as resolved_topic from "../shared/src/resolved_topic";
import render_all_messages_sidebar_actions from "../templates/all_messages_sidebar_actions.hbs";
import render_delete_topic_modal from "../templates/confirm_dialog/confirm_delete_topic.hbs";
import render_drafts_sidebar_actions from "../templates/drafts_sidebar_action.hbs";
diff --git a/static/js/stream_settings_containers.js b/web/src/stream_settings_containers.js
similarity index 100%
rename from static/js/stream_settings_containers.js
rename to web/src/stream_settings_containers.js
diff --git a/static/js/stream_settings_data.js b/web/src/stream_settings_data.js
similarity index 100%
rename from static/js/stream_settings_data.js
rename to web/src/stream_settings_data.js
diff --git a/static/js/stream_settings_ui.js b/web/src/stream_settings_ui.js
similarity index 100%
rename from static/js/stream_settings_ui.js
rename to web/src/stream_settings_ui.js
diff --git a/static/js/stream_sort.js b/web/src/stream_sort.js
similarity index 100%
rename from static/js/stream_sort.js
rename to web/src/stream_sort.js
diff --git a/static/js/stream_topic_history.js b/web/src/stream_topic_history.js
similarity index 100%
rename from static/js/stream_topic_history.js
rename to web/src/stream_topic_history.js
diff --git a/static/js/stream_topic_history_util.js b/web/src/stream_topic_history_util.js
similarity index 100%
rename from static/js/stream_topic_history_util.js
rename to web/src/stream_topic_history_util.js
diff --git a/static/js/stream_ui_updates.js b/web/src/stream_ui_updates.js
similarity index 100%
rename from static/js/stream_ui_updates.js
rename to web/src/stream_ui_updates.js
diff --git a/static/js/sub_store.ts b/web/src/sub_store.ts
similarity index 100%
rename from static/js/sub_store.ts
rename to web/src/sub_store.ts
diff --git a/static/js/submessage.js b/web/src/submessage.js
similarity index 100%
rename from static/js/submessage.js
rename to web/src/submessage.js
diff --git a/static/js/subscriber_api.js b/web/src/subscriber_api.js
similarity index 100%
rename from static/js/subscriber_api.js
rename to web/src/subscriber_api.js
diff --git a/static/js/templates.js b/web/src/templates.js
similarity index 100%
rename from static/js/templates.js
rename to web/src/templates.js
diff --git a/static/js/timerender.ts b/web/src/timerender.ts
similarity index 100%
rename from static/js/timerender.ts
rename to web/src/timerender.ts
diff --git a/static/js/tippyjs.js b/web/src/tippyjs.js
similarity index 100%
rename from static/js/tippyjs.js
rename to web/src/tippyjs.js
diff --git a/static/js/todo_widget.js b/web/src/todo_widget.js
similarity index 100%
rename from static/js/todo_widget.js
rename to web/src/todo_widget.js
diff --git a/static/js/top_left_corner.js b/web/src/top_left_corner.js
similarity index 100%
rename from static/js/top_left_corner.js
rename to web/src/top_left_corner.js
diff --git a/static/js/topic_generator.js b/web/src/topic_generator.js
similarity index 100%
rename from static/js/topic_generator.js
rename to web/src/topic_generator.js
diff --git a/static/js/topic_list.js b/web/src/topic_list.js
similarity index 100%
rename from static/js/topic_list.js
rename to web/src/topic_list.js
diff --git a/static/js/topic_list_data.js b/web/src/topic_list_data.js
similarity index 98%
rename from static/js/topic_list_data.js
rename to web/src/topic_list_data.js
index a3ee1c2830b..13a45db982d 100644
--- a/static/js/topic_list_data.js
+++ b/web/src/topic_list_data.js
@@ -1,4 +1,4 @@
-import * as resolved_topic from "../shared/js/resolved_topic";
+import * as resolved_topic from "../shared/src/resolved_topic";
import * as hash_util from "./hash_util";
import * as narrow_state from "./narrow_state";
diff --git a/static/js/topic_zoom.js b/web/src/topic_zoom.js
similarity index 100%
rename from static/js/topic_zoom.js
rename to web/src/topic_zoom.js
diff --git a/static/js/transmit.js b/web/src/transmit.js
similarity index 100%
rename from static/js/transmit.js
rename to web/src/transmit.js
diff --git a/static/js/tutorial.js b/web/src/tutorial.js
similarity index 100%
rename from static/js/tutorial.js
rename to web/src/tutorial.js
diff --git a/static/js/typeahead_helper.js b/web/src/typeahead_helper.js
similarity index 99%
rename from static/js/typeahead_helper.js
rename to web/src/typeahead_helper.js
index 6f91ea59bf2..6ab0bef3e31 100644
--- a/static/js/typeahead_helper.js
+++ b/web/src/typeahead_helper.js
@@ -2,7 +2,7 @@ import Handlebars from "handlebars/runtime";
import _ from "lodash";
import pygments_data from "../generated/pygments_data.json";
-import * as typeahead from "../shared/js/typeahead";
+import * as typeahead from "../shared/src/typeahead";
import render_typeahead_list_item from "../templates/typeahead_list_item.hbs";
import * as buddy_data from "./buddy_data";
diff --git a/static/js/types.ts b/web/src/types.ts
similarity index 100%
rename from static/js/types.ts
rename to web/src/types.ts
diff --git a/static/js/types/stacktrace-gps/index.d.ts b/web/src/types/stacktrace-gps/index.d.ts
similarity index 100%
rename from static/js/types/stacktrace-gps/index.d.ts
rename to web/src/types/stacktrace-gps/index.d.ts
diff --git a/static/js/typing.js b/web/src/typing.js
similarity index 97%
rename from static/js/typing.js
rename to web/src/typing.js
index 2999e930b03..da01b999441 100644
--- a/static/js/typing.js
+++ b/web/src/typing.js
@@ -1,6 +1,6 @@
import $ from "jquery";
-import * as typing_status from "../shared/js/typing_status";
+import * as typing_status from "../shared/src/typing_status";
import * as blueslip from "./blueslip";
import * as channel from "./channel";
diff --git a/static/js/typing_data.js b/web/src/typing_data.js
similarity index 100%
rename from static/js/typing_data.js
rename to web/src/typing_data.js
diff --git a/static/js/typing_events.js b/web/src/typing_events.js
similarity index 100%
rename from static/js/typing_events.js
rename to web/src/typing_events.js
diff --git a/static/js/ui.js b/web/src/ui.js
similarity index 100%
rename from static/js/ui.js
rename to web/src/ui.js
diff --git a/static/js/ui_init.js b/web/src/ui_init.js
similarity index 99%
rename from static/js/ui_init.js
rename to web/src/ui_init.js
index 945f9ca0e8d..aceacbe9ee2 100644
--- a/static/js/ui_init.js
+++ b/web/src/ui_init.js
@@ -1,9 +1,9 @@
import $ from "jquery";
import _ from "lodash";
-import generated_emoji_codes from "../generated/emoji/emoji_codes.json";
+import generated_emoji_codes from "../../static/generated/emoji/emoji_codes.json";
import generated_pygments_data from "../generated/pygments_data.json";
-import * as fenced_code from "../shared/js/fenced_code";
+import * as fenced_code from "../shared/src/fenced_code";
import render_compose from "../templates/compose.hbs";
import render_edit_content_button from "../templates/edit_content_button.hbs";
import render_left_sidebar from "../templates/left_sidebar.hbs";
diff --git a/static/js/ui_report.ts b/web/src/ui_report.ts
similarity index 100%
rename from static/js/ui_report.ts
rename to web/src/ui_report.ts
diff --git a/static/js/ui_util.ts b/web/src/ui_util.ts
similarity index 100%
rename from static/js/ui_util.ts
rename to web/src/ui_util.ts
diff --git a/static/js/unread.js b/web/src/unread.js
similarity index 100%
rename from static/js/unread.js
rename to web/src/unread.js
diff --git a/static/js/unread_ops.js b/web/src/unread_ops.js
similarity index 100%
rename from static/js/unread_ops.js
rename to web/src/unread_ops.js
diff --git a/static/js/unread_ui.js b/web/src/unread_ui.js
similarity index 100%
rename from static/js/unread_ui.js
rename to web/src/unread_ui.js
diff --git a/static/js/upload.js b/web/src/upload.js
similarity index 100%
rename from static/js/upload.js
rename to web/src/upload.js
diff --git a/static/js/upload_widget.ts b/web/src/upload_widget.ts
similarity index 100%
rename from static/js/upload_widget.ts
rename to web/src/upload_widget.ts
diff --git a/static/js/user_events.js b/web/src/user_events.js
similarity index 100%
rename from static/js/user_events.js
rename to web/src/user_events.js
diff --git a/static/js/user_group_create.js b/web/src/user_group_create.js
similarity index 100%
rename from static/js/user_group_create.js
rename to web/src/user_group_create.js
diff --git a/static/js/user_group_create_members.js b/web/src/user_group_create_members.js
similarity index 100%
rename from static/js/user_group_create_members.js
rename to web/src/user_group_create_members.js
diff --git a/static/js/user_group_create_members_data.js b/web/src/user_group_create_members_data.js
similarity index 100%
rename from static/js/user_group_create_members_data.js
rename to web/src/user_group_create_members_data.js
diff --git a/static/js/user_group_edit.js b/web/src/user_group_edit.js
similarity index 100%
rename from static/js/user_group_edit.js
rename to web/src/user_group_edit.js
diff --git a/static/js/user_group_edit_members.js b/web/src/user_group_edit_members.js
similarity index 100%
rename from static/js/user_group_edit_members.js
rename to web/src/user_group_edit_members.js
diff --git a/static/js/user_group_pill.js b/web/src/user_group_pill.js
similarity index 100%
rename from static/js/user_group_pill.js
rename to web/src/user_group_pill.js
diff --git a/static/js/user_group_ui_updates.js b/web/src/user_group_ui_updates.js
similarity index 100%
rename from static/js/user_group_ui_updates.js
rename to web/src/user_group_ui_updates.js
diff --git a/static/js/user_groups.ts b/web/src/user_groups.ts
similarity index 100%
rename from static/js/user_groups.ts
rename to web/src/user_groups.ts
diff --git a/static/js/user_groups_settings_ui.js b/web/src/user_groups_settings_ui.js
similarity index 100%
rename from static/js/user_groups_settings_ui.js
rename to web/src/user_groups_settings_ui.js
diff --git a/static/js/user_pill.js b/web/src/user_pill.js
similarity index 100%
rename from static/js/user_pill.js
rename to web/src/user_pill.js
diff --git a/static/js/user_profile.js b/web/src/user_profile.js
similarity index 100%
rename from static/js/user_profile.js
rename to web/src/user_profile.js
diff --git a/static/js/user_search.js b/web/src/user_search.js
similarity index 100%
rename from static/js/user_search.js
rename to web/src/user_search.js
diff --git a/static/js/user_settings.ts b/web/src/user_settings.ts
similarity index 100%
rename from static/js/user_settings.ts
rename to web/src/user_settings.ts
diff --git a/static/js/user_status.js b/web/src/user_status.js
similarity index 100%
rename from static/js/user_status.js
rename to web/src/user_status.js
diff --git a/static/js/user_status_ui.js b/web/src/user_status_ui.js
similarity index 100%
rename from static/js/user_status_ui.js
rename to web/src/user_status_ui.js
diff --git a/static/js/user_topics.js b/web/src/user_topics.js
similarity index 100%
rename from static/js/user_topics.js
rename to web/src/user_topics.js
diff --git a/static/js/util.ts b/web/src/util.ts
similarity index 100%
rename from static/js/util.ts
rename to web/src/util.ts
diff --git a/static/js/vdom.js b/web/src/vdom.js
similarity index 100%
rename from static/js/vdom.js
rename to web/src/vdom.js
diff --git a/static/js/watchdog.ts b/web/src/watchdog.ts
similarity index 100%
rename from static/js/watchdog.ts
rename to web/src/watchdog.ts
diff --git a/static/js/webpack_public_path.js b/web/src/webpack_public_path.js
similarity index 100%
rename from static/js/webpack_public_path.js
rename to web/src/webpack_public_path.js
diff --git a/static/js/widgetize.js b/web/src/widgetize.js
similarity index 100%
rename from static/js/widgetize.js
rename to web/src/widgetize.js
diff --git a/static/js/zcommand.js b/web/src/zcommand.js
similarity index 100%
rename from static/js/zcommand.js
rename to web/src/zcommand.js
diff --git a/static/js/zform.js b/web/src/zform.js
similarity index 100%
rename from static/js/zform.js
rename to web/src/zform.js
diff --git a/static/js/zulip_test.js b/web/src/zulip_test.js
similarity index 100%
rename from static/js/zulip_test.js
rename to web/src/zulip_test.js
diff --git a/static/styles/alerts.css b/web/styles/alerts.css
similarity index 100%
rename from static/styles/alerts.css
rename to web/styles/alerts.css
diff --git a/static/styles/app_components.css b/web/styles/app_components.css
similarity index 100%
rename from static/styles/app_components.css
rename to web/styles/app_components.css
diff --git a/static/styles/components.css b/web/styles/components.css
similarity index 100%
rename from static/styles/components.css
rename to web/styles/components.css
diff --git a/static/styles/compose.css b/web/styles/compose.css
similarity index 100%
rename from static/styles/compose.css
rename to web/styles/compose.css
diff --git a/static/styles/dark_theme.css b/web/styles/dark_theme.css
similarity index 100%
rename from static/styles/dark_theme.css
rename to web/styles/dark_theme.css
diff --git a/static/styles/drafts.css b/web/styles/drafts.css
similarity index 100%
rename from static/styles/drafts.css
rename to web/styles/drafts.css
diff --git a/static/styles/hotspots.css b/web/styles/hotspots.css
similarity index 100%
rename from static/styles/hotspots.css
rename to web/styles/hotspots.css
diff --git a/static/styles/image_upload_widget.css b/web/styles/image_upload_widget.css
similarity index 100%
rename from static/styles/image_upload_widget.css
rename to web/styles/image_upload_widget.css
diff --git a/static/styles/informational_overlays.css b/web/styles/informational_overlays.css
similarity index 100%
rename from static/styles/informational_overlays.css
rename to web/styles/informational_overlays.css
diff --git a/static/styles/input_pill.css b/web/styles/input_pill.css
similarity index 100%
rename from static/styles/input_pill.css
rename to web/styles/input_pill.css
diff --git a/static/styles/left_sidebar.css b/web/styles/left_sidebar.css
similarity index 100%
rename from static/styles/left_sidebar.css
rename to web/styles/left_sidebar.css
diff --git a/static/styles/lightbox.css b/web/styles/lightbox.css
similarity index 100%
rename from static/styles/lightbox.css
rename to web/styles/lightbox.css
diff --git a/static/styles/message_edit_history.css b/web/styles/message_edit_history.css
similarity index 100%
rename from static/styles/message_edit_history.css
rename to web/styles/message_edit_history.css
diff --git a/static/styles/message_row.css b/web/styles/message_row.css
similarity index 100%
rename from static/styles/message_row.css
rename to web/styles/message_row.css
diff --git a/static/styles/modal.css b/web/styles/modal.css
similarity index 100%
rename from static/styles/modal.css
rename to web/styles/modal.css
diff --git a/static/styles/popovers.css b/web/styles/popovers.css
similarity index 100%
rename from static/styles/popovers.css
rename to web/styles/popovers.css
diff --git a/static/styles/portico/activity.css b/web/styles/portico/activity.css
similarity index 100%
rename from static/styles/portico/activity.css
rename to web/styles/portico/activity.css
diff --git a/static/styles/portico/billing.css b/web/styles/portico/billing.css
similarity index 100%
rename from static/styles/portico/billing.css
rename to web/styles/portico/billing.css
diff --git a/static/styles/portico/email_log.css b/web/styles/portico/email_log.css
similarity index 100%
rename from static/styles/portico/email_log.css
rename to web/styles/portico/email_log.css
diff --git a/static/styles/portico/integrations.css b/web/styles/portico/integrations.css
similarity index 100%
rename from static/styles/portico/integrations.css
rename to web/styles/portico/integrations.css
diff --git a/static/styles/portico/integrations_dev_panel.css b/web/styles/portico/integrations_dev_panel.css
similarity index 100%
rename from static/styles/portico/integrations_dev_panel.css
rename to web/styles/portico/integrations_dev_panel.css
diff --git a/static/styles/portico/landing_page.css b/web/styles/portico/landing_page.css
similarity index 100%
rename from static/styles/portico/landing_page.css
rename to web/styles/portico/landing_page.css
diff --git a/static/styles/portico/markdown.css b/web/styles/portico/markdown.css
similarity index 100%
rename from static/styles/portico/markdown.css
rename to web/styles/portico/markdown.css
diff --git a/static/styles/portico/portico.css b/web/styles/portico/portico.css
similarity index 100%
rename from static/styles/portico/portico.css
rename to web/styles/portico/portico.css
diff --git a/static/styles/portico/portico_signin.css b/web/styles/portico/portico_signin.css
similarity index 100%
rename from static/styles/portico/portico_signin.css
rename to web/styles/portico/portico_signin.css
diff --git a/static/styles/portico/portico_styles.css b/web/styles/portico/portico_styles.css
similarity index 100%
rename from static/styles/portico/portico_styles.css
rename to web/styles/portico/portico_styles.css
diff --git a/static/styles/portico/stats.css b/web/styles/portico/stats.css
similarity index 100%
rename from static/styles/portico/stats.css
rename to web/styles/portico/stats.css
diff --git a/static/styles/pygments.css b/web/styles/pygments.css
similarity index 100%
rename from static/styles/pygments.css
rename to web/styles/pygments.css
diff --git a/static/styles/reactions.css b/web/styles/reactions.css
similarity index 100%
rename from static/styles/reactions.css
rename to web/styles/reactions.css
diff --git a/static/styles/recent_topics.css b/web/styles/recent_topics.css
similarity index 100%
rename from static/styles/recent_topics.css
rename to web/styles/recent_topics.css
diff --git a/static/styles/rendered_markdown.css b/web/styles/rendered_markdown.css
similarity index 100%
rename from static/styles/rendered_markdown.css
rename to web/styles/rendered_markdown.css
diff --git a/static/styles/right_sidebar.css b/web/styles/right_sidebar.css
similarity index 100%
rename from static/styles/right_sidebar.css
rename to web/styles/right_sidebar.css
diff --git a/static/styles/settings.css b/web/styles/settings.css
similarity index 100%
rename from static/styles/settings.css
rename to web/styles/settings.css
diff --git a/static/styles/subscriptions.css b/web/styles/subscriptions.css
similarity index 100%
rename from static/styles/subscriptions.css
rename to web/styles/subscriptions.css
diff --git a/static/styles/tooltips.css b/web/styles/tooltips.css
similarity index 100%
rename from static/styles/tooltips.css
rename to web/styles/tooltips.css
diff --git a/static/styles/typing_notifications.css b/web/styles/typing_notifications.css
similarity index 100%
rename from static/styles/typing_notifications.css
rename to web/styles/typing_notifications.css
diff --git a/static/styles/user_circles.css b/web/styles/user_circles.css
similarity index 100%
rename from static/styles/user_circles.css
rename to web/styles/user_circles.css
diff --git a/static/styles/user_status.css b/web/styles/user_status.css
similarity index 100%
rename from static/styles/user_status.css
rename to web/styles/user_status.css
diff --git a/static/styles/widgets.css b/web/styles/widgets.css
similarity index 100%
rename from static/styles/widgets.css
rename to web/styles/widgets.css
diff --git a/static/styles/zulip.css b/web/styles/zulip.css
similarity index 100%
rename from static/styles/zulip.css
rename to web/styles/zulip.css
diff --git a/static/templates/about_zulip.hbs b/web/templates/about_zulip.hbs
similarity index 93%
rename from static/templates/about_zulip.hbs
rename to web/templates/about_zulip.hbs
index 21e0e2e538d..7d993152129 100644
--- a/static/templates/about_zulip.hbs
+++ b/web/templates/about_zulip.hbs
@@ -3,7 +3,7 @@
<button type="button" class="exit" aria-label="{{t 'Close' }}"><span aria-hidden="true">&times;</span></button>
<div class="modal-body">
<div class="about-zulip-logo">
- <a target="_blank" rel="noopener noreferrer" href="https://zulip.com"><img src="../images/logo/zulip-org-logo.svg" alt="{{t 'Zulip' }}" /></a>
+ <a target="_blank" rel="noopener noreferrer" href="https://zulip.com"><img src="../../static/images/logo/zulip-org-logo.svg" alt="{{t 'Zulip' }}" /></a>
</div>
<p>
<strong>Zulip Server</strong>
diff --git a/static/templates/actions_popover_content.hbs b/web/templates/actions_popover_content.hbs
similarity index 100%
rename from static/templates/actions_popover_content.hbs
rename to web/templates/actions_popover_content.hbs
diff --git a/static/templates/actions_popover_template.hbs b/web/templates/actions_popover_template.hbs
similarity index 100%
rename from static/templates/actions_popover_template.hbs
rename to web/templates/actions_popover_template.hbs
diff --git a/static/templates/all_messages_sidebar_actions.hbs b/web/templates/all_messages_sidebar_actions.hbs
similarity index 100%
rename from static/templates/all_messages_sidebar_actions.hbs
rename to web/templates/all_messages_sidebar_actions.hbs
diff --git a/static/templates/announce_stream_docs.hbs b/web/templates/announce_stream_docs.hbs
similarity index 100%
rename from static/templates/announce_stream_docs.hbs
rename to web/templates/announce_stream_docs.hbs
diff --git a/static/templates/blueslip_stacktrace.hbs b/web/templates/blueslip_stacktrace.hbs
similarity index 100%
rename from static/templates/blueslip_stacktrace.hbs
rename to web/templates/blueslip_stacktrace.hbs
diff --git a/static/templates/bookend.hbs b/web/templates/bookend.hbs
similarity index 100%
rename from static/templates/bookend.hbs
rename to web/templates/bookend.hbs
diff --git a/static/templates/buddy_list_tooltip_content.hbs b/web/templates/buddy_list_tooltip_content.hbs
similarity index 100%
rename from static/templates/buddy_list_tooltip_content.hbs
rename to web/templates/buddy_list_tooltip_content.hbs
diff --git a/static/templates/change_email_modal.hbs b/web/templates/change_email_modal.hbs
similarity index 100%
rename from static/templates/change_email_modal.hbs
rename to web/templates/change_email_modal.hbs
diff --git a/static/templates/compose.hbs b/web/templates/compose.hbs
similarity index 100%
rename from static/templates/compose.hbs
rename to web/templates/compose.hbs
diff --git a/static/templates/compose_banner/compose_banner.hbs b/web/templates/compose_banner/compose_banner.hbs
similarity index 100%
rename from static/templates/compose_banner/compose_banner.hbs
rename to web/templates/compose_banner/compose_banner.hbs
diff --git a/static/templates/compose_banner/message_sent_banner.hbs b/web/templates/compose_banner/message_sent_banner.hbs
similarity index 100%
rename from static/templates/compose_banner/message_sent_banner.hbs
rename to web/templates/compose_banner/message_sent_banner.hbs
diff --git a/static/templates/compose_banner/not_subscribed_warning.hbs b/web/templates/compose_banner/not_subscribed_warning.hbs
similarity index 100%
rename from static/templates/compose_banner/not_subscribed_warning.hbs
rename to web/templates/compose_banner/not_subscribed_warning.hbs
diff --git a/static/templates/compose_banner/private_stream_warning.hbs b/web/templates/compose_banner/private_stream_warning.hbs
similarity index 100%
rename from static/templates/compose_banner/private_stream_warning.hbs
rename to web/templates/compose_banner/private_stream_warning.hbs
diff --git a/static/templates/compose_banner/stream_does_not_exist_error.hbs b/web/templates/compose_banner/stream_does_not_exist_error.hbs
similarity index 100%
rename from static/templates/compose_banner/stream_does_not_exist_error.hbs
rename to web/templates/compose_banner/stream_does_not_exist_error.hbs
diff --git a/static/templates/compose_banner/upload_banner.hbs b/web/templates/compose_banner/upload_banner.hbs
similarity index 100%
rename from static/templates/compose_banner/upload_banner.hbs
rename to web/templates/compose_banner/upload_banner.hbs
diff --git a/static/templates/compose_banner/wildcard_warning.hbs b/web/templates/compose_banner/wildcard_warning.hbs
similarity index 100%
rename from static/templates/compose_banner/wildcard_warning.hbs
rename to web/templates/compose_banner/wildcard_warning.hbs
diff --git a/static/templates/compose_control_buttons.hbs b/web/templates/compose_control_buttons.hbs
similarity index 100%
rename from static/templates/compose_control_buttons.hbs
rename to web/templates/compose_control_buttons.hbs
diff --git a/static/templates/compose_control_buttons_in_popover.hbs b/web/templates/compose_control_buttons_in_popover.hbs
similarity index 100%
rename from static/templates/compose_control_buttons_in_popover.hbs
rename to web/templates/compose_control_buttons_in_popover.hbs
diff --git a/static/templates/compose_control_buttons_popover.hbs b/web/templates/compose_control_buttons_popover.hbs
similarity index 100%
rename from static/templates/compose_control_buttons_popover.hbs
rename to web/templates/compose_control_buttons_popover.hbs
diff --git a/static/templates/compose_select_enter_behaviour_popover.hbs b/web/templates/compose_select_enter_behaviour_popover.hbs
similarity index 100%
rename from static/templates/compose_select_enter_behaviour_popover.hbs
rename to web/templates/compose_select_enter_behaviour_popover.hbs
diff --git a/static/templates/confirm_dialog/confirm_deactivate_bot.hbs b/web/templates/confirm_dialog/confirm_deactivate_bot.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_deactivate_bot.hbs
rename to web/templates/confirm_dialog/confirm_deactivate_bot.hbs
diff --git a/static/templates/confirm_dialog/confirm_deactivate_custom_emoji.hbs b/web/templates/confirm_dialog/confirm_deactivate_custom_emoji.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_deactivate_custom_emoji.hbs
rename to web/templates/confirm_dialog/confirm_deactivate_custom_emoji.hbs
diff --git a/static/templates/confirm_dialog/confirm_deactivate_own_user.hbs b/web/templates/confirm_dialog/confirm_deactivate_own_user.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_deactivate_own_user.hbs
rename to web/templates/confirm_dialog/confirm_deactivate_own_user.hbs
diff --git a/static/templates/confirm_dialog/confirm_deactivate_realm.hbs b/web/templates/confirm_dialog/confirm_deactivate_realm.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_deactivate_realm.hbs
rename to web/templates/confirm_dialog/confirm_deactivate_realm.hbs
diff --git a/static/templates/confirm_dialog/confirm_deactivate_stream.hbs b/web/templates/confirm_dialog/confirm_deactivate_stream.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_deactivate_stream.hbs
rename to web/templates/confirm_dialog/confirm_deactivate_stream.hbs
diff --git a/static/templates/confirm_dialog/confirm_deactivate_user.hbs b/web/templates/confirm_dialog/confirm_deactivate_user.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_deactivate_user.hbs
rename to web/templates/confirm_dialog/confirm_deactivate_user.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_all_drafts.hbs b/web/templates/confirm_dialog/confirm_delete_all_drafts.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_all_drafts.hbs
rename to web/templates/confirm_dialog/confirm_delete_all_drafts.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_attachment.hbs b/web/templates/confirm_dialog/confirm_delete_attachment.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_attachment.hbs
rename to web/templates/confirm_dialog/confirm_delete_attachment.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_data_export.hbs b/web/templates/confirm_dialog/confirm_delete_data_export.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_data_export.hbs
rename to web/templates/confirm_dialog/confirm_delete_data_export.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_linkifier.hbs b/web/templates/confirm_dialog/confirm_delete_linkifier.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_linkifier.hbs
rename to web/templates/confirm_dialog/confirm_delete_linkifier.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_message.hbs b/web/templates/confirm_dialog/confirm_delete_message.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_message.hbs
rename to web/templates/confirm_dialog/confirm_delete_message.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_playground.hbs b/web/templates/confirm_dialog/confirm_delete_playground.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_playground.hbs
rename to web/templates/confirm_dialog/confirm_delete_playground.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_profile_field.hbs b/web/templates/confirm_dialog/confirm_delete_profile_field.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_profile_field.hbs
rename to web/templates/confirm_dialog/confirm_delete_profile_field.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_profile_field_option.hbs b/web/templates/confirm_dialog/confirm_delete_profile_field_option.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_profile_field_option.hbs
rename to web/templates/confirm_dialog/confirm_delete_profile_field_option.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_topic.hbs b/web/templates/confirm_dialog/confirm_delete_topic.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_topic.hbs
rename to web/templates/confirm_dialog/confirm_delete_topic.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_user.hbs b/web/templates/confirm_dialog/confirm_delete_user.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_user.hbs
rename to web/templates/confirm_dialog/confirm_delete_user.hbs
diff --git a/static/templates/confirm_dialog/confirm_delete_user_avatar.hbs b/web/templates/confirm_dialog/confirm_delete_user_avatar.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_delete_user_avatar.hbs
rename to web/templates/confirm_dialog/confirm_delete_user_avatar.hbs
diff --git a/static/templates/confirm_dialog/confirm_emoji_settings_warning.hbs b/web/templates/confirm_dialog/confirm_emoji_settings_warning.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_emoji_settings_warning.hbs
rename to web/templates/confirm_dialog/confirm_emoji_settings_warning.hbs
diff --git a/static/templates/confirm_dialog/confirm_mute_user.hbs b/web/templates/confirm_dialog/confirm_mute_user.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_mute_user.hbs
rename to web/templates/confirm_dialog/confirm_mute_user.hbs
diff --git a/static/templates/confirm_dialog/confirm_reactivate_bot.hbs b/web/templates/confirm_dialog/confirm_reactivate_bot.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_reactivate_bot.hbs
rename to web/templates/confirm_dialog/confirm_reactivate_bot.hbs
diff --git a/static/templates/confirm_dialog/confirm_reactivate_user.hbs b/web/templates/confirm_dialog/confirm_reactivate_user.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_reactivate_user.hbs
rename to web/templates/confirm_dialog/confirm_reactivate_user.hbs
diff --git a/static/templates/confirm_dialog/confirm_resend_invite.hbs b/web/templates/confirm_dialog/confirm_resend_invite.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_resend_invite.hbs
rename to web/templates/confirm_dialog/confirm_resend_invite.hbs
diff --git a/static/templates/confirm_dialog/confirm_revoke_invite.hbs b/web/templates/confirm_dialog/confirm_revoke_invite.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_revoke_invite.hbs
rename to web/templates/confirm_dialog/confirm_revoke_invite.hbs
diff --git a/static/templates/confirm_dialog/confirm_subscription_invites_warning.hbs b/web/templates/confirm_dialog/confirm_subscription_invites_warning.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_subscription_invites_warning.hbs
rename to web/templates/confirm_dialog/confirm_subscription_invites_warning.hbs
diff --git a/static/templates/confirm_dialog/confirm_unstar_all_messages.hbs b/web/templates/confirm_dialog/confirm_unstar_all_messages.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_unstar_all_messages.hbs
rename to web/templates/confirm_dialog/confirm_unstar_all_messages.hbs
diff --git a/static/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbs b/web/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbs
rename to web/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbs
diff --git a/static/templates/confirm_dialog/confirm_unsubscribe_private_stream.hbs b/web/templates/confirm_dialog/confirm_unsubscribe_private_stream.hbs
similarity index 100%
rename from static/templates/confirm_dialog/confirm_unsubscribe_private_stream.hbs
rename to web/templates/confirm_dialog/confirm_unsubscribe_private_stream.hbs
diff --git a/static/templates/copy_code_button.hbs b/web/templates/copy_code_button.hbs
similarity index 100%
rename from static/templates/copy_code_button.hbs
rename to web/templates/copy_code_button.hbs
diff --git a/static/templates/copy_invite_link.hbs b/web/templates/copy_invite_link.hbs
similarity index 100%
rename from static/templates/copy_invite_link.hbs
rename to web/templates/copy_invite_link.hbs
diff --git a/static/templates/copy_message_button.hbs b/web/templates/copy_message_button.hbs
similarity index 100%
rename from static/templates/copy_message_button.hbs
rename to web/templates/copy_message_button.hbs
diff --git a/static/templates/copy_to_clipboard_svg.hbs b/web/templates/copy_to_clipboard_svg.hbs
similarity index 100%
rename from static/templates/copy_to_clipboard_svg.hbs
rename to web/templates/copy_to_clipboard_svg.hbs
diff --git a/static/templates/default_language_modal.hbs b/web/templates/default_language_modal.hbs
similarity index 100%
rename from static/templates/default_language_modal.hbs
rename to web/templates/default_language_modal.hbs
diff --git a/static/templates/dialog_change_password.hbs b/web/templates/dialog_change_password.hbs
similarity index 100%
rename from static/templates/dialog_change_password.hbs
rename to web/templates/dialog_change_password.hbs
diff --git a/static/templates/dialog_widget.hbs b/web/templates/dialog_widget.hbs
similarity index 100%
rename from static/templates/dialog_widget.hbs
rename to web/templates/dialog_widget.hbs
diff --git a/static/templates/draft.hbs b/web/templates/draft.hbs
similarity index 100%
rename from static/templates/draft.hbs
rename to web/templates/draft.hbs
diff --git a/static/templates/draft_table_body.hbs b/web/templates/draft_table_body.hbs
similarity index 100%
rename from static/templates/draft_table_body.hbs
rename to web/templates/draft_table_body.hbs
diff --git a/static/templates/drafts_sidebar_action.hbs b/web/templates/drafts_sidebar_action.hbs
similarity index 100%
rename from static/templates/drafts_sidebar_action.hbs
rename to web/templates/drafts_sidebar_action.hbs
diff --git a/static/templates/edit_content_button.hbs b/web/templates/edit_content_button.hbs
similarity index 100%
rename from static/templates/edit_content_button.hbs
rename to web/templates/edit_content_button.hbs
diff --git a/static/templates/edited_notice.hbs b/web/templates/edited_notice.hbs
similarity index 100%
rename from static/templates/edited_notice.hbs
rename to web/templates/edited_notice.hbs
diff --git a/static/templates/embedded_bot_config_item.hbs b/web/templates/embedded_bot_config_item.hbs
similarity index 100%
rename from static/templates/embedded_bot_config_item.hbs
rename to web/templates/embedded_bot_config_item.hbs
diff --git a/static/templates/emoji_popover.hbs b/web/templates/emoji_popover.hbs
similarity index 100%
rename from static/templates/emoji_popover.hbs
rename to web/templates/emoji_popover.hbs
diff --git a/static/templates/emoji_popover_content.hbs b/web/templates/emoji_popover_content.hbs
similarity index 100%
rename from static/templates/emoji_popover_content.hbs
rename to web/templates/emoji_popover_content.hbs
diff --git a/static/templates/emoji_popover_emoji.hbs b/web/templates/emoji_popover_emoji.hbs
similarity index 100%
rename from static/templates/emoji_popover_emoji.hbs
rename to web/templates/emoji_popover_emoji.hbs
diff --git a/static/templates/emoji_popover_search_results.hbs b/web/templates/emoji_popover_search_results.hbs
similarity index 100%
rename from static/templates/emoji_popover_search_results.hbs
rename to web/templates/emoji_popover_search_results.hbs
diff --git a/static/templates/emoji_showcase.hbs b/web/templates/emoji_showcase.hbs
similarity index 100%
rename from static/templates/emoji_showcase.hbs
rename to web/templates/emoji_showcase.hbs
diff --git a/static/templates/empty_feed_notice.hbs b/web/templates/empty_feed_notice.hbs
similarity index 100%
rename from static/templates/empty_feed_notice.hbs
rename to web/templates/empty_feed_notice.hbs
diff --git a/static/templates/favicon.svg.hbs b/web/templates/favicon.svg.hbs
similarity index 100%
rename from static/templates/favicon.svg.hbs
rename to web/templates/favicon.svg.hbs
diff --git a/static/templates/feedback_container.hbs b/web/templates/feedback_container.hbs
similarity index 100%
rename from static/templates/feedback_container.hbs
rename to web/templates/feedback_container.hbs
diff --git a/static/templates/filter_topics.hbs b/web/templates/filter_topics.hbs
similarity index 100%
rename from static/templates/filter_topics.hbs
rename to web/templates/filter_topics.hbs
diff --git a/static/templates/gear_menu.hbs b/web/templates/gear_menu.hbs
similarity index 100%
rename from static/templates/gear_menu.hbs
rename to web/templates/gear_menu.hbs
diff --git a/static/templates/giphy_picker.hbs b/web/templates/giphy_picker.hbs
similarity index 100%
rename from static/templates/giphy_picker.hbs
rename to web/templates/giphy_picker.hbs
diff --git a/static/templates/giphy_picker_mobile.hbs b/web/templates/giphy_picker_mobile.hbs
similarity index 100%
rename from static/templates/giphy_picker_mobile.hbs
rename to web/templates/giphy_picker_mobile.hbs
diff --git a/static/templates/help_link_widget.hbs b/web/templates/help_link_widget.hbs
similarity index 100%
rename from static/templates/help_link_widget.hbs
rename to web/templates/help_link_widget.hbs
diff --git a/static/templates/hotspot_icon.hbs b/web/templates/hotspot_icon.hbs
similarity index 100%
rename from static/templates/hotspot_icon.hbs
rename to web/templates/hotspot_icon.hbs
diff --git a/static/templates/hotspot_overlay.hbs b/web/templates/hotspot_overlay.hbs
similarity index 100%
rename from static/templates/hotspot_overlay.hbs
rename to web/templates/hotspot_overlay.hbs
diff --git a/static/templates/input_pill.hbs b/web/templates/input_pill.hbs
similarity index 100%
rename from static/templates/input_pill.hbs
rename to web/templates/input_pill.hbs
diff --git a/static/templates/invitation_failed_error.hbs b/web/templates/invitation_failed_error.hbs
similarity index 100%
rename from static/templates/invitation_failed_error.hbs
rename to web/templates/invitation_failed_error.hbs
diff --git a/static/templates/invite_subscription.hbs b/web/templates/invite_subscription.hbs
similarity index 100%
rename from static/templates/invite_subscription.hbs
rename to web/templates/invite_subscription.hbs
diff --git a/static/templates/invite_user.hbs b/web/templates/invite_user.hbs
similarity index 100%
rename from static/templates/invite_user.hbs
rename to web/templates/invite_user.hbs
diff --git a/static/templates/keyboard_shortcuts.hbs b/web/templates/keyboard_shortcuts.hbs
similarity index 99%
rename from static/templates/keyboard_shortcuts.hbs
rename to web/templates/keyboard_shortcuts.hbs
index df89603d808..b8d3bd8dfe1 100644
--- a/static/templates/keyboard_shortcuts.hbs
+++ b/web/templates/keyboard_shortcuts.hbs
@@ -233,7 +233,7 @@
{{t 'React to selected message with' }}
<img alt=":thumbs_up:"
class="emoji"
- src="../generated/emoji/images/emoji/unicode/1f44d.png"
+ src="../../static/generated/emoji/images/emoji/unicode/1f44d.png"
title=":thumbs_up:"/>
</td>
<td><span class="hotkey"><kbd>+</kbd></span></td>
diff --git a/static/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbs
similarity index 100%
rename from static/templates/left_sidebar.hbs
rename to web/templates/left_sidebar.hbs
diff --git a/static/templates/left_sidebar_stream_setting_popover.hbs b/web/templates/left_sidebar_stream_setting_popover.hbs
similarity index 100%
rename from static/templates/left_sidebar_stream_setting_popover.hbs
rename to web/templates/left_sidebar_stream_setting_popover.hbs
diff --git a/static/templates/lightbox_overlay.hbs b/web/templates/lightbox_overlay.hbs
similarity index 100%
rename from static/templates/lightbox_overlay.hbs
rename to web/templates/lightbox_overlay.hbs
diff --git a/static/templates/loader.hbs b/web/templates/loader.hbs
similarity index 100%
rename from static/templates/loader.hbs
rename to web/templates/loader.hbs
diff --git a/static/templates/login_to_access.hbs b/web/templates/login_to_access.hbs
similarity index 100%
rename from static/templates/login_to_access.hbs
rename to web/templates/login_to_access.hbs
diff --git a/static/templates/login_to_view_image_button.hbs b/web/templates/login_to_view_image_button.hbs
similarity index 100%
rename from static/templates/login_to_view_image_button.hbs
rename to web/templates/login_to_view_image_button.hbs
diff --git a/static/templates/mark_as_read_turned_off_banner.hbs b/web/templates/mark_as_read_turned_off_banner.hbs
similarity index 100%
rename from static/templates/mark_as_read_turned_off_banner.hbs
rename to web/templates/mark_as_read_turned_off_banner.hbs
diff --git a/static/templates/markdown_help.hbs b/web/templates/markdown_help.hbs
similarity index 100%
rename from static/templates/markdown_help.hbs
rename to web/templates/markdown_help.hbs
diff --git a/static/templates/markdown_time_tooltip.hbs b/web/templates/markdown_time_tooltip.hbs
similarity index 100%
rename from static/templates/markdown_time_tooltip.hbs
rename to web/templates/markdown_time_tooltip.hbs
diff --git a/static/templates/markdown_timestamp.hbs b/web/templates/markdown_timestamp.hbs
similarity index 100%
rename from static/templates/markdown_timestamp.hbs
rename to web/templates/markdown_timestamp.hbs
diff --git a/static/templates/me_message.hbs b/web/templates/me_message.hbs
similarity index 100%
rename from static/templates/me_message.hbs
rename to web/templates/me_message.hbs
diff --git a/static/templates/message_avatar.hbs b/web/templates/message_avatar.hbs
similarity index 100%
rename from static/templates/message_avatar.hbs
rename to web/templates/message_avatar.hbs
diff --git a/static/templates/message_body.hbs b/web/templates/message_body.hbs
similarity index 100%
rename from static/templates/message_body.hbs
rename to web/templates/message_body.hbs
diff --git a/static/templates/message_controls.hbs b/web/templates/message_controls.hbs
similarity index 100%
rename from static/templates/message_controls.hbs
rename to web/templates/message_controls.hbs
diff --git a/static/templates/message_edit_form.hbs b/web/templates/message_edit_form.hbs
similarity index 100%
rename from static/templates/message_edit_form.hbs
rename to web/templates/message_edit_form.hbs
diff --git a/static/templates/message_edit_history.hbs b/web/templates/message_edit_history.hbs
similarity index 100%
rename from static/templates/message_edit_history.hbs
rename to web/templates/message_edit_history.hbs
diff --git a/static/templates/message_feed_bottom_whitespace.hbs b/web/templates/message_feed_bottom_whitespace.hbs
similarity index 100%
rename from static/templates/message_feed_bottom_whitespace.hbs
rename to web/templates/message_feed_bottom_whitespace.hbs
diff --git a/static/templates/message_feed_errors.hbs b/web/templates/message_feed_errors.hbs
similarity index 100%
rename from static/templates/message_feed_errors.hbs
rename to web/templates/message_feed_errors.hbs
diff --git a/static/templates/message_group.hbs b/web/templates/message_group.hbs
similarity index 100%
rename from static/templates/message_group.hbs
rename to web/templates/message_group.hbs
diff --git a/static/templates/message_hidden_dialog.hbs b/web/templates/message_hidden_dialog.hbs
similarity index 100%
rename from static/templates/message_hidden_dialog.hbs
rename to web/templates/message_hidden_dialog.hbs
diff --git a/static/templates/message_history_modal.hbs b/web/templates/message_history_modal.hbs
similarity index 100%
rename from static/templates/message_history_modal.hbs
rename to web/templates/message_history_modal.hbs
diff --git a/static/templates/message_inline_image_tooltip.hbs b/web/templates/message_inline_image_tooltip.hbs
similarity index 100%
rename from static/templates/message_inline_image_tooltip.hbs
rename to web/templates/message_inline_image_tooltip.hbs
diff --git a/static/templates/message_reaction.hbs b/web/templates/message_reaction.hbs
similarity index 100%
rename from static/templates/message_reaction.hbs
rename to web/templates/message_reaction.hbs
diff --git a/static/templates/message_reactions.hbs b/web/templates/message_reactions.hbs
similarity index 100%
rename from static/templates/message_reactions.hbs
rename to web/templates/message_reactions.hbs
diff --git a/static/templates/message_view_header.hbs b/web/templates/message_view_header.hbs
similarity index 100%
rename from static/templates/message_view_header.hbs
rename to web/templates/message_view_header.hbs
diff --git a/static/templates/mobile_message_buttons_popover_content.hbs b/web/templates/mobile_message_buttons_popover_content.hbs
similarity index 100%
rename from static/templates/mobile_message_buttons_popover_content.hbs
rename to web/templates/mobile_message_buttons_popover_content.hbs
diff --git a/static/templates/more_pms.hbs b/web/templates/more_pms.hbs
similarity index 100%
rename from static/templates/more_pms.hbs
rename to web/templates/more_pms.hbs
diff --git a/static/templates/more_topics.hbs b/web/templates/more_topics.hbs
similarity index 100%
rename from static/templates/more_topics.hbs
rename to web/templates/more_topics.hbs
diff --git a/static/templates/more_topics_spinner.hbs b/web/templates/more_topics_spinner.hbs
similarity index 100%
rename from static/templates/more_topics_spinner.hbs
rename to web/templates/more_topics_spinner.hbs
diff --git a/static/templates/move_topic_to_stream.hbs b/web/templates/move_topic_to_stream.hbs
similarity index 100%
rename from static/templates/move_topic_to_stream.hbs
rename to web/templates/move_topic_to_stream.hbs
diff --git a/static/templates/muted_topic_ui_row.hbs b/web/templates/muted_topic_ui_row.hbs
similarity index 100%
rename from static/templates/muted_topic_ui_row.hbs
rename to web/templates/muted_topic_ui_row.hbs
diff --git a/static/templates/muted_user_ui_row.hbs b/web/templates/muted_user_ui_row.hbs
similarity index 100%
rename from static/templates/muted_user_ui_row.hbs
rename to web/templates/muted_user_ui_row.hbs
diff --git a/static/templates/narrow_to_compose_recipients_tooltip.hbs b/web/templates/narrow_to_compose_recipients_tooltip.hbs
similarity index 100%
rename from static/templates/narrow_to_compose_recipients_tooltip.hbs
rename to web/templates/narrow_to_compose_recipients_tooltip.hbs
diff --git a/static/templates/navbar.hbs b/web/templates/navbar.hbs
similarity index 100%
rename from static/templates/navbar.hbs
rename to web/templates/navbar.hbs
diff --git a/static/templates/navbar_alerts/bankruptcy.hbs b/web/templates/navbar_alerts/bankruptcy.hbs
similarity index 100%
rename from static/templates/navbar_alerts/bankruptcy.hbs
rename to web/templates/navbar_alerts/bankruptcy.hbs
diff --git a/static/templates/navbar_alerts/configure_outgoing_email.hbs b/web/templates/navbar_alerts/configure_outgoing_email.hbs
similarity index 100%
rename from static/templates/navbar_alerts/configure_outgoing_email.hbs
rename to web/templates/navbar_alerts/configure_outgoing_email.hbs
diff --git a/static/templates/navbar_alerts/demo_organization_deadline.hbs b/web/templates/navbar_alerts/demo_organization_deadline.hbs
similarity index 100%
rename from static/templates/navbar_alerts/demo_organization_deadline.hbs
rename to web/templates/navbar_alerts/demo_organization_deadline.hbs
diff --git a/static/templates/navbar_alerts/desktop_notifications.hbs b/web/templates/navbar_alerts/desktop_notifications.hbs
similarity index 100%
rename from static/templates/navbar_alerts/desktop_notifications.hbs
rename to web/templates/navbar_alerts/desktop_notifications.hbs
diff --git a/static/templates/navbar_alerts/insecure_desktop_app.hbs b/web/templates/navbar_alerts/insecure_desktop_app.hbs
similarity index 100%
rename from static/templates/navbar_alerts/insecure_desktop_app.hbs
rename to web/templates/navbar_alerts/insecure_desktop_app.hbs
diff --git a/static/templates/navbar_alerts/navbar_alert_wrapper.hbs b/web/templates/navbar_alerts/navbar_alert_wrapper.hbs
similarity index 100%
rename from static/templates/navbar_alerts/navbar_alert_wrapper.hbs
rename to web/templates/navbar_alerts/navbar_alert_wrapper.hbs
diff --git a/static/templates/navbar_alerts/profile_incomplete.hbs b/web/templates/navbar_alerts/profile_incomplete.hbs
similarity index 100%
rename from static/templates/navbar_alerts/profile_incomplete.hbs
rename to web/templates/navbar_alerts/profile_incomplete.hbs
diff --git a/static/templates/navbar_alerts/server_needs_upgrade.hbs b/web/templates/navbar_alerts/server_needs_upgrade.hbs
similarity index 100%
rename from static/templates/navbar_alerts/server_needs_upgrade.hbs
rename to web/templates/navbar_alerts/server_needs_upgrade.hbs
diff --git a/static/templates/navbar_icon_and_title.hbs b/web/templates/navbar_icon_and_title.hbs
similarity index 100%
rename from static/templates/navbar_icon_and_title.hbs
rename to web/templates/navbar_icon_and_title.hbs
diff --git a/static/templates/no_arrow_popover.hbs b/web/templates/no_arrow_popover.hbs
similarity index 100%
rename from static/templates/no_arrow_popover.hbs
rename to web/templates/no_arrow_popover.hbs
diff --git a/static/templates/non_editable_user_group.hbs b/web/templates/non_editable_user_group.hbs
similarity index 100%
rename from static/templates/non_editable_user_group.hbs
rename to web/templates/non_editable_user_group.hbs
diff --git a/static/templates/playground_links_popover_content.hbs b/web/templates/playground_links_popover_content.hbs
similarity index 100%
rename from static/templates/playground_links_popover_content.hbs
rename to web/templates/playground_links_popover_content.hbs
diff --git a/static/templates/pm_list_item.hbs b/web/templates/pm_list_item.hbs
similarity index 100%
rename from static/templates/pm_list_item.hbs
rename to web/templates/pm_list_item.hbs
diff --git a/static/templates/presence_row.hbs b/web/templates/presence_row.hbs
similarity index 100%
rename from static/templates/presence_row.hbs
rename to web/templates/presence_row.hbs
diff --git a/static/templates/presence_rows.hbs b/web/templates/presence_rows.hbs
similarity index 100%
rename from static/templates/presence_rows.hbs
rename to web/templates/presence_rows.hbs
diff --git a/static/templates/read_receipts.hbs b/web/templates/read_receipts.hbs
similarity index 100%
rename from static/templates/read_receipts.hbs
rename to web/templates/read_receipts.hbs
diff --git a/static/templates/read_receipts_modal.hbs b/web/templates/read_receipts_modal.hbs
similarity index 100%
rename from static/templates/read_receipts_modal.hbs
rename to web/templates/read_receipts_modal.hbs
diff --git a/static/templates/recent_topic_row.hbs b/web/templates/recent_topic_row.hbs
similarity index 100%
rename from static/templates/recent_topic_row.hbs
rename to web/templates/recent_topic_row.hbs
diff --git a/static/templates/recent_topics_filters.hbs b/web/templates/recent_topics_filters.hbs
similarity index 100%
rename from static/templates/recent_topics_filters.hbs
rename to web/templates/recent_topics_filters.hbs
diff --git a/static/templates/recent_topics_table.hbs b/web/templates/recent_topics_table.hbs
similarity index 100%
rename from static/templates/recent_topics_table.hbs
rename to web/templates/recent_topics_table.hbs
diff --git a/static/templates/recipient_row.hbs b/web/templates/recipient_row.hbs
similarity index 100%
rename from static/templates/recipient_row.hbs
rename to web/templates/recipient_row.hbs
diff --git a/static/templates/remind_me_popover_content.hbs b/web/templates/remind_me_popover_content.hbs
similarity index 100%
rename from static/templates/remind_me_popover_content.hbs
rename to web/templates/remind_me_popover_content.hbs
diff --git a/static/templates/right_sidebar.hbs b/web/templates/right_sidebar.hbs
similarity index 100%
rename from static/templates/right_sidebar.hbs
rename to web/templates/right_sidebar.hbs
diff --git a/static/templates/search_list_item.hbs b/web/templates/search_list_item.hbs
similarity index 100%
rename from static/templates/search_list_item.hbs
rename to web/templates/search_list_item.hbs
diff --git a/static/templates/search_operators.hbs b/web/templates/search_operators.hbs
similarity index 100%
rename from static/templates/search_operators.hbs
rename to web/templates/search_operators.hbs
diff --git a/static/templates/set_status_overlay.hbs b/web/templates/set_status_overlay.hbs
similarity index 100%
rename from static/templates/set_status_overlay.hbs
rename to web/templates/set_status_overlay.hbs
diff --git a/static/templates/settings/account_settings.hbs b/web/templates/settings/account_settings.hbs
similarity index 100%
rename from static/templates/settings/account_settings.hbs
rename to web/templates/settings/account_settings.hbs
diff --git a/static/templates/settings/add_alert_word.hbs b/web/templates/settings/add_alert_word.hbs
similarity index 100%
rename from static/templates/settings/add_alert_word.hbs
rename to web/templates/settings/add_alert_word.hbs
diff --git a/static/templates/settings/add_emoji.hbs b/web/templates/settings/add_emoji.hbs
similarity index 100%
rename from static/templates/settings/add_emoji.hbs
rename to web/templates/settings/add_emoji.hbs
diff --git a/static/templates/settings/add_new_bot_form.hbs b/web/templates/settings/add_new_bot_form.hbs
similarity index 100%
rename from static/templates/settings/add_new_bot_form.hbs
rename to web/templates/settings/add_new_bot_form.hbs
diff --git a/static/templates/settings/add_new_custom_profile_field_form.hbs b/web/templates/settings/add_new_custom_profile_field_form.hbs
similarity index 100%
rename from static/templates/settings/add_new_custom_profile_field_form.hbs
rename to web/templates/settings/add_new_custom_profile_field_form.hbs
diff --git a/static/templates/settings/add_user_group_modal.hbs b/web/templates/settings/add_user_group_modal.hbs
similarity index 100%
rename from static/templates/settings/add_user_group_modal.hbs
rename to web/templates/settings/add_user_group_modal.hbs
diff --git a/static/templates/settings/admin_auth_methods_list.hbs b/web/templates/settings/admin_auth_methods_list.hbs
similarity index 100%
rename from static/templates/settings/admin_auth_methods_list.hbs
rename to web/templates/settings/admin_auth_methods_list.hbs
diff --git a/static/templates/settings/admin_default_streams_list.hbs b/web/templates/settings/admin_default_streams_list.hbs
similarity index 100%
rename from static/templates/settings/admin_default_streams_list.hbs
rename to web/templates/settings/admin_default_streams_list.hbs
diff --git a/static/templates/settings/admin_emoji_list.hbs b/web/templates/settings/admin_emoji_list.hbs
similarity index 100%
rename from static/templates/settings/admin_emoji_list.hbs
rename to web/templates/settings/admin_emoji_list.hbs
diff --git a/static/templates/settings/admin_export_list.hbs b/web/templates/settings/admin_export_list.hbs
similarity index 100%
rename from static/templates/settings/admin_export_list.hbs
rename to web/templates/settings/admin_export_list.hbs
diff --git a/static/templates/settings/admin_human_form.hbs b/web/templates/settings/admin_human_form.hbs
similarity index 100%
rename from static/templates/settings/admin_human_form.hbs
rename to web/templates/settings/admin_human_form.hbs
diff --git a/static/templates/settings/admin_invites_list.hbs b/web/templates/settings/admin_invites_list.hbs
similarity index 100%
rename from static/templates/settings/admin_invites_list.hbs
rename to web/templates/settings/admin_invites_list.hbs
diff --git a/static/templates/settings/admin_linkifier_edit_form.hbs b/web/templates/settings/admin_linkifier_edit_form.hbs
similarity index 100%
rename from static/templates/settings/admin_linkifier_edit_form.hbs
rename to web/templates/settings/admin_linkifier_edit_form.hbs
diff --git a/static/templates/settings/admin_linkifier_list.hbs b/web/templates/settings/admin_linkifier_list.hbs
similarity index 100%
rename from static/templates/settings/admin_linkifier_list.hbs
rename to web/templates/settings/admin_linkifier_list.hbs
diff --git a/static/templates/settings/admin_playground_list.hbs b/web/templates/settings/admin_playground_list.hbs
similarity index 100%
rename from static/templates/settings/admin_playground_list.hbs
rename to web/templates/settings/admin_playground_list.hbs
diff --git a/static/templates/settings/admin_profile_field_list.hbs b/web/templates/settings/admin_profile_field_list.hbs
similarity index 100%
rename from static/templates/settings/admin_profile_field_list.hbs
rename to web/templates/settings/admin_profile_field_list.hbs
diff --git a/static/templates/settings/admin_realm_domains_list.hbs b/web/templates/settings/admin_realm_domains_list.hbs
similarity index 100%
rename from static/templates/settings/admin_realm_domains_list.hbs
rename to web/templates/settings/admin_realm_domains_list.hbs
diff --git a/static/templates/settings/admin_settings_modals.hbs b/web/templates/settings/admin_settings_modals.hbs
similarity index 100%
rename from static/templates/settings/admin_settings_modals.hbs
rename to web/templates/settings/admin_settings_modals.hbs
diff --git a/static/templates/settings/admin_tab.hbs b/web/templates/settings/admin_tab.hbs
similarity index 100%
rename from static/templates/settings/admin_tab.hbs
rename to web/templates/settings/admin_tab.hbs
diff --git a/static/templates/settings/admin_user_group_list.hbs b/web/templates/settings/admin_user_group_list.hbs
similarity index 100%
rename from static/templates/settings/admin_user_group_list.hbs
rename to web/templates/settings/admin_user_group_list.hbs
diff --git a/static/templates/settings/admin_user_list.hbs b/web/templates/settings/admin_user_list.hbs
similarity index 100%
rename from static/templates/settings/admin_user_list.hbs
rename to web/templates/settings/admin_user_list.hbs
diff --git a/static/templates/settings/alert_word_settings.hbs b/web/templates/settings/alert_word_settings.hbs
similarity index 100%
rename from static/templates/settings/alert_word_settings.hbs
rename to web/templates/settings/alert_word_settings.hbs
diff --git a/static/templates/settings/alert_word_settings_item.hbs b/web/templates/settings/alert_word_settings_item.hbs
similarity index 100%
rename from static/templates/settings/alert_word_settings_item.hbs
rename to web/templates/settings/alert_word_settings_item.hbs
diff --git a/static/templates/settings/api_key_modal.hbs b/web/templates/settings/api_key_modal.hbs
similarity index 100%
rename from static/templates/settings/api_key_modal.hbs
rename to web/templates/settings/api_key_modal.hbs
diff --git a/static/templates/settings/attachments_settings.hbs b/web/templates/settings/attachments_settings.hbs
similarity index 100%
rename from static/templates/settings/attachments_settings.hbs
rename to web/templates/settings/attachments_settings.hbs
diff --git a/static/templates/settings/auth_methods_settings_admin.hbs b/web/templates/settings/auth_methods_settings_admin.hbs
similarity index 100%
rename from static/templates/settings/auth_methods_settings_admin.hbs
rename to web/templates/settings/auth_methods_settings_admin.hbs
diff --git a/static/templates/settings/bot_avatar_row.hbs b/web/templates/settings/bot_avatar_row.hbs
similarity index 100%
rename from static/templates/settings/bot_avatar_row.hbs
rename to web/templates/settings/bot_avatar_row.hbs
diff --git a/static/templates/settings/bot_list_admin.hbs b/web/templates/settings/bot_list_admin.hbs
similarity index 100%
rename from static/templates/settings/bot_list_admin.hbs
rename to web/templates/settings/bot_list_admin.hbs
diff --git a/static/templates/settings/bot_settings.hbs b/web/templates/settings/bot_settings.hbs
similarity index 100%
rename from static/templates/settings/bot_settings.hbs
rename to web/templates/settings/bot_settings.hbs
diff --git a/static/templates/settings/custom_user_profile_field.hbs b/web/templates/settings/custom_user_profile_field.hbs
similarity index 100%
rename from static/templates/settings/custom_user_profile_field.hbs
rename to web/templates/settings/custom_user_profile_field.hbs
diff --git a/static/templates/settings/data_exports_admin.hbs b/web/templates/settings/data_exports_admin.hbs
similarity index 100%
rename from static/templates/settings/data_exports_admin.hbs
rename to web/templates/settings/data_exports_admin.hbs
diff --git a/static/templates/settings/deactivated_users_admin.hbs b/web/templates/settings/deactivated_users_admin.hbs
similarity index 100%
rename from static/templates/settings/deactivated_users_admin.hbs
rename to web/templates/settings/deactivated_users_admin.hbs
diff --git a/static/templates/settings/default_streams_list_admin.hbs b/web/templates/settings/default_streams_list_admin.hbs
similarity index 100%
rename from static/templates/settings/default_streams_list_admin.hbs
rename to web/templates/settings/default_streams_list_admin.hbs
diff --git a/static/templates/settings/dev_env_email_access.hbs b/web/templates/settings/dev_env_email_access.hbs
similarity index 100%
rename from static/templates/settings/dev_env_email_access.hbs
rename to web/templates/settings/dev_env_email_access.hbs
diff --git a/static/templates/settings/display_settings.hbs b/web/templates/settings/display_settings.hbs
similarity index 100%
rename from static/templates/settings/display_settings.hbs
rename to web/templates/settings/display_settings.hbs
diff --git a/static/templates/settings/dropdown_list.hbs b/web/templates/settings/dropdown_list.hbs
similarity index 100%
rename from static/templates/settings/dropdown_list.hbs
rename to web/templates/settings/dropdown_list.hbs
diff --git a/static/templates/settings/dropdown_list_widget.hbs b/web/templates/settings/dropdown_list_widget.hbs
similarity index 100%
rename from static/templates/settings/dropdown_list_widget.hbs
rename to web/templates/settings/dropdown_list_widget.hbs
diff --git a/static/templates/settings/dropdown_options_widget.hbs b/web/templates/settings/dropdown_options_widget.hbs
similarity index 100%
rename from static/templates/settings/dropdown_options_widget.hbs
rename to web/templates/settings/dropdown_options_widget.hbs
diff --git a/static/templates/settings/edit_bot_form.hbs b/web/templates/settings/edit_bot_form.hbs
similarity index 100%
rename from static/templates/settings/edit_bot_form.hbs
rename to web/templates/settings/edit_bot_form.hbs
diff --git a/static/templates/settings/edit_custom_profile_field_form.hbs b/web/templates/settings/edit_custom_profile_field_form.hbs
similarity index 100%
rename from static/templates/settings/edit_custom_profile_field_form.hbs
rename to web/templates/settings/edit_custom_profile_field_form.hbs
diff --git a/static/templates/settings/edit_embedded_bot_service.hbs b/web/templates/settings/edit_embedded_bot_service.hbs
similarity index 100%
rename from static/templates/settings/edit_embedded_bot_service.hbs
rename to web/templates/settings/edit_embedded_bot_service.hbs
diff --git a/static/templates/settings/edit_outgoing_webhook_service.hbs b/web/templates/settings/edit_outgoing_webhook_service.hbs
similarity index 100%
rename from static/templates/settings/edit_outgoing_webhook_service.hbs
rename to web/templates/settings/edit_outgoing_webhook_service.hbs
diff --git a/static/templates/settings/emoji_settings_admin.hbs b/web/templates/settings/emoji_settings_admin.hbs
similarity index 100%
rename from static/templates/settings/emoji_settings_admin.hbs
rename to web/templates/settings/emoji_settings_admin.hbs
diff --git a/static/templates/settings/emoji_settings_tip.hbs b/web/templates/settings/emoji_settings_tip.hbs
similarity index 100%
rename from static/templates/settings/emoji_settings_tip.hbs
rename to web/templates/settings/emoji_settings_tip.hbs
diff --git a/static/templates/settings/image_upload_widget.hbs b/web/templates/settings/image_upload_widget.hbs
similarity index 100%
rename from static/templates/settings/image_upload_widget.hbs
rename to web/templates/settings/image_upload_widget.hbs
diff --git a/static/templates/settings/invites_list_admin.hbs b/web/templates/settings/invites_list_admin.hbs
similarity index 100%
rename from static/templates/settings/invites_list_admin.hbs
rename to web/templates/settings/invites_list_admin.hbs
diff --git a/static/templates/settings/language_selection_widget.hbs b/web/templates/settings/language_selection_widget.hbs
similarity index 100%
rename from static/templates/settings/language_selection_widget.hbs
rename to web/templates/settings/language_selection_widget.hbs
diff --git a/static/templates/settings/linkifier_settings_admin.hbs b/web/templates/settings/linkifier_settings_admin.hbs
similarity index 100%
rename from static/templates/settings/linkifier_settings_admin.hbs
rename to web/templates/settings/linkifier_settings_admin.hbs
diff --git a/static/templates/settings/muted_topics_settings.hbs b/web/templates/settings/muted_topics_settings.hbs
similarity index 100%
rename from static/templates/settings/muted_topics_settings.hbs
rename to web/templates/settings/muted_topics_settings.hbs
diff --git a/static/templates/settings/muted_users_settings.hbs b/web/templates/settings/muted_users_settings.hbs
similarity index 100%
rename from static/templates/settings/muted_users_settings.hbs
rename to web/templates/settings/muted_users_settings.hbs
diff --git a/static/templates/settings/notification_settings.hbs b/web/templates/settings/notification_settings.hbs
similarity index 100%
rename from static/templates/settings/notification_settings.hbs
rename to web/templates/settings/notification_settings.hbs
diff --git a/static/templates/settings/notification_settings_checkboxes.hbs b/web/templates/settings/notification_settings_checkboxes.hbs
similarity index 100%
rename from static/templates/settings/notification_settings_checkboxes.hbs
rename to web/templates/settings/notification_settings_checkboxes.hbs
diff --git a/static/templates/settings/organization_permissions_admin.hbs b/web/templates/settings/organization_permissions_admin.hbs
similarity index 100%
rename from static/templates/settings/organization_permissions_admin.hbs
rename to web/templates/settings/organization_permissions_admin.hbs
diff --git a/static/templates/settings/organization_profile_admin.hbs b/web/templates/settings/organization_profile_admin.hbs
similarity index 100%
rename from static/templates/settings/organization_profile_admin.hbs
rename to web/templates/settings/organization_profile_admin.hbs
diff --git a/static/templates/settings/organization_settings_admin.hbs b/web/templates/settings/organization_settings_admin.hbs
similarity index 100%
rename from static/templates/settings/organization_settings_admin.hbs
rename to web/templates/settings/organization_settings_admin.hbs
diff --git a/static/templates/settings/organization_settings_tip.hbs b/web/templates/settings/organization_settings_tip.hbs
similarity index 100%
rename from static/templates/settings/organization_settings_tip.hbs
rename to web/templates/settings/organization_settings_tip.hbs
diff --git a/static/templates/settings/organization_user_settings_defaults.hbs b/web/templates/settings/organization_user_settings_defaults.hbs
similarity index 100%
rename from static/templates/settings/organization_user_settings_defaults.hbs
rename to web/templates/settings/organization_user_settings_defaults.hbs
diff --git a/static/templates/settings/playground_settings_admin.hbs b/web/templates/settings/playground_settings_admin.hbs
similarity index 100%
rename from static/templates/settings/playground_settings_admin.hbs
rename to web/templates/settings/playground_settings_admin.hbs
diff --git a/static/templates/settings/profile_field_choice.hbs b/web/templates/settings/profile_field_choice.hbs
similarity index 100%
rename from static/templates/settings/profile_field_choice.hbs
rename to web/templates/settings/profile_field_choice.hbs
diff --git a/static/templates/settings/profile_field_settings_admin.hbs b/web/templates/settings/profile_field_settings_admin.hbs
similarity index 100%
rename from static/templates/settings/profile_field_settings_admin.hbs
rename to web/templates/settings/profile_field_settings_admin.hbs
diff --git a/static/templates/settings/profile_settings.hbs b/web/templates/settings/profile_settings.hbs
similarity index 100%
rename from static/templates/settings/profile_settings.hbs
rename to web/templates/settings/profile_settings.hbs
diff --git a/static/templates/settings/realm_domains_modal.hbs b/web/templates/settings/realm_domains_modal.hbs
similarity index 100%
rename from static/templates/settings/realm_domains_modal.hbs
rename to web/templates/settings/realm_domains_modal.hbs
diff --git a/static/templates/settings/settings_checkbox.hbs b/web/templates/settings/settings_checkbox.hbs
similarity index 100%
rename from static/templates/settings/settings_checkbox.hbs
rename to web/templates/settings/settings_checkbox.hbs
diff --git a/static/templates/settings/settings_save_discard_widget.hbs b/web/templates/settings/settings_save_discard_widget.hbs
similarity index 100%
rename from static/templates/settings/settings_save_discard_widget.hbs
rename to web/templates/settings/settings_save_discard_widget.hbs
diff --git a/static/templates/settings/stream_specific_notification_row.hbs b/web/templates/settings/stream_specific_notification_row.hbs
similarity index 100%
rename from static/templates/settings/stream_specific_notification_row.hbs
rename to web/templates/settings/stream_specific_notification_row.hbs
diff --git a/static/templates/settings/upgrade_tip_widget.hbs b/web/templates/settings/upgrade_tip_widget.hbs
similarity index 100%
rename from static/templates/settings/upgrade_tip_widget.hbs
rename to web/templates/settings/upgrade_tip_widget.hbs
diff --git a/static/templates/settings/upload_space_stats.hbs b/web/templates/settings/upload_space_stats.hbs
similarity index 100%
rename from static/templates/settings/upload_space_stats.hbs
rename to web/templates/settings/upload_space_stats.hbs
diff --git a/static/templates/settings/uploaded_files_list.hbs b/web/templates/settings/uploaded_files_list.hbs
similarity index 100%
rename from static/templates/settings/uploaded_files_list.hbs
rename to web/templates/settings/uploaded_files_list.hbs
diff --git a/static/templates/settings/user_display_settings.hbs b/web/templates/settings/user_display_settings.hbs
similarity index 100%
rename from static/templates/settings/user_display_settings.hbs
rename to web/templates/settings/user_display_settings.hbs
diff --git a/static/templates/settings/user_groups_admin.hbs b/web/templates/settings/user_groups_admin.hbs
similarity index 100%
rename from static/templates/settings/user_groups_admin.hbs
rename to web/templates/settings/user_groups_admin.hbs
diff --git a/static/templates/settings/user_list_admin.hbs b/web/templates/settings/user_list_admin.hbs
similarity index 100%
rename from static/templates/settings/user_list_admin.hbs
rename to web/templates/settings/user_list_admin.hbs
diff --git a/static/templates/settings/user_notification_settings.hbs b/web/templates/settings/user_notification_settings.hbs
similarity index 100%
rename from static/templates/settings/user_notification_settings.hbs
rename to web/templates/settings/user_notification_settings.hbs
diff --git a/static/templates/settings_overlay.hbs b/web/templates/settings_overlay.hbs
similarity index 100%
rename from static/templates/settings_overlay.hbs
rename to web/templates/settings_overlay.hbs
diff --git a/static/templates/settings_tab.hbs b/web/templates/settings_tab.hbs
similarity index 100%
rename from static/templates/settings_tab.hbs
rename to web/templates/settings_tab.hbs
diff --git a/static/templates/single_message.hbs b/web/templates/single_message.hbs
similarity index 100%
rename from static/templates/single_message.hbs
rename to web/templates/single_message.hbs
diff --git a/static/templates/starred_messages_sidebar_actions.hbs b/web/templates/starred_messages_sidebar_actions.hbs
similarity index 100%
rename from static/templates/starred_messages_sidebar_actions.hbs
rename to web/templates/starred_messages_sidebar_actions.hbs
diff --git a/static/templates/status_emoji.hbs b/web/templates/status_emoji.hbs
similarity index 100%
rename from static/templates/status_emoji.hbs
rename to web/templates/status_emoji.hbs
diff --git a/static/templates/status_emoji_selector.hbs b/web/templates/status_emoji_selector.hbs
similarity index 100%
rename from static/templates/status_emoji_selector.hbs
rename to web/templates/status_emoji_selector.hbs
diff --git a/static/templates/stream_privacy.hbs b/web/templates/stream_privacy.hbs
similarity index 100%
rename from static/templates/stream_privacy.hbs
rename to web/templates/stream_privacy.hbs
diff --git a/static/templates/stream_settings/add_subscribers_form.hbs b/web/templates/stream_settings/add_subscribers_form.hbs
similarity index 100%
rename from static/templates/stream_settings/add_subscribers_form.hbs
rename to web/templates/stream_settings/add_subscribers_form.hbs
diff --git a/static/templates/stream_settings/browse_streams_list.hbs b/web/templates/stream_settings/browse_streams_list.hbs
similarity index 100%
rename from static/templates/stream_settings/browse_streams_list.hbs
rename to web/templates/stream_settings/browse_streams_list.hbs
diff --git a/static/templates/stream_settings/browse_streams_list_item.hbs b/web/templates/stream_settings/browse_streams_list_item.hbs
similarity index 100%
rename from static/templates/stream_settings/browse_streams_list_item.hbs
rename to web/templates/stream_settings/browse_streams_list_item.hbs
diff --git a/static/templates/stream_settings/change_stream_info_modal.hbs b/web/templates/stream_settings/change_stream_info_modal.hbs
similarity index 100%
rename from static/templates/stream_settings/change_stream_info_modal.hbs
rename to web/templates/stream_settings/change_stream_info_modal.hbs
diff --git a/static/templates/stream_settings/copy_email_address_modal.hbs b/web/templates/stream_settings/copy_email_address_modal.hbs
similarity index 100%
rename from static/templates/stream_settings/copy_email_address_modal.hbs
rename to web/templates/stream_settings/copy_email_address_modal.hbs
diff --git a/static/templates/stream_settings/new_stream_user.hbs b/web/templates/stream_settings/new_stream_user.hbs
similarity index 100%
rename from static/templates/stream_settings/new_stream_user.hbs
rename to web/templates/stream_settings/new_stream_user.hbs
diff --git a/static/templates/stream_settings/new_stream_users.hbs b/web/templates/stream_settings/new_stream_users.hbs
similarity index 100%
rename from static/templates/stream_settings/new_stream_users.hbs
rename to web/templates/stream_settings/new_stream_users.hbs
diff --git a/static/templates/stream_settings/selected_stream_title.hbs b/web/templates/stream_settings/selected_stream_title.hbs
similarity index 100%
rename from static/templates/stream_settings/selected_stream_title.hbs
rename to web/templates/stream_settings/selected_stream_title.hbs
diff --git a/static/templates/stream_settings/stream_creation_form.hbs b/web/templates/stream_settings/stream_creation_form.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_creation_form.hbs
rename to web/templates/stream_settings/stream_creation_form.hbs
diff --git a/static/templates/stream_settings/stream_description.hbs b/web/templates/stream_settings/stream_description.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_description.hbs
rename to web/templates/stream_settings/stream_description.hbs
diff --git a/static/templates/stream_settings/stream_member_list_entry.hbs b/web/templates/stream_settings/stream_member_list_entry.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_member_list_entry.hbs
rename to web/templates/stream_settings/stream_member_list_entry.hbs
diff --git a/static/templates/stream_settings/stream_members.hbs b/web/templates/stream_settings/stream_members.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_members.hbs
rename to web/templates/stream_settings/stream_members.hbs
diff --git a/static/templates/stream_settings/stream_privacy_icon.hbs b/web/templates/stream_settings/stream_privacy_icon.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_privacy_icon.hbs
rename to web/templates/stream_settings/stream_privacy_icon.hbs
diff --git a/static/templates/stream_settings/stream_settings.hbs b/web/templates/stream_settings/stream_settings.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_settings.hbs
rename to web/templates/stream_settings/stream_settings.hbs
diff --git a/static/templates/stream_settings/stream_settings_checkbox.hbs b/web/templates/stream_settings/stream_settings_checkbox.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_settings_checkbox.hbs
rename to web/templates/stream_settings/stream_settings_checkbox.hbs
diff --git a/static/templates/stream_settings/stream_settings_overlay.hbs b/web/templates/stream_settings/stream_settings_overlay.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_settings_overlay.hbs
rename to web/templates/stream_settings/stream_settings_overlay.hbs
diff --git a/static/templates/stream_settings/stream_settings_tip.hbs b/web/templates/stream_settings/stream_settings_tip.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_settings_tip.hbs
rename to web/templates/stream_settings/stream_settings_tip.hbs
diff --git a/static/templates/stream_settings/stream_subscription_request_result.hbs b/web/templates/stream_settings/stream_subscription_request_result.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_subscription_request_result.hbs
rename to web/templates/stream_settings/stream_subscription_request_result.hbs
diff --git a/static/templates/stream_settings/stream_types.hbs b/web/templates/stream_settings/stream_types.hbs
similarity index 100%
rename from static/templates/stream_settings/stream_types.hbs
rename to web/templates/stream_settings/stream_types.hbs
diff --git a/static/templates/stream_settings/subscriber_count.hbs b/web/templates/stream_settings/subscriber_count.hbs
similarity index 100%
rename from static/templates/stream_settings/subscriber_count.hbs
rename to web/templates/stream_settings/subscriber_count.hbs
diff --git a/static/templates/stream_settings/subscription_setting_icon.hbs b/web/templates/stream_settings/subscription_setting_icon.hbs
similarity index 100%
rename from static/templates/stream_settings/subscription_setting_icon.hbs
rename to web/templates/stream_settings/subscription_setting_icon.hbs
diff --git a/static/templates/stream_sidebar_actions.hbs b/web/templates/stream_sidebar_actions.hbs
similarity index 100%
rename from static/templates/stream_sidebar_actions.hbs
rename to web/templates/stream_sidebar_actions.hbs
diff --git a/static/templates/stream_sidebar_row.hbs b/web/templates/stream_sidebar_row.hbs
similarity index 100%
rename from static/templates/stream_sidebar_row.hbs
rename to web/templates/stream_sidebar_row.hbs
diff --git a/static/templates/stream_topic_widget.hbs b/web/templates/stream_topic_widget.hbs
similarity index 100%
rename from static/templates/stream_topic_widget.hbs
rename to web/templates/stream_topic_widget.hbs
diff --git a/static/templates/streams_subheader.hbs b/web/templates/streams_subheader.hbs
similarity index 100%
rename from static/templates/streams_subheader.hbs
rename to web/templates/streams_subheader.hbs
diff --git a/static/templates/subscribe_to_more_streams.hbs b/web/templates/subscribe_to_more_streams.hbs
similarity index 100%
rename from static/templates/subscribe_to_more_streams.hbs
rename to web/templates/subscribe_to_more_streams.hbs
diff --git a/static/templates/topic_edit_form.hbs b/web/templates/topic_edit_form.hbs
similarity index 100%
rename from static/templates/topic_edit_form.hbs
rename to web/templates/topic_edit_form.hbs
diff --git a/static/templates/topic_list_item.hbs b/web/templates/topic_list_item.hbs
similarity index 100%
rename from static/templates/topic_list_item.hbs
rename to web/templates/topic_list_item.hbs
diff --git a/static/templates/topic_muted.hbs b/web/templates/topic_muted.hbs
similarity index 100%
rename from static/templates/topic_muted.hbs
rename to web/templates/topic_muted.hbs
diff --git a/static/templates/topic_sidebar_actions.hbs b/web/templates/topic_sidebar_actions.hbs
similarity index 100%
rename from static/templates/topic_sidebar_actions.hbs
rename to web/templates/topic_sidebar_actions.hbs
diff --git a/static/templates/typeahead_list_item.hbs b/web/templates/typeahead_list_item.hbs
similarity index 100%
rename from static/templates/typeahead_list_item.hbs
rename to web/templates/typeahead_list_item.hbs
diff --git a/static/templates/typing_notification.hbs b/web/templates/typing_notification.hbs
similarity index 100%
rename from static/templates/typing_notification.hbs
rename to web/templates/typing_notification.hbs
diff --git a/static/templates/typing_notifications.hbs b/web/templates/typing_notifications.hbs
similarity index 100%
rename from static/templates/typing_notifications.hbs
rename to web/templates/typing_notifications.hbs
diff --git a/static/templates/user_custom_profile_fields.hbs b/web/templates/user_custom_profile_fields.hbs
similarity index 100%
rename from static/templates/user_custom_profile_fields.hbs
rename to web/templates/user_custom_profile_fields.hbs
diff --git a/static/templates/user_group_info_popover.hbs b/web/templates/user_group_info_popover.hbs
similarity index 100%
rename from static/templates/user_group_info_popover.hbs
rename to web/templates/user_group_info_popover.hbs
diff --git a/static/templates/user_group_info_popover_content.hbs b/web/templates/user_group_info_popover_content.hbs
similarity index 100%
rename from static/templates/user_group_info_popover_content.hbs
rename to web/templates/user_group_info_popover_content.hbs
diff --git a/static/templates/user_group_list_item.hbs b/web/templates/user_group_list_item.hbs
similarity index 100%
rename from static/templates/user_group_list_item.hbs
rename to web/templates/user_group_list_item.hbs
diff --git a/static/templates/user_group_settings/browse_user_groups_list_item.hbs b/web/templates/user_group_settings/browse_user_groups_list_item.hbs
similarity index 100%
rename from static/templates/user_group_settings/browse_user_groups_list_item.hbs
rename to web/templates/user_group_settings/browse_user_groups_list_item.hbs
diff --git a/static/templates/user_group_settings/change_user_group_info_modal.hbs b/web/templates/user_group_settings/change_user_group_info_modal.hbs
similarity index 100%
rename from static/templates/user_group_settings/change_user_group_info_modal.hbs
rename to web/templates/user_group_settings/change_user_group_info_modal.hbs
diff --git a/static/templates/user_group_settings/new_user_group_users.hbs b/web/templates/user_group_settings/new_user_group_users.hbs
similarity index 100%
rename from static/templates/user_group_settings/new_user_group_users.hbs
rename to web/templates/user_group_settings/new_user_group_users.hbs
diff --git a/static/templates/user_group_settings/user_group_creation_form.hbs b/web/templates/user_group_settings/user_group_creation_form.hbs
similarity index 100%
rename from static/templates/user_group_settings/user_group_creation_form.hbs
rename to web/templates/user_group_settings/user_group_creation_form.hbs
diff --git a/static/templates/user_group_settings/user_group_members.hbs b/web/templates/user_group_settings/user_group_members.hbs
similarity index 100%
rename from static/templates/user_group_settings/user_group_members.hbs
rename to web/templates/user_group_settings/user_group_members.hbs
diff --git a/static/templates/user_group_settings/user_group_settings.hbs b/web/templates/user_group_settings/user_group_settings.hbs
similarity index 100%
rename from static/templates/user_group_settings/user_group_settings.hbs
rename to web/templates/user_group_settings/user_group_settings.hbs
diff --git a/static/templates/user_group_settings/user_group_settings_overlay.hbs b/web/templates/user_group_settings/user_group_settings_overlay.hbs
similarity index 100%
rename from static/templates/user_group_settings/user_group_settings_overlay.hbs
rename to web/templates/user_group_settings/user_group_settings_overlay.hbs
diff --git a/static/templates/user_info_popover_content.hbs b/web/templates/user_info_popover_content.hbs
similarity index 100%
rename from static/templates/user_info_popover_content.hbs
rename to web/templates/user_info_popover_content.hbs
diff --git a/static/templates/user_info_popover_manage_menu.hbs b/web/templates/user_info_popover_manage_menu.hbs
similarity index 100%
rename from static/templates/user_info_popover_manage_menu.hbs
rename to web/templates/user_info_popover_manage_menu.hbs
diff --git a/static/templates/user_info_popover_title.hbs b/web/templates/user_info_popover_title.hbs
similarity index 100%
rename from static/templates/user_info_popover_title.hbs
rename to web/templates/user_info_popover_title.hbs
diff --git a/static/templates/user_profile_modal.hbs b/web/templates/user_profile_modal.hbs
similarity index 100%
rename from static/templates/user_profile_modal.hbs
rename to web/templates/user_profile_modal.hbs
diff --git a/static/templates/user_stream_list_item.hbs b/web/templates/user_stream_list_item.hbs
similarity index 100%
rename from static/templates/user_stream_list_item.hbs
rename to web/templates/user_stream_list_item.hbs
diff --git a/static/templates/user_with_status_icon.hbs b/web/templates/user_with_status_icon.hbs
similarity index 100%
rename from static/templates/user_with_status_icon.hbs
rename to web/templates/user_with_status_icon.hbs
diff --git a/static/templates/view_code_in_playground.hbs b/web/templates/view_code_in_playground.hbs
similarity index 100%
rename from static/templates/view_code_in_playground.hbs
rename to web/templates/view_code_in_playground.hbs
diff --git a/static/templates/widgets/poll_widget.hbs b/web/templates/widgets/poll_widget.hbs
similarity index 100%
rename from static/templates/widgets/poll_widget.hbs
rename to web/templates/widgets/poll_widget.hbs
diff --git a/static/templates/widgets/poll_widget_results.hbs b/web/templates/widgets/poll_widget_results.hbs
similarity index 100%
rename from static/templates/widgets/poll_widget_results.hbs
rename to web/templates/widgets/poll_widget_results.hbs
diff --git a/static/templates/widgets/todo_widget.hbs b/web/templates/widgets/todo_widget.hbs
similarity index 100%
rename from static/templates/widgets/todo_widget.hbs
rename to web/templates/widgets/todo_widget.hbs
diff --git a/static/templates/widgets/todo_widget_tasks.hbs b/web/templates/widgets/todo_widget_tasks.hbs
similarity index 100%
rename from static/templates/widgets/todo_widget_tasks.hbs
rename to web/templates/widgets/todo_widget_tasks.hbs
diff --git a/static/templates/widgets/zform_choices.hbs b/web/templates/widgets/zform_choices.hbs
similarity index 100%
rename from static/templates/widgets/zform_choices.hbs
rename to web/templates/widgets/zform_choices.hbs
diff --git a/static/third/bootstrap-tooltip/tooltip.css b/web/third/bootstrap-tooltip/tooltip.css
similarity index 100%
rename from static/third/bootstrap-tooltip/tooltip.css
rename to web/third/bootstrap-tooltip/tooltip.css
diff --git a/static/third/bootstrap-tooltip/tooltip.js b/web/third/bootstrap-tooltip/tooltip.js
similarity index 100%
rename from static/third/bootstrap-tooltip/tooltip.js
rename to web/third/bootstrap-tooltip/tooltip.js
diff --git a/static/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.js
similarity index 99%
rename from static/third/bootstrap-typeahead/typeahead.js
rename to web/third/bootstrap-typeahead/typeahead.js
index 40b6a3bf46f..7317197c5f5 100644
--- a/static/third/bootstrap-typeahead/typeahead.js
+++ b/web/third/bootstrap-typeahead/typeahead.js
@@ -101,7 +101,7 @@
* ============================================================ */
import {insert} from "text-field-edit";
-import {get_string_diff} from "../../js/util";
+import {get_string_diff} from "../../src/util";
!function($){
diff --git a/static/third/bootstrap/css/bootstrap-btn.css b/web/third/bootstrap/css/bootstrap-btn.css
similarity index 100%
rename from static/third/bootstrap/css/bootstrap-btn.css
rename to web/third/bootstrap/css/bootstrap-btn.css
diff --git a/static/third/bootstrap/css/bootstrap.css b/web/third/bootstrap/css/bootstrap.css
similarity index 100%
rename from static/third/bootstrap/css/bootstrap.css
rename to web/third/bootstrap/css/bootstrap.css
diff --git a/static/third/bootstrap/js/bootstrap.js b/web/third/bootstrap/js/bootstrap.js
similarity index 100%
rename from static/third/bootstrap/js/bootstrap.js
rename to web/third/bootstrap/js/bootstrap.js
diff --git a/static/third/jquery-idle/jquery.idle.js b/web/third/jquery-idle/jquery.idle.js
similarity index 100%
rename from static/third/jquery-idle/jquery.idle.js
rename to web/third/jquery-idle/jquery.idle.js
diff --git a/static/third/marked/LICENSE b/web/third/marked/LICENSE
similarity index 100%
rename from static/third/marked/LICENSE
rename to web/third/marked/LICENSE
diff --git a/static/third/marked/README.md b/web/third/marked/README.md
similarity index 100%
rename from static/third/marked/README.md
rename to web/third/marked/README.md
diff --git a/static/third/marked/VERSION b/web/third/marked/VERSION
similarity index 100%
rename from static/third/marked/VERSION
rename to web/third/marked/VERSION
diff --git a/static/third/marked/lib/marked.js b/web/third/marked/lib/marked.js
similarity index 100%
rename from static/third/marked/lib/marked.js
rename to web/third/marked/lib/marked.js
diff --git a/web/webpack.assets.json b/web/webpack.assets.json
new file mode 100644
index 00000000000..0f707224561
--- /dev/null
+++ b/web/webpack.assets.json
@@ -0,0 +1,89 @@
+{
+ "activity": [
+ "./web/src/bundles/common",
+ "sorttable",
+ "./web/src/analytics/activity",
+ "./web/styles/portico/activity.css"
+ ],
+ "billing": [
+ "./web/src/bundles/portico",
+ "./web/src/portico/landing-page",
+ "./web/styles/portico/landing_page.css",
+ "./web/src/billing/helpers",
+ "./web/src/billing/billing",
+ "./web/src/templates",
+ "./web/src/loading",
+ "./web/styles/portico/billing.css"
+ ],
+ "upgrade": [
+ "./web/src/bundles/portico",
+ "./web/src/portico/tippyjs",
+ "./web/src/portico/landing-page",
+ "./web/styles/portico/landing_page.css",
+ "./web/src/billing/helpers",
+ "./web/src/billing/upgrade",
+ "./web/src/templates",
+ "./web/src/loading",
+ "./web/styles/portico/billing.css"
+ ],
+ "billing-event-status": [
+ "./web/src/bundles/portico",
+ "./web/styles/portico/landing_page.css",
+ "./web/src/billing/event_status.js",
+ "./web/src/billing/helpers",
+ "./web/styles/portico/billing.css"
+ ],
+ "portico": ["./web/src/bundles/portico"],
+ "error-styles": [
+ "./web/third/bootstrap/css/bootstrap.css",
+ "./web/styles/portico/portico_styles.css"
+ ],
+ "common": ["./web/src/bundles/common"],
+ "help": [
+ "./web/src/bundles/portico",
+ "simplebar/dist/simplebar.css",
+ "simplebar",
+ "./web/src/portico/help",
+ "./web/src/portico/tabbed-instructions"
+ ],
+ "landing-page": [
+ "./web/src/bundles/portico",
+ "./web/src/portico/landing-page",
+ "./web/styles/portico/landing_page.css"
+ ],
+ "integrations": [
+ "./web/src/bundles/portico",
+ "./web/src/portico/integrations",
+ "./web/styles/portico/landing_page.css",
+ "./web/styles/portico/integrations.css"
+ ],
+ "communities": [
+ "./web/src/bundles/portico",
+ "./web/src/portico/communities",
+ "./web/styles/portico/landing_page.css",
+ "./web/styles/portico/integrations.css"
+ ],
+ "signup": ["./web/src/bundles/portico", "jquery-validation", "./web/src/portico/signup"],
+ "register": ["./web/src/bundles/portico", "jquery-validation", "./web/src/portico/signup"],
+ "confirm-preregistrationuser": [
+ "./web/src/bundles/common",
+ "./web/src/portico/confirm-preregistrationuser"
+ ],
+ "support": [
+ "./web/src/bundles/common",
+ "sorttable",
+ "./web/src/analytics/activity",
+ "./web/styles/portico/activity.css",
+ "./web/src/analytics/support"
+ ],
+ "desktop-login": ["./web/src/bundles/portico", "./web/src/portico/desktop-login"],
+ "desktop-redirect": ["./web/src/bundles/portico", "./web/src/portico/desktop-redirect"],
+ "stats": [
+ "./web/src/bundles/portico",
+ "./web/styles/portico/stats.css",
+ "./web/src/stats/stats",
+ "tippy.js/dist/tippy.css"
+ ],
+ "app": ["./web/src/bundles/app"],
+ "digest": ["./web/src/bundles/portico"]
+}
diff --git a/web/webpack.dev-assets.json b/web/webpack.dev-assets.json
new file mode 100644
index 00000000000..c5d69615bab
--- /dev/null
+++ b/web/webpack.dev-assets.json
@@ -0,0 +1,17 @@
+{
+ "dev-login": ["./web/src/bundles/portico", "./web/src/portico/dev-login"],
+ "dev-integrations-panel": [
+ "./web/src/bundles/portico",
+ "./web/src/portico/integrations_dev_panel",
+ "./web/styles/portico/integrations_dev_panel.css",
+ "./web/src/reload_state",
+ "./web/src/channel"
+ ],
+ "dev-email-log": [
+ "./web/src/bundles/common",
+ "./web/src/portico/email_log",
+ "./web/styles/portico/email_log.css",
+ "./web/src/reload_state",
+ "./web/src/channel"
+ ]
+}
diff --git a/webpack.config.ts b/webpack.config.ts
index f1c7cec6352..06fcad3bfb9 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -8,9 +8,9 @@ import MiniCssExtractPlugin from "mini-css-extract-plugin";
import type webpack from "webpack";
import BundleTracker from "webpack-bundle-tracker";
-import DebugRequirePlugin from "./tools/debug-require-webpack-plugin";
-import assets from "./tools/webpack.assets.json";
-import dev_assets from "./tools/webpack.dev-assets.json";
+import DebugRequirePlugin from "./web/debug-require-webpack-plugin";
+import assets from "./web/webpack.assets.json";
+import dev_assets from "./web/webpack.dev-assets.json";
export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack.Configuration[] => {
const production: boolean = argv.mode === "production";
@@ -37,18 +37,18 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack.
: Object.fromEntries(
Object.entries({...assets, ...dev_assets}).map(([name, paths]) => [
name,
- [...paths, "./static/js/debug"],
+ [...paths, "./web/src/debug"],
]),
),
module: {
rules: [
{
- test: require.resolve("./static/js/zulip_test"),
+ test: require.resolve("./web/src/zulip_test"),
loader: "expose-loader",
options: {exposes: "zulip_test"},
},
{
- test: require.resolve("./tools/debug-require"),
+ test: require.resolve("./web/debug-require"),
loader: "expose-loader",
options: {exposes: "require"},
},
@@ -83,15 +83,15 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack.
{
test: /\.(js|ts)$/,
include: [
- path.resolve(__dirname, "static/shared/js"),
- path.resolve(__dirname, "static/js"),
+ path.resolve(__dirname, "web/shared/src"),
+ path.resolve(__dirname, "web/src"),
],
loader: "babel-loader",
},
// regular css files
{
test: /\.css$/,
- exclude: path.resolve(__dirname, "static/styles"),
+ exclude: path.resolve(__dirname, "web/styles"),
use: [
MiniCssExtractPlugin.loader,
{
@@ -105,7 +105,7 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack.
// PostCSS loader
{
test: /\.css$/,
- include: path.resolve(__dirname, "static/styles"),
+ include: path.resolve(__dirname, "web/styles"),
use: [
MiniCssExtractPlugin.loader,
{
@@ -134,7 +134,7 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack.
"unless",
"each",
"with",
- // The ones below are defined in static/js/templates.js
+ // The ones below are defined in web/src/templates.js
"plural",
"eq",
"and",
@@ -149,7 +149,7 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack.
// This replaces relative image resources with
// a computed require() path to them, so their
// webpack-hashed URLs are used.
- inlineRequires: /^(\.\.\/)+(images|generated\/emoji\/images)\//,
+ inlineRequires: /^(\.\.\/)+(images|static)\//,
},
},
// load fonts and files
@@ -207,7 +207,7 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack.
}),
new HtmlWebpackPlugin({
filename: "5xx.html",
- template: "static/html/5xx.html",
+ template: "web/html/5xx.html",
chunks: ["error-styles"],
}),
],
diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.py
index 93288b32192..27eb6c9254e 100644
--- a/zerver/lib/markdown/__init__.py
+++ b/zerver/lib/markdown/__init__.py
@@ -2445,7 +2445,7 @@ def topic_links(linkifiers_key: int, topic_name: str) -> List[Dict[str, str]]:
)
# The following removes overlapping intervals depending on the precedence of linkifier patterns.
- # This uses the same algorithm implemented in static/js/markdown.js.
+ # This uses the same algorithm implemented in web/src/markdown.js.
# To avoid mutating matches inside the loop, the final output gets appended to another list.
applied_matches: List[TopicLinkMatch] = []
for current_match in matches:
diff --git a/zerver/lib/narrow.py b/zerver/lib/narrow.py
index f4ad681e459..e5c419c9faf 100644
--- a/zerver/lib/narrow.py
+++ b/zerver/lib/narrow.py
@@ -107,7 +107,7 @@ def check_supported_events_narrow_filter(narrow: Iterable[Sequence[str]]) -> Non
def is_spectator_compatible(narrow: Iterable[Dict[str, Any]]) -> bool:
- # This implementation should agree with the similar function in static/js/hash_util.js.
+ # This implementation should agree with the similar function in web/src/hash_util.js.
for element in narrow:
operator = element["operator"]
if "operand" not in element:
@@ -668,7 +668,7 @@ def narrow_parameter(var_name: str, json: str) -> OptionalNarrowListT:
if isinstance(elem, dict):
# Make sure to sync this list to frontend also when adding a new operator.
- # that supports user IDs. Relevant code is located in static/js/message_fetch.js
+ # that supports user IDs. Relevant code is located in web/src/message_fetch.js
# in handle_operators_supporting_id_based_api function where you will need to update
# operators_supporting_id, or operators_supporting_ids array.
operators_supporting_id = ["sender", "group-pm-with", "stream"]
diff --git a/zerver/lib/templates.py b/zerver/lib/templates.py
index 5028770b3b2..ed3b53daf69 100644
--- a/zerver/lib/templates.py
+++ b/zerver/lib/templates.py
@@ -209,7 +209,7 @@ def webpack_entry(entrypoint: str) -> List[str]:
]
except KeyError:
raise KeyError(
- f"'{entrypoint}' entrypoint could not be found. Please define it in tools/webpack.assets.json."
+ f"'{entrypoint}' entrypoint could not be found. Please define it in web/webpack.assets.json."
)
return files_from_entrypoints
diff --git a/zerver/management/commands/makemessages.py b/zerver/management/commands/makemessages.py
index 073eed94de6..05756776ee8 100644
--- a/zerver/management/commands/makemessages.py
+++ b/zerver/management/commands/makemessages.py
@@ -83,7 +83,7 @@ class Command(makemessages.Command):
super().add_arguments(parser)
parser.add_argument(
"--frontend-source",
- default="static/templates",
+ default="web/templates",
help="Name of the Handlebars template directory",
)
parser.add_argument(
@@ -190,7 +190,7 @@ class Command(makemessages.Command):
data = reader.read()
translation_strings.extend(self.extract_strings(data))
for dirpath, dirnames, filenames in itertools.chain(
- os.walk("static/js"), os.walk("static/shared/js")
+ os.walk("web/src"), os.walk("web/shared/src")
):
for filename in [f for f in filenames if f.endswith((".js", ".ts"))]:
if filename.startswith("."):
@@ -207,8 +207,8 @@ class Command(makemessages.Command):
"--additional-function-names=$t,$t_html",
"--format=simple",
"--ignore=**/*.d.ts",
- "static/js/**/*.js",
- "static/js/**/*.ts",
+ "web/src/**/*.js",
+ "web/src/**/*.ts",
]
)
translation_strings.extend(json.loads(extracted).values())
diff --git a/zerver/models.py b/zerver/models.py
index 3e9a344f3d8..7af33820f3a 100644
--- a/zerver/models.py
+++ b/zerver/models.py
@@ -607,7 +607,7 @@ class Realm(models.Model): # type: ignore[django-manager-missing] # django-stub
PLAN_TYPE_PLUS = 10
plan_type = models.PositiveSmallIntegerField(default=PLAN_TYPE_SELF_HOSTED)
- # This value is also being used in static/js/settings_bots.bot_creation_policy_values.
+ # This value is also being used in web/src/settings_bots.bot_creation_policy_values.
# On updating it here, update it there as well.
BOT_CREATION_EVERYONE = 1
BOT_CREATION_LIMIT_GENERIC_BOTS = 2
@@ -1723,7 +1723,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin, UserBaseSettings): # type
since they can't be used to read messages.
"""
INCOMING_WEBHOOK_BOT = 2
- # This value is also being used in static/js/settings_bots.js.
+ # This value is also being used in web/src/settings_bots.js.
# On updating it here, update it there as well.
OUTGOING_WEBHOOK_BOT = 3
"""