6da5e5b042
* Fix footer moving upwards * Fix column detection Was broken because escaped line breaks were not considered. Also removes delimiter detection on `#columns:` line. User must use tabs or set delimiter beforehand. * Add CSV preview * Parse `#tags column:` * Optionally export deck and notetype with CSV * Avoid clones in CSV export * Prevent bottom of page appearing under footer (dae) * Increase padding to 1em (dae) With 0.5em, when a vertical scrollbar is shown, it sits right next to the right edge of the content, making it look like there's no right margin. * Experimental changes to make table fit+scroll (dae) - limit individual cells to 15em, and show ellipses when truncated - limit total table width to body width, so that inner table is shown with scrollbar - use class rather than id - ids are bad practice in Svelte components, as more than one may be displayed on a single page * Skip importing foreign notes with filtered decks Were implicitly imported into the default deck before. Also some refactoring to fetch deck ids and names beforehand. * Hide spacer below hidden field mapping * Fix guid being replaced when updating note * Fix dupe identity check Canonify tags before checking if dupe is identical, but only add update tags later if appropriate. * Fix deck export for notes with missing card 1 * Fix note lines starting with `#` csv crate doesn't support escaping a leading comment char. :( * Support import/export of guids * Strip HTML from preview rows * Fix initially set deck if current is filtered * Make isHtml toggle reactive * Fix `html_to_text_line()` stripping sound names * Tweak export option labels * Switch to patched rust-csv fork Fixes writing lines starting with `#`, so revert 5ece10ad05f331. * List column options with first column field * Fix flag for exports with HTML stripped
136 lines
4.0 KiB
Plaintext
Vendored
136 lines
4.0 KiB
Plaintext
Vendored
"""
|
|
@generated
|
|
cargo-raze crate build file.
|
|
|
|
DO NOT EDIT! Replaced on runs of cargo-raze
|
|
"""
|
|
|
|
# buildifier: disable=load
|
|
load("@bazel_skylib//lib:selects.bzl", "selects")
|
|
|
|
# buildifier: disable=load
|
|
load(
|
|
"@rules_rust//rust:defs.bzl",
|
|
"rust_binary",
|
|
"rust_library",
|
|
"rust_proc_macro",
|
|
"rust_test",
|
|
)
|
|
|
|
package(default_visibility = [
|
|
# Public for visibility by "@raze__crate__version//" targets.
|
|
#
|
|
# Prefer access through "//cargo", which limits external
|
|
# visibility to explicit Cargo.toml dependencies.
|
|
"//visibility:public",
|
|
])
|
|
|
|
licenses([
|
|
"unencumbered", # Unlicense from expression "Unlicense OR MIT"
|
|
])
|
|
|
|
# Generated Targets
|
|
|
|
# Unsupported target "bench" with type "bench" omitted
|
|
|
|
# Unsupported target "cookbook-read-basic" with type "example" omitted
|
|
|
|
# Unsupported target "cookbook-read-colon" with type "example" omitted
|
|
|
|
# Unsupported target "cookbook-read-no-headers" with type "example" omitted
|
|
|
|
# Unsupported target "cookbook-read-serde" with type "example" omitted
|
|
|
|
# Unsupported target "cookbook-write-basic" with type "example" omitted
|
|
|
|
# Unsupported target "cookbook-write-serde" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-error-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-error-02" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-error-03" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-error-04" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-perf-alloc-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-perf-alloc-02" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-perf-alloc-03" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-perf-core-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-perf-serde-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-perf-serde-02" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-perf-serde-03" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-pipeline-pop-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-pipeline-search-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-pipeline-search-02" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-delimiter-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-headers-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-headers-02" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-serde-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-serde-02" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-serde-03" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-serde-04" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-serde-invalid-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-read-serde-invalid-02" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-setup-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-write-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-write-02" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-write-delimiter-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-write-serde-01" with type "example" omitted
|
|
|
|
# Unsupported target "tutorial-write-serde-02" with type "example" omitted
|
|
|
|
rust_library(
|
|
name = "csv",
|
|
srcs = glob(["**/*.rs"]),
|
|
crate_features = [
|
|
],
|
|
crate_root = "src/lib.rs",
|
|
data = [],
|
|
edition = "2018",
|
|
rustc_flags = [
|
|
"--cap-lints=allow",
|
|
],
|
|
tags = [
|
|
"cargo-raze",
|
|
"crate-name=csv",
|
|
"manual",
|
|
],
|
|
version = "1.1.6",
|
|
# buildifier: leave-alone
|
|
deps = [
|
|
"@raze__bstr__0_2_17//:bstr",
|
|
"@raze__csv_core__0_1_10//:csv_core",
|
|
"@raze__itoa__1_0_1//:itoa",
|
|
"@raze__ryu__1_0_9//:ryu",
|
|
"@raze__serde__1_0_136//:serde",
|
|
],
|
|
)
|
|
|
|
# Unsupported target "tests" with type "test" omitted
|