3
0
Fork 0

[FIX] web_responsive: Other minor fixes

* Add Tecnativa as author
* Remove untestable JS method
* Rename to web_responsive
10.0
Dave Lasley 2016-10-11 06:28:15 -07:00
parent ac0d077031
commit b5eed537f8
16 changed files with 25 additions and 32 deletions

View File

@ -3,11 +3,15 @@
: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
@ -36,11 +40,12 @@ The following keyboard shortcuts are implemented:
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
* 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
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
===========

View File

@ -3,12 +3,13 @@
# 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",
"category": "Website",
"website": "https://laslabs.com/",
"author": "LasLabs, Odoo Community Association (OCA)",
"author": "LasLabs, Tecnativa, Odoo Community Association (OCA)",
"license": "LGPL-3",
"installable": True,
"depends": [

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -1,7 +1,7 @@
/* Copyright 2016 LasLabs Inc.
* 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';
var $ = require('$');

View File

@ -1,7 +1,7 @@
/* Copyright 2016 LasLabs Inc.
* 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";
// 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)'
);
}
);
});

View File

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

View File

@ -11,35 +11,35 @@
<xpath expr=".">
<link rel="stylesheet"
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"
href="/web_app_drawer/static/src/less/main.less"
href="/web_responsive/static/src/less/main.less"
/>
<link rel="stylesheet"
href="/web_app_drawer/static/src/less/navbar.less"
href="/web_responsive/static/src/less/navbar.less"
/>
<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"
href="/web_app_drawer/static/src/less/variables.less"
href="/web_responsive/static/src/less/variables.less"
/>
<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"
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"
src="/web_app_drawer/static/src/js/web_app_drawer.js"
src="/web_responsive/static/src/js/web_responsive.js"
/>
</xpath>
</template>
<template id="qunit_suite" inherit_id="web.qunit_suite">
<xpath expr="//html/head" position="inside">
<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>
</template>