@siegesailor/terminal-sigma 1.3.0 → 1.4.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 +81 -37
- package/build/app.js +241 -95
- package/build/app.js.map +1 -1
- package/build/components/autocomplete-input.js +57 -0
- package/build/components/autocomplete-input.js.map +1 -0
- package/build/components/character.js +7 -4
- package/build/components/character.js.map +1 -1
- package/build/components/choice.js +11 -6
- package/build/components/choice.js.map +1 -1
- package/build/components/entry-form.js +43 -11
- package/build/components/entry-form.js.map +1 -1
- package/build/components/logs-view.js +9 -3
- package/build/components/logs-view.js.map +1 -1
- package/build/components/multi-choice.js +45 -0
- package/build/components/multi-choice.js.map +1 -0
- package/build/components/today-panel.js +9 -5
- package/build/components/today-panel.js.map +1 -1
- package/build/content.js +198 -66
- package/build/content.js.map +1 -1
- package/build/foods.js +159 -0
- package/build/foods.js.map +1 -0
- package/build/i18n.js +262 -36
- package/build/i18n.js.map +1 -1
- package/build/pixel-art.js +333 -413
- package/build/pixel-art.js.map +1 -1
- package/build/progress.js +33 -0
- package/build/progress.js.map +1 -1
- package/build/quotes.js +404 -220
- package/build/quotes.js.map +1 -1
- package/package.json +1 -1
- package/build/components/menu-grid.js +0 -44
- package/build/components/menu-grid.js.map +0 -1
package/build/quotes.js
CHANGED
|
@@ -1,239 +1,423 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
import zod from "zod";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
author: "시어도어 루스벨트",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
quote: "Energy and persistence conquer all things.",
|
|
31
|
-
author: "Benjamin Franklin",
|
|
32
|
-
translations: {
|
|
33
|
-
"zh-TW": { quote: "精力與毅力能征服一切。", author: "班傑明·富蘭克林" },
|
|
34
|
-
ko: {
|
|
35
|
-
quote: "열정과 끈기는 모든 것을 이긴다.",
|
|
36
|
-
author: "벤저민 프랭클린",
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
quote: "Fall seven times, stand up eight.",
|
|
42
|
-
author: "Japanese Proverb",
|
|
43
|
-
translations: {
|
|
44
|
-
"zh-TW": { quote: "七轉八起。", author: "日本諺語" },
|
|
45
|
-
ko: { quote: "일곱 번 넘어져도 여덟 번 일어난다.", author: "일본 속담" },
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
quote: "First say to yourself what you would be; and then do what you have to do.",
|
|
50
|
-
author: "Epictetus",
|
|
51
|
-
translations: {
|
|
52
|
-
"zh-TW": {
|
|
53
|
-
quote: "先告訴自己你想成為什麼樣的人,然後去做你該做的事。",
|
|
54
|
-
author: "愛比克泰德",
|
|
55
|
-
},
|
|
56
|
-
ko: {
|
|
57
|
-
quote: "먼저 어떤 사람이 될지 스스로에게 말하라. 그리고 해야 할 일을 하라.",
|
|
58
|
-
author: "에픽테토스",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
quote: "Habit is a cable; we weave a thread of it each day, and at last we cannot break it.",
|
|
64
|
-
author: "Horace Mann",
|
|
65
|
-
translations: {
|
|
66
|
-
"zh-TW": {
|
|
67
|
-
quote: "習慣如纜繩,我們每天編進一縷,最終再也無法扯斷。",
|
|
68
|
-
author: "賀拉斯·曼",
|
|
69
|
-
},
|
|
70
|
-
ko: {
|
|
71
|
-
quote: "습관은 밧줄과 같다. 매일 한 가닥씩 엮다 보면 결국 끊을 수 없게 된다.",
|
|
72
|
-
author: "호러스 만",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
quote: "He who has a why to live can bear almost any how.",
|
|
78
|
-
author: "Friedrich Nietzsche",
|
|
79
|
-
translations: {
|
|
80
|
-
"zh-TW": {
|
|
81
|
-
quote: "知道為何而活的人,幾乎能忍受任何生活。",
|
|
82
|
-
author: "尼采",
|
|
83
|
-
},
|
|
84
|
-
ko: {
|
|
85
|
-
quote: "살아야 할 이유를 아는 사람은 거의 어떤 상황도 견딜 수 있다.",
|
|
86
|
-
author: "니체",
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
quote: "It does not matter how slowly you go as long as you do not stop.",
|
|
92
|
-
author: "Confucius",
|
|
93
|
-
translations: {
|
|
94
|
-
"zh-TW": { quote: "只要不停下腳步,走得多慢都無妨。", author: "孔子" },
|
|
95
|
-
ko: {
|
|
96
|
-
quote: "멈추지만 않는다면 얼마나 천천히 가는지는 중요하지 않다.",
|
|
97
|
-
author: "공자",
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
quote: "It is not that we have a short time to live, but that we waste a lot of it.",
|
|
103
|
-
author: "Seneca",
|
|
104
|
-
translations: {
|
|
105
|
-
"zh-TW": {
|
|
106
|
-
quote: "不是我們的生命短暫,而是我們浪費了太多。",
|
|
107
|
-
author: "塞內卡",
|
|
108
|
-
},
|
|
109
|
-
ko: {
|
|
110
|
-
quote: "인생이 짧은 것이 아니라, 우리가 많은 시간을 낭비하는 것이다.",
|
|
111
|
-
author: "세네카",
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
quote: "Knowing is not enough; we must apply.",
|
|
117
|
-
author: "Johann Wolfgang von Goethe",
|
|
118
|
-
translations: {
|
|
119
|
-
"zh-TW": { quote: "知道是不夠的,我們必須應用。", author: "歌德" },
|
|
120
|
-
ko: { quote: "아는 것만으로는 부족하다. 적용해야 한다.", author: "괴테" },
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
quote: "Lost time is never found again.",
|
|
125
|
-
author: "Benjamin Franklin",
|
|
126
|
-
translations: {
|
|
127
|
-
"zh-TW": { quote: "失去的時間永遠找不回來。", author: "班傑明·富蘭克林" },
|
|
128
|
-
ko: {
|
|
129
|
-
quote: "잃어버린 시간은 다시 찾을 수 없다.",
|
|
130
|
-
author: "벤저민 프랭클린",
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
quote: "No man is free who is not master of himself.",
|
|
136
|
-
author: "Epictetus",
|
|
137
|
-
translations: {
|
|
138
|
-
"zh-TW": {
|
|
139
|
-
quote: "不能主宰自己的人,就不是自由的人。",
|
|
140
|
-
author: "愛比克泰德",
|
|
141
|
-
},
|
|
142
|
-
ko: {
|
|
143
|
-
quote: "자신을 다스리지 못하는 사람은 자유롭지 않다.",
|
|
144
|
-
author: "에픽테토스",
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
quote: "Patience is bitter, but its fruit is sweet.",
|
|
150
|
-
author: "Jean-Jacques Rousseau",
|
|
151
|
-
translations: {
|
|
152
|
-
"zh-TW": { quote: "忍耐是苦澀的,但它的果實是甜美的。", author: "盧梭" },
|
|
153
|
-
ko: { quote: "인내는 쓰지만 그 열매는 달다.", author: "장 자크 루소" },
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
quote: "The journey of a thousand miles begins with one step.",
|
|
158
|
-
author: "Lao Tzu",
|
|
159
|
-
translations: {
|
|
160
|
-
"zh-TW": { quote: "千里之行,始於足下。", author: "老子" },
|
|
161
|
-
ko: { quote: "천 리 길도 한 걸음부터.", author: "노자" },
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
quote: "Waste no more time arguing about what a good man should be. Be one.",
|
|
166
|
-
author: "Marcus Aurelius",
|
|
167
|
-
translations: {
|
|
168
|
-
"zh-TW": {
|
|
169
|
-
quote: "別再浪費時間爭論好人該是什麼樣子,去成為一個好人。",
|
|
170
|
-
author: "馬可·奧理略",
|
|
171
|
-
},
|
|
172
|
-
ko: {
|
|
173
|
-
quote: "좋은 사람이 무엇인지 논쟁하며 더는 시간을 낭비하지 말고, 좋은 사람이 되어라.",
|
|
174
|
-
author: "마르쿠스 아우렐리우스",
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
quote: "We suffer more often in imagination than in reality.",
|
|
180
|
-
author: "Seneca",
|
|
181
|
-
translations: {
|
|
182
|
-
"zh-TW": {
|
|
183
|
-
quote: "我們在想像中受的苦,往往多於現實。",
|
|
184
|
-
author: "塞內卡",
|
|
185
|
-
},
|
|
186
|
-
ko: {
|
|
187
|
-
quote: "우리는 현실보다 상상 속에서 더 자주 고통받는다.",
|
|
188
|
-
author: "세네카",
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
quote: "Well begun is half done.",
|
|
194
|
-
author: "Aristotle",
|
|
195
|
-
translations: {
|
|
196
|
-
"zh-TW": { quote: "好的開始是成功的一半。", author: "亞里斯多德" },
|
|
197
|
-
ko: { quote: "시작이 반이다.", author: "아리스토텔레스" },
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
quote: "Well done is better than well said.",
|
|
202
|
-
author: "Benjamin Franklin",
|
|
203
|
-
translations: {
|
|
204
|
-
"zh-TW": { quote: "做得好勝過說得好。", author: "班傑明·富蘭克林" },
|
|
205
|
-
ko: {
|
|
206
|
-
quote: "말을 잘하는 것보다 잘 해내는 것이 낫다.",
|
|
207
|
-
author: "벤저민 프랭클린",
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
},
|
|
3
|
+
// The categories API Ninjas accepts, which the bundled quotes use too.
|
|
4
|
+
export const quoteCategories = [
|
|
5
|
+
"art",
|
|
6
|
+
"courage",
|
|
7
|
+
"death",
|
|
8
|
+
"faith",
|
|
9
|
+
"fear",
|
|
10
|
+
"freedom",
|
|
11
|
+
"happiness",
|
|
12
|
+
"humor",
|
|
13
|
+
"inspirational",
|
|
14
|
+
"leadership",
|
|
15
|
+
"life",
|
|
16
|
+
"love",
|
|
17
|
+
"nature",
|
|
18
|
+
"philosophy",
|
|
19
|
+
"relationships",
|
|
20
|
+
"success",
|
|
21
|
+
"time",
|
|
22
|
+
"truth",
|
|
23
|
+
"wisdom",
|
|
24
|
+
"writing",
|
|
211
25
|
];
|
|
212
|
-
|
|
213
|
-
export const
|
|
214
|
-
export const
|
|
215
|
-
|
|
216
|
-
|
|
26
|
+
// Seconds between automatic refreshes.
|
|
27
|
+
export const quoteIntervals = [15, 60, 300, 900, 1500, 3600];
|
|
28
|
+
export const quoteModes = ["random", "daily"];
|
|
29
|
+
export const defaultQuoteSettings = {
|
|
30
|
+
autoRefresh: true,
|
|
31
|
+
interval: 1500,
|
|
32
|
+
mode: "random",
|
|
33
|
+
categories: [],
|
|
34
|
+
excluded: [],
|
|
35
|
+
author: "",
|
|
36
|
+
work: "",
|
|
217
37
|
};
|
|
38
|
+
const bundled = [
|
|
39
|
+
[
|
|
40
|
+
{ quote: "A healthy mind in a healthy body.", author: "Juvenal" },
|
|
41
|
+
{ quote: "健全的精神寓於健全的身體。", author: "尤維納利斯" },
|
|
42
|
+
{ quote: "건강한 신체에 건강한 정신이 깃든다.", author: "유베날리스" },
|
|
43
|
+
["life", "wisdom"],
|
|
44
|
+
"Satires",
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
{
|
|
48
|
+
quote: "Do what you can, with what you have, where you are.",
|
|
49
|
+
author: "Theodore Roosevelt",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
quote: "在你所在之處,用你所擁有的,做你能做的。",
|
|
53
|
+
author: "西奧多·羅斯福",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
quote: "지금 있는 곳에서, 가진 것으로, 할 수 있는 일을 하라.",
|
|
57
|
+
author: "시어도어 루스벨트",
|
|
58
|
+
},
|
|
59
|
+
["inspirational", "success"],
|
|
60
|
+
],
|
|
61
|
+
[
|
|
62
|
+
{
|
|
63
|
+
quote: "Energy and persistence conquer all things.",
|
|
64
|
+
author: "Benjamin Franklin",
|
|
65
|
+
},
|
|
66
|
+
{ quote: "精力與毅力能征服一切。", author: "班傑明·富蘭克林" },
|
|
67
|
+
{ quote: "열정과 끈기는 모든 것을 이긴다.", author: "벤저민 프랭클린" },
|
|
68
|
+
["success", "inspirational"],
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
{ quote: "Fall seven times, stand up eight.", author: "Japanese Proverb" },
|
|
72
|
+
{ quote: "七轉八起。", author: "日本諺語" },
|
|
73
|
+
{ quote: "일곱 번 넘어져도 여덟 번 일어난다.", author: "일본 속담" },
|
|
74
|
+
["courage", "inspirational"],
|
|
75
|
+
],
|
|
76
|
+
[
|
|
77
|
+
{
|
|
78
|
+
quote: "First say to yourself what you would be; and then do what you have to do.",
|
|
79
|
+
author: "Epictetus",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
quote: "先告訴自己你想成為什麼樣的人,然後去做你該做的事。",
|
|
83
|
+
author: "愛比克泰德",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
quote: "먼저 어떤 사람이 될지 스스로에게 말하라. 그리고 해야 할 일을 하라.",
|
|
87
|
+
author: "에픽테토스",
|
|
88
|
+
},
|
|
89
|
+
["philosophy", "wisdom"],
|
|
90
|
+
"Discourses",
|
|
91
|
+
],
|
|
92
|
+
[
|
|
93
|
+
{
|
|
94
|
+
quote: "Habit is a cable; we weave a thread of it each day, and at last we cannot break it.",
|
|
95
|
+
author: "Horace Mann",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
quote: "習慣如纜繩,我們每天編進一縷,最終再也無法扯斷。",
|
|
99
|
+
author: "賀拉斯·曼",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
quote: "습관은 밧줄과 같다. 매일 한 가닥씩 엮다 보면 결국 끊을 수 없게 된다.",
|
|
103
|
+
author: "호러스 만",
|
|
104
|
+
},
|
|
105
|
+
["life", "wisdom"],
|
|
106
|
+
],
|
|
107
|
+
[
|
|
108
|
+
{
|
|
109
|
+
quote: "He who has a why to live can bear almost any how.",
|
|
110
|
+
author: "Friedrich Nietzsche",
|
|
111
|
+
},
|
|
112
|
+
{ quote: "知道為何而活的人,幾乎能忍受任何生活。", author: "尼采" },
|
|
113
|
+
{
|
|
114
|
+
quote: "살아야 할 이유를 아는 사람은 거의 어떤 상황도 견딜 수 있다.",
|
|
115
|
+
author: "니체",
|
|
116
|
+
},
|
|
117
|
+
["philosophy", "life"],
|
|
118
|
+
"Twilight of the Idols",
|
|
119
|
+
],
|
|
120
|
+
[
|
|
121
|
+
{
|
|
122
|
+
quote: "It does not matter how slowly you go as long as you do not stop.",
|
|
123
|
+
author: "Confucius",
|
|
124
|
+
},
|
|
125
|
+
{ quote: "只要不停下腳步,走得多慢都無妨。", author: "孔子" },
|
|
126
|
+
{
|
|
127
|
+
quote: "멈추지만 않는다면 얼마나 천천히 가는지는 중요하지 않다.",
|
|
128
|
+
author: "공자",
|
|
129
|
+
},
|
|
130
|
+
["wisdom", "inspirational"],
|
|
131
|
+
],
|
|
132
|
+
[
|
|
133
|
+
{
|
|
134
|
+
quote: "It is not that we have a short time to live, but that we waste a lot of it.",
|
|
135
|
+
author: "Seneca",
|
|
136
|
+
},
|
|
137
|
+
{ quote: "不是我們的生命短暫,而是我們浪費了太多。", author: "塞內卡" },
|
|
138
|
+
{
|
|
139
|
+
quote: "인생이 짧은 것이 아니라, 우리가 많은 시간을 낭비하는 것이다.",
|
|
140
|
+
author: "세네카",
|
|
141
|
+
},
|
|
142
|
+
["time", "philosophy"],
|
|
143
|
+
"On the Shortness of Life",
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
{
|
|
147
|
+
quote: "Knowing is not enough; we must apply.",
|
|
148
|
+
author: "Johann Wolfgang von Goethe",
|
|
149
|
+
},
|
|
150
|
+
{ quote: "知道是不夠的,我們必須應用。", author: "歌德" },
|
|
151
|
+
{ quote: "아는 것만으로는 부족하다. 적용해야 한다.", author: "괴테" },
|
|
152
|
+
["wisdom", "success"],
|
|
153
|
+
"Wilhelm Meister's Journeyman Years",
|
|
154
|
+
],
|
|
155
|
+
[
|
|
156
|
+
{ quote: "Lost time is never found again.", author: "Benjamin Franklin" },
|
|
157
|
+
{ quote: "失去的時間永遠找不回來。", author: "班傑明·富蘭克林" },
|
|
158
|
+
{ quote: "잃어버린 시간은 다시 찾을 수 없다.", author: "벤저민 프랭클린" },
|
|
159
|
+
["time", "wisdom"],
|
|
160
|
+
"Poor Richard's Almanack",
|
|
161
|
+
],
|
|
162
|
+
[
|
|
163
|
+
{
|
|
164
|
+
quote: "No man is free who is not master of himself.",
|
|
165
|
+
author: "Epictetus",
|
|
166
|
+
},
|
|
167
|
+
{ quote: "不能主宰自己的人,就不是自由的人。", author: "愛比克泰德" },
|
|
168
|
+
{
|
|
169
|
+
quote: "자신을 다스리지 못하는 사람은 자유롭지 않다.",
|
|
170
|
+
author: "에픽테토스",
|
|
171
|
+
},
|
|
172
|
+
["freedom", "philosophy"],
|
|
173
|
+
"Discourses",
|
|
174
|
+
],
|
|
175
|
+
[
|
|
176
|
+
{
|
|
177
|
+
quote: "Patience is bitter, but its fruit is sweet.",
|
|
178
|
+
author: "Jean-Jacques Rousseau",
|
|
179
|
+
},
|
|
180
|
+
{ quote: "忍耐是苦澀的,但它的果實是甜美的。", author: "盧梭" },
|
|
181
|
+
{ quote: "인내는 쓰지만 그 열매는 달다.", author: "장 자크 루소" },
|
|
182
|
+
["wisdom", "life"],
|
|
183
|
+
],
|
|
184
|
+
[
|
|
185
|
+
{
|
|
186
|
+
quote: "The journey of a thousand miles begins with one step.",
|
|
187
|
+
author: "Lao Tzu",
|
|
188
|
+
},
|
|
189
|
+
{ quote: "千里之行,始於足下。", author: "老子" },
|
|
190
|
+
{ quote: "천 리 길도 한 걸음부터.", author: "노자" },
|
|
191
|
+
["inspirational", "wisdom"],
|
|
192
|
+
"Tao Te Ching",
|
|
193
|
+
],
|
|
194
|
+
[
|
|
195
|
+
{
|
|
196
|
+
quote: "Waste no more time arguing about what a good man should be. Be one.",
|
|
197
|
+
author: "Marcus Aurelius",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
quote: "別再浪費時間爭論好人該是什麼樣子,去成為一個好人。",
|
|
201
|
+
author: "馬可·奧理略",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
quote: "좋은 사람이 무엇인지 논쟁하며 더는 시간을 낭비하지 말고, 좋은 사람이 되어라.",
|
|
205
|
+
author: "마르쿠스 아우렐리우스",
|
|
206
|
+
},
|
|
207
|
+
["philosophy", "truth"],
|
|
208
|
+
"Meditations",
|
|
209
|
+
],
|
|
210
|
+
[
|
|
211
|
+
{
|
|
212
|
+
quote: "We suffer more often in imagination than in reality.",
|
|
213
|
+
author: "Seneca",
|
|
214
|
+
},
|
|
215
|
+
{ quote: "我們在想像中受的苦,往往多於現實。", author: "塞內卡" },
|
|
216
|
+
{
|
|
217
|
+
quote: "우리는 현실보다 상상 속에서 더 자주 고통받는다.",
|
|
218
|
+
author: "세네카",
|
|
219
|
+
},
|
|
220
|
+
["fear", "philosophy"],
|
|
221
|
+
"Letters to Lucilius",
|
|
222
|
+
],
|
|
223
|
+
[
|
|
224
|
+
{ quote: "Well begun is half done.", author: "Aristotle" },
|
|
225
|
+
{ quote: "好的開始是成功的一半。", author: "亞里斯多德" },
|
|
226
|
+
{ quote: "시작이 반이다.", author: "아리스토텔레스" },
|
|
227
|
+
["success", "wisdom"],
|
|
228
|
+
],
|
|
229
|
+
[
|
|
230
|
+
{
|
|
231
|
+
quote: "Well done is better than well said.",
|
|
232
|
+
author: "Benjamin Franklin",
|
|
233
|
+
},
|
|
234
|
+
{ quote: "做得好勝過說得好。", author: "班傑明·富蘭克林" },
|
|
235
|
+
{
|
|
236
|
+
quote: "말을 잘하는 것보다 잘 해내는 것이 낫다.",
|
|
237
|
+
author: "벤저민 프랭클린",
|
|
238
|
+
},
|
|
239
|
+
["truth", "success"],
|
|
240
|
+
"Poor Richard's Almanack",
|
|
241
|
+
],
|
|
242
|
+
[
|
|
243
|
+
{ quote: "Happiness depends upon ourselves.", author: "Aristotle" },
|
|
244
|
+
{ quote: "幸福取決於我們自己。", author: "亞里斯多德" },
|
|
245
|
+
{ quote: "행복은 우리 자신에게 달려 있다.", author: "아리스토텔레스" },
|
|
246
|
+
["happiness", "philosophy"],
|
|
247
|
+
"Nicomachean Ethics",
|
|
248
|
+
],
|
|
249
|
+
[
|
|
250
|
+
{
|
|
251
|
+
quote: "Love all, trust a few, do wrong to none.",
|
|
252
|
+
author: "William Shakespeare",
|
|
253
|
+
},
|
|
254
|
+
{ quote: "愛所有人,信任少數人,不負任何人。", author: "莎士比亞" },
|
|
255
|
+
{
|
|
256
|
+
quote: "모두를 사랑하되, 소수만 믿고, 누구에게도 잘못하지 말라.",
|
|
257
|
+
author: "윌리엄 셰익스피어",
|
|
258
|
+
},
|
|
259
|
+
["love", "relationships"],
|
|
260
|
+
"All's Well That Ends Well",
|
|
261
|
+
],
|
|
262
|
+
[
|
|
263
|
+
{
|
|
264
|
+
quote: "In all things of nature there is something of the marvelous.",
|
|
265
|
+
author: "Aristotle",
|
|
266
|
+
},
|
|
267
|
+
{ quote: "自然萬物之中,皆有令人驚奇之處。", author: "亞里斯多德" },
|
|
268
|
+
{
|
|
269
|
+
quote: "자연의 모든 것에는 경이로운 무언가가 있다.",
|
|
270
|
+
author: "아리스토텔레스",
|
|
271
|
+
},
|
|
272
|
+
["nature", "wisdom"],
|
|
273
|
+
"Parts of Animals",
|
|
274
|
+
],
|
|
275
|
+
[
|
|
276
|
+
{
|
|
277
|
+
quote: "A leader is best when people barely know he exists.",
|
|
278
|
+
author: "Lao Tzu",
|
|
279
|
+
},
|
|
280
|
+
{ quote: "太上,下知有之。", author: "老子" },
|
|
281
|
+
{
|
|
282
|
+
quote: "가장 훌륭한 지도자는 백성이 그 존재만 겨우 아는 지도자이다.",
|
|
283
|
+
author: "노자",
|
|
284
|
+
},
|
|
285
|
+
["leadership", "wisdom"],
|
|
286
|
+
"Tao Te Ching",
|
|
287
|
+
],
|
|
288
|
+
[
|
|
289
|
+
{ quote: "Art is long, life is short.", author: "Hippocrates" },
|
|
290
|
+
{ quote: "藝術恆久,人生短暫。", author: "希波克拉底" },
|
|
291
|
+
{ quote: "예술은 길고 인생은 짧다.", author: "히포크라테스" },
|
|
292
|
+
["art", "time"],
|
|
293
|
+
"Aphorisms",
|
|
294
|
+
],
|
|
295
|
+
[
|
|
296
|
+
{
|
|
297
|
+
quote: "Either write something worth reading or do something worth writing.",
|
|
298
|
+
author: "Benjamin Franklin",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
quote: "要嘛寫出值得一讀的東西,要嘛做出值得一寫的事。",
|
|
302
|
+
author: "班傑明·富蘭克林",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
quote: "읽을 가치가 있는 글을 쓰든가, 쓸 가치가 있는 일을 하라.",
|
|
306
|
+
author: "벤저민 프랭클린",
|
|
307
|
+
},
|
|
308
|
+
["writing", "success"],
|
|
309
|
+
"Poor Richard's Almanack",
|
|
310
|
+
],
|
|
311
|
+
[
|
|
312
|
+
{ quote: "Fortune favors the bold.", author: "Virgil" },
|
|
313
|
+
{ quote: "命運眷顧勇者。", author: "維吉爾" },
|
|
314
|
+
{ quote: "행운은 용감한 자의 편이다.", author: "베르길리우스" },
|
|
315
|
+
["courage", "success"],
|
|
316
|
+
"Aeneid",
|
|
317
|
+
],
|
|
318
|
+
[
|
|
319
|
+
{
|
|
320
|
+
quote: "The fear of death follows from the fear of life.",
|
|
321
|
+
author: "Mark Twain",
|
|
322
|
+
},
|
|
323
|
+
{ quote: "對死亡的恐懼,源自對生命的恐懼。", author: "馬克·吐溫" },
|
|
324
|
+
{
|
|
325
|
+
quote: "죽음에 대한 두려움은 삶에 대한 두려움에서 비롯된다.",
|
|
326
|
+
author: "마크 트웨인",
|
|
327
|
+
},
|
|
328
|
+
["death", "fear"],
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
{
|
|
332
|
+
quote: "Faith is the bird that feels the light when the dawn is still dark.",
|
|
333
|
+
author: "Rabindranath Tagore",
|
|
334
|
+
},
|
|
335
|
+
{ quote: "信念是一隻鳥,在黎明仍黑暗時便感受到光。", author: "泰戈爾" },
|
|
336
|
+
{
|
|
337
|
+
quote: "믿음은 새벽이 아직 어두울 때 빛을 느끼는 새이다.",
|
|
338
|
+
author: "라빈드라나트 타고르",
|
|
339
|
+
},
|
|
340
|
+
["faith", "inspirational"],
|
|
341
|
+
"Fireflies",
|
|
342
|
+
],
|
|
343
|
+
[
|
|
344
|
+
{
|
|
345
|
+
quote: "A day without laughter is a day wasted.",
|
|
346
|
+
author: "Charlie Chaplin",
|
|
347
|
+
},
|
|
348
|
+
{ quote: "沒有笑聲的一天,就是虛度的一天。", author: "卓別林" },
|
|
349
|
+
{ quote: "웃음 없는 하루는 낭비한 하루다.", author: "찰리 채플린" },
|
|
350
|
+
["humor", "happiness"],
|
|
351
|
+
],
|
|
352
|
+
];
|
|
353
|
+
export const bundledQuotes = bundled.map(([english, chinese, korean, categories, work]) => ({
|
|
354
|
+
...english,
|
|
355
|
+
work,
|
|
356
|
+
categories,
|
|
357
|
+
translations: { "zh-TW": chinese, ko: korean },
|
|
358
|
+
}));
|
|
359
|
+
export const hasQuoteApi = () => Boolean(process.env.API_NINJAS_KEY);
|
|
218
360
|
export const localizedQuote = (quote, language) => quote.translations?.[language] ?? quote;
|
|
361
|
+
const includes = (text, part) => !part || (text ?? "").toLowerCase().includes(part.trim().toLowerCase());
|
|
362
|
+
// The bundled quotes that pass the filters, or all of them when none does.
|
|
363
|
+
export function bundledPool(settings) {
|
|
364
|
+
const pool = bundledQuotes.filter((quote) => (settings.categories.length === 0 ||
|
|
365
|
+
settings.categories.some((category) => quote.categories?.includes(category))) &&
|
|
366
|
+
!settings.excluded.some((category) => quote.categories?.includes(category)) &&
|
|
367
|
+
[quote, ...Object.values(quote.translations ?? {})].some((text) => includes(text.author, settings.author)) &&
|
|
368
|
+
includes(quote.work, settings.work));
|
|
369
|
+
return pool.length > 0 ? pool : bundledQuotes;
|
|
370
|
+
}
|
|
371
|
+
const dayOf = (now) => Math.floor(now / 86_400_000);
|
|
372
|
+
export function pickBundled(settings, now, random = Math.random()) {
|
|
373
|
+
const pool = bundledPool(settings);
|
|
374
|
+
const index = settings.mode === "daily"
|
|
375
|
+
? dayOf(now) % pool.length
|
|
376
|
+
: Math.floor(random * pool.length);
|
|
377
|
+
return pool[index] ?? bundledQuotes[0] ?? { quote: "", author: "" };
|
|
378
|
+
}
|
|
219
379
|
const apiResponse = zod
|
|
220
|
-
.array(zod.object({
|
|
380
|
+
.array(zod.object({
|
|
381
|
+
quote: zod.string().min(1),
|
|
382
|
+
author: zod.string(),
|
|
383
|
+
work: zod.string().optional(),
|
|
384
|
+
}))
|
|
221
385
|
.min(1);
|
|
222
|
-
|
|
223
|
-
|
|
386
|
+
export function quoteRequestOf(settings) {
|
|
387
|
+
if (settings.mode === "daily") {
|
|
388
|
+
return "https://api.api-ninjas.com/v2/quoteoftheday";
|
|
389
|
+
}
|
|
390
|
+
const query = new URLSearchParams();
|
|
391
|
+
const parameters = [
|
|
392
|
+
["categories", settings.categories.join(",")],
|
|
393
|
+
["exclude_categories", settings.excluded.join(",")],
|
|
394
|
+
["author", settings.author.trim()],
|
|
395
|
+
["work", settings.work.trim()],
|
|
396
|
+
];
|
|
397
|
+
for (const [name, value] of parameters) {
|
|
398
|
+
if (value) {
|
|
399
|
+
query.set(name, value);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
const search = query.toString();
|
|
403
|
+
return `https://api.api-ninjas.com/v2/randomquotes${search ? `?${search}` : ""}`;
|
|
404
|
+
}
|
|
405
|
+
// API Ninjas only when the user brings a key; any failure falls back to the
|
|
406
|
+
// bundled quotes, filtered the same way.
|
|
407
|
+
export async function fetchQuote(settings, apiKey = process.env.API_NINJAS_KEY) {
|
|
224
408
|
if (!apiKey) {
|
|
225
|
-
return
|
|
409
|
+
return pickBundled(settings, Date.now());
|
|
226
410
|
}
|
|
227
411
|
try {
|
|
228
|
-
const response = await fetch(
|
|
412
|
+
const response = await fetch(quoteRequestOf(settings), {
|
|
229
413
|
headers: { "X-Api-Key": apiKey },
|
|
230
414
|
signal: AbortSignal.timeout(5000),
|
|
231
415
|
});
|
|
232
416
|
const [first] = apiResponse.parse(await response.json());
|
|
233
|
-
return first ??
|
|
417
|
+
return first ?? pickBundled(settings, Date.now());
|
|
234
418
|
}
|
|
235
419
|
catch {
|
|
236
|
-
return
|
|
420
|
+
return pickBundled(settings, Date.now());
|
|
237
421
|
}
|
|
238
422
|
}
|
|
239
423
|
//# sourceMappingURL=quotes.js.map
|
package/build/quotes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.js","sourceRoot":"","sources":["../source/quotes.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,GAAG,MAAM,KAAK,CAAC;AAStB,MAAM,CAAC,MAAM,aAAa,GAAqB;IAC9C;QACC,KAAK,EAAE,mCAAmC;QAC1C,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE;YACb,OAAO,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE;YACpD,EAAE,EAAE;gBACH,KAAK,EAAE,sBAAsB;gBAC7B,MAAM,EAAE,OAAO;aACf;SACD;KACD;IACD;QACC,KAAK,EAAE,qDAAqD;QAC5D,MAAM,EAAE,oBAAoB;QAC5B,YAAY,EAAE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