3beea5e1e4
* Forbid inserting object and iframe tags via PlainTextInput * Add optional browserMode parameter to Editor * Create new ts modules for three editor instances - note-creator for AddCards - browser-editor for the editor in the Browser - reviewer-editor for the EditCurrent * Revert "Forbid inserting object and iframe tags via PlainTextInput" This reverts commit ab90ae8194494d883a1863126496e2d8f332509e. * Refactor browserMode to editorMode * Move new editor variants inside /ts/editor directory * Fix typo
54 lines
976 B
Python
54 lines
976 B
Python
load("//ts:copy.bzl", "copy_files_into_group")
|
|
load("//ts:compile_sass.bzl", "compile_sass")
|
|
|
|
compile_sass(
|
|
srcs = glob(
|
|
["*.scss"],
|
|
exclude = ["_*.scss"],
|
|
),
|
|
group = "css_local",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//sass:buttons_lib",
|
|
"//sass:card_counts_lib",
|
|
"//sass:scrollbar_lib",
|
|
],
|
|
)
|
|
|
|
copy_files_into_group(
|
|
name = "editable",
|
|
srcs = [
|
|
"editable.css",
|
|
],
|
|
package = "//ts/editable",
|
|
)
|
|
|
|
copy_files_into_group(
|
|
name = "editor",
|
|
srcs = [
|
|
"browser_editor.css",
|
|
"reviewer_editor.css",
|
|
"note_creator.css",
|
|
],
|
|
package = "//ts/editor",
|
|
)
|
|
|
|
copy_files_into_group(
|
|
name = "reviewer",
|
|
srcs = [
|
|
"reviewer.css",
|
|
],
|
|
package = "//ts/reviewer",
|
|
)
|
|
|
|
filegroup(
|
|
name = "css",
|
|
srcs = [
|
|
"css_local",
|
|
"editable",
|
|
"editor",
|
|
"reviewer",
|
|
],
|
|
visibility = ["//qt:__subpackages__"],
|
|
)
|