Commit - 20250414-094344607

This commit is contained in:
Flatlogic Bot 2025-04-14 09:43:53 +00:00
parent 72f454e036
commit 58214dad4d
6 changed files with 14 additions and 478 deletions

View File

@ -57,30 +57,6 @@ const EmployeesData = [
// type code here for "relation_one" field
},
{
employee_name: 'Carol Johnson',
role: 'Inspector',
shift: 'Night',
payroll: 47000,
// type code here for "relation_one" field
},
{
employee_name: 'David Lee',
role: 'Manager',
shift: 'Day',
payroll: 60000,
// type code here for "relation_one" field
},
];
const InventoryData = [
@ -89,7 +65,7 @@ const InventoryData = [
quantity: 150,
status: 'reserved',
status: 'returned',
// type code here for "relation_one" field
},
@ -109,27 +85,7 @@ const InventoryData = [
quantity: 200,
status: 'available',
// type code here for "relation_one" field
},
{
item_name: 'Plastic Tubes',
quantity: 300,
status: 'available',
// type code here for "relation_one" field
},
{
item_name: 'Rubber Gaskets',
quantity: 500,
status: 'reserved',
status: 'returned',
// type code here for "relation_one" field
},
@ -165,26 +121,6 @@ const MachineryData = [
// type code here for "relation_one" field
},
{
machine_name: 'Press',
maintenance_schedule: 'Bi-Annual',
last_maintenance_date: new Date('2023-06-01T00:00:00Z'),
// type code here for "relation_one" field
},
{
machine_name: 'Welder',
maintenance_schedule: 'Monthly',
last_maintenance_date: new Date('2023-09-10T00:00:00Z'),
// type code here for "relation_one" field
},
];
const QualityControlsData = [
@ -223,30 +159,6 @@ const QualityControlsData = [
// type code here for "relation_one" field
},
{
check_name: 'Random Check',
// type code here for "relation_one" field
check_date: new Date('2023-10-17T11:00:00Z'),
passed: true,
// type code here for "relation_one" field
},
{
check_name: 'Compliance Audit',
// type code here for "relation_one" field
check_date: new Date('2023-10-22T09:00:00Z'),
passed: true,
// type code here for "relation_one" field
},
];
const RawMaterialsData = [
@ -285,30 +197,6 @@ const RawMaterialsData = [
// type code here for "relation_one" field
},
{
material_name: 'Plastic',
quantity: 2000,
reorder_level: 500,
// type code here for "relation_many" field
// type code here for "relation_one" field
},
{
material_name: 'Rubber',
quantity: 1500,
reorder_level: 300,
// type code here for "relation_many" field
// type code here for "relation_one" field
},
];
const SuppliersData = [
@ -341,26 +229,6 @@ const SuppliersData = [
// type code here for "relation_one" field
},
{
supplier_name: 'PolyPlastics',
contact_info: 'support@polyplastics.com',
contract_terms: 'Long-term contract with bi-weekly deliveries.',
// type code here for "relation_one" field
},
{
supplier_name: 'RubberMakers',
contact_info: 'service@rubbermakers.com',
contract_terms: 'Annual contract with monthly reviews.',
// type code here for "relation_one" field
},
];
const WorkOrdersData = [
@ -405,34 +273,6 @@ const WorkOrdersData = [
// type code here for "relation_one" field
},
{
order_number: 'WO-004',
// type code here for "relation_many" field
// type code here for "relation_many" field
start_date: new Date('2023-10-16T08:00:00Z'),
end_date: new Date('2023-10-20T17:00:00Z'),
// type code here for "relation_one" field
},
{
order_number: 'WO-005',
// type code here for "relation_many" field
// type code here for "relation_many" field
start_date: new Date('2023-10-21T08:00:00Z'),
end_date: new Date('2023-10-25T17:00:00Z'),
// type code here for "relation_one" field
},
];
const CompaniesData = [
@ -447,45 +287,25 @@ const CompaniesData = [
{
name: 'CraftWorks',
},
{
name: 'ManufacturePlus',
},
{
name: 'ProdSolutions',
},
];
const StaffData = [
{
// type code here for "relation_one" field
employee_name: 'Comte de Buffon',
employee_name: 'Hans Bethe',
},
{
// type code here for "relation_one" field
employee_name: 'Alfred Binet',
employee_name: 'Alfred Kinsey',
},
{
// type code here for "relation_one" field
employee_name: 'Ernest Rutherford',
},
{
// type code here for "relation_one" field
employee_name: 'B. F. Skinner',
},
{
// type code here for "relation_one" field
employee_name: 'Emil Fischer',
employee_name: 'Louis Pasteur',
},
];
@ -493,7 +313,7 @@ const ClientsData = [
{
// type code here for "relation_one" field
client_name: 'Frederick Sanger',
client_name: 'Christiaan Huygens',
date_registered: new Date(Date.now()),
@ -503,7 +323,7 @@ const ClientsData = [
{
// type code here for "relation_one" field
client_name: 'John Dalton',
client_name: 'Hermann von Helmholtz',
date_registered: new Date(Date.now()),
@ -513,27 +333,7 @@ const ClientsData = [
{
// type code here for "relation_one" field
client_name: 'Alfred Kinsey',
date_registered: new Date(Date.now()),
// type code here for "relation_one" field
},
{
// type code here for "relation_one" field
client_name: 'Marcello Malpighi',
date_registered: new Date(Date.now()),
// type code here for "relation_one" field
},
{
// type code here for "relation_one" field
client_name: 'Max Born',
client_name: 'Antoine Laurent Lavoisier',
date_registered: new Date(Date.now()),
@ -576,28 +376,6 @@ async function associateUserWithCompany() {
if (User2?.setCompany) {
await User2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const User3 = await Users.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (User3?.setCompany) {
await User3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const User4 = await Users.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (User4?.setCompany) {
await User4.setCompany(relatedCompany4);
}
}
async function associateEmployeeWithCompany() {
@ -633,28 +411,6 @@ async function associateEmployeeWithCompany() {
if (Employee2?.setCompany) {
await Employee2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Employee3 = await Employees.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (Employee3?.setCompany) {
await Employee3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Employee4 = await Employees.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (Employee4?.setCompany) {
await Employee4.setCompany(relatedCompany4);
}
}
async function associateInventoryWithCompany() {
@ -690,28 +446,6 @@ async function associateInventoryWithCompany() {
if (Inventory2?.setCompany) {
await Inventory2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Inventory3 = await Inventory.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (Inventory3?.setCompany) {
await Inventory3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Inventory4 = await Inventory.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (Inventory4?.setCompany) {
await Inventory4.setCompany(relatedCompany4);
}
}
async function associateMachineryWithCompany() {
@ -747,28 +481,6 @@ async function associateMachineryWithCompany() {
if (Machinery2?.setCompany) {
await Machinery2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Machinery3 = await Machinery.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (Machinery3?.setCompany) {
await Machinery3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Machinery4 = await Machinery.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (Machinery4?.setCompany) {
await Machinery4.setCompany(relatedCompany4);
}
}
async function associateQualityControlWithWork_order() {
@ -804,28 +516,6 @@ async function associateQualityControlWithWork_order() {
if (QualityControl2?.setWork_order) {
await QualityControl2.setWork_order(relatedWork_order2);
}
const relatedWork_order3 = await WorkOrders.findOne({
offset: Math.floor(Math.random() * (await WorkOrders.count())),
});
const QualityControl3 = await QualityControls.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (QualityControl3?.setWork_order) {
await QualityControl3.setWork_order(relatedWork_order3);
}
const relatedWork_order4 = await WorkOrders.findOne({
offset: Math.floor(Math.random() * (await WorkOrders.count())),
});
const QualityControl4 = await QualityControls.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (QualityControl4?.setWork_order) {
await QualityControl4.setWork_order(relatedWork_order4);
}
}
async function associateQualityControlWithCompany() {
@ -861,28 +551,6 @@ async function associateQualityControlWithCompany() {
if (QualityControl2?.setCompany) {
await QualityControl2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const QualityControl3 = await QualityControls.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (QualityControl3?.setCompany) {
await QualityControl3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const QualityControl4 = await QualityControls.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (QualityControl4?.setCompany) {
await QualityControl4.setCompany(relatedCompany4);
}
}
// Similar logic for "relation_many"
@ -920,28 +588,6 @@ async function associateRawMaterialWithCompany() {
if (RawMaterial2?.setCompany) {
await RawMaterial2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const RawMaterial3 = await RawMaterials.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (RawMaterial3?.setCompany) {
await RawMaterial3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const RawMaterial4 = await RawMaterials.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (RawMaterial4?.setCompany) {
await RawMaterial4.setCompany(relatedCompany4);
}
}
async function associateSupplierWithCompany() {
@ -977,28 +623,6 @@ async function associateSupplierWithCompany() {
if (Supplier2?.setCompany) {
await Supplier2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Supplier3 = await Suppliers.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (Supplier3?.setCompany) {
await Supplier3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Supplier4 = await Suppliers.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (Supplier4?.setCompany) {
await Supplier4.setCompany(relatedCompany4);
}
}
// Similar logic for "relation_many"
@ -1038,28 +662,6 @@ async function associateWorkOrderWithCompany() {
if (WorkOrder2?.setCompany) {
await WorkOrder2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const WorkOrder3 = await WorkOrders.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (WorkOrder3?.setCompany) {
await WorkOrder3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const WorkOrder4 = await WorkOrders.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (WorkOrder4?.setCompany) {
await WorkOrder4.setCompany(relatedCompany4);
}
}
async function associateStaffWithCompany() {
@ -1095,28 +697,6 @@ async function associateStaffWithCompany() {
if (Staff2?.setCompany) {
await Staff2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Staff3 = await Staff.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (Staff3?.setCompany) {
await Staff3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Staff4 = await Staff.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (Staff4?.setCompany) {
await Staff4.setCompany(relatedCompany4);
}
}
async function associateClientWithCompany() {
@ -1152,28 +732,6 @@ async function associateClientWithCompany() {
if (Client2?.setCompany) {
await Client2.setCompany(relatedCompany2);
}
const relatedCompany3 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Client3 = await Clients.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (Client3?.setCompany) {
await Client3.setCompany(relatedCompany3);
}
const relatedCompany4 = await Companies.findOne({
offset: Math.floor(Math.random() * (await Companies.count())),
});
const Client4 = await Clients.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (Client4?.setCompany) {
await Client4.setCompany(relatedCompany4);
}
}
async function associateClientWithClients_manager() {
@ -1209,28 +767,6 @@ async function associateClientWithClients_manager() {
if (Client2?.setClients_manager) {
await Client2.setClients_manager(relatedClients_manager2);
}
const relatedClients_manager3 = await Staff.findOne({
offset: Math.floor(Math.random() * (await Staff.count())),
});
const Client3 = await Clients.findOne({
order: [['id', 'ASC']],
offset: 3,
});
if (Client3?.setClients_manager) {
await Client3.setClients_manager(relatedClients_manager3);
}
const relatedClients_manager4 = await Staff.findOne({
offset: Math.floor(Math.random() * (await Staff.count())),
});
const Client4 = await Clients.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (Client4?.setClients_manager) {
await Client4.setClients_manager(relatedClients_manager4);
}
}
module.exports = {

View File

@ -18,9 +18,9 @@ export default function WebSiteFooter({
const borders = useAppSelector((state) => state.style.borders);
const websiteHeder = useAppSelector((state) => state.style.websiteHeder);
const style = FooterStyle.WITH_PROJECT_NAME;
const style = FooterStyle.WITH_PAGES;
const design = FooterDesigns.DESIGN_DIVERSITY;
const design = FooterDesigns.DEFAULT_DESIGN;
return (
<div

View File

@ -21,7 +21,7 @@ export default function WebSiteHeader({
const style = HeaderStyle.PAGES_RIGHT;
const design = HeaderDesigns.DEFAULT_DESIGN;
const design = HeaderDesigns.DESIGN_DIVERSITY;
return (
<header id='websiteHeader' className='overflow-hidden'>
<div

View File

@ -139,7 +139,7 @@ export default function WebSite() {
<FeaturesSection
projectName={'Test Editor'}
image={['Dashboard showing ERP metrics']}
withBg={0}
withBg={1}
features={features_points}
mainText={`Unlock Efficiency with ${projectName} Features`}
subTitle={`Explore the powerful features of ${projectName} designed to streamline your manufacturing operations and boost productivity.`}

View File

@ -145,7 +145,7 @@ export default function WebSite() {
<FeaturesSection
projectName={'Test Editor'}
image={['ERP dashboard on a screen']}
withBg={1}
withBg={0}
features={features_points}
mainText={`Explore ${projectName} Core Features`}
subTitle={`Discover the powerful features of ${projectName} that streamline your manufacturing operations and drive success.`}

View File

@ -139,7 +139,7 @@ export default function WebSite() {
<FeaturesSection
projectName={'Test Editor'}
image={['Dashboard showing ERP metrics']}
withBg={1}
withBg={0}
features={features_points}
mainText={`Unlock Efficiency with ${projectName} Features`}
subTitle={`Explore the powerful features of ${projectName} designed to streamline your manufacturing operations and boost productivity.`}