anki/ts/graphs
RumovZ 0efa3f944f
Garbage collect unused Fluent strings (#1482)
* Canonify import of i18n module

Should always be imported as `tr`, or `tr2` if there is a name collision
(Svelte).

* Add helper for garbage collecting ftl strings

Also add a serializer for ftl asts.

* Add helper for filter-mapping `DirEntry`s

* Fix `i18n_helpers/BUILD.bazel`

* run cargo-raze

* Refactor `garbage_collection.rs`

- Improve helper for file iterating
- Remove unused terms as well
- Fix issue with checking for nested messages by switching to a regex-
based approach (which runs before deleting)
- Some more refactorings and lint fixes

* Fix lints in `serialize.rs`

* Write json pretty and sorted

* Update `serialize.rs` and fix header

* Fix doc and remove `dbg!`

* Add binaries for ftl garbage collection

Also relax type constraints and strip debug tests.

* add rust_binary targets for i18n helpers (dae)

* add scripts to update desktop usage/garbage collect (dae)

Since we've already diverged from 2.1.49, we won't gain anything
from generating a stable json just yet. But once 2.1.50 is released,
we should run 'ftl/update-desktop-usage.sh stable'.

* add keys from AnkiMobile (dae)

* Mention caveats in `remove-unused.sh`
2021-11-12 18:19:01 +10:00
..
added.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
AddedGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
AxisTicks.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
BUILD.bazel pass ts deps into most Svelte packages; remove redundant deps 2021-10-18 12:44:31 +10:00
buttons.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
ButtonsGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
calendar.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
CalendarGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
card-counts.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
CardCounts.svelte Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
CumulativeOverlay.svelte yarn upgrade --latest 2021-10-01 12:52:53 +10:00
ease.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
EaseGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
future-due.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
FutureDue.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
graph-helpers.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
graph-styles.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
Graph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
GraphRangeRadios.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
graphs-base.scss Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
graphs.html Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
GraphsPage.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
histogram-graph.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
HistogramGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
HourGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
hours.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
HoverColumns.svelte yarn upgrade --latest 2021-10-01 12:52:53 +10:00
index.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
InputBox.svelte yarn upgrade --latest 2021-10-01 12:52:53 +10:00
intervals.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
IntervalsGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
NoDataOverlay.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
RangeBox.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
reviews.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
ReviewsGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
TableData.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
today.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
TodayStats.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
Tooltip.svelte update ts deps 2021-05-26 09:37:40 +10:00
tooltip.ts update ts deps 2021-05-26 09:37:40 +10:00
tsconfig.json add a missing references line in ts/graphs 2021-11-04 14:56:50 +10:00
WithGraphData.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00