Remove protobuf important from reiewer (no longer necessary (?))

This commit is contained in:
Henrik Giesel 2021-07-13 00:14:01 +02:00
parent d6393ba996
commit ddf3adfc8e
5 changed files with 6 additions and 21 deletions

View File

@ -127,10 +127,7 @@ class Previewer(QDialog):
self._web.stdHtml(
self.mw.reviewer.revHtml(),
css=["css/reviewer.css"],
js=[
"js/vendor/protobuf.min.js",
"js/reviewer.js",
],
js=["js/reviewer.js"],
context=self,
)
self._web.set_bridge_command(self._on_bridge_cmd, self)

View File

@ -333,10 +333,7 @@ class CardLayout(QDialog):
self.preview_web.stdHtml(
self.mw.reviewer.revHtml(),
css=["css/reviewer.css"],
js=[
"js/vendor/protobuf.min.js",
"js/reviewer.js",
],
js=["js/reviewer.js"],
context=self,
)
self.preview_web.set_bridge_command(self._on_bridge_cmd, self)

View File

@ -287,10 +287,7 @@ class Reviewer:
self.web.stdHtml(
self.revHtml(),
css=["css/reviewer.css"],
js=[
"js/vendor/protobuf.min.js",
"js/reviewer.js",
],
js=["js/reviewer.js"],
context=self,
)
# show answer / ease buttons

View File

@ -133,10 +133,10 @@ esbuild(
output_css = "editor.css",
visibility = ["//visibility:public"],
deps = [
"base_css",
"bootstrap-icons",
"editor_ts",
"base_css",
"local_css",
"bootstrap-icons",
"mdi-icons",
"svelte_components",
"//ts/components",

View File

@ -29,22 +29,16 @@ ts_library(
esbuild(
name = "reviewer",
srcs = [
"//ts:protobuf-shim.js",
],
args = [
"--resolve-extensions=.mjs,.js",
"--log-level=warning",
],
entry_point = "index_wrapper.ts",
external = [
"protobufjs/light",
],
visibility = ["//visibility:public"],
deps = [
":reviewer_ts",
"@npm//mathjax-full",
"//ts/lib",
"//ts/lib:backend_proto",
"@npm//protobufjs",
],
)