This file contains hidden or 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> | |
<!-- [....] --> | |
<b-pagination-nav | |
v-model="FPS.currentPage" | |
align="right" | |
use-router | |
:number-of-pages="Math.max(1,totalPages)" | |
:link-gen="pageChanged" | |
/> | |
<!-- [....] --> |
This file contains hidden or 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
<script> | |
export default { | |
// [...] | |
watch: { | |
'$route.query': { | |
handler(newVal) { | |
const currentPageFromUrl = parseInt(newVal.currentPage) | |
this.FPS = this.sanitizeQueryParams(newVal) | |
this.$nextTick(() => { | |
if (currentPageFromUrl) { |
This file contains hidden or 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
<b-table | |
:items="dataProvider" | |
:fields="fields" | |
:per-page="FPS.perPage" | |
:filter="FPS.filter" | |
:sort-by="FPS.sortBy" | |
:sort-desc="FPS.sortDesc" | |
:head-variant="headVariant" | |
:current-page="FPS.currentPage" | |
:busy="isBusy" |
This file contains hidden or 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
@RestController | |
@RequestMapping("actors") | |
public class ActorController { | |
@Autowired | |
private ActorRepository repository; | |
@Autowired | |
private FilterService<Actor, Long> filterService; |
This file contains hidden or 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> | |
<b-container fluid> | |
<b-table | |
id="actors" | |
:items="dataProvider" | |
:fields="fields" | |
:per-page="FPS.perPage" | |
:filter="FPS.filter" | |
:sort-by="FPS.sortBy" | |
:sort-desc="FPS.sortDesc" |
This file contains hidden or 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
import request from '@/utils/request' | |
export default { | |
data() { | |
return { | |
totalRows: 0, | |
totalPages: 1, | |
isBusy: false, | |
FPS: { | |
filter: {}, | |
currentPage: 1 |
This file contains hidden or 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> | |
<div> | |
<b-form-select | |
:options="assignees" | |
value-field="id" | |
text-field="name" | |
v-model="selectedAssignee.id" | |
@change.native="changeAssignee($event, orderId)" | |
> | |
</b-form-select> |
This file contains hidden or 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> | |
<b-container class="editor" fluid> | |
<b-row :style="{width:'70%', margin: '0 auto'}"> | |
<b-col> | |
<textarea id="absolute-at-editor" :style="{width:'100%', height: '500px', position: 'relative'}" | |
v-model="text" | |
@input="calculateQuery()" | |
@keydown="$refs.suggest.onKeyDown($event); $refs.suggest.onListKeyUp($event)"></textarea> | |
<vue-simple-suggest :style="{left: caret.left +'px', top: caret.top + caret.height + 'px'}" | |
ref="suggest" |
This file contains hidden or 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
import java.util.LinkedHashMap; | |
import java.util.Map; | |
//as described here: https://boardgamegeek.com/boardgame/39856/dixit | |
public class Dixit { | |
public static void main(String[] args) { | |
//execution: score of one round for dixit | |
LinkedHashMap<String,String> playerVotes = new LinkedHashMap<>(); | |
playerVotes.put("Player1", null); // story teller doesn't vote a players card |