Skip to content

Commit

Permalink
Merge branch 'release-2.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
abidibo committed Aug 3, 2021
2 parents 9a88dbc + 867c05a commit 81f1423
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 26 deletions.
2 changes: 1 addition & 1 deletion baton/static/baton/app/dist/baton.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion baton/static/baton/app/package-lock.json

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

2 changes: 1 addition & 1 deletion baton/static/baton/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "baton",
"version": "2.2.1",
"version": "2.2.2",
"description": "Django Baton App",
"main": "index.js",
"scripts": {
Expand Down
18 changes: 0 additions & 18 deletions baton/static/baton/app/src/core/Analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,13 @@ class Analytics {
'access_token': self.token
}
})
/**
* Create a new ActiveUsers instance to be rendered inside of an
* element with the id "active-users-container" and poll for changes every
* five seconds.
*/
var activeUsers = new gapi.analytics.ext.ActiveUsers({
container: self.domIds.activeUsers,
ids: 'ga:' + self.viewId,
pollingInterval: 5
}).execute()
/**
* Create a new ViewSelector2 instance to be rendered inside of an
* element with the id "view-selector-container".
*/
var viewSelector = new gapi.analytics.ViewSelector({
container: self.domIds.viewSelector,
})
/**
* Update the activeUsers component, the Chartjs charts, and the dashboard
* title whenever the user changes the view.
*/
viewSelector.on('viewChange', function (data) {
// Start tracking active users for this view.
activeUsers.set(data).execute()
})
viewSelector.execute()

let baseQuery = {
Expand Down
2 changes: 1 addition & 1 deletion baton/static/baton/app/src/core/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ let Tabs = {
}
},
checkHash: function () {
if (location.hash) {
if (location.hash && this.nav.find('a[data-bs-target="' + location.hash + '"]').length) {
const tab = new bootstrap.Tab(this.nav.find('a[data-bs-target="' + location.hash + '"]')[0])
tab.show()
}
Expand Down
1 change: 0 additions & 1 deletion baton/templates/baton/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
{% block baton_before_analytics %}{% endblock baton_before_analytics %}
<h4 class="d-flex justify-content-between">
Google Analytics
<span class="btn btn-info" id="active-users-container"></span>
</h4>
<!-- this is just to make the view selector work, no need to display it -->
<div id="view-selector-container" style="display: none"></div>
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
# built documents.
#
# The short X.Y version.
version = u'2.2.1'
version = u'2.2.2'
# The full version, including alpha/beta/rc tags.
release = u'2.2.1'
release = u'2.2.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name='django-baton',
version='2.2.1',
version='2.2.2',
packages=['baton', 'baton.autodiscover', 'baton.templatetags'],
include_package_data=True,
license='MIT License',
Expand Down
Binary file modified testapp/app/db.sqlite3
Binary file not shown.

0 comments on commit 81f1423

Please sign in to comment.