mirror of
https://github.com/MarcZierle/photo-log-frontend.git
synced 2025-04-07 21:14:37 +00:00
delete old unused files
This commit is contained in:
parent
9b793ccfcb
commit
4c2ceb2ef9
52
index.html
52
index.html
@ -1,52 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script src="https://unpkg.com/vue@next"></script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div id="app">
|
|
||||||
<h2>{{ title }}</h2>
|
|
||||||
<input :value="title" @input="title = $event.target.value" >
|
|
||||||
<input v-model="count" type="number" >
|
|
||||||
<button @click="increment">Up</button>
|
|
||||||
<button @click="decrement">Down</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
const app = Vue.createApp({
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
title: "Hi there",
|
|
||||||
count: 5,
|
|
||||||
headingColor: 'some'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
count() {
|
|
||||||
console.log(this.count)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
increment() {
|
|
||||||
this.count++
|
|
||||||
},
|
|
||||||
decrement() {
|
|
||||||
this.count--
|
|
||||||
},
|
|
||||||
isEven() {
|
|
||||||
return this.count % 2 === 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
const vm = app.mount('#app')
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.even {
|
|
||||||
color: pink;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,31 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<h1>{{ title }}</h1>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// @group Sample Components
|
|
||||||
// just some sample code...
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
// the title of the pages
|
|
||||||
title: "Hello"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// @vuese
|
|
||||||
// clears something
|
|
||||||
clear() {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
h1 {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
</style>
|
|
Loading…
Reference in New Issue
Block a user