<template>
  <main style="
    margin-top: 2%;
">
    <div class="tile">
      <div class="card tile" v-for="download in downloads" :key="download">
        <div class="card-content">
          <p class="title is-4 centered">{{ download.productName }}</p>
          <div class="content">
            hi
            <hr />
            <button
              type="button"
              class="button"
              v-bind:clientID="download.downloadID"
              onclick="downloadclient(this)"
            >
              <span>Download</span>
            </button>
          </div>
        </div>
      </div>
    </div>
  </main>
</template>

<script>
export default {
  name: "Download",
  data() {
    return {
      downloads: [
        {
          name: "kaverti-client",
          productName: "Windows",
          target: "win32",
          package: "com.kaverti.win32.client",
          downloadID: "1tG5sdAvhPRR2kDp28SALdLviWuvjmtZC",
          size: "47.80 MB",
          bytes: "50117651",
          vtid:
            "096a49b71582a9e60add39708a7c00fb4a1bf3beeb98ab3d872002a2f1b2e459",
          checksums: [
            {
              type: "MD5",
              value: "c8d34d97cc81b50b1ad1c1f7110c29cd",
            },
            {
              type: "SHA-1",
              value: "e506368124680129042a84a50256018da1c44cfd",
            },
            {
              type: "SHA-256",
              value:
                "096a49b71582a9e60add39708a7c00fb4a1bf3beeb98ab3d872002a2f1b2e459",
            },
            {
              type: "Vhash",
              value: "057056655d1c0550d043z800417z47z62z41fz",
            },
            {
              type: "Authentihash",
              value:
                "2be1de962034e54c027b8e5827da720625cbd02adab11af67a320351dd54853d",
            },
            {
              type: "Imphash",
              value: "b34f154ec913d2d2c435cbd644e91687",
            },
            {
              type: "SSDEEP",
              value:
                "786432:MaEPEWsoS48KaX6TvTFo2o9cI5rkSHOgbLUk1qTlMFT+aOlsqLFyWR6bFWGZffth:Mv8WsoSrATF0zrkjgbaM5cDFmbFJx3",
            },
          ],
          behaviors: ["direct-cpu-clock-access", "runtime-modules"],
          version: "1.0.0",
        },
        {
          name: "kaverti-client",
          productName: "Mac",
          ready: false,
          target: "darwin",
          package: "com.kaverti.darwin.client",
          version: "0.0.0",
        },
        {
          name: "kaverti-client",
          productName: "Linux",
          ready: false,
          target: "linux",
          package: "com.kaverti.linux.client",
          version: "0.0.0",
        },
      ],
    };
  },
  computed: {},
};
</script>