This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const offsetLeft = 2 | |
const offsetRight = 2 | |
const maxPageCount = 5 | |
const getPages = (totalRecords, pageSize, currentPage) => { | |
const totalPages = Math.ceil(totalRecords / pageSize) | |
if (totalPages <= maxPageCount) { | |
return [...Array(totalPages).keys()] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class_name CallableStateMachine | |
var state_dictionary = {} | |
var current_state: String | |
func add_states( | |
normal_state_callable: Callable, | |
enter_state_callable: Callable = Callable(), | |
leave_state_callable: Callable = Callable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<input type="text" :value="value" @input="updateValue" /> | |
{{value}} | |
</template> | |
<script> | |
import { ref } from "vue"; | |
export default { | |
name: "App", |