Procházet zdrojové kódy

feat: update docs link

Ahmad Kholid před 2 roky
rodič
revize
dbc175534a

+ 2 - 2
src/components/newtab/logs/LogsHistory.vue

@@ -19,7 +19,7 @@
               {{ errorBlock.message }}
               <a
                 v-if="errorBlock.messageId"
-                :href="`https://docs.automa.site/guide/workflow-errors.html#${errorBlock.messageId}`"
+                :href="`https://docs.automa.site/reference/workflow-common-errors.html#${errorBlock.messageId}`"
                 target="_blank"
                 title="About the error"
                 @click.stop
@@ -135,7 +135,7 @@
                 {{ item.message }}
                 <a
                   v-if="item.messageId"
-                  :href="`https://docs.automa.site/guide/workflow-errors.html#${item.messageId}`"
+                  :href="`https://docs.automa.site/reference/workflow-common-errors.html#${item.messageId}`"
                   target="_blank"
                   title="About the error"
                   @click.stop

+ 1 - 1
src/components/newtab/workflow/edit/EditWebhook.vue

@@ -138,7 +138,7 @@
       />
       <div class="mt-3">
         <a
-          href="https://docs.automa.site/api-reference/reference-data.html"
+          href="https://docs.automa.site/workflow/expressions.html"
           rel="noopener"
           class="border-b text-primary"
           target="_blank"

+ 28 - 0
src/components/newtab/workflow/edit/Parameter/ParameterJsonValue.vue

@@ -0,0 +1,28 @@
+<template>
+  <label>
+    <span v-if="!editor" class="text-gray-600 dark:text-gray-200 text-sm ml-1">
+      {{ paramData.name }}
+    </span>
+    <ui-textarea
+      :model-value="modelValue"
+      type="text"
+      class="w-full"
+      :placeholder="paramData.placeholder"
+      @change="$emit('update:modelValue', $event)"
+    />
+  </label>
+</template>
+<script setup>
+defineProps({
+  modelValue: {
+    type: String,
+    default: '',
+  },
+  paramData: {
+    type: Object,
+    default: () => ({}),
+  },
+  editor: Boolean,
+});
+defineEmits(['update:modelValue']);
+</script>

+ 1 - 1
src/components/newtab/workflow/editor/EditorLocalActions.vue

@@ -30,7 +30,7 @@
           </p>
           <a
             :title="t('common.docs')"
-            href="https://docs.automa.site/guide/host-workflow.html"
+            href="https://docs.automa.site/workflow/sharing-workflow.html#host-workflow"
             target="_blank"
             class="ml-1"
           >

+ 1 - 1
src/newtab/pages/Storage.vue

@@ -5,7 +5,7 @@
         {{ t('common.storage') }}
       </h1>
       <a
-        href="https://docs.automa.site/guide/storage.html"
+        href="https://docs.automa.site/reference/storage.html"
         title="Docs"
         class="text-gray-600 dark:text-gray-200 ml-2"
         target="_blank"

+ 2 - 2
src/newtab/pages/workflows/[id].vue

@@ -423,7 +423,7 @@ const workflowModals = {
     width: 'max-w-2xl',
     component: WorkflowDataTable,
     title: t('workflow.table.title'),
-    docs: 'https://docs.automa.site/api-reference/table.html',
+    docs: 'https://docs.automa.site/workflow/table.html',
     events: {
       /* eslint-disable-next-line */
       connect: fetchConnectedTable,
@@ -475,7 +475,7 @@ const workflowModals = {
     icon: 'riDatabase2Line',
     component: WorkflowGlobalData,
     title: t('common.globalData'),
-    docs: 'https://docs.automa.site/api-reference/global-data.html',
+    docs: 'https://docs.automa.site/workflow/global-data.html',
   },
   settings: {
     width: 'max-w-2xl',

+ 1 - 1
src/utils/codeEditorAutocomplete.js

@@ -137,7 +137,7 @@ export const automaFuncsSnippets = {
         <code>automaRefData(<i>keyword</i>, <i>path</i>)</code>
         <p class="mt-2">
           Use this function to
-          <a href="https://docs.automa.site/api-reference/reference-data.html" target="_blank" class="underline">
+          <a href="https://docs.automa.site/workflow/expressions.html" target="_blank" class="underline">
             reference data
           </a>
         </p>