mirror of https://github.com/zulip/zulip.git
js: Convert static/js/templates.js to ES6 module.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
881d6c437b
commit
c366386679
|
@ -267,7 +267,6 @@
|
||||||
"submessage": false,
|
"submessage": false,
|
||||||
"subs": false,
|
"subs": false,
|
||||||
"message_view_header": false,
|
"message_view_header": false,
|
||||||
"templates": false,
|
|
||||||
"timerender": false,
|
"timerender": false,
|
||||||
"top_left_corner": false,
|
"top_left_corner": false,
|
||||||
"topic_list": false,
|
"topic_list": false,
|
||||||
|
|
|
@ -132,7 +132,6 @@ declare let stream_ui_updates: any;
|
||||||
declare let submessage: any;
|
declare let submessage: any;
|
||||||
declare let subs: any;
|
declare let subs: any;
|
||||||
declare let message_view_header: any;
|
declare let message_view_header: any;
|
||||||
declare let templates: any;
|
|
||||||
declare let timerender: any;
|
declare let timerender: any;
|
||||||
declare let stream_topic_history: any;
|
declare let stream_topic_history: any;
|
||||||
declare let topic_list: any;
|
declare let topic_list: any;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
"use strict";
|
import Handlebars from "handlebars/runtime";
|
||||||
|
|
||||||
const Handlebars = require("handlebars/runtime");
|
import * as util from "./util";
|
||||||
|
|
||||||
const util = require("./util");
|
|
||||||
|
|
||||||
// Below, we register Zulip-specific extensions to the handlebars API.
|
// Below, we register Zulip-specific extensions to the handlebars API.
|
||||||
//
|
//
|
||||||
|
@ -109,5 +107,3 @@ Handlebars.registerHelper(
|
||||||
);
|
);
|
||||||
|
|
||||||
Handlebars.registerHelper("numberFormat", (number) => number.toLocaleString());
|
Handlebars.registerHelper("numberFormat", (number) => number.toLocaleString());
|
||||||
|
|
||||||
window.templates = exports;
|
|
||||||
|
|
Loading…
Reference in New Issue