dracosh 0.1.0 → 0.3.0
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/README.md +49 -22
- package/assets/sounds/badge-1.wav +0 -0
- package/assets/sounds/badge-2.wav +0 -0
- package/assets/sounds/badge-3.wav +0 -0
- package/assets/sounds/badge-4.wav +0 -0
- package/locales/de.json +1046 -0
- package/locales/en.json +1029 -0
- package/locales/fr.json +1094 -0
- package/locales/pl.json +1117 -0
- package/locales/uk.json +1118 -0
- package/package.json +2 -2
- package/src/alerts.js +7 -4
- package/src/backup.js +96 -0
- package/src/cardline.js +71 -0
- package/src/cli.js +106 -38
- package/src/commands.js +15 -13
- package/src/demo.js +11 -0
- package/src/diff.js +13 -7
- package/src/i18n.js +68 -0
- package/src/judge.js +51 -12
- package/src/library.js +154 -0
- package/src/lock.js +64 -0
- package/src/manage.js +165 -0
- package/src/pause.js +22 -0
- package/src/progress.js +202 -93
- package/src/quiet.js +4 -3
- package/src/scheduler.js +39 -30
- package/src/session.js +181 -33
- package/src/settings.js +15 -13
- package/src/starter.js +47 -0
- package/src/store.js +58 -17
- package/src/tips.js +17 -25
- package/src/ui/AddCard.js +496 -0
- package/src/ui/AnswerInput.js +28 -13
- package/src/ui/App.js +360 -89
- package/src/ui/BadgeUnlock.js +51 -0
- package/src/ui/Badges.js +79 -20
- package/src/ui/Choice.js +38 -0
- package/src/ui/Companion.js +24 -39
- package/src/ui/Confetti.js +2 -2
- package/src/ui/Decks.js +99 -0
- package/src/ui/DieRoll.js +104 -0
- package/src/ui/Evolution.js +11 -10
- package/src/ui/Hatch.js +9 -7
- package/src/ui/Header.js +62 -19
- package/src/ui/Help.js +74 -0
- package/src/ui/Mascot.js +89 -40
- package/src/ui/Missed.js +15 -13
- package/src/ui/Preview.js +123 -29
- package/src/ui/Reset.js +71 -0
- package/src/ui/Settings.js +34 -23
- package/src/ui/Stats.js +28 -24
- package/src/ui/Summary.js +18 -10
- package/src/ui/TheOne.js +122 -0
- package/src/ui/icons.js +156 -25
- package/src/ui/kit.js +87 -2
- package/src/vacation.js +9 -3
- package/src/words.js +22 -14
- package/assets/sounds/badge.wav +0 -0
- package/data/tips.json +0 -1362
- package/src/ui/Tip.js +0 -25
package/src/ui/Tip.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Fragment, useState } from "react";
|
|
2
|
-
import { Box, Text, useInput } from "ink";
|
|
3
|
-
import { html, PANEL_WIDTH, theme } from "./kit.js";
|
|
4
|
-
|
|
5
|
-
// A full-screen grammar tip; Enter or → shows another one.
|
|
6
|
-
export function Tip({ nextTip, onClose }) {
|
|
7
|
-
const [tip, setTip] = useState(() => nextTip());
|
|
8
|
-
useInput((input, key) => {
|
|
9
|
-
if (key.escape || input === "q") return onClose();
|
|
10
|
-
if (key.return || key.rightArrow || input === " ") setTip(nextTip());
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
return html`
|
|
14
|
-
<${Fragment}>
|
|
15
|
-
<${Box} flexDirection="column" borderStyle="round" borderColor=${theme.accent} paddingX=${2} width=${PANEL_WIDTH}>
|
|
16
|
-
<${Box}>
|
|
17
|
-
<${Text} bold color=${theme.accent}>Grammar tip<//>
|
|
18
|
-
<${Text} dimColor> ${tip.cat}<//>
|
|
19
|
-
<//>
|
|
20
|
-
<${Box} marginTop=${1}><${Text}>${tip.text}<//><//>
|
|
21
|
-
<//>
|
|
22
|
-
<${Box} paddingX=${1}><${Text} dimColor>enter or → another tip · esc back<//><//>
|
|
23
|
-
<//>
|
|
24
|
-
`;
|
|
25
|
-
}
|