Skip to content

Instantly share code, notes, and snippets.

View katanlugi's full-sized avatar

Yoel Luginbuhl katanlugi

View GitHub Profile

Keybase proof

I hereby claim:

  • I am katanlugi on github.
  • I am katanlugi (https://keybase.io/katanlugi) on keybase.
  • I have a public key ASAkA61z_d5igjvRTz6Q5j4oGuWy5GIalhoLQ3SwgaiKmwo

To claim this, I am signing this object:

@katanlugi
katanlugi / Pagination.vue
Last active April 14, 2019 16:53
Generic vue-table for simple CRUD operations
<template>
<nav v-if="this.pages.length > 1"
class="pagination is-centered is-rounded" role="navigation" aria-label="pagination">
<a class="pagination-previous" @click.prevent="changePage(1)"
:disabled="pagination.current_page <= 1">
First page
</a>
<a class="pagination-previous" @click.prevent="changePage(pagination.current_page - 1)"
:disabled="pagination.current_page <= 1">
Previous
@katanlugi
katanlugi / Errors.js
Last active March 2, 2019 17:01
Forms template code
/** Class representing an error object */
export default class Errors {
/** Errors constructor */
constructor() {
this.errors = {};
}
/**
* Returns all errors
* @return {Object}