Skip to content
Snippets Groups Projects
Select Git revision
  • 3121d4b0b04e892cf36d3d4396e46f095a78d2ba
  • master default protected
2 results

index.js

Blame
  • ImageView.vue 409 B
    <template>
      <div>
        <div id="image-container">
          <img :src="`/api/image/${flake}/file`" alt="" />
        </div>
      </div>
    </template>
    
    <script>
    export default {
      computed: {
        flake: () => {
          return window.location.pathname.split("/").pop();
        },
      },
    };
    </script>
    
    <style scoped>
    img {
      height: 100%;
    }
    #image-container {
      height: 100vh;
      display: flex;
      justify-content: center;
    }
    </style>