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 lang="pug"> | |
v-text-field( | |
ref='field', | |
:prefix='prefix', | |
v-model='model', | |
@focus='onFocus', | |
@keyup='onKeyUp', | |
:error-messages='errorMessages', | |
v-bind='$attrs', | |
@change='onChange' |
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 { | |
name: 'VSelectFile', | |
model: { | |
prop: 'value', | |
event: 'change' | |
}, | |
props: { | |
label: { | |
type: String, |
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 { | |
name: 'VFileBtn', | |
props: { | |
value: { | |
type: File, | |
default: null | |
}, | |
accept: { | |
type: String, |
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 { | |
data() { | |
return { | |
toasts: [], | |
timeout: 3000 | |
} | |
}, | |
created() { | |
this.$root.$on('toast', this.toast) |
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
function Deferred(data) { | |
this.data = data || {} | |
this.promise = new Promise((resolve, reject) => { | |
this.resolve = resolve | |
this.reject = reject | |
}) | |
Object.freeze(this) | |
} |
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 Deferred from './Deferred' | |
function Maxios(axios) { | |
this.axios = axios | |
this.adapter = axios.defaults.adapter | |
} | |
Maxios.prototype.pending = {} | |
Maxios.prototype.init = function () { |
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
function pagination(c, m) { | |
const current = c, | |
last = m, | |
delta = 2, | |
left = current - delta + 1, | |
right = current + delta + 2, | |
range = [], | |
rangeWithDots = [] | |
let l |
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
package portal.core; | |
import java.awt.Color; | |
import java.io.Closeable; | |
import java.io.IOException; | |
import java.util.ArrayDeque; | |
import java.util.Deque; | |
import org.apache.pdfbox.cos.COSDictionary; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.pdmodel.PDPage; |
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
#!/bin/bash | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 9.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :20150726 | |
#usage :/bin/bash wildfly-install.sh | |
WILDFLY_VERSION=9.0.1.Final | |
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION |