From dc41a3301d002d71785019197bd39563def37b4b Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Mon, 4 Dec 2023 01:36:34 +0300 Subject: [PATCH] $mol_view_tree2 refactor, https://github.com/hyoo-ru/mam_mol/pull/646 --- data.ts | 12 ++++++++++++ fallacy.view.tree | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 data.ts diff --git a/data.ts b/data.ts new file mode 100644 index 0000000..a31d835 --- /dev/null +++ b/data.ts @@ -0,0 +1,12 @@ +namespace $ { + export type $hyoo_fallacy_tag = { + title: string + } + + export type $hyoo_fallacy_data = { + tags: readonly string[] + title: string + descr: string + sample: string + } +} diff --git a/fallacy.view.tree b/fallacy.view.tree index d71bf13..b16f671 100644 --- a/fallacy.view.tree +++ b/fallacy.view.tree @@ -26,36 +26,36 @@ $hyoo_fallacy $mol_book2 <= Feedback $mol_link uri \https://github.com/hyoo-ru/fallacy.hyoo.ru/issues title \Ошибки? Правки? Предложения? - Content!id $mol_page - title <= content_title!id \ + Content* $mol_page + title <= content_title* \ tools / <= Search $mol_search query?val <=> search?val \ body / - <= Cards!id $mol_list - rows <= cards!id / + <= Cards* $mol_list + rows <= cards* / Empty <= Cards_empty $mol_view sub / <= empty_label \Заблуждений не найдено - Filter!id $mol_link - arg <= filter_arg!id * - title <= filter_title!id \ - Card!id $hyoo_fallacy_card + Filter* $mol_link + arg <= filter_arg* * + title <= filter_title* \ + Card* $hyoo_fallacy_card tags <= tags - selected?val <=> fallacy_selected!id?val false - fallacy <= fallacy!id * + selected?val <=> fallacy_selected*?val false + fallacy <= fallacy* * tags /string title \ descr \ sample \ highlight <= search - tags * + tags *$hyoo_fallacy_tag person * title \🤺 Атака через личность emotion * title \🎭 Эксплуатация эмоций logic * title \🧠 Нарушение логики content * title \📊 Манипуляция контентом reference * title \🎅 Сомнительная ссылка - fallacies * + fallacies *$hyoo_fallacy_data - zero * tags / title \🚫 Зеро