diff --git a/apps/romainlanz.com/app/admin/articles/controllers/store_article_controller.ts b/apps/romainlanz.com/app/admin/articles/controllers/store_article_controller.ts index a9c8681..03b8a66 100644 --- a/apps/romainlanz.com/app/admin/articles/controllers/store_article_controller.ts +++ b/apps/romainlanz.com/app/admin/articles/controllers/store_article_controller.ts @@ -4,8 +4,8 @@ import vine from '@vinejs/vine'; import { ArticlePolicy } from '#admin/articles/policies/article_policy'; import { ArticleRepository } from '#articles/repositories/article_repository'; import { MarkdownCompiler } from '#articles/services/markdown_compiler'; -import { CategoryRepository } from '#categories/repositories/category_repository'; -import { AllCategoryViewModel } from '#categories/view_models/all_category_view_model'; +import { CategoryRepository } from '#taxonomy/repositories/category_repository'; +import { AllCategoryViewModel } from '#taxonomy/view_models/all_category_view_model'; import type { HttpContext } from '@adonisjs/core/http'; @inject() diff --git a/apps/romainlanz.com/app/admin/articles/controllers/update_article_controller.ts b/apps/romainlanz.com/app/admin/articles/controllers/update_article_controller.ts index 6c2d667..0295bf9 100644 --- a/apps/romainlanz.com/app/admin/articles/controllers/update_article_controller.ts +++ b/apps/romainlanz.com/app/admin/articles/controllers/update_article_controller.ts @@ -3,8 +3,8 @@ import vine from '@vinejs/vine'; import { ArticlePolicy } from '#admin/articles/policies/article_policy'; import { ArticleRepository } from '#articles/repositories/article_repository'; import { MarkdownCompiler } from '#articles/services/markdown_compiler'; -import { CategoryRepository } from '#categories/repositories/category_repository'; -import { AllCategoryViewModel } from '#categories/view_models/all_category_view_model'; +import { CategoryRepository } from '#taxonomy/repositories/category_repository'; +import { AllCategoryViewModel } from '#taxonomy/view_models/all_category_view_model'; import type { HttpContext } from '@adonisjs/core/http'; @inject() diff --git a/apps/romainlanz.com/app/articles/controllers/list_articles_controller.ts b/apps/romainlanz.com/app/articles/controllers/list_articles_controller.ts index d8901c6..1b26117 100644 --- a/apps/romainlanz.com/app/articles/controllers/list_articles_controller.ts +++ b/apps/romainlanz.com/app/articles/controllers/list_articles_controller.ts @@ -1,7 +1,7 @@ import { inject } from '@adonisjs/core'; import { ArticleRepository } from '#articles/repositories/article_repository'; import { ArticleListViewModel } from '#articles/view_models/article_list_view_model'; -import { CategoryRepository } from '#categories/repositories/category_repository'; +import { CategoryRepository } from '#taxonomy/repositories/category_repository'; import type { HttpContext } from '@adonisjs/core/http'; @inject() diff --git a/apps/romainlanz.com/app/articles/domain/article.ts b/apps/romainlanz.com/app/articles/domain/article.ts index 753af87..ff7021c 100644 --- a/apps/romainlanz.com/app/articles/domain/article.ts +++ b/apps/romainlanz.com/app/articles/domain/article.ts @@ -1,7 +1,7 @@ import { Entity } from '#core/domain/entity'; import { DateTime } from 'luxon'; import type { ArticleIdentifier } from '#articles/domain/article_identifier'; -import type { Category } from '#categories/domain/category'; +import type { Category } from '#taxonomy/domain/category'; interface Properties { id: ArticleIdentifier; diff --git a/apps/romainlanz.com/app/articles/repositories/article_repository.ts b/apps/romainlanz.com/app/articles/repositories/article_repository.ts index 978fa3e..04c3ca7 100644 --- a/apps/romainlanz.com/app/articles/repositories/article_repository.ts +++ b/apps/romainlanz.com/app/articles/repositories/article_repository.ts @@ -1,8 +1,8 @@ import { Article } from '#articles/domain/article'; import { ArticleIdentifier } from '#articles/domain/article_identifier'; -import { Category } from '#categories/domain/category'; -import { CategoryIdentifier } from '#categories/domain/category_identifier'; import { db } from '#core/services/db'; +import { Category } from '#taxonomy/domain/category'; +import { CategoryIdentifier } from '#taxonomy/domain/category_identifier'; import { DateTime } from 'luxon'; import type { IllustrationName } from '@rlanz/design-system/illustration-name'; import type { ResultOf } from '#types/common'; diff --git a/apps/romainlanz.com/app/articles/view_models/article_list_view_model.ts b/apps/romainlanz.com/app/articles/view_models/article_list_view_model.ts index b861f5f..2123761 100644 --- a/apps/romainlanz.com/app/articles/view_models/article_list_view_model.ts +++ b/apps/romainlanz.com/app/articles/view_models/article_list_view_model.ts @@ -1,6 +1,6 @@ import { assertExists } from '@adonisjs/core/helpers/assert'; import type { Article } from '#articles/domain/article'; -import type { Category } from '#categories/domain/category'; +import type { Category } from '#taxonomy/domain/category'; export type ArticleListViewModelSerialized = ReturnType; diff --git a/apps/romainlanz.com/app/categories/domain/category.ts b/apps/romainlanz.com/app/taxonomy/domain/category.ts similarity index 100% rename from apps/romainlanz.com/app/categories/domain/category.ts rename to apps/romainlanz.com/app/taxonomy/domain/category.ts diff --git a/apps/romainlanz.com/app/categories/domain/category_identifier.ts b/apps/romainlanz.com/app/taxonomy/domain/category_identifier.ts similarity index 100% rename from apps/romainlanz.com/app/categories/domain/category_identifier.ts rename to apps/romainlanz.com/app/taxonomy/domain/category_identifier.ts diff --git a/apps/romainlanz.com/app/categories/repositories/category_repository.ts b/apps/romainlanz.com/app/taxonomy/repositories/category_repository.ts similarity index 93% rename from apps/romainlanz.com/app/categories/repositories/category_repository.ts rename to apps/romainlanz.com/app/taxonomy/repositories/category_repository.ts index 89542d4..4c91bbf 100644 --- a/apps/romainlanz.com/app/categories/repositories/category_repository.ts +++ b/apps/romainlanz.com/app/taxonomy/repositories/category_repository.ts @@ -1,6 +1,6 @@ -import { Category } from '#categories/domain/category'; -import { CategoryIdentifier } from '#categories/domain/category_identifier'; import { db } from '#core/services/db'; +import { Category } from '../domain/category'; +import { CategoryIdentifier } from '../domain/category_identifier'; import type { ResultOf } from '#types/common'; export type CategoryListQueryResult = ResultOf; diff --git a/apps/romainlanz.com/app/categories/view_models/all_category_view_model.ts b/apps/romainlanz.com/app/taxonomy/view_models/all_category_view_model.ts similarity index 88% rename from apps/romainlanz.com/app/categories/view_models/all_category_view_model.ts rename to apps/romainlanz.com/app/taxonomy/view_models/all_category_view_model.ts index 6186b06..dc6748c 100644 --- a/apps/romainlanz.com/app/categories/view_models/all_category_view_model.ts +++ b/apps/romainlanz.com/app/taxonomy/view_models/all_category_view_model.ts @@ -1,4 +1,4 @@ -import type { Category } from '#categories/domain/category'; +import type { Category } from '../domain/category'; export type AllCategoryViewModelSerialized = ReturnType; diff --git a/apps/romainlanz.com/commands/seed.ts b/apps/romainlanz.com/commands/seed.ts index e2e2863..3a29746 100644 --- a/apps/romainlanz.com/commands/seed.ts +++ b/apps/romainlanz.com/commands/seed.ts @@ -1,6 +1,6 @@ import { BaseCommand } from '@adonisjs/core/ace'; -import { CategoryIdentifier } from '#categories/domain/category_identifier'; import { db } from '#core/services/db'; +import { CategoryIdentifier } from '#taxonomy/domain/category_identifier'; import type { CommandOptions } from '@adonisjs/core/types/ace'; export default class Seed extends BaseCommand { diff --git a/apps/romainlanz.com/package.json b/apps/romainlanz.com/package.json index 5252303..9a3304d 100644 --- a/apps/romainlanz.com/package.json +++ b/apps/romainlanz.com/package.json @@ -28,6 +28,7 @@ "#redirects/*": "./app/redirects/*.js", "#start/*": "./start/*.js", "#config/*": "./config/*.js", + "#taxonomy/*": "./app/taxonomy/*.js", "#twitch/*": "./app/twitch/*.js", "#types/*": "./types/*.js", "#views/*": "./resources/views/*.js"