Skip to content

Commit

Permalink
version bump to v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bbengfort committed Oct 13, 2022
1 parent fe509ad commit 5f24595
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 45 deletions.
2 changes: 1 addition & 1 deletion pkg/version.go
Expand Up @@ -8,7 +8,7 @@ const (
VersionMinor = 1
VersionPatch = 0
VersionReleaseLevel = ""
VersionReleaseNumber = 0
VersionReleaseNumber = 1
)

// Set the GitVersion via -ldflags="-X 'github.com/rotationalio/ensign/pkg.GitVersion=$(git rev-parse --short HEAD)'"
Expand Down
8 changes: 4 additions & 4 deletions web/ensign-landing-page/src/components/layout/Navbar.js
Expand Up @@ -6,18 +6,18 @@ export default function Navbar() {
return (
<nav className="relative max-w-7xl flex items-center justify-between text-white">
<a href="https://rotational.io" target="_blank" rel="noreferrer" className="pt-3">
<img
<img
src={logo}
alt="Rotational Labs logo"
className="pl-5 h-14 w-auto sm:pl-20 h-14"
className="pl-5 h-14 w-auto sm:pl-20 h-14"
/>
</a>
<ul className="topnav" id="myTopnav">
<li><a href="https://rotational.app">Ensign</a></li>
<li><a href="https://rotational.io/services/" target="_blank" rel="noreferrer">Services</a></li>
<li><a href="https://rotational.io/about" target="_blank" rel="noreferrer">About</a></li>
<li><a href="javascript:void(0);" class="icon" onClick={toggleResponsiveClass}>
<i class="fa fa-bars"></i>
<li><a href="#" className="icon" onClick={toggleResponsiveClass}>
<i className="fa fa-bars"></i>
</a></li>
</ul>
</nav>
Expand Down
17 changes: 9 additions & 8 deletions web/ensign-landing-page/src/components/layout/ResponsiveNav.js
@@ -1,9 +1,10 @@
/* Toggles between adding and removing the "responsive" class to topnav when the user clicks on the hamburger icon */
export default function toggleResponsiveClass() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
export default function toggleResponsiveClass(e) {
e.preventDefault();
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
25 changes: 17 additions & 8 deletions web/ensign-landing-page/src/config/sentry.js
Expand Up @@ -2,14 +2,23 @@ import * as Sentry from '@sentry/react';
import { BrowserTracing } from '@sentry/tracing';

const initSentry = () => {
const environment = process.env.REACT_APP_SENTRY_ENVIRONMENT ? process.REACT_APP_SENTRY_ENVIRONMENT : process.env.NODE_ENV;

Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
integrations: [new BrowserTracing()],
environment: environment,
tracesSampleRate: 1.0,
});
const dsn = process.env.REACT_APP_SENTRY_DSN;
const environment = process.env.REACT_APP_SENTRY_ENVIRONMENT ? process.env.REACT_APP_SENTRY_ENVIRONMENT : process.env.NODE_ENV;

if (dsn) {
Sentry.init({
dsn: dsn,
integrations: [new BrowserTracing()],
environment: environment,
tracesSampleRate: 1.0,
});

// eslint-disable-next-line no-console
console.log("Sentry tracing initialized");
} else {
// eslint-disable-next-line no-console
console.log("no Sentry configuration available");
}
}

export default initSentry
48 changes: 24 additions & 24 deletions web/ensign-landing-page/src/lib/analytics.js
Expand Up @@ -4,27 +4,27 @@ import GA4React from 'ga-4-react';
const gaCode = process.env.REACT_APP_ANALYTICS_ID;

const withTracker = (Component) => (props) => {
useEffect(() => {
switch(GA4React.isInitialized()) {
case true:
const ga4 = GA4React.getGA4React();
if (ga4) {
ga4.pageview(window.location.pathname);
}
break
default:
case false:
const ga4react = new GA4React(gaCode);
ga4react.initialize().then((ga4) => {
console.log(`tracking initialized with ${gaCode}`);
ga4.pageview(window.location.pathname);
}, (err) => {
console.error(err);
});
break
}
});
return <Component {...props} />;
};
export default withTracker;
useEffect(() => {
switch(GA4React.isInitialized()) {
case true:
const ga4 = GA4React.getGA4React();
if (ga4) {
ga4.pageview(window.location.pathname);
}
break
default:
case false:
const ga4react = new GA4React(gaCode);
ga4react.initialize().then((ga4) => {
console.log(`tracking initialized with ${gaCode}`);
ga4.pageview(window.location.pathname);
}, (err) => {
console.error(err);
});
break
}
});
return <Component {...props} />;
};

export default withTracker;

0 comments on commit 5f24595

Please sign in to comment.