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
const Fieldtype = { | |
template: ` | |
<div v-if="model.urlList"> | |
<div class="uk-flex uk-flex-middle" v-for="(locale, key) in options" :key="locale"> | |
<div v-html="locale" /> | |
<input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3" :value="model.urlList[key]" @input="validate($event, key)"> | |
<div>/</div> | |
<div v-if="showError[key]">!!! Url invalid</div> | |
</div> | |
</div> |
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
const Fieldtype = { | |
mixins: [window.Storyblok.plugin], | |
template: ` | |
<div> | |
<input | |
class="uk-width-1-1" | |
type="number" | |
@input="validate" | |
:step="1" | |
ref="input" |
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
const StoryblokClient = require('storyblok-js-client') | |
const Storyblok = new StoryblokClient({ | |
token: 'TOKEN' | |
}) | |
const Sync = { | |
getAll(page) { | |
return Storyblok.get(`stories`, { | |
per_page: 25, |
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 React from 'react' | |
import Components from './components.js'; | |
import { StaticQuery, graphql } from "gatsby" | |
class Navi extends React.Component { | |
constructor(props) { | |
super(props) | |
const nest = (items, id = 0) => items | |
.filter(item => item.parent_id === id) |
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
const StoryblokClient = require('storyblok-js-client') | |
const Storyblok = new StoryblokClient({ | |
oauthToken: 'TOKEN' | |
}) | |
const spaceId = SPACE_ID | |
const Sync = { | |
dimensions: [], |
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
const Fieldtype = { | |
mixins: [window.Storyblok.plugin], | |
template: ` | |
<div> | |
<input | |
class="uk-width-1-1" | |
type="number" | |
@input="validate" | |
:step="options.step || 1" | |
ref="input" |
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
const Fieldtype = { | |
mixins: [window.Storyblok.plugin], | |
template: `<div> | |
<h4>Padding</h4> | |
<div class="uk-grid uk-margin-bottom" v-if="isReady"> | |
<div class="uk-width-1-2"> | |
Top | |
<select v-model="model.normal.top" class="uk-width-1-1"> | |
<option v-for="item in options" :value="item" :key="item.id">{{ item.name }}</option> | |
</select> |
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
const Fieldtype = { | |
mixins: [window.Storyblok.plugin], | |
template: `<div> | |
<div v-if="modalOpen" style="height: 800px"> | |
<a class="uk-button uk-display-block" @click="closeModal">Close</a> | |
</div> | |
<a v-else class="uk-button uk-display-block" @click="openCloudinary">Select image</a> | |
</div>`, | |
data() { | |
return { |
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
const StoryblokClient = require('storyblok-js-client') | |
const Storyblok = new StoryblokClient({ | |
oauthToken: PROTECTED_VAR | |
}) | |
const sourceSpaceId = SOURCE_SPACE_ID | |
const targetSpaceId = TARGET_SPACE_ID | |
const Sync = { |
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
const StoryblokClient = require('storyblok-js-client') | |
const Storyblok = new StoryblokClient({ | |
oauthToken: PROTECTED_VAR | |
}) | |
const sourceSpaceId = SOURCE_SPACE_ID | |
const targetSpaceId = TARGET_SPACE_ID | |
const Sync = { |