Skip to content

Commit

Permalink
$mol_view_tree2 refactor, hyoo-ru/mam_mol#646
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Dec 3, 2023
1 parent 56c568b commit dc41a33
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
12 changes: 12 additions & 0 deletions data.ts
Original file line number Diff line number Diff line change
@@ -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
}
}
24 changes: 12 additions & 12 deletions fallacy.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -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 \🚫 Зеро
Expand Down

0 comments on commit dc41a33

Please sign in to comment.