Mathias Markl 7 years ago
parent
commit
a604e3c9b4
  1. 3
      muk_web_preview_markdown/README.md
  2. 2
      muk_web_preview_markdown/__init__.py
  3. 12
      muk_web_preview_markdown/__manifest__.py
  4. 6
      muk_web_preview_markdown/doc/changelog.rst
  5. 49
      muk_web_preview_markdown/doc/index.rst
  6. 38
      muk_web_preview_markdown/static/description/index.html
  7. 4
      muk_web_preview_markdown/static/src/js/preview_handler.js
  8. 2
      muk_web_utils/__manifest__.py
  9. 0
      muk_web_utils/static/lib/showdown/license.txt
  10. 0
      muk_web_utils/static/lib/showdown/showdown.js

3
muk_web_preview_markdown/README.md

@ -1,3 +0,0 @@
# MuK Preview Markdown
Extendes the Preview Dialog to support Markdown files.

2
muk_web_preview_markdown/__init__.py

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

12
muk_web_preview_markdown/__manifest__.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Copyright (C) 2017 MuK IT GmbH
@ -22,15 +20,11 @@
{
"name": "MuK Preview Markdown",
"summary": """Markdown Preview""",
"description": """
Extendes the Preview Dialog to support Markdown files.
Currently the following Markdown file extensions are supported:
- Markdown (*.md, text/markdown)
""",
"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>",
@ -41,8 +35,6 @@
"data": [
"template/assets.xml",
],
"demo": [
],
"qweb": [
"static/src/xml/*.xml",
],

6
muk_web_preview_markdown/doc/changelog.rst

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

49
muk_web_preview_markdown/doc/index.rst

@ -0,0 +1,49 @@
====================
MuK Preview Markdown
====================
Extendes the Preview Dialog to support markdown files. Currently the following
extensions are supported:
* Markdown (\*.md, text/markdown)
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 markdown 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).

38
muk_web_preview_markdown/static/description/index.html

@ -4,15 +4,15 @@
<h3 class="oe_slogan">Preview your Markdown files 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;">
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_picture">
<div style="max-width: 84%; margin: 16px 8%;">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32">Extendes the Preview Dialog to support
Markdown files. Currently the following Markdown file extensions are
@ -25,14 +25,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="mailto:support@mukit.at">
<i class="fa fa-life-ring"></i> Support
</a>
</div>
<img src="logo.png" style="width: 200px; margin-bottom: 20px;"

4
muk_web_preview_markdown/static/src/js/preview_handler.js

@ -32,7 +32,7 @@ var MarkdownHandler = PreviewHandler.BaseHandler.extend({
cssLibs: [
],
jsLibs: [
'/muk_web_preview_markdown/static/lib/showdown/showdown.js',
'/muk_web_utils/static/lib/showdown/showdown.js',
],
checkExtension: function(extension) {
return ['.md', 'md'].includes(extension);
@ -64,6 +64,6 @@ var MarkdownHandler = PreviewHandler.BaseHandler.extend({
return {
MarkdownHandler: MarkdownHandler,
}
};
});

2
muk_web_utils/__manifest__.py

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

0
muk_web_preview_markdown/static/lib/showdown/license.txt → muk_web_utils/static/lib/showdown/license.txt

0
muk_web_preview_markdown/static/lib/showdown/showdown.js → muk_web_utils/static/lib/showdown/showdown.js

Loading…
Cancel
Save