ソースを参照

feat: suport var select options sortable (#376)

Joel 1 年間 前
コミット
772d67fd65

File diff suppressed because it is too large
+ 52 - 30
web/app/components/app/configuration/config-var/config-select/index.tsx


+ 3 - 0
web/app/components/app/configuration/config-var/config-select/style.module.css

@@ -1,6 +1,9 @@
 .inputWrap {
+  display: flex;
+  align-items: center;
   border-radius: 8px;
   border: 1px solid #EAECF0;
+  padding-left: 10px;
   cursor: pointer;
 }
 

+ 3 - 0
web/package.json

@@ -62,6 +62,7 @@
     "react-infinite-scroll-component": "^6.1.0",
     "react-markdown": "^8.0.6",
     "react-slider": "^2.0.4",
+    "react-sortablejs": "^6.1.4",
     "react-syntax-highlighter": "^15.5.0",
     "react-tooltip": "5.8.3",
     "react-window": "^1.8.9",
@@ -73,6 +74,7 @@
     "sass": "^1.61.0",
     "scheduler": "^0.23.0",
     "server-only": "^0.0.1",
+    "sortablejs": "^1.15.0",
     "swr": "^2.1.0",
     "tailwindcss": "^3.2.7",
     "typescript": "4.9.5",
@@ -84,6 +86,7 @@
     "@types/js-cookie": "^3.0.3",
     "@types/negotiator": "^0.6.1",
     "@types/qs": "^6.9.7",
+    "@types/sortablejs": "^1.15.1",
     "eslint-plugin-react-hooks": "^4.6.0",
     "lint-staged": "^13.2.2",
     "miragejs": "^0.1.47",