mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-10-30 07:11:48 +00:00
89f1fde9d3
* Fixed bug in Vue Counting Comments Didn't support Javascript multi line comments or Javascript single line comments, removed duplicate quotes * Added Vue Test * Trigger Rebuild * Removed Prettier formatting * Fixed typo, closing ] in multi_line_comments
36 lines
509 B
Vue
36 lines
509 B
Vue
<!-- 36 lines, 24 code, 9 comments, 3 blanks -->
|
|
<template>
|
|
<div id="app">
|
|
<button v-on:click="clicked">
|
|
<!-- Button that increments count -->
|
|
Clicked {{ count }} {{ count == 1 ? "time" : "times" }}
|
|
</button>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
/*
|
|
Javascript Section
|
|
*/
|
|
// Single line
|
|
export default {
|
|
data() {
|
|
return {
|
|
count: 0,
|
|
};
|
|
},
|
|
|
|
clicked() {
|
|
this.count++;
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
/*
|
|
Styling Section
|
|
*/
|
|
button {
|
|
background-color: darkorange;
|
|
}
|
|
</style>
|