Skip to content

Commit

Permalink
refactor(taxonomy): rename categories workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Dec 14, 2024
1 parent 5ab417e commit 1eecb94
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
2 changes: 1 addition & 1 deletion apps/romainlanz.com/app/articles/domain/article.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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<ArticleListViewModel['serialize']>;

Expand Down
Original file line number Diff line number Diff line change
@@ -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<CategoryRepository, 'all'>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Category } from '#categories/domain/category';
import type { Category } from '../domain/category';

export type AllCategoryViewModelSerialized = ReturnType<AllCategoryViewModel['serialize']>;

Expand Down
2 changes: 1 addition & 1 deletion apps/romainlanz.com/commands/seed.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
1 change: 1 addition & 0 deletions apps/romainlanz.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1eecb94

Please sign in to comment.