Skip to content

Commit

Permalink
Merge branch 'release-1.12.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
abidibo committed Nov 17, 2020
2 parents 4f537e4 + cbd9743 commit 6c6fa64
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 16 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ Everything is styled through CSS and when required, JS is used.

The following packages are required to manage the Google Analytics index:

- google-auth==1.22.1
- google-auth-httplib2==0.0.4
- google-api-python-client==1.5.5
- google-auth
- google-auth-httplib2
- google-api-python-client
- requests

At the moment __baton__ defines only 4 custom templates:

Expand Down
4 changes: 2 additions & 2 deletions 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/dist/baton.min.js.map

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": "1.12.1",
"version": "1.12.2",
"description": "Django Baton App",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions baton/static/baton/app/src/core/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ let Tabs = {
$('input[name="_addanother"]').on('click', function () {
location.hash = ''
})

$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
$('[title]').tooltip()
})
},
createInlineEl: function (el, setDataTab = false) {
let domEl
Expand Down
8 changes: 7 additions & 1 deletion baton/static/baton/app/src/styles/_placeholders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -595,11 +595,11 @@
}

fieldset.collapse {
cursor: pointer;
display: block;

h2 {
align-items: center;
cursor: pointer;
display: flex;
flex-direction: row;
justify-content: space-between;
Expand Down Expand Up @@ -656,10 +656,16 @@
font-size: 1.1rem;
padding: 8px 10px;

.inline_label {
margin-right: auto;
}

/* replaced by prev rules, keeping here for reference for a while
> .delete,
> .inline_label + span {
margin-left: auto;
}
*/

> .delete {
label {
Expand Down
5 changes: 4 additions & 1 deletion baton/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get(self, request):
self.app_list = site.get_app_list(request)
self.apps_dict = self.create_app_list_dict()
# no menu provided
items = get_config('MENU')
items = self.get_menu(request)
if not items:
voices = self.get_default_voices()
else:
Expand All @@ -36,6 +36,9 @@ def get(self, request):

return JsonResponse(voices, safe=False)

def get_menu(self, request):
return get_config('MENU')

def add_voice(self, voices, item):
""" Adds a voice to the list
"""
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'1.12.1'
version = u'1.12.2'
# The full version, including alpha/beta/rc tags.
release = u'1.12.1'
release = u'1.12.2'

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

setup(
name='django-baton',
version='1.12.1',
version='1.12.2',
packages=['baton', 'baton.autodiscover', 'baton.templatetags'],
include_package_data=True,
license='MIT License',
Expand All @@ -22,9 +22,10 @@
author='abidibo',
author_email='abidibo@gmail.com',
install_requires=[
'google-auth==1.22.1',
'google-auth-httplib2==0.0.4',
'google-api-python-client==1.5.5',
'google-auth',
'google-auth-httplib2',
'google-api-python-client',
'requests',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down
Binary file modified testapp/app/db.sqlite3
Binary file not shown.

0 comments on commit 6c6fa64

Please sign in to comment.