Mathias Markl 7 years ago
parent
commit
a4206d3aa5
  1. 24
      muk_web_preview_image/README.md
  2. 2
      muk_web_preview_image/__init__.py
  3. 31
      muk_web_preview_image/__manifest__.py
  4. 6
      muk_web_preview_image/doc/changelog.rst
  5. 68
      muk_web_preview_image/doc/index.rst
  6. 46
      muk_web_preview_image/static/description/index.html
  7. 8
      muk_web_preview_image/static/src/js/preview_handler.js
  8. 2
      muk_web_utils/__manifest__.py
  9. 0
      muk_web_utils/static/lib/imageviewer/imageviewer.css
  10. 0
      muk_web_utils/static/lib/imageviewer/imageviewer.js

24
muk_web_preview_image/README.md

@ -1,24 +0,0 @@
# MuK Preview Image
Extendes the Preview Dialog to support images. Currently the following image extensions are supported:
* CIS-Cod-Dateien (*.cod, image/cis-cod)
* CMU-Raster-Dateien (*.ras, image/cmu-raster)
* FIF-Dateien (*.fif, image/fif)
* GIF-Dateien (*.gif, image/gif)
* IEF-Dateien (*.ief, image/ief)
* JPEG-Dateien (*.jpeg *.jpg *.jpe, image/jpeg)
* PNG-Dateien (*.png, image/png)
* TIFF-Dateien (*.tiff *.tif, image/tiff)
* Vasa-Dateien (*.mcf, image/vasa)
* Bitmap-Dateien (WAP) (*.wbmp, image/vnd.wap.wbmp)
* Freehand-Dateien (*.fh4 *.fh5 *.fhc, image/x-freehand)
* Icon-Dateien (*.ico, image/x-icon)
* PBM Anymap Dateien (*.pnm, image/x-portable-anymap)
* PBM Bitmap Dateien (*.pbm, image/x-portable-bitmap)
* PBM Graymap Dateien (*.pgm, image/x-portable-graymap)
* PBM Pixmap Dateien (*.ppm, image/x-portable-pixmap)
* RGB-Dateien (*.rgb, image/x-rgb)
* X-Windows Dump (*.xwd, image/x-windowdump)
* XBM-Dateien (*.xbm, image/x-xbitmap)
* XPM-Dateien (*.xpm, image/x-xpixmap)

2
muk_web_preview_image/__init__.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Copyright (C) 2017 MuK IT GmbH

31
muk_web_preview_image/__manifest__.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Copyright (C) 2017 MuK IT GmbH
@ -22,34 +20,11 @@
{
"name": "MuK Preview Image",
"summary": """Image Preview""",
"description": """
Extendes the Preview Dialog to support images.
Currently the following image extensions are supported:
- CIS-Cod-Dateien (*.cod, image/cis-cod)
- CMU-Raster-Dateien (*.ras, image/cmu-raster)
- FIF-Dateien (*.fif, image/fif)
- GIF-Dateien (*.gif, image/gif)
- IEF-Dateien (*.ief, image/ief)
- JPEG-Dateien (*.jpeg *.jpg *.jpe, image/jpeg)
- PNG-Dateien (*.png, image/png)
- TIFF-Dateien (*.tiff *.tif, image/tiff)
- Vasa-Dateien (*.mcf, image/vasa)
- Bitmap-Dateien (WAP) (*.wbmp, image/vnd.wap.wbmp)
- Freehand-Dateien (*.fh4 *.fh5 *.fhc, image/x-freehand)
- Icon-Dateien (*.ico, image/x-icon)
- PBM Anymap Dateien (*.pnm, image/x-portable-anymap)
- PBM Bitmap Dateien (*.pbm, image/x-portable-bitmap)
- PBM Graymap Dateien (*.pgm, image/x-portable-graymap)
- PBM Pixmap Dateien (*.ppm, image/x-portable-pixmap)
- RGB-Dateien (*.rgb, image/x-rgb)
- X-Windows Dump (*.xwd, image/x-windowdump)
- XBM-Dateien (*.xbm, image/x-xbitmap)
- XPM-Dateien (*.xpm, image/x-xpixmap)
""",
"version": "11.0.1.1.0",
"version": "11.0.2.0.0",
"category": "Extra Tools",
"license": "AGPL-3",
"website": "http://www.mukit.at",
"live_test_url": "https://demo.mukit.at/web/login",
"author": "MuK IT",
"contributors": [
"Mathias Markl <mathias.markl@mukit.at>",
@ -60,8 +35,6 @@
"data": [
"template/assets.xml",
],
"demo": [
],
"qweb": [
"static/src/xml/*.xml",
],

6
muk_web_preview_image/doc/changelog.rst

@ -1,9 +1,13 @@
`2.0.0`
-------
- Migrated to Python 3
`1.1.0`
-------
- Lazy load javascript
`1.0.0`
-------

68
muk_web_preview_image/doc/index.rst

@ -0,0 +1,68 @@
=================
MuK Preview Image
=================
Extendes the Preview Dialog to support images. Currently the following image extensions
are supported:
* CIS-Cod-Dateien (\*.cod, image/cis-cod)
* CMU-Raster-Dateien (\*.ras, image/cmu-raster)
* FIF-Dateien (\*.fif, image/fif)
* GIF-Dateien (\*.gif, image/gif)
* IEF-Dateien (\*.ief, image/ief)
* JPEG-Dateien (\*.jpeg \*.jpg \*.jpe, image/jpeg)
* PNG-Dateien (\*.png, image/png)
* TIFF-Dateien (\*.tiff \*.tif, image/tiff)
* Vasa-Dateien (\*.mcf, image/vasa)
* Bitmap-Dateien (WAP) (\*.wbmp, image/vnd.wap.wbmp)
* Freehand-Dateien (\*.fh4 \*.fh5 \*.fhc, image/x-freehand)
* Icon-Dateien (\*.ico, image/x-icon)
* PBM Anymap Dateien (\*.pnm, image/x-portable-anymap)
* PBM Bitmap Dateien (\*.pbm, image/x-portable-bitmap)
* PBM Graymap Dateien (\*.pgm, image/x-portable-graymap)
* PBM Pixmap Dateien (\*.ppm, image/x-portable-pixmap)
* RGB-Dateien (\*.rgb, image/x-rgb)
* X-Windows Dump (\*.xwd, image/x-windowdump)
* XBM-Dateien (\*.xbm, image/x-xbitmap)
* XPM-Dateien (\*.xpm, image/x-xpixmap)
Installation
============
To install this module, you need to:
Download the module and add it to your Odoo addons folder. Afterward, log on to
your Odoo server and go to the Apps menu. Trigger the debug modus and update the
list by clicking on the "Update Apps List" link. Now install the module by
clicking on the install button.
Configuration
=============
No additional configuration is needed to use this module.
Usage
=============
Go to a binary that contains an image and open the preview dialog to view
the image.
Credits
=======
Contributors
------------
* Mathias Markl <mathias.markl@mukit.at>
Author & Maintainer
-------------------
This module is maintained by the `MuK IT GmbH <https://www.mukit.at/>`_.
MuK IT is an Austrian company specialized in customizing and extending Odoo.
We develop custom solutions for your individual needs to help you focus on
your strength and expertise to grow your business.
If you want to get in touch please contact us via mail
(sale@mukit.at) or visit our website (https://mukit.at).

46
muk_web_preview_image/static/description/index.html

@ -4,15 +4,15 @@
<h3 class="oe_slogan">Preview your images directly in Odoo.</h3>
<h4 class="oe_slogan" style="font-size: 23px;">MuK IT GmbH -
www.mukit.at</h4>
<div class="oe_demo oe_screenshot">
<div class="oe_demo oe_screenshot" style="max-width: 84%; margin: 16px 8%;">
<img src="screenshot.png">
</div>
</div>
</section>
<section class="oe_container" style="padding-top: 25px;">
<div class="oe_row oe_spaced" style="height: 550px;">
<div class="oe_picture">
<section class="oe_container">
<div class="oe_row oe_spaced">
<div style="max-width: 84%; margin: 16px 8%;">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32">Extendes the Preview Dialog to support images.
Currently the following image extensions are supported:</p>
@ -52,14 +52,46 @@
</div>
</section>
<section class="oe_container oe_dark"
style="margin-bottom: 20px; border-top: 5px solid #797979; border-bottom: 5px solid #797979;">
<h3 class="oe_slogan" style="margin-bottom: 10px;">Demo</h3>
<div class="row" style="margin: auto; max-width: 200px;">
<div class="col-xs-6">
<h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">User:</h5>
</div>
<div class="col-xs-6">
<h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">apps</h5>
</div>
<div class="col-xs-6">
<h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">Password:</h5>
</div>
<div class="col-xs-6">
<h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">demo</h5>
</div>
</div>
<div class="oe_slogan" style="margin-top: 5px;">
<a class="btn btn-primary btn-lg mt8"
href="https://demo.mukit.at/web/login"
style="position: relative; overflow: hidden;"><span
class="o_ripple"
style="height: 138px; width: 138px; top: -35.2969px; left: -8.17188px;"></span>
<i class="fa fa-video-camera"></i> Live Preview </a>
</div>
</section>
<section class="oe_container oe_dark">
<h3 class="oe_slogan">Help and Support</h3>
<h5 class="oe_slogan" style="font-size: 20px;">Feel free to
contact us, if you need any help with your Odoo integration or
addiontal features.</h5>
<div class="oe_slogan">
<a class="btn btn-primary btn-lg mt8" href="mailto:sale@mukit.at">
<i class="fa fa-envelope"></i> Email
</a>
<a class="btn btn-primary btn-lg mt8" href="https://mukit.at/page/contactus">
<i class="fa fa-phone"></i> Contact
</a> <a class="btn btn-primary btn-lg mt8"
href="https://mukit.at/page/contactus"> <i class="fa fa-phone"></i>
Contact
</a> <a class="btn btn-primary btn-lg mt8" href="mailto:support@mukit.at">
<i class="fa fa-life-ring"></i> Support
</a>
</div>
<img src="logo.png" style="width: 200px; margin-bottom: 20px;"

8
muk_web_preview_image/static/src/js/preview_handler.js

@ -30,10 +30,10 @@ var _t = core._t;
var ImageHandler = PreviewHandler.BaseHandler.extend({
cssLibs: [
'/muk_web_preview_image/static/lib/imageviewer/imageviewer.css',
'/muk_web_utils/static/lib/imageviewer/imageviewer.css',
],
jsLibs: [
'/muk_web_preview_image/static/lib/imageviewer/imageviewer.js',
'/muk_web_utils/static/lib/imageviewer/imageviewer.js',
],
checkExtension: function(extension) {
return ['.cod', '.ras', '.fif', '.gif', '.ief', '.jpeg', '.jpg', '.jpe', '.png', '.tiff',
@ -57,12 +57,12 @@ var ImageHandler = PreviewHandler.BaseHandler.extend({
});
result.resolve($content);
});
return result
return result;
},
});
return {
ImageHandler: ImageHandler,
}
};
});

2
muk_web_utils/__manifest__.py

@ -20,7 +20,7 @@
{
"name": "MuK Web Utils",
"summary": """Utility Features""",
"version": "11.0.2.0.1",
"version": "11.0.2.0.2",
"category": "Extra Tools",
"license": "AGPL-3",
"website": "http://www.mukit.at",

0
muk_web_preview_image/static/lib/imageviewer/imageviewer.css → muk_web_utils/static/lib/imageviewer/imageviewer.css

0
muk_web_preview_image/static/lib/imageviewer/imageviewer.js → muk_web_utils/static/lib/imageviewer/imageviewer.js

Loading…
Cancel
Save