Skip to content

Commit

Permalink
chore: changes according to code review
Browse files Browse the repository at this point in the history
  • Loading branch information
raaymax committed Feb 16, 2024
1 parent 833682c commit 53861ff
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 21 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/ci-ui.yml

This file was deleted.

3 changes: 2 additions & 1 deletion alfred/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
def ci():
alfred.invoke_command("ci.mypy")
alfred.invoke_command("ci.pytest")
alfred.invoke_command("npm.lint")
alfred.invoke_command("npm.build")


Expand All @@ -18,4 +19,4 @@ def ci_mypy():
@alfred.command("ci.pytest", help="run pytest on ./tests")
def ci_test():
os.chdir("tests")
alfred.run("pytest")
alfred.run("pytest")
7 changes: 6 additions & 1 deletion alfred/npm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import alfred
import os

@alfred.command("npm.lint", help="lint check ui code")
def npm_lint():
os.chdir("ui")
alfred.run("npm run lint:ci")

@alfred.command("npm.build", help="build ui code")
def npm_build():
os.chdir("ui")
Expand All @@ -9,4 +14,4 @@ def npm_build():
@alfred.command("npm.build_custom_components", help="build custom components")
def ui_build_custom():
os.chdir("ui")
alfred.run("npm run custom.build")
alfred.run("npm run custom.build")
2 changes: 1 addition & 1 deletion ui/src/builder/BuilderTreeBranch.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<div class="BuilderTreeBranch">
<div
ref="rootEl"
class="main"
:class="{
selected: isSelected,
Expand All @@ -12,7 +13,6 @@
tabindex="0"
draggable="true"
@click="selfSelectComponent"
ref="rootEl"
@keydown.enter="selfSelectComponent"
@dragover="handleDragOver"
@dragstart="handleDragStart"
Expand Down
2 changes: 1 addition & 1 deletion ui/src/core_components/base/BaseSelect.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div
:id="baseId"
ref="rootEl"
class="BaseSelect"
tabindex="0"
:data-mode="mode"
:id="baseId"
:data-list-position="listPosition"
role="listbox"
:aria-activedescendant="
Expand Down

0 comments on commit 53861ff

Please sign in to comment.