diff --git a/muk_web_preview_text/README.md b/muk_web_preview_text/README.md deleted file mode 100644 index 158bd4d..0000000 --- a/muk_web_preview_text/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# MuK Preview Text - -Extendes the Preview Dialog to support text files. It supports most of the common text file extensions. \ No newline at end of file diff --git a/muk_web_preview_text/__init__.py b/muk_web_preview_text/__init__.py index 48ccf85..21f21ae 100644 --- a/muk_web_preview_text/__init__.py +++ b/muk_web_preview_text/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - ################################################################################### # # Copyright (C) 2017 MuK IT GmbH diff --git a/muk_web_preview_text/__manifest__.py b/muk_web_preview_text/__manifest__.py index 78e48da..55f63e8 100644 --- a/muk_web_preview_text/__manifest__.py +++ b/muk_web_preview_text/__manifest__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - ################################################################################### # # Copyright (C) 2017 MuK IT GmbH @@ -22,11 +20,7 @@ { "name": "MuK Preview Text", "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", "license": "AGPL-3", "website": "http://www.mukit.at", @@ -40,8 +34,6 @@ "data": [ "template/assets.xml", ], - "demo": [ - ], "qweb": [ "static/src/xml/*.xml", ], diff --git a/muk_web_preview_text/doc/changelog.rst b/muk_web_preview_text/doc/changelog.rst index 0a9ed4b..f10b321 100644 --- a/muk_web_preview_text/doc/changelog.rst +++ b/muk_web_preview_text/doc/changelog.rst @@ -1,9 +1,13 @@ +`2.0.0` +------- + +- Migrated to Python 3 + `1.1.0` ------- - Lazy load javascript - `1.0.0` ------- diff --git a/muk_web_preview_text/doc/index.rst b/muk_web_preview_text/doc/index.rst new file mode 100644 index 0000000..37abb2c --- /dev/null +++ b/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 + +Author & Maintainer +------------------- + +This module is maintained by the `MuK IT GmbH `_. + +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). diff --git a/muk_web_preview_text/static/src/js/preview_handler.js b/muk_web_preview_text/static/src/js/preview_handler.js index 2a71c53..faefc07 100644 --- a/muk_web_preview_text/static/src/js/preview_handler.js +++ b/muk_web_preview_text/static/src/js/preview_handler.js @@ -30,11 +30,11 @@ var _t = core._t; var TextHandler = PreviewHandler.BaseHandler.extend({ cssLibs: [ - '/muk_web_preview_text/static/lib/highlight/styles/default.css', + '/muk_web_utils/static/lib/highlight/styles/default.css', ], 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) { return ['.abc', '.acgi', '.aip', '.asm', '.asp', '.c', '.c', '.c++', '.cc', '.cc', '.com', '.conf', @@ -117,6 +117,6 @@ var TextHandler = PreviewHandler.BaseHandler.extend({ return { TextHandler: TextHandler, -} +}; }); \ No newline at end of file diff --git a/muk_web_utils/__manifest__.py b/muk_web_utils/__manifest__.py index 7e1c1e3..d952ed8 100644 --- a/muk_web_utils/__manifest__.py +++ b/muk_web_utils/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Web Utils", "summary": """Utility Features""", - "version": "11.0.2.0.5", + "version": "11.0.2.0.6", "category": "Extra Tools", "license": "AGPL-3", "website": "http://www.mukit.at", diff --git a/muk_web_preview_text/static/lib/highlight/LICENSE b/muk_web_utils/static/lib/highlight/LICENSE similarity index 100% rename from muk_web_preview_text/static/lib/highlight/LICENSE rename to muk_web_utils/static/lib/highlight/LICENSE diff --git a/muk_web_preview_text/static/lib/highlight/highlight.pack.js b/muk_web_utils/static/lib/highlight/highlight.pack.js similarity index 100% rename from muk_web_preview_text/static/lib/highlight/highlight.pack.js rename to muk_web_utils/static/lib/highlight/highlight.pack.js diff --git a/muk_web_preview_text/static/lib/highlight/styles/default.css b/muk_web_utils/static/lib/highlight/styles/default.css similarity index 100% rename from muk_web_preview_text/static/lib/highlight/styles/default.css rename to muk_web_utils/static/lib/highlight/styles/default.css diff --git a/muk_web_preview_text/static/lib/highlight_line_numbers/LICENSE b/muk_web_utils/static/lib/highlight_line_numbers/LICENSE similarity index 100% rename from muk_web_preview_text/static/lib/highlight_line_numbers/LICENSE rename to muk_web_utils/static/lib/highlight_line_numbers/LICENSE diff --git a/muk_web_preview_text/static/lib/highlight_line_numbers/highlight_line_numbers.js b/muk_web_utils/static/lib/highlight_line_numbers/highlight_line_numbers.js similarity index 100% rename from muk_web_preview_text/static/lib/highlight_line_numbers/highlight_line_numbers.js rename to muk_web_utils/static/lib/highlight_line_numbers/highlight_line_numbers.js