Mathias Markl 7 years ago
parent
commit
393b9cf653
  1. 3
      muk_web_preview_text/README.md
  2. 2
      muk_web_preview_text/__init__.py
  3. 10
      muk_web_preview_text/__manifest__.py
  4. 6
      muk_web_preview_text/doc/changelog.rst
  5. 59
      muk_web_preview_text/doc/index.rst
  6. 8
      muk_web_preview_text/static/src/js/preview_handler.js
  7. 2
      muk_web_utils/__manifest__.py
  8. 0
      muk_web_utils/static/lib/highlight/LICENSE
  9. 0
      muk_web_utils/static/lib/highlight/highlight.pack.js
  10. 0
      muk_web_utils/static/lib/highlight/styles/default.css
  11. 0
      muk_web_utils/static/lib/highlight_line_numbers/LICENSE
  12. 0
      muk_web_utils/static/lib/highlight_line_numbers/highlight_line_numbers.js

3
muk_web_preview_text/README.md

@ -1,3 +0,0 @@
# MuK Preview Text
Extendes the Preview Dialog to support text files. It supports most of the common text file extensions.

2
muk_web_preview_text/__init__.py

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

10
muk_web_preview_text/__manifest__.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
################################################################################### ###################################################################################
# #
# Copyright (C) 2017 MuK IT GmbH # Copyright (C) 2017 MuK IT GmbH
@ -22,11 +20,7 @@
{ {
"name": "MuK Preview Text", "name": "MuK Preview Text",
"summary": """Text Preview""", "summary": """Text Preview""",
"description": """
Extendes the Preview Dialog to support text files.
It supports most of the common text file extensions.
""",
"version": "11.0.1.1.0",
"version": "11.0.2.0.0",
"category": "Extra Tools", "category": "Extra Tools",
"license": "AGPL-3", "license": "AGPL-3",
"website": "http://www.mukit.at", "website": "http://www.mukit.at",
@ -40,8 +34,6 @@
"data": [ "data": [
"template/assets.xml", "template/assets.xml",
], ],
"demo": [
],
"qweb": [ "qweb": [
"static/src/xml/*.xml", "static/src/xml/*.xml",
], ],

6
muk_web_preview_text/doc/changelog.rst

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

59
muk_web_preview_text/doc/index.rst

@ -0,0 +1,59 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3
.. image:: https://gitlab.mukit.at/web/muk_web_preview_text/badges/11.0/pipeline.svg
:target: https://gitlab.mukit.at/web/muk_web_preview_text/commits/11.0
:alt: Pipeline status
.. image:: https://gitlab.mukit.at/web/muk_web_preview_text/badges/11.0/coverage.svg
:target: https://gitlab.mukit.at/web/muk_web_preview_text/commits/11.0
:alt: Coverage report
================
MuK Preview Text
================
Extendes the Preview Dialog to support text files. It supports most of the
common text file extensions.
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 a text file and open the preview dialog to view
the preview.
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).

8
muk_web_preview_text/static/src/js/preview_handler.js

@ -30,11 +30,11 @@ var _t = core._t;
var TextHandler = PreviewHandler.BaseHandler.extend({ var TextHandler = PreviewHandler.BaseHandler.extend({
cssLibs: [ cssLibs: [
'/muk_web_preview_text/static/lib/highlight/styles/default.css',
'/muk_web_utils/static/lib/highlight/styles/default.css',
], ],
jsLibs: [ jsLibs: [
'/muk_web_preview_text/static/lib/highlight/highlight.pack.js',
'/muk_web_preview_text/static/lib/highlight_line_numbers/highlight_line_numbers.js',
'/muk_web_utils/static/lib/highlight/highlight.pack.js',
'/muk_web_utils/static/lib/highlight_line_numbers/highlight_line_numbers.js',
], ],
checkExtension: function(extension) { checkExtension: function(extension) {
return ['.abc', '.acgi', '.aip', '.asm', '.asp', '.c', '.c', '.c++', '.cc', '.cc', '.com', '.conf', return ['.abc', '.acgi', '.aip', '.asm', '.asp', '.c', '.c', '.c++', '.cc', '.cc', '.com', '.conf',
@ -117,6 +117,6 @@ var TextHandler = PreviewHandler.BaseHandler.extend({
return { return {
TextHandler: TextHandler, TextHandler: TextHandler,
}
};
}); });

2
muk_web_utils/__manifest__.py

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

0
muk_web_preview_text/static/lib/highlight/LICENSE → muk_web_utils/static/lib/highlight/LICENSE

0
muk_web_preview_text/static/lib/highlight/highlight.pack.js → muk_web_utils/static/lib/highlight/highlight.pack.js

0
muk_web_preview_text/static/lib/highlight/styles/default.css → muk_web_utils/static/lib/highlight/styles/default.css

0
muk_web_preview_text/static/lib/highlight_line_numbers/LICENSE → muk_web_utils/static/lib/highlight_line_numbers/LICENSE

0
muk_web_preview_text/static/lib/highlight_line_numbers/highlight_line_numbers.js → muk_web_utils/static/lib/highlight_line_numbers/highlight_line_numbers.js

Loading…
Cancel
Save