From 314d14827b8c4e795efe379055fd8b4027498036 Mon Sep 17 00:00:00 2001 From: Ruslan Khafizov Date: Fri, 18 Oct 2024 09:48:23 +0800 Subject: [PATCH] Delete usage of rulesInterview_nl (#167) --- anyall-purs/src/AnyAll.purs | 4 ++-- src/store/index.js | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/anyall-purs/src/AnyAll.purs b/anyall-purs/src/AnyAll.purs index 01bca16..acf0b21 100644 --- a/anyall-purs/src/AnyAll.purs +++ b/anyall-purs/src/AnyAll.purs @@ -18,8 +18,8 @@ import Data.Argonaut.Encode (encodeJson) import RuleLib.Interview -paint :: Json -> NLDict -> Item String -> Json -paint fm _ item = +paint :: Json -> Item String -> Json +paint fm item = encodeJson $ relevant (decodeMarkingArgo fm) Unknown item heads :: forall t2. Object t2 -> Array String diff --git a/src/store/index.js b/src/store/index.js index 0fa9500..3b095d1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -12,7 +12,6 @@ function getLins(Interview) { export default createStore({ state: { marking: {}, - rulesInterview_nl: AnyAll.interviewRules_nl, topLD: AnyAll.nl4eng, topLDBody: '', whichPrompt: 0, @@ -26,9 +25,9 @@ export default createStore({ questions(state) { if (!state.topLDBody) { const topLDBody = Object.values(state.topLD)[state.whichPrompt]; - return AnyAll.paint(state.marking)(state.rulesInterview_nl)(topLDBody); + return AnyAll.paint(state.marking)(topLDBody); } - return AnyAll.paint(state.marking)(state.rulesInterview_nl)(state.topLDBody); + return AnyAll.paint(state.marking)(state.topLDBody); }, questionPrompt(state) { const heads = AnyAll.heads(state.topLD);