Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(templates): change the template url to be database instead of db #374

Merged
merged 3 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/list-menu/list-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ListMenu = React.forwardRef<HTMLDivElement, ListMenuProps>(
strokeWidth={item.selected ? 2.4 : 2}
/>
) : null}
{item.title}
<span className="min-w-0 truncate">{item.title}</span>
</Link>
))}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/templates-page/templates-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const TemplatesPageComponent: React.FC = () => {
</h4>
{allTags ? (
<ListMenu
className="mt-1 w-44 shrink-0"
className="mt-1 shrink-0"
items={allTags.map((currentTag) => ({
title: currentTag,
href: `/templates/tags/${currentTag}`,
Expand Down
4 changes: 2 additions & 2 deletions src/templates-data/templates/adonis-acl-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import image from '@/assets/templates/adonis-acl.png';
import imageDark from '@/assets/templates/adonis-acl-dark.png';

export const adonisAclDb: Template = {
slug: 'adonis-acl-db',
slug: 'adonis-acl-database',
name: 'Adonis Acl Database',
shortDescription: 'Role based permissions',
description:
Expand All @@ -16,7 +16,7 @@ export const adonisAclDb: Template = {
url: 'https://github.com/enniel/adonis-acl',
diagram: {
id: 'adonis_acl_db',
name: 'adonis-acl-db',
name: 'adonis-acl-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.POSTGRESQL,
Expand Down
4 changes: 2 additions & 2 deletions src/templates-data/templates/airbnb-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import image from '@/assets/templates/airbnb.png';
import imageDark from '@/assets/templates/airbnb-dark.png';

export const airbnbDb: Template = {
slug: 'airbnb-db',
slug: 'airbnb-database',
name: 'Airbnb',
shortDescription: 'Short-term Vacation Rentals',
description: 'Example database schema diagram for Airbnb',
Expand All @@ -14,7 +14,7 @@ export const airbnbDb: Template = {
featured: true,
diagram: {
id: 'airbnb_db',
name: 'airbnb-db',
name: 'airbnb-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.POSTGRESQL,
Expand Down
4 changes: 2 additions & 2 deletions src/templates-data/templates/akaunting-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import image from '@/assets/templates/akaunting.png';
import imageDark from '@/assets/templates/akaunting-dark.png';

export const akauntingDb: Template = {
slug: 'akaunting-db',
slug: 'akaunting-database',
name: 'Akaunting',
shortDescription: 'Online Accounting Software',
description: `For small businesses and freelancers, built with Laravel and VueJS`,
Expand All @@ -15,7 +15,7 @@ export const akauntingDb: Template = {
url: 'https://github.com/akaunting/akaunting',
diagram: {
id: 'akaunting_db',
name: 'akaunting-db',
name: 'akaunting-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.POSTGRESQL,
Expand Down
4 changes: 2 additions & 2 deletions src/templates-data/templates/django-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import image from '@/assets/templates/django-db.png';
import imageDark from '@/assets/templates/django-db-dark.png';

export const djangoDb: Template = {
slug: 'django-db',
slug: 'django-database',
name: 'Django',
shortDescription: 'High-level Python web framework',
description:
Expand All @@ -16,7 +16,7 @@ export const djangoDb: Template = {
url: 'https://github.com/django/django',
diagram: {
id: 'django_db',
name: 'django-db',
name: 'django-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.POSTGRESQL,
Expand Down
4 changes: 2 additions & 2 deletions src/templates-data/templates/employee-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import image from '@/assets/templates/employeedb.png';
import imageDark from '@/assets/templates/employeedb-dark.png';

export const employeeDb: Template = {
slug: 'employees-db',
slug: 'employees-database',
name: 'Employees',
shortDescription: 'Employees, departments, and salaries',
description:
Expand All @@ -15,7 +15,7 @@ export const employeeDb: Template = {
featured: true,
diagram: {
id: 'employees_db',
name: 'employees-db',
name: 'employees-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.MYSQL,
Expand Down
4 changes: 2 additions & 2 deletions src/templates-data/templates/laravel-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import image from '@/assets/templates/laravel-db.png';
import imageDark from '@/assets/templates/laravel-db-dark.png';

export const laravelDb: Template = {
slug: 'laravel-db',
slug: 'laravel-database',
name: 'Laravel',
shortDescription: 'PHP web framework',
description:
Expand All @@ -16,7 +16,7 @@ export const laravelDb: Template = {
url: 'https://github.com/laravel/laravel',
diagram: {
id: 'laravel_db',
name: 'laravel-db',
name: 'laravel-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.POSTGRESQL,
Expand Down
4 changes: 2 additions & 2 deletions src/templates-data/templates/pokemon-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import image from '@/assets/templates/pokemon.png';
import imageDark from '@/assets/templates/pokemon-dark.png';

export const pokemonDb: Template = {
slug: 'pokemon-db',
slug: 'pokemon-database',
name: 'Pokemon',
shortDescription: 'Pokemon information',
description: 'Mysql Relational of 722 pokemons. 14 Tables 5 views.',
Expand All @@ -15,7 +15,7 @@ export const pokemonDb: Template = {
url: 'https://github.com/brianr852/Pokemon-Database',
diagram: {
id: 'pokemon_db',
name: 'pokemon-db',
name: 'pokemon-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.MYSQL,
Expand Down
4 changes: 2 additions & 2 deletions src/templates-data/templates/twitter-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import image from '@/assets/templates/twitter-db.png';
import imageDark from '@/assets/templates/twitter-db-dark.png';

export const twitterDb: Template = {
slug: 'twitter-db',
slug: 'twitter-database',
name: 'Twitter Database',
shortDescription: 'Social media platform clone application',
description:
Expand All @@ -16,7 +16,7 @@ export const twitterDb: Template = {
featured: true,
diagram: {
id: 'twitter_db',
name: 'twitter-db',
name: 'twitter-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.POSTGRESQL,
Expand Down
6 changes: 3 additions & 3 deletions src/templates-data/templates/visual-novel-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ import image from '@/assets/templates/visual-novel-db.png';
import imageDark from '@/assets/templates/visual-novel-db-dark.png';

export const visualNovelDb: Template = {
slug: 'visual-novel-db',
slug: 'visual-novel-database',
name: 'The Visual Novel Database',
shortDescription: 'The Visual Novel Database',
description:
'A comprehensive database for information about visual novels.',
image,
imageDark,
tags: ['Postgres'],
tags: ['Postgres', 'The Visual Novel Database'],
featured: true,
url: 'https://vndb.org',
diagram: {
id: 'visual_novel_db',
name: 'visual-novel-db',
name: 'visual-novel-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.POSTGRESQL,
Expand Down
4 changes: 2 additions & 2 deletions src/templates-data/templates/wordpress-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import image from '@/assets/templates/wordpress-db.png';
import imageDark from '@/assets/templates/wordpress-db-dark.png';

export const wordpressDb: Template = {
slug: 'wordpress-db',
slug: 'wordpress-database',
name: 'WordPress',
shortDescription: 'An open-source PHP Content Management System',
description:
Expand All @@ -16,7 +16,7 @@ export const wordpressDb: Template = {
url: 'https://wordpress.org',
diagram: {
id: 'wordpress_db',
name: 'wordpress-db',
name: 'wordpress-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.MYSQL,
Expand Down