Skip to content

Instantly share code, notes, and snippets.

{
"results": [
{
"gender": "female",
"name": {
"title": "Miss",
"first": "Jennie",
"last": "Nichols"
},
"location": {
@b4n92uid
b4n92uid / Contact.ts
Last active September 23, 2023 11:13
[Vue] Assessment Test (Hard)
// Generated by https://quicktype.io
export interface Contact {
gender: string;
name: Name;
location: Location;
email: string;
login: Login;
dob: Dob;
registered: Dob;
@b4n92uid
b4n92uid / Contact.ts
Last active August 5, 2022 17:46
[Vue] Assessment Test
// Generated by https://quicktype.io
export interface Contact {
gender: string;
name: Name;
location: Location;
email: string;
login: Login;
dob: Dob;
registered: Dob;
@b4n92uid
b4n92uid / DateTimeField.vue
Created August 17, 2021 22:13
[Vuetify] DateTimeField
<template>
<div>
<v-text-field
class="v-date-field"
:class="{ 'v-date-field--rounded': rounded }"
:value="dateFormated"
prepend-inner-icon="mdi-calendar-blank"
readonly
@click="open"
:disabled="disabled"
@b4n92uid
b4n92uid / TheScanner.vue
Created May 27, 2021 01:05
[Vuetify] QRCode (Capacitor)
<template>
<div v-if="show" class="p-scanning">
<div class="d-flex align-center flex-grow-1">
<div class="p-scanning__crosshair"></div>
</div>
<div class="flex-shrink-1">
<v-text-field
v-model="inputCode"
label="Enter manually"
@b4n92uid
b4n92uid / PictureField.vue
Created March 12, 2021 00:13
[Vuetify] PictureField Base64
<template>
<v-card
class="v-picture-field rounded-lg"
:loading="loading > 0"
outlined
:class="{
'--has-content': value !== null
}"
@click.stop="sourceDialog = true"
>
@b4n92uid
b4n92uid / PictureField.vue
Last active August 17, 2021 22:19
[Vuetify] PictureField
<template>
<v-card
class="v-picture-field rounded-lg"
:loading="loading > 0"
outlined
:class="{
'--has-content': previewSrc !== null
}"
@click.stop="sourceDialog = true"
>
@b4n92uid
b4n92uid / app.scss
Last active August 17, 2021 22:16
[Vuetify] SCSS Helper
.v-application {
.h-100 {
height: 100% !important;
}
.w-100 {
width: 100% !important;
}
@for $i from 1 through 12 {
@b4n92uid
b4n92uid / TheaterBox.vue
Last active August 17, 2021 22:17
[Vuetify] TheaterBox
<template>
<v-dialog
:value="value"
@input="v => $emit('input', v)"
overlay
fullscreen
transition="fade-transition"
content-class="theater-box"
>
<div>
@b4n92uid
b4n92uid / StickyArea.vue
Created November 10, 2020 15:45
[Vue] StickyArea
<template>
<div class="sticky-area" :style="style" ref="wrap">
<div ref="top"></div>
<div ref="body">
<slot></slot>
</div>
<div ref="bottom"></div>
</div>
</template>