Skip to content

Commit

Permalink
Migrate to Vite builder (#22)
Browse files Browse the repository at this point in the history
* Migrate to Vite builder
  • Loading branch information
Mikescops authored Feb 16, 2022
1 parent 933fe75 commit 0d485f3
Show file tree
Hide file tree
Showing 17 changed files with 5,775 additions and 11,056 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
env: {
browser: true,
commonjs: true,
node: true,
es2021: true,
es6: true
},
parser: 'vue-eslint-parser',
Expand Down
File renamed without changes.
20 changes: 20 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="/assets/favicon.ico" />
<title>Vue Virtual Grid | Example</title>
</head>
<body>
<noscript>
<strong
>We're sorry but Vue Virtual Grid | Example doesn't work properly without JavaScript enabled. Please
enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions example/App.vue → example/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png" /> <br />
<img alt="Vue logo" src="../assets/logo.png" /> <br />
<a class="button" v-on:click="resetList()">Reset Component</a>
<VirtualGrid
v-if="loaded"
Expand All @@ -16,8 +16,8 @@

<script lang="ts">
import { Component, Provide, ProvideReactive, Vue } from 'vue-property-decorator';
import VirtualGrid from '../src/VirtualGrid.vue';
import { Item, VirtualGridInterface } from '../src/types';
import VirtualGrid from '../../src/VirtualGrid.vue';
import { Item, VirtualGridInterface } from '../../src/types';
import Loader from './components/Loader.vue';
// Custom components to render
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<script lang="ts">
import { Prop, Component, Vue } from 'vue-property-decorator';
import { Item } from '../../src/types';
import { Item } from '../../../src/types';
export interface Image {
alt: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="loader">
<img src="../assets/loader.svg" />
<img src="../../assets/loader.svg" />
<p>We limit the loading speed for demo purpose only.</p>
</div>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<script lang="ts">
import { Prop, Component, Vue } from 'vue-property-decorator';
import { Item } from '../../src/types';
import { Item } from '../../../src/types';
export interface Map {
coordinates: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script lang="ts">
import { Prop, Component, Vue } from 'vue-property-decorator';
import { Item } from '../../src/types';
import { Item } from '../../../src/types';
export interface Title {
title: string;
Expand Down
File renamed without changes.
Loading

0 comments on commit 0d485f3

Please sign in to comment.