diff --git a/apps/builder/package.json b/apps/builder/package.json index 1bd7cacf68..837783e8a7 100644 --- a/apps/builder/package.json +++ b/apps/builder/package.json @@ -5,7 +5,7 @@ "private": true, "author": "ILLA Cloud ", "license": "Apache-2.0", - "version": "3.2.3", + "version": "3.2.4", "scripts": { "dev": "vite --strictPort --force", "build-cloud": "NODE_OPTIONS=--max-old-space-size=12288 vite build --mode cloud", diff --git a/apps/builder/src/page/App/Module/DataWorkspace/components/ComponentSpaceTree/index.tsx b/apps/builder/src/page/App/Module/DataWorkspace/components/ComponentSpaceTree/index.tsx index ee8186704e..428bd2fcd1 100644 --- a/apps/builder/src/page/App/Module/DataWorkspace/components/ComponentSpaceTree/index.tsx +++ b/apps/builder/src/page/App/Module/DataWorkspace/components/ComponentSpaceTree/index.tsx @@ -14,7 +14,10 @@ import { getCurrentPageRightWidgetTree, } from "@/redux/currentApp/executionTree/executionSelector" import { executionActions } from "@/redux/currentApp/executionTree/executionSlice" -import { autoChangeContainersIndexWhenClick } from "@/utils/componentNode/search" +import { + autoChangeContainersIndexWhenClick, + autoChangeWhenClickOnCanvas, +} from "@/utils/componentNode/search" import { FocusManager } from "@/utils/focusManager" import { BaseDataItem } from "../BaseDataItem" @@ -32,7 +35,10 @@ export const ComponentSpaceTree: FC = () => { const handleClick = useCallback( (displayName: string, type: string) => { - if (!type.endsWith("_WIDGET")) return + console.log("type", type) + if (type === "CANVAS") { + displayName = autoChangeWhenClickOnCanvas(displayName) + } if (type === "MODAL_WIDGET") { dispatch( executionActions.updateModalDisplayReducer({ @@ -47,7 +53,7 @@ export const ComponentSpaceTree: FC = () => { const dom = document.querySelector( `[data-displayname="${displayName}"]`, ) - dom?.scrollIntoView({ behavior: "smooth" }) + dom?.scrollIntoView({ behavior: "smooth", block: "center" }) }, 160) }, [dispatch], diff --git a/apps/builder/src/page/App/components/Actions/ActionGenerator/ActionTypeSelector/index.tsx b/apps/builder/src/page/App/components/Actions/ActionGenerator/ActionTypeSelector/index.tsx deleted file mode 100644 index 5f2dbe0a08..0000000000 --- a/apps/builder/src/page/App/components/Actions/ActionGenerator/ActionTypeSelector/index.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { - ILLA_MIXPANEL_BUILDER_PAGE_NAME, - ILLA_MIXPANEL_EVENT_TYPE, -} from "@illa-public/mixpanel-utils" -import { ResourceTypeList } from "@illa-public/resource-generator" -import { FC } from "react" -import { Spin } from "@illa-design/react" -import { WhiteList } from "@/components/WhiteList" -import { track } from "@/utils/mixpanelHelper" -import { ActionCard } from "../ActionCard" -import { ActionTypeSelectorProps } from "./interface" -import { categoryStyle, containerStyle, resourceListStyle } from "./style" - -export const ActionTypeSelector: FC = (props) => { - const { onSelect } = props - - return ( - - {ResourceTypeList.map(({ title, item, category }) => ( -
- {title} -
- {item.map((actionType) => ( - - ))} -
-
- ))} - { - track( - ILLA_MIXPANEL_EVENT_TYPE.CLICK, - ILLA_MIXPANEL_BUILDER_PAGE_NAME.EDITOR, - { element: "resource_type_modal_copy" }, - ) - }} - /> -
- ) -} - -ActionTypeSelector.displayName = "ActionTypeSelector" diff --git a/apps/builder/src/page/App/components/Actions/ActionGenerator/ActionTypeSelector/interface.ts b/apps/builder/src/page/App/components/Actions/ActionGenerator/ActionTypeSelector/interface.ts deleted file mode 100644 index eed9922a93..0000000000 --- a/apps/builder/src/page/App/components/Actions/ActionGenerator/ActionTypeSelector/interface.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ActionType } from "@/redux/currentApp/action/actionState" - -export interface ActionTypeSelectorProps { - onSelect: (item: ActionType) => void -} diff --git a/apps/builder/src/page/App/components/Actions/ActionGenerator/ActionTypeSelector/style.ts b/apps/builder/src/page/App/components/Actions/ActionGenerator/ActionTypeSelector/style.ts deleted file mode 100644 index 69ed34e3a0..0000000000 --- a/apps/builder/src/page/App/components/Actions/ActionGenerator/ActionTypeSelector/style.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { css } from "@emotion/react" -import { getColor } from "@illa-design/react" - -export const containerStyle = css` - width: 100%; - display: flex; - flex-direction: column; - overflow: auto; - padding: 0 24px 16px 24px; -` - -export const categoryStyle = css` - display: inline-block; - height: 30px; - line-height: 30px; - padding-top: 8px; - font-size: 14px; - font-weight: 500; - color: ${getColor("grayBlue", "04")}; -` - -export const resourceListStyle = css` - padding: 8px 0; - display: grid; - grid-gap: 16px; - grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); -` diff --git a/apps/builder/src/page/App/components/Actions/ActionGenerator/index.tsx b/apps/builder/src/page/App/components/Actions/ActionGenerator/index.tsx index 6d0fa54143..e1e3359445 100644 --- a/apps/builder/src/page/App/components/Actions/ActionGenerator/index.tsx +++ b/apps/builder/src/page/App/components/Actions/ActionGenerator/index.tsx @@ -3,7 +3,10 @@ import { ILLA_MIXPANEL_EVENT_TYPE, MixpanelTrackContext, } from "@illa-public/mixpanel-utils" -import { getResourceNameFromResourceType } from "@illa-public/resource-generator" +import { + ResourceTypeSelector, + getResourceNameFromResourceType, +} from "@illa-public/resource-generator" import { FC, useCallback, useContext, useEffect, useState } from "react" import { useTranslation } from "react-i18next" import { useDispatch, useSelector } from "react-redux" @@ -30,7 +33,6 @@ import { getResourceTypeFromActionType } from "@/utils/actionResourceTransformer import { DisplayNameGenerator } from "@/utils/generators/generateDisplayName" import { INIT_ACTION_ADVANCED_CONFIG } from "../AdvancedPanel/constant" import { ResourceCreator } from "../ResourceGenerator/ResourceCreator" -import { ActionTypeSelector } from "./ActionTypeSelector" import { ActionCreatorPage, ActionGeneratorProps } from "./interface" import { modalContentStyle } from "./style" @@ -319,7 +321,7 @@ export const ActionGenerator: FC = function (props) { >
{currentStep === "select" && ( - + )} {currentStep === "createAction" && currentActionType && diff --git a/apps/builder/src/page/App/components/Actions/ResourceGenerator/ConfigElements/index.tsx b/apps/builder/src/page/App/components/Actions/ResourceGenerator/ConfigElements/index.tsx index c1d9435288..d22b5b2257 100644 --- a/apps/builder/src/page/App/components/Actions/ResourceGenerator/ConfigElements/index.tsx +++ b/apps/builder/src/page/App/components/Actions/ResourceGenerator/ConfigElements/index.tsx @@ -1,4 +1,6 @@ +import { isCloudVersion } from "@illa-public/utils" import { FC, lazy } from "react" +import { useNavigate } from "react-router-dom" import { ConfigElementProps } from "./interface" const AirtableConfigElement = lazy( @@ -131,6 +133,8 @@ const SnowflakeConfigElement = lazy( export const ConfigElement: FC = (props) => { const { resourceType } = props + const navigate = useNavigate() + switch (resourceType) { case "supabasedb": case "tidb": @@ -144,8 +148,15 @@ export const ConfigElement: FC = (props) => { case "mssql": return case "oracle": - case "oracle9i": return + case "oracle9i": { + if (isCloudVersion) { + return + } else { + navigate("/404") + return null + } + } case "restapi": return case "mongodb": diff --git a/apps/builder/src/utils/componentNode/search.ts b/apps/builder/src/utils/componentNode/search.ts index a6cd2f8358..5b8014126f 100644 --- a/apps/builder/src/utils/componentNode/search.ts +++ b/apps/builder/src/utils/componentNode/search.ts @@ -128,3 +128,23 @@ export const autoChangeContainersIndexWhenClick = ( return canvasForeFatherDisplayNames } + +export const autoChangeWhenClickOnCanvas = (canvasDisplayName: string) => { + const rootState = store.getState() + const widgetsLayoutInfo = getExecutionWidgetLayoutInfo(rootState) + const parentContainerDisplayName = + widgetsLayoutInfo[canvasDisplayName]?.parentNode + const indexOfCanvas = + widgetsLayoutInfo[parentContainerDisplayName]?.childrenNode.indexOf( + canvasDisplayName, + ) + store.dispatch( + executionActions.updateExecutionByMultiDisplayNameReducer([ + { + displayName: parentContainerDisplayName, + value: { currentIndex: indexOfCanvas }, + }, + ]), + ) + return parentContainerDisplayName +} diff --git a/hacktoberfest2023/awesome-ai-agents/AnagramGenerator.md b/hacktoberfest2023/awesome-ai-agents/AnagramGenerator.md new file mode 100644 index 0000000000..f6a704c471 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/AnagramGenerator.md @@ -0,0 +1,3 @@ +# Anagram Generator +Unlock the magic of words with our Anagram Generator Agent – creating endless anagrams for your delight. Play with language today! +Fast try: https://illa.ai/ai-agent/ILAfx4p1C7rF/detail diff --git a/hacktoberfest2023/awesome-ai-agents/AntonymFinder.md b/hacktoberfest2023/awesome-ai-agents/AntonymFinder.md new file mode 100644 index 0000000000..915cfe2930 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/AntonymFinder.md @@ -0,0 +1,5 @@ +# Antonym Finder + +This AI Agent gives the antonym of the user input word. + +Fast try: https://illa.ai/ai-agent/ILAfx4p1C7uy/detail diff --git a/hacktoberfest2023/awesome-ai-agents/LanguageLearningRoadmap.md b/hacktoberfest2023/awesome-ai-agents/LanguageLearningRoadmap.md new file mode 100644 index 0000000000..a84b46d937 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/LanguageLearningRoadmap.md @@ -0,0 +1,3 @@ +# Language Learning Roadmap +Create a customized plan to enhance your language learning journey by setting specific goals and identifying resources. +Fast try: https://illa.ai/ai-agent/ILAfx4p1C7vt/detail diff --git a/hacktoberfest2023/awesome-ai-agents/MinecraftAssistant.md b/hacktoberfest2023/awesome-ai-agents/MinecraftAssistant.md new file mode 100644 index 0000000000..5b7dfccd61 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/MinecraftAssistant.md @@ -0,0 +1,3 @@ +# Minecraft Helper +The Minecraft Helper AI is an advanced artificial intelligence designed to enhance the gaming experience of Minecraft players. +Fast try: https://illa.ai/ai-agent/ILAfx4p1C7rB/detail diff --git a/hacktoberfest2023/awesome-ai-agents/Osiris.md b/hacktoberfest2023/awesome-ai-agents/Osiris.md new file mode 100644 index 0000000000..170806e499 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/Osiris.md @@ -0,0 +1,3 @@ +## GitHub Education Pack Bot +It answers all questions about the github education pack. +Fast try : https://illa.ai/ai-agent/ILAfx4p1C7ts/detail diff --git a/hacktoberfest2023/awesome-ai-agents/Password_Strength_Checker.md b/hacktoberfest2023/awesome-ai-agents/Password_Strength_Checker.md new file mode 100644 index 0000000000..c13a101703 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/Password_Strength_Checker.md @@ -0,0 +1,3 @@ +# Password Strength Checker +A Password Strength Checker is a tool that assesses the strength of a password by evaluating various factors like length, character variety, uniqueness, etc. +Try Now: https://illa.ai/ai-agent/ILAfx4p1C7se/detail diff --git a/hacktoberfest2023/awesome-ai-agents/StorySpark.md b/hacktoberfest2023/awesome-ai-agents/StorySpark.md new file mode 100644 index 0000000000..e15fa2a6e5 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/StorySpark.md @@ -0,0 +1,6 @@ +# Story Spark +A virtual Storyteller for 3 - 6 year old kids providing personalised stories. + +Input : {name} , {gender}, {story theme} + +Fast try: https://illa.ai/ai-agent/ILAex4p1C7Tz/detail diff --git a/hacktoberfest2023/awesome-ai-agents/TimeTravelerTom.md b/hacktoberfest2023/awesome-ai-agents/TimeTravelerTom.md new file mode 100644 index 0000000000..7e8d373990 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/TimeTravelerTom.md @@ -0,0 +1,3 @@ +# TimeTravelerTom +Meet TimeTravelerTom, your historical figure chatbot. Interact with past icons, ask questions, and explore history's gems! +Fast try: https://illa.ai/ai-agent/ILAfx4p1C7rQ/detail diff --git a/hacktoberfest2023/awesome-ai-agents/Userbehavioranalysisreport.md b/hacktoberfest2023/awesome-ai-agents/Userbehavioranalysisreport.md new file mode 100644 index 0000000000..dc805b3982 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/Userbehavioranalysisreport.md @@ -0,0 +1,3 @@ +# User behavior analysis report +This prompt describes a report that analyzes user interactions and behaviors within a product or system. +Fast try: https://illa.ai/ai-agent/ILAfx4p1C7vr/detail diff --git a/hacktoberfest2023/awesome-ai-agents/all-things-counter-strike.md b/hacktoberfest2023/awesome-ai-agents/all-things-counter-strike.md new file mode 100644 index 0000000000..77fdbfb42c --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/all-things-counter-strike.md @@ -0,0 +1,7 @@ +# All Things Counter Strike + +An AI chatbot to fine-tuned to answer questions related to Counter Strike, the epic video game entertaining us all for over 20 years now. + +Users can ask questions related to counter strike in general and also ask the bot to summarize professional counter strike matches. + +Try it: https://illa.ai/ai-agent/ILAfx4p1C7r2/detail diff --git a/hacktoberfest2023/awesome-ai-agents/snooker-summarizer.md b/hacktoberfest2023/awesome-ai-agents/snooker-summarizer.md new file mode 100644 index 0000000000..29a3488444 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/snooker-summarizer.md @@ -0,0 +1,5 @@ +# Snooker Summarizer + +This agent provides summaries of professional snooker matches. For example, type "Ronnie O'Sullivan vs Mark Williams most recent match" in the prompt. + +Try it: https://illa.ai/ai-agent/ILAfx4p1C7rP/detail diff --git a/hacktoberfest2023/awesome-ai-agents/the_matrix_quotes.md b/hacktoberfest2023/awesome-ai-agents/the_matrix_quotes.md new file mode 100644 index 0000000000..0978a35228 --- /dev/null +++ b/hacktoberfest2023/awesome-ai-agents/the_matrix_quotes.md @@ -0,0 +1,3 @@ +# The Matrix Quotes +Generate personalized quotes from the Matrix movies. +Fast try: https://illa.ai/ai-agent/ILAfx4p1C7qk/detail diff --git a/hacktoberfest2023/awesome-illa-apps/Hacktoberfest Treasure Hunt.md b/hacktoberfest2023/awesome-illa-apps/Hacktoberfest Treasure Hunt.md new file mode 100644 index 0000000000..cf6b3fb744 --- /dev/null +++ b/hacktoberfest2023/awesome-illa-apps/Hacktoberfest Treasure Hunt.md @@ -0,0 +1,2 @@ +# Hacktoberfest Treasure Hunt #hacktoberfesttreasurehunt +Fast try: https://illa.ai/app/ILAfx4p1C7Mf/detail diff --git a/hacktoberfest2023/awesome-illa-apps/Hex-RGB-Converter b/hacktoberfest2023/awesome-illa-apps/Hex-RGB-Converter new file mode 100644 index 0000000000..3ddb727ed4 --- /dev/null +++ b/hacktoberfest2023/awesome-illa-apps/Hex-RGB-Converter @@ -0,0 +1,3 @@ +# Hex to RGB Converter +Convert HEX to RGB +Fast try: https://builder.illacloud.com/a3385d2894263c3a0ff9b1505b2982ed/deploy/app/ILAfx4p1C72F diff --git a/hacktoberfest2023/awesome-illa-apps/Joker.md b/hacktoberfest2023/awesome-illa-apps/Joker.md index 830d9efec2..7f40cae0fd 100644 --- a/hacktoberfest2023/awesome-illa-apps/Joker.md +++ b/hacktoberfest2023/awesome-illa-apps/Joker.md @@ -1,2 +1,2 @@ # Joker -Provide you with daily dose of jokes! Check it: https://illa.ai/app/ILAfx4p1C72A/detail +A fun Jokes Generator. Provide you with daily dose of jokes! Check it: https://illa.ai/app/ILAfx4p1C72A/detail diff --git a/hacktoberfest2023/awesome-illa-apps/ProgrammingMemeGenerator.md b/hacktoberfest2023/awesome-illa-apps/ProgrammingMemeGenerator.md new file mode 100644 index 0000000000..c95fe6901b --- /dev/null +++ b/hacktoberfest2023/awesome-illa-apps/ProgrammingMemeGenerator.md @@ -0,0 +1,15 @@ +# Programming Memes Generator +Introducing Programming Memes Generator! Powered by ILLA Builder, it creates hilarious tech memes with a single click. Laugh, share, and enjoy the coding humor effortlessly! 🚀😂 + +### What have been used to make it? +We have used this [API](https://rapidapi.com/kaushalsharma880-GAglnDIvTy/api/programming-memes-images/) to build this application. + +### How to Use? +Click on the Generate button and it will generate funny programming meme for you. + +### Why Programming Memes Generator? +Because every programmer loves to visualize memes related to coding and tech to have fun! + +Thank you for choosing Programming Memes Generator. Where programming meets the world of memes and fun. + +Check it out here : [Programming Memes Generator](https://illa.ai/app/ILAfx4p1C7I2/detail) diff --git a/packages/illa-public-component b/packages/illa-public-component index 94741aea75..0448294734 160000 --- a/packages/illa-public-component +++ b/packages/illa-public-component @@ -1 +1 @@ -Subproject commit 94741aea754e3431373c51bd6246f8694695c2cb +Subproject commit 0448294734fb46ad9dddf33807eaf11641112717