Skip to content

Commit

Permalink
Updated to semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
SlapBot committed Jun 5, 2020
1 parent 9c860a8 commit d742124
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
12 changes: 7 additions & 5 deletions src/components/AboutWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ function AboutWindow() {
<div className="p-3">
<p>Hey there! I'm
<button
className='clean-button ml-1 underline'
onClick={() => openExternalLink('https://twitter.com/ugupta41')}>
Ujjwal
</button> who goes around with the name Slapbot in open source communities,
className='clean-button ml-1 underline mb-0'
onClick={() => openExternalLink('https://slapbot.me/')}>
Ujjwal</button> who goes around with the name Slapbot in open source communities,
You'd often find me blabbering my completely biased opinions in /r/soccer
or busy building new things.</p>
<p className='mt-1'>I'm most accessible via Twitter and tend to update about whatever
<p className='mt-1'>I'm most accessible via <button
className='clean-button ml-1 underline mb-0'
onClick={() => openExternalLink('https://twitter.com/ugupta41')}>
Twitter</button> and tend to update about whatever
I'm working there, so feel free to follow or send a dm there. :) </p>
</div>

Expand Down
1 change: 1 addition & 0 deletions src/components/Broadcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function Broadcast() {
}
}
useEffect(() => {
console.log("Current Version Running: " + config.version)
getUpdates(setValues)
}, [])

Expand Down
5 changes: 4 additions & 1 deletion src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import openExternalLink from "./utils/openExternalLink";
import config from "./utils/config";

function Navbar() {
function formatVersion(version) {
return version.split(".").splice(0, 2).join(".")
}
return (
<div className="custom-border border-bottom">
<div className="mb-2">
Expand All @@ -15,7 +18,7 @@ function Navbar() {
<h4>
Powir
</h4>
<span className="badge ml-1 mt-0-3 text-sm">v{config.version}</span>
<span className="badge ml-1 mt-0-3 text-sm">v{formatVersion(config.version)}</span>
</div>
<h5 className="content-center ml-2">Monitoring & Analyzing Your Battery!</h5>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
version: '1.0',
version: '1.0.0',
liteMode: process.env.REACT_APP_LITE_MODE === '1'
}

0 comments on commit d742124

Please sign in to comment.