This commit is contained in:
Flatlogic Bot 2025-04-18 08:32:41 +00:00
parent 46e2c81cb5
commit 26070b72a8
25 changed files with 76 additions and 157 deletions

View File

@ -1,6 +1,6 @@
# UI test
# UI test 1
## This project was generated by [Flatlogic Platform](https://flatlogic.com).

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
#UI test - template backend,
#UI test 1 - template backend,
#### Run App on local machine:
@ -38,10 +38,10 @@
- Type this command to creating a new database.
- `postgres=> CREATE DATABASE db_ui_test;`
- `postgres=> CREATE DATABASE db_ui_test_1;`
- Then give that new user privileges to the new database then quit the `psql`.
- `postgres=> GRANT ALL PRIVILEGES ON DATABASE db_ui_test TO admin;`
- `postgres=> GRANT ALL PRIVILEGES ON DATABASE db_ui_test_1 TO admin;`
- `postgres=> \q`
---

View File

@ -1,6 +1,6 @@
{
"name": "uitest",
"description": "UI test - template backend",
"name": "uitest1",
"description": "UI test 1 - template backend",
"scripts": {
"start": "npm run db:migrate && npm run db:seed && npm run watch",
"db:migrate": "sequelize-cli db:migrate",

View File

@ -3,7 +3,7 @@ const os = require('os');
const config = {
gcloud: {
bucket: 'fldemo-files',
hash: '00d74f18e81fa7e5a120d962273bacc3',
hash: 'afeefb9d49f5b7977577876b99532ac7',
},
bcrypt: {
saltRounds: 12,
@ -36,7 +36,7 @@ const config = {
},
uploadDir: os.tmpdir(),
email: {
from: 'UI test <app@flatlogic.app>',
from: 'UI test 1 <app@flatlogic.app>',
host: 'email-smtp.us-east-1.amazonaws.com',
port: 587,
auth: {

View File

@ -13,7 +13,7 @@ module.exports = {
username: 'postgres',
dialect: 'postgres',
password: '',
database: 'db_ui_test',
database: 'db_ui_test_1',
host: process.env.DB_HOST || 'localhost',
logging: console.log,
seederStorage: 'sequelize',

View File

@ -43,14 +43,6 @@ const BudgetsData = [
// type code here for "relation_one" field
},
{
name: 'Fundraiser Budget',
amount: 25000,
// type code here for "relation_one" field
},
];
const GuestsData = [
@ -61,7 +53,7 @@ const GuestsData = [
is_attending: true,
meal_preference: 'standard',
meal_preference: 'vegetarian',
},
{
@ -71,7 +63,7 @@ const GuestsData = [
is_attending: true,
meal_preference: 'standard',
meal_preference: 'vegetarian',
},
{
@ -81,7 +73,7 @@ const GuestsData = [
is_attending: true,
meal_preference: 'vegetarian',
meal_preference: 'standard',
},
{
@ -91,16 +83,6 @@ const GuestsData = [
is_attending: true,
meal_preference: 'standard',
},
{
name: 'Sarah Davis',
email: 'sarah.davis@example.com',
is_attending: false,
meal_preference: 'vegetarian',
},
];
@ -153,18 +135,6 @@ const SchedulesData = [
// type code here for "relation_many" field
},
{
title: 'Charity Fundraiser',
start_time: new Date('2023-08-25T19:00:00Z'),
end_time: new Date('2023-08-25T23:00:00Z'),
// type code here for "relation_one" field
// type code here for "relation_many" field
},
];
const VendorsData = [
@ -173,7 +143,7 @@ const VendorsData = [
contact_info: 'info@gourmetcatering.com',
service_type: 'entertainment',
service_type: 'catering',
rating: 4.8,
},
@ -183,7 +153,7 @@ const VendorsData = [
contact_info: 'contact@elegantdecor.com',
service_type: 'catering',
service_type: 'decorating',
rating: 4.5,
},
@ -193,7 +163,7 @@ const VendorsData = [
contact_info: 'djbeats@musicmail.com',
service_type: 'entertainment',
service_type: 'decorating',
rating: 4.7,
},
@ -203,20 +173,10 @@ const VendorsData = [
contact_info: 'flowers@floralarrangements.com',
service_type: 'catering',
service_type: 'decorating',
rating: 4.6,
},
{
name: 'Party Planners Ltd.',
contact_info: 'events@partyplanners.com',
service_type: 'catering',
rating: 4.9,
},
];
const VenuesData = [
@ -229,7 +189,7 @@ const VenuesData = [
features: 'Stage, AV Equipment, Catering',
is_booked: true,
is_booked: false,
},
{
@ -253,7 +213,7 @@ const VenuesData = [
features: 'Projector, Sound System',
is_booked: false,
is_booked: true,
},
{
@ -267,18 +227,6 @@ const VenuesData = [
is_booked: true,
},
{
name: 'Art Gallery',
location: 'Cultural District',
capacity: 100,
features: 'Exhibition Space, Lighting',
is_booked: false,
},
];
// Similar logic for "relation_many"
@ -327,17 +275,6 @@ async function associateBudgetWithEvent() {
if (Budget3?.setEvent) {
await Budget3.setEvent(relatedEvent3);
}
const relatedEvent4 = await Schedules.findOne({
offset: Math.floor(Math.random() * (await Schedules.count())),
});
const Budget4 = await Budgets.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (Budget4?.setEvent) {
await Budget4.setEvent(relatedEvent4);
}
}
async function associateScheduleWithVenue() {
@ -384,17 +321,6 @@ async function associateScheduleWithVenue() {
if (Schedule3?.setVenue) {
await Schedule3.setVenue(relatedVenue3);
}
const relatedVenue4 = await Venues.findOne({
offset: Math.floor(Math.random() * (await Venues.count())),
});
const Schedule4 = await Schedules.findOne({
order: [['id', 'ASC']],
offset: 4,
});
if (Schedule4?.setVenue) {
await Schedule4.setVenue(relatedVenue4);
}
}
// Similar logic for "relation_many"

View File

@ -45,9 +45,9 @@ const options = {
openapi: '3.0.0',
info: {
version: '1.0.0',
title: 'UI test',
title: 'UI test 1',
description:
'UI test Online REST API for Testing and Prototyping application. You can perform all major operations with your entities - create, delete and etc.',
'UI test 1 Online REST API for Testing and Prototyping application. You can perform all major operations with your entities - create, delete and etc.',
},
servers: [
{

View File

@ -1,6 +1,6 @@
const errors = {
app: {
title: 'UI test',
title: 'UI test 1',
},
auth: {

View File

@ -15,7 +15,7 @@ services:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=db_ui_test
- POSTGRES_DB=db_ui_test_1
ports:
- "5432:5432"
backend:

View File

@ -1,4 +1,4 @@
# UI test
# UI test 1
## This project was generated by Flatlogic Platform.

View File

@ -0,0 +1 @@
{}

View File

@ -44,7 +44,7 @@ export default function AsideMenuLayer({
>
<div className='text-center flex-1 lg:text-left lg:pl-6 xl:text-center xl:pl-0'>
<Link href={'/home'}>
<b className='font-black'>UI test</b>
<b className='font-black'>UI test 1</b>
</Link>
</div>
<button

View File

@ -20,7 +20,7 @@ export default function WebSiteFooter({
const style = FooterStyle.WITH_PROJECT_NAME;
const design = FooterDesigns.DEFAULT_DESIGN;
const design = FooterDesigns.DESIGN_DIVERSITY;
return (
<div

View File

@ -32,14 +32,6 @@ const menuAside: MenuAsideItem[] = [
icon: icon.mdiAccountGroup ? icon.mdiAccountGroup : icon.mdiTable,
permissions: 'READ_GUESTS',
},
{
href: '/schedules/schedules-list',
label: 'Schedules',
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
icon: icon.mdiCalendar ? icon.mdiCalendar : icon.mdiTable,
permissions: 'READ_SCHEDULES',
},
{
href: '/vendors/vendors-list',
label: 'Vendors',

View File

@ -71,9 +71,9 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
}
}, []);
const title = 'UI test';
const title = 'UI test 1';
const description = 'UI test generated by Flatlogic';
const description = 'UI test 1 generated by Flatlogic';
const url = 'https://flatlogic.com/';

View File

@ -27,7 +27,7 @@ import ContactFormSection from '../components/WebPageComponents/ContactFormCompo
export default function WebSite() {
const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
const projectName = 'UI test';
const projectName = 'UI test 1';
useEffect(() => {
const darkElement = document.querySelector('body .dark');
@ -182,10 +182,10 @@ export default function WebSite() {
content={`Discover our comprehensive event management app designed to streamline your planning process. From venues to vendors, schedules to budgets, manage every aspect of your event effortlessly.`}
/>
</Head>
<WebSiteHeader projectName={'UI test'} pages={pages} />
<WebSiteHeader projectName={'UI test 1'} pages={pages} />
<main className={`flex-grow bg-white rounded-none `}>
<HeroSection
projectName={'UI test'}
projectName={'UI test 1'}
image={['Event planning dashboard overview']}
mainText={`Effortless Event Management with ${projectName}`}
subTitle={`Streamline your event planning with ${projectName}. Manage venues, vendors, schedules, and budgets all in one place for a seamless experience.`}
@ -194,7 +194,7 @@ export default function WebSite() {
/>
<FeaturesSection
projectName={'UI test'}
projectName={'UI test 1'}
image={['Event management tools overview']}
withBg={0}
features={features_points}
@ -204,28 +204,28 @@ export default function WebSite() {
/>
<TestimonialsSection
projectName={'UI test'}
projectName={'UI test 1'}
design={TestimonialsDesigns.MULTI_CARD_DISPLAY || ''}
testimonials={testimonials}
mainText={`What Our Users Say About ${projectName} `}
/>
<PricingSection
projectName={'UI test'}
withBg={1}
projectName={'UI test 1'}
withBg={0}
features={pricing_features}
description={description}
/>
<ContactFormSection
projectName={'UI test'}
projectName={'UI test 1'}
design={ContactFormDesigns.WITH_IMAGE || ''}
image={['Contact form with email icon']}
mainText={`Get in Touch with ${projectName} `}
subTitle={`Reach out to us anytime for inquiries or support. Our team at ${projectName} is here to assist you promptly.`}
/>
</main>
<WebSiteFooter projectName={'UI test'} pages={pages} />
<WebSiteFooter projectName={'UI test 1'} pages={pages} />
</div>
);
}

View File

@ -50,7 +50,7 @@ export default function Login() {
remember: true,
});
const title = 'UI test';
const title = 'UI test 1';
// Fetch Pexels image/video
useEffect(() => {

View File

@ -5,7 +5,7 @@ import LayoutGuest from '../layouts/Guest';
import { getPageTitle } from '../config';
export default function PrivacyPolicy() {
const title = 'UI test';
const title = 'UI test 1';
const [projectUrl, setProjectUrl] = useState('');
useEffect(() => {

View File

@ -5,7 +5,7 @@ import LayoutGuest from '../layouts/Guest';
import { getPageTitle } from '../config';
export default function PrivacyPolicy() {
const title = 'UI test';
const title = 'UI test 1';
const [projectUrl, setProjectUrl] = useState('');
useEffect(() => {

View File

@ -18,7 +18,7 @@ import ContactFormSection from '../../components/WebPageComponents/ContactFormCo
export default function WebSite() {
const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
const projectName = 'UI test';
const projectName = 'UI test 1';
useEffect(() => {
const darkElement = document.querySelector('body .dark');
@ -62,10 +62,10 @@ export default function WebSite() {
content={`Reach out to ${projectName} for any inquiries or support. Our team is here to assist you with all your event management needs.`}
/>
</Head>
<WebSiteHeader projectName={'UI test'} pages={pages} />
<WebSiteHeader projectName={'UI test 1'} pages={pages} />
<main className={`flex-grow bg-white rounded-none `}>
<HeroSection
projectName={'UI test'}
projectName={'UI test 1'}
image={['Customer support team ready']}
mainText={`Connect with ${projectName} Today`}
subTitle={`We're here to help with any questions or support you need. Reach out to ${projectName} and let us assist you in making your event a success.`}
@ -74,14 +74,14 @@ export default function WebSite() {
/>
<ContactFormSection
projectName={'UI test'}
projectName={'UI test 1'}
design={ContactFormDesigns.SIMPLE_CLEAN || ''}
image={['Email communication illustration']}
mainText={`Reach Out to ${projectName} `}
subTitle={`Have questions or need support? Contact us anytime, and our team at ${projectName} will respond promptly to assist you.`}
/>
</main>
<WebSiteFooter projectName={'UI test'} pages={pages} />
<WebSiteFooter projectName={'UI test 1'} pages={pages} />
</div>
);
}

View File

@ -18,7 +18,7 @@ import FaqSection from '../../components/WebPageComponents/FaqComponent';
export default function WebSite() {
const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
const projectName = 'UI test';
const projectName = 'UI test 1';
useEffect(() => {
const darkElement = document.querySelector('body .dark');
@ -101,10 +101,10 @@ export default function WebSite() {
content={`Find answers to common questions about ${projectName}. Learn more about our features, pricing, and how we can help streamline your event management.`}
/>
</Head>
<WebSiteHeader projectName={'UI test'} pages={pages} />
<WebSiteHeader projectName={'UI test 1'} pages={pages} />
<main className={`flex-grow bg-white rounded-none `}>
<HeroSection
projectName={'UI test'}
projectName={'UI test 1'}
image={['FAQ section with question marks']}
mainText={`Your Questions Answered with ${projectName}`}
subTitle={`Explore our comprehensive FAQ section to find answers to your questions about ${projectName}. Learn how our features can simplify your event management.`}
@ -113,13 +113,13 @@ export default function WebSite() {
/>
<FaqSection
projectName={'UI test'}
projectName={'UI test 1'}
design={FaqDesigns.ACCORDION || ''}
faqs={faqs}
mainText={`Frequently Asked Questions About ${projectName} `}
/>
</main>
<WebSiteFooter projectName={'UI test'} pages={pages} />
<WebSiteFooter projectName={'UI test 1'} pages={pages} />
</div>
);
}

View File

@ -27,7 +27,7 @@ import ContactFormSection from '../../components/WebPageComponents/ContactFormCo
export default function WebSite() {
const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
const projectName = 'UI test';
const projectName = 'UI test 1';
useEffect(() => {
const darkElement = document.querySelector('body .dark');
@ -182,10 +182,10 @@ export default function WebSite() {
content={`Discover our comprehensive event management app designed to streamline your planning process. From venues to vendors, schedules to budgets, manage every aspect of your event effortlessly.`}
/>
</Head>
<WebSiteHeader projectName={'UI test'} pages={pages} />
<WebSiteHeader projectName={'UI test 1'} pages={pages} />
<main className={`flex-grow bg-white rounded-none `}>
<HeroSection
projectName={'UI test'}
projectName={'UI test 1'}
image={['Event planning dashboard overview']}
mainText={`Effortless Event Management with ${projectName}`}
subTitle={`Streamline your event planning with ${projectName}. Manage venues, vendors, schedules, and budgets all in one place for a seamless experience.`}
@ -194,9 +194,9 @@ export default function WebSite() {
/>
<FeaturesSection
projectName={'UI test'}
projectName={'UI test 1'}
image={['Event management tools overview']}
withBg={1}
withBg={0}
features={features_points}
mainText={`Discover ${projectName}'s Key Features`}
subTitle={`Explore how ${projectName} simplifies event management with its powerful features, ensuring a seamless planning experience.`}
@ -204,28 +204,28 @@ export default function WebSite() {
/>
<TestimonialsSection
projectName={'UI test'}
projectName={'UI test 1'}
design={TestimonialsDesigns.MULTI_CARD_DISPLAY || ''}
testimonials={testimonials}
mainText={`What Our Users Say About ${projectName} `}
/>
<PricingSection
projectName={'UI test'}
withBg={1}
projectName={'UI test 1'}
withBg={0}
features={pricing_features}
description={description}
/>
<ContactFormSection
projectName={'UI test'}
projectName={'UI test 1'}
design={ContactFormDesigns.WITH_IMAGE || ''}
image={['Contact form with email icon']}
mainText={`Get in Touch with ${projectName} `}
subTitle={`Reach out to us anytime for inquiries or support. Our team at ${projectName} is here to assist you promptly.`}
/>
</main>
<WebSiteFooter projectName={'UI test'} pages={pages} />
<WebSiteFooter projectName={'UI test 1'} pages={pages} />
</div>
);
}

View File

@ -21,7 +21,7 @@ import FaqSection from '../../components/WebPageComponents/FaqComponent';
export default function WebSite() {
const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
const projectName = 'UI test';
const projectName = 'UI test 1';
useEffect(() => {
const darkElement = document.querySelector('body .dark');
@ -142,10 +142,10 @@ export default function WebSite() {
content={`Explore the flexible pricing plans offered by ${projectName}. Find the perfect plan that suits your event management needs and budget.`}
/>
</Head>
<WebSiteHeader projectName={'UI test'} pages={pages} />
<WebSiteHeader projectName={'UI test 1'} pages={pages} />
<main className={`flex-grow bg-white rounded-none `}>
<HeroSection
projectName={'UI test'}
projectName={'UI test 1'}
image={['Pricing plans comparison chart']}
mainText={`Flexible Pricing for ${projectName} Plans`}
subTitle={`Discover the perfect plan for your event management needs with ${projectName}. Choose from our flexible pricing options to find the best fit for your budget and requirements.`}
@ -154,20 +154,20 @@ export default function WebSite() {
/>
<PricingSection
projectName={'UI test'}
withBg={0}
projectName={'UI test 1'}
withBg={1}
features={pricing_features}
description={description}
/>
<FaqSection
projectName={'UI test'}
projectName={'UI test 1'}
design={FaqDesigns.TWO_COLUMN || ''}
faqs={faqs}
mainText={`Common Questions About ${projectName} Pricing `}
/>
</main>
<WebSiteFooter projectName={'UI test'} pages={pages} />
<WebSiteFooter projectName={'UI test 1'} pages={pages} />
</div>
);
}

View File

@ -24,7 +24,7 @@ import PricingSection from '../../components/WebPageComponents/PricingComponent'
export default function WebSite() {
const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
const projectName = 'UI test';
const projectName = 'UI test 1';
useEffect(() => {
const darkElement = document.querySelector('body .dark');
@ -146,10 +146,10 @@ export default function WebSite() {
content={`Explore the range of services offered by our event management app. From venue selection to budget management, discover how we can make your event planning seamless and efficient.`}
/>
</Head>
<WebSiteHeader projectName={'UI test'} pages={pages} />
<WebSiteHeader projectName={'UI test 1'} pages={pages} />
<main className={`flex-grow bg-white rounded-none `}>
<HeroSection
projectName={'UI test'}
projectName={'UI test 1'}
image={['Event planning tools and services']}
mainText={`Transform Your Events with ${projectName}`}
subTitle={`Discover the comprehensive services offered by ${projectName} to streamline your event planning. From venue selection to budget management, we provide everything you need for a successful event.`}
@ -158,7 +158,7 @@ export default function WebSite() {
/>
<FeaturesSection
projectName={'UI test'}
projectName={'UI test 1'}
image={['Event management service features']}
withBg={1}
features={features_points}
@ -168,21 +168,21 @@ export default function WebSite() {
/>
<PricingSection
projectName={'UI test'}
withBg={0}
projectName={'UI test 1'}
withBg={1}
features={pricing_features}
description={description}
/>
<ContactFormSection
projectName={'UI test'}
projectName={'UI test 1'}
design={ContactFormDesigns.HIGHLIGHTED || ''}
image={['Contact form with email icon']}
mainText={`Connect with ${projectName} Today `}
subTitle={`Have questions or need assistance? Reach out to us anytime, and our team at ${projectName} will respond promptly to your inquiries.`}
/>
</main>
<WebSiteFooter projectName={'UI test'} pages={pages} />
<WebSiteFooter projectName={'UI test 1'} pages={pages} />
</div>
);
}