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 { bindings, defineFormKitConfig } from '@formkit/vue' | |
import { createI18nPlugin, de, es } from '@formkit/i18n' | |
import { | |
createLibraryPlugin, | |
form, | |
group, | |
submit, | |
hidden, | |
} from '@formkit/inputs' | |
import { createProPlugin, dropdown, colorpicker } from '@formkit/pro' |
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
<script> | |
import _mixins from './mixins' | |
export default { | |
mixins: [..._mixins] | |
methods: { | |
activate() { | |
this.ensureJsLib('foo', 'bar') | |
} |
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 https from 'https' | |
export default function({ $axios }) { | |
const agent = new https.Agent({ | |
rejectUnauthorized: false | |
}) | |
$axios.onRequest(config => { | |
if (process.env.dev) { | |
config.httpsAgent = agent | |
} |
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
<template> | |
<svg | |
class="ui-icon" | |
v-html="icon"> | |
</svg> | |
</template> | |
<script> | |
import { mapGetters } from 'vuex'; |
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
<template> | |
<ul class="ui-list ui-list--movies"> | |
<li | |
v-for="(movie, i) in movies" | |
:key="i"> | |
<Movie :shows="movie"> | |
</Movie> | |
</li> | |
</ul> | |
</template> |
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
<template> | |
<article | |
:style="{ height }"> | |
<button @click="changeHeight"> | |
</button> | |
</article> | |
</template> |
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 should = require('chai').should(); | |
const sinon = require('sinon'); | |
const proxyquire = require('proxyquire'); | |
describe('movie.js', function() { | |
const sandbox = sinon.sandbox.create(); | |
let Movie; | |
beforeEach(function() { | |
Movie = require('kinoheld/components/movie/movie.js'); |
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 moduleFactory = function moduleFactoryFn(moduleName = '') { | |
const module = function moduleConstructor(element = null, options = {}) { | |
// call init function of module | |
this.init(element, options); | |
} | |
module.prototype.baseFunctionality1() {}; | |
module.prototype.baseFunctionality2() {}; | |
return module; |
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 moduleFactory = function moduleFactoryFn(moduleName = '') { | |
const module = function moduleConstructor(element = null, options = {}) { | |
// call init function of module | |
this.init(); | |
} | |
module.prototype.baseFunctionality1() { | |
}; | |