@nakamura-123/pages 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/Article/ArticleContentView.js +36 -43
- package/dist/component/Article/ArticleContents.js +5 -4
- package/dist/component/Article/Cloze.d.ts +1 -1
- package/dist/component/Article/Cloze.js +15 -5
- package/dist/component/Basic/BasicContents.js +5 -4
- package/dist/component/Basic/MiniTestCard.js +3 -2
- package/dist/component/Grade/GAllTags.js +3 -4
- package/dist/component/PointBox.d.ts +6 -0
- package/dist/component/PointBox.js +51 -0
- package/dist/component/Result/QuizFlatList.js +2 -1
- package/dist/functions/articleContentFnc.d.ts +0 -1
- package/dist/functions/articleContentFnc.js +18 -8
- package/dist/functions/joinTitleFnc.d.ts +1 -0
- package/dist/functions/joinTitleFnc.js +15 -0
- package/dist/page/ArticlePage.js +4 -1
- package/dist/page/BasicPage.js +4 -1
- package/dist/quiz/common/renderTransUdl.d.ts +3 -0
- package/dist/quiz/common/renderTransUdl.js +20 -0
- package/dist/quiz/explain/ExplainBox.js +9 -7
- package/dist/quiz/grammar/GQuestion.js +13 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -32,6 +32,7 @@ const lib_1 = require("@nakamura-123/lib");
|
|
|
32
32
|
const common_1 = require("@nakamura-123/common");
|
|
33
33
|
const QuizCnt_1 = __importDefault(require("../jQuestion/QuizCnt"));
|
|
34
34
|
const RubyText_1 = __importDefault(require("../common/RubyText"));
|
|
35
|
+
const renderTransUdl_1 = require("../common/renderTransUdl");
|
|
35
36
|
const Above3BtnJ_1 = __importDefault(require("../setting/Above3BtnJ"));
|
|
36
37
|
const quizHook_1 = require("../../hooks/quizHook");
|
|
37
38
|
// 例文と訳。意味を取る問題は文法の部分に下線を引き、答える前でもタップで訳を見られる。
|
|
@@ -59,7 +60,7 @@ const GQuestion = ({ navigation }) => {
|
|
|
59
60
|
</react_native_1.View>
|
|
60
61
|
<react_native_1.View style={styles.bottom}>
|
|
61
62
|
{showTrans && trans && (<common_1.MyText fsize="sm" style={styles.trans}>
|
|
62
|
-
{trans}
|
|
63
|
+
{(0, renderTransUdl_1.renderTransUdl)(trans, isBlank ? styles.udlRed : styles.udlBlue)}
|
|
63
64
|
</common_1.MyText>)}
|
|
64
65
|
{isQuiz && !isBlank && !isPeek && (<react_native_1.Pressable style={styles.peek} onPress={() => setPeekId(question.quizId)}>
|
|
65
66
|
<common_1.MyText fsize="xs" color="ltBlack">
|
|
@@ -93,6 +94,17 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
93
94
|
trans: {
|
|
94
95
|
textAlign: "center",
|
|
95
96
|
},
|
|
97
|
+
// 訳の下線は例文の下線と同じ色にする(穴埋めは赤、意味を取る問題は青)。線だけでは細くて見えにくいので文字も色づける
|
|
98
|
+
udlRed: {
|
|
99
|
+
color: lib_1.colors.red,
|
|
100
|
+
textDecorationLine: "underline",
|
|
101
|
+
textDecorationColor: lib_1.colors.red,
|
|
102
|
+
},
|
|
103
|
+
udlBlue: {
|
|
104
|
+
color: lib_1.colors.blue,
|
|
105
|
+
textDecorationLine: "underline",
|
|
106
|
+
textDecorationColor: lib_1.colors.blue,
|
|
107
|
+
},
|
|
96
108
|
peek: {
|
|
97
109
|
marginTop: 8,
|
|
98
110
|
paddingVertical: 5,
|