Browse Source

[FIX] web_responsive: Other minor fixes

* Add Tecnativa as author
* Remove untestable JS method
* Rename to web_responsive
pull/443/head
Dave Lasley 8 years ago
parent
commit
b5eed537f8
  1. 13
      web_responsive/README.rst
  2. 0
      web_responsive/__init__.py
  3. 7
      web_responsive/__openerp__.py
  4. 0
      web_responsive/static/description/icon.png
  5. 0
      web_responsive/static/lib/css/drawer.3.2.0.css
  6. 0
      web_responsive/static/lib/js/drawer.3.2.0.js
  7. 0
      web_responsive/static/lib/js/iscroll-probe.5.2.0.js
  8. 2
      web_responsive/static/src/js/web_responsive.js
  9. 0
      web_responsive/static/src/less/app_drawer.less
  10. 0
      web_responsive/static/src/less/main.less
  11. 0
      web_responsive/static/src/less/navbar.less
  12. 0
      web_responsive/static/src/less/variables.less
  13. 15
      web_responsive/static/tests/js/web_responsive.js
  14. 2
      web_responsive/tests/test_ui.py
  15. 18
      web_responsive/views/assets.xml
  16. 0
      web_responsive/views/web.xml

13
web_app_drawer/README.rst → web_responsive/README.rst

@ -3,11 +3,15 @@
:alt: License: LGPL-3 :alt: License: LGPL-3
============== ==============
Web App Drawer
Web Responsive
============== ==============
This module moves the side navigation panel to a top menu bar. It also provides
an app drawer that is mobile-compliant.
This module provides a mobile compliant interface for Odoo Community web.
Features:
* New navigation with an App drawer
* Keyboard shortcuts for easier navigation
Installation Installation
@ -36,11 +40,12 @@ The following keyboard shortcuts are implemented:
Known issues / Roadmap Known issues / Roadmap
====================== ======================
* Provide keyboard navigation to secondary (top) menu
* Provide full menu search feature instead of just App search
* Drag drawer from left to open in mobile * Drag drawer from left to open in mobile
* Figure out how to test focus on hidden elements for keyboard nav tests * Figure out how to test focus on hidden elements for keyboard nav tests
* If you resize the window, body gets a wrong ``overflow: auto`` css property * If you resize the window, body gets a wrong ``overflow: auto`` css property
and you need to refresh your view or open/close the app drawer to fix that. and you need to refresh your view or open/close the app drawer to fix that.
* Override LESS styling to allow for responsive widget layouts
Bug Tracker Bug Tracker
=========== ===========

0
web_app_drawer/__init__.py → web_responsive/__init__.py

7
web_app_drawer/__openerp__.py → web_responsive/__openerp__.py

@ -3,12 +3,13 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{ {
"name": "Web App Drawer",
"summary": "It moves the sidebar to a main nav and adds an app drawer",
"name": "Web Responsive",
"summary": "It provides a mobile compliant interface for Odoo Community "
"web",
"version": "9.0.1.0.0", "version": "9.0.1.0.0",
"category": "Website", "category": "Website",
"website": "https://laslabs.com/", "website": "https://laslabs.com/",
"author": "LasLabs, Odoo Community Association (OCA)",
"author": "LasLabs, Tecnativa, Odoo Community Association (OCA)",
"license": "LGPL-3", "license": "LGPL-3",
"installable": True, "installable": True,
"depends": [ "depends": [

0
web_app_drawer/static/description/icon.png → web_responsive/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

0
web_app_drawer/static/lib/css/drawer.3.2.0.css → web_responsive/static/lib/css/drawer.3.2.0.css

0
web_app_drawer/static/lib/js/drawer.3.2.0.js → web_responsive/static/lib/js/drawer.3.2.0.js

0
web_app_drawer/static/lib/js/iscroll-probe.5.2.0.js → web_responsive/static/lib/js/iscroll-probe.5.2.0.js

2
web_app_drawer/static/src/js/web_app_drawer.js → web_responsive/static/src/js/web_responsive.js

@ -1,7 +1,7 @@
/* Copyright 2016 LasLabs Inc. /* Copyright 2016 LasLabs Inc.
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
odoo.define('web_app_drawer', function(require) {
odoo.define('web_responsive', function(require) {
'use strict'; 'use strict';
var $ = require('$'); var $ = require('$');

0
web_app_drawer/static/src/less/app_drawer.less → web_responsive/static/src/less/app_drawer.less

0
web_app_drawer/static/src/less/main.less → web_responsive/static/src/less/main.less

0
web_app_drawer/static/src/less/navbar.less → web_responsive/static/src/less/navbar.less

0
web_app_drawer/static/src/less/variables.less → web_responsive/static/src/less/variables.less

15
web_app_drawer/static/tests/js/web_app_drawer.js → web_responsive/static/tests/js/web_responsive.js

@ -1,7 +1,7 @@
/* Copyright 2016 LasLabs Inc. /* Copyright 2016 LasLabs Inc.
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
odoo.define_section('web_app_drawer', ['web_app_drawer'], function(test) {
odoo.define_section('web_responsive', ['web_responsive'], function(test) {
"use strict"; "use strict";
// It provides a base drawer compatible interface for testing // It provides a base drawer compatible interface for testing
@ -275,17 +275,4 @@ odoo.define_section('web_app_drawer', ['web_app_drawer'], function(test) {
} }
); );
test('It should move the panel header to negative iScroll.y',
function(assert, AppDrawer) {
self.initInterface(AppDrawer);
self.drawer.$el.iScroll.y = -200;
self.drawer.onIScroll();
var $header = $('#appDrawerAppPanelHead');
assert.equal(
$header.css('transform'),
'matrix(1, 0, 0, 1, 0, 200)'
);
}
);
}); });

2
web_app_drawer/tests/test_ui.py → web_responsive/tests/test_ui.py

@ -10,7 +10,7 @@ class TestUi(HttpCase):
def test_ui_web(self): def test_ui_web(self):
"""Test backend tests.""" """Test backend tests."""
self.phantom_js( self.phantom_js(
"/web/tests?module=web_app_drawer",
"/web/tests?module=web_responsive",
"", "",
login="admin", login="admin",
) )

18
web_app_drawer/views/assets.xml → web_responsive/views/assets.xml

@ -11,35 +11,35 @@
<xpath expr="."> <xpath expr=".">
<link rel="stylesheet" <link rel="stylesheet"
type="text/css" type="text/css"
href="/web_app_drawer/static/lib/css/drawer.3.2.0.css"
href="/web_responsive/static/lib/css/drawer.3.2.0.css"
/> />
<link rel="stylesheet" <link rel="stylesheet"
href="/web_app_drawer/static/src/less/main.less"
href="/web_responsive/static/src/less/main.less"
/> />
<link rel="stylesheet" <link rel="stylesheet"
href="/web_app_drawer/static/src/less/navbar.less"
href="/web_responsive/static/src/less/navbar.less"
/> />
<link rel="stylesheet" <link rel="stylesheet"
href="/web_app_drawer/static/src/less/app_drawer.less"
href="/web_responsive/static/src/less/app_drawer.less"
/> />
<link rel="stylesheet" <link rel="stylesheet"
href="/web_app_drawer/static/src/less/variables.less"
href="/web_responsive/static/src/less/variables.less"
/> />
<script type="application/javascript" <script type="application/javascript"
src="/web_app_drawer/static/lib/js/iscroll-probe.5.2.0.js"
src="/web_responsive/static/lib/js/iscroll-probe.5.2.0.js"
/> />
<script type="application/javascript" <script type="application/javascript"
src="/web_app_drawer/static/lib/js/drawer.3.2.0.js"
src="/web_responsive/static/lib/js/drawer.3.2.0.js"
/> />
<script type="application/javascript" <script type="application/javascript"
src="/web_app_drawer/static/src/js/web_app_drawer.js"
src="/web_responsive/static/src/js/web_responsive.js"
/> />
</xpath> </xpath>
</template> </template>
<template id="qunit_suite" inherit_id="web.qunit_suite"> <template id="qunit_suite" inherit_id="web.qunit_suite">
<xpath expr="//html/head" position="inside"> <xpath expr="//html/head" position="inside">
<script type="application/javascript" <script type="application/javascript"
src="/web_app_drawer/static/tests/js/web_app_drawer.js"
src="/web_responsive/static/tests/js/web_responsive.js"
/> />
</xpath> </xpath>
</template> </template>

0
web_app_drawer/views/web.xml → web_responsive/views/web.xml

Loading…
Cancel
Save