forked from Techsystech/web
[FIX] web_responsive: Other minor fixes
* Add Tecnativa as author * Remove untestable JS method * Rename to web_responsive10.0
parent
ac0d077031
commit
b5eed537f8
|
@ -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
|
This module provides a mobile compliant interface for Odoo Community web.
|
||||||
an app drawer that is mobile-compliant.
|
|
||||||
|
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
|
||||||
===========
|
===========
|
|
@ -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",
|
"name": "Web Responsive",
|
||||||
"summary": "It moves the sidebar to a main nav and adds an app drawer",
|
"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": [
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
|
@ -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('$');
|
|
@ -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)'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
});
|
});
|
|
@ -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",
|
||||||
)
|
)
|
|
@ -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>
|
Loading…
Reference in New Issue