Skip to content

Commit

Permalink
Merge pull request #125 from DataWorks-NC/release/3.2.0
Browse files Browse the repository at this point in the history
Release version 3.2.0
  • Loading branch information
Tim Stallmann authored Jun 18, 2023
2 parents bb3a3a0 + d7ad0e8 commit 6b5c96a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 44 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@
<div id="app"></div>
<script>window.global = window;</script>
<script type="module" src="/src/main.js"></script>
<script async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
</body>
</html>
29 changes: 6 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "durham-neighborhood-compass",
"version": "3.1.2",
"version": "3.2.0",
"private": true,
"type": "module",
"scripts": {
Expand Down Expand Up @@ -69,7 +69,6 @@
"vite-plugin-vuetify": "^1.0.0",
"vite-ssg": "^0.22",
"vitest": "^0.28.5",
"vue-gtag": "^2.0.1",
"yorkie": "^2.0.0"
},
"postcss": {
Expand Down
9 changes: 3 additions & 6 deletions src/js/helpers/tracking.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { event } from 'vue-gtag';

function gaEvent(type, title, category) {
event(type, {
'event_category': category,
'event_title': title,
});
if (typeof window !== "undefined" && window.sa_event instanceof Function) {
window?.sa_event(`${type}__${title}__${category}`);
}
}

const debugLog = (msg) => {
Expand Down
11 changes: 0 additions & 11 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ if (typeof window !== 'undefined') {
}

import {ViteSSG} from 'vite-ssg';
import VueGtag from 'vue-gtag';

import {routerOptions, setUpRouterHooks} from './plugins/router';
import i18n from './plugins/i18n';
Expand All @@ -35,16 +34,6 @@ export const createApp = ViteSSG(
app.use(i18n);
app.config.unwrapInjectedRef = true;
app.component('SetHead', Head);
app.use(VueGtag, {
config:
{
id: import.meta.env.VITE_GOOGLE_ANALYTICS_ID,
params: {
anonymize_ip: true,
},
},
}, router
);

setUpRouterHooks(router);

Expand Down
2 changes: 0 additions & 2 deletions src/plugins/router.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import config from '../js/helpers/config';
import { debugLog } from '../js/helpers/tracking';
import { store } from '@/js/stores/compass-store.js';
import { pageview } from 'vue-gtag';

const About = () => import('../js/views/About.vue');
const Compass = () => import('../js/views/Compass.vue');
Expand Down Expand Up @@ -119,7 +118,6 @@ const setUpRouterHooks = function(router) {
debugLog("Route guard: store last compass path");
store.lastCompassRoute = to;
}
pageview(to);
});

return router;
Expand Down

0 comments on commit 6b5c96a

Please sign in to comment.