Browse Source

publish muk_web_theme_mail - 12.0

pull/115/head
MuK IT GmbH 5 years ago
parent
commit
942e608daf
  1. 2
      muk_web_theme_mail/__manifest__.py
  2. 41
      muk_web_theme_mail/static/src/js/keyboard.js
  3. 45
      muk_web_theme_mail/static/src/xml/shortcuts.xml
  4. 38
      muk_web_theme_mail/static/src/xml/systray.xml
  5. 1
      muk_web_theme_mail/template/assets.xml

2
muk_web_theme_mail/__manifest__.py

@ -19,7 +19,7 @@
{
"name": "MuK Backend Theme Mail",
"summary": "Backend Theme Mail",
"version": "12.0.1.0.1",
"version": "12.0.1.0.2",
'category': 'Extra Tools',
"license": "AGPL-3",
"author": "MuK IT",

41
muk_web_theme_mail/static/src/js/keyboard.js

@ -0,0 +1,41 @@
/**********************************************************************************
*
* Copyright (C) 2017 MuK IT GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
**********************************************************************************/
odoo.define('muk_web_theme.KeyboardNavigationMixin', function (require) {
"use strict";
var core = require('web.core');
var config = require("web.config");
var session = require("web.session");
var AbstractWebClient = require('web.AbstractWebClient');
var _t = core._t;
var QWeb = core.qweb;
AbstractWebClient.include({
_getAllUsedAccessKeys: function () {
var usedAccessKeys = this._super.apply(this, arguments);
console.log("usedAccessKeys", _.union(usedAccessKeys, ['M', 'T']))
return _.union(usedAccessKeys, ['M', 'T']);
},
});
});

45
muk_web_theme_mail/static/src/xml/shortcuts.xml

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2018 MuK IT GmbH
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<templates id="template" xml:space="preserve">
<t t-extend="UserMenu.shortcuts">
<t t-jquery="tbody" t-operation="append">
<tr>
<td align="left">Open the activities</td>
<td>
<span class="o_key">Alt</span> + <span class="o_key">t</span>
</td>
<td>
<span class="o_key">Control</span> + <span class="o_key">Alt</span> + <span class="o_key">t</span>
</td>
</tr>
<tr>
<td align="left">Open the messages</td>
<td>
<span class="o_key">Alt</span> + <span class="o_key">m</span>
</td>
<td>
<span class="o_key">Control</span> + <span class="o_key">Alt</span> + <span class="o_key">m</span>
</td>
</tr>
</t>
</t>
</templates>

38
muk_web_theme_mail/static/src/xml/systray.xml

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2018 MuK IT GmbH
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<templates id="template" xml:space="preserve">
<t t-extend="mail.systray.MessagingMenu">
<t t-jquery="a.dropdown-toggle" t-operation="replace">
<a class="dropdown-toggle o-no-caret" data-toggle="dropdown" data-display="static" aria-expanded="false" title="Conversations" href="#" role="button" accesskey="m">
<i class="fa fa-comments" role="img" aria-label="Messages"/> <span class="o_notification_counter badge badge-pill"/>
</a>
</t>
</t>
<t t-extend="mail.systray.ActivityMenu">
<t t-jquery="a.dropdown-toggle" t-operation="replace">
<a class="dropdown-toggle o-no-caret" data-toggle="dropdown" data-display="static" aria-expanded="false" title="Activities" href="#" role="button" accesskey="t">
<i class="fa fa-clock-o" role="img" aria-label="Activities"/> <span class="o_notification_counter badge badge-pill"/>
</a>
</t>
</t>
</templates>

1
muk_web_theme_mail/template/assets.xml

@ -41,6 +41,7 @@
<link rel="stylesheet" type="text/scss" href="/muk_web_theme_mail/static/src/scss/chatter.scss"/>
</xpath>
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/muk_web_theme_mail/static/src/js/keyboard.js" />
<script type="text/javascript" src="/muk_web_theme_mail/static/src/js/chatter.js" />
</xpath>
</template>

Loading…
Cancel
Save