diff --git a/bizmatch-server/src/assets/counties.json b/bizmatch-server/src/assets/counties.json new file mode 100644 index 0000000..dd1fbc0 --- /dev/null +++ b/bizmatch-server/src/assets/counties.json @@ -0,0 +1,385 @@ +[ + { + "state": "AL", + "counties": [ + "Autauga", + "Baldwin", + "Barbour", + "Bibb", + "Blount", + "Bullock", + "Butler", + "Calhoun", + "Chambers", + "Cherokee", + "Chilton", + "Choctaw", + "Clarke", + "Clay", + "Cleburne", + "Coffee", + "Colbert", + "Conecuh", + "Coosa", + "Covington", + "Crenshaw", + "Cullman", + "Dale", + "Dallas", + "DeKalb", + "Elmore", + "Escambia", + "Etowah", + "Fayette", + "Franklin", + "Geneva", + "Greene", + "Hale", + "Henry", + "Houston", + "Jackson", + "Jefferson", + "Lamar", + "Lauderdale", + "Lawrence", + "Lee", + "Limestone", + "Lowndes", + "Macon", + "Madison", + "Marengo", + "Marion", + "Marshall", + "Mobile", + "Monroe", + "Montgomery", + "Morgan", + "Perry", + "Pickens", + "Pike", + "Randolph", + "Russell", + "St. Clair", + "Shelby", + "Sumter", + "Talladega", + "Tallapoosa", + "Tuscaloosa", + "Walker", + "Washington", + "Wilcox", + "Winston" + ] + }, + { + "state": "AK", + "counties": [ + "Aleutians East", + "Aleutians West", + "Anchorage", + "Bethel", + "Bristol Bay", + "Denali", + "Dillingham", + "Fairbanks North Star", + "Haines", + "Juneau", + "Kenai Peninsula", + "Ketchikan Gateway", + "Kodiak Island", + "Lake and Peninsula", + "Matanuska-Susitna", + "Nome", + "North Slope", + "Northwest Arctic", + "Petersburg", + "Prince of Wales-Hyder", + "Sitka", + "Skagway", + "Southeast Fairbanks", + "Valdez-Cordova", + "Wrangell", + "Yakutat", + "Yukon-Koyukuk" + ] + }, + { + "state": "AZ", + "counties": [ + "Apache", + "Cochise", + "Coconino", + "Gila", + "Graham", + "Greenlee", + "La Paz", + "Maricopa", + "Mohave", + "Navajo", + "Pima", + "Pinal", + "Santa Cruz", + "Yavapai", + "Yuma" + ] + }, + { + "state": "TX", + "counties": [ + "Anderson", + "Andrews", + "Angelina", + "Aransas", + "Archer", + "Armstrong", + "Atascosa", + "Austin", + "Bailey", + "Bandera", + "Bastrop", + "Baylor", + "Bee", + "Bell", + "Bexar", + "Blanco", + "Borden", + "Bosque", + "Bowie", + "Brazoria", + "Brazos", + "Brewster", + "Briscoe", + "Brooks", + "Brown", + "Burleson", + "Burnet", + "Caldwell", + "Calhoun", + "Callahan", + "Cameron", + "Camp", + "Carson", + "Cass", + "Castro", + "Chambers", + "Cherokee", + "Childress", + "Clay", + "Cochran", + "Coke", + "Coleman", + "Collin", + "Collingsworth", + "Colorado", + "Comal", + "Comanche", + "Concho", + "Cooke", + "Coryell", + "Cottle", + "Crane", + "Crockett", + "Crosby", + "Culberson", + "Dallam", + "Dallas", + "Dawson", + "Deaf Smith", + "Delta", + "Denton", + "DeWitt", + "Dickens", + "Dimmit", + "Donley", + "Duval", + "Eastland", + "Ector", + "Edwards", + "Ellis", + "El Paso", + "Erath", + "Falls", + "Fannin", + "Fayette", + "Fisher", + "Floyd", + "Foard", + "Fort Bend", + "Franklin", + "Freestone", + "Frio", + "Gaines", + "Galveston", + "Garza", + "Gillespie", + "Glasscock", + "Goliad", + "Gonzales", + "Gray", + "Grayson", + "Gregg", + "Grimes", + "Guadalupe", + "Hale", + "Hall", + "Hamilton", + "Hansford", + "Hardeman", + "Hardin", + "Harris", + "Harrison", + "Hartley", + "Haskell", + "Hays", + "Hemphill", + "Henderson", + "Hidalgo", + "Hill", + "Hockley", + "Hood", + "Hopkins", + "Houston", + "Howard", + "Hudspeth", + "Hunt", + "Hutchinson", + "Irion", + "Jack", + "Jackson", + "Jasper", + "Jeff Davis", + "Jefferson", + "Jim Hogg", + "Jim Wells", + "Johnson", + "Jones", + "Karnes", + "Kaufman", + "Kendall", + "Kenedy", + "Kent", + "Kerr", + "Kimble", + "King", + "Kinney", + "Kleberg", + "Knox", + "Lamar", + "Lamb", + "Lampasas", + "La Salle", + "Lavaca", + "Lee", + "Leon", + "Liberty", + "Limestone", + "Lipscomb", + "Live Oak", + "Llano", + "Loving", + "Lubbock", + "Lynn", + "McCulloch", + "McLennan", + "McMullen", + "Madison", + "Marion", + "Martin", + "Mason", + "Matagorda", + "Maverick", + "Medina", + "Menard", + "Midland", + "Milam", + "Mills", + "Mitchell", + "Montague", + "Montgomery", + "Moore", + "Morris", + "Motley", + "Nacogdoches", + "Navarro", + "Newton", + "Nolan", + "Nueces", + "Ochiltree", + "Oldham", + "Orange", + "Palo Pinto", + "Panola", + "Parker", + "Parmer", + "Pecos", + "Polk", + "Potter", + "Presidio", + "Rains", + "Randall", + "Reagan", + "Real", + "Red River", + "Reeves", + "Refugio", + "Roberts", + "Robertson", + "Rockwall", + "Runnels", + "Rusk", + "Sabine", + "San Augustine", + "San Jacinto", + "San Patricio", + "San Saba", + "Schleicher", + "Scurry", + "Shackelford", + "Shelby", + "Sherman", + "Smith", + "Somervell", + "Starr", + "Stephens", + "Sterling", + "Stonewall", + "Sutton", + "Swisher", + "Tarrant", + "Taylor", + "Terrell", + "Terry", + "Throckmorton", + "Titus", + "Tom Green", + "Travis", + "Trinity", + "Tyler", + "Upshur", + "Upton", + "Uvalde", + "Val Verde", + "Van Zandt", + "Victoria", + "Walker", + "Waller", + "Ward", + "Washington", + "Webb", + "Wharton", + "Wheeler", + "Wichita", + "Wilbarger", + "Willacy", + "Williamson", + "Wilson", + "Winkler", + "Wise", + "Wood", + "Yoakum", + "Young", + "Zapata", + "Zavala" + ] + } +] \ No newline at end of file diff --git a/bizmatch-server/src/drizzle/import.js b/bizmatch-server/src/drizzle/import.js new file mode 100644 index 0000000..07fd414 --- /dev/null +++ b/bizmatch-server/src/drizzle/import.js @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +require("dotenv/config"); +var node_postgres_1 = require("drizzle-orm/node-postgres"); +var pg_1 = require("pg"); +var Client = pg_1.default.Client; +var schema = require("./schema.js"); +var fs_1 = require("fs"); +var connectionString = process.env.DATABASE_URL; +// const pool = new Pool({connectionString}) +var client = new Client({ connectionString: connectionString }); +var db = (0, node_postgres_1.drizzle)(client, { schema: schema, logger: true }); +//Broker +var filePath = "./data/broker.json"; +var data = (0, fs_1.readFileSync)(filePath, 'utf8'); +var jsonData = JSON.parse(data); // Erwartet ein Array von Objekten +await db.delete(schema.users); +console.log(jsonData.length); +for (var _i = 0, jsonData_1 = jsonData; _i < jsonData_1.length; _i++) { + var user = jsonData_1[_i]; + delete user.id; + await db.insert(schema.users).values(user); +} +//Business Listings +// filePath = `./data/businesses.json` +// data = readFileSync(filePath, 'utf8'); +// jsonData = JSON.parse(data); // Erwartet ein Array von Objekten +// db.delete(schema.businesses); +// for (const business of jsonData) { +// delete business.id +// await db.insert(schema.businesses).values(business); +// } +//End +//await client.end() diff --git a/bizmatch-server/src/drizzle/import.ts b/bizmatch-server/src/drizzle/import.ts index a112183..1b123e2 100644 --- a/bizmatch-server/src/drizzle/import.ts +++ b/bizmatch-server/src/drizzle/import.ts @@ -63,6 +63,8 @@ for (const userData of usersData) { user.companyLocation = userData.companyLocation; user.offeredServices = userData.offeredServices; user.gender = userData.gender; + user.customerType = 'professional'; + user.customerSubType = 'broker'; user.created = new Date(); user.updated = new Date(); const u = await db.insert(schema.users).values(user).returning({ insertedId: schema.users.id, gender: schema.users.gender, email: schema.users.email }); diff --git a/bizmatch-server/src/drizzle/migrations/0000_burly_bruce_banner.sql b/bizmatch-server/src/drizzle/migrations/0000_known_havok.sql similarity index 86% rename from bizmatch-server/src/drizzle/migrations/0000_burly_bruce_banner.sql rename to bizmatch-server/src/drizzle/migrations/0000_known_havok.sql index afbe261..ef82364 100644 --- a/bizmatch-server/src/drizzle/migrations/0000_burly_bruce_banner.sql +++ b/bizmatch-server/src/drizzle/migrations/0000_known_havok.sql @@ -1,3 +1,15 @@ +DO $$ BEGIN + CREATE TYPE "customerSubType" AS ENUM('broker', 'cpa', 'attorney', 'titleCompany', 'surveyor', 'appraiser'); +EXCEPTION + WHEN duplicate_object THEN null; +END $$; +--> statement-breakpoint +DO $$ BEGIN + CREATE TYPE "customerType" AS ENUM('buyer', 'professional'); +EXCEPTION + WHEN duplicate_object THEN null; +END $$; +--> statement-breakpoint DO $$ BEGIN CREATE TYPE "gender" AS ENUM('male', 'female'); EXCEPTION @@ -79,6 +91,8 @@ CREATE TABLE IF NOT EXISTS "users" ( "hasCompanyLogo" boolean, "licensedIn" jsonb, "gender" "gender", + "customerType" "customerType", + "customerSubType" "customerSubType", "created" timestamp, "updated" timestamp ); diff --git a/bizmatch-server/src/drizzle/migrations/0001_wet_mephistopheles.sql b/bizmatch-server/src/drizzle/migrations/0001_wet_mephistopheles.sql deleted file mode 100644 index c6cbcab..0000000 --- a/bizmatch-server/src/drizzle/migrations/0001_wet_mephistopheles.sql +++ /dev/null @@ -1,7 +0,0 @@ -DO $$ BEGIN - CREATE TYPE "customerType" AS ENUM('buyer', 'broker', 'professional'); -EXCEPTION - WHEN duplicate_object THEN null; -END $$; ---> statement-breakpoint -ALTER TABLE "users" ADD COLUMN "customerType" "customerType"; \ No newline at end of file diff --git a/bizmatch-server/src/drizzle/migrations/meta/0000_snapshot.json b/bizmatch-server/src/drizzle/migrations/meta/0000_snapshot.json index b14fcf9..6305d03 100644 --- a/bizmatch-server/src/drizzle/migrations/meta/0000_snapshot.json +++ b/bizmatch-server/src/drizzle/migrations/meta/0000_snapshot.json @@ -1,5 +1,5 @@ { - "id": "fc58c59b-ac5c-406e-8fdb-b05de40aed17", + "id": "f8241dfe-8f15-4656-aeb5-c9ef0ad65f28", "prevId": "00000000-0000-0000-0000-000000000000", "version": "5", "dialect": "pg", @@ -467,6 +467,18 @@ "primaryKey": false, "notNull": false }, + "customerType": { + "name": "customerType", + "type": "customerType", + "primaryKey": false, + "notNull": false + }, + "customerSubType": { + "name": "customerSubType", + "type": "customerSubType", + "primaryKey": false, + "notNull": false + }, "created": { "name": "created", "type": "timestamp", @@ -487,6 +499,24 @@ } }, "enums": { + "customerSubType": { + "name": "customerSubType", + "values": { + "broker": "broker", + "cpa": "cpa", + "attorney": "attorney", + "titleCompany": "titleCompany", + "surveyor": "surveyor", + "appraiser": "appraiser" + } + }, + "customerType": { + "name": "customerType", + "values": { + "buyer": "buyer", + "professional": "professional" + } + }, "gender": { "name": "gender", "values": { diff --git a/bizmatch-server/src/drizzle/migrations/meta/0001_snapshot.json b/bizmatch-server/src/drizzle/migrations/meta/0001_snapshot.json deleted file mode 100644 index 46667c5..0000000 --- a/bizmatch-server/src/drizzle/migrations/meta/0001_snapshot.json +++ /dev/null @@ -1,518 +0,0 @@ -{ - "id": "0bc02618-4414-4e90-8c44-808737611da7", - "prevId": "fc58c59b-ac5c-406e-8fdb-b05de40aed17", - "version": "5", - "dialect": "pg", - "tables": { - "businesses": { - "name": "businesses", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "userId": { - "name": "userId", - "type": "uuid", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "city": { - "name": "city", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "char(2)", - "primaryKey": false, - "notNull": false - }, - "price": { - "name": "price", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "favoritesForUser": { - "name": "favoritesForUser", - "type": "varchar(30)[]", - "primaryKey": false, - "notNull": false - }, - "draft": { - "name": "draft", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "listingsCategory": { - "name": "listingsCategory", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "realEstateIncluded": { - "name": "realEstateIncluded", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "leasedLocation": { - "name": "leasedLocation", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "franchiseResale": { - "name": "franchiseResale", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "salesRevenue": { - "name": "salesRevenue", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "cashFlow": { - "name": "cashFlow", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "supportAndTraining": { - "name": "supportAndTraining", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "employees": { - "name": "employees", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "established": { - "name": "established", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "internalListingNumber": { - "name": "internalListingNumber", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "reasonForSale": { - "name": "reasonForSale", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "brokerLicencing": { - "name": "brokerLicencing", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "internals": { - "name": "internals", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "imagePath": { - "name": "imagePath", - "type": "varchar(200)", - "primaryKey": false, - "notNull": false - }, - "created": { - "name": "created", - "type": "timestamp", - "primaryKey": false, - "notNull": false - }, - "updated": { - "name": "updated", - "type": "timestamp", - "primaryKey": false, - "notNull": false - }, - "visits": { - "name": "visits", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lastVisit": { - "name": "lastVisit", - "type": "timestamp", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": { - "businesses_userId_users_id_fk": { - "name": "businesses_userId_users_id_fk", - "tableFrom": "businesses", - "tableTo": "users", - "columnsFrom": [ - "userId" - ], - "columnsTo": [ - "id" - ], - "onDelete": "no action", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "commercials": { - "name": "commercials", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "serial_id": { - "name": "serial_id", - "type": "serial", - "primaryKey": false, - "notNull": true - }, - "userId": { - "name": "userId", - "type": "uuid", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "city": { - "name": "city", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "char(2)", - "primaryKey": false, - "notNull": false - }, - "price": { - "name": "price", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "favoritesForUser": { - "name": "favoritesForUser", - "type": "varchar(30)[]", - "primaryKey": false, - "notNull": false - }, - "listingsCategory": { - "name": "listingsCategory", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "hideImage": { - "name": "hideImage", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "draft": { - "name": "draft", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "zipCode": { - "name": "zipCode", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "county": { - "name": "county", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "website": { - "name": "website", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "phoneNumber": { - "name": "phoneNumber", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "imageOrder": { - "name": "imageOrder", - "type": "varchar(200)[]", - "primaryKey": false, - "notNull": false - }, - "imagePath": { - "name": "imagePath", - "type": "varchar(200)", - "primaryKey": false, - "notNull": false - }, - "created": { - "name": "created", - "type": "timestamp", - "primaryKey": false, - "notNull": false - }, - "updated": { - "name": "updated", - "type": "timestamp", - "primaryKey": false, - "notNull": false - }, - "visits": { - "name": "visits", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lastVisit": { - "name": "lastVisit", - "type": "timestamp", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": { - "commercials_userId_users_id_fk": { - "name": "commercials_userId_users_id_fk", - "tableFrom": "commercials", - "tableTo": "users", - "columnsFrom": [ - "userId" - ], - "columnsTo": [ - "id" - ], - "onDelete": "no action", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "firstname": { - "name": "firstname", - "type": "varchar(255)", - "primaryKey": false, - "notNull": true - }, - "lastname": { - "name": "lastname", - "type": "varchar(255)", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "varchar(255)", - "primaryKey": false, - "notNull": true - }, - "phoneNumber": { - "name": "phoneNumber", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "companyName": { - "name": "companyName", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "companyOverview": { - "name": "companyOverview", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "companyWebsite": { - "name": "companyWebsite", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "companyLocation": { - "name": "companyLocation", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "offeredServices": { - "name": "offeredServices", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "areasServed": { - "name": "areasServed", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "hasProfile": { - "name": "hasProfile", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "hasCompanyLogo": { - "name": "hasCompanyLogo", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "licensedIn": { - "name": "licensedIn", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "gender": { - "name": "gender", - "type": "gender", - "primaryKey": false, - "notNull": false - }, - "customerType": { - "name": "customerType", - "type": "customerType", - "primaryKey": false, - "notNull": false - }, - "created": { - "name": "created", - "type": "timestamp", - "primaryKey": false, - "notNull": false - }, - "updated": { - "name": "updated", - "type": "timestamp", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - } - }, - "enums": { - "customerType": { - "name": "customerType", - "values": { - "buyer": "buyer", - "broker": "broker", - "professional": "professional" - } - }, - "gender": { - "name": "gender", - "values": { - "male": "male", - "female": "female" - } - } - }, - "schemas": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/bizmatch-server/src/drizzle/migrations/meta/_journal.json b/bizmatch-server/src/drizzle/migrations/meta/_journal.json index e2ba672..0afd75c 100644 --- a/bizmatch-server/src/drizzle/migrations/meta/_journal.json +++ b/bizmatch-server/src/drizzle/migrations/meta/_journal.json @@ -5,15 +5,8 @@ { "idx": 0, "version": "5", - "when": 1716495198537, - "tag": "0000_burly_bruce_banner", - "breakpoints": true - }, - { - "idx": 1, - "version": "5", - "when": 1717085220861, - "tag": "0001_wet_mephistopheles", + "when": 1717933164279, + "tag": "0000_known_havok", "breakpoints": true } ] diff --git a/bizmatch-server/src/drizzle/schema.js b/bizmatch-server/src/drizzle/schema.js new file mode 100644 index 0000000..f62e82e --- /dev/null +++ b/bizmatch-server/src/drizzle/schema.js @@ -0,0 +1,75 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.commercials = exports.businesses = exports.users = exports.PG_CONNECTION = void 0; +var pg_core_1 = require("drizzle-orm/pg-core"); +exports.PG_CONNECTION = 'PG_CONNECTION'; +exports.users = (0, pg_core_1.pgTable)('users', { + id: (0, pg_core_1.uuid)('id').primaryKey().defaultRandom(), + firstname: (0, pg_core_1.varchar)('firstname', { length: 255 }).notNull(), + lastname: (0, pg_core_1.varchar)('lastname', { length: 255 }).notNull(), + email: (0, pg_core_1.varchar)('email', { length: 255 }).notNull(), + phoneNumber: (0, pg_core_1.varchar)('phoneNumber', { length: 255 }), + description: (0, pg_core_1.text)('description'), + companyName: (0, pg_core_1.varchar)('companyName', { length: 255 }), + companyOverview: (0, pg_core_1.text)('companyOverview'), + companyWebsite: (0, pg_core_1.varchar)('companyWebsite', { length: 255 }), + companyLocation: (0, pg_core_1.varchar)('companyLocation', { length: 255 }), + offeredServices: (0, pg_core_1.text)('offeredServices'), + areasServed: (0, pg_core_1.varchar)('areasServed', { length: 100 }).array(), + hasProfile: (0, pg_core_1.boolean)('hasProfile'), + hasCompanyLogo: (0, pg_core_1.boolean)('hasCompanyLogo'), + licensedIn: (0, pg_core_1.varchar)('licensedIn', { length: 50 }).array(), +}); +exports.businesses = (0, pg_core_1.pgTable)('businesses', { + id: (0, pg_core_1.uuid)('id').primaryKey().defaultRandom(), + userId: (0, pg_core_1.uuid)('userId').references(function () { return exports.users.id; }), + type: (0, pg_core_1.varchar)('type', { length: 255 }), + title: (0, pg_core_1.varchar)('title', { length: 255 }), + description: (0, pg_core_1.text)('description'), + city: (0, pg_core_1.varchar)('city', { length: 255 }), + state: (0, pg_core_1.char)('state', { length: 2 }), + price: (0, pg_core_1.numeric)('price', { precision: 10, scale: 2 }), + favoritesForUser: (0, pg_core_1.varchar)('favoritesForUser', { length: 30 }).array(), + draft: (0, pg_core_1.boolean)('draft'), + listingsCategory: (0, pg_core_1.varchar)('listingsCategory', { length: 255 }), + realEstateIncluded: (0, pg_core_1.boolean)('realEstateIncluded'), + leasedLocation: (0, pg_core_1.boolean)('leasedLocation'), + franchiseResale: (0, pg_core_1.boolean)('franchiseResale'), + salesRevenue: (0, pg_core_1.numeric)('salesRevenue', { precision: 10, scale: 2 }), + cashFlow: (0, pg_core_1.numeric)('cashFlow', { precision: 10, scale: 2 }), + supportAndTraining: (0, pg_core_1.text)('supportAndTraining'), + employees: (0, pg_core_1.integer)('employees'), + established: (0, pg_core_1.integer)('established'), + internalListingNumber: (0, pg_core_1.integer)('internalListingNumber'), + reasonForSale: (0, pg_core_1.varchar)('reasonForSale', { length: 255 }), + brokerLicencing: (0, pg_core_1.varchar)('brokerLicencing', { length: 255 }), + internals: (0, pg_core_1.text)('internals'), + created: (0, pg_core_1.timestamp)('created'), + updated: (0, pg_core_1.timestamp)('updated'), + visits: (0, pg_core_1.integer)('visits'), + lastVisit: (0, pg_core_1.timestamp)('lastVisit'), +}); +exports.commercials = (0, pg_core_1.pgTable)('commercials', { + id: (0, pg_core_1.uuid)('id').primaryKey().defaultRandom(), + userId: (0, pg_core_1.uuid)('userId').references(function () { return exports.users.id; }), + type: (0, pg_core_1.varchar)('type', { length: 255 }), + title: (0, pg_core_1.varchar)('title', { length: 255 }), + description: (0, pg_core_1.text)('description'), + city: (0, pg_core_1.varchar)('city', { length: 255 }), + state: (0, pg_core_1.char)('state', { length: 2 }), + price: (0, pg_core_1.numeric)('price', { precision: 10, scale: 2 }), + favoritesForUser: (0, pg_core_1.varchar)('favoritesForUser', { length: 30 }).array(), + hideImage: (0, pg_core_1.boolean)('hideImage'), + draft: (0, pg_core_1.boolean)('draft'), + zipCode: (0, pg_core_1.integer)('zipCode'), + county: (0, pg_core_1.varchar)('county', { length: 255 }), + email: (0, pg_core_1.varchar)('email', { length: 255 }), + website: (0, pg_core_1.varchar)('website', { length: 255 }), + phoneNumber: (0, pg_core_1.varchar)('phoneNumber', { length: 255 }), + imageOrder: (0, pg_core_1.varchar)('imageOrder', { length: 30 }).array(), + imagePath: (0, pg_core_1.varchar)('imagePath', { length: 30 }).array(), + created: (0, pg_core_1.timestamp)('created'), + updated: (0, pg_core_1.timestamp)('updated'), + visits: (0, pg_core_1.integer)('visits'), + lastVisit: (0, pg_core_1.timestamp)('lastVisit'), +}); diff --git a/bizmatch-server/src/drizzle/schema.ts b/bizmatch-server/src/drizzle/schema.ts index b2f640a..c2eb5e2 100644 --- a/bizmatch-server/src/drizzle/schema.ts +++ b/bizmatch-server/src/drizzle/schema.ts @@ -3,7 +3,8 @@ import { AreasServed, LicensedIn } from 'src/models/db.model'; export const PG_CONNECTION = 'PG_CONNECTION'; export const genderEnum = pgEnum('gender', ['male', 'female']); -export const customerTypeEnum = pgEnum('customerType', ['buyer', 'broker', 'professional']); +export const customerTypeEnum = pgEnum('customerType', ['buyer', 'professional']); +export const customerSubTypeEnum = pgEnum('customerSubType', ['broker', 'cpa', 'attorney', 'titleCompany', 'surveyor', 'appraiser']); export const users = pgTable('users', { id: uuid('id').primaryKey().defaultRandom(), @@ -23,6 +24,7 @@ export const users = pgTable('users', { licensedIn: jsonb('licensedIn').$type(), gender: genderEnum('gender'), customerType: customerTypeEnum('customerType'), + customerSubType: customerSubTypeEnum('customerSubType'), created: timestamp('created'), updated: timestamp('updated'), }); diff --git a/bizmatch-server/src/drizzle/test.js b/bizmatch-server/src/drizzle/test.js new file mode 100644 index 0000000..049353a --- /dev/null +++ b/bizmatch-server/src/drizzle/test.js @@ -0,0 +1,21 @@ +const fs = require('fs'); +const path = require('path'); + +// Angenommen, du hast eine Datei `databaseModels.js` mit deinen pgTable-Definitionen +const { users } = require('./schema.js'); + +function generateTypeScriptInterface(tableDefinition, tableName) { + let interfaceString = `export interface ${tableName} {\n`; + for (const [column, definition] of Object.entries(tableDefinition)) { + // Du musst die Definition parsen, um den korrekten Typ zu extrahieren + const tsType = definition.type === 'uuid' ? 'string' : + definition.type.startsWith('varchar') || definition.type === 'text' ? 'string' : + definition.type === 'boolean' ? 'boolean' : 'any'; + interfaceString += ` ${column}${definition.optional ? '?' : ''}: ${tsType};\n`; + } + interfaceString += '}\n'; + return interfaceString; +} + +const userModelInterface = generateTypeScriptInterface(users.columns, 'User'); +fs.writeFileSync(path.join(__dirname, 'UserInterface.ts'), userModelInterface); \ No newline at end of file diff --git a/bizmatch-server/src/models/db.model.ts b/bizmatch-server/src/models/db.model.ts index 1ce3a18..37afe5e 100644 --- a/bizmatch-server/src/models/db.model.ts +++ b/bizmatch-server/src/models/db.model.ts @@ -15,7 +15,8 @@ export interface User { hasCompanyLogo?: boolean; licensedIn?: LicensedIn[]; gender?: 'male' | 'female'; - customerType?: 'buyer' | 'broker' | 'professional'; + customerType?: 'buyer' | 'professional'; + customerSubType?: 'broker' | 'cpa' | 'attorney' | 'titleCompany' | 'surveyor' | 'appraiser'; created?: Date; updated?: Date; } @@ -37,6 +38,7 @@ export interface UserData { licensedIn?: string[]; gender?: 'male' | 'female'; customerType?: 'buyer' | 'broker' | 'professional'; + customerSubType?: 'broker' | 'cpa' | 'attorney' | 'titleCompany' | 'surveyor' | 'appraiser'; created?: Date; updated?: Date; } diff --git a/bizmatch-server/src/select-options/select-options.controller.ts b/bizmatch-server/src/select-options/select-options.controller.ts index bf35719..cd15626 100644 --- a/bizmatch-server/src/select-options/select-options.controller.ts +++ b/bizmatch-server/src/select-options/select-options.controller.ts @@ -13,6 +13,7 @@ export class SelectOptionsController { customerTypes: this.selectOptionsService.customerTypes, locations: this.selectOptionsService.locations, typesOfCommercialProperty: this.selectOptionsService.typesOfCommercialProperty, + customerSubTypes: this.selectOptionsService.customerSubTypes, }; } } diff --git a/bizmatch-server/src/select-options/select-options.service.ts b/bizmatch-server/src/select-options/select-options.service.ts index 3e78b39..9d637c2 100644 --- a/bizmatch-server/src/select-options/select-options.service.ts +++ b/bizmatch-server/src/select-options/select-options.service.ts @@ -41,9 +41,16 @@ export class SelectOptionsService { ]; public customerTypes: Array = [ { name: 'Buyer', value: 'buyer' }, - { name: 'Broker', value: 'broker' }, { name: 'Professional', value: 'professional' }, ]; + public customerSubTypes: Array = [ + { name: 'Broker', value: 'broker' }, + { name: 'CPA', value: 'cpa' }, + { name: 'Attorney', value: 'attorney' }, + { name: 'Title Company', value: 'titleCompany' }, + { name: 'Surveyor', value: 'surveyor' }, + { name: 'Appraiser', value: 'appraiser' }, + ]; public gender: Array = [ { name: 'Male', value: 'male' }, { name: 'Female', value: 'female' }, diff --git a/bizmatch/live-server.js b/bizmatch/live-server.js new file mode 100644 index 0000000..e69eba5 --- /dev/null +++ b/bizmatch/live-server.js @@ -0,0 +1,36 @@ +const liveServer = require('live-server'); +const path = require('path'); +const fs = require('fs'); +const spdy = require('spdy'); + +const options = { + port: 5000, + root: '../bizmatch-server/pictures', + open: false, + https: { + cert: fs.readFileSync('certs/cert.pem'), + key: fs.readFileSync('certs/key.pem'), + }, + middleware: [] +}; + +spdy.createServer(options.https, (req, res) => { + liveServer.middleware(options.middleware)(req, res, () => { + const filePath = path.join(options.root, req.url); + fs.readFile(filePath, (err, data) => { + if (err) { + res.writeHead(404); + res.end(); + } else { + res.writeHead(200); + res.end(data); + } + }); + }); + }).listen(options.port, (err) => { + if (err) { + console.error(err); + } else { + console.log(`Live server is running on https://localhost:${options.port}`); + } + }); \ No newline at end of file diff --git a/bizmatch/package.json b/bizmatch/package.json index 99d3f7f..eeb7bbb 100644 --- a/bizmatch/package.json +++ b/bizmatch/package.json @@ -3,7 +3,7 @@ "version": "0.0.1", "scripts": { "ng": "ng", - "start": "ng serve & http-server ../bizmatch-server", + "start": "ng serve --host 0.0.0.0 & http-server ../bizmatch-server", "prebuild": "node version.js", "build": "node version.js && ng build", "build.dev": "node version.js && ng build --configuration dev --output-hashing=all", @@ -36,6 +36,7 @@ "cropperjs": "^1.6.1", "dayjs": "^1.11.11", "express": "^4.18.2", + "flowbite": "^2.4.1", "jwt-decode": "^4.0.0", "keycloak-angular": "^15.2.1", "keycloak-js": "^24.0.4", @@ -58,6 +59,7 @@ "@types/express": "^4.17.21", "@types/jasmine": "~5.1.4", "@types/node": "^20.11.20", + "autoprefixer": "^10.4.19", "http-server": "^14.1.1", "jasmine-core": "~5.1.2", "karma": "~6.4.2", @@ -65,6 +67,8 @@ "karma-coverage": "~2.2.1", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", + "postcss": "^8.4.39", + "tailwindcss": "^3.4.4", "typescript": "~5.3.3" } } diff --git a/bizmatch/src/app/app.component.html b/bizmatch/src/app/app.component.html index 3ac829a..03e42b5 100644 --- a/bizmatch/src/app/app.component.html +++ b/bizmatch/src/app/app.component.html @@ -1,25 +1,25 @@ -
-
- @if (actualRoute !=='home' && actualRoute !=='pricing'){ -
- } - -
-
- - -
- - {{ message.header }} - -

{{ message.message }}

-
- -
-
-
-
+ +
+ @if (actualRoute !=='home' && actualRoute !=='pricing'){ +
+ } +
+ + + @if (loadingService.isLoading$ | async) {
diff --git a/bizmatch/src/app/app.component.scss b/bizmatch/src/app/app.component.scss index 4c93062..b22da2b 100644 --- a/bizmatch/src/app/app.component.scss +++ b/bizmatch/src/app/app.component.scss @@ -1,64 +1,58 @@ .container { - display: flex; - flex-direction: column; - min-height: 100vh; + display: flex; + flex-direction: column; + min-height: 100vh; } .content { - flex: 1; - /* Optional: Padding für den Inhalt, um sicherzustellen, dass er nicht direkt am Footer klebt */ - // padding-bottom: 20px; + flex: 1; + /* Optional: Padding für den Inhalt, um sicherzustellen, dass er nicht direkt am Footer klebt */ + // padding-bottom: 20px; } .progress-spinner { - position: fixed; - z-index: 999; - top: 0; - left: 0; - bottom: 0; - right: 0; - display: flex; - flex-direction: column; - align-items: center; + position: fixed; + z-index: 999; + top: 0; + left: 0; + bottom: 0; + right: 0; + display: flex; + flex-direction: column; + align-items: center; } .progress-spinner:before { - content: ''; - display: block; - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.3); + content: ''; + display: block; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.3); } .spinner-text { - margin-top: 20px; /* Abstand zwischen Spinner und Text anpassen */ - font-size: 20px; /* Schriftgröße nach Bedarf anpassen */ - color: #FFF; - text-shadow: 0 0 8px rgba(255, 255, 255, 0.6); /* Hinzufügen eines leichten Glows */ - font-weight: bold; /* Macht den Text fett */ + margin-top: 20px; /* Abstand zwischen Spinner und Text anpassen */ + font-size: 20px; /* Schriftgröße nach Bedarf anpassen */ + color: #fff; + text-shadow: 0 0 8px rgba(255, 255, 255, 0.6); /* Hinzufügen eines leichten Glows */ + font-weight: bold; /* Macht den Text fett */ } .spinner-overlay { - display: flex; - justify-content: center; - align-items: center; - position: fixed; /* oder 'absolute', abhängig vom Kontext */ - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.4); - z-index: 1000; /* Stellt sicher, dass der Overlay über anderen Elementen liegt */ - } - - .spinner-container { - display: flex; - flex-direction: column; - align-items: center; - /* Keine Hintergrundfarbe hier, um Transparenz nur im Overlay zu haben */ - } - -// .spinner-text { -// margin-top: 10px; /* Abstand zwischen Spinner und Text anpassen */ -// font-size: 16px; /* Schriftgröße nach Bedarf anpassen */ -// color: #FFF; /* Schriftfarbe für bessere Lesbarkeit auf dunklem Hintergrund */ -// } \ No newline at end of file + display: flex; + justify-content: center; + align-items: center; + position: fixed; /* oder 'absolute', abhängig vom Kontext */ + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.4); + z-index: 1000; /* Stellt sicher, dass der Overlay über anderen Elementen liegt */ +} + +.spinner-container { + display: flex; + flex-direction: column; + align-items: center; + /* Keine Hintergrundfarbe hier, um Transparenz nur im Overlay zu haben */ +} diff --git a/bizmatch/src/app/app.component.ts b/bizmatch/src/app/app.component.ts index 60767db..b53fd33 100644 --- a/bizmatch/src/app/app.component.ts +++ b/bizmatch/src/app/app.component.ts @@ -1,6 +1,7 @@ import { CommonModule } from '@angular/common'; import { Component, HostListener } from '@angular/core'; import { ActivatedRoute, NavigationEnd, Router, RouterOutlet } from '@angular/router'; +import { initFlowbite } from 'flowbite'; import { KeycloakService } from 'keycloak-angular'; import onChange from 'on-change'; import { ConfirmationService } from 'primeng/api'; @@ -49,6 +50,7 @@ export class AppComponent { ngOnInit() {} @HostListener('window:keydown', ['$event']) handleKeyboardEvent(event: KeyboardEvent) { + initFlowbite(); if (event.shiftKey && event.ctrlKey && event.key === 'V') { this.showVersionDialog(); } diff --git a/bizmatch/src/app/components/footer/footer.component.html b/bizmatch/src/app/components/footer/footer.component.html index 61d7fae..85cd48b 100644 --- a/bizmatch/src/app/components/footer/footer.component.html +++ b/bizmatch/src/app/components/footer/footer.component.html @@ -1,4 +1,4 @@ -
+ + +
+
+ + Privacy Statement +
+
+
+
+
+

+ Privacy Policy
+ We are committed to protecting your privacy. We have established this statement as a testament to our commitment to your privacy. +

+

This Privacy Policy relates to the use of any personal information you provide to us through this websites.

+

+ By accepting the Privacy Policy during registration or the sending of an enquiry, you expressly consent to our collection, storage, use and disclosure of your personal information as described in this Privacy + Policy. +

+

+ We may update our Privacy Policy from time to time. Our Privacy Policy was last updated in Febuary 2018 and is effective upon acceptance for new users. By continuing to use our websites or otherwise + continuing to deal with us, you accept this Privacy Policy. +

+

+ Collection of personal information
+ Anyone can browse our websites without revealing any personally identifiable information. +

+

However, should you wish to contact a business for sale, a franchise opportunity or an intermediary, we will require you to provide some personal information.

+

Should you wish to advertise your services, your business (es) or your franchise opportunity, we will require you to provide some personal information.

+

By providing personal information, you are consenting to the transfer and storage of that information on our servers located in the United States.

+

We may collect and store the following personal information:

+

+ Your name, email address, physical address, telephone numbers, and (depending on the service used), your business information, financial information, such as credit / payment card details;
+ transactional information based on your activities on the site; information that you disclose in a forum on any of our websites, feedback, correspondence through our websites, and correspondence sent to + us;
+ other information from your interaction with our websites, services, content and advertising, including computer and connection information, statistics on page views, traffic to and from the sites, ad data, + IP address and standard web log information;
+ supplemental information from third parties (for example, if you incur a debt, we will generally conduct a credit check by obtaining additional information about you from a credit bureau, as permitted by law; + or if the information you provide cannot be verified,
+ we may ask you to send us additional information, or to answer additional questions online to help verify your information). +

+

+ How we use your information
+ The primary reason we collect your personal information is to improve the services we deliver to you through our website. By registering or sending an enquiry through our website, you agree that we may use + your personal information to:
+ provide the services and customer support you request;
+ connect you with relevant parties:
+ If you are a buyer we will pass some or all of your details on to the seller / intermediary along with any message you have typed. This allows the seller to contact you in order to pursue a possible sale of a + business;
+ If you are a seller / intermediary, we will disclose your details where you have given us permission to do so;
+ resolve disputes, collect fees, and troubleshoot problems;
+ prevent potentially prohibited or illegal activities, and enforce our Terms and Conditions;
+ customize, measure and improve our services, conduct internal market research, provide content and advertising;
+ tell you about other Biz-Match products and services, target marketing, send you service updates, and promotional offers based on your communication preferences. +

+

+ Our disclosure of your information
+ We may disclose personal information to respond to legal requirements, enforce our policies, respond to claims that a listing or other content infringes the rights of others, or protect anyone’s rights, + property, or safety. +

+

+ We may also share your personal information with
+ When you select to register an account as a business buyer, you provide your personal details and we will pass this on to a seller of a business or franchise when you request more information. +

+

+ When you select to register an account as a business broker or seller on the site, we provide a public platform on which to establish your business profile. This profile consists of pertinent facts about your + business along with your personal information; namely, the contact information you provide to facilitate contact between you and other users’ of the site. Direct email addresses and telephone numbers will not + be publicly displayed unless you specifically include it on your profile. +

+

+ The information a user includes within the forums provided on the site is publicly available to other users’ of the site. Please be aware that any personal information you elect to provide in a public forum + may be used to send you unsolicited messages; we are not responsible for the personal information a user elects to disclose within their public profile, or in the private communications that users’ engage in + on the site. +

+

+ We post testimonials on the site obtained from users’. These testimonials may include the name, city, state or region and business of the user. We obtain permission from our users’ prior to posting their + testimonials on the site. We are not responsible for any personal information a user selects to include within their testimonial. +

+

+ When you elect to email a friend about the site, or a particular business, we request the third party’s email address to send this one time email. We do not share this information with any third parties for + their promotional purposes and only store the information to gauge the effectiveness of our referral program. +

+

We may share your personal information with our service providers where necessary. We employ the services of a payment processor to fulfil payment for services purchased on the site.

+

+ We works with a number of partners or affiliates, where we provide marketing services for these companies. These third party agents collect your personal information to facilitate your service request and the + information submitted here is governed by their privacy policy. +

+

+ Masking Policy
+ In some cases, where the third party agent collects your information, the affiliate portal may appear within a BizMatch.net frame. It is presented as a BizMatch.net page for a streamlined user interface + however the data collected on such pages is governed by the third party agent’s privacy policy. +

+

+ Legal Disclosure
+ In certain circumstances, we may be legally required to disclose information collected on the site to law enforcement, government agencies or other third parties. We reserve the right to disclose information + to our service providers and to law enforcement or government agencies where a formal request such as in response to a court order, subpoena or judicial proceeding is made. Where we believe in good faith that + disclosure of information is necessary to prevent imminent physical or financial harm, or loss, or in protecting against illegal activity on the site, we reserve to disclose information. +

+

+ Should the company undergo the merger, acquisition or sale of some or all of its assets, your personal information may likely be a part of the transferred assets. In such an event, your personal information + on the site, would be governed by this privacy statement; any changes to the privacy practices governing your information as a result of transfer would be relayed to you by means of a prominent notice on the + Site, or by email. +

+

+ Using information from BizMatch.net website
+ In certain cases, (where you are receiving contact details of buyers interested in your business opportunity or a business opportunity you represent), you must comply with data protection laws, and give other + users a chance to remove themselves from your database and a chance to review what information you have collected about them. +

+

+ You agree to use BizMatch.net user information only for: +

+

+ BizMatch.net transaction-related purposes that are not unsolicited commercial messages;
+ using services offered through BizMatch.net, or
+ other purposes that a user expressly chooses. +

+

+ Marketing
+ We do not sell or rent your personal information to third parties for their marketing purposes without your explicit consent. Where you explicitly express your consent at the point of collection to receive + offers from third party partners or affiliates, we will communicate to you on their behalf. We will not pass your information on. +

+

+ You will receive email marketing communications from us throughout the duration of your relationship with our websites. If you do not wish to receive marketing communications from us you may unsubscribe and / + or change your preferences at any time by following instructions included within a communication or emailing Customer Services. +

+

If you have an account with one of our websites you can also log in and click the email preferences link to unsubscribe and / or change your preferences.

+

+ Please note that we reserve the right to send all website users notifications and administrative emails where necessary which are considered a part of the service. Given that these messages aren’t promotional + in nature, you will be unable to opt-out of them. +

+

+ Cookies
+ A cookie is a small text file written to your hard drive that contains information about you. Cookies do not contain any personal information about users. Once you close your browser or log out of the + website, the cookie simply terminates. We use cookies so that we can personalise your experience of our websites. +

+

+ If you set up your browser to reject the cookie, you may still use the website however; doing so may interfere with your use of some aspects of our websites. Some of our business partners use cookies on our + site (for example, advertisers). We have no access to or control over these cookies. +

+

For more information about how BizMatch.net uses cookies please read our Cookie Policy.

+

+ Spam, spyware or spoofing
+ We and our users do not tolerate spam. Make sure to set your email preferences so we can communicate with you, as you prefer. Please add us to your safe senders list. To report spam or spoof emails, please + contact us using the contact information provided in the Contact Us section of this privacy statement. +

+

+ You may not use our communication tools to send spam or otherwise send content that would breach our Terms and Conditions. We automatically scan and may manually filter messages to check for spam, viruses, + phishing attacks and other malicious activity or illegal or prohibited content. We may also store these messages for back up purposes only. +

+

+ If you send an email to an email address that is not registered in our community, we do not permanently store that email or use that email address for any marketing purpose. We do not rent or sell these email + addresses. +

+

+ Account protection
+ Your password is the key to your account. Make sure this is stored safely. Use unique numbers, letters and special characters, and do not disclose your password to anyone. If you do share your password or + your personal information with others, remember that you are responsible for all actions taken in the name of your account. If you lose control of your password, you may lose substantial control over your + personal information and may be subject to legally binding actions taken on your behalf. Therefore, if your password has been compromised for any reason, you should immediately notify us and change your + password. +

+

+ Accessing, reviewing and changing your personal information
+ You can view and amend your personal information at any time by logging in to your account online. You must promptly update your personal information if it changes or is inaccurate. +

+

If at any time you wish to close your account, please contact Customer Services and instruct us to do so. We will process your request as soon as we can.

+

You may also contact us at any time to find out what information we hold about you, what we do with it and ask us to update it for you.

+

+ We do retain personal information from closed accounts to comply with law, prevent fraud, collect any fees owed, resolve disputes, troubleshoot problems, assist with any investigations, enforce our Terms and + Conditions, and take other actions otherwise permitted by law. +

+

+ Security
+ Your information is stored on our servers located in the USA. We treat data as an asset that must be protected and use a variety of tools (encryption, passwords, physical security, etc.) to protect your + personal information against unauthorized access and disclosure. However, no method of security is 100% effective and while we take every measure to protect your personal information, we make no guarantees of + its absolute security. +

+

We employ the use of SSL encryption during the transmission of sensitive data across our websites.

+

+ Third parties
+ Except as otherwise expressly included in this Privacy Policy, this document addresses only the use and disclosure of information we collect from you. If you disclose your information to others, whether they + are buyers or sellers on our websites or other sites throughout the internet, different rules may apply to their use or disclosure of the information you disclose to them. Dynamis does not control the privacy + policies of third parties, and you are subject to the privacy policies of those third parties where applicable. +

+

We encourage you to ask questions before you disclose your personal information to others.

+

+ General
+ We may change this Privacy Policy from time to time as we add new products and applications, as we improve our current offerings, and as technologies and laws change. You can determine when this Privacy + Policy was last revised by referring to the “Last Updated” legend at the top of this page. +

+

+ Any changes will become effective upon our posting of the revised Privacy Policy on our affected websites. We will provide notice to you if these changes are material and, where required by applicable law, we + will obtain your consent. This notice may be provided by email, by posting notice of the changes on our affected websites or by other means, consistent with applicable laws. +

+

+ Contact Us
+ If you have any questions or comments about our privacy policy, and you can’t find the answer to your question on our help pages, please contact us using this form or email support@bizmatch.net, or write + to us at BizMatch, 715 S. Tanahua, Corpus Christi, TX 78401.) +

+
+
+
+
- +
+
+ + Terms of use +
+
+
+
+
+ AGREEMENT BETWEEN USER AND BizMatch

+

The BizMatch Web Site is comprised of various Web pages operated by BizMatch.

+

+ The BizMatch Web Site is offered to you conditioned on your acceptance without modification of the terms, conditions, and notices contained herein. Your use of the BizMatch Web Site constitutes your + agreement to all such terms, conditions, and notices. +

+

+ MODIFICATION OF THESE TERMS OF USE +

+

+ BizMatch reserves the right to change the terms, conditions, and notices under which the BizMatch Web Site is offered, including but not limited to the charges associated with the use of the BizMatch Web + Site. +

+

+ LINKS TO THIRD PARTY SITES +

+

+ The BizMatch Web Site may contain links to other Web Sites ("Linked Sites"). The Linked Sites are not under the control of BizMatch and BizMatch is not responsible for the contents of any Linked Site, + including without limitation any link contained in a Linked Site, or any changes or updates to a Linked Site. BizMatch is not responsible for webcasting or any other form of transmission received from any + Linked Site. BizMatch is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by BizMatch of the site or any association with its operators. +

+

+ NO UNLAWFUL OR PROHIBITED USE +

+

+ As a condition of your use of the BizMatch Web Site, you warrant to BizMatch that you will not use the BizMatch Web Site for any purpose that is unlawful or prohibited by these terms, conditions, and + notices. You may not use the BizMatch Web Site in any manner which could damage, disable, overburden, or impair the BizMatch Web Site or interfere with any other party’s use and enjoyment of the BizMatch + Web Site. You may not obtain or attempt to obtain any materials or information through any means not intentionally made available or provided for through the BizMatch Web Sites. +

+

+ USE OF COMMUNICATION SERVICES +

+

+ The BizMatch Web Site may contain bulletin board services, chat areas, news groups, forums, communities, personal web pages, calendars, and/or other message or communication facilities designed to enable + you to communicate with the public at large or with a group (collectively, "Communication Services"), you agree to use the Communication Services only to post, send and receive messages and material that + are proper and related to the particular Communication Service. By way of example, and not as a limitation, you agree that when using a Communication Service, you will not: +

+

 

+

+

+ §  Defame, abuse, harass, stalk, threaten or otherwise violate the legal rights (such as rights of privacy and publicity) of others. +

+

 

+

+ §  Publish, post, upload, distribute or disseminate any inappropriate, profane, defamatory, infringing, obscene, indecent or unlawful topic, name, material or information. +

+

+ §  Upload files that contain software or other material protected by intellectual property laws (or by rights of privacy of publicity) unless you own or control the rights thereto or have received all + necessary consents. +

+

+ §  Upload files that contain viruses, corrupted files, or any other similar software or programs that may damage the operation of another’s computer. +

+

+ §  Advertise or offer to sell or buy any goods or services for any business purpose, unless such Communication Service specifically allows such messages. +

+

+ §  Conduct or forward surveys, contests, pyramid schemes or chain letters. +

+

+ §  Download any file posted by another user of a Communication Service that you know, or reasonably should know, cannot be legally distributed in such manner. +

+

+ §  Falsify or delete any author attributions, legal or other proper notices or proprietary designations or labels of the origin or source of software or other material contained in a file that is + uploaded. +

+

+ §  Restrict or inhibit any other user from using and enjoying the Communication Services. +

+

+ §  Violate any code of conduct or other guidelines which may be applicable for any particular Communication Service. +

+

+ §  Harvest or otherwise collect information about others, including e-mail addresses, without their consent. +

+

+ §  Violate any applicable laws or regulations. +

+

+ BizMatch has no obligation to monitor the Communication Services. However, BizMatch reserves the right to review materials posted to a Communication Service and to remove any materials in its sole + discretion. BizMatch reserves the right to terminate your access to any or all of the Communication Services at any time without notice for any reason whatsoever. +

+

+ BizMatch reserves the right at all times to disclose any information as necessary to satisfy any applicable law, regulation, legal process or governmental request, or to edit, refuse to post or to remove + any information or materials, in whole or in part, in BizMatch’s sole discretion. +

+

+ Always use caution when giving out any personally identifying information about yourself or your children in any Communication Service. BizMatch does not control or endorse the content, messages or + information found in any Communication Service and, therefore, BizMatch specifically disclaims any liability with regard to the Communication Services and any actions resulting from your participation in + any Communication Service. Managers and hosts are not authorized BizMatch spokespersons, and their views do not necessarily reflect those of BizMatch. +

+

+ Materials uploaded to a Communication Service may be subject to posted limitations on usage, reproduction and/or dissemination. You are responsible for adhering to such limitations if you download the + materials. +

+

+ MATERIALS PROVIDED TO BizMatch OR POSTED AT ANY BizMatch WEB SITE +

+

+ BizMatch does not claim ownership of the materials you provide to BizMatch (including feedback and suggestions) or post, upload, input or submit to any BizMatch Web Site or its associated services + (collectively "Submissions"). However, by posting, uploading, inputting, providing or submitting your Submission you are granting BizMatch, its affiliated companies and necessary sublicensees permission + to use your Submission in connection with the operation of their Internet businesses including, without limitation, the rights to: copy, distribute, transmit, publicly display, publicly perform, + reproduce, edit, translate and reformat your Submission; and to publish your name in connection with your Submission. +

+

+ No compensation will be paid with respect to the use of your Submission, as provided herein. BizMatch is under no obligation to post or use any Submission you may provide and may remove any Submission at + any time in BizMatch’s sole discretion. +

+

+ By posting, uploading, inputting, providing or submitting your Submission you warrant and represent that you own or otherwise control all of the rights to your Submission as described in this section + including, without limitation, all the rights necessary for you to provide, post, upload, input or submit the Submissions. +

+

+ LIABILITY DISCLAIMER +

+

+ THE INFORMATION, SOFTWARE, PRODUCTS, AND SERVICES INCLUDED IN OR AVAILABLE THROUGH THE BizMatch WEB SITE MAY INCLUDE INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE + INFORMATION HEREIN. BizMatch AND/OR ITS SUPPLIERS MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE BizMatch WEB SITE AT ANY TIME. ADVICE RECEIVED VIA THE BizMatch WEB SITE SHOULD NOT BE RELIED UPON FOR + PERSONAL, MEDICAL, LEGAL OR FINANCIAL DECISIONS AND YOU SHOULD CONSULT AN APPROPRIATE PROFESSIONAL FOR SPECIFIC ADVICE TAILORED TO YOUR SITUATION. +

+

+ BizMatch AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, AVAILABILITY, TIMELINESS, AND ACCURACY OF THE INFORMATION, SOFTWARE, PRODUCTS, SERVICES AND RELATED GRAPHICS + CONTAINED ON THE BizMatch WEB SITE FOR ANY PURPOSE. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, ALL SUCH INFORMATION, SOFTWARE, PRODUCTS, SERVICES AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT + WARRANTY OR CONDITION OF ANY KIND. BizMatch AND/OR ITS SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION, SOFTWARE, PRODUCTS, SERVICES AND RELATED GRAPHICS, INCLUDING + ALL IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. +

+

+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL BizMatch AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OR PERFORMANCE OF THE BizMatch WEB SITE, WITH THE DELAY OR INABILITY + TO USE THE BizMatch WEB SITE OR RELATED SERVICES, THE PROVISION OF OR FAILURE TO PROVIDE SERVICES, OR FOR ANY INFORMATION, SOFTWARE, PRODUCTS, SERVICES AND RELATED GRAPHICS OBTAINED THROUGH THE BizMatch + WEB SITE, OR OTHERWISE ARISING OUT OF THE USE OF THE BizMatch WEB SITE, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF BizMatch OR ANY OF ITS SUPPLIERS HAS BEEN + ADVISED OF THE POSSIBILITY OF DAMAGES. BECAUSE SOME STATES/JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY + TO YOU. IF YOU ARE DISSATISFIED WITH ANY PORTION OF THE BizMatch WEB SITE, OR WITH ANY OF THESE TERMS OF USE, YOUR SOLE AND EXCLUSIVE REMEDY IS TO DISCONTINUE USING THE BizMatch WEB SITE. +

+

SERVICE CONTACT : info@bizmatch.net

+

+ TERMINATION/ACCESS RESTRICTION +

+

+ BizMatch reserves the right, in its sole discretion, to terminate your access to the BizMatch Web Site and the related services or any portion thereof at any time, without notice. GENERAL To the maximum + extent permitted by law, this agreement is governed by the laws of the State of Washington, U.S.A. and you hereby consent to the exclusive jurisdiction and venue of courts in King County, Washington, + U.S.A. in all disputes arising out of or relating to the use of the BizMatch Web Site. Use of the BizMatch Web Site is unauthorized in any jurisdiction that does not give effect to all provisions of these + terms and conditions, including without limitation this paragraph. You agree that no joint venture, partnership, employment, or agency relationship exists between you and BizMatch as a result of this + agreement or use of the BizMatch Web Site. BizMatch’s performance of this agreement is subject to existing laws and legal process, and nothing contained in this agreement is in derogation of BizMatch’s + right to comply with governmental, court and law enforcement requests or requirements relating to your use of the BizMatch Web Site or information provided to or gathered by BizMatch with respect to such + use. If any part of this agreement is determined to be invalid or unenforceable pursuant to applicable law including, but not limited to, the warranty disclaimers and liability limitations set forth + above, then the invalid or unenforceable provision will be deemed superseded by a valid, enforceable provision that most closely matches the intent of the original provision and the remainder of the + agreement shall continue in effect. Unless otherwise specified herein, this agreement constitutes the entire agreement between the user and BizMatch with respect to the BizMatch Web Site and it supersedes + all prior or contemporaneous communications and proposals, whether electronic, oral or written, between the user and BizMatch with respect to the BizMatch Web Site. A printed version of this agreement and + of any notice given in electronic form shall be admissible in judicial or administrative proceedings based upon or relating to this agreement to the same extent an d subject to the same conditions as + other business documents and records originally generated and maintained in printed form. It is the express wish to the parties that this agreement and all related documents be drawn up in English. +

+

+ COPYRIGHT AND TRADEMARK NOTICES: +

+

All contents of the BizMatch Web Site are: Copyright 2011 by Bizmatch Business Solutions and/or its suppliers. All rights reserved.

+

+ TRADEMARKS +

+

The names of actual companies and products mentioned herein may be the trademarks of their respective owners.

+

+ The example companies, organizations, products, people and events depicted herein are fictitious. No association with any real company, organization, product, person, or event is intended or should be + inferred. +

+

Any rights not expressly granted herein are reserved.

+

+ NOTICES AND PROCEDURE FOR MAKING CLAIMS OF COPYRIGHT INFRINGEMENT +

+

+ Pursuant to Title 17, United States Code, Section 512(c)(2), notifications of claimed copyright infringement under United States copyright law should be sent to Service Provider’s Designated Agent. ALL + INQUIRIES NOT RELEVANT TO THE FOLLOWING PROCEDURE WILL RECEIVE NO RESPONSE. See Notice and Procedure for Making Claims of Copyright Infringement.
+

+

 

+

+ We reserve the right to update or revise these Terms of Use at any time without notice. Please check the Terms of Use periodically for changes. The revised terms will be effective immediately as + soon as they are posted on the WebSite and by continuing to use the Site you agree to be bound by the revised terms

+
+
+
+
+
+ - +

+

§  Defame, abuse, harass, stalk, threaten or otherwise violate the legal rights (such as rights of privacy and publicity) of others. + >Defame, abuse, harass, stalk, threaten or otherwise violate the legal rights (such as rights of privacy and publicity) of others.

 

- §  Publish, post, upload, distribute or disseminate any inappropriate, profane, defamatory, infringing, obscene, indecent or unlawful topic, name, material or information. + >Publish, post, upload, distribute or disseminate any inappropriate, profane, defamatory, infringing, obscene, indecent or unlawful topic, name, material or information.

- §  Upload files that contain software or other material protected by intellectual property laws (or by rights of privacy of publicity) unless you own or control the rights thereto or have received all necessary consents.

- §  Upload files that contain viruses, corrupted files, or any other similar software or programs that may damage the operation of another’s computer. + >Upload files that contain viruses, corrupted files, or any other similar software or programs that may damage the operation of another’s computer.

- §  Advertise or offer to sell or buy any goods or services for any business purpose, unless such Communication Service specifically allows such messages. + >Advertise or offer to sell or buy any goods or services for any business purpose, unless such Communication Service specifically allows such messages.

- §  Conduct or forward surveys, contests, pyramid schemes or chain letters. + >Conduct or forward surveys, contests, pyramid schemes or chain letters.

- §  Download any file posted by another user of a Communication Service that you know, or reasonably should know, cannot be legally distributed in such manner. + >Download any file posted by another user of a Communication Service that you know, or reasonably should know, cannot be legally distributed in such manner.

- §  Falsify or delete any author attributions, legal or other proper notices or proprietary designations or labels of the origin or source of software or other material contained in a file that is uploaded.

- §  Restrict or inhibit any other user from using and enjoying the Communication Services. + >Restrict or inhibit any other user from using and enjoying the Communication Services.

- §  Violate any code of conduct or other guidelines which may be applicable for any particular Communication Service. + >Violate any code of conduct or other guidelines which may be applicable for any particular Communication Service.

- §  Harvest or otherwise collect information about others, including e-mail addresses, without their consent. + >Harvest or otherwise collect information about others, including e-mail addresses, without their consent.

- §  Violate any applicable laws or regulations. + >Violate any applicable laws or regulations.


-

 

@@ -491,7 +989,7 @@ We reserve the right to update or revise these Terms of Use at any time without notice. Please check the Terms of Use periodically for changes. The revised terms will be effective immediately as soon as they are posted on the WebSite and by continuing to use the Site you agree to be bound by the revised terms
-

@@ -499,4 +997,4 @@ -
+
--> diff --git a/bizmatch/src/app/components/footer/footer.component.scss b/bizmatch/src/app/components/footer/footer.component.scss index a8ee0fc..00f1cfa 100644 --- a/bizmatch/src/app/components/footer/footer.component.scss +++ b/bizmatch/src/app/components/footer/footer.component.scss @@ -1,6 +1,22 @@ -:host{ - height: 192px; +:host { + height: 192px; } div { - font-size: small; -} \ No newline at end of file + font-size: small; +} +@media (max-width: 1023px) { + .order-2 { + order: 2; + } + .order-3 { + order: 3; + } +} +p { + display: block; + margin-block-start: 1em; + margin-block-end: 1em; + margin-inline-start: 0px; + margin-inline-end: 0px; + unicode-bidi: isolate; +} diff --git a/bizmatch/src/app/components/footer/footer.component.ts b/bizmatch/src/app/components/footer/footer.component.ts index 0beebcb..415ad51 100644 --- a/bizmatch/src/app/components/footer/footer.component.ts +++ b/bizmatch/src/app/components/footer/footer.component.ts @@ -1,9 +1,9 @@ import { Component } from '@angular/core'; -import { KeycloakService } from 'keycloak-angular'; +import { initFlowbite } from 'flowbite'; import { SidebarModule } from 'primeng/sidebar'; import { SharedModule } from '../../shared/shared/shared.module'; @Component({ - selector: 'footer', + selector: 'app-footer', standalone: true, imports: [SharedModule, SidebarModule], templateUrl: './footer.component.html', @@ -12,13 +12,17 @@ import { SharedModule } from '../../shared/shared/shared.module'; export class FooterComponent { privacyVisible = false; termsVisible = false; - constructor(public keycloakService: KeycloakService) {} - login() { - this.keycloakService.login({ - redirectUri: window.location.href, - }); - } - register() { - this.keycloakService.register({ redirectUri: `${window.location.origin}/account` }); + currentYear: number = new Date().getFullYear(); + ngOnInit() { + initFlowbite(); } + // constructor(public keycloakService: KeycloakService) {} + // login() { + // this.keycloakService.login({ + // redirectUri: window.location.href, + // }); + // } + // register() { + // this.keycloakService.register({ redirectUri: `${window.location.origin}/account` }); + // } } diff --git a/bizmatch/src/app/pages/home/home.component.html b/bizmatch/src/app/pages/home/home.component.html index 82b0004..8211eef 100644 --- a/bizmatch/src/app/pages/home/home.component.html +++ b/bizmatch/src/app/pages/home/home.component.html @@ -1,4 +1,4 @@ -
+ +
+ Logo + + +
+ +
+
+ Pricing + Log In + Register + +
+ +
+
+
+
+

Find businesses for sale.

+

Unlocking Exclusive Opportunities - Empowering Entrepreneurial Dreams

+
+ + +
+ +
+
+ + +
+
Or search using filters ▼
+
+
+
+
+
diff --git a/bizmatch/src/app/pages/home/home.component.scss b/bizmatch/src/app/pages/home/home.component.scss index b73e824..a89757e 100644 --- a/bizmatch/src/app/pages/home/home.component.scss +++ b/bizmatch/src/app/pages/home/home.component.scss @@ -1,24 +1,30 @@ -:host { - height: 100%; -} +// :host { +// height: 100%; +// } -.container { - background-image: url(../../../assets/images/index-bg.webp); - // background-image: url(../../../assets/images/1_Version.jpg); - //background-image: url(../../../assets/images/2_1_Version.jpg); +// .container { +// background-image: url(../../../assets/images/index-bg.webp); +// background-size: cover; +// background-position: center; +// height: 100vh; +// } +// .combo_lp { +// width: 200px; +// } +// .p-button-white { +// color: aliceblue; +// } +// .mt-11 { +// margin-top: 5.9rem !important; +// } +// .mt-22 { +// margin-top: 9.7rem !important; +// } +.bg-cover-custom { + background-image: url('/assets/images/index-bg.webp'); background-size: cover; background-position: center; - height: 100vh; -} -.combo_lp { - width: 200px; -} -.p-button-white { - color: aliceblue; -} -.mt-11 { - margin-top: 5.9rem !important; -} -.mt-22 { - margin-top: 9.7rem !important; + border-radius: 20px; + box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3); + min-height: calc(100vh - 4rem); } diff --git a/bizmatch/src/app/pages/home/home.component.ts b/bizmatch/src/app/pages/home/home.component.ts index d9f2fcc..cce8e18 100644 --- a/bizmatch/src/app/pages/home/home.component.ts +++ b/bizmatch/src/app/pages/home/home.component.ts @@ -27,26 +27,27 @@ export class HomeComponent { minPrice: string; criteria: ListingCriteria; states = []; + isMenuOpen = false; public constructor(private router: Router, private activatedRoute: ActivatedRoute, public selectOptions: SelectOptionsService, public keycloakService: KeycloakService, private listingsService: ListingsService) { this.criteria = onChange(getCriteriaStateObject(), getSessionStorageHandler); resetCriteria(this.criteria); } async ngOnInit() { - if (this.activeTabAction === 'business' || this.activeTabAction === 'commercialProperty') { - const statesResult = await this.listingsService.getAllStates(this.activeTabAction); - this.states = statesResult.map(s => s.state).map(ls => ({ name: this.selectOptions.getState(ls as string), value: ls })); - } else { - this.states = []; - } + // if (this.activeTabAction === 'business' || this.activeTabAction === 'commercialProperty') { + // const statesResult = await this.listingsService.getAllStates(this.activeTabAction); + // this.states = statesResult.map(s => s.state).map(ls => ({ name: this.selectOptions.getState(ls as string), value: ls })); + // } else { + // this.states = []; + // } } async changeTab(tabname: 'business' | 'commercialProperty' | 'broker') { this.activeTabAction = tabname; - if (this.activeTabAction === 'business' || this.activeTabAction === 'commercialProperty') { - const statesResult = await this.listingsService.getAllStates(this.activeTabAction); - this.states = statesResult.map(s => s.state).map(ls => ({ name: this.selectOptions.getState(ls as string), value: ls })); - } else { - this.states = this.selectOptions.states; - } + // if (this.activeTabAction === 'business' || this.activeTabAction === 'commercialProperty') { + // const statesResult = await this.listingsService.getAllStates(this.activeTabAction); + // this.states = statesResult.map(s => s.state).map(ls => ({ name: this.selectOptions.getState(ls as string), value: ls })); + // } else { + // this.states = this.selectOptions.states; + // } } search() { const data = { keep: true }; @@ -61,4 +62,7 @@ export class HomeComponent { register() { this.keycloakService.register({ redirectUri: `${window.location.origin}/account` }); } + toggleMenu() { + this.isMenuOpen = !this.isMenuOpen; + } } diff --git a/bizmatch/src/app/pages/subscription/account/account.component.html b/bizmatch/src/app/pages/subscription/account/account.component.html index 69bc855..047673d 100644 --- a/bizmatch/src/app/pages/subscription/account/account.component.html +++ b/bizmatch/src/app/pages/subscription/account/account.component.html @@ -9,15 +9,27 @@
@if (user){
-
+

You can only modify your email by contacting us at support@bizmatch.net

-
+
+
+ + +
diff --git a/bizmatch/src/app/pages/subscription/account/account.component.ts b/bizmatch/src/app/pages/subscription/account/account.component.ts index 70a44d6..5374dd3 100644 --- a/bizmatch/src/app/pages/subscription/account/account.component.ts +++ b/bizmatch/src/app/pages/subscription/account/account.component.ts @@ -75,7 +75,17 @@ export class AccountComponent { try { this.user = await this.userService.getByMail(email); } catch (e) { - this.user = { email, firstname: keycloakUser.firstName, lastname: keycloakUser.lastName, areasServed: [], licensedIn: [], companyOverview: '', offeredServices: '', customerType: 'broker' }; + this.user = { + email, + firstname: keycloakUser.firstName, + lastname: keycloakUser.lastName, + areasServed: [], + licensedIn: [], + companyOverview: '', + offeredServices: '', + customerType: 'professional', + customerSubType: 'broker', + }; this.user = await this.userService.save(this.user); } } @@ -122,7 +132,7 @@ export class AccountComponent { this.user.areasServed.splice(this.user.areasServed.length - 1, 1); } get isProfessional() { - return this.user.customerType === 'broker' || this.user.customerType === 'professional'; + return this.user.customerType === 'professional'; } select(event: any, type: 'company' | 'profile') { const imageUrl = URL.createObjectURL(event.files[0]); diff --git a/bizmatch/src/app/services/select-options.service.ts b/bizmatch/src/app/services/select-options.service.ts index c4a9a02..0f5acaa 100644 --- a/bizmatch/src/app/services/select-options.service.ts +++ b/bizmatch/src/app/services/select-options.service.ts @@ -17,6 +17,7 @@ export class SelectOptionsService { this.prices = allSelectOptions.prices; this.listingCategories = allSelectOptions.listingCategories; this.customerTypes = allSelectOptions.customerTypes; + this.customerSubTypes = allSelectOptions.customerSubTypes; this.states = allSelectOptions.locations; this.gender = allSelectOptions.gender; this.typesOfCommercialProperty = allSelectOptions.typesOfCommercialProperty; @@ -34,7 +35,7 @@ export class SelectOptionsService { public gender: Array; public states: Array; - + public customerSubTypes: Array; getState(value: string): string { return this.states.find(l => l.value === value)?.name; } diff --git a/bizmatch/src/environments/environment.base.ts b/bizmatch/src/environments/environment.base.ts index cb992b5..8b912c9 100644 --- a/bizmatch/src/environments/environment.base.ts +++ b/bizmatch/src/environments/environment.base.ts @@ -1,5 +1,7 @@ +export const hostname = window.location.hostname; export const environment_base = { - apiBaseUrl: 'http://localhost:3000', + // apiBaseUrl: 'http://localhost:3000', + apiBaseUrl: `http://${hostname}:3000`, imageBaseUrl: 'https://dev.bizmatch.net', buildVersion: '', mailinfoUrl: 'https://dev.bizmatch.net', diff --git a/bizmatch/src/environments/environment.ts b/bizmatch/src/environments/environment.ts index 5c0076c..d59ebd0 100644 --- a/bizmatch/src/environments/environment.ts +++ b/bizmatch/src/environments/environment.ts @@ -5,4 +5,5 @@ environment.mailinfoUrl = 'http://localhost:4200'; environment.imageBaseUrl = 'http://localhost:4200'; environment.keycloak.clientId = 'dev'; environment.keycloak.realm = 'dev'; -environment.keycloak.redirectUri = 'http://localhost:4200'; +environment.keycloak.redirectUri = 'http://192.168.178.24:4200'; +// environment.keycloak.redirectUri = 'http://localhost:4200'; diff --git a/bizmatch/src/styles.scss b/bizmatch/src/styles.scss index a8040be..7cb1edf 100644 --- a/bizmatch/src/styles.scss +++ b/bizmatch/src/styles.scss @@ -1,11 +1,15 @@ @import 'primeng/resources/primeng.css'; @import 'primeicons/primeicons.css'; -// @import 'primeflex/primeflex.scss'; -@import 'primeflex/primeflex.css'; + +// @import 'primeflex/primeflex.css'; @import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap'); @import 'primeng/resources/themes/lara-light-blue/theme.css'; @import '@fortawesome/fontawesome-free/css/all.min.css'; +// In Ihrer src/styles.css Datei: +@import 'tailwindcss/base'; +@import 'tailwindcss/components'; +@import 'tailwindcss/utilities'; :root { --text-color-secondary: rgba(255, 255, 255); --wrapper-width: 1491px; diff --git a/bizmatch/tailwind.config.js b/bizmatch/tailwind.config.js new file mode 100644 index 0000000..93914b0 --- /dev/null +++ b/bizmatch/tailwind.config.js @@ -0,0 +1,26 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + "./src/**/*.{html,ts}", + "./node_modules/flowbite/**/*.js" // add this line + ], + theme: { + extend: { + fontSize: { + 'xs': '.75rem', + 'sm': '.875rem', + 'base': '1rem', + 'lg': '1.125rem', + 'xl': '1.25rem', + '2xl': '1.5rem', + '3xl': '1.875rem', + '4xl': '2.25rem', + '5xl': '3rem', + }, + }, + }, + plugins: [ + require('flowbite/plugin') // add this line + ], +} +