diff --git a/hwe/sammo/Command/Nation/che_국기변경.php b/hwe/sammo/Command/Nation/che_국기변경.php index 4a4777dc..50d045ac 100644 --- a/hwe/sammo/Command/Nation/che_국기변경.php +++ b/hwe/sammo/Command/Nation/che_국기변경.php @@ -152,32 +152,12 @@ class che_국기변경 extends Command\NationCommand return true; } - public function getJSPlugins(): array + public function exportJSVars(): array { return [ - 'colorSelect' + 'procRes' => [ + 'colors' => GetNationColors(), + ], ]; } - - - public function getForm(): string - { - ob_start(); -?> - 국기를 변경합니다. 단 1회 가능합니다. - 색상 : - - $color) : - /* - if($colorUsed[$color] > 0){ - continue; - } - */ - ?> - data-font-color="=newColor($color)?>" style='background-color:= $color ?>;color:= newColor($color) ?>;'>국가명(=$color?>) - - - + + + + + {{ props.option.title }} + + + + + {{ props.option.title }} + + + + + + \ No newline at end of file diff --git a/hwe/ts/processing/Nation/che_국기변경.vue b/hwe/ts/processing/Nation/che_국기변경.vue new file mode 100644 index 00000000..14d5f05b --- /dev/null +++ b/hwe/ts/processing/Nation/che_국기변경.vue @@ -0,0 +1,61 @@ + + + + + 국기를 변경합니다. 단 1회 가능합니다. + 색상 : + + + + + + + {{ commandName }} + + + + + + + diff --git a/hwe/ts/processing/Nation/index.ts b/hwe/ts/processing/Nation/index.ts index a3e3ca23..f192048a 100644 --- a/hwe/ts/processing/Nation/index.ts +++ b/hwe/ts/processing/Nation/index.ts @@ -1,2 +1,3 @@ +export { default as che_국기변경 } from "./che_국기변경.vue"; export { default as che_발령 } from "./che_발령.vue"; export { default as che_포상 } from "./che_포상.vue"; \ No newline at end of file