directus-extension-texttoanything 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/app.js +13 -14
  2. package/package.json +1 -1
  3. package/readme.md +7 -1
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineOperationApp, useStores, useApi, defineModule, defineInterface } from '@directus/extensions-sdk';
2
- import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createCommentVNode, defineComponent, computed, ref, watch, nextTick, onMounted, createTextVNode, unref, createElementBlock, createElementVNode, toDisplayString, normalizeStyle, resolveDynamicComponent, Fragment, pushScopeId, popScopeId, inject } from 'vue';
2
+ import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createCommentVNode, defineComponent, computed, ref, watch, nextTick, onMounted, createTextVNode, unref, createElementBlock, createElementVNode, toDisplayString, normalizeStyle, Fragment, resolveDynamicComponent, pushScopeId, popScopeId, inject } from 'vue';
3
3
 
4
4
  const types = [
5
5
  "auspost",
@@ -5508,13 +5508,12 @@ const _hoisted_8 = { class: "right-side" };
5508
5508
  const _hoisted_9 = { class: "setwidth" };
5509
5509
  const _hoisted_10 = { class: "TTA-action" };
5510
5510
  const _hoisted_11 = { class: "TTA-wapper" };
5511
- const _hoisted_12 = { key: 0 };
5512
- const _hoisted_13 = { class: "devFields" };
5513
- const _hoisted_14 = /* @__PURE__ */ createElementVNode("div", { class: "field half" }, [
5511
+ const _hoisted_12 = { class: "devFields" };
5512
+ const _hoisted_13 = /* @__PURE__ */ createElementVNode("div", { class: "field half" }, [
5514
5513
  /* @__PURE__ */ createElementVNode("div", { class: "type-label" }, "Type input")
5515
5514
  ], -1);
5516
- const _hoisted_15 = { id: "partSelect" };
5517
- const _hoisted_16 = ["src"];
5515
+ const _hoisted_14 = { id: "partSelect" };
5516
+ const _hoisted_15 = ["src"];
5518
5517
  var script$4 = /* @__PURE__ */ defineComponent({
5519
5518
  __name: "templates",
5520
5519
  setup(__props) {
@@ -5545,7 +5544,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
5545
5544
  currentHTML.value = currentTemplate.value.header;
5546
5545
  if (newPart == "Body")
5547
5546
  currentHTML.value = currentTemplate.value.template;
5548
- if (newPart == "footer")
5547
+ if (newPart == "Footer")
5549
5548
  currentHTML.value = currentTemplate.value.footer;
5550
5549
  },
5551
5550
  {
@@ -5966,9 +5965,9 @@ var script$4 = /* @__PURE__ */ defineComponent({
5966
5965
  style: normalizeStyle("width: " + unref(editorWidth) + "%"),
5967
5966
  class: "TTA-editor-wrapper"
5968
5967
  }, [
5969
- currentPart.value == "Development" ? (openBlock(), createElementBlock("div", _hoisted_12, [
5970
- createElementVNode("div", _hoisted_13, [
5971
- _hoisted_14,
5968
+ currentPart.value == "Development" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5969
+ createElementVNode("div", _hoisted_12, [
5970
+ _hoisted_13,
5972
5971
  createVNode(_component_v_select, {
5973
5972
  modelValue: currentTemplate.value.input_type,
5974
5973
  "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => currentTemplate.value.input_type = $event),
@@ -6000,7 +5999,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
6000
5999
  language: "json",
6001
6000
  onInput: changeJSON
6002
6001
  }, null, 40, ["value"])) : createCommentVNode("v-if", true)
6003
- ])) : createCommentVNode("v-if", true),
6002
+ ], 64)) : createCommentVNode("v-if", true),
6004
6003
  currentPart.value != "Development" ? (openBlock(), createBlock(resolveDynamicComponent("interface-input-code"), {
6005
6004
  key: 1,
6006
6005
  class: "TTA-editor",
@@ -6008,7 +6007,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
6008
6007
  language: "htmlmixed",
6009
6008
  onInput: changeHTML
6010
6009
  }, null, 40, ["value"])) : createCommentVNode("v-if", true),
6011
- createElementVNode("div", _hoisted_15, [
6010
+ createElementVNode("div", _hoisted_14, [
6012
6011
  createVNode(_component_v_select, {
6013
6012
  modelValue: currentPart.value,
6014
6013
  "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => currentPart.value = $event),
@@ -6025,7 +6024,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
6025
6024
  class: "TTA-preview",
6026
6025
  src: unref(computedTemplate),
6027
6026
  style: normalizeStyle("width: " + unref(previewWidth) + "%")
6028
- }, null, 12, _hoisted_16)
6027
+ }, null, 12, _hoisted_15)
6029
6028
  ])
6030
6029
  ])) : createCommentVNode("v-if", true),
6031
6030
  createVNode(_component_v_table, {
@@ -6059,7 +6058,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
6059
6058
 
6060
6059
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
6061
6060
 
6062
- var css$1 = "\n.TTA-popup {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n z-index: 100;\n display: flex;\n flex-direction: column;\n background-color: var(--background-subdued);\n}\n.TTA-toolbar {\n background-color: var(--background-subdued);\n display: flex;\n justify-content: space-between;\n}\n.TTA-toolbar .right-side {\n display: flex;\n gap: 5px;\n}\n.TTA-toolbar .TTA-slider {\n padding-top: 5px;\n}\n.TTA-toolbar .TTA-action {\n padding: 5px;\n cursor: pointer;\n}\n.TTA-toolbar .setwidth {\n display: flex;\n gap: 10px;\n padding-top: 6px;\n}\n.TTA-toolbar .TTA-template-title {\n margin: auto 0;\n font-size: 18px;\n cursor: pointer;\n padding-right: 5px;\n padding-left: 20px;\n border-bottom: 1px solid var(--v-list-item-border-color);\n}\n.TTA-toolbar .TTA-template-title i {\n padding-left: 5px;\n}\n.TTA-wapper {\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n position: relative;\n}\n.TTA-preview {\n flex-grow: 1;\n background-color: white;\n border: 0;\n}\n.TTA-editor {\n flex-grow: 1;\n height: 100%;\n width: 100%;\n}\n.TTA-wapper .TTA-editor-wrapper {\n position: relative;\n}\n.TTA-editor > div {\n height: 100% !important;\n border-radius: 0 !important;\n}\n.TTA-editor .CodeMirror {\n height: 100%;\n}\n.TTA-wapper #partSelect {\n position: absolute;\n right: 0;\n top: 0;\n width: 200px;\n}\n.devFields {\n border-top: var(--theme--border-width) solid\n var(--theme--form--field--input--border-color);\n margin-left: 25px;\n margin-bottom: 10px;\n}\n.max-w-input {\n max-width: 250px;\n padding: 10px 0;\n}\n.max-w-input .v-input {\n max-width: 250px;\n margin-bottom: 5px;\n}\n";
6061
+ var css$1 = "\n.TTA-popup {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n z-index: 100;\n display: flex;\n flex-direction: column;\n background-color: var(--background-subdued);\n}\n.TTA-toolbar {\n background-color: var(--background-subdued);\n display: flex;\n justify-content: space-between;\n}\n.TTA-toolbar .right-side {\n display: flex;\n gap: 5px;\n}\n.TTA-toolbar .TTA-slider {\n padding-top: 5px;\n}\n.TTA-toolbar .TTA-action {\n padding: 5px;\n cursor: pointer;\n}\n.TTA-toolbar .setwidth {\n display: flex;\n gap: 10px;\n padding-top: 6px;\n}\n.TTA-toolbar .TTA-template-title {\n margin: auto 0;\n font-size: 18px;\n cursor: pointer;\n padding-right: 5px;\n padding-left: 20px;\n border-bottom: 1px solid var(--v-list-item-border-color);\n}\n.TTA-toolbar .TTA-template-title i {\n padding-left: 5px;\n}\n.TTA-wapper {\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n position: relative;\n}\n.TTA-preview {\n flex-grow: 1;\n background-color: white;\n border: 0;\n}\n.TTA-editor {\n flex-grow: 1;\n height: 100%;\n width: 100%;\n max-height: calc(100vh - 130px);\n}\n.TTA-wapper .TTA-editor-wrapper {\n position: relative;\n}\n.TTA-editor > div {\n height: 100% !important;\n border-radius: 0 !important;\n}\n.TTA-editor .CodeMirror {\n height: 100%;\n}\n.TTA-wapper #partSelect {\n position: absolute;\n right: 0;\n top: 0;\n width: 200px;\n}\n.devFields {\n border-top: var(--theme--border-width) solid\n var(--theme--form--field--input--border-color);\n margin-left: 25px;\n margin-bottom: 10px;\n}\n.max-w-input {\n max-width: 250px;\n padding: 10px 0;\n}\n.max-w-input .v-input {\n max-width: 250px;\n margin-bottom: 5px;\n}\n";
6063
6062
  n(css$1,{});
6064
6063
 
6065
6064
  script$4.__file = "settingsmodule/src/templates.vue";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-extension-texttoanything",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "keywords": [
5
5
  "directus",
6
6
  "directus-extension",
package/readme.md CHANGED
@@ -14,11 +14,13 @@ The package currently supports the following operations:
14
14
  - Create a PDF based on a HTML Template
15
15
  - Create a QRCode
16
16
  - Create a Barcode
17
+ - Download a file based on a flow
17
18
 
18
19
  The actions work trough flow operations and will upload the PDF/QRCode/Barcode directly into Directus.
19
20
  The operation will return the Directus file id which you can use to link the file to a record.
20
21
 
21
- If there are any questions or bugs, please create an issue.
22
+ If there are any questions or bugs, please create an issue. <br>
23
+ You can also join our [Discord](https://discord.gg/dbEWUHGmnr) if you need direct support.
22
24
 
23
25
  ## Documentation
24
26
 
@@ -28,6 +30,10 @@ If there are any questions or bugs, please create an issue.
28
30
  - [PDF from template](https://github.com/Attacler/TextToAnything-Directus/wiki/Usage-%E2%80%90-PDF-templates)
29
31
  - [QRcode](https://github.com/Attacler/TextToAnything-Directus/wiki/Usage-%E2%80%90-QRCodes)
30
32
 
33
+ ## Guides
34
+
35
+ [How to generate invoice PDFs](https://attacler.medium.com/generating-invoice-pdfs-with-texttoanything-in-directus-e81c324010ac)
36
+
31
37
  ## FAQ
32
38
 
33
39
  1. How do i find or reset my Rapid API key?