2023-04-14 01:20:47 +02:00
|
|
|
import { HttpRound } from '@vicons/material';
|
|
|
|
import { defineTool } from '../tool';
|
|
|
|
|
|
|
|
import { codesByCategories } from './http-status-codes.constants';
|
2024-02-01 14:05:54 +01:00
|
|
|
import { translate } from '@/plugins/i18n.plugin';
|
2023-04-14 01:20:47 +02:00
|
|
|
|
|
|
|
export const tool = defineTool({
|
2024-02-01 14:05:54 +01:00
|
|
|
name: translate('tools.http-status-codes.title'),
|
2023-04-14 01:20:47 +02:00
|
|
|
path: '/http-status-codes',
|
2024-02-01 14:05:54 +01:00
|
|
|
description: translate('tools.http-status-codes.description'),
|
2023-04-14 01:20:47 +02:00
|
|
|
keywords: [
|
|
|
|
'http',
|
|
|
|
'status',
|
|
|
|
'codes',
|
|
|
|
...codesByCategories.flatMap(({ codes }) => codes.flatMap(({ code, name }) => [String(code), name])),
|
|
|
|
],
|
|
|
|
component: () => import('./http-status-codes.vue'),
|
|
|
|
icon: HttpRound,
|
|
|
|
createdAt: new Date('2023-04-13'),
|
|
|
|
});
|