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/.eslintignoreindex 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-venvdiff --git a/.eslintrc.json b/.eslintrc.jsonindex 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.ymlindex 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.pydiff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.ymlindex 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 testsif: ${{ matrix.include_documentation_tests }}diff --git a/.prettierignore b/.prettierignoreindex 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/*/fixturesdiff --git a/docs/THIRDPARTY b/docs/THIRDPARTYindex 919a0163025..b12735c21a8 100644--- a/docs/THIRDPARTY+++ b/docs/THIRDPARTY@@ -51,25 +51,25 @@ Files: static/audio/notification_sounds/zulip.*Copyright: 2011 VidsynLicense: CC0-1.0-Files: static/third/bootstrap/css/bootstrap-btn.css+Files: web/third/bootstrap/css/bootstrap-btn.cssCopyright: 2011-2014 Twitter, IncLicense: Expat-Files: static/third/bootstrap/css/bootstrap.css+Files: web/third/bootstrap/css/bootstrap.cssCopyright: 2012 Twitter, IncLicense: Apache-2.0Comment: The software has been modified.-Files: static/third/bootstrap/js/bootstrap.js+Files: web/third/bootstrap/js/bootstrap.jsCopyright: 2012 Twitter, IncLicense: Apache-2.0-Files: static/third/bootstrap-typeahead/*+Files: web/third/bootstrap-typeahead/*Copyright: 2012 Twitter, IncLicense: Apache-2.0Comment: Bootstrap typeahead. The software has been modified.-Files: static/third/bootstrap-tooltip/*+Files: web/third/bootstrap-tooltip/*Copyright: 2012 Twitter, IncLicense: Apache-2.0Comment: 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.jsCopyright: 2011-2013 Henrique BoaventuraLicense: ExpatComment: The software has been modified.-Files: static/third/marked/*+Files: web/third/marked/*Copyright: 2011-2013, Christopher JeffreyLicense: Expat-Files: static/shared/icons/ellipsis-v-solid.svg+Files: web/shared/icons/ellipsis-v-solid.svgCopyright: 2017 Fonticons, Inc.License: CC-BY-4.0Comment: This icon is picked from Version 5.13.0 of Font Awesome@@ -109,7 +109,7 @@ Files: static/audio/notification_sounds/*Copyright: 2021 Stefan MertensLicense: CC0-1.0-Files: static/shared/icons/globe.svg+Files: web/shared/icons/globe.svgSource: 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-thirdpartyCopyright: 2020 Kandra Labs, Inc.License: GPL-2.0+-Files: static/shared/icons/mute.svg+Files: web/shared/icons/mute.svgSource: https://fonts.google.com/icons?selected=Material+Symbols+Rounded:volume_muteCopyright: Google, Inc.License: Apache-2.0diff --git a/docs/contributing/code-style.md b/docs/contributing/code-style.mdindex 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 thingsyou can use jQuery DOM building APIs like so:```jsdiff --git a/docs/development/using.md b/docs/development/using.mdindex 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 viawebpack 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 bereloaded automatically.- For Jinja2 backend templates (`templates/*`), you'll need to reloadthe browser window to see your changes.diff --git a/docs/documentation/helpcenter.md b/docs/documentation/helpcenter.mdindex 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 willautomatically translate non-Mac keys to the Mac versions for users with a Macuser agent. If you want to confirm that your documentation is rendering Mac keyscorrectly 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.mdindex 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.mdindex 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/) templatesfor 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 compiledinto an icon font.---diff --git a/docs/subsystems/analytics.md b/docs/subsystems/analytics.mdindex 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 theraw 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 theprocess 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 todiff --git a/docs/subsystems/dependencies.md b/docs/subsystems/dependencies.mdindex 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 fewJavaScript 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 datefrom an era before `npm` existed. It is a project goal to eliminatethese checked-in versions of dependencies and instead use versionsmanaged by the npm repositories.@@ -317,7 +317,7 @@ implementation of that tool.The list of languages supported by our Markdown syntax highlightingcomes 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 thatour JavaScript Markdown processor has access to the supported list.## Modifying provisioningdiff --git a/docs/subsystems/hashchange-system.md b/docs/subsystems/hashchange-system.mdindex 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 parsingcode), which is unfortunately one of our thorniest modules. Part ofthe reason that it's thorny is that it needs to support a lot ofdifferent 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 complexitythat 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 browserhistory, 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 isidle (ideally, we'd reload when they're not looking and restorestate 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 reloadwithin 30 minutes unconditionally.An important detail in server-initiated reloads is that wediff --git a/docs/subsystems/hotspots.md b/docs/subsystems/hotspots.mdindex c19b97bdd04..f8a8383fcad 100644--- a/docs/subsystems/hotspots.md+++ b/docs/subsystems/hotspots.md@@ -30,7 +30,7 @@ ALL_HOTSPOTS = {### Step 2: Configure hotspot placementThe 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 tothe width and height of the target element_.@@ -67,7 +67,7 @@ content and behind sidebars and overlays. If a hotspot is associated witha target element on a sidebar or overlay, the icon's z-index may need tobe 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.mdindex 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 itsmain third-party CSS library.Zulip uses PostCSS for its CSS files. There are two high-level sectionsof 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 fromJavaScript 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/`) andsometimes work directly from JavaScript code (though as a policymatter, we try to avoid generating HTML directly in JavaScriptwherever 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. Stylesheetsare written in CSS extended by various PostCSS plugins; they areconverted from plain CSS, and we have yet to take full advantage ofthe features PostCSS offers. We use Webpack to transpile and build JSand 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 aregenerated 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 templatesby 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 recentversion 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 ormodifying a third-party package. Our goal is to the extent possibleto 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 intocustom 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, itneeds 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 loginpage 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 alllogged-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 ina 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 bothproduction 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 toinject the compiled JS and CSS.@@ -267,11 +267,11 @@ TypeScript also uses the ES6 module system. See our documentation onWebpack does not ordinarily allow modules to be accessed directly fromthe 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 exposesa version of the `require()` function to the development environmentbrowser 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** astable API and should not be used for any purpose other thaninteractive debugging.diff --git a/docs/subsystems/input-pills.md b/docs/subsystems/input-pills.mdindex 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 abovemethods are implemented. Essentially you just need to convertfrom raw data (like an email) to structured data (like an objectwith display_value, email, and user_id for a user), and vicediff --git a/docs/subsystems/logging.md b/docs/subsystems/logging.mdindex 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 visibleoverlay over the message view area, to make exceptions in testing anew 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 methodsfor 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 thatone can see cases where exceptions chained together. You can printthis 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 howeffective 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 toa new view:diff --git a/docs/subsystems/markdown.md b/docs/subsystems/markdown.mdindex b56ce893f7c..2b69522d96d 100644--- a/docs/subsystems/markdown.md+++ b/docs/subsystems/markdown.md@@ -17,7 +17,7 @@ authoritatively render messages to HTML (and implementsslow/expensive/complex features like querying the Twitter API torender 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 echomessages the moment the sender hits Enter, without waiting for roundtrip from the server. Those frontend renderings are only shown to thesender 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 severalplaces:- 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` ifyour 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.mdindex 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 implementedclient-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 thatwere spliced into `message` events by the Tornado system, as well asthe user's notification settings.- The queue processors for those queues make the final determinationdiff --git a/docs/subsystems/presence.md b/docs/subsystems/presence.mdindex 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 userpreference](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` isuseful sample code; the `OFFLINE_THRESHOLD_SECS` check is criticalto correct output.- We provide the data for e.g. whether the user was online on theirdiff --git a/docs/subsystems/sending-messages.md b/docs/subsystems/sending-messages.mdindex 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) andrerenders it in any message lists where it appears. This isprimarily done in the `process_from_server` function in- `static/js/echo.js`.+ `web/src/echo.js`.### Local echo in message editingdiff --git a/docs/subsystems/slash-commands.md b/docs/subsystems/slash-commands.mdindex 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.## TypeaheadTypeahead 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.mdindex 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 theuser is still typing. (Zulip messages tend to be longer thanmessages 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` thatmakes sure subsequent "start" requests get sent out every tenseconds. (This document is intended to describe the high levelarchitecture; 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 appas 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 todisplay 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 functionslike the following:- `add_typist`diff --git a/docs/subsystems/widgets.md b/docs/subsystems/widgets.mdindex 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` functionis called. This is just a `<div>` inside of the parentmessage in the message pane. The widget has access tojQuery 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 thatwriting a new widget requires only minor backendchanges in the current architecture. This could changein 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 morecustomized widget like **poll**. (In fact, **zform** is asibling 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 seewhere 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 (notshown here) and then sets up a click handler like below:```jsdiff --git a/docs/testing/linters.md b/docs/testing/linters.mdindex 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 itsdiff --git a/docs/testing/testing-with-node.md b/docs/testing/testing-with-node.mdindex 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 shouldsee if there are corresponding test in `frontend_tests/node_tests`. Ifthere are, you should strive to follow the patterns of the existing testsand add your own tests.@@ -120,7 +120,7 @@ For modules that you want to completely stub out, use a pattern likethis:```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.mdindex 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 thesimple 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 avoidexposing HTML details to translators. If you need to include morecomplex markup such as a link, you can define a custom HTML taglocally to the translation:diff --git a/docs/tutorials/new-feature-tutorial.md b/docs/tutorials/new-feature-tutorial.mdindex 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`: definesthe structure of the admin permissions page (checkboxes for each organizationpermission 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 updatingthe 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 changedepend 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 newfeature requires UI changes, you may need to add additional CSS to thisfile.**Templates:** The initial page structure is rendered via Jinja2templates located in `templates/zerver/app`. For JavaScript, Zulip uses-Handlebars templates located in `static/templates`. Templates are+Handlebars templates located in `web/templates`. Templates areprecompiled 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 behandled 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 typeof the field via the `data-setting-widget-type` attribute in the HTMLtemplate.-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.jsexport 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.jsfunction dispatch_normal_event(event) {switch (event.type) {diff --git a/docs/tutorials/writing-views.md b/docs/tutorials/writing-views.mdindex 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>` callto 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)```jsvar url = "/json/realm";diff --git a/frontend_tests/node_tests/activity.js b/frontend_tests/node_tests/activity.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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 fileassert.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 fileassert.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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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 thingsset_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/testingdiff --git a/frontend_tests/node_tests/compose_pm_pill.js b/frontend_tests/node_tests/compose_pm_pill.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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_templconst 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.jsindex 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.jsindex 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.jsindex 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 = {email: "[email protected]",diff --git a/frontend_tests/node_tests/hashchange.js b/frontend_tests/node_tests/hashchange.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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 thediff --git a/frontend_tests/node_tests/markdown.js b/frontend_tests/node_tests/markdown.jsindex 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.jsindex 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 messagediff --git a/frontend_tests/node_tests/message_events.js b/frontend_tests/node_tests/message_events.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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 pointerset_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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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", "utf8const 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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-realisticdiff --git a/frontend_tests/node_tests/upgrade.js b/frontend_tests/node_tests/upgrade.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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.jsindex 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 extensionsasync 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.jsindex 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.jsindex 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.pyindex 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/.gitignoreindex 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-datadiff --git a/static/assets/README b/static/assets/READMEdeleted file mode 100644index 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-templatesindex 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-cssindex 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 ]; thenecho "$n"fidonediff --git a/tools/lib/provision_inner.py b/tools/lib/provision_inner.pyindex 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 Truereturn 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 Truereturn is_digest_obsolete(diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex 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.pyindex 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 checkingEXCLUDED_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.txtindex 2e5de1413b7..cda0ccbf546 100644--- a/tools/release-tarball-exclude.txt+++ b/tools/release-tarball-exclude.txt@@ -1,8 +1,8 @@.gitignore.gitattributes-static/assetscorporate/static/+web/tools/zilencer/templates/corporatediff --git a/tools/setup/build_pygments_data b/tools/setup/build_pygments_dataindex 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_lexersZULIP_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_valuesindex 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_emojiindex 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]]) -> Noneensure_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-nodeindex 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-staticindex 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/webpackindex 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.jsondeleted file mode 100644index 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.jsondeleted file mode 100644index 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.jsonindex 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.pyindex 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/.gitignorenew file mode 100644index 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.jsondiff --git a/tools/debug-require-webpack-plugin.ts b/web/debug-require-webpack-plugin.tssimilarity index 100%rename from tools/debug-require-webpack-plugin.tsrename to web/debug-require-webpack-plugin.tsdiff --git a/tools/debug-require.js b/web/debug-require.jssimilarity index 100%rename from tools/debug-require.jsrename to web/debug-require.jsdiff --git a/web/generated/README.md b/web/generated/README.mdnew file mode 100644index 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.htmlsimilarity index 100%rename from static/html/5xx.htmlrename to web/html/5xx.htmldiff --git a/static/images/app-screenshots/android.svg b/web/images/app-screenshots/android.svgsimilarity index 100%rename from static/images/app-screenshots/android.svgrename to web/images/app-screenshots/android.svgdiff --git a/static/images/app-screenshots/iphoneX.svg b/web/images/app-screenshots/iphoneX.svgsimilarity index 100%rename from static/images/app-screenshots/iphoneX.svgrename to web/images/app-screenshots/iphoneX.svgdiff --git a/static/images/app-screenshots/macbook.png b/web/images/app-screenshots/macbook.pngsimilarity index 100%rename from static/images/app-screenshots/macbook.pngrename to web/images/app-screenshots/macbook.pngdiff --git a/static/images/app-screenshots/microsoft.png b/web/images/app-screenshots/microsoft.pngsimilarity index 100%rename from static/images/app-screenshots/microsoft.pngrename to web/images/app-screenshots/microsoft.pngdiff --git a/static/images/app-screenshots/ubuntu.png b/web/images/app-screenshots/ubuntu.pngsimilarity index 100%rename from static/images/app-screenshots/ubuntu.pngrename to web/images/app-screenshots/ubuntu.pngdiff --git a/static/images/app-screenshots/zulip-android.png b/web/images/app-screenshots/zulip-android.pngsimilarity index 100%rename from static/images/app-screenshots/zulip-android.pngrename to web/images/app-screenshots/zulip-android.pngdiff --git a/static/images/app-screenshots/zulip-iphone-rough.png b/web/images/app-screenshots/zulip-iphone-rough.pngsimilarity index 100%rename from static/images/app-screenshots/zulip-iphone-rough.pngrename to web/images/app-screenshots/zulip-iphone-rough.pngdiff --git a/static/images/checkbox-green.svg b/web/images/checkbox-green.svgsimilarity index 100%rename from static/images/checkbox-green.svgrename to web/images/checkbox-green.svgdiff --git a/static/images/checkbox-white.svg b/web/images/checkbox-white.svgsimilarity index 100%rename from static/images/checkbox-white.svgrename to web/images/checkbox-white.svgdiff --git a/static/images/checkbox.svg b/web/images/checkbox.svgsimilarity index 100%rename from static/images/checkbox.svgrename to web/images/checkbox.svgdiff --git a/static/assets/default-default-avatar.svg b/web/images/default-default-avatar.svgsimilarity index 100%rename from static/assets/default-default-avatar.svgrename to web/images/default-default-avatar.svgdiff --git a/static/images/dropdown.png b/web/images/dropdown.pngsimilarity index 100%rename from static/images/dropdown.pngrename to web/images/dropdown.pngdiff --git a/static/assets/emails/followup21.svg b/web/images/emails/followup21.svgsimilarity index 100%rename from static/assets/emails/followup21.svgrename to web/images/emails/followup21.svgdiff --git a/static/assets/emails/followup22.svg b/web/images/emails/followup22.svgsimilarity index 100%rename from static/assets/emails/followup22.svgrename to web/images/emails/followup22.svgdiff --git a/static/assets/emails/followup23.svg b/web/images/emails/followup23.svgsimilarity index 100%rename from static/assets/emails/followup23.svgrename to web/images/emails/followup23.svgdiff --git a/static/assets/emails/footer.svg b/web/images/emails/footer.svgsimilarity index 100%rename from static/assets/emails/footer.svgrename to web/images/emails/footer.svgdiff --git a/static/assets/emails/invitation_reminder.svg b/web/images/emails/invitation_reminder.svgsimilarity index 100%rename from static/assets/emails/invitation_reminder.svgrename to web/images/emails/invitation_reminder.svgdiff --git a/static/assets/emails/logo.svg b/web/images/emails/logo.svgsimilarity index 100%rename from static/assets/emails/logo.svgrename to web/images/emails/logo.svgdiff --git a/static/assets/emails/registration_confirmation.svg b/web/images/emails/registration_confirmation.svgsimilarity index 100%rename from static/assets/emails/registration_confirmation.svgrename to web/images/emails/registration_confirmation.svgdiff --git a/static/images/giphy/GIPHY_attribution.png b/web/images/giphy/GIPHY_attribution.pngsimilarity index 100%rename from static/images/giphy/GIPHY_attribution.pngrename to web/images/giphy/GIPHY_attribution.pngdiff --git a/static/images/hotspots/fish.svg b/web/images/hotspots/fish.svgsimilarity index 100%rename from static/images/hotspots/fish.svgrename to web/images/hotspots/fish.svgdiff --git a/static/images/hotspots/kelp.svg b/web/images/hotspots/kelp.svgsimilarity index 100%rename from static/images/hotspots/kelp.svgrename to web/images/hotspots/kelp.svgdiff --git a/static/images/hotspots/speech-bubble.svg b/web/images/hotspots/speech-bubble.svgsimilarity index 100%rename from static/images/hotspots/speech-bubble.svgrename to web/images/hotspots/speech-bubble.svgdiff --git a/static/images/hotspots/whale-bubble.svg b/web/images/hotspots/whale-bubble.svgsimilarity index 100%rename from static/images/hotspots/whale-bubble.svgrename to web/images/hotspots/whale-bubble.svgdiff --git a/static/images/hotspots/whale.svg b/web/images/hotspots/whale.svgsimilarity index 100%rename from static/images/hotspots/whale.svgrename to web/images/hotspots/whale.svgdiff --git a/static/assets/icons/arrow-left-circle.svg b/web/images/icons/arrow-left-circle.svgsimilarity index 100%rename from static/assets/icons/arrow-left-circle.svgrename to web/images/icons/arrow-left-circle.svgdiff --git a/static/assets/icons/close.svg b/web/images/icons/close.svgsimilarity index 100%rename from static/assets/icons/close.svgrename to web/images/icons/close.svgdiff --git a/static/assets/icons/template.hbs b/web/images/icons/template.hbssimilarity index 100%rename from static/assets/icons/template.hbsrename to web/images/icons/template.hbsdiff --git a/static/assets/icons/zulip-icons.font.js b/web/images/icons/zulip-icons.font.jssimilarity index 100%rename from static/assets/icons/zulip-icons.font.jsrename to web/images/icons/zulip-icons.font.jsdiff --git a/static/images/landing-page/apps/waves.svg b/web/images/landing-page/apps/waves.svgsimilarity index 100%rename from static/images/landing-page/apps/waves.svgrename to web/images/landing-page/apps/waves.svgdiff --git a/static/images/landing-page/arrow.png b/web/images/landing-page/arrow.pngsimilarity index 100%rename from static/images/landing-page/arrow.pngrename to web/images/landing-page/arrow.pngdiff --git a/static/images/landing-page/checkmark.png b/web/images/landing-page/checkmark.pngsimilarity index 100%rename from static/images/landing-page/checkmark.pngrename to web/images/landing-page/checkmark.pngdiff --git a/static/images/landing-page/education/companies-laptop.jpg b/web/images/landing-page/education/companies-laptop.jpgsimilarity index 100%rename from static/images/landing-page/education/companies-laptop.jpgrename to web/images/landing-page/education/companies-laptop.jpgdiff --git a/static/images/landing-page/education/for-education-cover.jpg b/web/images/landing-page/education/for-education-cover.jpgsimilarity index 100%rename from static/images/landing-page/education/for-education-cover.jpgrename to web/images/landing-page/education/for-education-cover.jpgdiff --git a/static/images/landing-page/events/for-events.jpg b/web/images/landing-page/events/for-events.jpgsimilarity index 100%rename from static/images/landing-page/events/for-events.jpgrename to web/images/landing-page/events/for-events.jpgdiff --git a/static/images/landing-page/features/notifications.jpg b/web/images/landing-page/features/notifications.jpgsimilarity index 100%rename from static/images/landing-page/features/notifications.jpgrename to web/images/landing-page/features/notifications.jpgdiff --git a/static/images/landing-page/logos/akamai.png b/web/images/landing-page/logos/akamai.pngsimilarity index 100%rename from static/images/landing-page/logos/akamai.pngrename to web/images/landing-page/logos/akamai.pngdiff --git a/static/images/landing-page/logos/cambridge-mobile-telematics.png b/web/images/landing-page/logos/cambridge-mobile-telematics.pngsimilarity index 100%rename from static/images/landing-page/logos/cambridge-mobile-telematics.pngrename to web/images/landing-page/logos/cambridge-mobile-telematics.pngdiff --git a/static/images/landing-page/logos/doctorondemand.png b/web/images/landing-page/logos/doctorondemand.pngsimilarity index 100%rename from static/images/landing-page/logos/doctorondemand.pngrename to web/images/landing-page/logos/doctorondemand.pngdiff --git a/static/images/landing-page/logos/layershift.png b/web/images/landing-page/logos/layershift.pngsimilarity index 100%rename from static/images/landing-page/logos/layershift.pngrename to web/images/landing-page/logos/layershift.pngdiff --git a/static/images/landing-page/logos/levelup.png b/web/images/landing-page/logos/levelup.pngsimilarity index 100%rename from static/images/landing-page/logos/levelup.pngrename to web/images/landing-page/logos/levelup.pngdiff --git a/static/images/landing-page/logos/mariadb.png b/web/images/landing-page/logos/mariadb.pngsimilarity index 100%rename from static/images/landing-page/logos/mariadb.pngrename to web/images/landing-page/logos/mariadb.pngdiff --git a/static/images/landing-page/logos/mixxx.png b/web/images/landing-page/logos/mixxx.pngsimilarity index 100%rename from static/images/landing-page/logos/mixxx.pngrename to web/images/landing-page/logos/mixxx.pngdiff --git a/static/images/landing-page/logos/panjiva.png b/web/images/landing-page/logos/panjiva.pngsimilarity index 100%rename from static/images/landing-page/logos/panjiva.pngrename to web/images/landing-page/logos/panjiva.pngdiff --git a/static/images/landing-page/logos/recurse.png b/web/images/landing-page/logos/recurse.pngsimilarity index 100%rename from static/images/landing-page/logos/recurse.pngrename to web/images/landing-page/logos/recurse.pngdiff --git a/static/images/landing-page/logos/wikimedia-outreach.png b/web/images/landing-page/logos/wikimedia-outreach.pngsimilarity index 100%rename from static/images/landing-page/logos/wikimedia-outreach.pngrename to web/images/landing-page/logos/wikimedia-outreach.pngdiff --git a/static/images/landing-page/mit-lobby-7.jpg b/web/images/landing-page/mit-lobby-7.jpgsimilarity index 100%rename from static/images/landing-page/mit-lobby-7.jpgrename to web/images/landing-page/mit-lobby-7.jpgdiff --git a/static/images/landing-page/pycon-drone.jpg b/web/images/landing-page/pycon-drone.jpgsimilarity index 100%rename from static/images/landing-page/pycon-drone.jpgrename to web/images/landing-page/pycon-drone.jpgdiff --git a/static/images/landing-page/pycon.jpg b/web/images/landing-page/pycon.jpgsimilarity index 100%rename from static/images/landing-page/pycon.jpgrename to web/images/landing-page/pycon.jpgdiff --git a/static/images/landing-page/security.jpg b/web/images/landing-page/security.jpgsimilarity index 100%rename from static/images/landing-page/security.jpgrename to web/images/landing-page/security.jpgdiff --git a/static/images/landing-page/why-zulip/why-zulip-threads.jpg b/web/images/landing-page/why-zulip/why-zulip-threads.jpgsimilarity index 100%rename from static/images/landing-page/why-zulip/why-zulip-threads.jpgrename to web/images/landing-page/why-zulip/why-zulip-threads.jpgdiff --git a/static/images/landing-page/zulip-octopus.png b/web/images/landing-page/zulip-octopus.pngsimilarity index 100%rename from static/images/landing-page/zulip-octopus.pngrename to web/images/landing-page/zulip-octopus.pngdiff --git a/static/images/loading/loading-ellipsis.svg b/web/images/loading/loading-ellipsis.svgsimilarity index 100%rename from static/images/loading/loading-ellipsis.svgrename to web/images/loading/loading-ellipsis.svgdiff --git a/static/images/loading/tail-spin.svg b/web/images/loading/tail-spin.svgsimilarity index 100%rename from static/images/loading/tail-spin.svgrename to web/images/loading/tail-spin.svgdiff --git a/static/images/logo/white-zulip-logo-without-text.svg b/web/images/logo/white-zulip-logo-without-text.svgsimilarity index 100%rename from static/images/logo/white-zulip-logo-without-text.svgrename to web/images/logo/white-zulip-logo-without-text.svgdiff --git a/static/assets/zulip-emoji/zulip.png b/web/images/zulip-emoji/zulip.pngsimilarity index 100%rename from static/assets/zulip-emoji/zulip.pngrename to web/images/zulip-emoji/zulip.pngdiff --git a/static/images/zulip-logo.svg b/web/images/zulip-logo.svgsimilarity index 100%rename from static/images/zulip-logo.svgrename to web/images/zulip-logo.svgdiff --git a/static/shared/.gitignore b/web/shared/.gitignoresimilarity index 100%rename from static/shared/.gitignorerename to web/shared/.gitignorediff --git a/static/shared/.npmrc b/web/shared/.npmrcsimilarity index 100%rename from static/shared/.npmrcrename to web/shared/.npmrcdiff --git a/static/shared/README.md b/web/shared/README.mdsimilarity index 100%rename from static/shared/README.mdrename to web/shared/README.mddiff --git a/static/shared/icons/README.md b/web/shared/icons/README.mdsimilarity index 100%rename from static/shared/icons/README.mdrename to web/shared/icons/README.mddiff --git a/static/shared/icons/bot.svg b/web/shared/icons/bot.svgsimilarity index 100%rename from static/shared/icons/bot.svgrename to web/shared/icons/bot.svgdiff --git a/static/shared/icons/ellipsis-v-solid.svg b/web/shared/icons/ellipsis-v-solid.svgsimilarity index 100%rename from static/shared/icons/ellipsis-v-solid.svgrename to web/shared/icons/ellipsis-v-solid.svgdiff --git a/static/shared/icons/gif.svg b/web/shared/icons/gif.svgsimilarity index 100%rename from static/shared/icons/gif.svgrename to web/shared/icons/gif.svgdiff --git a/static/shared/icons/globe.svg b/web/shared/icons/globe.svgsimilarity index 100%rename from static/shared/icons/globe.svgrename to web/shared/icons/globe.svgdiff --git a/static/shared/icons/language.svg b/web/shared/icons/language.svgsimilarity index 100%rename from static/shared/icons/language.svgrename to web/shared/icons/language.svgdiff --git a/static/shared/icons/mute.svg b/web/shared/icons/mute.svgsimilarity index 100%rename from static/shared/icons/mute.svgrename to web/shared/icons/mute.svgdiff --git a/static/shared/icons/readreceipts.svg b/web/shared/icons/readreceipts.svgsimilarity index 100%rename from static/shared/icons/readreceipts.svgrename to web/shared/icons/readreceipts.svgdiff --git a/static/shared/package.json b/web/shared/package.jsonsimilarity index 85%rename from static/shared/package.jsonrename to web/shared/package.jsonindex 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.jssimilarity index 100%rename from static/shared/js/fenced_code.jsrename to web/shared/src/fenced_code.jsdiff --git a/static/shared/js/internal_url.js b/web/shared/src/internal_url.jssimilarity index 100%rename from static/shared/js/internal_url.jsrename to web/shared/src/internal_url.jsdiff --git a/static/shared/js/internal_url.js.flow b/web/shared/src/internal_url.js.flowsimilarity index 100%rename from static/shared/js/internal_url.js.flowrename to web/shared/src/internal_url.js.flowdiff --git a/static/shared/js/poll_data.js b/web/shared/src/poll_data.jssimilarity index 100%rename from static/shared/js/poll_data.jsrename to web/shared/src/poll_data.jsdiff --git a/static/shared/js/poll_data.js.flow b/web/shared/src/poll_data.js.flowsimilarity index 100%rename from static/shared/js/poll_data.js.flowrename to web/shared/src/poll_data.js.flowdiff --git a/static/shared/js/resolved_topic.js b/web/shared/src/resolved_topic.jssimilarity index 100%rename from static/shared/js/resolved_topic.jsrename to web/shared/src/resolved_topic.jsdiff --git a/static/shared/js/resolved_topic.js.flow b/web/shared/src/resolved_topic.js.flowsimilarity index 100%rename from static/shared/js/resolved_topic.js.flowrename to web/shared/src/resolved_topic.js.flowdiff --git a/static/shared/js/typeahead.js.flow b/web/shared/src/typeahead.js.flowsimilarity index 100%rename from static/shared/js/typeahead.js.flowrename to web/shared/src/typeahead.js.flowdiff --git a/static/shared/js/typeahead.ts b/web/shared/src/typeahead.tssimilarity index 100%rename from static/shared/js/typeahead.tsrename to web/shared/src/typeahead.tsdiff --git a/static/shared/js/typing_status.js b/web/shared/src/typing_status.jssimilarity index 100%rename from static/shared/js/typing_status.jsrename to web/shared/src/typing_status.jsdiff --git a/static/shared/js/typing_status.js.flow b/web/shared/src/typing_status.js.flowsimilarity index 100%rename from static/shared/js/typing_status.js.flowrename to web/shared/src/typing_status.js.flowdiff --git a/static/shared/tools/npm-postversion b/web/shared/tools/npm-postversionsimilarity index 100%rename from static/shared/tools/npm-postversionrename to web/shared/tools/npm-postversiondiff --git a/static/shared/tools/npm-version b/web/shared/tools/npm-versionsimilarity index 100%rename from static/shared/tools/npm-versionrename to web/shared/tools/npm-versiondiff --git a/static/shared/tsconfig.json b/web/shared/tsconfig.jsonsimilarity index 93%rename from static/shared/tsconfig.jsonrename to web/shared/tsconfig.jsonindex 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.jssimilarity index 100%rename from static/js/about_zulip.jsrename to web/src/about_zulip.jsdiff --git a/static/js/activity.js b/web/src/activity.jssimilarity index 100%rename from static/js/activity.jsrename to web/src/activity.jsdiff --git a/static/js/add_subscribers_pill.js b/web/src/add_subscribers_pill.jssimilarity index 100%rename from static/js/add_subscribers_pill.jsrename to web/src/add_subscribers_pill.jsdiff --git a/static/js/admin.js b/web/src/admin.jssimilarity index 100%rename from static/js/admin.jsrename to web/src/admin.jsdiff --git a/static/js/alert_popup.ts b/web/src/alert_popup.tssimilarity index 100%rename from static/js/alert_popup.tsrename to web/src/alert_popup.tsdiff --git a/static/js/alert_words.js b/web/src/alert_words.jssimilarity index 100%rename from static/js/alert_words.jsrename to web/src/alert_words.jsdiff --git a/static/js/alert_words_ui.js b/web/src/alert_words_ui.jssimilarity index 100%rename from static/js/alert_words_ui.jsrename to web/src/alert_words_ui.jsdiff --git a/static/js/all_messages_data.js b/web/src/all_messages_data.jssimilarity index 100%rename from static/js/all_messages_data.jsrename to web/src/all_messages_data.jsdiff --git a/static/js/analytics/activity.js b/web/src/analytics/activity.jssimilarity index 100%rename from static/js/analytics/activity.jsrename to web/src/analytics/activity.jsdiff --git a/static/js/analytics/support.js b/web/src/analytics/support.jssimilarity index 100%rename from static/js/analytics/support.jsrename to web/src/analytics/support.jsdiff --git a/static/js/assets.d.ts b/web/src/assets.d.tssimilarity index 100%rename from static/js/assets.d.tsrename to web/src/assets.d.tsdiff --git a/static/js/attachments_ui.js b/web/src/attachments_ui.jssimilarity index 100%rename from static/js/attachments_ui.jsrename to web/src/attachments_ui.jsdiff --git a/static/js/avatar.js b/web/src/avatar.jssimilarity index 100%rename from static/js/avatar.jsrename to web/src/avatar.jsdiff --git a/static/js/billing/billing.js b/web/src/billing/billing.jssimilarity index 100%rename from static/js/billing/billing.jsrename to web/src/billing/billing.jsdiff --git a/static/js/billing/event_status.js b/web/src/billing/event_status.jssimilarity index 100%rename from static/js/billing/event_status.jsrename to web/src/billing/event_status.jsdiff --git a/static/js/billing/helpers.js b/web/src/billing/helpers.jssimilarity index 100%rename from static/js/billing/helpers.jsrename to web/src/billing/helpers.jsdiff --git a/static/js/billing/upgrade.js b/web/src/billing/upgrade.jssimilarity index 100%rename from static/js/billing/upgrade.jsrename to web/src/billing/upgrade.jsdiff --git a/static/js/blueslip.ts b/web/src/blueslip.tssimilarity index 100%rename from static/js/blueslip.tsrename to web/src/blueslip.tsdiff --git a/static/js/blueslip_stacktrace.ts b/web/src/blueslip_stacktrace.tssimilarity index 100%rename from static/js/blueslip_stacktrace.tsrename to web/src/blueslip_stacktrace.tsdiff --git a/static/js/bot_data.js b/web/src/bot_data.jssimilarity index 100%rename from static/js/bot_data.jsrename to web/src/bot_data.jsdiff --git a/static/js/browser_history.js b/web/src/browser_history.jssimilarity index 100%rename from static/js/browser_history.jsrename to web/src/browser_history.jsdiff --git a/static/js/buddy_data.js b/web/src/buddy_data.jssimilarity index 100%rename from static/js/buddy_data.jsrename to web/src/buddy_data.jsdiff --git a/static/js/buddy_list.js b/web/src/buddy_list.jssimilarity index 100%rename from static/js/buddy_list.jsrename to web/src/buddy_list.jsdiff --git a/static/js/bundles/app.js b/web/src/bundles/app.jssimilarity index 100%rename from static/js/bundles/app.jsrename to web/src/bundles/app.jsdiff --git a/static/js/bundles/common.js b/web/src/bundles/common.jssimilarity index 86%rename from static/js/bundles/common.jsrename to web/src/bundles/common.jsindex 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.jssimilarity index 100%rename from static/js/bundles/portico.jsrename to web/src/bundles/portico.jsdiff --git a/static/js/channel.js b/web/src/channel.jssimilarity index 100%rename from static/js/channel.jsrename to web/src/channel.jsdiff --git a/static/js/click_handlers.js b/web/src/click_handlers.jssimilarity index 100%rename from static/js/click_handlers.jsrename to web/src/click_handlers.jsdiff --git a/static/js/color_class.ts b/web/src/color_class.tssimilarity index 100%rename from static/js/color_class.tsrename to web/src/color_class.tsdiff --git a/static/js/color_data.ts b/web/src/color_data.tssimilarity index 100%rename from static/js/color_data.tsrename to web/src/color_data.tsdiff --git a/static/js/colorspace.ts b/web/src/colorspace.tssimilarity index 100%rename from static/js/colorspace.tsrename to web/src/colorspace.tsdiff --git a/static/js/common.ts b/web/src/common.tssimilarity index 100%rename from static/js/common.tsrename to web/src/common.tsdiff --git a/static/js/components.ts b/web/src/components.tssimilarity index 100%rename from static/js/components.tsrename to web/src/components.tsdiff --git a/static/js/compose.js b/web/src/compose.jssimilarity index 100%rename from static/js/compose.jsrename to web/src/compose.jsdiff --git a/static/js/compose_actions.js b/web/src/compose_actions.jssimilarity index 99%rename from static/js/compose_actions.jsrename to web/src/compose_actions.jsindex 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.tssimilarity index 100%rename from static/js/compose_banner.tsrename to web/src/compose_banner.tsdiff --git a/static/js/compose_closed_ui.js b/web/src/compose_closed_ui.jssimilarity index 100%rename from static/js/compose_closed_ui.jsrename to web/src/compose_closed_ui.jsdiff --git a/static/js/compose_fade.js b/web/src/compose_fade.jssimilarity index 100%rename from static/js/compose_fade.jsrename to web/src/compose_fade.jsdiff --git a/static/js/compose_fade_helper.js b/web/src/compose_fade_helper.jssimilarity index 100%rename from static/js/compose_fade_helper.jsrename to web/src/compose_fade_helper.jsdiff --git a/static/js/compose_fade_users.js b/web/src/compose_fade_users.jssimilarity index 100%rename from static/js/compose_fade_users.jsrename to web/src/compose_fade_users.jsdiff --git a/static/js/compose_pm_pill.js b/web/src/compose_pm_pill.jssimilarity index 100%rename from static/js/compose_pm_pill.jsrename to web/src/compose_pm_pill.jsdiff --git a/static/js/compose_state.js b/web/src/compose_state.jssimilarity index 100%rename from static/js/compose_state.jsrename to web/src/compose_state.jsdiff --git a/static/js/compose_ui.js b/web/src/compose_ui.jssimilarity index 100%rename from static/js/compose_ui.jsrename to web/src/compose_ui.jsdiff --git a/static/js/compose_validate.js b/web/src/compose_validate.jssimilarity index 99%rename from static/js/compose_validate.jsrename to web/src/compose_validate.jsindex 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.jssimilarity index 99%rename from static/js/composebox_typeahead.jsrename to web/src/composebox_typeahead.jsindex 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.jssimilarity index 100%rename from static/js/condense.jsrename to web/src/condense.jsdiff --git a/static/js/confirm_dialog.js b/web/src/confirm_dialog.jssimilarity index 100%rename from static/js/confirm_dialog.jsrename to web/src/confirm_dialog.jsdiff --git a/static/js/copy_and_paste.js b/web/src/copy_and_paste.jssimilarity index 100%rename from static/js/copy_and_paste.jsrename to web/src/copy_and_paste.jsdiff --git a/static/js/csrf.ts b/web/src/csrf.tssimilarity index 100%rename from static/js/csrf.tsrename to web/src/csrf.tsdiff --git a/static/js/css_variables.js b/web/src/css_variables.jssimilarity index 100%rename from static/js/css_variables.jsrename to web/src/css_variables.jsdiff --git a/static/js/dark_theme.js b/web/src/dark_theme.jssimilarity index 100%rename from static/js/dark_theme.jsrename to web/src/dark_theme.jsdiff --git a/static/js/debug.js b/web/src/debug.jssimilarity index 98%rename from static/js/debug.jsrename to web/src/debug.jsindex 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.jssimilarity index 100%rename from static/js/deprecated_feature_notice.jsrename to web/src/deprecated_feature_notice.jsdiff --git a/static/js/desktop_integration.js b/web/src/desktop_integration.jssimilarity index 100%rename from static/js/desktop_integration.jsrename to web/src/desktop_integration.jsdiff --git a/static/js/dialog_widget.js b/web/src/dialog_widget.jssimilarity index 100%rename from static/js/dialog_widget.jsrename to web/src/dialog_widget.jsdiff --git a/static/js/drafts.js b/web/src/drafts.jssimilarity index 100%rename from static/js/drafts.jsrename to web/src/drafts.jsdiff --git a/static/js/dropdown_list_widget.js b/web/src/dropdown_list_widget.jssimilarity index 100%rename from static/js/dropdown_list_widget.jsrename to web/src/dropdown_list_widget.jsdiff --git a/static/js/echo.js b/web/src/echo.jssimilarity index 100%rename from static/js/echo.jsrename to web/src/echo.jsdiff --git a/static/js/emoji.js b/web/src/emoji.jssimilarity index 100%rename from static/js/emoji.jsrename to web/src/emoji.jsdiff --git a/static/js/emoji_picker.js b/web/src/emoji_picker.jssimilarity index 99%rename from static/js/emoji_picker.jsrename to web/src/emoji_picker.jsindex 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.jssimilarity index 96%rename from static/js/emojisets.jsrename to web/src/emojisets.jsindex 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.jssimilarity index 97%rename from static/js/favicon.jsrename to web/src/favicon.jsindex 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.tssimilarity index 100%rename from static/js/feature_flags.tsrename to web/src/feature_flags.tsdiff --git a/static/js/feedback_widget.js b/web/src/feedback_widget.jssimilarity index 100%rename from static/js/feedback_widget.jsrename to web/src/feedback_widget.jsdiff --git a/static/js/fetch_status.js b/web/src/fetch_status.jssimilarity index 100%rename from static/js/fetch_status.jsrename to web/src/fetch_status.jsdiff --git a/static/js/filter.js b/web/src/filter.jssimilarity index 99%rename from static/js/filter.jsrename to web/src/filter.jsindex 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.jssimilarity index 100%rename from static/js/flatpickr.jsrename to web/src/flatpickr.jsdiff --git a/static/js/fold_dict.ts b/web/src/fold_dict.tssimilarity index 100%rename from static/js/fold_dict.tsrename to web/src/fold_dict.tsdiff --git a/static/js/gear_menu.js b/web/src/gear_menu.jssimilarity index 97%rename from static/js/gear_menu.jsrename to web/src/gear_menu.jsindex ee18dcffdc7..fc439963e0c 100644--- a/static/js/gear_menu.js+++ b/web/src/gear_menu.js@@ -60,7 +60,7 @@ links:#inviteWhen you click on the links there is a function-called hashchanged() in static/js/hashchange.js+called hashchanged() in web/src/hashchange.jsthat gets invoked. (We register this as a listenerfor the hashchange event.) This function thenlaunches the appropriate modal for each menu item.@@ -73,8 +73,8 @@ mechanism to link to external pages, and theyhave 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]" asthe selector and then calls browser_history.go_to_location.*/diff --git a/static/js/giphy.js b/web/src/giphy.jssimilarity index 100%rename from static/js/giphy.jsrename to web/src/giphy.jsdiff --git a/static/js/global.d.ts b/web/src/global.d.tssimilarity index 82%rename from static/js/global.d.tsrename to web/src/global.d.tsindex 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.jssimilarity index 99%rename from static/js/hash_util.jsrename to web/src/hash_util.jsindex 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.jssimilarity index 100%rename from static/js/hashchange.jsrename to web/src/hashchange.jsdiff --git a/static/js/hbs.d.ts b/web/src/hbs.d.tssimilarity index 100%rename from static/js/hbs.d.tsrename to web/src/hbs.d.tsdiff --git a/static/js/hotkey.js b/web/src/hotkey.jssimilarity index 100%rename from static/js/hotkey.jsrename to web/src/hotkey.jsdiff --git a/static/js/hotspots.js b/web/src/hotspots.jssimilarity index 100%rename from static/js/hotspots.jsrename to web/src/hotspots.jsdiff --git a/static/js/huddle_data.js b/web/src/huddle_data.jssimilarity index 100%rename from static/js/huddle_data.jsrename to web/src/huddle_data.jsdiff --git a/static/js/i18n.ts b/web/src/i18n.tssimilarity index 100%rename from static/js/i18n.tsrename to web/src/i18n.tsdiff --git a/static/js/info_overlay.js b/web/src/info_overlay.jssimilarity index 100%rename from static/js/info_overlay.jsrename to web/src/info_overlay.jsdiff --git a/static/js/input_pill.js b/web/src/input_pill.jssimilarity index 100%rename from static/js/input_pill.jsrename to web/src/input_pill.jsdiff --git a/static/js/invite.js b/web/src/invite.jssimilarity index 100%rename from static/js/invite.jsrename to web/src/invite.jsdiff --git a/static/js/keydown_util.ts b/web/src/keydown_util.tssimilarity index 100%rename from static/js/keydown_util.tsrename to web/src/keydown_util.tsdiff --git a/static/js/lazy_set.ts b/web/src/lazy_set.tssimilarity index 100%rename from static/js/lazy_set.tsrename to web/src/lazy_set.tsdiff --git a/static/js/lightbox.js b/web/src/lightbox.jssimilarity index 100%rename from static/js/lightbox.jsrename to web/src/lightbox.jsdiff --git a/static/js/linkifiers.js b/web/src/linkifiers.jssimilarity index 100%rename from static/js/linkifiers.jsrename to web/src/linkifiers.jsdiff --git a/static/js/list_cursor.js b/web/src/list_cursor.jssimilarity index 100%rename from static/js/list_cursor.jsrename to web/src/list_cursor.jsdiff --git a/static/js/list_util.ts b/web/src/list_util.tssimilarity index 100%rename from static/js/list_util.tsrename to web/src/list_util.tsdiff --git a/static/js/list_widget.js b/web/src/list_widget.jssimilarity index 100%rename from static/js/list_widget.jsrename to web/src/list_widget.jsdiff --git a/static/js/loading.ts b/web/src/loading.tssimilarity index 94%rename from static/js/loading.tsrename to web/src/loading.tsindex 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.jssimilarity index 100%rename from static/js/local_message.jsrename to web/src/local_message.jsdiff --git a/static/js/localstorage.js b/web/src/localstorage.jssimilarity index 100%rename from static/js/localstorage.jsrename to web/src/localstorage.jsdiff --git a/static/js/markdown.js b/web/src/markdown.jssimilarity index 99%rename from static/js/markdown.jsrename to web/src/markdown.jsindex 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-unresolvedimport _ 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.htmldiff --git a/static/js/markdown_config.js b/web/src/markdown_config.jssimilarity index 100%rename from static/js/markdown_config.jsrename to web/src/markdown_config.jsdiff --git a/static/js/message_edit.js b/web/src/message_edit.jssimilarity index 99%rename from static/js/message_edit.jsrename to web/src/message_edit.jsindex 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.jssimilarity index 100%rename from static/js/message_edit_history.jsrename to web/src/message_edit_history.jsdiff --git a/static/js/message_events.js b/web/src/message_events.jssimilarity index 100%rename from static/js/message_events.jsrename to web/src/message_events.jsdiff --git a/static/js/message_fetch.js b/web/src/message_fetch.jssimilarity index 100%rename from static/js/message_fetch.jsrename to web/src/message_fetch.jsdiff --git a/static/js/message_flags.js b/web/src/message_flags.jssimilarity index 100%rename from static/js/message_flags.jsrename to web/src/message_flags.jsdiff --git a/static/js/message_helper.js b/web/src/message_helper.jssimilarity index 100%rename from static/js/message_helper.jsrename to web/src/message_helper.jsdiff --git a/static/js/message_list.js b/web/src/message_list.jssimilarity index 100%rename from static/js/message_list.jsrename to web/src/message_list.jsdiff --git a/static/js/message_list_data.js b/web/src/message_list_data.jssimilarity index 100%rename from static/js/message_list_data.jsrename to web/src/message_list_data.jsdiff --git a/static/js/message_list_view.js b/web/src/message_list_view.jssimilarity index 99%rename from static/js/message_list_view.jsrename to web/src/message_list_view.jsindex 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.jssimilarity index 100%rename from static/js/message_lists.jsrename to web/src/message_lists.jsdiff --git a/static/js/message_live_update.js b/web/src/message_live_update.jssimilarity index 100%rename from static/js/message_live_update.jsrename to web/src/message_live_update.jsdiff --git a/static/js/message_parser.ts b/web/src/message_parser.tssimilarity index 100%rename from static/js/message_parser.tsrename to web/src/message_parser.tsdiff --git a/static/js/message_scroll.js b/web/src/message_scroll.jssimilarity index 100%rename from static/js/message_scroll.jsrename to web/src/message_scroll.jsdiff --git a/static/js/message_store.js b/web/src/message_store.jssimilarity index 100%rename from static/js/message_store.jsrename to web/src/message_store.jsdiff --git a/static/js/message_user_ids.ts b/web/src/message_user_ids.tssimilarity index 100%rename from static/js/message_user_ids.tsrename to web/src/message_user_ids.tsdiff --git a/static/js/message_util.js b/web/src/message_util.jssimilarity index 100%rename from static/js/message_util.jsrename to web/src/message_util.jsdiff --git a/static/js/message_view_header.js b/web/src/message_view_header.jssimilarity index 100%rename from static/js/message_view_header.jsrename to web/src/message_view_header.jsdiff --git a/static/js/message_viewport.js b/web/src/message_viewport.jssimilarity index 100%rename from static/js/message_viewport.jsrename to web/src/message_viewport.jsdiff --git a/static/js/muted_topics_ui.js b/web/src/muted_topics_ui.jssimilarity index 100%rename from static/js/muted_topics_ui.jsrename to web/src/muted_topics_ui.jsdiff --git a/static/js/muted_users.ts b/web/src/muted_users.tssimilarity index 100%rename from static/js/muted_users.tsrename to web/src/muted_users.tsdiff --git a/static/js/muted_users_ui.js b/web/src/muted_users_ui.jssimilarity index 100%rename from static/js/muted_users_ui.jsrename to web/src/muted_users_ui.jsdiff --git a/static/js/narrow.js b/web/src/narrow.jssimilarity index 100%rename from static/js/narrow.jsrename to web/src/narrow.jsdiff --git a/static/js/narrow_banner.js b/web/src/narrow_banner.jssimilarity index 100%rename from static/js/narrow_banner.jsrename to web/src/narrow_banner.jsdiff --git a/static/js/narrow_error.js b/web/src/narrow_error.jssimilarity index 100%rename from static/js/narrow_error.jsrename to web/src/narrow_error.jsdiff --git a/static/js/narrow_state.js b/web/src/narrow_state.jssimilarity index 100%rename from static/js/narrow_state.jsrename to web/src/narrow_state.jsdiff --git a/static/js/navbar_alerts.js b/web/src/navbar_alerts.jssimilarity index 100%rename from static/js/navbar_alerts.jsrename to web/src/navbar_alerts.jsdiff --git a/static/js/navigate.js b/web/src/navigate.jssimilarity index 100%rename from static/js/navigate.jsrename to web/src/navigate.jsdiff --git a/static/js/notifications.js b/web/src/notifications.jssimilarity index 100%rename from static/js/notifications.jsrename to web/src/notifications.jsdiff --git a/static/js/overlays.js b/web/src/overlays.jssimilarity index 100%rename from static/js/overlays.jsrename to web/src/overlays.jsdiff --git a/static/js/padded_widget.ts b/web/src/padded_widget.tssimilarity index 100%rename from static/js/padded_widget.tsrename to web/src/padded_widget.tsdiff --git a/static/js/page_params.ts b/web/src/page_params.tssimilarity index 100%rename from static/js/page_params.tsrename to web/src/page_params.tsdiff --git a/static/js/password_quality.ts b/web/src/password_quality.tssimilarity index 100%rename from static/js/password_quality.tsrename to web/src/password_quality.tsdiff --git a/static/js/peer_data.js b/web/src/peer_data.jssimilarity index 100%rename from static/js/peer_data.jsrename to web/src/peer_data.jsdiff --git a/static/js/people.js b/web/src/people.jssimilarity index 99%rename from static/js/people.jsrename to web/src/people.jsindex 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.jssimilarity index 100%rename from static/js/pill_typeahead.jsrename to web/src/pill_typeahead.jsdiff --git a/static/js/pm_conversations.js b/web/src/pm_conversations.jssimilarity index 100%rename from static/js/pm_conversations.jsrename to web/src/pm_conversations.jsdiff --git a/static/js/pm_list.js b/web/src/pm_list.jssimilarity index 100%rename from static/js/pm_list.jsrename to web/src/pm_list.jsdiff --git a/static/js/pm_list_data.js b/web/src/pm_list_data.jssimilarity index 100%rename from static/js/pm_list_data.jsrename to web/src/pm_list_data.jsdiff --git a/static/js/pm_list_dom.js b/web/src/pm_list_dom.jssimilarity index 100%rename from static/js/pm_list_dom.jsrename to web/src/pm_list_dom.jsdiff --git a/static/js/poll_widget.js b/web/src/poll_widget.jssimilarity index 99%rename from static/js/poll_widget.jsrename to web/src/poll_widget.jsindex 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.jssimilarity index 100%rename from static/js/popover_menus.jsrename to web/src/popover_menus.jsdiff --git a/static/js/popover_menus_data.js b/web/src/popover_menus_data.jssimilarity index 100%rename from static/js/popover_menus_data.jsrename to web/src/popover_menus_data.jsdiff --git a/static/js/popovers.js b/web/src/popovers.jssimilarity index 100%rename from static/js/popovers.jsrename to web/src/popovers.jsdiff --git a/static/js/portico/communities.js b/web/src/portico/communities.jssimilarity index 100%rename from static/js/portico/communities.jsrename to web/src/portico/communities.jsdiff --git a/static/js/portico/confirm-preregistrationuser.js b/web/src/portico/confirm-preregistrationuser.jssimilarity index 100%rename from static/js/portico/confirm-preregistrationuser.jsrename to web/src/portico/confirm-preregistrationuser.jsdiff --git a/static/js/portico/desktop-login.js b/web/src/portico/desktop-login.jssimilarity index 100%rename from static/js/portico/desktop-login.jsrename to web/src/portico/desktop-login.jsdiff --git a/static/js/portico/desktop-redirect.js b/web/src/portico/desktop-redirect.jssimilarity index 100%rename from static/js/portico/desktop-redirect.jsrename to web/src/portico/desktop-redirect.jsdiff --git a/static/js/portico/dev-login.js b/web/src/portico/dev-login.jssimilarity index 100%rename from static/js/portico/dev-login.jsrename to web/src/portico/dev-login.jsdiff --git a/static/js/portico/email_log.js b/web/src/portico/email_log.jssimilarity index 100%rename from static/js/portico/email_log.jsrename to web/src/portico/email_log.jsdiff --git a/static/js/portico/google-analytics.js b/web/src/portico/google-analytics.jssimilarity index 100%rename from static/js/portico/google-analytics.jsrename to web/src/portico/google-analytics.jsdiff --git a/static/js/portico/header.js b/web/src/portico/header.jssimilarity index 100%rename from static/js/portico/header.jsrename to web/src/portico/header.jsdiff --git a/static/js/portico/help.js b/web/src/portico/help.jssimilarity index 100%rename from static/js/portico/help.jsrename to web/src/portico/help.jsdiff --git a/static/js/portico/integrations.js b/web/src/portico/integrations.jssimilarity index 100%rename from static/js/portico/integrations.jsrename to web/src/portico/integrations.jsdiff --git a/static/js/portico/integrations_dev_panel.js b/web/src/portico/integrations_dev_panel.jssimilarity index 100%rename from static/js/portico/integrations_dev_panel.jsrename to web/src/portico/integrations_dev_panel.jsdiff --git a/static/js/portico/landing-page.js b/web/src/portico/landing-page.jssimilarity index 100%rename from static/js/portico/landing-page.jsrename to web/src/portico/landing-page.jsdiff --git a/static/js/portico/signup.js b/web/src/portico/signup.jssimilarity index 100%rename from static/js/portico/signup.jsrename to web/src/portico/signup.jsdiff --git a/static/js/portico/tabbed-instructions.js b/web/src/portico/tabbed-instructions.jssimilarity index 100%rename from static/js/portico/tabbed-instructions.jsrename to web/src/portico/tabbed-instructions.jsdiff --git a/static/js/portico/team.js b/web/src/portico/team.jssimilarity index 100%rename from static/js/portico/team.jsrename to web/src/portico/team.jsdiff --git a/static/js/portico/tippyjs.js b/web/src/portico/tippyjs.jssimilarity index 100%rename from static/js/portico/tippyjs.jsrename to web/src/portico/tippyjs.jsdiff --git a/static/js/presence.js b/web/src/presence.jssimilarity index 100%rename from static/js/presence.jsrename to web/src/presence.jsdiff --git a/static/js/reactions.js b/web/src/reactions.jssimilarity index 100%rename from static/js/reactions.jsrename to web/src/reactions.jsdiff --git a/static/js/read_receipts.js b/web/src/read_receipts.jssimilarity index 100%rename from static/js/read_receipts.jsrename to web/src/read_receipts.jsdiff --git a/static/js/realm_icon.js b/web/src/realm_icon.jssimilarity index 100%rename from static/js/realm_icon.jsrename to web/src/realm_icon.jsdiff --git a/static/js/realm_logo.js b/web/src/realm_logo.jssimilarity index 100%rename from static/js/realm_logo.jsrename to web/src/realm_logo.jsdiff --git a/static/js/realm_playground.js b/web/src/realm_playground.jssimilarity index 97%rename from static/js/realm_playground.jsrename to web/src/realm_playground.jsindex 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.tssimilarity index 100%rename from static/js/realm_user_settings_defaults.tsrename to web/src/realm_user_settings_defaults.tsdiff --git a/static/js/recent_senders.js b/web/src/recent_senders.jssimilarity index 100%rename from static/js/recent_senders.jsrename to web/src/recent_senders.jsdiff --git a/static/js/recent_topics_data.js b/web/src/recent_topics_data.jssimilarity index 100%rename from static/js/recent_topics_data.jsrename to web/src/recent_topics_data.jsdiff --git a/static/js/recent_topics_ui.js b/web/src/recent_topics_ui.jssimilarity index 100%rename from static/js/recent_topics_ui.jsrename to web/src/recent_topics_ui.jsdiff --git a/static/js/recent_topics_util.js b/web/src/recent_topics_util.jssimilarity index 100%rename from static/js/recent_topics_util.jsrename to web/src/recent_topics_util.jsdiff --git a/static/js/reload.js b/web/src/reload.jssimilarity index 100%rename from static/js/reload.jsrename to web/src/reload.jsdiff --git a/static/js/reload_state.ts b/web/src/reload_state.tssimilarity index 100%rename from static/js/reload_state.tsrename to web/src/reload_state.tsdiff --git a/static/js/reminder.js b/web/src/reminder.jssimilarity index 100%rename from static/js/reminder.jsrename to web/src/reminder.jsdiff --git a/static/js/rendered_markdown.js b/web/src/rendered_markdown.jssimilarity index 100%rename from static/js/rendered_markdown.jsrename to web/src/rendered_markdown.jsdiff --git a/static/js/resize.js b/web/src/resize.jssimilarity index 100%rename from static/js/resize.jsrename to web/src/resize.jsdiff --git a/static/js/rows.js b/web/src/rows.jssimilarity index 100%rename from static/js/rows.jsrename to web/src/rows.jsdiff --git a/static/js/rtl.js b/web/src/rtl.jssimilarity index 100%rename from static/js/rtl.jsrename to web/src/rtl.jsdiff --git a/static/js/schema.js b/web/src/schema.jssimilarity index 100%rename from static/js/schema.jsrename to web/src/schema.jsdiff --git a/static/js/scroll_bar.js b/web/src/scroll_bar.jssimilarity index 100%rename from static/js/scroll_bar.jsrename to web/src/scroll_bar.jsdiff --git a/static/js/scroll_util.js b/web/src/scroll_util.jssimilarity index 100%rename from static/js/scroll_util.jsrename to web/src/scroll_util.jsdiff --git a/static/js/search.js b/web/src/search.jssimilarity index 100%rename from static/js/search.jsrename to web/src/search.jsdiff --git a/static/js/search_pill.js b/web/src/search_pill.jssimilarity index 100%rename from static/js/search_pill.jsrename to web/src/search_pill.jsdiff --git a/static/js/search_pill_widget.js b/web/src/search_pill_widget.jssimilarity index 100%rename from static/js/search_pill_widget.jsrename to web/src/search_pill_widget.jsdiff --git a/static/js/search_suggestion.js b/web/src/search_suggestion.jssimilarity index 100%rename from static/js/search_suggestion.jsrename to web/src/search_suggestion.jsdiff --git a/static/js/search_util.ts b/web/src/search_util.tssimilarity index 100%rename from static/js/search_util.tsrename to web/src/search_util.tsdiff --git a/static/js/sent_messages.js b/web/src/sent_messages.jssimilarity index 100%rename from static/js/sent_messages.jsrename to web/src/sent_messages.jsdiff --git a/static/js/server_events.js b/web/src/server_events.jssimilarity index 100%rename from static/js/server_events.jsrename to web/src/server_events.jsdiff --git a/static/js/server_events_dispatch.js b/web/src/server_events_dispatch.jssimilarity index 100%rename from static/js/server_events_dispatch.jsrename to web/src/server_events_dispatch.jsdiff --git a/static/js/settings.js b/web/src/settings.jssimilarity index 100%rename from static/js/settings.jsrename to web/src/settings.jsdiff --git a/static/js/settings_account.js b/web/src/settings_account.jssimilarity index 100%rename from static/js/settings_account.jsrename to web/src/settings_account.jsdiff --git a/static/js/settings_bots.js b/web/src/settings_bots.jssimilarity index 100%rename from static/js/settings_bots.jsrename to web/src/settings_bots.jsdiff --git a/static/js/settings_config.ts b/web/src/settings_config.tssimilarity index 100%rename from static/js/settings_config.tsrename to web/src/settings_config.tsdiff --git a/static/js/settings_data.ts b/web/src/settings_data.tssimilarity index 100%rename from static/js/settings_data.tsrename to web/src/settings_data.tsdiff --git a/static/js/settings_display.js b/web/src/settings_display.jssimilarity index 100%rename from static/js/settings_display.jsrename to web/src/settings_display.jsdiff --git a/static/js/settings_emoji.js b/web/src/settings_emoji.jssimilarity index 99%rename from static/js/settings_emoji.jsrename to web/src/settings_emoji.jsindex 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.jssimilarity index 100%rename from static/js/settings_exports.jsrename to web/src/settings_exports.jsdiff --git a/static/js/settings_invites.js b/web/src/settings_invites.jssimilarity index 100%rename from static/js/settings_invites.jsrename to web/src/settings_invites.jsdiff --git a/static/js/settings_linkifiers.js b/web/src/settings_linkifiers.jssimilarity index 100%rename from static/js/settings_linkifiers.jsrename to web/src/settings_linkifiers.jsdiff --git a/static/js/settings_muted_topics.js b/web/src/settings_muted_topics.jssimilarity index 100%rename from static/js/settings_muted_topics.jsrename to web/src/settings_muted_topics.jsdiff --git a/static/js/settings_muted_users.js b/web/src/settings_muted_users.jssimilarity index 100%rename from static/js/settings_muted_users.jsrename to web/src/settings_muted_users.jsdiff --git a/static/js/settings_notifications.js b/web/src/settings_notifications.jssimilarity index 100%rename from static/js/settings_notifications.jsrename to web/src/settings_notifications.jsdiff --git a/static/js/settings_org.js b/web/src/settings_org.jssimilarity index 100%rename from static/js/settings_org.jsrename to web/src/settings_org.jsdiff --git a/static/js/settings_panel_menu.js b/web/src/settings_panel_menu.jssimilarity index 100%rename from static/js/settings_panel_menu.jsrename to web/src/settings_panel_menu.jsdiff --git a/static/js/settings_playgrounds.js b/web/src/settings_playgrounds.jssimilarity index 100%rename from static/js/settings_playgrounds.jsrename to web/src/settings_playgrounds.jsdiff --git a/static/js/settings_profile_fields.js b/web/src/settings_profile_fields.jssimilarity index 100%rename from static/js/settings_profile_fields.jsrename to web/src/settings_profile_fields.jsdiff --git a/static/js/settings_realm_domains.js b/web/src/settings_realm_domains.jssimilarity index 100%rename from static/js/settings_realm_domains.jsrename to web/src/settings_realm_domains.jsdiff --git a/static/js/settings_realm_user_settings_defaults.js b/web/src/settings_realm_user_settings_defaults.jssimilarity index 100%rename from static/js/settings_realm_user_settings_defaults.jsrename to web/src/settings_realm_user_settings_defaults.jsdiff --git a/static/js/settings_sections.js b/web/src/settings_sections.jssimilarity index 100%rename from static/js/settings_sections.jsrename to web/src/settings_sections.jsdiff --git a/static/js/settings_streams.js b/web/src/settings_streams.jssimilarity index 100%rename from static/js/settings_streams.jsrename to web/src/settings_streams.jsdiff --git a/static/js/settings_toggle.js b/web/src/settings_toggle.jssimilarity index 100%rename from static/js/settings_toggle.jsrename to web/src/settings_toggle.jsdiff --git a/static/js/settings_ui.js b/web/src/settings_ui.jssimilarity index 100%rename from static/js/settings_ui.jsrename to web/src/settings_ui.jsdiff --git a/static/js/settings_user_groups_legacy.js b/web/src/settings_user_groups_legacy.jssimilarity index 100%rename from static/js/settings_user_groups_legacy.jsrename to web/src/settings_user_groups_legacy.jsdiff --git a/static/js/settings_users.js b/web/src/settings_users.jssimilarity index 100%rename from static/js/settings_users.jsrename to web/src/settings_users.jsdiff --git a/static/js/setup.js b/web/src/setup.jssimilarity index 100%rename from static/js/setup.jsrename to web/src/setup.jsdiff --git a/static/js/spectators.js b/web/src/spectators.jssimilarity index 100%rename from static/js/spectators.jsrename to web/src/spectators.jsdiff --git a/static/js/spoilers.ts b/web/src/spoilers.tssimilarity index 100%rename from static/js/spoilers.tsrename to web/src/spoilers.tsdiff --git a/static/js/starred_messages.js b/web/src/starred_messages.jssimilarity index 100%rename from static/js/starred_messages.jsrename to web/src/starred_messages.jsdiff --git a/static/js/starred_messages_ui.js b/web/src/starred_messages_ui.jssimilarity index 100%rename from static/js/starred_messages_ui.jsrename to web/src/starred_messages_ui.jsdiff --git a/static/js/stats/stats.js b/web/src/stats/stats.jssimilarity index 100%rename from static/js/stats/stats.jsrename to web/src/stats/stats.jsdiff --git a/static/js/stream_bar.js b/web/src/stream_bar.jssimilarity index 100%rename from static/js/stream_bar.jsrename to web/src/stream_bar.jsdiff --git a/static/js/stream_color.js b/web/src/stream_color.jssimilarity index 100%rename from static/js/stream_color.jsrename to web/src/stream_color.jsdiff --git a/static/js/stream_create.js b/web/src/stream_create.jssimilarity index 100%rename from static/js/stream_create.jsrename to web/src/stream_create.jsdiff --git a/static/js/stream_create_subscribers.js b/web/src/stream_create_subscribers.jssimilarity index 100%rename from static/js/stream_create_subscribers.jsrename to web/src/stream_create_subscribers.jsdiff --git a/static/js/stream_create_subscribers_data.js b/web/src/stream_create_subscribers_data.jssimilarity index 100%rename from static/js/stream_create_subscribers_data.jsrename to web/src/stream_create_subscribers_data.jsdiff --git a/static/js/stream_data.js b/web/src/stream_data.jssimilarity index 100%rename from static/js/stream_data.jsrename to web/src/stream_data.jsdiff --git a/static/js/stream_edit.js b/web/src/stream_edit.jssimilarity index 100%rename from static/js/stream_edit.jsrename to web/src/stream_edit.jsdiff --git a/static/js/stream_edit_subscribers.js b/web/src/stream_edit_subscribers.jssimilarity index 100%rename from static/js/stream_edit_subscribers.jsrename to web/src/stream_edit_subscribers.jsdiff --git a/static/js/stream_events.js b/web/src/stream_events.jssimilarity index 100%rename from static/js/stream_events.jsrename to web/src/stream_events.jsdiff --git a/static/js/stream_list.js b/web/src/stream_list.jssimilarity index 100%rename from static/js/stream_list.jsrename to web/src/stream_list.jsdiff --git a/static/js/stream_muting.js b/web/src/stream_muting.jssimilarity index 100%rename from static/js/stream_muting.jsrename to web/src/stream_muting.jsdiff --git a/static/js/stream_pill.js b/web/src/stream_pill.jssimilarity index 100%rename from static/js/stream_pill.jsrename to web/src/stream_pill.jsdiff --git a/static/js/stream_popover.js b/web/src/stream_popover.jssimilarity index 99%rename from static/js/stream_popover.jsrename to web/src/stream_popover.jsindex 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.jssimilarity index 100%rename from static/js/stream_settings_containers.jsrename to web/src/stream_settings_containers.jsdiff --git a/static/js/stream_settings_data.js b/web/src/stream_settings_data.jssimilarity index 100%rename from static/js/stream_settings_data.jsrename to web/src/stream_settings_data.jsdiff --git a/static/js/stream_settings_ui.js b/web/src/stream_settings_ui.jssimilarity index 100%rename from static/js/stream_settings_ui.jsrename to web/src/stream_settings_ui.jsdiff --git a/static/js/stream_sort.js b/web/src/stream_sort.jssimilarity index 100%rename from static/js/stream_sort.jsrename to web/src/stream_sort.jsdiff --git a/static/js/stream_topic_history.js b/web/src/stream_topic_history.jssimilarity index 100%rename from static/js/stream_topic_history.jsrename to web/src/stream_topic_history.jsdiff --git a/static/js/stream_topic_history_util.js b/web/src/stream_topic_history_util.jssimilarity index 100%rename from static/js/stream_topic_history_util.jsrename to web/src/stream_topic_history_util.jsdiff --git a/static/js/stream_ui_updates.js b/web/src/stream_ui_updates.jssimilarity index 100%rename from static/js/stream_ui_updates.jsrename to web/src/stream_ui_updates.jsdiff --git a/static/js/sub_store.ts b/web/src/sub_store.tssimilarity index 100%rename from static/js/sub_store.tsrename to web/src/sub_store.tsdiff --git a/static/js/submessage.js b/web/src/submessage.jssimilarity index 100%rename from static/js/submessage.jsrename to web/src/submessage.jsdiff --git a/static/js/subscriber_api.js b/web/src/subscriber_api.jssimilarity index 100%rename from static/js/subscriber_api.jsrename to web/src/subscriber_api.jsdiff --git a/static/js/templates.js b/web/src/templates.jssimilarity index 100%rename from static/js/templates.jsrename to web/src/templates.jsdiff --git a/static/js/timerender.ts b/web/src/timerender.tssimilarity index 100%rename from static/js/timerender.tsrename to web/src/timerender.tsdiff --git a/static/js/tippyjs.js b/web/src/tippyjs.jssimilarity index 100%rename from static/js/tippyjs.jsrename to web/src/tippyjs.jsdiff --git a/static/js/todo_widget.js b/web/src/todo_widget.jssimilarity index 100%rename from static/js/todo_widget.jsrename to web/src/todo_widget.jsdiff --git a/static/js/top_left_corner.js b/web/src/top_left_corner.jssimilarity index 100%rename from static/js/top_left_corner.jsrename to web/src/top_left_corner.jsdiff --git a/static/js/topic_generator.js b/web/src/topic_generator.jssimilarity index 100%rename from static/js/topic_generator.jsrename to web/src/topic_generator.jsdiff --git a/static/js/topic_list.js b/web/src/topic_list.jssimilarity index 100%rename from static/js/topic_list.jsrename to web/src/topic_list.jsdiff --git a/static/js/topic_list_data.js b/web/src/topic_list_data.jssimilarity index 98%rename from static/js/topic_list_data.jsrename to web/src/topic_list_data.jsindex 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.jssimilarity index 100%rename from static/js/topic_zoom.jsrename to web/src/topic_zoom.jsdiff --git a/static/js/transmit.js b/web/src/transmit.jssimilarity index 100%rename from static/js/transmit.jsrename to web/src/transmit.jsdiff --git a/static/js/tutorial.js b/web/src/tutorial.jssimilarity index 100%rename from static/js/tutorial.jsrename to web/src/tutorial.jsdiff --git a/static/js/typeahead_helper.js b/web/src/typeahead_helper.jssimilarity index 99%rename from static/js/typeahead_helper.jsrename to web/src/typeahead_helper.jsindex 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.tssimilarity index 100%rename from static/js/types.tsrename to web/src/types.tsdiff --git a/static/js/types/stacktrace-gps/index.d.ts b/web/src/types/stacktrace-gps/index.d.tssimilarity index 100%rename from static/js/types/stacktrace-gps/index.d.tsrename to web/src/types/stacktrace-gps/index.d.tsdiff --git a/static/js/typing.js b/web/src/typing.jssimilarity index 97%rename from static/js/typing.jsrename to web/src/typing.jsindex 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.jssimilarity index 100%rename from static/js/typing_data.jsrename to web/src/typing_data.jsdiff --git a/static/js/typing_events.js b/web/src/typing_events.jssimilarity index 100%rename from static/js/typing_events.jsrename to web/src/typing_events.jsdiff --git a/static/js/ui.js b/web/src/ui.jssimilarity index 100%rename from static/js/ui.jsrename to web/src/ui.jsdiff --git a/static/js/ui_init.js b/web/src/ui_init.jssimilarity index 99%rename from static/js/ui_init.jsrename to web/src/ui_init.jsindex 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.tssimilarity index 100%rename from static/js/ui_report.tsrename to web/src/ui_report.tsdiff --git a/static/js/ui_util.ts b/web/src/ui_util.tssimilarity index 100%rename from static/js/ui_util.tsrename to web/src/ui_util.tsdiff --git a/static/js/unread.js b/web/src/unread.jssimilarity index 100%rename from static/js/unread.jsrename to web/src/unread.jsdiff --git a/static/js/unread_ops.js b/web/src/unread_ops.jssimilarity index 100%rename from static/js/unread_ops.jsrename to web/src/unread_ops.jsdiff --git a/static/js/unread_ui.js b/web/src/unread_ui.jssimilarity index 100%rename from static/js/unread_ui.jsrename to web/src/unread_ui.jsdiff --git a/static/js/upload.js b/web/src/upload.jssimilarity index 100%rename from static/js/upload.jsrename to web/src/upload.jsdiff --git a/static/js/upload_widget.ts b/web/src/upload_widget.tssimilarity index 100%rename from static/js/upload_widget.tsrename to web/src/upload_widget.tsdiff --git a/static/js/user_events.js b/web/src/user_events.jssimilarity index 100%rename from static/js/user_events.jsrename to web/src/user_events.jsdiff --git a/static/js/user_group_create.js b/web/src/user_group_create.jssimilarity index 100%rename from static/js/user_group_create.jsrename to web/src/user_group_create.jsdiff --git a/static/js/user_group_create_members.js b/web/src/user_group_create_members.jssimilarity index 100%rename from static/js/user_group_create_members.jsrename to web/src/user_group_create_members.jsdiff --git a/static/js/user_group_create_members_data.js b/web/src/user_group_create_members_data.jssimilarity index 100%rename from static/js/user_group_create_members_data.jsrename to web/src/user_group_create_members_data.jsdiff --git a/static/js/user_group_edit.js b/web/src/user_group_edit.jssimilarity index 100%rename from static/js/user_group_edit.jsrename to web/src/user_group_edit.jsdiff --git a/static/js/user_group_edit_members.js b/web/src/user_group_edit_members.jssimilarity index 100%rename from static/js/user_group_edit_members.jsrename to web/src/user_group_edit_members.jsdiff --git a/static/js/user_group_pill.js b/web/src/user_group_pill.jssimilarity index 100%rename from static/js/user_group_pill.jsrename to web/src/user_group_pill.jsdiff --git a/static/js/user_group_ui_updates.js b/web/src/user_group_ui_updates.jssimilarity index 100%rename from static/js/user_group_ui_updates.jsrename to web/src/user_group_ui_updates.jsdiff --git a/static/js/user_groups.ts b/web/src/user_groups.tssimilarity index 100%rename from static/js/user_groups.tsrename to web/src/user_groups.tsdiff --git a/static/js/user_groups_settings_ui.js b/web/src/user_groups_settings_ui.jssimilarity index 100%rename from static/js/user_groups_settings_ui.jsrename to web/src/user_groups_settings_ui.jsdiff --git a/static/js/user_pill.js b/web/src/user_pill.jssimilarity index 100%rename from static/js/user_pill.jsrename to web/src/user_pill.jsdiff --git a/static/js/user_profile.js b/web/src/user_profile.jssimilarity index 100%rename from static/js/user_profile.jsrename to web/src/user_profile.jsdiff --git a/static/js/user_search.js b/web/src/user_search.jssimilarity index 100%rename from static/js/user_search.jsrename to web/src/user_search.jsdiff --git a/static/js/user_settings.ts b/web/src/user_settings.tssimilarity index 100%rename from static/js/user_settings.tsrename to web/src/user_settings.tsdiff --git a/static/js/user_status.js b/web/src/user_status.jssimilarity index 100%rename from static/js/user_status.jsrename to web/src/user_status.jsdiff --git a/static/js/user_status_ui.js b/web/src/user_status_ui.jssimilarity index 100%rename from static/js/user_status_ui.jsrename to web/src/user_status_ui.jsdiff --git a/static/js/user_topics.js b/web/src/user_topics.jssimilarity index 100%rename from static/js/user_topics.jsrename to web/src/user_topics.jsdiff --git a/static/js/util.ts b/web/src/util.tssimilarity index 100%rename from static/js/util.tsrename to web/src/util.tsdiff --git a/static/js/vdom.js b/web/src/vdom.jssimilarity index 100%rename from static/js/vdom.jsrename to web/src/vdom.jsdiff --git a/static/js/watchdog.ts b/web/src/watchdog.tssimilarity index 100%rename from static/js/watchdog.tsrename to web/src/watchdog.tsdiff --git a/static/js/webpack_public_path.js b/web/src/webpack_public_path.jssimilarity index 100%rename from static/js/webpack_public_path.jsrename to web/src/webpack_public_path.jsdiff --git a/static/js/widgetize.js b/web/src/widgetize.jssimilarity index 100%rename from static/js/widgetize.jsrename to web/src/widgetize.jsdiff --git a/static/js/zcommand.js b/web/src/zcommand.jssimilarity index 100%rename from static/js/zcommand.jsrename to web/src/zcommand.jsdiff --git a/static/js/zform.js b/web/src/zform.jssimilarity index 100%rename from static/js/zform.jsrename to web/src/zform.jsdiff --git a/static/js/zulip_test.js b/web/src/zulip_test.jssimilarity index 100%rename from static/js/zulip_test.jsrename to web/src/zulip_test.jsdiff --git a/static/styles/alerts.css b/web/styles/alerts.csssimilarity index 100%rename from static/styles/alerts.cssrename to web/styles/alerts.cssdiff --git a/static/styles/app_components.css b/web/styles/app_components.csssimilarity index 100%rename from static/styles/app_components.cssrename to web/styles/app_components.cssdiff --git a/static/styles/components.css b/web/styles/components.csssimilarity index 100%rename from static/styles/components.cssrename to web/styles/components.cssdiff --git a/static/styles/compose.css b/web/styles/compose.csssimilarity index 100%rename from static/styles/compose.cssrename to web/styles/compose.cssdiff --git a/static/styles/dark_theme.css b/web/styles/dark_theme.csssimilarity index 100%rename from static/styles/dark_theme.cssrename to web/styles/dark_theme.cssdiff --git a/static/styles/drafts.css b/web/styles/drafts.csssimilarity index 100%rename from static/styles/drafts.cssrename to web/styles/drafts.cssdiff --git a/static/styles/hotspots.css b/web/styles/hotspots.csssimilarity index 100%rename from static/styles/hotspots.cssrename to web/styles/hotspots.cssdiff --git a/static/styles/image_upload_widget.css b/web/styles/image_upload_widget.csssimilarity index 100%rename from static/styles/image_upload_widget.cssrename to web/styles/image_upload_widget.cssdiff --git a/static/styles/informational_overlays.css b/web/styles/informational_overlays.csssimilarity index 100%rename from static/styles/informational_overlays.cssrename to web/styles/informational_overlays.cssdiff --git a/static/styles/input_pill.css b/web/styles/input_pill.csssimilarity index 100%rename from static/styles/input_pill.cssrename to web/styles/input_pill.cssdiff --git a/static/styles/left_sidebar.css b/web/styles/left_sidebar.csssimilarity index 100%rename from static/styles/left_sidebar.cssrename to web/styles/left_sidebar.cssdiff --git a/static/styles/lightbox.css b/web/styles/lightbox.csssimilarity index 100%rename from static/styles/lightbox.cssrename to web/styles/lightbox.cssdiff --git a/static/styles/message_edit_history.css b/web/styles/message_edit_history.csssimilarity index 100%rename from static/styles/message_edit_history.cssrename to web/styles/message_edit_history.cssdiff --git a/static/styles/message_row.css b/web/styles/message_row.csssimilarity index 100%rename from static/styles/message_row.cssrename to web/styles/message_row.cssdiff --git a/static/styles/modal.css b/web/styles/modal.csssimilarity index 100%rename from static/styles/modal.cssrename to web/styles/modal.cssdiff --git a/static/styles/popovers.css b/web/styles/popovers.csssimilarity index 100%rename from static/styles/popovers.cssrename to web/styles/popovers.cssdiff --git a/static/styles/portico/activity.css b/web/styles/portico/activity.csssimilarity index 100%rename from static/styles/portico/activity.cssrename to web/styles/portico/activity.cssdiff --git a/static/styles/portico/billing.css b/web/styles/portico/billing.csssimilarity index 100%rename from static/styles/portico/billing.cssrename to web/styles/portico/billing.cssdiff --git a/static/styles/portico/email_log.css b/web/styles/portico/email_log.csssimilarity index 100%rename from static/styles/portico/email_log.cssrename to web/styles/portico/email_log.cssdiff --git a/static/styles/portico/integrations.css b/web/styles/portico/integrations.csssimilarity index 100%rename from static/styles/portico/integrations.cssrename to web/styles/portico/integrations.cssdiff --git a/static/styles/portico/integrations_dev_panel.css b/web/styles/portico/integrations_dev_panel.csssimilarity index 100%rename from static/styles/portico/integrations_dev_panel.cssrename to web/styles/portico/integrations_dev_panel.cssdiff --git a/static/styles/portico/landing_page.css b/web/styles/portico/landing_page.csssimilarity index 100%rename from static/styles/portico/landing_page.cssrename to web/styles/portico/landing_page.cssdiff --git a/static/styles/portico/markdown.css b/web/styles/portico/markdown.csssimilarity index 100%rename from static/styles/portico/markdown.cssrename to web/styles/portico/markdown.cssdiff --git a/static/styles/portico/portico.css b/web/styles/portico/portico.csssimilarity index 100%rename from static/styles/portico/portico.cssrename to web/styles/portico/portico.cssdiff --git a/static/styles/portico/portico_signin.css b/web/styles/portico/portico_signin.csssimilarity index 100%rename from static/styles/portico/portico_signin.cssrename to web/styles/portico/portico_signin.cssdiff --git a/static/styles/portico/portico_styles.css b/web/styles/portico/portico_styles.csssimilarity index 100%rename from static/styles/portico/portico_styles.cssrename to web/styles/portico/portico_styles.cssdiff --git a/static/styles/portico/stats.css b/web/styles/portico/stats.csssimilarity index 100%rename from static/styles/portico/stats.cssrename to web/styles/portico/stats.cssdiff --git a/static/styles/pygments.css b/web/styles/pygments.csssimilarity index 100%rename from static/styles/pygments.cssrename to web/styles/pygments.cssdiff --git a/static/styles/reactions.css b/web/styles/reactions.csssimilarity index 100%rename from static/styles/reactions.cssrename to web/styles/reactions.cssdiff --git a/static/styles/recent_topics.css b/web/styles/recent_topics.csssimilarity index 100%rename from static/styles/recent_topics.cssrename to web/styles/recent_topics.cssdiff --git a/static/styles/rendered_markdown.css b/web/styles/rendered_markdown.csssimilarity index 100%rename from static/styles/rendered_markdown.cssrename to web/styles/rendered_markdown.cssdiff --git a/static/styles/right_sidebar.css b/web/styles/right_sidebar.csssimilarity index 100%rename from static/styles/right_sidebar.cssrename to web/styles/right_sidebar.cssdiff --git a/static/styles/settings.css b/web/styles/settings.csssimilarity index 100%rename from static/styles/settings.cssrename to web/styles/settings.cssdiff --git a/static/styles/subscriptions.css b/web/styles/subscriptions.csssimilarity index 100%rename from static/styles/subscriptions.cssrename to web/styles/subscriptions.cssdiff --git a/static/styles/tooltips.css b/web/styles/tooltips.csssimilarity index 100%rename from static/styles/tooltips.cssrename to web/styles/tooltips.cssdiff --git a/static/styles/typing_notifications.css b/web/styles/typing_notifications.csssimilarity index 100%rename from static/styles/typing_notifications.cssrename to web/styles/typing_notifications.cssdiff --git a/static/styles/user_circles.css b/web/styles/user_circles.csssimilarity index 100%rename from static/styles/user_circles.cssrename to web/styles/user_circles.cssdiff --git a/static/styles/user_status.css b/web/styles/user_status.csssimilarity index 100%rename from static/styles/user_status.cssrename to web/styles/user_status.cssdiff --git a/static/styles/widgets.css b/web/styles/widgets.csssimilarity index 100%rename from static/styles/widgets.cssrename to web/styles/widgets.cssdiff --git a/static/styles/zulip.css b/web/styles/zulip.csssimilarity index 100%rename from static/styles/zulip.cssrename to web/styles/zulip.cssdiff --git a/static/templates/about_zulip.hbs b/web/templates/about_zulip.hbssimilarity index 93%rename from static/templates/about_zulip.hbsrename to web/templates/about_zulip.hbsindex 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">×</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.hbssimilarity index 100%rename from static/templates/actions_popover_content.hbsrename to web/templates/actions_popover_content.hbsdiff --git a/static/templates/actions_popover_template.hbs b/web/templates/actions_popover_template.hbssimilarity index 100%rename from static/templates/actions_popover_template.hbsrename to web/templates/actions_popover_template.hbsdiff --git a/static/templates/all_messages_sidebar_actions.hbs b/web/templates/all_messages_sidebar_actions.hbssimilarity index 100%rename from static/templates/all_messages_sidebar_actions.hbsrename to web/templates/all_messages_sidebar_actions.hbsdiff --git a/static/templates/announce_stream_docs.hbs b/web/templates/announce_stream_docs.hbssimilarity index 100%rename from static/templates/announce_stream_docs.hbsrename to web/templates/announce_stream_docs.hbsdiff --git a/static/templates/blueslip_stacktrace.hbs b/web/templates/blueslip_stacktrace.hbssimilarity index 100%rename from static/templates/blueslip_stacktrace.hbsrename to web/templates/blueslip_stacktrace.hbsdiff --git a/static/templates/bookend.hbs b/web/templates/bookend.hbssimilarity index 100%rename from static/templates/bookend.hbsrename to web/templates/bookend.hbsdiff --git a/static/templates/buddy_list_tooltip_content.hbs b/web/templates/buddy_list_tooltip_content.hbssimilarity index 100%rename from static/templates/buddy_list_tooltip_content.hbsrename to web/templates/buddy_list_tooltip_content.hbsdiff --git a/static/templates/change_email_modal.hbs b/web/templates/change_email_modal.hbssimilarity index 100%rename from static/templates/change_email_modal.hbsrename to web/templates/change_email_modal.hbsdiff --git a/static/templates/compose.hbs b/web/templates/compose.hbssimilarity index 100%rename from static/templates/compose.hbsrename to web/templates/compose.hbsdiff --git a/static/templates/compose_banner/compose_banner.hbs b/web/templates/compose_banner/compose_banner.hbssimilarity index 100%rename from static/templates/compose_banner/compose_banner.hbsrename to web/templates/compose_banner/compose_banner.hbsdiff --git a/static/templates/compose_banner/message_sent_banner.hbs b/web/templates/compose_banner/message_sent_banner.hbssimilarity index 100%rename from static/templates/compose_banner/message_sent_banner.hbsrename to web/templates/compose_banner/message_sent_banner.hbsdiff --git a/static/templates/compose_banner/not_subscribed_warning.hbs b/web/templates/compose_banner/not_subscribed_warning.hbssimilarity index 100%rename from static/templates/compose_banner/not_subscribed_warning.hbsrename to web/templates/compose_banner/not_subscribed_warning.hbsdiff --git a/static/templates/compose_banner/private_stream_warning.hbs b/web/templates/compose_banner/private_stream_warning.hbssimilarity index 100%rename from static/templates/compose_banner/private_stream_warning.hbsrename to web/templates/compose_banner/private_stream_warning.hbsdiff --git a/static/templates/compose_banner/stream_does_not_exist_error.hbs b/web/templates/compose_banner/stream_does_not_exist_error.hbssimilarity index 100%rename from static/templates/compose_banner/stream_does_not_exist_error.hbsrename to web/templates/compose_banner/stream_does_not_exist_error.hbsdiff --git a/static/templates/compose_banner/upload_banner.hbs b/web/templates/compose_banner/upload_banner.hbssimilarity index 100%rename from static/templates/compose_banner/upload_banner.hbsrename to web/templates/compose_banner/upload_banner.hbsdiff --git a/static/templates/compose_banner/wildcard_warning.hbs b/web/templates/compose_banner/wildcard_warning.hbssimilarity index 100%rename from static/templates/compose_banner/wildcard_warning.hbsrename to web/templates/compose_banner/wildcard_warning.hbsdiff --git a/static/templates/compose_control_buttons.hbs b/web/templates/compose_control_buttons.hbssimilarity index 100%rename from static/templates/compose_control_buttons.hbsrename to web/templates/compose_control_buttons.hbsdiff --git a/static/templates/compose_control_buttons_in_popover.hbs b/web/templates/compose_control_buttons_in_popover.hbssimilarity index 100%rename from static/templates/compose_control_buttons_in_popover.hbsrename to web/templates/compose_control_buttons_in_popover.hbsdiff --git a/static/templates/compose_control_buttons_popover.hbs b/web/templates/compose_control_buttons_popover.hbssimilarity index 100%rename from static/templates/compose_control_buttons_popover.hbsrename to web/templates/compose_control_buttons_popover.hbsdiff --git a/static/templates/compose_select_enter_behaviour_popover.hbs b/web/templates/compose_select_enter_behaviour_popover.hbssimilarity index 100%rename from static/templates/compose_select_enter_behaviour_popover.hbsrename to web/templates/compose_select_enter_behaviour_popover.hbsdiff --git a/static/templates/confirm_dialog/confirm_deactivate_bot.hbs b/web/templates/confirm_dialog/confirm_deactivate_bot.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_deactivate_bot.hbsrename to web/templates/confirm_dialog/confirm_deactivate_bot.hbsdiff --git a/static/templates/confirm_dialog/confirm_deactivate_custom_emoji.hbs b/web/templates/confirm_dialog/confirm_deactivate_custom_emoji.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_deactivate_custom_emoji.hbsrename to web/templates/confirm_dialog/confirm_deactivate_custom_emoji.hbsdiff --git a/static/templates/confirm_dialog/confirm_deactivate_own_user.hbs b/web/templates/confirm_dialog/confirm_deactivate_own_user.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_deactivate_own_user.hbsrename to web/templates/confirm_dialog/confirm_deactivate_own_user.hbsdiff --git a/static/templates/confirm_dialog/confirm_deactivate_realm.hbs b/web/templates/confirm_dialog/confirm_deactivate_realm.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_deactivate_realm.hbsrename to web/templates/confirm_dialog/confirm_deactivate_realm.hbsdiff --git a/static/templates/confirm_dialog/confirm_deactivate_stream.hbs b/web/templates/confirm_dialog/confirm_deactivate_stream.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_deactivate_stream.hbsrename to web/templates/confirm_dialog/confirm_deactivate_stream.hbsdiff --git a/static/templates/confirm_dialog/confirm_deactivate_user.hbs b/web/templates/confirm_dialog/confirm_deactivate_user.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_deactivate_user.hbsrename to web/templates/confirm_dialog/confirm_deactivate_user.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_all_drafts.hbs b/web/templates/confirm_dialog/confirm_delete_all_drafts.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_all_drafts.hbsrename to web/templates/confirm_dialog/confirm_delete_all_drafts.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_attachment.hbs b/web/templates/confirm_dialog/confirm_delete_attachment.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_attachment.hbsrename to web/templates/confirm_dialog/confirm_delete_attachment.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_data_export.hbs b/web/templates/confirm_dialog/confirm_delete_data_export.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_data_export.hbsrename to web/templates/confirm_dialog/confirm_delete_data_export.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_linkifier.hbs b/web/templates/confirm_dialog/confirm_delete_linkifier.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_linkifier.hbsrename to web/templates/confirm_dialog/confirm_delete_linkifier.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_message.hbs b/web/templates/confirm_dialog/confirm_delete_message.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_message.hbsrename to web/templates/confirm_dialog/confirm_delete_message.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_playground.hbs b/web/templates/confirm_dialog/confirm_delete_playground.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_playground.hbsrename to web/templates/confirm_dialog/confirm_delete_playground.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_profile_field.hbs b/web/templates/confirm_dialog/confirm_delete_profile_field.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_profile_field.hbsrename to web/templates/confirm_dialog/confirm_delete_profile_field.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_profile_field_option.hbs b/web/templates/confirm_dialog/confirm_delete_profile_field_option.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_profile_field_option.hbsrename to web/templates/confirm_dialog/confirm_delete_profile_field_option.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_topic.hbs b/web/templates/confirm_dialog/confirm_delete_topic.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_topic.hbsrename to web/templates/confirm_dialog/confirm_delete_topic.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_user.hbs b/web/templates/confirm_dialog/confirm_delete_user.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_user.hbsrename to web/templates/confirm_dialog/confirm_delete_user.hbsdiff --git a/static/templates/confirm_dialog/confirm_delete_user_avatar.hbs b/web/templates/confirm_dialog/confirm_delete_user_avatar.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_delete_user_avatar.hbsrename to web/templates/confirm_dialog/confirm_delete_user_avatar.hbsdiff --git a/static/templates/confirm_dialog/confirm_emoji_settings_warning.hbs b/web/templates/confirm_dialog/confirm_emoji_settings_warning.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_emoji_settings_warning.hbsrename to web/templates/confirm_dialog/confirm_emoji_settings_warning.hbsdiff --git a/static/templates/confirm_dialog/confirm_mute_user.hbs b/web/templates/confirm_dialog/confirm_mute_user.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_mute_user.hbsrename to web/templates/confirm_dialog/confirm_mute_user.hbsdiff --git a/static/templates/confirm_dialog/confirm_reactivate_bot.hbs b/web/templates/confirm_dialog/confirm_reactivate_bot.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_reactivate_bot.hbsrename to web/templates/confirm_dialog/confirm_reactivate_bot.hbsdiff --git a/static/templates/confirm_dialog/confirm_reactivate_user.hbs b/web/templates/confirm_dialog/confirm_reactivate_user.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_reactivate_user.hbsrename to web/templates/confirm_dialog/confirm_reactivate_user.hbsdiff --git a/static/templates/confirm_dialog/confirm_resend_invite.hbs b/web/templates/confirm_dialog/confirm_resend_invite.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_resend_invite.hbsrename to web/templates/confirm_dialog/confirm_resend_invite.hbsdiff --git a/static/templates/confirm_dialog/confirm_revoke_invite.hbs b/web/templates/confirm_dialog/confirm_revoke_invite.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_revoke_invite.hbsrename to web/templates/confirm_dialog/confirm_revoke_invite.hbsdiff --git a/static/templates/confirm_dialog/confirm_subscription_invites_warning.hbs b/web/templates/confirm_dialog/confirm_subscription_invites_warning.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_subscription_invites_warning.hbsrename to web/templates/confirm_dialog/confirm_subscription_invites_warning.hbsdiff --git a/static/templates/confirm_dialog/confirm_unstar_all_messages.hbs b/web/templates/confirm_dialog/confirm_unstar_all_messages.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_unstar_all_messages.hbsrename to web/templates/confirm_dialog/confirm_unstar_all_messages.hbsdiff --git a/static/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbs b/web/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbsrename to web/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbsdiff --git a/static/templates/confirm_dialog/confirm_unsubscribe_private_stream.hbs b/web/templates/confirm_dialog/confirm_unsubscribe_private_stream.hbssimilarity index 100%rename from static/templates/confirm_dialog/confirm_unsubscribe_private_stream.hbsrename to web/templates/confirm_dialog/confirm_unsubscribe_private_stream.hbsdiff --git a/static/templates/copy_code_button.hbs b/web/templates/copy_code_button.hbssimilarity index 100%rename from static/templates/copy_code_button.hbsrename to web/templates/copy_code_button.hbsdiff --git a/static/templates/copy_invite_link.hbs b/web/templates/copy_invite_link.hbssimilarity index 100%rename from static/templates/copy_invite_link.hbsrename to web/templates/copy_invite_link.hbsdiff --git a/static/templates/copy_message_button.hbs b/web/templates/copy_message_button.hbssimilarity index 100%rename from static/templates/copy_message_button.hbsrename to web/templates/copy_message_button.hbsdiff --git a/static/templates/copy_to_clipboard_svg.hbs b/web/templates/copy_to_clipboard_svg.hbssimilarity index 100%rename from static/templates/copy_to_clipboard_svg.hbsrename to web/templates/copy_to_clipboard_svg.hbsdiff --git a/static/templates/default_language_modal.hbs b/web/templates/default_language_modal.hbssimilarity index 100%rename from static/templates/default_language_modal.hbsrename to web/templates/default_language_modal.hbsdiff --git a/static/templates/dialog_change_password.hbs b/web/templates/dialog_change_password.hbssimilarity index 100%rename from static/templates/dialog_change_password.hbsrename to web/templates/dialog_change_password.hbsdiff --git a/static/templates/dialog_widget.hbs b/web/templates/dialog_widget.hbssimilarity index 100%rename from static/templates/dialog_widget.hbsrename to web/templates/dialog_widget.hbsdiff --git a/static/templates/draft.hbs b/web/templates/draft.hbssimilarity index 100%rename from static/templates/draft.hbsrename to web/templates/draft.hbsdiff --git a/static/templates/draft_table_body.hbs b/web/templates/draft_table_body.hbssimilarity index 100%rename from static/templates/draft_table_body.hbsrename to web/templates/draft_table_body.hbsdiff --git a/static/templates/drafts_sidebar_action.hbs b/web/templates/drafts_sidebar_action.hbssimilarity index 100%rename from static/templates/drafts_sidebar_action.hbsrename to web/templates/drafts_sidebar_action.hbsdiff --git a/static/templates/edit_content_button.hbs b/web/templates/edit_content_button.hbssimilarity index 100%rename from static/templates/edit_content_button.hbsrename to web/templates/edit_content_button.hbsdiff --git a/static/templates/edited_notice.hbs b/web/templates/edited_notice.hbssimilarity index 100%rename from static/templates/edited_notice.hbsrename to web/templates/edited_notice.hbsdiff --git a/static/templates/embedded_bot_config_item.hbs b/web/templates/embedded_bot_config_item.hbssimilarity index 100%rename from static/templates/embedded_bot_config_item.hbsrename to web/templates/embedded_bot_config_item.hbsdiff --git a/static/templates/emoji_popover.hbs b/web/templates/emoji_popover.hbssimilarity index 100%rename from static/templates/emoji_popover.hbsrename to web/templates/emoji_popover.hbsdiff --git a/static/templates/emoji_popover_content.hbs b/web/templates/emoji_popover_content.hbssimilarity index 100%rename from static/templates/emoji_popover_content.hbsrename to web/templates/emoji_popover_content.hbsdiff --git a/static/templates/emoji_popover_emoji.hbs b/web/templates/emoji_popover_emoji.hbssimilarity index 100%rename from static/templates/emoji_popover_emoji.hbsrename to web/templates/emoji_popover_emoji.hbsdiff --git a/static/templates/emoji_popover_search_results.hbs b/web/templates/emoji_popover_search_results.hbssimilarity index 100%rename from static/templates/emoji_popover_search_results.hbsrename to web/templates/emoji_popover_search_results.hbsdiff --git a/static/templates/emoji_showcase.hbs b/web/templates/emoji_showcase.hbssimilarity index 100%rename from static/templates/emoji_showcase.hbsrename to web/templates/emoji_showcase.hbsdiff --git a/static/templates/empty_feed_notice.hbs b/web/templates/empty_feed_notice.hbssimilarity index 100%rename from static/templates/empty_feed_notice.hbsrename to web/templates/empty_feed_notice.hbsdiff --git a/static/templates/favicon.svg.hbs b/web/templates/favicon.svg.hbssimilarity index 100%rename from static/templates/favicon.svg.hbsrename to web/templates/favicon.svg.hbsdiff --git a/static/templates/feedback_container.hbs b/web/templates/feedback_container.hbssimilarity index 100%rename from static/templates/feedback_container.hbsrename to web/templates/feedback_container.hbsdiff --git a/static/templates/filter_topics.hbs b/web/templates/filter_topics.hbssimilarity index 100%rename from static/templates/filter_topics.hbsrename to web/templates/filter_topics.hbsdiff --git a/static/templates/gear_menu.hbs b/web/templates/gear_menu.hbssimilarity index 100%rename from static/templates/gear_menu.hbsrename to web/templates/gear_menu.hbsdiff --git a/static/templates/giphy_picker.hbs b/web/templates/giphy_picker.hbssimilarity index 100%rename from static/templates/giphy_picker.hbsrename to web/templates/giphy_picker.hbsdiff --git a/static/templates/giphy_picker_mobile.hbs b/web/templates/giphy_picker_mobile.hbssimilarity index 100%rename from static/templates/giphy_picker_mobile.hbsrename to web/templates/giphy_picker_mobile.hbsdiff --git a/static/templates/help_link_widget.hbs b/web/templates/help_link_widget.hbssimilarity index 100%rename from static/templates/help_link_widget.hbsrename to web/templates/help_link_widget.hbsdiff --git a/static/templates/hotspot_icon.hbs b/web/templates/hotspot_icon.hbssimilarity index 100%rename from static/templates/hotspot_icon.hbsrename to web/templates/hotspot_icon.hbsdiff --git a/static/templates/hotspot_overlay.hbs b/web/templates/hotspot_overlay.hbssimilarity index 100%rename from static/templates/hotspot_overlay.hbsrename to web/templates/hotspot_overlay.hbsdiff --git a/static/templates/input_pill.hbs b/web/templates/input_pill.hbssimilarity index 100%rename from static/templates/input_pill.hbsrename to web/templates/input_pill.hbsdiff --git a/static/templates/invitation_failed_error.hbs b/web/templates/invitation_failed_error.hbssimilarity index 100%rename from static/templates/invitation_failed_error.hbsrename to web/templates/invitation_failed_error.hbsdiff --git a/static/templates/invite_subscription.hbs b/web/templates/invite_subscription.hbssimilarity index 100%rename from static/templates/invite_subscription.hbsrename to web/templates/invite_subscription.hbsdiff --git a/static/templates/invite_user.hbs b/web/templates/invite_user.hbssimilarity index 100%rename from static/templates/invite_user.hbsrename to web/templates/invite_user.hbsdiff --git a/static/templates/keyboard_shortcuts.hbs b/web/templates/keyboard_shortcuts.hbssimilarity index 99%rename from static/templates/keyboard_shortcuts.hbsrename to web/templates/keyboard_shortcuts.hbsindex 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.hbssimilarity index 100%rename from static/templates/left_sidebar.hbsrename to web/templates/left_sidebar.hbsdiff --git a/static/templates/left_sidebar_stream_setting_popover.hbs b/web/templates/left_sidebar_stream_setting_popover.hbssimilarity index 100%rename from static/templates/left_sidebar_stream_setting_popover.hbsrename to web/templates/left_sidebar_stream_setting_popover.hbsdiff --git a/static/templates/lightbox_overlay.hbs b/web/templates/lightbox_overlay.hbssimilarity index 100%rename from static/templates/lightbox_overlay.hbsrename to web/templates/lightbox_overlay.hbsdiff --git a/static/templates/loader.hbs b/web/templates/loader.hbssimilarity index 100%rename from static/templates/loader.hbsrename to web/templates/loader.hbsdiff --git a/static/templates/login_to_access.hbs b/web/templates/login_to_access.hbssimilarity index 100%rename from static/templates/login_to_access.hbsrename to web/templates/login_to_access.hbsdiff --git a/static/templates/login_to_view_image_button.hbs b/web/templates/login_to_view_image_button.hbssimilarity index 100%rename from static/templates/login_to_view_image_button.hbsrename to web/templates/login_to_view_image_button.hbsdiff --git a/static/templates/mark_as_read_turned_off_banner.hbs b/web/templates/mark_as_read_turned_off_banner.hbssimilarity index 100%rename from static/templates/mark_as_read_turned_off_banner.hbsrename to web/templates/mark_as_read_turned_off_banner.hbsdiff --git a/static/templates/markdown_help.hbs b/web/templates/markdown_help.hbssimilarity index 100%rename from static/templates/markdown_help.hbsrename to web/templates/markdown_help.hbsdiff --git a/static/templates/markdown_time_tooltip.hbs b/web/templates/markdown_time_tooltip.hbssimilarity index 100%rename from static/templates/markdown_time_tooltip.hbsrename to web/templates/markdown_time_tooltip.hbsdiff --git a/static/templates/markdown_timestamp.hbs b/web/templates/markdown_timestamp.hbssimilarity index 100%rename from static/templates/markdown_timestamp.hbsrename to web/templates/markdown_timestamp.hbsdiff --git a/static/templates/me_message.hbs b/web/templates/me_message.hbssimilarity index 100%rename from static/templates/me_message.hbsrename to web/templates/me_message.hbsdiff --git a/static/templates/message_avatar.hbs b/web/templates/message_avatar.hbssimilarity index 100%rename from static/templates/message_avatar.hbsrename to web/templates/message_avatar.hbsdiff --git a/static/templates/message_body.hbs b/web/templates/message_body.hbssimilarity index 100%rename from static/templates/message_body.hbsrename to web/templates/message_body.hbsdiff --git a/static/templates/message_controls.hbs b/web/templates/message_controls.hbssimilarity index 100%rename from static/templates/message_controls.hbsrename to web/templates/message_controls.hbsdiff --git a/static/templates/message_edit_form.hbs b/web/templates/message_edit_form.hbssimilarity index 100%rename from static/templates/message_edit_form.hbsrename to web/templates/message_edit_form.hbsdiff --git a/static/templates/message_edit_history.hbs b/web/templates/message_edit_history.hbssimilarity index 100%rename from static/templates/message_edit_history.hbsrename to web/templates/message_edit_history.hbsdiff --git a/static/templates/message_feed_bottom_whitespace.hbs b/web/templates/message_feed_bottom_whitespace.hbssimilarity index 100%rename from static/templates/message_feed_bottom_whitespace.hbsrename to web/templates/message_feed_bottom_whitespace.hbsdiff --git a/static/templates/message_feed_errors.hbs b/web/templates/message_feed_errors.hbssimilarity index 100%rename from static/templates/message_feed_errors.hbsrename to web/templates/message_feed_errors.hbsdiff --git a/static/templates/message_group.hbs b/web/templates/message_group.hbssimilarity index 100%rename from static/templates/message_group.hbsrename to web/templates/message_group.hbsdiff --git a/static/templates/message_hidden_dialog.hbs b/web/templates/message_hidden_dialog.hbssimilarity index 100%rename from static/templates/message_hidden_dialog.hbsrename to web/templates/message_hidden_dialog.hbsdiff --git a/static/templates/message_history_modal.hbs b/web/templates/message_history_modal.hbssimilarity index 100%rename from static/templates/message_history_modal.hbsrename to web/templates/message_history_modal.hbsdiff --git a/static/templates/message_inline_image_tooltip.hbs b/web/templates/message_inline_image_tooltip.hbssimilarity index 100%rename from static/templates/message_inline_image_tooltip.hbsrename to web/templates/message_inline_image_tooltip.hbsdiff --git a/static/templates/message_reaction.hbs b/web/templates/message_reaction.hbssimilarity index 100%rename from static/templates/message_reaction.hbsrename to web/templates/message_reaction.hbsdiff --git a/static/templates/message_reactions.hbs b/web/templates/message_reactions.hbssimilarity index 100%rename from static/templates/message_reactions.hbsrename to web/templates/message_reactions.hbsdiff --git a/static/templates/message_view_header.hbs b/web/templates/message_view_header.hbssimilarity index 100%rename from static/templates/message_view_header.hbsrename to web/templates/message_view_header.hbsdiff --git a/static/templates/mobile_message_buttons_popover_content.hbs b/web/templates/mobile_message_buttons_popover_content.hbssimilarity index 100%rename from static/templates/mobile_message_buttons_popover_content.hbsrename to web/templates/mobile_message_buttons_popover_content.hbsdiff --git a/static/templates/more_pms.hbs b/web/templates/more_pms.hbssimilarity index 100%rename from static/templates/more_pms.hbsrename to web/templates/more_pms.hbsdiff --git a/static/templates/more_topics.hbs b/web/templates/more_topics.hbssimilarity index 100%rename from static/templates/more_topics.hbsrename to web/templates/more_topics.hbsdiff --git a/static/templates/more_topics_spinner.hbs b/web/templates/more_topics_spinner.hbssimilarity index 100%rename from static/templates/more_topics_spinner.hbsrename to web/templates/more_topics_spinner.hbsdiff --git a/static/templates/move_topic_to_stream.hbs b/web/templates/move_topic_to_stream.hbssimilarity index 100%rename from static/templates/move_topic_to_stream.hbsrename to web/templates/move_topic_to_stream.hbsdiff --git a/static/templates/muted_topic_ui_row.hbs b/web/templates/muted_topic_ui_row.hbssimilarity index 100%rename from static/templates/muted_topic_ui_row.hbsrename to web/templates/muted_topic_ui_row.hbsdiff --git a/static/templates/muted_user_ui_row.hbs b/web/templates/muted_user_ui_row.hbssimilarity index 100%rename from static/templates/muted_user_ui_row.hbsrename to web/templates/muted_user_ui_row.hbsdiff --git a/static/templates/narrow_to_compose_recipients_tooltip.hbs b/web/templates/narrow_to_compose_recipients_tooltip.hbssimilarity index 100%rename from static/templates/narrow_to_compose_recipients_tooltip.hbsrename to web/templates/narrow_to_compose_recipients_tooltip.hbsdiff --git a/static/templates/navbar.hbs b/web/templates/navbar.hbssimilarity index 100%rename from static/templates/navbar.hbsrename to web/templates/navbar.hbsdiff --git a/static/templates/navbar_alerts/bankruptcy.hbs b/web/templates/navbar_alerts/bankruptcy.hbssimilarity index 100%rename from static/templates/navbar_alerts/bankruptcy.hbsrename to web/templates/navbar_alerts/bankruptcy.hbsdiff --git a/static/templates/navbar_alerts/configure_outgoing_email.hbs b/web/templates/navbar_alerts/configure_outgoing_email.hbssimilarity index 100%rename from static/templates/navbar_alerts/configure_outgoing_email.hbsrename to web/templates/navbar_alerts/configure_outgoing_email.hbsdiff --git a/static/templates/navbar_alerts/demo_organization_deadline.hbs b/web/templates/navbar_alerts/demo_organization_deadline.hbssimilarity index 100%rename from static/templates/navbar_alerts/demo_organization_deadline.hbsrename to web/templates/navbar_alerts/demo_organization_deadline.hbsdiff --git a/static/templates/navbar_alerts/desktop_notifications.hbs b/web/templates/navbar_alerts/desktop_notifications.hbssimilarity index 100%rename from static/templates/navbar_alerts/desktop_notifications.hbsrename to web/templates/navbar_alerts/desktop_notifications.hbsdiff --git a/static/templates/navbar_alerts/insecure_desktop_app.hbs b/web/templates/navbar_alerts/insecure_desktop_app.hbssimilarity index 100%rename from static/templates/navbar_alerts/insecure_desktop_app.hbsrename to web/templates/navbar_alerts/insecure_desktop_app.hbsdiff --git a/static/templates/navbar_alerts/navbar_alert_wrapper.hbs b/web/templates/navbar_alerts/navbar_alert_wrapper.hbssimilarity index 100%rename from static/templates/navbar_alerts/navbar_alert_wrapper.hbsrename to web/templates/navbar_alerts/navbar_alert_wrapper.hbsdiff --git a/static/templates/navbar_alerts/profile_incomplete.hbs b/web/templates/navbar_alerts/profile_incomplete.hbssimilarity index 100%rename from static/templates/navbar_alerts/profile_incomplete.hbsrename to web/templates/navbar_alerts/profile_incomplete.hbsdiff --git a/static/templates/navbar_alerts/server_needs_upgrade.hbs b/web/templates/navbar_alerts/server_needs_upgrade.hbssimilarity index 100%rename from static/templates/navbar_alerts/server_needs_upgrade.hbsrename to web/templates/navbar_alerts/server_needs_upgrade.hbsdiff --git a/static/templates/navbar_icon_and_title.hbs b/web/templates/navbar_icon_and_title.hbssimilarity index 100%rename from static/templates/navbar_icon_and_title.hbsrename to web/templates/navbar_icon_and_title.hbsdiff --git a/static/templates/no_arrow_popover.hbs b/web/templates/no_arrow_popover.hbssimilarity index 100%rename from static/templates/no_arrow_popover.hbsrename to web/templates/no_arrow_popover.hbsdiff --git a/static/templates/non_editable_user_group.hbs b/web/templates/non_editable_user_group.hbssimilarity index 100%rename from static/templates/non_editable_user_group.hbsrename to web/templates/non_editable_user_group.hbsdiff --git a/static/templates/playground_links_popover_content.hbs b/web/templates/playground_links_popover_content.hbssimilarity index 100%rename from static/templates/playground_links_popover_content.hbsrename to web/templates/playground_links_popover_content.hbsdiff --git a/static/templates/pm_list_item.hbs b/web/templates/pm_list_item.hbssimilarity index 100%rename from static/templates/pm_list_item.hbsrename to web/templates/pm_list_item.hbsdiff --git a/static/templates/presence_row.hbs b/web/templates/presence_row.hbssimilarity index 100%rename from static/templates/presence_row.hbsrename to web/templates/presence_row.hbsdiff --git a/static/templates/presence_rows.hbs b/web/templates/presence_rows.hbssimilarity index 100%rename from static/templates/presence_rows.hbsrename to web/templates/presence_rows.hbsdiff --git a/static/templates/read_receipts.hbs b/web/templates/read_receipts.hbssimilarity index 100%rename from static/templates/read_receipts.hbsrename to web/templates/read_receipts.hbsdiff --git a/static/templates/read_receipts_modal.hbs b/web/templates/read_receipts_modal.hbssimilarity index 100%rename from static/templates/read_receipts_modal.hbsrename to web/templates/read_receipts_modal.hbsdiff --git a/static/templates/recent_topic_row.hbs b/web/templates/recent_topic_row.hbssimilarity index 100%rename from static/templates/recent_topic_row.hbsrename to web/templates/recent_topic_row.hbsdiff --git a/static/templates/recent_topics_filters.hbs b/web/templates/recent_topics_filters.hbssimilarity index 100%rename from static/templates/recent_topics_filters.hbsrename to web/templates/recent_topics_filters.hbsdiff --git a/static/templates/recent_topics_table.hbs b/web/templates/recent_topics_table.hbssimilarity index 100%rename from static/templates/recent_topics_table.hbsrename to web/templates/recent_topics_table.hbsdiff --git a/static/templates/recipient_row.hbs b/web/templates/recipient_row.hbssimilarity index 100%rename from static/templates/recipient_row.hbsrename to web/templates/recipient_row.hbsdiff --git a/static/templates/remind_me_popover_content.hbs b/web/templates/remind_me_popover_content.hbssimilarity index 100%rename from static/templates/remind_me_popover_content.hbsrename to web/templates/remind_me_popover_content.hbsdiff --git a/static/templates/right_sidebar.hbs b/web/templates/right_sidebar.hbssimilarity index 100%rename from static/templates/right_sidebar.hbsrename to web/templates/right_sidebar.hbsdiff --git a/static/templates/search_list_item.hbs b/web/templates/search_list_item.hbssimilarity index 100%rename from static/templates/search_list_item.hbsrename to web/templates/search_list_item.hbsdiff --git a/static/templates/search_operators.hbs b/web/templates/search_operators.hbssimilarity index 100%rename from static/templates/search_operators.hbsrename to web/templates/search_operators.hbsdiff --git a/static/templates/set_status_overlay.hbs b/web/templates/set_status_overlay.hbssimilarity index 100%rename from static/templates/set_status_overlay.hbsrename to web/templates/set_status_overlay.hbsdiff --git a/static/templates/settings/account_settings.hbs b/web/templates/settings/account_settings.hbssimilarity index 100%rename from static/templates/settings/account_settings.hbsrename to web/templates/settings/account_settings.hbsdiff --git a/static/templates/settings/add_alert_word.hbs b/web/templates/settings/add_alert_word.hbssimilarity index 100%rename from static/templates/settings/add_alert_word.hbsrename to web/templates/settings/add_alert_word.hbsdiff --git a/static/templates/settings/add_emoji.hbs b/web/templates/settings/add_emoji.hbssimilarity index 100%rename from static/templates/settings/add_emoji.hbsrename to web/templates/settings/add_emoji.hbsdiff --git a/static/templates/settings/add_new_bot_form.hbs b/web/templates/settings/add_new_bot_form.hbssimilarity index 100%rename from static/templates/settings/add_new_bot_form.hbsrename to web/templates/settings/add_new_bot_form.hbsdiff --git a/static/templates/settings/add_new_custom_profile_field_form.hbs b/web/templates/settings/add_new_custom_profile_field_form.hbssimilarity index 100%rename from static/templates/settings/add_new_custom_profile_field_form.hbsrename to web/templates/settings/add_new_custom_profile_field_form.hbsdiff --git a/static/templates/settings/add_user_group_modal.hbs b/web/templates/settings/add_user_group_modal.hbssimilarity index 100%rename from static/templates/settings/add_user_group_modal.hbsrename to web/templates/settings/add_user_group_modal.hbsdiff --git a/static/templates/settings/admin_auth_methods_list.hbs b/web/templates/settings/admin_auth_methods_list.hbssimilarity index 100%rename from static/templates/settings/admin_auth_methods_list.hbsrename to web/templates/settings/admin_auth_methods_list.hbsdiff --git a/static/templates/settings/admin_default_streams_list.hbs b/web/templates/settings/admin_default_streams_list.hbssimilarity index 100%rename from static/templates/settings/admin_default_streams_list.hbsrename to web/templates/settings/admin_default_streams_list.hbsdiff --git a/static/templates/settings/admin_emoji_list.hbs b/web/templates/settings/admin_emoji_list.hbssimilarity index 100%rename from static/templates/settings/admin_emoji_list.hbsrename to web/templates/settings/admin_emoji_list.hbsdiff --git a/static/templates/settings/admin_export_list.hbs b/web/templates/settings/admin_export_list.hbssimilarity index 100%rename from static/templates/settings/admin_export_list.hbsrename to web/templates/settings/admin_export_list.hbsdiff --git a/static/templates/settings/admin_human_form.hbs b/web/templates/settings/admin_human_form.hbssimilarity index 100%rename from static/templates/settings/admin_human_form.hbsrename to web/templates/settings/admin_human_form.hbsdiff --git a/static/templates/settings/admin_invites_list.hbs b/web/templates/settings/admin_invites_list.hbssimilarity index 100%rename from static/templates/settings/admin_invites_list.hbsrename to web/templates/settings/admin_invites_list.hbsdiff --git a/static/templates/settings/admin_linkifier_edit_form.hbs b/web/templates/settings/admin_linkifier_edit_form.hbssimilarity index 100%rename from static/templates/settings/admin_linkifier_edit_form.hbsrename to web/templates/settings/admin_linkifier_edit_form.hbsdiff --git a/static/templates/settings/admin_linkifier_list.hbs b/web/templates/settings/admin_linkifier_list.hbssimilarity index 100%rename from static/templates/settings/admin_linkifier_list.hbsrename to web/templates/settings/admin_linkifier_list.hbsdiff --git a/static/templates/settings/admin_playground_list.hbs b/web/templates/settings/admin_playground_list.hbssimilarity index 100%rename from static/templates/settings/admin_playground_list.hbsrename to web/templates/settings/admin_playground_list.hbsdiff --git a/static/templates/settings/admin_profile_field_list.hbs b/web/templates/settings/admin_profile_field_list.hbssimilarity index 100%rename from static/templates/settings/admin_profile_field_list.hbsrename to web/templates/settings/admin_profile_field_list.hbsdiff --git a/static/templates/settings/admin_realm_domains_list.hbs b/web/templates/settings/admin_realm_domains_list.hbssimilarity index 100%rename from static/templates/settings/admin_realm_domains_list.hbsrename to web/templates/settings/admin_realm_domains_list.hbsdiff --git a/static/templates/settings/admin_settings_modals.hbs b/web/templates/settings/admin_settings_modals.hbssimilarity index 100%rename from static/templates/settings/admin_settings_modals.hbsrename to web/templates/settings/admin_settings_modals.hbsdiff --git a/static/templates/settings/admin_tab.hbs b/web/templates/settings/admin_tab.hbssimilarity index 100%rename from static/templates/settings/admin_tab.hbsrename to web/templates/settings/admin_tab.hbsdiff --git a/static/templates/settings/admin_user_group_list.hbs b/web/templates/settings/admin_user_group_list.hbssimilarity index 100%rename from static/templates/settings/admin_user_group_list.hbsrename to web/templates/settings/admin_user_group_list.hbsdiff --git a/static/templates/settings/admin_user_list.hbs b/web/templates/settings/admin_user_list.hbssimilarity index 100%rename from static/templates/settings/admin_user_list.hbsrename to web/templates/settings/admin_user_list.hbsdiff --git a/static/templates/settings/alert_word_settings.hbs b/web/templates/settings/alert_word_settings.hbssimilarity index 100%rename from static/templates/settings/alert_word_settings.hbsrename to web/templates/settings/alert_word_settings.hbsdiff --git a/static/templates/settings/alert_word_settings_item.hbs b/web/templates/settings/alert_word_settings_item.hbssimilarity index 100%rename from static/templates/settings/alert_word_settings_item.hbsrename to web/templates/settings/alert_word_settings_item.hbsdiff --git a/static/templates/settings/api_key_modal.hbs b/web/templates/settings/api_key_modal.hbssimilarity index 100%rename from static/templates/settings/api_key_modal.hbsrename to web/templates/settings/api_key_modal.hbsdiff --git a/static/templates/settings/attachments_settings.hbs b/web/templates/settings/attachments_settings.hbssimilarity index 100%rename from static/templates/settings/attachments_settings.hbsrename to web/templates/settings/attachments_settings.hbsdiff --git a/static/templates/settings/auth_methods_settings_admin.hbs b/web/templates/settings/auth_methods_settings_admin.hbssimilarity index 100%rename from static/templates/settings/auth_methods_settings_admin.hbsrename to web/templates/settings/auth_methods_settings_admin.hbsdiff --git a/static/templates/settings/bot_avatar_row.hbs b/web/templates/settings/bot_avatar_row.hbssimilarity index 100%rename from static/templates/settings/bot_avatar_row.hbsrename to web/templates/settings/bot_avatar_row.hbsdiff --git a/static/templates/settings/bot_list_admin.hbs b/web/templates/settings/bot_list_admin.hbssimilarity index 100%rename from static/templates/settings/bot_list_admin.hbsrename to web/templates/settings/bot_list_admin.hbsdiff --git a/static/templates/settings/bot_settings.hbs b/web/templates/settings/bot_settings.hbssimilarity index 100%rename from static/templates/settings/bot_settings.hbsrename to web/templates/settings/bot_settings.hbsdiff --git a/static/templates/settings/custom_user_profile_field.hbs b/web/templates/settings/custom_user_profile_field.hbssimilarity index 100%rename from static/templates/settings/custom_user_profile_field.hbsrename to web/templates/settings/custom_user_profile_field.hbsdiff --git a/static/templates/settings/data_exports_admin.hbs b/web/templates/settings/data_exports_admin.hbssimilarity index 100%rename from static/templates/settings/data_exports_admin.hbsrename to web/templates/settings/data_exports_admin.hbsdiff --git a/static/templates/settings/deactivated_users_admin.hbs b/web/templates/settings/deactivated_users_admin.hbssimilarity index 100%rename from static/templates/settings/deactivated_users_admin.hbsrename to web/templates/settings/deactivated_users_admin.hbsdiff --git a/static/templates/settings/default_streams_list_admin.hbs b/web/templates/settings/default_streams_list_admin.hbssimilarity index 100%rename from static/templates/settings/default_streams_list_admin.hbsrename to web/templates/settings/default_streams_list_admin.hbsdiff --git a/static/templates/settings/dev_env_email_access.hbs b/web/templates/settings/dev_env_email_access.hbssimilarity index 100%rename from static/templates/settings/dev_env_email_access.hbsrename to web/templates/settings/dev_env_email_access.hbsdiff --git a/static/templates/settings/display_settings.hbs b/web/templates/settings/display_settings.hbssimilarity index 100%rename from static/templates/settings/display_settings.hbsrename to web/templates/settings/display_settings.hbsdiff --git a/static/templates/settings/dropdown_list.hbs b/web/templates/settings/dropdown_list.hbssimilarity index 100%rename from static/templates/settings/dropdown_list.hbsrename to web/templates/settings/dropdown_list.hbsdiff --git a/static/templates/settings/dropdown_list_widget.hbs b/web/templates/settings/dropdown_list_widget.hbssimilarity index 100%rename from static/templates/settings/dropdown_list_widget.hbsrename to web/templates/settings/dropdown_list_widget.hbsdiff --git a/static/templates/settings/dropdown_options_widget.hbs b/web/templates/settings/dropdown_options_widget.hbssimilarity index 100%rename from static/templates/settings/dropdown_options_widget.hbsrename to web/templates/settings/dropdown_options_widget.hbsdiff --git a/static/templates/settings/edit_bot_form.hbs b/web/templates/settings/edit_bot_form.hbssimilarity index 100%rename from static/templates/settings/edit_bot_form.hbsrename to web/templates/settings/edit_bot_form.hbsdiff --git a/static/templates/settings/edit_custom_profile_field_form.hbs b/web/templates/settings/edit_custom_profile_field_form.hbssimilarity index 100%rename from static/templates/settings/edit_custom_profile_field_form.hbsrename to web/templates/settings/edit_custom_profile_field_form.hbsdiff --git a/static/templates/settings/edit_embedded_bot_service.hbs b/web/templates/settings/edit_embedded_bot_service.hbssimilarity index 100%rename from static/templates/settings/edit_embedded_bot_service.hbsrename to web/templates/settings/edit_embedded_bot_service.hbsdiff --git a/static/templates/settings/edit_outgoing_webhook_service.hbs b/web/templates/settings/edit_outgoing_webhook_service.hbssimilarity index 100%rename from static/templates/settings/edit_outgoing_webhook_service.hbsrename to web/templates/settings/edit_outgoing_webhook_service.hbsdiff --git a/static/templates/settings/emoji_settings_admin.hbs b/web/templates/settings/emoji_settings_admin.hbssimilarity index 100%rename from static/templates/settings/emoji_settings_admin.hbsrename to web/templates/settings/emoji_settings_admin.hbsdiff --git a/static/templates/settings/emoji_settings_tip.hbs b/web/templates/settings/emoji_settings_tip.hbssimilarity index 100%rename from static/templates/settings/emoji_settings_tip.hbsrename to web/templates/settings/emoji_settings_tip.hbsdiff --git a/static/templates/settings/image_upload_widget.hbs b/web/templates/settings/image_upload_widget.hbssimilarity index 100%rename from static/templates/settings/image_upload_widget.hbsrename to web/templates/settings/image_upload_widget.hbsdiff --git a/static/templates/settings/invites_list_admin.hbs b/web/templates/settings/invites_list_admin.hbssimilarity index 100%rename from static/templates/settings/invites_list_admin.hbsrename to web/templates/settings/invites_list_admin.hbsdiff --git a/static/templates/settings/language_selection_widget.hbs b/web/templates/settings/language_selection_widget.hbssimilarity index 100%rename from static/templates/settings/language_selection_widget.hbsrename to web/templates/settings/language_selection_widget.hbsdiff --git a/static/templates/settings/linkifier_settings_admin.hbs b/web/templates/settings/linkifier_settings_admin.hbssimilarity index 100%rename from static/templates/settings/linkifier_settings_admin.hbsrename to web/templates/settings/linkifier_settings_admin.hbsdiff --git a/static/templates/settings/muted_topics_settings.hbs b/web/templates/settings/muted_topics_settings.hbssimilarity index 100%rename from static/templates/settings/muted_topics_settings.hbsrename to web/templates/settings/muted_topics_settings.hbsdiff --git a/static/templates/settings/muted_users_settings.hbs b/web/templates/settings/muted_users_settings.hbssimilarity index 100%rename from static/templates/settings/muted_users_settings.hbsrename to web/templates/settings/muted_users_settings.hbsdiff --git a/static/templates/settings/notification_settings.hbs b/web/templates/settings/notification_settings.hbssimilarity index 100%rename from static/templates/settings/notification_settings.hbsrename to web/templates/settings/notification_settings.hbsdiff --git a/static/templates/settings/notification_settings_checkboxes.hbs b/web/templates/settings/notification_settings_checkboxes.hbssimilarity index 100%rename from static/templates/settings/notification_settings_checkboxes.hbsrename to web/templates/settings/notification_settings_checkboxes.hbsdiff --git a/static/templates/settings/organization_permissions_admin.hbs b/web/templates/settings/organization_permissions_admin.hbssimilarity index 100%rename from static/templates/settings/organization_permissions_admin.hbsrename to web/templates/settings/organization_permissions_admin.hbsdiff --git a/static/templates/settings/organization_profile_admin.hbs b/web/templates/settings/organization_profile_admin.hbssimilarity index 100%rename from static/templates/settings/organization_profile_admin.hbsrename to web/templates/settings/organization_profile_admin.hbsdiff --git a/static/templates/settings/organization_settings_admin.hbs b/web/templates/settings/organization_settings_admin.hbssimilarity index 100%rename from static/templates/settings/organization_settings_admin.hbsrename to web/templates/settings/organization_settings_admin.hbsdiff --git a/static/templates/settings/organization_settings_tip.hbs b/web/templates/settings/organization_settings_tip.hbssimilarity index 100%rename from static/templates/settings/organization_settings_tip.hbsrename to web/templates/settings/organization_settings_tip.hbsdiff --git a/static/templates/settings/organization_user_settings_defaults.hbs b/web/templates/settings/organization_user_settings_defaults.hbssimilarity index 100%rename from static/templates/settings/organization_user_settings_defaults.hbsrename to web/templates/settings/organization_user_settings_defaults.hbsdiff --git a/static/templates/settings/playground_settings_admin.hbs b/web/templates/settings/playground_settings_admin.hbssimilarity index 100%rename from static/templates/settings/playground_settings_admin.hbsrename to web/templates/settings/playground_settings_admin.hbsdiff --git a/static/templates/settings/profile_field_choice.hbs b/web/templates/settings/profile_field_choice.hbssimilarity index 100%rename from static/templates/settings/profile_field_choice.hbsrename to web/templates/settings/profile_field_choice.hbsdiff --git a/static/templates/settings/profile_field_settings_admin.hbs b/web/templates/settings/profile_field_settings_admin.hbssimilarity index 100%rename from static/templates/settings/profile_field_settings_admin.hbsrename to web/templates/settings/profile_field_settings_admin.hbsdiff --git a/static/templates/settings/profile_settings.hbs b/web/templates/settings/profile_settings.hbssimilarity index 100%rename from static/templates/settings/profile_settings.hbsrename to web/templates/settings/profile_settings.hbsdiff --git a/static/templates/settings/realm_domains_modal.hbs b/web/templates/settings/realm_domains_modal.hbssimilarity index 100%rename from static/templates/settings/realm_domains_modal.hbsrename to web/templates/settings/realm_domains_modal.hbsdiff --git a/static/templates/settings/settings_checkbox.hbs b/web/templates/settings/settings_checkbox.hbssimilarity index 100%rename from static/templates/settings/settings_checkbox.hbsrename to web/templates/settings/settings_checkbox.hbsdiff --git a/static/templates/settings/settings_save_discard_widget.hbs b/web/templates/settings/settings_save_discard_widget.hbssimilarity index 100%rename from static/templates/settings/settings_save_discard_widget.hbsrename to web/templates/settings/settings_save_discard_widget.hbsdiff --git a/static/templates/settings/stream_specific_notification_row.hbs b/web/templates/settings/stream_specific_notification_row.hbssimilarity index 100%rename from static/templates/settings/stream_specific_notification_row.hbsrename to web/templates/settings/stream_specific_notification_row.hbsdiff --git a/static/templates/settings/upgrade_tip_widget.hbs b/web/templates/settings/upgrade_tip_widget.hbssimilarity index 100%rename from static/templates/settings/upgrade_tip_widget.hbsrename to web/templates/settings/upgrade_tip_widget.hbsdiff --git a/static/templates/settings/upload_space_stats.hbs b/web/templates/settings/upload_space_stats.hbssimilarity index 100%rename from static/templates/settings/upload_space_stats.hbsrename to web/templates/settings/upload_space_stats.hbsdiff --git a/static/templates/settings/uploaded_files_list.hbs b/web/templates/settings/uploaded_files_list.hbssimilarity index 100%rename from static/templates/settings/uploaded_files_list.hbsrename to web/templates/settings/uploaded_files_list.hbsdiff --git a/static/templates/settings/user_display_settings.hbs b/web/templates/settings/user_display_settings.hbssimilarity index 100%rename from static/templates/settings/user_display_settings.hbsrename to web/templates/settings/user_display_settings.hbsdiff --git a/static/templates/settings/user_groups_admin.hbs b/web/templates/settings/user_groups_admin.hbssimilarity index 100%rename from static/templates/settings/user_groups_admin.hbsrename to web/templates/settings/user_groups_admin.hbsdiff --git a/static/templates/settings/user_list_admin.hbs b/web/templates/settings/user_list_admin.hbssimilarity index 100%rename from static/templates/settings/user_list_admin.hbsrename to web/templates/settings/user_list_admin.hbsdiff --git a/static/templates/settings/user_notification_settings.hbs b/web/templates/settings/user_notification_settings.hbssimilarity index 100%rename from static/templates/settings/user_notification_settings.hbsrename to web/templates/settings/user_notification_settings.hbsdiff --git a/static/templates/settings_overlay.hbs b/web/templates/settings_overlay.hbssimilarity index 100%rename from static/templates/settings_overlay.hbsrename to web/templates/settings_overlay.hbsdiff --git a/static/templates/settings_tab.hbs b/web/templates/settings_tab.hbssimilarity index 100%rename from static/templates/settings_tab.hbsrename to web/templates/settings_tab.hbsdiff --git a/static/templates/single_message.hbs b/web/templates/single_message.hbssimilarity index 100%rename from static/templates/single_message.hbsrename to web/templates/single_message.hbsdiff --git a/static/templates/starred_messages_sidebar_actions.hbs b/web/templates/starred_messages_sidebar_actions.hbssimilarity index 100%rename from static/templates/starred_messages_sidebar_actions.hbsrename to web/templates/starred_messages_sidebar_actions.hbsdiff --git a/static/templates/status_emoji.hbs b/web/templates/status_emoji.hbssimilarity index 100%rename from static/templates/status_emoji.hbsrename to web/templates/status_emoji.hbsdiff --git a/static/templates/status_emoji_selector.hbs b/web/templates/status_emoji_selector.hbssimilarity index 100%rename from static/templates/status_emoji_selector.hbsrename to web/templates/status_emoji_selector.hbsdiff --git a/static/templates/stream_privacy.hbs b/web/templates/stream_privacy.hbssimilarity index 100%rename from static/templates/stream_privacy.hbsrename to web/templates/stream_privacy.hbsdiff --git a/static/templates/stream_settings/add_subscribers_form.hbs b/web/templates/stream_settings/add_subscribers_form.hbssimilarity index 100%rename from static/templates/stream_settings/add_subscribers_form.hbsrename to web/templates/stream_settings/add_subscribers_form.hbsdiff --git a/static/templates/stream_settings/browse_streams_list.hbs b/web/templates/stream_settings/browse_streams_list.hbssimilarity index 100%rename from static/templates/stream_settings/browse_streams_list.hbsrename to web/templates/stream_settings/browse_streams_list.hbsdiff --git a/static/templates/stream_settings/browse_streams_list_item.hbs b/web/templates/stream_settings/browse_streams_list_item.hbssimilarity index 100%rename from static/templates/stream_settings/browse_streams_list_item.hbsrename to web/templates/stream_settings/browse_streams_list_item.hbsdiff --git a/static/templates/stream_settings/change_stream_info_modal.hbs b/web/templates/stream_settings/change_stream_info_modal.hbssimilarity index 100%rename from static/templates/stream_settings/change_stream_info_modal.hbsrename to web/templates/stream_settings/change_stream_info_modal.hbsdiff --git a/static/templates/stream_settings/copy_email_address_modal.hbs b/web/templates/stream_settings/copy_email_address_modal.hbssimilarity index 100%rename from static/templates/stream_settings/copy_email_address_modal.hbsrename to web/templates/stream_settings/copy_email_address_modal.hbsdiff --git a/static/templates/stream_settings/new_stream_user.hbs b/web/templates/stream_settings/new_stream_user.hbssimilarity index 100%rename from static/templates/stream_settings/new_stream_user.hbsrename to web/templates/stream_settings/new_stream_user.hbsdiff --git a/static/templates/stream_settings/new_stream_users.hbs b/web/templates/stream_settings/new_stream_users.hbssimilarity index 100%rename from static/templates/stream_settings/new_stream_users.hbsrename to web/templates/stream_settings/new_stream_users.hbsdiff --git a/static/templates/stream_settings/selected_stream_title.hbs b/web/templates/stream_settings/selected_stream_title.hbssimilarity index 100%rename from static/templates/stream_settings/selected_stream_title.hbsrename to web/templates/stream_settings/selected_stream_title.hbsdiff --git a/static/templates/stream_settings/stream_creation_form.hbs b/web/templates/stream_settings/stream_creation_form.hbssimilarity index 100%rename from static/templates/stream_settings/stream_creation_form.hbsrename to web/templates/stream_settings/stream_creation_form.hbsdiff --git a/static/templates/stream_settings/stream_description.hbs b/web/templates/stream_settings/stream_description.hbssimilarity index 100%rename from static/templates/stream_settings/stream_description.hbsrename to web/templates/stream_settings/stream_description.hbsdiff --git a/static/templates/stream_settings/stream_member_list_entry.hbs b/web/templates/stream_settings/stream_member_list_entry.hbssimilarity index 100%rename from static/templates/stream_settings/stream_member_list_entry.hbsrename to web/templates/stream_settings/stream_member_list_entry.hbsdiff --git a/static/templates/stream_settings/stream_members.hbs b/web/templates/stream_settings/stream_members.hbssimilarity index 100%rename from static/templates/stream_settings/stream_members.hbsrename to web/templates/stream_settings/stream_members.hbsdiff --git a/static/templates/stream_settings/stream_privacy_icon.hbs b/web/templates/stream_settings/stream_privacy_icon.hbssimilarity index 100%rename from static/templates/stream_settings/stream_privacy_icon.hbsrename to web/templates/stream_settings/stream_privacy_icon.hbsdiff --git a/static/templates/stream_settings/stream_settings.hbs b/web/templates/stream_settings/stream_settings.hbssimilarity index 100%rename from static/templates/stream_settings/stream_settings.hbsrename to web/templates/stream_settings/stream_settings.hbsdiff --git a/static/templates/stream_settings/stream_settings_checkbox.hbs b/web/templates/stream_settings/stream_settings_checkbox.hbssimilarity index 100%rename from static/templates/stream_settings/stream_settings_checkbox.hbsrename to web/templates/stream_settings/stream_settings_checkbox.hbsdiff --git a/static/templates/stream_settings/stream_settings_overlay.hbs b/web/templates/stream_settings/stream_settings_overlay.hbssimilarity index 100%rename from static/templates/stream_settings/stream_settings_overlay.hbsrename to web/templates/stream_settings/stream_settings_overlay.hbsdiff --git a/static/templates/stream_settings/stream_settings_tip.hbs b/web/templates/stream_settings/stream_settings_tip.hbssimilarity index 100%rename from static/templates/stream_settings/stream_settings_tip.hbsrename to web/templates/stream_settings/stream_settings_tip.hbsdiff --git a/static/templates/stream_settings/stream_subscription_request_result.hbs b/web/templates/stream_settings/stream_subscription_request_result.hbssimilarity index 100%rename from static/templates/stream_settings/stream_subscription_request_result.hbsrename to web/templates/stream_settings/stream_subscription_request_result.hbsdiff --git a/static/templates/stream_settings/stream_types.hbs b/web/templates/stream_settings/stream_types.hbssimilarity index 100%rename from static/templates/stream_settings/stream_types.hbsrename to web/templates/stream_settings/stream_types.hbsdiff --git a/static/templates/stream_settings/subscriber_count.hbs b/web/templates/stream_settings/subscriber_count.hbssimilarity index 100%rename from static/templates/stream_settings/subscriber_count.hbsrename to web/templates/stream_settings/subscriber_count.hbsdiff --git a/static/templates/stream_settings/subscription_setting_icon.hbs b/web/templates/stream_settings/subscription_setting_icon.hbssimilarity index 100%rename from static/templates/stream_settings/subscription_setting_icon.hbsrename to web/templates/stream_settings/subscription_setting_icon.hbsdiff --git a/static/templates/stream_sidebar_actions.hbs b/web/templates/stream_sidebar_actions.hbssimilarity index 100%rename from static/templates/stream_sidebar_actions.hbsrename to web/templates/stream_sidebar_actions.hbsdiff --git a/static/templates/stream_sidebar_row.hbs b/web/templates/stream_sidebar_row.hbssimilarity index 100%rename from static/templates/stream_sidebar_row.hbsrename to web/templates/stream_sidebar_row.hbsdiff --git a/static/templates/stream_topic_widget.hbs b/web/templates/stream_topic_widget.hbssimilarity index 100%rename from static/templates/stream_topic_widget.hbsrename to web/templates/stream_topic_widget.hbsdiff --git a/static/templates/streams_subheader.hbs b/web/templates/streams_subheader.hbssimilarity index 100%rename from static/templates/streams_subheader.hbsrename to web/templates/streams_subheader.hbsdiff --git a/static/templates/subscribe_to_more_streams.hbs b/web/templates/subscribe_to_more_streams.hbssimilarity index 100%rename from static/templates/subscribe_to_more_streams.hbsrename to web/templates/subscribe_to_more_streams.hbsdiff --git a/static/templates/topic_edit_form.hbs b/web/templates/topic_edit_form.hbssimilarity index 100%rename from static/templates/topic_edit_form.hbsrename to web/templates/topic_edit_form.hbsdiff --git a/static/templates/topic_list_item.hbs b/web/templates/topic_list_item.hbssimilarity index 100%rename from static/templates/topic_list_item.hbsrename to web/templates/topic_list_item.hbsdiff --git a/static/templates/topic_muted.hbs b/web/templates/topic_muted.hbssimilarity index 100%rename from static/templates/topic_muted.hbsrename to web/templates/topic_muted.hbsdiff --git a/static/templates/topic_sidebar_actions.hbs b/web/templates/topic_sidebar_actions.hbssimilarity index 100%rename from static/templates/topic_sidebar_actions.hbsrename to web/templates/topic_sidebar_actions.hbsdiff --git a/static/templates/typeahead_list_item.hbs b/web/templates/typeahead_list_item.hbssimilarity index 100%rename from static/templates/typeahead_list_item.hbsrename to web/templates/typeahead_list_item.hbsdiff --git a/static/templates/typing_notification.hbs b/web/templates/typing_notification.hbssimilarity index 100%rename from static/templates/typing_notification.hbsrename to web/templates/typing_notification.hbsdiff --git a/static/templates/typing_notifications.hbs b/web/templates/typing_notifications.hbssimilarity index 100%rename from static/templates/typing_notifications.hbsrename to web/templates/typing_notifications.hbsdiff --git a/static/templates/user_custom_profile_fields.hbs b/web/templates/user_custom_profile_fields.hbssimilarity index 100%rename from static/templates/user_custom_profile_fields.hbsrename to web/templates/user_custom_profile_fields.hbsdiff --git a/static/templates/user_group_info_popover.hbs b/web/templates/user_group_info_popover.hbssimilarity index 100%rename from static/templates/user_group_info_popover.hbsrename to web/templates/user_group_info_popover.hbsdiff --git a/static/templates/user_group_info_popover_content.hbs b/web/templates/user_group_info_popover_content.hbssimilarity index 100%rename from static/templates/user_group_info_popover_content.hbsrename to web/templates/user_group_info_popover_content.hbsdiff --git a/static/templates/user_group_list_item.hbs b/web/templates/user_group_list_item.hbssimilarity index 100%rename from static/templates/user_group_list_item.hbsrename to web/templates/user_group_list_item.hbsdiff --git a/static/templates/user_group_settings/browse_user_groups_list_item.hbs b/web/templates/user_group_settings/browse_user_groups_list_item.hbssimilarity index 100%rename from static/templates/user_group_settings/browse_user_groups_list_item.hbsrename to web/templates/user_group_settings/browse_user_groups_list_item.hbsdiff --git a/static/templates/user_group_settings/change_user_group_info_modal.hbs b/web/templates/user_group_settings/change_user_group_info_modal.hbssimilarity index 100%rename from static/templates/user_group_settings/change_user_group_info_modal.hbsrename to web/templates/user_group_settings/change_user_group_info_modal.hbsdiff --git a/static/templates/user_group_settings/new_user_group_users.hbs b/web/templates/user_group_settings/new_user_group_users.hbssimilarity index 100%rename from static/templates/user_group_settings/new_user_group_users.hbsrename to web/templates/user_group_settings/new_user_group_users.hbsdiff --git a/static/templates/user_group_settings/user_group_creation_form.hbs b/web/templates/user_group_settings/user_group_creation_form.hbssimilarity index 100%rename from static/templates/user_group_settings/user_group_creation_form.hbsrename to web/templates/user_group_settings/user_group_creation_form.hbsdiff --git a/static/templates/user_group_settings/user_group_members.hbs b/web/templates/user_group_settings/user_group_members.hbssimilarity index 100%rename from static/templates/user_group_settings/user_group_members.hbsrename to web/templates/user_group_settings/user_group_members.hbsdiff --git a/static/templates/user_group_settings/user_group_settings.hbs b/web/templates/user_group_settings/user_group_settings.hbssimilarity index 100%rename from static/templates/user_group_settings/user_group_settings.hbsrename to web/templates/user_group_settings/user_group_settings.hbsdiff --git a/static/templates/user_group_settings/user_group_settings_overlay.hbs b/web/templates/user_group_settings/user_group_settings_overlay.hbssimilarity index 100%rename from static/templates/user_group_settings/user_group_settings_overlay.hbsrename to web/templates/user_group_settings/user_group_settings_overlay.hbsdiff --git a/static/templates/user_info_popover_content.hbs b/web/templates/user_info_popover_content.hbssimilarity index 100%rename from static/templates/user_info_popover_content.hbsrename to web/templates/user_info_popover_content.hbsdiff --git a/static/templates/user_info_popover_manage_menu.hbs b/web/templates/user_info_popover_manage_menu.hbssimilarity index 100%rename from static/templates/user_info_popover_manage_menu.hbsrename to web/templates/user_info_popover_manage_menu.hbsdiff --git a/static/templates/user_info_popover_title.hbs b/web/templates/user_info_popover_title.hbssimilarity index 100%rename from static/templates/user_info_popover_title.hbsrename to web/templates/user_info_popover_title.hbsdiff --git a/static/templates/user_profile_modal.hbs b/web/templates/user_profile_modal.hbssimilarity index 100%rename from static/templates/user_profile_modal.hbsrename to web/templates/user_profile_modal.hbsdiff --git a/static/templates/user_stream_list_item.hbs b/web/templates/user_stream_list_item.hbssimilarity index 100%rename from static/templates/user_stream_list_item.hbsrename to web/templates/user_stream_list_item.hbsdiff --git a/static/templates/user_with_status_icon.hbs b/web/templates/user_with_status_icon.hbssimilarity index 100%rename from static/templates/user_with_status_icon.hbsrename to web/templates/user_with_status_icon.hbsdiff --git a/static/templates/view_code_in_playground.hbs b/web/templates/view_code_in_playground.hbssimilarity index 100%rename from static/templates/view_code_in_playground.hbsrename to web/templates/view_code_in_playground.hbsdiff --git a/static/templates/widgets/poll_widget.hbs b/web/templates/widgets/poll_widget.hbssimilarity index 100%rename from static/templates/widgets/poll_widget.hbsrename to web/templates/widgets/poll_widget.hbsdiff --git a/static/templates/widgets/poll_widget_results.hbs b/web/templates/widgets/poll_widget_results.hbssimilarity index 100%rename from static/templates/widgets/poll_widget_results.hbsrename to web/templates/widgets/poll_widget_results.hbsdiff --git a/static/templates/widgets/todo_widget.hbs b/web/templates/widgets/todo_widget.hbssimilarity index 100%rename from static/templates/widgets/todo_widget.hbsrename to web/templates/widgets/todo_widget.hbsdiff --git a/static/templates/widgets/todo_widget_tasks.hbs b/web/templates/widgets/todo_widget_tasks.hbssimilarity index 100%rename from static/templates/widgets/todo_widget_tasks.hbsrename to web/templates/widgets/todo_widget_tasks.hbsdiff --git a/static/templates/widgets/zform_choices.hbs b/web/templates/widgets/zform_choices.hbssimilarity index 100%rename from static/templates/widgets/zform_choices.hbsrename to web/templates/widgets/zform_choices.hbsdiff --git a/static/third/bootstrap-tooltip/tooltip.css b/web/third/bootstrap-tooltip/tooltip.csssimilarity index 100%rename from static/third/bootstrap-tooltip/tooltip.cssrename to web/third/bootstrap-tooltip/tooltip.cssdiff --git a/static/third/bootstrap-tooltip/tooltip.js b/web/third/bootstrap-tooltip/tooltip.jssimilarity index 100%rename from static/third/bootstrap-tooltip/tooltip.jsrename to web/third/bootstrap-tooltip/tooltip.jsdiff --git a/static/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.jssimilarity index 99%rename from static/third/bootstrap-typeahead/typeahead.jsrename to web/third/bootstrap-typeahead/typeahead.jsindex 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.csssimilarity index 100%rename from static/third/bootstrap/css/bootstrap-btn.cssrename to web/third/bootstrap/css/bootstrap-btn.cssdiff --git a/static/third/bootstrap/css/bootstrap.css b/web/third/bootstrap/css/bootstrap.csssimilarity index 100%rename from static/third/bootstrap/css/bootstrap.cssrename to web/third/bootstrap/css/bootstrap.cssdiff --git a/static/third/bootstrap/js/bootstrap.js b/web/third/bootstrap/js/bootstrap.jssimilarity index 100%rename from static/third/bootstrap/js/bootstrap.jsrename to web/third/bootstrap/js/bootstrap.jsdiff --git a/static/third/jquery-idle/jquery.idle.js b/web/third/jquery-idle/jquery.idle.jssimilarity index 100%rename from static/third/jquery-idle/jquery.idle.jsrename to web/third/jquery-idle/jquery.idle.jsdiff --git a/static/third/marked/LICENSE b/web/third/marked/LICENSEsimilarity index 100%rename from static/third/marked/LICENSErename to web/third/marked/LICENSEdiff --git a/static/third/marked/README.md b/web/third/marked/README.mdsimilarity index 100%rename from static/third/marked/README.mdrename to web/third/marked/README.mddiff --git a/static/third/marked/VERSION b/web/third/marked/VERSIONsimilarity index 100%rename from static/third/marked/VERSIONrename to web/third/marked/VERSIONdiff --git a/static/third/marked/lib/marked.js b/web/third/marked/lib/marked.jssimilarity index 100%rename from static/third/marked/lib/marked.jsrename to web/third/marked/lib/marked.jsdiff --git a/web/webpack.assets.json b/web/webpack.assets.jsonnew file mode 100644index 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.jsonnew file mode 100644index 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.tsindex 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__.pyindex 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.pyindex 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]]) -> Nondef 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.pyindex 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_entrypointsdiff --git a/zerver/management/commands/makemessages.py b/zerver/management/commands/makemessages.pyindex 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.pyindex 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-stubPLAN_TYPE_PLUS = 10plan_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 = 1BOT_CREATION_LIMIT_GENERIC_BOTS = 2@@ -1723,7 +1723,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin, UserBaseSettings): # typesince 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"""