This file contains 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
alert(111); | |
/** | |
* @license OpenTok.js 2.21.2 36aba9d71 | |
* | |
* Copyright (c) 2010-2021 TokBox, Inc. | |
* Subject to the applicable Software Development Kit (SDK) License Agreement: | |
* https://tokbox.com/support/sdk_license | |
* | |
* Date: Wed, 17 Nov 2021 17:51:38 GMT | |
*/ |
This file contains 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 Vue from 'vue'; | |
import { ExtendedVue } from 'vue/types/vue'; | |
export function cachedProp<T extends string>( | |
origin: string, | |
cached: T, | |
): ExtendedVue< | |
Vue, | |
Record<string, unknown>, | |
Record<string, unknown>, |
This file contains 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
new VuetifyLoaderPlugin({ | |
match (tag) { | |
switch (tag) { | |
case 'v-data-table': | |
return ['VDataTable', 'import VDataTable from "@/components/Common/DataTable"'] | |
case 'v-tooltip': | |
return ['VTooltip', "import VTooltip from '@/components/Common/Tooltip'"] | |
} | |
} | |
}) |
This file contains 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 VSelect from 'vuetify/lib/components/VSelect/VSelect' | |
export const Select = VSelect.extend({ | |
props: { | |
openOnEnter: { type: Boolean, default: true }, | |
}, | |
methods: { | |
onEnterDown() { | |
if (this.openOnEnter === true) { | |
this.constructor.superOptions.methods.onEnterDown.call(this) |
This file contains 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
<!-- UserForm.vue --> | |
<user-form> | |
<field-1 /> | |
<field-2 /> | |
<field-3 /> | |
</user-form> | |
<!-- DialogUser.vue --> | |
<common-dialog> | |
<template scope="form"> |
This file contains 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
module.exports = { | |
presets: [ | |
['@vue/app', { useBuiltIns: 'entry' }], | |
[ | |
'@babel/preset-env', | |
{ | |
targets: { | |
ie: '10', | |
browsers: 'last 2 versions', | |
}, |
This file contains 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
let myRandomNumber | |
before(async() => { | |
myRandomNumber = await new Promise((res, rej) => { | |
setTimeout(_ => res(Math.random()), 1500) | |
}) | |
describe('shame on mocha', () => { | |
it(`my rand is ${myRandomNumber}`) | |
}) |
This file contains 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 Vue from 'vue'; | |
/*! ***************************************************************************** | |
Copyright (c) Microsoft Corporation. All rights reserved. | |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | |
this file except in compliance with the License. You may obtain a copy of the | |
License at http://www.apache.org/licenses/LICENSE-2.0 | |
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED |
This file contains 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
declare const _default: FunctionalComponentOptions<Record<string, any>, string[] | { | |
[x: string]: PropOptions<any> | (() => any) | (new (...args: any[]) => any) | ((() => any) | (new (...args: any[]) => any))[]; | |
}>; |
This file contains 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
const Benchmark = require('benchmark') | |
const suite = new Benchmark.Suite() | |
suite | |
.add('With rounding inside loop', () => { | |
let i = 0 | |
let step = 0.5 | |
while(i < 1000) { | |
i += Math.round(step) | |
} |
NewerOlder