<template>
  <div class="message-setting">
    <el-form :model="messages" label-width="120px">
      <el-row>
        <el-col :span="8">
          <el-form-item label="发件人">
            <el-input type="textarea" v-model="messages.Sender"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="已购买商品">
            <el-input type="textarea" v-model="messages.BoughtItem"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="已购买恐龙">
            <el-input type="textarea" v-model="messages.BoughtDino"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="已购买信标?">
            <el-input type="textarea" v-model="messages.BoughtBeacon"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="已购买经验">
            <el-input type="textarea" v-model="messages.BoughtExp"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="已获得积分">
            <el-input type="textarea" v-model="messages.ReceivedPoints"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="拥有积分">
            <el-input type="textarea" v-model="messages.HavePoints"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="没有积分">
            <el-input type="textarea" v-model="messages.NoPoints"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="错误的id">
            <el-input type="textarea" v-model="messages.WrongId"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="没有权限">
            <el-input type="textarea" v-model="messages.NoPermissionsKit"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="无法购买">
            <el-input type="textarea" v-model="messages.CantBuyKit"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="已购买礼包">
            <el-input type="textarea" v-model="messages.BoughtKit"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="可用礼包">
            <el-input type="textarea" v-model="messages.AvailableKits"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="没有礼包">
            <el-input type="textarea" v-model="messages.NoKits"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="礼包剩余">
            <el-input type="textarea" v-model="messages.KitsLeft"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="没有礼包">
            <el-input type="textarea" v-model="messages.NoKitsLeft"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="无法发送积分">
            <el-input type="textarea" v-model="messages.CantGivePoints"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="正在骑乘恐龙">
            <el-input type="textarea" v-model="messages.RidingDino"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="已发送积分">
            <el-input type="textarea" v-model="messages.SentPoints"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="已获得积分">
            <el-input type="textarea" v-model="messages.GotPoints"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="没有玩家">
            <el-input type="textarea" v-model="messages.NoPlayer"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="找到多个玩家">
            <el-input type="textarea" v-model="messages.FoundMorePlayers"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="购买命令">
            <el-input type="textarea" v-model="messages.BuyUsage"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店命令">
            <el-input type="textarea" v-model="messages.ShopUsage"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="交易命令">
            <el-input type="textarea" v-model="messages.KitUsage"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="购买礼包命令">
            <el-input type="textarea" v-model="messages.BuyKitUsage"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="交易命令">
            <el-input type="textarea" v-model="messages.TradeUsage"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="积分命令">
            <el-input type="textarea" v-model="messages.PointsCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="交易命令">
            <el-input type="textarea" v-model="messages.TradeCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="购买命令">
            <el-input type="textarea" v-model="messages.BuyCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店命令">
            <el-input type="textarea" v-model="messages.ShopCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="交易命令">
            <el-input type="textarea" v-model="messages.KitCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="购买礼包命令">
            <el-input type="textarea" v-model="messages.BuyKitCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="出售命令">
            <el-input type="textarea" v-model="messages.SellCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店出售命令">
            <el-input type="textarea" v-model="messages.ShopSellCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="出售命令">
            <el-input type="textarea" v-model="messages.SellUsage"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="没有足够的物品">
            <el-input type="textarea" v-model="messages.NotEnoughItems"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="已出售物品">
            <el-input type="textarea" v-model="messages.SoldItems"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="错误的等级">
            <el-input type="textarea" v-model="messages.BadLevel"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="礼包列表价格">
            <el-input type="textarea" v-model="messages.KitsListPrice"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="礼包列表格式">
            <el-input type="textarea" v-model="messages.KitsListFormat"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店列表恐龙">
            <el-input type="textarea" v-model="messages.StoreListDino"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店列表物品">
            <el-input type="textarea" v-model="messages.StoreListItem"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店列表格式">
            <el-input type="textarea" v-model="messages.StoreListFormat"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="只能购买在出生点礼包">
            <el-input type="textarea" v-model="messages.OnlyOnSpawnKit"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="帮助命令">
            <el-input type="textarea" v-model="messages.HelpCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店消息">
            <el-input type="textarea" v-model="messages.ShopMessage"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="帮助消息">
            <el-input type="textarea" v-model="messages.HelpMessage"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="退款错误">
            <el-input type="textarea" v-model="messages.RefundError"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店查找命令">
            <el-input type="textarea" v-model="messages.ShopFindCmd"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店查找用法">
            <el-input type="textarea" v-model="messages.ShopFindUsage"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店查找不存在">
            <el-input type="textarea" v-model="messages.ShopFindNotFound"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="商店发现太多结果">
            <el-input type="textarea" v-model="messages.ShopFindTooManyResults"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="没有权限">
            <el-input type="textarea" v-model="messages.NoPermissionsStore"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script lang="ts" setup>
import {ref} from 'vue';
import {ElForm, ElFormItem, ElInput} from 'element-plus';
import {GetArkConfig, Messages} from "../../api/ConfigFile.ts";

let messages = ref<Messages>(new Messages())

function replay() {
  GetArkConfig().then((res) => {
    messages.value = res.data as Messages
  })
}

replay()
</script>

<style scoped lang="scss">
.message-setting {
  margin: 10px 0;
}
</style>
