Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
107 changes: 103 additions & 4 deletions apps/keira/src/app/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { DashboardComponent } from '@keira/features/dashboard';

import { ConditionsComponent, ConditionsHandlerService, SelectConditionsComponent } from '@keira/features/conditions';
import {
CreatureCopyComponent,
CreatureEquipTemplateComponent,
CreatureFormationsComponent,
CreatureHandlerService,
Expand All @@ -28,6 +29,7 @@ import {
} from '@keira/features/creature';
import {
GameobjectHandlerService,
GameobjectCopyComponent,
GameobjectLootTemplateComponent,
GameobjectQuestitemComponent,
GameobjectSpawnAddonComponent,
Expand All @@ -37,11 +39,18 @@ import {
SaiGameobjectComponent,
SelectGameobjectComponent,
} from '@keira/features/gameobject';
import { GossipHandlerService, GossipMenuComponent, GossipMenuOptionComponent, SelectGossipComponent } from '@keira/features/gossip';
import {
GossipHandlerService,
GossipMenuComponent,
GossipMenuOptionComponent,
SelectGossipComponent,
GossipCopyComponent,
} from '@keira/features/gossip';
import {
DisenchantLootTemplateComponent,
ItemEnchantmentTemplateComponent,
ItemHandlerService,
ItemCopyComponent,
ItemLootTemplateComponent,
ItemTemplateComponent,
MillingLootTemplateComponent,
Expand All @@ -53,6 +62,10 @@ import {
FishingLootTemplateComponent,
MailLootHandlerService,
MailLootTemplateComponent,
FishingLootCopyComponent,
SpellLootCopyComponent,
MailLootCopyComponent,
ReferenceLootCopyComponent,
ReferenceLootHandlerService,
ReferenceLootTemplateComponent,
SelectFishingLootComponent,
Expand All @@ -74,9 +87,10 @@ import {
QuestTemplateLocaleComponent,
QuestTemplateComponent,
SelectQuestComponent,
QuestCopyComponent,
} from '@keira/features/quest';
import { SaiFullEditorComponent, SaiSearchEntityComponent, SaiSearchExistingComponent } from '@keira/features/smart-scripts';
import { SelectSpellComponent, SpellDbcComponent } from '@keira/features/spell';
import { SelectSpellComponent, SpellDbcComponent, SpellCopyComponent, SpellHandlerService } from '@keira/features/spell';
import { SqlEditorComponent } from '@keira/features/sql-editor';
import { SaiHandlerService } from '@keira/shared/sai-editor';
import {
Expand All @@ -86,15 +100,25 @@ import {
NpcTextHandlerService,
PageTextComponent,
PageTextHandlerService,
PageTextCopyComponent,
NpcTextCopyComponent,
SelectBroadcastTextComponent,
SelectNpcTextComponent,
SelectPageTextComponent,
AcoreStringComponent,
AcoreStringHandlerService,
AcoreStringCopyComponent,
SelectAcoreStringComponent,
} from 'texts';
import { GameTeleComponent, GameTeleHandlerService, SelectGameTeleComponent } from '@keira/features/game-tele';
import { SelectTrainerComponent, TrainerComponent, TrainerHandlerService, TrainerSpellComponent } from '@keira/features/trainer';
import {
SelectTrainerComponent,
TrainerCopyComponent,
TrainerComponent,
TrainerHandlerService,
TrainerSpellComponent,
} from '@keira/features/trainer';
import { GameTeleComponent, GameTeleHandlerService, SelectGameTeleComponent, GameTeleCopyComponent } from '@keira/features/game-tele';

import { UnusedGuidSearchComponent } from '@keira/features/unused-guid-search';

export const KEIRA_ROUTES: Routes = [
Expand All @@ -113,6 +137,11 @@ export const KEIRA_ROUTES: Routes = [
path: 'select',
component: SelectCreatureComponent,
},
{
path: 'copy',
component: CreatureCopyComponent,
canActivate: [CreatureHandlerService],
},
{
path: 'creature-template',
component: CreatureTemplateComponent,
Expand Down Expand Up @@ -223,6 +252,11 @@ export const KEIRA_ROUTES: Routes = [
component: QuestTemplateComponent,
canActivate: [QuestHandlerService],
},
{
path: 'copy',
component: QuestCopyComponent,
canActivate: [QuestHandlerService],
},
{
path: 'quest-template-addon',
component: QuestTemplateAddonComponent,
Expand Down Expand Up @@ -277,6 +311,11 @@ export const KEIRA_ROUTES: Routes = [
component: GameobjectTemplateComponent,
canActivate: [GameobjectHandlerService],
},
{
path: 'copy',
component: GameobjectCopyComponent,
canActivate: [GameobjectHandlerService],
},
{
path: 'gameobject-template-addon',
component: GameobjectTemplateAddonComponent,
Expand Down Expand Up @@ -321,6 +360,11 @@ export const KEIRA_ROUTES: Routes = [
component: ItemTemplateComponent,
canActivate: [ItemHandlerService],
},
{
path: 'copy',
component: ItemCopyComponent,
canActivate: [ItemHandlerService],
},
{
path: 'item-enchantment-template',
component: ItemEnchantmentTemplateComponent,
Expand Down Expand Up @@ -360,6 +404,16 @@ export const KEIRA_ROUTES: Routes = [
component: ReferenceLootTemplateComponent,
canActivate: [ReferenceLootHandlerService],
},
{
path: 'reference-copy',
component: ReferenceLootCopyComponent,
canActivate: [ReferenceLootHandlerService],
},
{
path: 'spell-copy',
component: SpellLootCopyComponent,
canActivate: [SpellLootHandlerService],
},
{
path: 'select-spell',
component: SelectSpellLootComponent,
Expand All @@ -378,6 +432,11 @@ export const KEIRA_ROUTES: Routes = [
component: FishingLootTemplateComponent,
canActivate: [FishingLootHandlerService],
},
{
path: 'fishing-copy',
component: FishingLootCopyComponent,
canActivate: [FishingLootHandlerService],
},
{
path: 'select-mail',
component: SelectMailLootComponent,
Expand All @@ -387,6 +446,11 @@ export const KEIRA_ROUTES: Routes = [
component: MailLootTemplateComponent,
canActivate: [MailLootHandlerService],
},
{
path: 'mail-copy',
component: MailLootCopyComponent,
canActivate: [MailLootHandlerService],
},
],
},
{
Expand All @@ -396,6 +460,11 @@ export const KEIRA_ROUTES: Routes = [
path: 'select-page-text',
component: SelectPageTextComponent,
},
{
path: 'page-text-copy',
component: PageTextCopyComponent,
canActivate: [PageTextHandlerService],
},
{
path: 'page-text',
component: PageTextComponent,
Expand All @@ -414,6 +483,11 @@ export const KEIRA_ROUTES: Routes = [
path: 'select-npc-text',
component: SelectNpcTextComponent,
},
{
path: 'npc-text-copy',
component: NpcTextCopyComponent,
canActivate: [NpcTextHandlerService],
},
{
path: 'npc-text',
component: NpcTextComponent,
Expand All @@ -424,6 +498,11 @@ export const KEIRA_ROUTES: Routes = [
component: AcoreStringComponent,
canActivate: [AcoreStringHandlerService],
},
{
path: 'acore-string-copy',
component: AcoreStringCopyComponent,
canActivate: [AcoreStringHandlerService],
},
{
path: 'select-acore-string',
component: SelectAcoreStringComponent,
Expand All @@ -437,6 +516,11 @@ export const KEIRA_ROUTES: Routes = [
path: 'select',
component: SelectGossipComponent,
},
{
path: 'copy',
component: GossipCopyComponent,
canActivate: [GossipHandlerService],
},
{
path: 'gossip-menu',
component: GossipMenuComponent,
Expand Down Expand Up @@ -492,6 +576,11 @@ export const KEIRA_ROUTES: Routes = [
path: 'spell-dbc',
component: SpellDbcComponent,
},
{
path: 'copy',
component: SpellCopyComponent,
canActivate: [SpellHandlerService],
},
],
},
{
Expand All @@ -501,6 +590,11 @@ export const KEIRA_ROUTES: Routes = [
path: 'select',
component: SelectGameTeleComponent,
},
{
path: 'copy',
component: GameTeleCopyComponent,
canActivate: [GameTeleHandlerService],
},
{
path: 'tele',
component: GameTeleComponent,
Expand All @@ -515,6 +609,11 @@ export const KEIRA_ROUTES: Routes = [
path: 'select',
component: SelectTrainerComponent,
},
{
path: 'copy',
component: TrainerCopyComponent,
canActivate: [TrainerHandlerService],
},
{
path: 'trainer',
component: TrainerComponent,
Expand Down
20 changes: 19 additions & 1 deletion apps/keira/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
"CREATE_A_NEW": "Create a new <strong>{{ ENTITY_TABLE }}</strong> by selecting an empty <strong>{{ ENTITY_ID_FIELD }}</strong>:",
"FREE_ENTRY": "The {{ ENTITY_ID_FIELD }} is",
"FREE": "free",
"ALREADY_USE": "already in use"
"ALREADY_USE": "already in use",
"SOURCE_ENTRY": "The {{ ENTITY_ID_FIELD }}",
"EXISTS": "exists",
"DOES_NOT_EXIST": "does not exist",
"START_FROM_BLANK": "Start from blank",
"COPY_FROM_EXISTING": "Copy from existing"
},
"CONNECTED": "Connected",
"SEARCH": "Search",
Expand Down Expand Up @@ -205,6 +210,19 @@
"LEARN_SQL": "learn the SQL language",
"AFFECTED_ROWS": "Affected rows:"
},
"COPY_OUTPUT": {
"TITLE": "Copy Entry SQL",
"DESCRIPTION": "Review and execute the SQL below to copy the entry. You can copy the query to execute it manually, or use the Execute button to run it directly.",
"COPY": "Copy",
"COPY_TOOLTIP": "Copy SQL query to clipboard",
"EXECUTE": "Execute",
"EXECUTE_TOOLTIP": "Execute the SQL query and create the new entry",
"EXECUTED": "Executed",
"CONTINUE": "Continue to Editor",
"CONTINUE_TOOLTIP": "Navigate to the editor for the new entry",
"SELECT_ALL": "Select All",
"SELECT_NONE": "Select None"
},
"CREATURE": {
"TEMPLATE": {
"BASE": "Base",
Expand Down
20 changes: 19 additions & 1 deletion apps/keira/src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
"CREATE_A_NEW": "Crear nuevo <strong>{{ ENTITY_TABLE }}</strong> seleccionando un <strong>{{ ENTITY_ID_FIELD }}</strong>:",
"FREE_ENTRY": "El o La {{ ENTITY_ID_FIELD }} es",
"FREE": "Libre",
"ALREADY_USE": "Está en uso"
"ALREADY_USE": "Está en uso",
"SOURCE_ENTRY": "The {{ ENTITY_ID_FIELD }}",
"EXISTS": "exists",
"DOES_NOT_EXIST": "does not exist",
"START_FROM_BLANK": "Start from blank",
"COPY_FROM_EXISTING": "Copy from existing"
},
"CONNECTED": "Conectado",
"SEARCH": "Buscar",
Expand Down Expand Up @@ -205,6 +210,19 @@
"LEARN_SQL": "Aprenda el Lenguaje SQL",
"AFFECTED_ROWS": "Líneas afectadas:"
},
"COPY_OUTPUT": {
"TITLE": "Copy Entry SQL",
"DESCRIPTION": "Review and execute the SQL below to copy the entry. You can copy the query to execute it manually, or use the Execute button to run it directly.",
"COPY": "Copy",
"COPY_TOOLTIP": "Copy SQL query to clipboard",
"EXECUTE": "Execute",
"EXECUTE_TOOLTIP": "Execute the SQL query and create the new entry",
"EXECUTED": "Executed",
"CONTINUE": "Continue to Editor",
"CONTINUE_TOOLTIP": "Navigate to the editor for the new entry",
"SELECT_ALL": "Select All",
"SELECT_NONE": "Select None"
},
"CREATURE": {
"TEMPLATE": {
"BASE": "Base",
Expand Down
20 changes: 19 additions & 1 deletion apps/keira/src/assets/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
"CREATE_A_NEW": "Создать новый <strong>{{ ENTITY_TABLE }}</strong> выбрав пустой <strong>{{ ENTITY_ID_FIELD }}</strong>:",
"FREE_ENTRY": "Значение {{ ENTITY_ID_FIELD }}",
"FREE": "свободно",
"ALREADY_USE": "уже используется"
"ALREADY_USE": "уже используется",
"SOURCE_ENTRY": "The {{ ENTITY_ID_FIELD }}",
"EXISTS": "exists",
"DOES_NOT_EXIST": "does not exist",
"START_FROM_BLANK": "Start from blank",
"COPY_FROM_EXISTING": "Copy from existing"
},
"CONNECTED": "Connected",
"SEARCH": "Поиск",
Expand Down Expand Up @@ -205,6 +210,19 @@
"LEARN_SQL": "изучить язык SQL",
"AFFECTED_ROWS": "Затронутые строки:"
},
"COPY_OUTPUT": {
"TITLE": "Copy Entry SQL",
"DESCRIPTION": "Review and execute the SQL below to copy the entry. You can copy the query to execute it manually, or use the Execute button to run it directly.",
"COPY": "Copy",
"COPY_TOOLTIP": "Copy SQL query to clipboard",
"EXECUTE": "Execute",
"EXECUTE_TOOLTIP": "Execute the SQL query and create the new entry",
"EXECUTED": "Executed",
"CONTINUE": "Continue to Editor",
"CONTINUE_TOOLTIP": "Navigate to the editor for the new entry",
"SELECT_ALL": "Select All",
"SELECT_NONE": "Select None"
},
"CREATURE": {
"TEMPLATE": {
"BASE": "Base",
Expand Down
20 changes: 19 additions & 1 deletion apps/keira/src/assets/i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
"CREATE_A_NEW": "新建一个 <strong>{{ ENTITY_TABLE }}</strong>,选择一个未使用的 <strong>{{ ENTITY_ID_FIELD }}</strong>:",
"FREE_ENTRY": "{{ ENTITY_ID_FIELD }}是",
"FREE": "可用的",
"ALREADY_USE": "已在使用中"
"ALREADY_USE": "已在使用中",
"SOURCE_ENTRY": "The {{ ENTITY_ID_FIELD }}",
"EXISTS": "exists",
"DOES_NOT_EXIST": "does not exist",
"START_FROM_BLANK": "Start from blank",
"COPY_FROM_EXISTING": "Copy from existing"
},
"CONNECTED": "连接",
"SEARCH": "搜索",
Expand Down Expand Up @@ -205,6 +210,19 @@
"LEARN_SQL": "学习SQL语言",
"AFFECTED_ROWS": "受影响的行:"
},
"COPY_OUTPUT": {
"TITLE": "Copy Entry SQL",
"DESCRIPTION": "Review and execute the SQL below to copy the entry. You can copy the query to execute it manually, or use the Execute button to run it directly.",
"COPY": "Copy",
"COPY_TOOLTIP": "Copy SQL query to clipboard",
"EXECUTE": "Execute",
"EXECUTE_TOOLTIP": "Execute the SQL query and create the new entry",
"EXECUTED": "Executed",
"CONTINUE": "Continue to Editor",
"CONTINUE_TOOLTIP": "Navigate to the editor for the new entry",
"SELECT_ALL": "Select All",
"SELECT_NONE": "Select None"
},
"CREATURE": {
"TEMPLATE": {
"BASE": "基础",
Expand Down
Loading
Loading