Skip to content

Commit

Permalink
[web_widget_mermaid] Rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorHachard committed Jun 1, 2024
1 parent c6cecba commit a83b690
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mermaid Widget - Odoo Module
# Mermaid Widget Field - Odoo Module

Add the Mermaid.js library to Odoo and create a widget to display Mermaid diagrams in Odoo views.

## Mermaid Widget Screenshot
![Mermaid Widget Screenshot](https://raw.githubusercontent.com/VictorHachard/odoo-modules/17.0/web_widget_mermaid/static/description/banner.png)
![Mermaid Widget Screenshot](https://raw.githubusercontent.com/VictorHachard/odoo-modules/17.0/web_widget_mermaid_field/static/description/banner.png)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"depends": ["web"],
"assets": {
"web.assets_backend": [
"web_widget_mermaid/static/src/js/mermaid_10_9_1.js",
"web_widget_mermaid/static/src/js/web_widget_mermaid.js",
"web_widget_mermaid/static/src/xml/mermaid_field.xml",
"web_widget_mermaid_field/static/src/js/mermaid_10_9_1.js",
"web_widget_mermaid_field/static/src/js/web_widget_mermaid.js",
"web_widget_mermaid_field/static/src/xml/mermaid_field.xml",
],
},
"installable": True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<h2>Screenshots:</h2>
<div class="my-2">
<img src="/web_widget_mermaid/static/description/banner.png" alt="Mermaid Widget Screenshot" style="width: 25%;">
<img src="/web_widget_mermaid_field/static/description/banner.png" alt="Mermaid Widget Screenshot" style="width: 25%;">
</div>

<p>To update the library, you can download the latest minified version and replace the file in the module.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { registry } from "@web/core/registry";
import { uniqueId } from "@web/core/utils/functions";

export class MermaidField extends TextField {
static template = 'web_widget_mermaid.MermaidField';
static template = 'web_widget_mermaid_field.MermaidField';

static props = {
...TextField.props,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

<t t-name="web_widget_mermaid.MermaidField">
<t t-name="web_widget_mermaid_field.MermaidField">
<div t-attf-id="{{ chartId }}" class="o_form_field_mermaid">
<t t-out="mermaidSvg"/>
</div>
Expand Down

0 comments on commit a83b690

Please sign in to comment.