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 React from 'react'; | |
import { connectField } from 'uniforms'; | |
import Dropzone from 'react-dropzone'; | |
import withMeteorUploader from '../../hocs/with_meteor_uploader'; | |
import CollectionImage from '/client/modules/core/containers/collection_image'; | |
export const ImageFile = ({ | |
disabled, | |
id, | |
label, |
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
/** | |
DRAFT for a i18n_service for meteor-mantra-apps, it uses https://github.com/vazco/meteor-universe-i18n/ | |
Made to be used in configs/context.js in mantra: | |
const supportedLocales = [ 'de', 'en', 'fr', 'it' ]; | |
const defaultLocale = 'de'; | |
const i18n = I18nService( | |
{universeI18n, SimpleSchema, FlowRouter}, | |
{supportedLocales, defaultLocale} |
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
test | |
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
fizzbuzz = function(number) { | |
if (number % 15 === 0) { | |
return 'FizzBuzz'; | |
} | |
if (number % 3 === 0) { | |
return 'Fizz'; | |
} | |
if (number % 5 === 0) { | |
return 'Buzz'; |
NewerOlder