Include css-browser-selector via ts/reviewer

This commit is contained in:
Henrik Giesel 2021-07-12 16:04:27 +02:00
parent f203562c58
commit 68ac505d81
4 changed files with 9 additions and 5 deletions

View File

@ -126,7 +126,6 @@ class Previewer(QDialog):
def _setup_web_view(self) -> None:
jsinc = [
"js/vendor/jquery.min.js",
"js/vendor/css_browser_selector.min.js",
"js/mathjax.js",
"js/vendor/mathjax/tex-chtml.js",
"js/vendor/protobuf.min.js",

View File

@ -332,7 +332,6 @@ class CardLayout(QDialog):
jsinc = [
"js/vendor/jquery.min.js",
"js/vendor/css_browser_selector.min.js",
"js/mathjax.js",
"js/vendor/mathjax/tex-chtml.js",
"js/vendor/protobuf.min.js",

View File

@ -16,9 +16,13 @@ compile_sass(
ts_library(
name = "lib",
name = "reviewer_ts",
srcs = glob(["*.ts"]),
deps = ["//ts/lib"],
deps = [
"//ts/lib",
"//ts/lib:backend_proto",
"@npm//css-browser-selector",
],
)
esbuild(
@ -36,7 +40,7 @@ esbuild(
],
visibility = ["//visibility:public"],
deps = [
":lib",
":reviewer_ts",
"//ts/lib",
"@npm//protobufjs",
],

View File

@ -1,6 +1,8 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import "css-browser-selector/css_browser_selector";
import { bridgeCommand } from "lib/bridgecommand";
export { mutateNextCardStates } from "./answering";