Forced merge: merge ai-dev into master
This commit is contained in:
commit
4f963518d2
File diff suppressed because one or more lines are too long
@ -45,18 +45,6 @@ const AiAgentsData = [
|
|||||||
|
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
name: 'GuideBot',
|
|
||||||
|
|
||||||
sitemap_url: 'https://example.com/sitemap.xml',
|
|
||||||
|
|
||||||
description: 'Guides users through the website.',
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const InteractionsData = [
|
const InteractionsData = [
|
||||||
@ -101,37 +89,19 @@ const InteractionsData = [
|
|||||||
|
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
interaction_start: new Date('2023-10-04T13:00:00Z'),
|
|
||||||
|
|
||||||
interaction_end: new Date('2023-10-04T13:25:00Z'),
|
|
||||||
|
|
||||||
transcript: 'User asked for support on a technical issue.',
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const OrganizationsData = [
|
const OrganizationsData = [
|
||||||
{
|
{
|
||||||
name: 'Willard Libby',
|
name: 'Richard Feynman',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'Rudolf Virchow',
|
name: 'John Bardeen',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'Max Born',
|
name: 'Antoine Laurent Lavoisier',
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: 'Sheldon Glashow',
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -139,41 +109,37 @@ const WebsitesData = [
|
|||||||
{
|
{
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
|
|
||||||
name: 'Neils Bohr',
|
name: 'Claude Levi-Strauss',
|
||||||
|
|
||||||
url: 'Louis Victor de Broglie',
|
url: 'J. Robert Oppenheimer',
|
||||||
|
|
||||||
description: 'Francis Galton',
|
description: 'Marie Curie',
|
||||||
|
|
||||||
|
// type code here for "relation_many" field
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
|
|
||||||
name: 'Edward Teller',
|
name: 'Charles Darwin',
|
||||||
|
|
||||||
url: 'Charles Lyell',
|
url: 'Carl Linnaeus',
|
||||||
|
|
||||||
description: 'Tycho Brahe',
|
description: 'Charles Darwin',
|
||||||
|
|
||||||
|
// type code here for "relation_many" field
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
|
|
||||||
name: 'Theodosius Dobzhansky',
|
name: 'Justus Liebig',
|
||||||
|
|
||||||
url: 'George Gaylord Simpson',
|
url: 'Rudolf Virchow',
|
||||||
|
|
||||||
description: 'James Watson',
|
description: 'Karl Landsteiner',
|
||||||
},
|
|
||||||
|
|
||||||
{
|
// type code here for "relation_many" field
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
name: 'Francis Galton',
|
|
||||||
|
|
||||||
url: 'B. F. Skinner',
|
|
||||||
|
|
||||||
description: 'Hans Bethe',
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -212,17 +178,6 @@ async function associateUserWithOrganization() {
|
|||||||
if (User2?.setOrganization) {
|
if (User2?.setOrganization) {
|
||||||
await User2.setOrganization(relatedOrganization2);
|
await User2.setOrganization(relatedOrganization2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedOrganization3 = await Organizations.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Organizations.count())),
|
|
||||||
});
|
|
||||||
const User3 = await Users.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (User3?.setOrganization) {
|
|
||||||
await User3.setOrganization(relatedOrganization3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateAiAgentWithOrganization() {
|
async function associateAiAgentWithOrganization() {
|
||||||
@ -258,17 +213,6 @@ async function associateAiAgentWithOrganization() {
|
|||||||
if (AiAgent2?.setOrganization) {
|
if (AiAgent2?.setOrganization) {
|
||||||
await AiAgent2.setOrganization(relatedOrganization2);
|
await AiAgent2.setOrganization(relatedOrganization2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedOrganization3 = await Organizations.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Organizations.count())),
|
|
||||||
});
|
|
||||||
const AiAgent3 = await AiAgents.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (AiAgent3?.setOrganization) {
|
|
||||||
await AiAgent3.setOrganization(relatedOrganization3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateAiAgentWithWebsite() {
|
async function associateAiAgentWithWebsite() {
|
||||||
@ -304,17 +248,6 @@ async function associateAiAgentWithWebsite() {
|
|||||||
if (AiAgent2?.setWebsite) {
|
if (AiAgent2?.setWebsite) {
|
||||||
await AiAgent2.setWebsite(relatedWebsite2);
|
await AiAgent2.setWebsite(relatedWebsite2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedWebsite3 = await Websites.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Websites.count())),
|
|
||||||
});
|
|
||||||
const AiAgent3 = await AiAgents.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (AiAgent3?.setWebsite) {
|
|
||||||
await AiAgent3.setWebsite(relatedWebsite3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateInteractionWithAgent() {
|
async function associateInteractionWithAgent() {
|
||||||
@ -350,17 +283,6 @@ async function associateInteractionWithAgent() {
|
|||||||
if (Interaction2?.setAgent) {
|
if (Interaction2?.setAgent) {
|
||||||
await Interaction2.setAgent(relatedAgent2);
|
await Interaction2.setAgent(relatedAgent2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedAgent3 = await AiAgents.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await AiAgents.count())),
|
|
||||||
});
|
|
||||||
const Interaction3 = await Interactions.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Interaction3?.setAgent) {
|
|
||||||
await Interaction3.setAgent(relatedAgent3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateInteractionWithUser() {
|
async function associateInteractionWithUser() {
|
||||||
@ -396,17 +318,6 @@ async function associateInteractionWithUser() {
|
|||||||
if (Interaction2?.setUser) {
|
if (Interaction2?.setUser) {
|
||||||
await Interaction2.setUser(relatedUser2);
|
await Interaction2.setUser(relatedUser2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedUser3 = await Users.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Users.count())),
|
|
||||||
});
|
|
||||||
const Interaction3 = await Interactions.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Interaction3?.setUser) {
|
|
||||||
await Interaction3.setUser(relatedUser3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateInteractionWithOrganization() {
|
async function associateInteractionWithOrganization() {
|
||||||
@ -442,17 +353,6 @@ async function associateInteractionWithOrganization() {
|
|||||||
if (Interaction2?.setOrganization) {
|
if (Interaction2?.setOrganization) {
|
||||||
await Interaction2.setOrganization(relatedOrganization2);
|
await Interaction2.setOrganization(relatedOrganization2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedOrganization3 = await Organizations.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Organizations.count())),
|
|
||||||
});
|
|
||||||
const Interaction3 = await Interactions.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Interaction3?.setOrganization) {
|
|
||||||
await Interaction3.setOrganization(relatedOrganization3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateWebsiteWithOrganization() {
|
async function associateWebsiteWithOrganization() {
|
||||||
@ -488,18 +388,9 @@ async function associateWebsiteWithOrganization() {
|
|||||||
if (Website2?.setOrganization) {
|
if (Website2?.setOrganization) {
|
||||||
await Website2.setOrganization(relatedOrganization2);
|
await Website2.setOrganization(relatedOrganization2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const relatedOrganization3 = await Organizations.findOne({
|
// Similar logic for "relation_many"
|
||||||
offset: Math.floor(Math.random() * (await Organizations.count())),
|
|
||||||
});
|
|
||||||
const Website3 = await Websites.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Website3?.setOrganization) {
|
|
||||||
await Website3.setOrganization(relatedOrganization3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
up: async (queryInterface, Sequelize) => {
|
up: async (queryInterface, Sequelize) => {
|
||||||
@ -527,6 +418,8 @@ module.exports = {
|
|||||||
await associateInteractionWithOrganization(),
|
await associateInteractionWithOrganization(),
|
||||||
|
|
||||||
await associateWebsiteWithOrganization(),
|
await associateWebsiteWithOrganization(),
|
||||||
|
|
||||||
|
// Similar logic for "relation_many"
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -20,6 +20,8 @@ import _ from 'lodash';
|
|||||||
import dataFormatter from '../../helpers/dataFormatter';
|
import dataFormatter from '../../helpers/dataFormatter';
|
||||||
import { dataGridStyles } from '../../styles';
|
import { dataGridStyles } from '../../styles';
|
||||||
|
|
||||||
|
import CardAi_agents from './CardAi_agents';
|
||||||
|
|
||||||
const perPage = 10;
|
const perPage = 10;
|
||||||
|
|
||||||
const TableSampleAi_agents = ({
|
const TableSampleAi_agents = ({
|
||||||
@ -464,7 +466,18 @@ const TableSampleAi_agents = ({
|
|||||||
<p>Are you sure you want to delete this item?</p>
|
<p>Are you sure you want to delete this item?</p>
|
||||||
</CardBoxModal>
|
</CardBoxModal>
|
||||||
|
|
||||||
{dataGrid}
|
{ai_agents && Array.isArray(ai_agents) && !showGrid && (
|
||||||
|
<CardAi_agents
|
||||||
|
ai_agents={ai_agents}
|
||||||
|
loading={loading}
|
||||||
|
onDelete={handleDeleteModalAction}
|
||||||
|
currentPage={currentPage}
|
||||||
|
numPages={numPages}
|
||||||
|
onPageChange={onPageChange}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{showGrid && dataGrid}
|
||||||
|
|
||||||
{selectedRows.length > 0 &&
|
{selectedRows.length > 0 &&
|
||||||
createPortal(
|
createPortal(
|
||||||
|
|||||||
@ -19,9 +19,9 @@ export default function WebSiteHeader({
|
|||||||
const websiteHeder = useAppSelector((state) => state.style.websiteHeder);
|
const websiteHeder = useAppSelector((state) => state.style.websiteHeder);
|
||||||
const borders = useAppSelector((state) => state.style.borders);
|
const borders = useAppSelector((state) => state.style.borders);
|
||||||
|
|
||||||
const style = HeaderStyle.PAGES_RIGHT;
|
const style = HeaderStyle.PAGES_LEFT;
|
||||||
|
|
||||||
const design = HeaderDesigns.DESIGN_DIVERSITY;
|
const design = HeaderDesigns.DEFAULT_DESIGN;
|
||||||
return (
|
return (
|
||||||
<header id='websiteHeader' className='overflow-hidden'>
|
<header id='websiteHeader' className='overflow-hidden'>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@ -127,6 +127,10 @@ const Ai_agentsTablesPage = () => {
|
|||||||
<div className='md:inline-flex items-center ms-auto'>
|
<div className='md:inline-flex items-center ms-auto'>
|
||||||
<div id='delete-rows-button'></div>
|
<div id='delete-rows-button'></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className='md:inline-flex items-center ms-auto'>
|
||||||
|
<Link href={'/ai_agents/ai_agents-table'}>Switch to Table</Link>
|
||||||
|
</div>
|
||||||
</CardBox>
|
</CardBox>
|
||||||
|
|
||||||
<CardBox className='mb-6' hasTable>
|
<CardBox className='mb-6' hasTable>
|
||||||
|
|||||||
@ -128,7 +128,7 @@ const Ai_agentsTablesPage = () => {
|
|||||||
<div id='delete-rows-button'></div>
|
<div id='delete-rows-button'></div>
|
||||||
|
|
||||||
<Link href={'/ai_agents/ai_agents-list'}>
|
<Link href={'/ai_agents/ai_agents-list'}>
|
||||||
Back to <span className='capitalize'>table</span>
|
Back to <span className='capitalize'>card</span>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</CardBox>
|
</CardBox>
|
||||||
|
|||||||
@ -134,7 +134,7 @@ export default function WebSite() {
|
|||||||
<FeaturesSection
|
<FeaturesSection
|
||||||
projectName={'website-ai-agents'}
|
projectName={'website-ai-agents'}
|
||||||
image={['AI agents enhancing user experience']}
|
image={['AI agents enhancing user experience']}
|
||||||
withBg={0}
|
withBg={1}
|
||||||
features={features_points}
|
features={features_points}
|
||||||
mainText={`Discover the Power of ${projectName}`}
|
mainText={`Discover the Power of ${projectName}`}
|
||||||
subTitle={`Explore the innovative features of ${projectName} that enhance your website's functionality and user engagement.`}
|
subTitle={`Explore the innovative features of ${projectName} that enhance your website's functionality and user engagement.`}
|
||||||
|
|||||||
@ -140,7 +140,7 @@ export default function WebSite() {
|
|||||||
<FeaturesSection
|
<FeaturesSection
|
||||||
projectName={'website-ai-agents'}
|
projectName={'website-ai-agents'}
|
||||||
image={['AI-driven website enhancement']}
|
image={['AI-driven website enhancement']}
|
||||||
withBg={1}
|
withBg={0}
|
||||||
features={features_points}
|
features={features_points}
|
||||||
mainText={`Explore the Core Features of ${projectName}`}
|
mainText={`Explore the Core Features of ${projectName}`}
|
||||||
subTitle={`Discover how ${projectName} enhances your website with intelligent AI capabilities, offering seamless navigation and interaction.`}
|
subTitle={`Discover how ${projectName} enhances your website with intelligent AI capabilities, offering seamless navigation and interaction.`}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user