@nakamura-123/pages 0.0.1

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.
Files changed (334) hide show
  1. package/dist/component/Badge5s.d.ts +9 -0
  2. package/dist/component/Badge5s.js +46 -0
  3. package/dist/component/BasicSetting.d.ts +9 -0
  4. package/dist/component/BasicSetting.js +31 -0
  5. package/dist/component/Boot/IconTitleAndToggle.d.ts +8 -0
  6. package/dist/component/Boot/IconTitleAndToggle.js +20 -0
  7. package/dist/component/Boot/SelectRange.d.ts +6 -0
  8. package/dist/component/Boot/SelectRange.js +44 -0
  9. package/dist/component/Boot/SelectUnit.d.ts +6 -0
  10. package/dist/component/Boot/SelectUnit.js +41 -0
  11. package/dist/component/Boot/ToggleRange.d.ts +8 -0
  12. package/dist/component/Boot/ToggleRange.js +54 -0
  13. package/dist/component/Coin/AppReviews.d.ts +10 -0
  14. package/dist/component/Coin/AppReviews.js +45 -0
  15. package/dist/component/Coin/CatchCopy.d.ts +3 -0
  16. package/dist/component/Coin/CatchCopy.js +31 -0
  17. package/dist/component/Coin/Recommend.d.ts +3 -0
  18. package/dist/component/Coin/Recommend.js +87 -0
  19. package/dist/component/Grade/AllBadges.d.ts +7 -0
  20. package/dist/component/Grade/AllBadges.js +41 -0
  21. package/dist/component/Grade/AllTags.d.ts +5 -0
  22. package/dist/component/Grade/AllTags.js +32 -0
  23. package/dist/component/Grade/BasicBadge.d.ts +7 -0
  24. package/dist/component/Grade/BasicBadge.js +72 -0
  25. package/dist/component/Grade/ChangeWeeklyTargetBtn.d.ts +5 -0
  26. package/dist/component/Grade/ChangeWeeklyTargetBtn.js +39 -0
  27. package/dist/component/Grade/DatePickerModal.d.ts +8 -0
  28. package/dist/component/Grade/DatePickerModal.js +45 -0
  29. package/dist/component/Grade/GradeCard/ChangeWeeklyModal.d.ts +13 -0
  30. package/dist/component/Grade/GradeCard/ChangeWeeklyModal.js +39 -0
  31. package/dist/component/Grade/GradeCard/ChangeWeeklyTargetBtn.d.ts +7 -0
  32. package/dist/component/Grade/GradeCard/ChangeWeeklyTargetBtn.js +60 -0
  33. package/dist/component/Grade/GradeCard/DatePickerModal.d.ts +8 -0
  34. package/dist/component/Grade/GradeCard/DatePickerModal.js +49 -0
  35. package/dist/component/Grade/GradeCard/GradeCard.d.ts +7 -0
  36. package/dist/component/Grade/GradeCard/GradeCard.js +53 -0
  37. package/dist/component/Grade/GradeCard/Square3sGrade.d.ts +11 -0
  38. package/dist/component/Grade/GradeCard/Square3sGrade.js +60 -0
  39. package/dist/component/Grade/GradeCard/TargetDate.d.ts +7 -0
  40. package/dist/component/Grade/GradeCard/TargetDate.js +60 -0
  41. package/dist/component/Grade/GradeCard/WeeklyAchivedRate.d.ts +9 -0
  42. package/dist/component/Grade/GradeCard/WeeklyAchivedRate.js +28 -0
  43. package/dist/component/Grade/GradeCard/WeeklyProgress.d.ts +11 -0
  44. package/dist/component/Grade/GradeCard/WeeklyProgress.js +88 -0
  45. package/dist/component/Grade/GradeCard.d.ts +4 -0
  46. package/dist/component/Grade/GradeCard.js +53 -0
  47. package/dist/component/Grade/QuizCntGraph.d.ts +8 -0
  48. package/dist/component/Grade/QuizCntGraph.js +104 -0
  49. package/dist/component/Grade/Scuare3sGrade.d.ts +9 -0
  50. package/dist/component/Grade/Scuare3sGrade.js +35 -0
  51. package/dist/component/Grade/ShareBtn.d.ts +6 -0
  52. package/dist/component/Grade/ShareBtn.js +86 -0
  53. package/dist/component/Grade/Square3sGrade.d.ts +9 -0
  54. package/dist/component/Grade/Square3sGrade.js +63 -0
  55. package/dist/component/Grade/Square4s.d.ts +7 -0
  56. package/dist/component/Grade/Square4s.js +63 -0
  57. package/dist/component/Grade/TargetDate.d.ts +4 -0
  58. package/dist/component/Grade/TargetDate.js +56 -0
  59. package/dist/component/Grade/WeeklyAchivedRate.d.ts +7 -0
  60. package/dist/component/Grade/WeeklyAchivedRate.js +28 -0
  61. package/dist/component/Grade/WeeklyProgress.d.ts +9 -0
  62. package/dist/component/Grade/WeeklyProgress.js +80 -0
  63. package/dist/component/HeadNavigator.d.ts +0 -0
  64. package/dist/component/HeadNavigator.js +49 -0
  65. package/dist/component/HomePage.d.ts +8 -0
  66. package/dist/component/HomePage.js +44 -0
  67. package/dist/component/MiniTestCard.d.ts +9 -0
  68. package/dist/component/MiniTestCard.js +75 -0
  69. package/dist/component/Paw4s.d.ts +7 -0
  70. package/dist/component/Paw4s.js +51 -0
  71. package/dist/component/Paw5s.d.ts +7 -0
  72. package/dist/component/Paw5s.js +51 -0
  73. package/dist/component/QuizSet/QuizOptionDrill.d.ts +5 -0
  74. package/dist/component/QuizSet/QuizOptionDrill.js +46 -0
  75. package/dist/component/QuizSet/QuizSetDrill.d.ts +5 -0
  76. package/dist/component/QuizSet/QuizSetDrill.js +43 -0
  77. package/dist/component/Result/CharaCard.d.ts +7 -0
  78. package/dist/component/Result/CharaCard.js +43 -0
  79. package/dist/component/Result/LessonTitle.d.ts +3 -0
  80. package/dist/component/Result/LessonTitle.js +42 -0
  81. package/dist/component/Result/QuizFlatList.d.ts +7 -0
  82. package/dist/component/Result/QuizFlatList.js +76 -0
  83. package/dist/component/Result/ScoreBox.d.ts +7 -0
  84. package/dist/component/Result/ScoreBox.js +61 -0
  85. package/dist/component/Result/ScoreCircle.d.ts +7 -0
  86. package/dist/component/Result/ScoreCircle.js +59 -0
  87. package/dist/component/SelectRange/SelectYearRange.d.ts +7 -0
  88. package/dist/component/SelectRange/SelectYearRange.js +105 -0
  89. package/dist/component/SettingBtns/Config.d.ts +8 -0
  90. package/dist/component/SettingBtns/Config.js +17 -0
  91. package/dist/component/SettingBtns/Grade.d.ts +8 -0
  92. package/dist/component/SettingBtns/Grade.js +17 -0
  93. package/dist/component/SettingBtns/QuizOptionSelector.d.ts +7 -0
  94. package/dist/component/SettingBtns/QuizOptionSelector.js +43 -0
  95. package/dist/component/SettingBtns/Range.d.ts +5 -0
  96. package/dist/component/SettingBtns/Range.js +44 -0
  97. package/dist/component/SettingBtns/Report.d.ts +5 -0
  98. package/dist/component/SettingBtns/Report.js +16 -0
  99. package/dist/component/SettingBtns/Setting.d.ts +0 -0
  100. package/dist/component/SettingBtns/Setting.js +1 -0
  101. package/dist/component/Square3s.d.ts +7 -0
  102. package/dist/component/Square3s.js +38 -0
  103. package/dist/component/SubCagegoryList.d.ts +8 -0
  104. package/dist/component/SubCagegoryList.js +120 -0
  105. package/dist/component/SubCategoryLeft.d.ts +5 -0
  106. package/dist/component/SubCategoryLeft.js +14 -0
  107. package/dist/component/SubCategoryList.d.ts +9 -0
  108. package/dist/component/SubCategoryList.js +77 -0
  109. package/dist/component/TabAnimeView.d.ts +7 -0
  110. package/dist/component/TabAnimeView.js +61 -0
  111. package/dist/component/TabContents.d.ts +1 -0
  112. package/dist/component/TabContents.js +18 -0
  113. package/dist/component/TabContentsWrap.d.ts +7 -0
  114. package/dist/component/TabContentsWrap.js +38 -0
  115. package/dist/component/Tag5s.d.ts +6 -0
  116. package/dist/component/Tag5s.js +49 -0
  117. package/dist/component/TagBadge5s.d.ts +7 -0
  118. package/dist/component/TagBadge5s.js +63 -0
  119. package/dist/component/TagBadge5sPress.d.ts +6 -0
  120. package/dist/component/TagBadge5sPress.js +29 -0
  121. package/dist/component/TestCard.d.ts +7 -0
  122. package/dist/component/TestCard.js +57 -0
  123. package/dist/component/TestPage/AverageBar.d.ts +11 -0
  124. package/dist/component/TestPage/AverageBar.js +74 -0
  125. package/dist/component/TestPage/BarChart.d.ts +7 -0
  126. package/dist/component/TestPage/BarChart.js +107 -0
  127. package/dist/component/TestPage/BarChartContainer.d.ts +9 -0
  128. package/dist/component/TestPage/BarChartContainer.js +99 -0
  129. package/dist/component/TestPage/BarGraph.d.ts +11 -0
  130. package/dist/component/TestPage/BarGraph.js +60 -0
  131. package/dist/component/TestPage/ChartControl.d.ts +10 -0
  132. package/dist/component/TestPage/ChartControl.js +43 -0
  133. package/dist/component/TestPage/Square3s.d.ts +9 -0
  134. package/dist/component/TestPage/Square3s.js +35 -0
  135. package/dist/component/UnitPage.d.ts +10 -0
  136. package/dist/component/UnitPage.js +15 -0
  137. package/dist/functions/InQuizFnc.d.ts +0 -0
  138. package/dist/functions/InQuizFnc.js +1 -0
  139. package/dist/functions/badgeBasicFnc.d.ts +14 -0
  140. package/dist/functions/badgeBasicFnc.js +68 -0
  141. package/dist/functions/badgeDailyFnc.d.ts +15 -0
  142. package/dist/functions/badgeDailyFnc.js +65 -0
  143. package/dist/functions/badgeFilter.d.ts +17 -0
  144. package/dist/functions/badgeFilter.js +33 -0
  145. package/dist/functions/badgeFnc.d.ts +15 -0
  146. package/dist/functions/badgeFnc.js +68 -0
  147. package/dist/functions/createQuizFnc.d.ts +13 -0
  148. package/dist/functions/createQuizFnc.js +69 -0
  149. package/dist/functions/gradeFnc.d.ts +16 -0
  150. package/dist/functions/gradeFnc.js +83 -0
  151. package/dist/functions/questionFilter.d.ts +16 -0
  152. package/dist/functions/questionFilter.js +79 -0
  153. package/dist/functions/questionFormat.d.ts +7 -0
  154. package/dist/functions/questionFormat.js +89 -0
  155. package/dist/functions/tagFnc.d.ts +22 -0
  156. package/dist/functions/tagFnc.js +105 -0
  157. package/dist/functions/testFnc.d.ts +8 -0
  158. package/dist/functions/testFnc.js +21 -0
  159. package/dist/helper/scoreFnc.d.ts +10 -0
  160. package/dist/helper/scoreFnc.js +40 -0
  161. package/dist/helper/tagFnc.d.ts +23 -0
  162. package/dist/helper/tagFnc.js +69 -0
  163. package/dist/helper/testFnc.d.ts +7 -0
  164. package/dist/helper/testFnc.js +17 -0
  165. package/dist/hooks/BadgeHook.d.ts +1 -0
  166. package/dist/hooks/BadgeHook.js +65 -0
  167. package/dist/hooks/ExitQuizHook.d.ts +2 -0
  168. package/dist/hooks/ExitQuizHook.js +54 -0
  169. package/dist/hooks/basicHook.d.ts +3 -0
  170. package/dist/hooks/basicHook.js +14 -0
  171. package/dist/hooks/quizActionHook.d.ts +5 -0
  172. package/dist/hooks/quizActionHook.js +86 -0
  173. package/dist/hooks/quizHook.d.ts +15 -0
  174. package/dist/hooks/quizHook.js +60 -0
  175. package/dist/hooks/selector.d.ts +6 -0
  176. package/dist/hooks/selector.js +24 -0
  177. package/dist/index.d.ts +20 -0
  178. package/dist/index.js +68 -0
  179. package/dist/page/BadgePage.d.ts +8 -0
  180. package/dist/page/BadgePage.js +58 -0
  181. package/dist/page/BasicPage.d.ts +9 -0
  182. package/dist/page/BasicPage.js +125 -0
  183. package/dist/page/BootPage.d.ts +9 -0
  184. package/dist/page/BootPage.js +116 -0
  185. package/dist/page/CoinPage.d.ts +9 -0
  186. package/dist/page/CoinPage.js +51 -0
  187. package/dist/page/GetBadgePage.d.ts +7 -0
  188. package/dist/page/GetBadgePage.js +173 -0
  189. package/dist/page/GradePage.d.ts +7 -0
  190. package/dist/page/GradePage.js +37 -0
  191. package/dist/page/HistoryPage.d.ts +11 -0
  192. package/dist/page/HistoryPage.js +62 -0
  193. package/dist/page/HomePage.d.ts +8 -0
  194. package/dist/page/HomePage.js +80 -0
  195. package/dist/page/ImgZoom.d.ts +10 -0
  196. package/dist/page/ImgZoom.js +29 -0
  197. package/dist/page/QuixPage.d.ts +7 -0
  198. package/dist/page/QuixPage.js +33 -0
  199. package/dist/page/QuizPage.d.ts +7 -0
  200. package/dist/page/QuizPage.js +98 -0
  201. package/dist/page/QuizSettingPage.d.ts +7 -0
  202. package/dist/page/QuizSettingPage.js +72 -0
  203. package/dist/page/QuizSetupPage.d.ts +7 -0
  204. package/dist/page/QuizSetupPage.js +85 -0
  205. package/dist/page/ReportPage.d.ts +8 -0
  206. package/dist/page/ReportPage.js +185 -0
  207. package/dist/page/ResultPage.d.ts +7 -0
  208. package/dist/page/ResultPage.js +47 -0
  209. package/dist/page/SettingPage.d.ts +7 -0
  210. package/dist/page/SettingPage.js +62 -0
  211. package/dist/page/TestPage.d.ts +9 -0
  212. package/dist/page/TestPage.js +101 -0
  213. package/dist/page/UnitPage.d.ts +9 -0
  214. package/dist/page/UnitPage.js +127 -0
  215. package/dist/page/ZoomImg.d.ts +0 -0
  216. package/dist/page/ZoomImg.js +1 -0
  217. package/dist/quiz/GoBackAlert.d.ts +2 -0
  218. package/dist/quiz/GoBackAlert.js +30 -0
  219. package/dist/quiz/MyImage.d.ts +9 -0
  220. package/dist/quiz/MyImage.js +60 -0
  221. package/dist/quiz/MyTextqqyy.d.ts +10 -0
  222. package/dist/quiz/MyTextqqyy.js +80 -0
  223. package/dist/quiz/Question.d.ts +3 -0
  224. package/dist/quiz/Question.js +43 -0
  225. package/dist/quiz/Quiz.d.ts +9 -0
  226. package/dist/quiz/Quiz.js +44 -0
  227. package/dist/quiz/QuizTitle.d.ts +3 -0
  228. package/dist/quiz/QuizTitle.js +51 -0
  229. package/dist/quiz/Title.d.ts +3 -0
  230. package/dist/quiz/Title.js +51 -0
  231. package/dist/quiz/answer/Answer.d.ts +3 -0
  232. package/dist/quiz/answer/Answer.js +41 -0
  233. package/dist/quiz/answer/BlankAnswer.d.ts +7 -0
  234. package/dist/quiz/answer/BlankAnswer.js +33 -0
  235. package/dist/quiz/answer/BlankBtn.d.ts +3 -0
  236. package/dist/quiz/answer/BlankBtn.js +50 -0
  237. package/dist/quiz/answer/ChoiceView.d.ts +17 -0
  238. package/dist/quiz/answer/ChoiceView.js +53 -0
  239. package/dist/quiz/answer/CommonChoice.d.ts +0 -0
  240. package/dist/quiz/answer/CommonChoice.js +1 -0
  241. package/dist/quiz/answer/MultiChoice.d.ts +7 -0
  242. package/dist/quiz/answer/MultiChoice.js +66 -0
  243. package/dist/quiz/answer/MultiChoiceContainer.d.ts +7 -0
  244. package/dist/quiz/answer/MultiChoiceContainer.js +71 -0
  245. package/dist/quiz/answer/MultiChoiceLogic.d.ts +0 -0
  246. package/dist/quiz/answer/MultiChoiceLogic.js +1 -0
  247. package/dist/quiz/answer/MultiNextBtn.d.ts +7 -0
  248. package/dist/quiz/answer/MultiNextBtn.js +36 -0
  249. package/dist/quiz/answer/NormalChoice.d.ts +7 -0
  250. package/dist/quiz/answer/NormalChoice.js +64 -0
  251. package/dist/quiz/answer/NormalChoiceContainer.d.ts +7 -0
  252. package/dist/quiz/answer/NormalChoiceContainer.js +76 -0
  253. package/dist/quiz/answer/NormalChoiceView.d.ts +17 -0
  254. package/dist/quiz/answer/NormalChoiceView.js +53 -0
  255. package/dist/quiz/answer/NormalSelect.d.ts +5 -0
  256. package/dist/quiz/answer/NormalSelect.js +28 -0
  257. package/dist/quiz/answer/memo.d.ts +9 -0
  258. package/dist/quiz/answer/memo.js +114 -0
  259. package/dist/quiz/answer/style/getChoiceStyle.d.ts +2 -0
  260. package/dist/quiz/answer/style/getChoiceStyle.js +17 -0
  261. package/dist/quiz/answer/styles/getChoiceStyle.d.ts +5 -0
  262. package/dist/quiz/answer/styles/getChoiceStyle.js +32 -0
  263. package/dist/quiz/answer/util/choiceFnc.d.ts +2 -0
  264. package/dist/quiz/answer/util/choiceFnc.js +9 -0
  265. package/dist/quiz/check/Check.d.ts +8 -0
  266. package/dist/quiz/check/Check.js +82 -0
  267. package/dist/quiz/check/NextQuiz.d.ts +8 -0
  268. package/dist/quiz/check/NextQuiz.js +42 -0
  269. package/dist/quiz/check/NextQuizBtn.d.ts +8 -0
  270. package/dist/quiz/check/NextQuizBtn.js +67 -0
  271. package/dist/quiz/check/SelectTag.d.ts +5 -0
  272. package/dist/quiz/check/SelectTag.js +86 -0
  273. package/dist/quiz/common/MyImage.d.ts +6 -0
  274. package/dist/quiz/common/MyImage.js +56 -0
  275. package/dist/quiz/common/MyTextqqyy.d.ts +11 -0
  276. package/dist/quiz/common/MyTextqqyy.js +133 -0
  277. package/dist/quiz/common/PageContainerWrap.d.ts +10 -0
  278. package/dist/quiz/common/PageContainerWrap.js +38 -0
  279. package/dist/quiz/common/RenderImgOrText.d.ts +11 -0
  280. package/dist/quiz/common/RenderImgOrText.js +21 -0
  281. package/dist/quiz/common/ZoomableImage.d.ts +9 -0
  282. package/dist/quiz/common/ZoomableImage.js +18 -0
  283. package/dist/quiz/explain/CorrectBar.d.ts +7 -0
  284. package/dist/quiz/explain/CorrectBar.js +46 -0
  285. package/dist/quiz/explain/CorrectedBar.d.ts +7 -0
  286. package/dist/quiz/explain/CorrectedBar.js +45 -0
  287. package/dist/quiz/explain/Example.d.ts +8 -0
  288. package/dist/quiz/explain/Example.js +107 -0
  289. package/dist/quiz/explain/Explain.d.ts +8 -0
  290. package/dist/quiz/explain/Explain.js +59 -0
  291. package/dist/quiz/explain/ExplainLogic.d.ts +17 -0
  292. package/dist/quiz/explain/ExplainLogic.js +52 -0
  293. package/dist/quiz/function/choiceFnc.d.ts +2 -0
  294. package/dist/quiz/function/choiceFnc.js +9 -0
  295. package/dist/quiz/function/turnModeFnc.d.ts +0 -0
  296. package/dist/quiz/function/turnModeFnc.js +31 -0
  297. package/dist/quiz/question/FillDiagram.d.ts +10 -0
  298. package/dist/quiz/question/FillDiagram.js +27 -0
  299. package/dist/quiz/question/Question.d.ts +8 -0
  300. package/dist/quiz/question/Question.js +61 -0
  301. package/dist/quiz/question/QuestionFormat.d.ts +8 -0
  302. package/dist/quiz/question/QuestionFormat.js +69 -0
  303. package/dist/quiz/question/QuestionFormats.d.ts +9 -0
  304. package/dist/quiz/question/QuestionFormats.js +75 -0
  305. package/dist/quiz/question/QuestionMultiFormat.d.ts +7 -0
  306. package/dist/quiz/question/QuestionMultiFormat.js +43 -0
  307. package/dist/quiz/question/QuestionTxtFomat.d.ts +7 -0
  308. package/dist/quiz/question/QuestionTxtFomat.js +42 -0
  309. package/dist/quiz/question/SearchYoutue.d.ts +6 -0
  310. package/dist/quiz/question/SearchYoutue.js +20 -0
  311. package/dist/quiz/question/questionStyleFormat.d.ts +8 -0
  312. package/dist/quiz/question/questionStyleFormat.js +61 -0
  313. package/dist/quiz/save/QuizSaveData.d.ts +9 -0
  314. package/dist/quiz/save/QuizSaveData.js +68 -0
  315. package/dist/quiz/setting/Bottom3Btn.d.ts +8 -0
  316. package/dist/quiz/setting/Bottom3Btn.js +79 -0
  317. package/dist/quiz/setting/ReturnBtn.d.ts +7 -0
  318. package/dist/quiz/setting/ReturnBtn.js +77 -0
  319. package/dist/quiz/setting/ReturnSaveBtn.d.ts +7 -0
  320. package/dist/quiz/setting/ReturnSaveBtn.js +94 -0
  321. package/dist/quiz/styles/getChoiceStyle.d.ts +5 -0
  322. package/dist/quiz/styles/getChoiceStyle.js +32 -0
  323. package/dist/quiz/util/choiceFnc.d.ts +2 -0
  324. package/dist/quiz/util/choiceFnc.js +9 -0
  325. package/dist/quiz/util/commonFnc.d.ts +0 -0
  326. package/dist/quiz/util/commonFnc.js +1 -0
  327. package/dist/quiz/util/customHook.d.ts +0 -0
  328. package/dist/quiz/util/customHook.js +1 -0
  329. package/dist/quiz/util/customSelector.d.ts +5 -0
  330. package/dist/quiz/util/customSelector.js +16 -0
  331. package/dist/tsconfig.tsbuildinfo +1 -0
  332. package/dist/types/homePage.d.ts +12 -0
  333. package/dist/types/homePage.js +2 -0
  334. package/package.json +23 -0
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ var react_1 = __importStar(require("react"));
30
+ var react_native_1 = require("react-native");
31
+ var react_native_gesture_handler_1 = require("react-native-gesture-handler");
32
+ var react_redux_1 = require("react-redux");
33
+ var react_i18next_1 = require("react-i18next");
34
+ var common_1 = require("@nakamura-123/common");
35
+ var stores_1 = require("@nakamura-123/stores");
36
+ var setSelectedSubject = stores_1.setAction.setSelectedSubject, setMaxIndex = stores_1.setAction.setMaxIndex;
37
+ var Badge5s_1 = __importDefault(require("../component/Badge5s"));
38
+ var TagBadge5s_1 = __importDefault(require("../component/TagBadge5s"));
39
+ var SubCategoryList_1 = __importDefault(require("../component/SubCategoryList"));
40
+ var MiniTestCard_1 = __importDefault(require("../component/MiniTestCard"));
41
+ var TabContentsWrap_1 = __importDefault(require("../component/TabContentsWrap"));
42
+ var BasicSetting_1 = __importDefault(require("../component/BasicSetting"));
43
+ var QuizSaveData_1 = __importDefault(require("../quiz/save/QuizSaveData"));
44
+ var BasicPage = react_1.default.memo(function (_a) {
45
+ var navigation = _a.navigation, subject = _a.subject;
46
+ var dispatch = (0, react_redux_1.useDispatch)();
47
+ var t = (0, react_i18next_1.useTranslation)().t;
48
+ // // Reduxから必要なデータを一括取得
49
+ var categoryList = (0, react_redux_1.useSelector)(function (state) { return state.app[subject.list]; });
50
+ var activeIndex = (0, react_redux_1.useSelector)(function (state) { return state.setting.viewSet[subject.name].activeIndex; });
51
+ var existSaveData = (0, react_redux_1.useSelector)(function (state) { return state.score.isSave[subject.name]; });
52
+ var initScrollY = (0, react_redux_1.useSelector)(function (state) { return state.setting.viewSet[subject.name].scrollY; });
53
+ var scrollViewRef = (0, react_1.useRef)(null);
54
+ // 初期設定の処理を useEffect で実行
55
+ var _b = (0, react_1.useState)(false), isReady = _b[0], setIsReady = _b[1];
56
+ (0, react_1.useEffect)(function () {
57
+ if (scrollViewRef.current)
58
+ setIsReady(true); // 準備完了
59
+ }, [scrollViewRef.current]); // scrollViewRef.current の変更を監視
60
+ (0, react_1.useEffect)(function () {
61
+ var _a;
62
+ if (isReady) {
63
+ dispatch(setSelectedSubject(subject.name));
64
+ dispatch(setMaxIndex(categoryList.length));
65
+ (_a = scrollViewRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({ y: initScrollY, animated: false });
66
+ }
67
+ }, [isReady]);
68
+ // ラベルを取得
69
+ var labels = categoryList.map(function (category) { return category.label + category.title; });
70
+ // 選択されたカテゴリー情報を取得
71
+ var selectedList = categoryList[activeIndex];
72
+ // カテゴリー名を計算
73
+ var categoryName = "".concat(selectedList.label, " ").concat(selectedList.title).trim();
74
+ var selectKey = selectedList.key;
75
+ var categoryLabel = selectedList.label + selectedList.title;
76
+ // 全問スタートのハンドラー関数
77
+ var handleAllQuiz = function () {
78
+ var ALL_NUM = 0;
79
+ dispatch(stores_1.quizAction.setLesson({
80
+ subject: subject.name,
81
+ type: subject.type,
82
+ category: selectKey,
83
+ lesson: {
84
+ title: selectedList.label + selectedList.title,
85
+ key: ALL_NUM,
86
+ },
87
+ }));
88
+ navigation.navigate("QuizSetup");
89
+ };
90
+ var handleEndScroll = function (event) {
91
+ var scrollY = event.nativeEvent.contentOffset.y;
92
+ dispatch({ type: "setting/setScrollY", payload: scrollY });
93
+ };
94
+ return (<react_native_1.View style={{ flex: 1 }}>
95
+ <react_native_gesture_handler_1.ScrollView contentContainerStyle={styles.scrollContainer} ref={scrollViewRef} onMomentumScrollEnd={function (event) { return handleEndScroll(event); }}>
96
+ <common_1.TopTabs labels={labels} activeIndex={activeIndex}/>
97
+ <TabContentsWrap_1.default scrollViewRef={scrollViewRef}>
98
+ <common_1.RoundRectangle title={categoryName} style={styles.categoryName}/>
99
+ <SubCategoryList_1.default navigation={navigation} subject={subject}/>
100
+
101
+ <MiniTestCard_1.default navigation={navigation} subject={subject}/>
102
+ <common_1.HelpMark title={t("help.badge.title")} msg={t("help.badge.msg")} marginTop={10} top={-18}/>
103
+ <Badge5s_1.default badgeType="basic" subject={subject.name} category={selectKey}/>
104
+ <TagBadge5s_1.default subject={subject}/>
105
+ <common_1.HelpMark title={t("help.quizOption.allQuiz.title")} msg={t("help.quizOption.allQuiz.msg")} top={0}/>
106
+ <common_1.RoundRectangleIcon title={categoryLabel + "全問を復習"} icon="pencil-alt" onPress={handleAllQuiz}/>
107
+ </TabContentsWrap_1.default>
108
+ <BasicSetting_1.default navigation={navigation} subjectType={subject.type}/>
109
+ {existSaveData && <react_native_1.View style={{ height: 60 }}/>}
110
+ </react_native_gesture_handler_1.ScrollView>
111
+ <QuizSaveData_1.default navigation={navigation} saveKey={subject.name}/>
112
+ </react_native_1.View>);
113
+ });
114
+ var styles = react_native_1.StyleSheet.create({
115
+ scrollContainer: {
116
+ justifyContent: "center",
117
+ alignItems: "center",
118
+ padding: 20,
119
+ },
120
+ categoryName: {
121
+ marginTop: 10,
122
+ marginBottom: 10,
123
+ },
124
+ });
125
+ exports.default = BasicPage;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { StackNavigationProp } from "@react-navigation/stack";
3
+ import { Nav, Db } from "@nakamura-123/types";
4
+ interface BootPageProps {
5
+ navigation: StackNavigationProp<Nav.RootStackParamList>;
6
+ subject: Db.SubjectBootType;
7
+ }
8
+ declare const BootPage: React.FC<BootPageProps>;
9
+ export default BootPage;
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
7
+ var react_native_1 = require("react-native");
8
+ var react_redux_1 = require("react-redux");
9
+ var react_2 = require("@realm/react");
10
+ var common_1 = require("@nakamura-123/common");
11
+ var db_1 = require("@nakamura-123/db");
12
+ var QuizSaveData_1 = __importDefault(require("../quiz/save/QuizSaveData"));
13
+ var SelectRange_1 = __importDefault(require("../component/Boot/SelectRange"));
14
+ var TagBadge5sPress_1 = __importDefault(require("../component/TagBadge5sPress"));
15
+ var QuizOptionDrill_1 = __importDefault(require("../component/QuizSet/QuizOptionDrill"));
16
+ var tagFnc_1 = require("../functions/tagFnc");
17
+ var AverageBar_1 = __importDefault(require("../component/TestPage/AverageBar"));
18
+ var createQuizFnc_1 = require("../functions/createQuizFnc");
19
+ var quizActionHook_1 = require("../hooks/quizActionHook");
20
+ var BootPage = function (_a) {
21
+ var navigation = _a.navigation, subject = _a.subject;
22
+ var dispatch = (0, react_redux_1.useDispatch)();
23
+ var useStartQuiz = (0, quizActionHook_1.useStartQuizAction)();
24
+ var startCfg = (0, react_redux_1.useSelector)(function (state) { return state.quizCfg.startCfg; });
25
+ // セーブの確認
26
+ var isExistedSaveData = (0, react_redux_1.useSelector)(function (state) { return state.score.isSave[subject.name]; });
27
+ // タグの選択を計算
28
+ var QuestionDB = (0, react_2.useQuery)(db_1.dQuestionSchema);
29
+ var unitRange = (0, react_redux_1.useSelector)(function (state) { return state.setting.boot.outOfUnit; });
30
+ var yearRange = (0, react_redux_1.useSelector)(function (state) { return state.setting.boot.outOfYear; });
31
+ var tagLevels = (0, tagFnc_1.getBootTagLevelCnts)(QuestionDB, unitRange, yearRange);
32
+ // アベレージバーのデータ生成
33
+ var l4TagCnt = (0, tagFnc_1.getCompletedTagRate)(tagLevels, true);
34
+ var allQuizCnt = QuestionDB.length || 1;
35
+ var average = Math.round((l4TagCnt / allQuizCnt) * 100);
36
+ var barLabel = "\u8D64\u3075\u305B\u3093\u306E\u5272\u5408\n(\u5168".concat(allQuizCnt, "\u554F\u4E2D)");
37
+ // 履歴情報
38
+ var historyParams = {
39
+ subject: subject.name,
40
+ db: "boot",
41
+ };
42
+ // スタートボタンの設定
43
+ var handleStart = function () {
44
+ var quizList = (0, createQuizFnc_1.getBootQuestions)(QuestionDB, startCfg, unitRange, yearRange);
45
+ var quizCnt = quizList.length;
46
+ dispatch({
47
+ type: "quiz/setLesson",
48
+ payload: {
49
+ subject: subject.name,
50
+ type: "boot",
51
+ category: quizCnt, //これはいらないけど入れておく
52
+ lesson: { title: subject.title, key: quizCnt },
53
+ },
54
+ });
55
+ var isExistQuiz = useStartQuiz(subject.name, quizList);
56
+ if (!isExistQuiz)
57
+ return;
58
+ navigation.navigate("Quiz");
59
+ };
60
+ var handlePreStudy = function () {
61
+ handleStart();
62
+ dispatch({ type: "quiz/toResult" });
63
+ };
64
+ return (<react_native_1.SafeAreaView style={{ flex: 1 }}>
65
+ <react_native_1.ScrollView style={styles.container}>
66
+ <AverageBar_1.default percent={average} label={barLabel} icon="tag" iconColor="red"/>
67
+ <common_1.IconTitle icon="lightbulb" title="単元の選択"/>
68
+ <SelectRange_1.default type="unit"/>
69
+ <common_1.IconTitle icon="history" title="試験の選択"/>
70
+ <SelectRange_1.default type="year"/>
71
+ <common_1.IconTitle icon="tag" title="タグの選択"/>
72
+ <TagBadge5sPress_1.default categoryTags={tagLevels}/>
73
+ <common_1.IconTitle icon="sliders-h" title="出題設定" mt={20}/>
74
+ <QuizOptionDrill_1.default />
75
+ <react_native_1.View style={styles.btnBox}>
76
+ <common_1.MiniIconBtn onPress={function () { return handlePreStudy(); }} icon="book" title="予習する" color="ltBlack"/>
77
+ <common_1.MiniIconBtn onPress={function () { return handleStart(); }} icon="play" title="特訓開始" color="red"/>
78
+ </react_native_1.View>
79
+ <common_1.RoundRectangleIcon title={"過去の履歴を確認する"} onPress={function () {
80
+ return navigation.navigate("History", { info: historyParams });
81
+ }} icon="history"/>
82
+ <react_native_1.View style={{ height: 50 }}/>
83
+ {isExistedSaveData && <react_native_1.View style={{ height: 100 }}/>}
84
+ </react_native_1.ScrollView>
85
+ <react_native_1.View style={styles.fixedBottom}>
86
+ <QuizSaveData_1.default saveKey={subject.name} navigation={navigation}/>
87
+ </react_native_1.View>
88
+ </react_native_1.SafeAreaView>);
89
+ };
90
+ var styles = react_native_1.StyleSheet.create({
91
+ container: {
92
+ padding: 20,
93
+ marginTop: 20,
94
+ },
95
+ categoryName: {
96
+ marginTop: 10,
97
+ marginBottom: 10,
98
+ },
99
+ test: {},
100
+ fixedBottom: {
101
+ position: "absolute",
102
+ bottom: 0,
103
+ left: 0,
104
+ right: 0,
105
+ backgroundColor: "transparent",
106
+ paddingHorizontal: 15,
107
+ paddingBottom: 5,
108
+ },
109
+ btnBox: {
110
+ flexDirection: "row",
111
+ justifyContent: "space-around",
112
+ alignItems: "center",
113
+ paddingVertical: 5,
114
+ },
115
+ });
116
+ exports.default = BootPage;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { Nav } from "@nakamura-123/types";
3
+ import { Comment } from "../component/Coin/AppReviews";
4
+ interface Props {
5
+ navigation: Nav.NavigationProp<"Coin">;
6
+ comments: Comment[];
7
+ }
8
+ declare const CoinPage: React.FC<Props>;
9
+ export default CoinPage;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
7
+ var react_native_1 = require("react-native");
8
+ var lib_1 = require("@nakamura-123/lib");
9
+ var CatchCopy_1 = __importDefault(require("../component/Coin/CatchCopy"));
10
+ var Recommend_1 = __importDefault(require("../component/Coin/Recommend"));
11
+ var AppReviews_1 = __importDefault(require("../component/Coin/AppReviews"));
12
+ var common_1 = require("@nakamura-123/common");
13
+ var CoinPage = function (_a) {
14
+ var navigation = _a.navigation, comments = _a.comments;
15
+ return (<react_native_1.ScrollView style={styles.container}>
16
+ <CatchCopy_1.default />
17
+ <Recommend_1.default />
18
+ <common_1.RoundRectangleIcon title="よくある質問はこちら" icon="book"/>
19
+ <common_1.RectangleCard title="コンプリートプラン 1500円" note="全ての機能を使い放題" left={<common_1.IconInCircle name="gift"/>} color="blue"/>
20
+ <react_native_1.View style={styles.txtContainer}>
21
+ <common_1.MyText fsize="sm" color="gray">
22
+ ※ご購入の前に、必ず各モードの無料部分で使用感をご確認ください。
23
+ </common_1.MyText>
24
+ </react_native_1.View>
25
+ <react_native_1.View style={styles.txtContainer}>
26
+ <common_1.MyText fsize="md" color="blue" onPress={function () { return navigation.navigate("Coin"); }}>
27
+ ▲サービス利用規約はこちら▲
28
+ </common_1.MyText>
29
+ </react_native_1.View>
30
+
31
+ <common_1.RoundRectangleIcon title="以前購入した方はこちらから復元" icon="coins"/>
32
+
33
+ <AppReviews_1.default comments={comments}/>
34
+ <react_native_1.View style={{ height: 100 }}/>
35
+ </react_native_1.ScrollView>);
36
+ };
37
+ var styles = react_native_1.StyleSheet.create({
38
+ container: {
39
+ flex: 1,
40
+ backgroundColor: lib_1.colors.beige,
41
+ padding: 20,
42
+ paddingTop: 40,
43
+ },
44
+ txtContainer: {
45
+ marginTop: 10,
46
+ marginHorizontal: 10,
47
+ justifyContent: "center",
48
+ alignItems: "center",
49
+ },
50
+ });
51
+ exports.default = CoinPage;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { Nav } from "@nakamura-123/types";
3
+ interface GetBadgePageProps {
4
+ navigation: Nav.NavigationProp<"GetBadge">;
5
+ }
6
+ declare const GetBadgePage: React.FC<GetBadgePageProps>;
7
+ export default GetBadgePage;
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ var __generator = (this && this.__generator) || function (thisArg, body) {
35
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
36
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
+ function verb(n) { return function (v) { return step([n, v]); }; }
38
+ function step(op) {
39
+ if (f) throw new TypeError("Generator is already executing.");
40
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
41
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
42
+ if (y = 0, t) op = [op[0] & 2, t.value];
43
+ switch (op[0]) {
44
+ case 0: case 1: t = op; break;
45
+ case 4: _.label++; return { value: op[1], done: false };
46
+ case 5: _.label++; y = op[1]; op = [0]; continue;
47
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
48
+ default:
49
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
50
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
51
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
52
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
53
+ if (t[2]) _.ops.pop();
54
+ _.trys.pop(); continue;
55
+ }
56
+ op = body.call(thisArg, _);
57
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
58
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
59
+ }
60
+ };
61
+ Object.defineProperty(exports, "__esModule", { value: true });
62
+ var react_1 = __importStar(require("react"));
63
+ var react_native_1 = require("react-native");
64
+ var Animatable = __importStar(require("react-native-animatable"));
65
+ var react_redux_1 = require("react-redux");
66
+ var common_1 = require("@nakamura-123/common");
67
+ var lib_1 = require("@nakamura-123/lib");
68
+ var GetBadgePage = function (_a) {
69
+ var navigation = _a.navigation;
70
+ var dispatch = (0, react_redux_1.useDispatch)();
71
+ var imgs = (0, react_redux_1.useSelector)(function (state) { return state.app.imgs; });
72
+ var notification = (0, react_redux_1.useSelector)(function (state) { return state.score.notification; });
73
+ if (notification.length === 0)
74
+ return null;
75
+ var imgPath = imgs.chara.lv1;
76
+ var title = notification[0].title || "";
77
+ var badgeName = notification[0].name || "";
78
+ var badgeColor = notification[0].color || "blue";
79
+ var badgeIcon = notification[0].icon || "star";
80
+ var animatableRef = (0, react_1.useRef)(null);
81
+ (0, react_1.useEffect)(function () {
82
+ return function () {
83
+ console.log("GetBadgePage unmounted");
84
+ dispatch({ type: "score/removeFirstNotification" });
85
+ };
86
+ }, []);
87
+ var handleNext = function () { return __awaiter(void 0, void 0, void 0, function () {
88
+ return __generator(this, function (_a) {
89
+ switch (_a.label) {
90
+ case 0:
91
+ if (!animatableRef.current) return [3 /*break*/, 5];
92
+ return [4 /*yield*/, animatableRef.current.fadeOut(300)];
93
+ case 1:
94
+ _a.sent(); // アニメーション終了を待つ
95
+ if (!(notification.length > 1)) return [3 /*break*/, 4];
96
+ dispatch({ type: "score/removeFirstNotification" });
97
+ if (!animatableRef.current) return [3 /*break*/, 3];
98
+ return [4 /*yield*/, animatableRef.current.fadeIn(300)];
99
+ case 2:
100
+ _a.sent();
101
+ _a.label = 3;
102
+ case 3: return [3 /*break*/, 5];
103
+ case 4:
104
+ navigation.goBack(); // データがない場合は画面遷移
105
+ _a.label = 5;
106
+ case 5: return [2 /*return*/];
107
+ }
108
+ });
109
+ }); };
110
+ return (<react_native_1.View style={styles.page}>
111
+ <Animatable.View ref={animatableRef} animation="fadeIn" duration={300} style={styles.card}>
112
+ <common_1.MyText fsize="xl">Congratulations!</common_1.MyText>
113
+ <common_1.MyText fsize="md" style={styles.txt}>
114
+ バッジ獲得
115
+ </common_1.MyText>
116
+
117
+ <react_native_1.Image style={styles.imgBox} source={imgPath}/>
118
+ <react_native_1.View style={styles.badgeBox}>
119
+ <common_1.Badge name={badgeName} icon={badgeIcon} badgeColor={badgeColor}/>
120
+ <common_1.MyText fsize="md" style={styles.badgeTxt}>
121
+ {title}
122
+ </common_1.MyText>
123
+ </react_native_1.View>
124
+ <react_native_1.View style={styles.btnBox}>
125
+ <common_1.MiniIconBtn onPress={handleNext} icon="arrow-right" title="次 へ" color="blue" outerStyle={styles.miniBtnOuter}/>
126
+ </react_native_1.View>
127
+ </Animatable.View>
128
+ </react_native_1.View>);
129
+ };
130
+ var styles = react_native_1.StyleSheet.create({
131
+ page: {
132
+ flex: 1,
133
+ justifyContent: "center",
134
+ alignItems: "center",
135
+ paddingHorizontal: 20,
136
+ },
137
+ card: {
138
+ padding: 20,
139
+ justifyContent: "center",
140
+ alignItems: "center",
141
+ backgroundColor: lib_1.colors.ltBeige,
142
+ borderWidth: 1,
143
+ borderColor: lib_1.colors.ltBlack,
144
+ borderRadius: 30,
145
+ width: "80%",
146
+ },
147
+ txt: {
148
+ marginTop: 5,
149
+ },
150
+ imgBox: {
151
+ marginTop: 10,
152
+ width: 130,
153
+ height: 130,
154
+ },
155
+ badgeBox: {
156
+ marginVertical: 30,
157
+ justifyContent: "center",
158
+ alignItems: "center",
159
+ },
160
+ badgeTxt: {
161
+ marginTop: 15,
162
+ },
163
+ btnBox: {
164
+ width: "100%",
165
+ flexDirection: "row",
166
+ justifyContent: "space-around",
167
+ paddingVertical: 5,
168
+ },
169
+ miniBtnOuter: {
170
+ width: "50%",
171
+ },
172
+ });
173
+ exports.default = GetBadgePage;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { Nav } from "@nakamura-123/types";
3
+ interface GradePageProps {
4
+ navigation: Nav.NavigationProp<"Grade">;
5
+ }
6
+ declare const GradePage: React.FC<GradePageProps>;
7
+ export default GradePage;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
7
+ var react_native_1 = require("react-native");
8
+ var react_2 = require("@realm/react");
9
+ var GradeCard_1 = __importDefault(require("../component/Grade/GradeCard/GradeCard"));
10
+ var Square4s_1 = __importDefault(require("../component/Grade/Square4s"));
11
+ var AllTags_1 = __importDefault(require("../component/Grade/AllTags"));
12
+ var db_1 = require("@nakamura-123/db");
13
+ var common_1 = require("@nakamura-123/common");
14
+ var QuizCntGraph_1 = __importDefault(require("../component/Grade/QuizCntGraph"));
15
+ var GradePage = function (_a) {
16
+ var navigation = _a.navigation;
17
+ var DailyLogDB = (0, react_2.useQuery)(db_1.DailyLogSchema);
18
+ return (<react_native_1.ScrollView style={styles.page} contentContainerStyle={styles.container}>
19
+ <GradeCard_1.default DailyLogDB={DailyLogDB}/>
20
+ <QuizCntGraph_1.default DailyLogDB={DailyLogDB}/>
21
+ <Square4s_1.default DailyLogDB={DailyLogDB}/>
22
+ <AllTags_1.default />
23
+ <common_1.RoundRectangleIcon title={"バッチの一覧"} onPress={function () { return navigation.navigate("Badge"); }} icon="shield-alt"/>
24
+ </react_native_1.ScrollView>);
25
+ };
26
+ var styles = react_native_1.StyleSheet.create({
27
+ page: {
28
+ flex: 1,
29
+ },
30
+ container: {
31
+ paddingTop: 50,
32
+ paddingHorizontal: 20,
33
+ paddingBottom: 20,
34
+ alignItems: "center",
35
+ },
36
+ });
37
+ exports.default = GradePage;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { Nav } from "@nakamura-123/types";
3
+ interface ResultPageProps {
4
+ route: {
5
+ params: {
6
+ info: Nav.HistoryInfo;
7
+ };
8
+ };
9
+ }
10
+ declare const ResultPage: React.FC<ResultPageProps>;
11
+ export default ResultPage;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
7
+ var react_native_1 = require("react-native");
8
+ var react_2 = require("@realm/react");
9
+ var lib_1 = require("@nakamura-123/lib");
10
+ var common_1 = require("@nakamura-123/common");
11
+ var db_1 = require("@nakamura-123/db");
12
+ var ResultPage = function (_a) {
13
+ var route = _a.route;
14
+ var _b = route.params.info, subject = _b.subject, db = _b.db;
15
+ if (db !== "test" && db !== "boot")
16
+ return null;
17
+ var schema = db === "test" ? db_1.TestSchema : db_1.BootSchema;
18
+ var DB = (0, react_2.useQuery)(schema);
19
+ var filterdDB = DB.filtered("subject == $0 ", subject);
20
+ var formattedRecord = formatRecord(filterdDB, db).reverse();
21
+ // リストのコンポーネント
22
+ var Compornent = function (_a) {
23
+ var item = _a.item;
24
+ var point = item.point, percent = item.percent, color = item.color, date = item.date, success = item.success;
25
+ return (<common_1.RectangleCard title={point + success} left={<common_1.CircleProgressInNom percentage={percent} color={color}/>} bottom={<common_1.MyText fsize="xs">{date}</common_1.MyText>}/>);
26
+ };
27
+ return (<react_native_1.View style={styles.page}>
28
+ <react_native_1.FlatList data={formattedRecord} renderItem={function (_a) {
29
+ var item = _a.item;
30
+ return <Compornent item={item}/>;
31
+ }} style={styles.flatList} keyExtractor={function (item) { return item.date; }} ItemSeparatorComponent={function () { return <react_native_1.View style={styles.separate}/>; }}/>
32
+ </react_native_1.View>);
33
+ };
34
+ var formatRecord = function (record, db) {
35
+ return record.map(function (_a, index) {
36
+ var quizCnt = _a.quizCnt, point = _a.point, percent = _a.percent, level = _a.level, createdAt = _a.createdAt;
37
+ return ({
38
+ point: "(".concat(index + 1, ") ").concat(point, "/").concat(quizCnt, "\u70B9 "),
39
+ percent: percent,
40
+ color: lib_1.utilFnc.getLevelColor(level),
41
+ date: "".concat(lib_1.timeFnc.formatDateYS(createdAt)),
42
+ success: db === "test" ? (level === "l4" ? "合格" : "不合格") : "",
43
+ });
44
+ });
45
+ };
46
+ var styles = react_native_1.StyleSheet.create({
47
+ page: {
48
+ flex: 1,
49
+ justifyContent: "center",
50
+ alignItems: "center",
51
+ paddingHorizontal: 20,
52
+ marginTop: 80,
53
+ },
54
+ flatList: {
55
+ width: "100%",
56
+ },
57
+ separate: {
58
+ height: 3,
59
+ // backgroundColor: colors.gray,
60
+ },
61
+ });
62
+ exports.default = ResultPage;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Home, Nav } from "@nakamura-123/types";
3
+ interface HomePageProps {
4
+ menuLists: Array<Home.MenuItem<Nav.RootKeys>>;
5
+ navigation: Nav.NavigationProp<"Home">;
6
+ }
7
+ declare const HomePage: React.FC<HomePageProps>;
8
+ export default HomePage;