Skip to content

Instantly share code, notes, and snippets.

View boonyasukd's full-sized avatar

Boonyasuk Dheeravongkit boonyasukd

View GitHub Profile
@boonyasukd
boonyasukd / cloudbeds-menu-hider.user.js
Last active March 22, 2022 18:32
hiding CloudBeds' sensitive menu items from prying eyes
// ==UserScript==
// @name CloudBeds Menu Hider
// @namespace http://tampermonkey.net/
// @version 0.1
// @description hiding CloudBeds' sensitive menu items from prying eyes
// @author boonyasukd
// @match https://hotels.cloudbeds.com/connect/10253
// @icon https://www.google.com/s2/favicons?sz=64&domain=cloudbeds.com
// @grant none
// @require https://raw.githubusercontent.com/uzairfarooq/arrive/master/minified/arrive.min.js
<script>
import { state } from 'vue';
import { setValidation } from './validator';
export default {
setup() {
const validationRules = {
firstName: 'required|alpha_spaces|min:3|max:16',
lastName: 'required|alpha_spaces|min:3|max:16',
address: 'min:6|max:128',
@boonyasukd
boonyasukd / App.vue
Created July 27, 2017 07:03
Assignment 11
<template>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
<h1>Filters & Mixins</h1>
<div>{{ text | reverseText }}</div>
<hr>
<div>{{ text | counter }}</div>
<hr>
<div>{{ reverseComputed }}</div>
@boonyasukd
boonyasukd / App.vue
Created July 26, 2017 11:30
Assignment 10
<template>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
<h1>Directives Exercise</h1>
<div v-my-on:click="doAlert">I dare you to try clicking this text!</div>
<input v-my-on:keyup="doInputAlert">
</div>
</div>
</div>
@boonyasukd
boonyasukd / App.vue
Created July 26, 2017 10:15
Assignment 9
<template>
<div class="container">
<form>
<div class="row">
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
<form>
<div class="form-group">
<label>Name</label>
<full-name v-model="name"></full-name>
</div>
<template>
<div class="container">
<div class="row">
<div class="col-xs-12">
<br>
<button class="btn btn-primary" @click="selected = 'app-blue'">Load Blue Template</button>
<button class="btn btn-success" @click="selected = 'app-green'">Load Green Template</button>
<button class="btn btn-danger" @click="selected = 'app-red'">Load Red Template</button>
<hr>
<component :is="selected">
@boonyasukd
boonyasukd / App.vue
Last active July 17, 2017 10:27
Assignment 7
<template>
<div class="container">
<app-header></app-header>
<hr>
<div class="row">
<servers></servers>
<app-server-details></app-server-details>
</div>
<hr>
<app-footer></app-footer>
@boonyasukd
boonyasukd / App.vue
Created June 27, 2017 09:35
assignment6
<template>
<div class="container">
<my-header></my-header>
<hr>
<my-status-pane></my-status-pane>
<hr>
<my-footer></my-footer>
</div>
</template>
@boonyasukd
boonyasukd / rules_provider.html
Created June 5, 2017 09:56
separate validation rules out to provider()
<template>
<vee-form class="login-form">
<vee-form-item>
<vee-input name="email" title="Email" size="large"
v-model="email" v-validate />
</vee-form-item>
<vee-form-item>
<vee-input name="password" title="Password" type="password" size="large"
v-model="password" v-validate />
</vee-form-item>