Skip to content

Commit

Permalink
Update resize from elapsed time
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksis committed Dec 31, 2023
1 parent 2c9765e commit cc95157
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ LABEL org.opencontainers.image.title="Mobocker" \
{\"title\":\"Support\", \"url\":\"https://github.com/oleksis/mobocker-extension\"} \
]" \
com.docker.extension.changelog="<ul>\
<li>UI: Add reference to access the computed style of the component</li> \
<li>UI: Update the size (font) from elapsed time </li> \
</ul>" \
com.docker.extension.categories="utilities"

Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.5.2",
"version": "0.5.3",
"private": true,
"type": "module",
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class Mobocker {
isVisible: boolean;

constructor(initialSize: number = DEFAULT_SIZE) {
this.size = initialSize; // size of the emoji for Mobocker
this.size =
initialSize + increaseNeeded / elapsedTimeInSeconds / intervalInSeconds; // size of the emoji for Mobocker
this.color = "red"; // color of the Mobocker
this.lifeTime = 4; // life time of the Mobocker is four months
this.emoji = "🐳"; // emoji for Mobocker
Expand Down

0 comments on commit cc95157

Please sign in to comment.