Skip to content

Commit

Permalink
refactor: standardize controller and dictionary endpoint names to low…
Browse files Browse the repository at this point in the history
…ercase
  • Loading branch information
ZibanPirate committed Dec 30, 2024
1 parent 12d692d commit 626e142
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/src/contribution/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "./types";

@Service()
@Controller("/Contributions")
@Controller("/contributions")
export class ContributionController {
constructor(private readonly contributionRepository: ContributionRepository) {}

Expand Down
2 changes: 1 addition & 1 deletion api/src/contributor/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ProjectRepository } from "src/project/repository";
import { ContributionRepository } from "src/contribution/repository";

@Service()
@Controller("/Contributors")
@Controller("/contributors")
export class ContributorController {
constructor(
private readonly contributorRepository: ContributorRepository,
Expand Down
4 changes: 2 additions & 2 deletions api/src/github/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { Service } from "typedi";
import { GetRateLimitResponse } from "./types";

@Service()
@Controller("/Github")
@Controller("/github")
export class GithubController {
constructor(private readonly githubService: GithubService) {}

@Get("/RateLimit")
@Get("/rate-limit")
public async getRateLimitInfo(): Promise<GetRateLimitResponse> {
const { limit, used, ratio } = await this.githubService.getRateLimit();

Expand Down
2 changes: 1 addition & 1 deletion api/src/milestone/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Service } from "typedi";
import { GetMilestonesResponse } from "./types";

@Service()
@Controller("/Milestones")
@Controller("/milestones")
export class MilestoneController {
constructor(private readonly githubService: GithubService) {}

Expand Down
2 changes: 1 addition & 1 deletion api/src/project/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ContributorRepository } from "src/contributor/repository";
import { ContributionRepository } from "src/contribution/repository";

@Service()
@Controller("/Projects")
@Controller("/projects")
export class ProjectController {
constructor(
private readonly projectRepository: ProjectRepository,
Expand Down
2 changes: 1 addition & 1 deletion api/src/search/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { SearchService } from "./service";
import { Service } from "typedi";

@Service()
@Controller("/Search")
@Controller("/search")
export class SearchController {
constructor(private readonly searchService: SearchService) {}

Expand Down
6 changes: 3 additions & 3 deletions web/src/components/locale/dictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@ export const dictionary = {
ar: "أرغب في البرمجة ، من أين أبدأ؟",
},
"faq-topic-2-answer-2": {
en: `Go to [/Contribute](/Contribute) page, you will see a list of projects with available tasks for you to pick from whatever you like and start programming 🔥.`,
ar: `انتقل إلى صفحة [المساهمة](/Contribute) ، سترى قائمة بالمشاريع بالمهام المتاحة لتختار منها ما تريد وتبدأ البرمجة 🔥.`,
en: `Go to [/contribute](/contribute) page, you will see a list of projects with available tasks for you to pick from whatever you like and start programming 🔥.`,
ar: `انتقل إلى صفحة [المساهمة](/contribute) ، سترى قائمة بالمشاريع بالمهام المتاحة لتختار منها ما تريد وتبدأ البرمجة 🔥.`,
},
"faq-topic-2-question-3": {
en: "I like the idea, what are the different ways I can contribute to DzCode i/o ?",
ar: "تعجبني الفكرة ، ما هي الطرق المختلفة التي يمكنني من خلالها المساهمة في DzCode i/o؟",
},
"faq-topic-2-answer-3": {
en: `
Besides the open tasks on [/Contribute](/Contribute) page, you can also contribute to DzCode i/o by:
Besides the open tasks on [/contribute](/contribute) page, you can also contribute to DzCode i/o by:
- Adding your open-source projects to the dzcode.io website.
`,
Expand Down

0 comments on commit 626e142

Please sign in to comment.