Skip to content

Commit 5c2766b

Browse files
committed
textfacts 0.04: Don't create a whole new Clockinfo Category just for Facts - put it in the normal Bangle.js one
1 parent 423b91d commit 5c2766b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

apps/textfacts/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
0.01: New Module!
22
0.02: Removed many non-interesting facts
33
0.03: Removed redundant facts, added many new facts and added a clkinfo to get random facts from a clock face.
4+
0.04: Don't create a whole new Clockinfo Category just for Facts - put it in the normal Bangle.js one

apps/textfacts/clkinfo.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function() {
22
return {
3-
name: "Facts",
3+
name: "Bangle",
44
items: [
55
{ name : "Facts",
66
get : () => ({ text : "Fact",
@@ -12,6 +12,10 @@
1212
// Intentionally left blank: no action needed when hiding
1313
},
1414
run : function() { // tapped - cycle between start and stop
15+
/** FIXME: this assumes the clock is 'fast load'-able - if it isn't
16+
then the prompt will appear but the clock will continue to render on
17+
top of the prompt that's shown. To do this properly we probably need
18+
to create an actual app and load that. */
1519
E.showPrompt(require('textsource').getRandomText().txt,{
1620
title: "Fun Fact",
1721
buttons:{"Ok":true}

apps/textfacts/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "id": "textfacts",
22
"name": "List of Facts",
33
"shortName":"Facts",
4-
"version":"0.03",
4+
"version":"0.04",
55
"description": "A list of fun facts. Provides a `textsource` module that apps can use to query a random fact, as well as a clockInfo to see facts on your favorite clock.",
66
"icon": "icon.png",
77
"type": "module",

0 commit comments

Comments
 (0)