From e3e75b13c59647cfa573653e621883dddc75d09f Mon Sep 17 00:00:00 2001 From: johnnyfish Date: Mon, 4 Nov 2024 23:18:02 +0200 Subject: [PATCH 1/3] fix for tempaltes keywords --- src/templates-data/templates/airbnb-db.ts | 15 +++++--------- src/templates-data/templates/employee-db.ts | 11 ++-------- .../templates/visual-novel-db.ts | 20 +++++++------------ src/templates-data/templates/wordpress-db.ts | 13 ++++-------- 4 files changed, 18 insertions(+), 41 deletions(-) diff --git a/src/templates-data/templates/airbnb-db.ts b/src/templates-data/templates/airbnb-db.ts index d619e2c34..c1d8016ae 100644 --- a/src/templates-data/templates/airbnb-db.ts +++ b/src/templates-data/templates/airbnb-db.ts @@ -12,16 +12,11 @@ export const airbnbDb: Template = { imageDark, tags: ['postgres', 'example apps'], keywords: [ - 'airbnb database schema', - 'airbnb database template', - 'database schema visualization', - 'airbnb database design', - 'ChartDB', - 'airbnb schema diagram', - 'relational database structure', - 'airbnb development', - 'airbnb tables', - 'database template for airbnb', + 'Airbnb database schema', + 'Airbnb database ChartDB template', + 'Database schema visualization for Airbnb', + 'Airbnb sample database design', + 'Airbnb example schema diagram', ], featured: true, diagram: { diff --git a/src/templates-data/templates/employee-db.ts b/src/templates-data/templates/employee-db.ts index 67bc941b3..e4f3b550b 100644 --- a/src/templates-data/templates/employee-db.ts +++ b/src/templates-data/templates/employee-db.ts @@ -5,7 +5,7 @@ import imageDark from '@/assets/templates/employeedb-dark.png'; export const employeeDb: Template = { slug: 'employees-db', - name: 'Employees schema', + name: 'Employees', shortDescription: 'Employees, departments, and salaries', description: 'A schema for database of employees, departments, and salaries.', @@ -15,14 +15,7 @@ export const employeeDb: Template = { keywords: [ 'Employees database schema', 'Employees database template', - 'database schema visualization', - 'Employees database design', - 'ChartDB', - 'Employees schema diagram', - 'relational database structure', - 'Employees development', - 'Employees tables', - 'database template for Employees', + 'Employees sample database schema visualization', ], featured: true, diagram: { diff --git a/src/templates-data/templates/visual-novel-db.ts b/src/templates-data/templates/visual-novel-db.ts index 1bd2329ff..04a5d6325 100644 --- a/src/templates-data/templates/visual-novel-db.ts +++ b/src/templates-data/templates/visual-novel-db.ts @@ -5,24 +5,18 @@ import imageDark from '@/assets/templates/visual-novel-db-dark.png'; export const visualNovelDb: Template = { slug: 'visual-novel-db', - name: 'The Visual Novel Database | vndb', - shortDescription: 'The Visual Novel Database | vndb', + name: 'The Visual Novel Database', + shortDescription: 'The Visual Novel Database', description: 'A comprehensive database for information about visual novels', image, imageDark, tags: ['postgres'], keywords: [ - 'VNDB', - 'visual novel database schema', - 'visual novel database template', - 'database schema visualization', - 'visual novel database design', - 'ChartDB', - 'VNDB schema diagram', - 'relational database structure', - 'VNDB development', - 'VNDB tables', - 'database template for VNDB', + 'The Visual Novel Database Schema', + 'The visual novel database template', + 'Database schema visualization', + 'Visual novel database design', + 'Relational database structure', ], featured: true, url: 'https://vndb.org', diff --git a/src/templates-data/templates/wordpress-db.ts b/src/templates-data/templates/wordpress-db.ts index 9113b7cfa..0b8bbcc40 100644 --- a/src/templates-data/templates/wordpress-db.ts +++ b/src/templates-data/templates/wordpress-db.ts @@ -5,7 +5,7 @@ import imageDark from '@/assets/templates/wordpress-db-dark.png'; export const wordpressDb: Template = { slug: 'wordpress-db', - name: 'WordPress Database', + name: 'WordPress', shortDescription: 'An open-source PHP Content Management System', description: '(CMS) ideal for building websites, blogs, or apps. Flexible, customizable, and designed for developers to expand', @@ -14,15 +14,10 @@ export const wordpressDb: Template = { tags: ['mysql', 'open source', 'WordPress', 'php'], keywords: [ 'WordPress database schema', - 'WordPress database template', - 'database schema visualization', - 'WordPress database design', - 'ChartDB', + 'WordPress database ChartDB template', + 'Schema visualization for WordPress database', + 'WordPress database design with ChartDB', 'WordPress schema diagram', - 'relational database structure', - 'WordPress development', - 'WordPress tables', - 'database template for WordPress', ], featured: true, url: 'https://wordpress.org', From 5a73c0b7cb2a7ba6d6946f510ff0797b5725f019 Mon Sep 17 00:00:00 2001 From: johnnyfish Date: Tue, 5 Nov 2024 13:30:41 +0200 Subject: [PATCH 2/3] remove keywords --- src/templates-data/templates-data.ts | 1 - src/templates-data/templates/airbnb-db.ts | 7 ------- src/templates-data/templates/employee-db.ts | 5 ----- src/templates-data/templates/visual-novel-db.ts | 10 ++-------- src/templates-data/templates/wordpress-db.ts | 7 ------- 5 files changed, 2 insertions(+), 28 deletions(-) diff --git a/src/templates-data/templates-data.ts b/src/templates-data/templates-data.ts index 4d69daf53..d40bea19b 100644 --- a/src/templates-data/templates-data.ts +++ b/src/templates-data/templates-data.ts @@ -13,7 +13,6 @@ export interface Template { imageDark: string; diagram: Diagram; tags: string[]; - keywords: string[]; featured: boolean; url?: string; } diff --git a/src/templates-data/templates/airbnb-db.ts b/src/templates-data/templates/airbnb-db.ts index c1d8016ae..130769df4 100644 --- a/src/templates-data/templates/airbnb-db.ts +++ b/src/templates-data/templates/airbnb-db.ts @@ -11,13 +11,6 @@ export const airbnbDb: Template = { image, imageDark, tags: ['postgres', 'example apps'], - keywords: [ - 'Airbnb database schema', - 'Airbnb database ChartDB template', - 'Database schema visualization for Airbnb', - 'Airbnb sample database design', - 'Airbnb example schema diagram', - ], featured: true, diagram: { id: 'airbnb_db', diff --git a/src/templates-data/templates/employee-db.ts b/src/templates-data/templates/employee-db.ts index e4f3b550b..5f01d6b62 100644 --- a/src/templates-data/templates/employee-db.ts +++ b/src/templates-data/templates/employee-db.ts @@ -12,11 +12,6 @@ export const employeeDb: Template = { image, imageDark, tags: ['mysql'], - keywords: [ - 'Employees database schema', - 'Employees database template', - 'Employees sample database schema visualization', - ], featured: true, diagram: { id: 'employees_db', diff --git a/src/templates-data/templates/visual-novel-db.ts b/src/templates-data/templates/visual-novel-db.ts index 04a5d6325..af6ac27c8 100644 --- a/src/templates-data/templates/visual-novel-db.ts +++ b/src/templates-data/templates/visual-novel-db.ts @@ -7,17 +7,11 @@ export const visualNovelDb: Template = { slug: 'visual-novel-db', name: 'The Visual Novel Database', shortDescription: 'The Visual Novel Database', - description: 'A comprehensive database for information about visual novels', + description: + 'A comprehensive database for information about visual novels.', image, imageDark, tags: ['postgres'], - keywords: [ - 'The Visual Novel Database Schema', - 'The visual novel database template', - 'Database schema visualization', - 'Visual novel database design', - 'Relational database structure', - ], featured: true, url: 'https://vndb.org', diagram: { diff --git a/src/templates-data/templates/wordpress-db.ts b/src/templates-data/templates/wordpress-db.ts index 0b8bbcc40..3c643c70d 100644 --- a/src/templates-data/templates/wordpress-db.ts +++ b/src/templates-data/templates/wordpress-db.ts @@ -12,13 +12,6 @@ export const wordpressDb: Template = { image, imageDark, tags: ['mysql', 'open source', 'WordPress', 'php'], - keywords: [ - 'WordPress database schema', - 'WordPress database ChartDB template', - 'Schema visualization for WordPress database', - 'WordPress database design with ChartDB', - 'WordPress schema diagram', - ], featured: true, url: 'https://wordpress.org', diagram: { From 9e4890bb7c2d3533a8ee432a80c2430eb421e485 Mon Sep 17 00:00:00 2001 From: Guy Ben-Aharon Date: Tue, 5 Nov 2024 13:38:34 +0200 Subject: [PATCH 3/3] update templates description --- src/pages/template-page/template-page.tsx | 21 ++++------- src/pages/templates-page/templates-page.tsx | 40 ++++++++++++++++++--- 2 files changed, 42 insertions(+), 19 deletions(-) diff --git a/src/pages/template-page/template-page.tsx b/src/pages/template-page/template-page.tsx index c7c5cc108..161a4892a 100644 --- a/src/pages/template-page/template-page.tsx +++ b/src/pages/template-page/template-page.tsx @@ -65,31 +65,22 @@ const TemplatePageComponent: React.FC = () => { {template ? ( <> - - Database schema diagram for {template.name} | - ChartDB - {HOST_URL !== 'https://chartdb.io' ? ( ) : null} - + + {`Database schema diagram for - ${template.name} | ChartDB`} + - { content={`${HOST_URL}${template.image}`} /> - + { name="twitter:card" content="summary_large_image" /> + + ) : ( Database Schema Diagram | ChartDB diff --git a/src/pages/templates-page/templates-page.tsx b/src/pages/templates-page/templates-page.tsx index 200fa387f..ac5756ea7 100644 --- a/src/pages/templates-page/templates-page.tsx +++ b/src/pages/templates-page/templates-page.tsx @@ -33,10 +33,41 @@ const TemplatesPageComponent: React.FC = () => { return ( <> - ChartDB - Database Schema Templates {HOST_URL !== 'https://chartdb.io' ? ( ) : null} + Database Schema Diagram Templates | ChartDB + + + + + + + + + + + + +
@@ -74,10 +105,9 @@ const TemplatesPageComponent: React.FC = () => { Database Schema Templates

- Explore a collection of real-world database schemas - drawn from real-world live applications and open-source - projects. Use these as a foundation or source of - inspiration when designing your app’s architecture. + Discover a collection of real-world database schema + diagrams, featuring example applications and popular + open-source projects.

{!templates ? (