You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by li...@apache.org on 2022/05/09 03:37:20 UTC

[dolphinscheduler] branch flink_test_sql created (now 91a83c089d)

This is an automated email from the ASF dual-hosted git repository.

liudongkai pushed a change to branch flink_test_sql
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


      at 91a83c089d prettier front-end code

This branch includes the following new commits:

     new 91a83c089d prettier front-end code

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[dolphinscheduler] 01/01: prettier front-end code

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

liudongkai pushed a commit to branch flink_test_sql
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git

commit 91a83c089d6fed9d6e91f000cb894a6795555b22
Author: devosend <de...@gmail.com>
AuthorDate: Mon May 9 11:37:00 2022 +0800

    prettier front-end code
---
 .../projects/task/components/node/fields/use-flink.ts  | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts
index c60d8230a4..ac8f4f0850 100644
--- a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts
+++ b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-import { computed, ref, watchEffect} from 'vue'
+import { computed, ref, watchEffect } from 'vue'
 import { useI18n } from 'vue-i18n'
 import { useCustomParams, useDeployMode, useMainJar, useResources } from '.'
 import type { IJsonItem } from '../types'
@@ -22,15 +22,17 @@ import type { IJsonItem } from '../types'
 export function useFlink(model: { [field: string]: any }): IJsonItem[] {
   const { t } = useI18n()
   const mainClassSpan = computed(() =>
-    (model.programType === 'PYTHON' || model.programType === 'SQL') ? 0 : 24
+    model.programType === 'PYTHON' || model.programType === 'SQL' ? 0 : 24
   )
 
-  const mainArgsSpan = computed(() => model.programType === 'SQL' ? 0 : 24)
+  const mainArgsSpan = computed(() => (model.programType === 'SQL' ? 0 : 24))
 
-  const scriptSpan = computed(() => model.programType === 'SQL' ? 24 : 0)
+  const scriptSpan = computed(() => (model.programType === 'SQL' ? 24 : 0))
 
   const flinkVersionOptions = computed(() =>
-    model.programType === 'SQL' ? [{label: '>=1.13', value: '>=1.13'}] : FLINK_VERSIONS
+    model.programType === 'SQL'
+      ? [{ label: '>=1.13', value: '>=1.13' }]
+      : FLINK_VERSIONS
   )
 
   const taskManagerNumberSpan = computed(() =>
@@ -73,7 +75,11 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
         trigger: ['input', 'blur'],
         required: model.programType !== 'PYTHON' && model.programType !== 'SQL',
         validator(validate: any, value: string) {
-          if (model.programType !== 'PYTHON' && !value && model.programType !== 'SQL') {
+          if (
+            model.programType !== 'PYTHON' &&
+            !value &&
+            model.programType !== 'SQL'
+          ) {
             return new Error(t('project.node.main_class_tips'))
           }
         }