Skip to content

Commit d742124

Browse files
committed
Updated to semantic versioning
1 parent 9c860a8 commit d742124

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

src/components/AboutWindow.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@ function AboutWindow() {
7979
<div className="p-3">
8080
<p>Hey there! I'm
8181
<button
82-
className='clean-button ml-1 underline'
83-
onClick={() => openExternalLink('https://twitter.com/ugupta41')}>
84-
Ujjwal
85-
</button> who goes around with the name Slapbot in open source communities,
82+
className='clean-button ml-1 underline mb-0'
83+
onClick={() => openExternalLink('https://slapbot.me/')}>
84+
Ujjwal</button> who goes around with the name Slapbot in open source communities,
8685
You'd often find me blabbering my completely biased opinions in /r/soccer
8786
or busy building new things.</p>
88-
<p className='mt-1'>I'm most accessible via Twitter and tend to update about whatever
87+
<p className='mt-1'>I'm most accessible via <button
88+
className='clean-button ml-1 underline mb-0'
89+
onClick={() => openExternalLink('https://twitter.com/ugupta41')}>
90+
Twitter</button> and tend to update about whatever
8991
I'm working there, so feel free to follow or send a dm there. :) </p>
9092
</div>
9193

src/components/Broadcast.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function Broadcast() {
2727
}
2828
}
2929
useEffect(() => {
30+
console.log("Current Version Running: " + config.version)
3031
getUpdates(setValues)
3132
}, [])
3233

src/components/Navbar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import openExternalLink from "./utils/openExternalLink";
33
import config from "./utils/config";
44

55
function Navbar() {
6+
function formatVersion(version) {
7+
return version.split(".").splice(0, 2).join(".")
8+
}
69
return (
710
<div className="custom-border border-bottom">
811
<div className="mb-2">
@@ -15,7 +18,7 @@ function Navbar() {
1518
<h4>
1619
Powir
1720
</h4>
18-
<span className="badge ml-1 mt-0-3 text-sm">v{config.version}</span>
21+
<span className="badge ml-1 mt-0-3 text-sm">v{formatVersion(config.version)}</span>
1922
</div>
2023
<h5 className="content-center ml-2">Monitoring & Analyzing Your Battery!</h5>
2124
</div>

src/components/utils/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default {
2-
version: '1.0',
2+
version: '1.0.0',
33
liteMode: process.env.REACT_APP_LITE_MODE === '1'
44
}

0 commit comments

Comments
 (0)