Skip to content

Commit

Permalink
Use vite as builder and demo runtime (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maronato authored Jan 31, 2022
1 parent 830a0f1 commit dd817ba
Show file tree
Hide file tree
Showing 50 changed files with 856 additions and 4,876 deletions.
36 changes: 0 additions & 36 deletions build/esbuild.config.mjs

This file was deleted.

4 changes: 0 additions & 4 deletions build/tsconfig.json

This file was deleted.

13 changes: 0 additions & 13 deletions demo/.editorconfig

This file was deleted.

11 changes: 0 additions & 11 deletions demo/.eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions demo/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions demo/.prettierrc

This file was deleted.

12 changes: 0 additions & 12 deletions demo/.stylelintrc

This file was deleted.

3 changes: 0 additions & 3 deletions demo/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,5 @@
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script>
;(function (document, window) {
if (!document || !window) {
return
}

var styleText =
"::-moz-focus-inner{border:0 !important;}:focus{outline: none !important;"
var unfocus_style = document.createElement("STYLE")

window.unfocus = function () {
document.getElementsByTagName("HEAD")[0].appendChild(unfocus_style)

document.addEventListener("mousedown", function () {
unfocus_style.innerHTML = styleText + "}"
})
document.addEventListener("keydown", function () {
unfocus_style.innerHTML = ""
})
}

unfocus.style = function (style) {
styleText += style
}

unfocus()
})(document, window)
</script>
</body>
</html>
37 changes: 0 additions & 37 deletions demo/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions demo/postcss.config.js

This file was deleted.

64 changes: 15 additions & 49 deletions demo/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,55 +1,21 @@
<template>
<div class="text-center m-64">
<button @click="showToast">Show toast</button>
</div>
<img alt="Vue logo" src="./assets/logo.png" />
<HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
</template>

<script lang="ts">
import { ref } from "vue"
import { useToast } from "./vue-toastification"
<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import HelloWorld from "./components/HelloWorld.vue"
</script>

import VRadio from "./components/ui/Radio/index"
import VSwitch from "./components/ui/Switch/index"
import VSlider from "./components/ui/Slider/index"
import VInput from "./components/ui/Input"
import VSelect from "./components/ui/Select"
import VButton from "./components/ui/Button"
import VCode from "./components/ui/Code"
export default {
name: "App",
components: {
HelloWorld,
VRadio,
VSlider,
VSwitch,
VInput,
VSelect,
VButton,
VCode,
},
setup() {
const toast = useToast()
const myData = ref(true)
const slider = ref(0)
const input = ref("hey")
const disable = ref(false)
const choices = ref([
{ text: "hey", value: "1" },
{ text: "oh", value: "2" },
])
const choice = ref(choices.value[0])
const showToast = () => toast.success("hey")
return { toast, myData, choices, choice, slider, input, disable, showToast }
},
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</script>
</style>
5 changes: 0 additions & 5 deletions demo/src/assets/css/global.css

This file was deleted.

64 changes: 0 additions & 64 deletions demo/src/assets/css/prismjs/plugins/toolbar.css

This file was deleted.

Loading

0 comments on commit dd817ba

Please sign in to comment.