-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from smirko-dev/MoreActivities
Selectable activities
- Loading branch information
Showing
31 changed files
with
209 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<svg class="background"> | ||
<text id="hourLabel" /> | ||
<text id="minuteLabel" /> | ||
<text id="dateLabel" opacity=".75" /> | ||
<textarea id="appointmentsLabel" opacity=".75" /> | ||
<image id="batteryImage" href="battery-alert.png" x="275" y="5" width="24" height="24" fill="white" opacity=".5" /> | ||
<text id="batteryLabel" opacity=".75" /> | ||
<image id="activityIcon" href="shoe-print.png" x="35%" y="80%" width="32" height="32" opacity=".75" class="activityIcon" /> | ||
<text id="activityLabel" opacity=".75" /> | ||
<text id="dateLabel" opacity=".8" /> | ||
<textarea id="appointmentsLabel" opacity=".8" /> | ||
<image id="batteryImage" href="battery-alert.png" x="275" y="5" width="24" height="24" opacity=".6" class="batteryIcon" /> | ||
<text id="batteryLabel" opacity=".8" /> | ||
<image id="activityIcon" href="steps.png" x="35%" y="80%" width="32" height="32" opacity=".8" class="activityIcon" /> | ||
<text id="activityLabel" opacity=".8" /> | ||
</svg> |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,8 @@ | |
|
||
.activityIcon { | ||
fill: #2490DD | ||
} | ||
|
||
.batteryIcon { | ||
fill: #FFFFFF | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
msgid "title" | ||
msgstr "Aktivitäts-Info" | ||
|
||
msgid "steps" | ||
msgstr "Schritte" | ||
|
||
msgid "cal" | ||
msgstr "Kalorien" | ||
|
||
msgid "dist" | ||
msgstr "Distanz" | ||
|
||
msgid "floors" | ||
msgstr "Etagen" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
msgid "title" | ||
msgstr "Activity info" | ||
|
||
msgid "steps" | ||
msgstr "Steps" | ||
|
||
msgid "cal" | ||
msgstr "Calories" | ||
|
||
msgid "dist" | ||
msgstr "Distance" | ||
|
||
msgid "floors" | ||
msgstr "Floors" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
msgid "title" | ||
msgstr "Инфо о деятельности" | ||
|
||
msgid "steps" | ||
msgstr "Шаги" | ||
|
||
msgid "cal" | ||
msgstr "Калорий" | ||
|
||
msgid "dist" | ||
msgstr "Расстояние" | ||
|
||
msgid "floors" | ||
msgstr "Полы" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
import { gettext } from "i18n"; | ||
|
||
function settingsFunc(props) { | ||
let title = gettext("title"); | ||
let steps = gettext("steps"); | ||
let dist = gettext("dist"); | ||
let floors = gettext("floors"); | ||
let cal = gettext("cal"); | ||
return ( | ||
<Page> | ||
<Section> | ||
<Select | ||
label={`${title}`} | ||
settingsKey="activity" | ||
options={[ | ||
{ name: `${steps}`, value: "steps" }, | ||
{ name: `${dist}`, value: "distance" }, | ||
{ name: `${floors}`, value: "floors" }, | ||
{ name: `${cal}`, value: "calories" } | ||
]} | ||
/> | ||
</Section> | ||
</Page> | ||
) | ||
} | ||
|
||
registerSettingsPage(settingsFunc); |