@bitwala/shared
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,11 +0,16 @@ | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
owner: { | ||
type: String, | ||
regEx: SimpleSchema.RegEx.Id, | ||
regEx: SimpleSchema.RegEx.Id | ||
}, | ||
createdAt: { | ||
type: Date, | ||
autoValue() { | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
@@ -18,3 +23,3 @@ return new Date(); | ||
type: Date, | ||
autoValue() { | ||
autoValue: function autoValue() { | ||
if (this.isUpdate || this.isInsert) { | ||
@@ -41,3 +46,3 @@ return new Date(); | ||
type: String, // Should be 64 chars | ||
autoValue() { | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
@@ -50,3 +55,3 @@ return Random.id(64); | ||
type: Number, | ||
autoValue() { | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
@@ -59,7 +64,6 @@ return 0; | ||
}, | ||
helpers(Meteor) { | ||
return { | ||
}; | ||
}, | ||
helpers: function helpers(Meteor) { | ||
return {}; | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,6 +0,12 @@ | ||
import {regEx, currencies} from '../Config'; | ||
'use strict'; | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _Config = require('../Config'); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -14,4 +20,6 @@ recipientType: { | ||
type: String, | ||
allowedValues: currencies.map(c => c['value]']), | ||
label: 'Currency', | ||
allowedValues: _Config.currencies.map(function (c) { | ||
return c['value]']; | ||
}), | ||
label: 'Currency' | ||
}, | ||
@@ -22,13 +30,13 @@ name: { | ||
// regex: /^[\S+ ]+\S+$/, | ||
label: 'Name', | ||
label: 'Name' | ||
}, | ||
iban: { | ||
type: String, | ||
regEx: regEx.iban, | ||
label: 'IBAN', | ||
regEx: _Config.regEx.iban, | ||
label: 'IBAN' | ||
}, | ||
bic: { | ||
type: String, | ||
regEx: regEx.bic, | ||
label : 'BIC', | ||
regEx: _Config.regEx.bic, | ||
label: 'BIC' | ||
}, | ||
@@ -52,10 +60,9 @@ recipientAddress: { | ||
optional: true | ||
}, | ||
} | ||
}; | ||
}, | ||
helpers(Meteor) { | ||
return { | ||
}; | ||
}, | ||
helpers: function helpers(Meteor) { | ||
return {}; | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,3 +0,8 @@ | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -10,10 +15,9 @@ bankAccount: { | ||
optional: true | ||
}, | ||
} | ||
}; | ||
}, | ||
helpers(Meteor) { | ||
return { | ||
}; | ||
}, | ||
helpers: function helpers(Meteor) { | ||
return {}; | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,6 +0,12 @@ | ||
import {regEx} from '../Config'; | ||
'use strict'; | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _Config = require('../Config'); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -22,3 +28,3 @@ psp: { | ||
type: Number, | ||
autoValue() { | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
@@ -32,3 +38,3 @@ return 0; | ||
allowedValues: ['XBT'], | ||
autoValue() { | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
@@ -50,9 +56,10 @@ return 'XBT'; | ||
}, | ||
helpers(Meteor) { | ||
helpers: function helpers(Meteor) { | ||
return { | ||
testMethod() { | ||
testMethod: function testMethod() { | ||
return true; | ||
} | ||
}; | ||
}, | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,8 +0,14 @@ | ||
import {cards as cardConfig} from '../Config'; | ||
'use strict'; | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
const addressSchema = require('./schemas/address'); | ||
var _Config = require('../Config'); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
var addressSchema = require('./schemas/address'); | ||
return { | ||
@@ -15,3 +21,3 @@ card: { | ||
type: String, | ||
allowedValues: [ 'physical', 'virtual' ], | ||
allowedValues: ['physical', 'virtual'], | ||
defaultValue: 'virtual' | ||
@@ -29,15 +35,15 @@ }, | ||
}, | ||
helpers(Meteor, Cards) { | ||
helpers: function helpers(Meteor, Cards) { | ||
return { | ||
getCard() { | ||
getCard: function getCard() { | ||
return Cards.findOne(this.card); | ||
}, | ||
getPrice() { | ||
let price = 0; | ||
getPrice: function getPrice() { | ||
var price = 0; | ||
if (this.delivery === 'virtual') { | ||
price = cardConfig['prices']['virtual']; | ||
price = _Config.cards['prices']['virtual']; | ||
} else if (this.expressDelivery) { | ||
price = cardConfig['prices']['expressDelivery']; | ||
price = _Config.cards['prices']['expressDelivery']; | ||
} else { | ||
price = cardConfig['prices']['physical']; | ||
price = _Config.cards['prices']['physical']; | ||
} | ||
@@ -47,3 +53,4 @@ return price; | ||
}; | ||
}, | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,3 +0,8 @@ | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -10,9 +15,10 @@ card: { | ||
}, | ||
helpers(Meteor, Cards) { | ||
helpers: function helpers(Meteor, Cards) { | ||
return { | ||
getCard() { | ||
getCard: function getCard() { | ||
return Cards.findOne(this.card); | ||
} | ||
}; | ||
}, | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,6 +0,12 @@ | ||
import {statuses} from '../Config'; | ||
'use strict'; | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _Config = require('../Config'); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -13,7 +19,9 @@ label: { | ||
type: String, | ||
allowedValues: statuses.cards.map(s => s['value']) | ||
allowedValues: _Config.statuses.cards.map(function (s) { | ||
return s['value']; | ||
}) | ||
}, | ||
externalId: { | ||
type: String, | ||
autoValue() { | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
@@ -26,7 +34,7 @@ return null; | ||
type: Number, | ||
decimal: true, | ||
decimal: true | ||
}, | ||
currency: { | ||
type: String, | ||
allowedValues: [ 'EUR' ], | ||
allowedValues: ['EUR'], | ||
defaultValue: 'EUR' | ||
@@ -36,7 +44,6 @@ } | ||
}, | ||
helpers(Meteor) { | ||
return { | ||
}; | ||
}, | ||
helpers: function helpers(Meteor) { | ||
return {}; | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,13 +0,19 @@ | ||
import {regEx} from '../Config'; | ||
'use strict'; | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _Config = require('../Config'); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
name: { | ||
type: String, | ||
type: String | ||
}, | ||
type: { | ||
type: String, | ||
allowedValues: [ 'ORGANIZATION', 'INDIVIDUAL' ], | ||
allowedValues: ['ORGANIZATION', 'INDIVIDUAL'], | ||
defaultValue: 'INDIVIDUAL' | ||
@@ -37,7 +43,6 @@ }, | ||
// Can be associated with a user, and possibly and org in the future | ||
collection: { | ||
type: String, | ||
allowedValues: [ 'Users' ], | ||
allowedValues: ['Users'], | ||
optional: true | ||
@@ -62,8 +67,8 @@ }, | ||
bankAccounts: { | ||
type: [ Object ], | ||
type: [Object], | ||
optional: true | ||
}, | ||
bitcoinAddresses: { | ||
type: [ String ], | ||
regEx: regEx.btcAddress, | ||
type: [String], | ||
regEx: _Config.regEx.btcAddress, | ||
optional: true | ||
@@ -73,5 +78,5 @@ } | ||
}, | ||
helpers(Meteor, Users) { | ||
helpers: function helpers(Meteor, Users) { | ||
return { | ||
getEntity() { | ||
getEntity: function getEntity() { | ||
if (this.collection = 'User') { | ||
@@ -81,7 +86,8 @@ return Users.findOne(this.doc); | ||
}, | ||
isUser() { | ||
isUser: function isUser() { | ||
this.collection === 'Users'; | ||
} | ||
}; | ||
}, | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,3 +0,8 @@ | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -13,7 +18,6 @@ email: { | ||
}, | ||
helpers(Meteor) { | ||
return { | ||
}; | ||
}, | ||
helpers: function helpers(Meteor) { | ||
return {}; | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,5 +0,15 @@ | ||
export default (Meteor) => ({ | ||
getOwner() { | ||
return this.owner ? Meteor.users.findOne(this.owner) : null; | ||
}, | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (Meteor) { | ||
return { | ||
getOwner: function getOwner() { | ||
return this.owner ? Meteor.users.findOne(this.owner) : null; | ||
} | ||
}; | ||
}; | ||
module.exports = exports['default']; |
@@ -1,5 +0,15 @@ | ||
export default (Meteor, Transactions) => ({ | ||
getTransaction() { | ||
return Transactions.findOne(this.transaction); | ||
} | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (Meteor, Transactions) { | ||
return { | ||
getTransaction: function getTransaction() { | ||
return Transactions.findOne(this.transaction); | ||
} | ||
}; | ||
}; | ||
module.exports = exports['default']; |
@@ -1,58 +0,122 @@ | ||
import baseHelpers from './helpers/base'; | ||
import baseSchema from './schemas/base'; | ||
import entriesHelpers from './helpers/entries'; | ||
import entriesSchema from './schemas/entries'; | ||
import inputsSchema from './schemas/inputs'; | ||
import outputsSchema from './schemas/outputs'; | ||
'use strict'; | ||
exports.baseHelpers = (Meteor) => { | ||
return baseHelpers(Meteor); | ||
var _base = require('./helpers/base'); | ||
var _base2 = _interopRequireDefault(_base); | ||
var _base3 = require('./schemas/base'); | ||
var _base4 = _interopRequireDefault(_base3); | ||
var _entries = require('./helpers/entries'); | ||
var _entries2 = _interopRequireDefault(_entries); | ||
var _entries3 = require('./schemas/entries'); | ||
var _entries4 = _interopRequireDefault(_entries3); | ||
var _inputs = require('./schemas/inputs'); | ||
var _inputs2 = _interopRequireDefault(_inputs); | ||
var _outputs = require('./schemas/outputs'); | ||
var _outputs2 = _interopRequireDefault(_outputs); | ||
var _bank_transfers = require('./bank_transfers'); | ||
var _bank_transfers2 = _interopRequireDefault(_bank_transfers); | ||
var _bank_accounts = require('./bank_accounts'); | ||
var _bank_accounts2 = _interopRequireDefault(_bank_accounts); | ||
var _bitcoin_invoices = require('./bitcoin_invoices'); | ||
var _bitcoin_invoices2 = _interopRequireDefault(_bitcoin_invoices); | ||
var _card_purchases = require('./card_purchases'); | ||
var _card_purchases2 = _interopRequireDefault(_card_purchases); | ||
var _card_top_ups = require('./card_top_ups'); | ||
var _card_top_ups2 = _interopRequireDefault(_card_top_ups); | ||
var _contacts = require('./contacts'); | ||
var _contacts2 = _interopRequireDefault(_contacts); | ||
var _cards = require('./cards'); | ||
var _cards2 = _interopRequireDefault(_cards); | ||
var _guests = require('./guests'); | ||
var _guests2 = _interopRequireDefault(_guests); | ||
var _messages = require('./messages'); | ||
var _messages2 = _interopRequireDefault(_messages); | ||
var _notifications = require('./notifications'); | ||
var _notifications2 = _interopRequireDefault(_notifications); | ||
var _threads = require('./threads'); | ||
var _threads2 = _interopRequireDefault(_threads); | ||
var _transactions = require('./transactions'); | ||
var _transactions2 = _interopRequireDefault(_transactions); | ||
var _users = require('./users'); | ||
var _users2 = _interopRequireDefault(_users); | ||
var _organizations = require('./organizations'); | ||
var _organizations2 = _interopRequireDefault(_organizations); | ||
var _api_projects = require('./api_projects'); | ||
var _api_projects2 = _interopRequireDefault(_api_projects); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.baseHelpers = function (Meteor) { | ||
return (0, _base2.default)(Meteor); | ||
}; | ||
exports.baseSchema = (Meteor, SimpleSchema) => { | ||
return baseSchema(Meteor, SimpleSchema); | ||
exports.baseSchema = function (Meteor, SimpleSchema) { | ||
return (0, _base4.default)(Meteor, SimpleSchema); | ||
}; | ||
exports.entriesHelpers = (Meteor, Transactions) => { | ||
return entriesHelpers(Meteor, Transactions); | ||
exports.entriesHelpers = function (Meteor, Transactions) { | ||
return (0, _entries2.default)(Meteor, Transactions); | ||
}; | ||
exports.entriesSchema = (Meteor, SimpleSchema) => { | ||
return entriesSchema(Meteor, SimpleSchema); | ||
exports.entriesSchema = function (Meteor, SimpleSchema) { | ||
return (0, _entries4.default)(Meteor, SimpleSchema); | ||
}; | ||
exports.inputsSchema = (Meteor, SimpleSchema) => { | ||
return inputsSchema(Meteor, SimpleSchema); | ||
exports.inputsSchema = function (Meteor, SimpleSchema) { | ||
return (0, _inputs2.default)(Meteor, SimpleSchema); | ||
}; | ||
exports.outputsSchema = (Meteor, SimpleSchema) => { | ||
return outputsSchema(Meteor, SimpleSchema); | ||
exports.outputsSchema = function (Meteor, SimpleSchema) { | ||
return (0, _outputs2.default)(Meteor, SimpleSchema); | ||
}; | ||
import BankTransfers from './bank_transfers'; | ||
import BankAccounts from './bank_accounts'; | ||
import BitcoinInvoices from './bitcoin_invoices'; | ||
import CardPurchases from './card_purchases'; | ||
import CardTopUps from './card_top_ups'; | ||
import Contacts from './contacts'; | ||
import Cards from './cards'; | ||
import Guests from './guests'; | ||
import Messages from './messages'; | ||
import Notifications from './notifications'; | ||
import Threads from './threads'; | ||
import Transactions from './transactions'; | ||
import Users from './users'; | ||
import Organizations from './organizations'; | ||
import ApiProjects from './api_projects'; | ||
exports.BankTransfers = BankTransfers; | ||
exports.BankAccounts = BankAccounts; | ||
exports.BitcoinInvoices = BitcoinInvoices; | ||
exports.CardPurchases = CardPurchases; | ||
exports.CardTopUps = CardTopUps; | ||
exports.Contacts = Contacts; | ||
exports.Cards = Cards; | ||
exports.Guests = Guests; | ||
exports.Messages = Messages; | ||
exports.Notifications = Notifications; | ||
exports.Threads = Threads; | ||
exports.Transactions = Transactions; | ||
exports.Users = Users; | ||
exports.Organizations = Organizations; | ||
exports.ApiProjects = ApiProjects; | ||
exports.BankTransfers = _bank_transfers2.default; | ||
exports.BankAccounts = _bank_accounts2.default; | ||
exports.BitcoinInvoices = _bitcoin_invoices2.default; | ||
exports.CardPurchases = _card_purchases2.default; | ||
exports.CardTopUps = _card_top_ups2.default; | ||
exports.Contacts = _contacts2.default; | ||
exports.Cards = _cards2.default; | ||
exports.Guests = _guests2.default; | ||
exports.Messages = _messages2.default; | ||
exports.Notifications = _notifications2.default; | ||
exports.Threads = _threads2.default; | ||
exports.Transactions = _transactions2.default; | ||
exports.Users = _users2.default; | ||
exports.Organizations = _organizations2.default; | ||
exports.ApiProjects = _api_projects2.default; |
@@ -1,3 +0,8 @@ | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -13,7 +18,6 @@ thread: { | ||
}, | ||
helpers(Meteor) { | ||
return { | ||
}; | ||
}, | ||
helpers: function helpers(Meteor) { | ||
return {}; | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,4 +0,9 @@ | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -25,4 +30,3 @@ type: { | ||
Slack | ||
{ | ||
{ | ||
text: 'Message here', | ||
@@ -54,7 +58,6 @@ channel: '#bitwala_transactions' | ||
}, | ||
helpers(Meteor) { | ||
return { | ||
}; | ||
}, | ||
helpers: function helpers(Meteor) { | ||
return {}; | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,4 +0,9 @@ | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -12,6 +17,6 @@ name: { | ||
admins: { | ||
type: [ String ], | ||
autoValue() { | ||
type: [String], | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
return Meteor.isClient ? [ Meteor.userId() ] : [ this.userId ]; | ||
return Meteor.isClient ? [Meteor.userId()] : [this.userId]; | ||
} | ||
@@ -22,7 +27,6 @@ } | ||
}, | ||
helpers(Meteor) { | ||
return { | ||
}; | ||
}, | ||
helpers: function helpers(Meteor) { | ||
return {}; | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,4 +0,14 @@ | ||
import countries from './lib/countries'; | ||
'use strict'; | ||
export default { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _countries = require('./lib/countries'); | ||
var _countries2 = _interopRequireDefault(_countries); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = { | ||
lineOne: { | ||
@@ -16,3 +26,3 @@ type: String | ||
type: String, | ||
allowedValues: countries | ||
allowedValues: _countries2.default | ||
}, | ||
@@ -27,1 +37,2 @@ region: { | ||
}; | ||
module.exports = exports['default']; |
@@ -1,31 +0,41 @@ | ||
export default (Meteor, SimpleSchema) => ({ | ||
owner: { | ||
type: String, | ||
optional: true, | ||
autoValue() { | ||
if (this.isInsert) { | ||
return Meteor.isClient ? Meteor.userId() : this.userId; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (Meteor, SimpleSchema) { | ||
return { | ||
owner: { | ||
type: String, | ||
optional: true, | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
return Meteor.isClient ? Meteor.userId() : this.userId; | ||
} | ||
} | ||
} | ||
}, | ||
createdAt: { | ||
type: Date, | ||
autoValue() { | ||
if (this.isInsert) { | ||
return new Date(); | ||
}, | ||
createdAt: { | ||
type: Date, | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
return new Date(); | ||
} | ||
} | ||
} | ||
}, | ||
updatedAt: { | ||
type: Date, | ||
autoValue() { | ||
if (this.isUpdate || this.isInsert) { | ||
return new Date(); | ||
}, | ||
updatedAt: { | ||
type: Date, | ||
autoValue: function autoValue() { | ||
if (this.isUpdate || this.isInsert) { | ||
return new Date(); | ||
} | ||
} | ||
}, | ||
deletedAt: { | ||
type: Date, | ||
optional: true | ||
} | ||
}, | ||
deletedAt: { | ||
type: Date, | ||
optional: true | ||
}, | ||
}); | ||
}; | ||
}; | ||
module.exports = exports['default']; |
@@ -1,5 +0,11 @@ | ||
import {statuses, currencies} from '../../Config'; | ||
'use strict'; | ||
export default (Meteor, SimpleSchema) => { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _Config = require('../../Config'); | ||
exports.default = function (Meteor, SimpleSchema) { | ||
return { | ||
@@ -12,4 +18,6 @@ transaction: { | ||
type: String, | ||
allowedValues: statuses.entries.map(s => s['value']), | ||
autoValue() { | ||
allowedValues: _Config.statuses.entries.map(function (s) { | ||
return s['value']; | ||
}), | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
@@ -22,7 +30,9 @@ return 'new'; | ||
type: Boolean, | ||
defaultValue: false, | ||
defaultValue: false | ||
}, | ||
currency: { | ||
type: String, | ||
allowedValues: currencies.map(c => c['value']) | ||
allowedValues: _Config.currencies.map(function (c) { | ||
return c['value']; | ||
}) | ||
}, | ||
@@ -35,1 +45,3 @@ amount: { | ||
}; | ||
module.exports = exports['default']; |
@@ -1,33 +0,45 @@ | ||
import {currencies} from '../../Config'; | ||
'use strict'; | ||
export default (Meteor, SimpleSchema) => ({ | ||
amount: { | ||
type: Number, | ||
decimal: true, | ||
optional: true | ||
}, | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
convertedAmount: { | ||
type: Number, | ||
decimal: true | ||
}, | ||
var _Config = require('../../Config'); | ||
convertedCurrency: { | ||
type: String, | ||
allowedValues: currencies.map(c => c['value']) | ||
}, | ||
exports.default = function (Meteor, SimpleSchema) { | ||
return { | ||
amount: { | ||
type: Number, | ||
decimal: true, | ||
optional: true | ||
}, | ||
sender: { | ||
type: Object | ||
}, | ||
convertedAmount: { | ||
type: Number, | ||
decimal: true | ||
}, | ||
'sender.collection': { | ||
type: String, | ||
allowedValues: [ 'Users', 'Guests' ] | ||
}, | ||
convertedCurrency: { | ||
type: String, | ||
allowedValues: _Config.currencies.map(function (c) { | ||
return c['value']; | ||
}) | ||
}, | ||
'sender.doc': { | ||
type: String, | ||
regEx: SimpleSchema.RegEx.Id | ||
} | ||
}); | ||
sender: { | ||
type: Object | ||
}, | ||
'sender.collection': { | ||
type: String, | ||
allowedValues: ['Users', 'Guests'] | ||
}, | ||
'sender.doc': { | ||
type: String, | ||
regEx: SimpleSchema.RegEx.Id | ||
} | ||
}; | ||
}; | ||
module.exports = exports['default']; |
@@ -1,753 +0,757 @@ | ||
export default [ | ||
{ | ||
label: 'Afghanistan', | ||
value: 'AF' | ||
}, { | ||
label: 'Åland Islands', | ||
value: 'AX' | ||
}, { | ||
label: 'Albania', | ||
value: 'AL' | ||
}, { | ||
label: 'Algeria', | ||
value: 'DZ' | ||
}, { | ||
label: 'American Samoa', | ||
value: 'AS' | ||
}, { | ||
label: 'Andorra', | ||
value: 'AD' | ||
}, { | ||
label: 'Angola', | ||
value: 'AO' | ||
}, { | ||
label: 'Anguilla', | ||
value: 'AI' | ||
}, { | ||
label: 'Antarctica', | ||
value: 'AQ' | ||
}, { | ||
label: 'Antigua and Barbuda', | ||
value: 'AG' | ||
}, { | ||
label: 'Argentina', | ||
value: 'AR' | ||
}, { | ||
label: 'Armenia', | ||
value: 'AM' | ||
}, { | ||
label: 'Aruba', | ||
value: 'AW' | ||
}, { | ||
label: 'Australia', | ||
value: 'AU' | ||
}, { | ||
label: 'Austria', | ||
value: 'AT' | ||
}, { | ||
label: 'Azerbaijan', | ||
value: 'AZ' | ||
}, { | ||
label: 'Bahamas', | ||
value: 'BS' | ||
}, { | ||
label: 'Bahrain', | ||
value: 'BH' | ||
}, { | ||
label: 'Bangladesh', | ||
value: 'BD' | ||
}, { | ||
label: 'Barbados', | ||
value: 'BB' | ||
}, { | ||
label: 'Belarus', | ||
value: 'BY' | ||
}, { | ||
label: 'Belgium', | ||
value: 'BE' | ||
}, { | ||
label: 'Belize', | ||
value: 'BZ' | ||
}, { | ||
label: 'Benin', | ||
value: 'BJ' | ||
}, { | ||
label: 'Bermuda', | ||
value: 'BM' | ||
}, { | ||
label: 'Bhutan', | ||
value: 'BT' | ||
}, { | ||
label: 'Bolivia (Plurinational State of)', | ||
value: 'BO' | ||
}, { | ||
label: 'Bonaire, Sint Eustatius and Saba', | ||
value: 'BQ' | ||
}, { | ||
label: 'Bosnia and Herzegovina', | ||
value: 'BA' | ||
}, { | ||
label: 'Botswana', | ||
value: 'BW' | ||
}, { | ||
label: 'Bouvet Island', | ||
value: 'BV' | ||
}, { | ||
label: 'Brazil', | ||
value: 'BR' | ||
}, { | ||
label: 'British Indian Ocean Territory', | ||
value: 'IO' | ||
}, { | ||
label: 'Brunei Darussalam', | ||
value: 'BN' | ||
}, { | ||
label: 'Bulgaria', | ||
value: 'BG' | ||
}, { | ||
label: 'Burkina Faso', | ||
value: 'BF' | ||
}, { | ||
label: 'Burundi', | ||
value: 'BI' | ||
}, { | ||
label: 'Cambodia', | ||
value: 'KH' | ||
}, { | ||
label: 'Cameroon', | ||
value: 'CM' | ||
}, { | ||
label: 'Canada', | ||
value: 'CA' | ||
}, { | ||
label: 'Cabo Verde', | ||
value: 'CV' | ||
}, { | ||
label: 'Cayman Islands', | ||
value: 'KY' | ||
}, { | ||
label: 'Central African Republic', | ||
value: 'CF' | ||
}, { | ||
label: 'Chad', | ||
value: 'TD' | ||
}, { | ||
label: 'Chile', | ||
value: 'CL' | ||
}, { | ||
label: 'China', | ||
value: 'CN' | ||
}, { | ||
label: 'Christmas Island', | ||
value: 'CX' | ||
}, { | ||
label: 'Cocos (Keeling) Islands', | ||
value: 'CC' | ||
}, { | ||
label: 'Colombia', | ||
value: 'CO' | ||
}, { | ||
label: 'Comoros', | ||
value: 'KM' | ||
}, { | ||
label: 'Congo', | ||
value: 'CG' | ||
}, { | ||
label: 'Congo (Democratic Republic of the)', | ||
value: 'CD' | ||
}, { | ||
label: 'Cook Islands', | ||
value: 'CK' | ||
}, { | ||
label: 'Costa Rica', | ||
value: 'CR' | ||
}, { | ||
label: 'Côte d\'Ivoire', | ||
value: 'CI' | ||
}, { | ||
label: 'Croatia', | ||
value: 'HR' | ||
}, { | ||
label: 'Cuba', | ||
value: 'CU' | ||
}, { | ||
label: 'Curaçao', | ||
value: 'CW' | ||
}, { | ||
label: 'Cyprus', | ||
value: 'CY' | ||
}, { | ||
label: 'Czech Republic', | ||
value: 'CZ' | ||
}, { | ||
label: 'Denmark', | ||
value: 'DK' | ||
}, { | ||
label: 'Djibouti', | ||
value: 'DJ' | ||
}, { | ||
label: 'Dominica', | ||
value: 'DM' | ||
}, { | ||
label: 'Dominican Republic', | ||
value: 'DO' | ||
}, { | ||
label: 'Ecuador', | ||
value: 'EC' | ||
}, { | ||
label: 'Egypt', | ||
value: 'EG' | ||
}, { | ||
label: 'El Salvador', | ||
value: 'SV' | ||
}, { | ||
label: 'Equatorial Guinea', | ||
value: 'GQ' | ||
}, { | ||
label: 'Eritrea', | ||
value: 'ER' | ||
}, { | ||
label: 'Estonia', | ||
value: 'EE' | ||
}, { | ||
label: 'Ethiopia', | ||
value: 'ET' | ||
}, { | ||
label: 'Falkland Islands (Malvinas)', | ||
value: 'FK' | ||
}, { | ||
label: 'Faroe Islands', | ||
value: 'FO' | ||
}, { | ||
label: 'Fiji', | ||
value: 'FJ' | ||
}, { | ||
label: 'Finland', | ||
value: 'FI' | ||
}, { | ||
label: 'France', | ||
value: 'FR' | ||
}, { | ||
label: 'French Guiana', | ||
value: 'GF' | ||
}, { | ||
label: 'French Polynesia', | ||
value: 'PF' | ||
}, { | ||
label: 'French Southern Territories', | ||
value: 'TF' | ||
}, { | ||
label: 'Gabon', | ||
value: 'GA' | ||
}, { | ||
label: 'Gambia', | ||
value: 'GM' | ||
}, { | ||
label: 'Georgia', | ||
value: 'GE' | ||
}, { | ||
label: 'Germany', | ||
value: 'DE' | ||
}, { | ||
label: 'Ghana', | ||
value: 'GH' | ||
}, { | ||
label: 'Gibraltar', | ||
value: 'GI' | ||
}, { | ||
label: 'Greece', | ||
value: 'GR' | ||
}, { | ||
label: 'Greenland', | ||
value: 'GL' | ||
}, { | ||
label: 'Grenada', | ||
value: 'GD' | ||
}, { | ||
label: 'Guadeloupe', | ||
value: 'GP' | ||
}, { | ||
label: 'Guam', | ||
value: 'GU' | ||
}, { | ||
label: 'Guatemala', | ||
value: 'GT' | ||
}, { | ||
label: 'Guernsey', | ||
value: 'GG' | ||
}, { | ||
label: 'Guinea', | ||
value: 'GN' | ||
}, { | ||
label: 'Guinea-Bissau', | ||
value: 'GW' | ||
}, { | ||
label: 'Guyana', | ||
value: 'GY' | ||
}, { | ||
label: 'Haiti', | ||
value: 'HT' | ||
}, { | ||
label: 'Heard Island and McDonald Islands', | ||
value: 'HM' | ||
}, { | ||
label: 'Holy See', | ||
value: 'VA' | ||
}, { | ||
label: 'Honduras', | ||
value: 'HN' | ||
}, { | ||
label: 'Hong Kong', | ||
value: 'HK' | ||
}, { | ||
label: 'Hungary', | ||
value: 'HU' | ||
}, { | ||
label: 'Iceland', | ||
value: 'IS' | ||
}, { | ||
label: 'India', | ||
value: 'IN' | ||
}, { | ||
label: 'Indonesia', | ||
value: 'ID' | ||
}, { | ||
label: 'Iran (Islamic Republic of)', | ||
value: 'IR' | ||
}, { | ||
label: 'Iraq', | ||
value: 'IQ' | ||
}, { | ||
label: 'Ireland', | ||
value: 'IE' | ||
}, { | ||
label: 'Isle of Man', | ||
value: 'IM' | ||
}, { | ||
label: 'Israel', | ||
value: 'IL' | ||
}, { | ||
label: 'Italy', | ||
value: 'IT' | ||
}, { | ||
label: 'Jamaica', | ||
value: 'JM' | ||
}, { | ||
label: 'Japan', | ||
value: 'JP' | ||
}, { | ||
label: 'Jersey', | ||
value: 'JE' | ||
}, { | ||
label: 'Jordan', | ||
value: 'JO' | ||
}, { | ||
label: 'Kazakhstan', | ||
value: 'KZ' | ||
}, { | ||
label: 'Kenya', | ||
value: 'KE' | ||
}, { | ||
label: 'Kiribati', | ||
value: 'KI' | ||
}, { | ||
label: 'Korea (Democratic People\'s Republic of)', | ||
value: 'KP' | ||
}, { | ||
label: 'Korea (Republic of)', | ||
value: 'KR' | ||
}, { | ||
label: 'Kuwait', | ||
value: 'KW' | ||
}, { | ||
label: 'Kyrgyzstan', | ||
value: 'KG' | ||
}, { | ||
label: 'Lao People\'s Democratic Republic', | ||
value: 'LA' | ||
}, { | ||
label: 'Latvia', | ||
value: 'LV' | ||
}, { | ||
label: 'Lebanon', | ||
value: 'LB' | ||
}, { | ||
label: 'Lesotho', | ||
value: 'LS' | ||
}, { | ||
label: 'Liberia', | ||
value: 'LR' | ||
}, { | ||
label: 'Libya', | ||
value: 'LY' | ||
}, { | ||
label: 'Liechtenstein', | ||
value: 'LI' | ||
}, { | ||
label: 'Lithuania', | ||
value: 'LT' | ||
}, { | ||
label: 'Luxembourg', | ||
value: 'LU' | ||
}, { | ||
label: 'Macao', | ||
value: 'MO' | ||
}, { | ||
label: 'Macedonia (the former Yugoslav Republic of)', | ||
value: 'MK' | ||
}, { | ||
label: 'Madagascar', | ||
value: 'MG' | ||
}, { | ||
label: 'Malawi', | ||
value: 'MW' | ||
}, { | ||
label: 'Malaysia', | ||
value: 'MY' | ||
}, { | ||
label: 'Maldives', | ||
value: 'MV' | ||
}, { | ||
label: 'Mali', | ||
value: 'ML' | ||
}, { | ||
label: 'Malta', | ||
value: 'MT' | ||
}, { | ||
label: 'Marshall Islands', | ||
value: 'MH' | ||
}, { | ||
label: 'Martinique', | ||
value: 'MQ' | ||
}, { | ||
label: 'Mauritania', | ||
value: 'MR' | ||
}, { | ||
label: 'Mauritius', | ||
value: 'MU' | ||
}, { | ||
label: 'Mayotte', | ||
value: 'YT' | ||
}, { | ||
label: 'Mexico', | ||
value: 'MX' | ||
}, { | ||
label: 'Micronesia (Federated States of)', | ||
value: 'FM' | ||
}, { | ||
label: 'Moldova (Republic of)', | ||
value: 'MD' | ||
}, { | ||
label: 'Monaco', | ||
value: 'MC' | ||
}, { | ||
label: 'Mongolia', | ||
value: 'MN' | ||
}, { | ||
label: 'Montenegro', | ||
value: 'ME' | ||
}, { | ||
label: 'Montserrat', | ||
value: 'MS' | ||
}, { | ||
label: 'Morocco', | ||
value: 'MA' | ||
}, { | ||
label: 'Mozambique', | ||
value: 'MZ' | ||
}, { | ||
label: 'Myanmar', | ||
value: 'MM' | ||
}, { | ||
label: 'Namibia', | ||
value: 'NA' | ||
}, { | ||
label: 'Nauru', | ||
value: 'NR' | ||
}, { | ||
label: 'Nepal', | ||
value: 'NP' | ||
}, { | ||
label: 'Netherlands', | ||
value: 'NL' | ||
}, { | ||
label: 'Netherlands Antilles', | ||
value: 'AN' | ||
}, { | ||
label: 'New Caledonia', | ||
value: 'NC' | ||
}, { | ||
label: 'New Zealand', | ||
value: 'NZ' | ||
}, { | ||
label: 'Nicaragua', | ||
value: 'NI' | ||
}, { | ||
label: 'Niger', | ||
value: 'NE' | ||
}, { | ||
label: 'Nigeria', | ||
value: 'NG' | ||
}, { | ||
label: 'Niue', | ||
value: 'NU' | ||
}, { | ||
label: 'Norfolk Island', | ||
value: 'NF' | ||
}, { | ||
label: 'Northern Mariana Islands', | ||
value: 'MP' | ||
}, { | ||
label: 'Norway', | ||
value: 'NO' | ||
}, { | ||
label: 'Oman', | ||
value: 'OM' | ||
}, { | ||
label: 'Pakistan', | ||
value: 'PK' | ||
}, { | ||
label: 'Palau', | ||
value: 'PW' | ||
}, { | ||
label: 'Palestine, State of', | ||
value: 'PS' | ||
}, { | ||
label: 'Panama', | ||
value: 'PA' | ||
}, { | ||
label: 'Papua New Guinea', | ||
value: 'PG' | ||
}, { | ||
label: 'Paraguay', | ||
value: 'PY' | ||
}, { | ||
label: 'Peru', | ||
value: 'PE' | ||
}, { | ||
label: 'Philippines', | ||
value: 'PH' | ||
}, { | ||
label: 'Pitcairn', | ||
value: 'PN' | ||
}, { | ||
label: 'Poland', | ||
value: 'PL' | ||
}, { | ||
label: 'Portugal', | ||
value: 'PT' | ||
}, { | ||
label: 'Puerto Rico', | ||
value: 'PR' | ||
}, { | ||
label: 'Qatar', | ||
value: 'QA' | ||
}, { | ||
label: 'Réunion', | ||
value: 'RE' | ||
}, { | ||
label: 'Romania', | ||
value: 'RO' | ||
}, { | ||
label: 'Russian Federation', | ||
value: 'RU' | ||
}, { | ||
label: 'Rwanda', | ||
value: 'RW' | ||
}, { | ||
label: 'Saint Barthélemy', | ||
value: 'BL' | ||
}, { | ||
label: 'Saint Helena, Ascension and Tristan da Cunha', | ||
value: 'SH' | ||
}, { | ||
label: 'Saint Kitts and Nevis', | ||
value: 'KN' | ||
}, { | ||
label: 'Saint Lucia', | ||
value: 'LC' | ||
}, { | ||
label: 'Saint Martin (French part)', | ||
value: 'MF' | ||
}, { | ||
label: 'Saint Pierre and Miquelon', | ||
value: 'PM' | ||
}, { | ||
label: 'Saint Vincent and the Grenadines', | ||
value: 'VC' | ||
}, { | ||
label: 'Samoa', | ||
value: 'WS' | ||
}, { | ||
label: 'San Marino', | ||
value: 'SM' | ||
}, { | ||
label: 'Sao Tome and Principe', | ||
value: 'ST' | ||
}, { | ||
label: 'Saudi Arabia', | ||
value: 'SA' | ||
}, { | ||
label: 'Senegal', | ||
value: 'SN' | ||
}, { | ||
label: 'Serbia', | ||
value: 'RS' | ||
}, { | ||
label: 'Seychelles', | ||
value: 'SC' | ||
}, { | ||
label: 'Sierra Leone', | ||
value: 'SL' | ||
}, { | ||
label: 'Singapore', | ||
value: 'SG' | ||
}, { | ||
label: 'Sint Maarten (Dutch part)', | ||
value: 'SX' | ||
}, { | ||
label: 'Slovakia', | ||
value: 'SK' | ||
}, { | ||
label: 'Slovenia', | ||
value: 'SI' | ||
}, { | ||
label: 'Solomon Islands', | ||
value: 'SB' | ||
}, { | ||
label: 'Somalia', | ||
value: 'SO' | ||
}, { | ||
label: 'South Africa', | ||
value: 'ZA' | ||
}, { | ||
label: 'South Georgia and the South Sandwich Islands', | ||
value: 'GS' | ||
}, { | ||
label: 'South Sudan', | ||
value: 'SS' | ||
}, { | ||
label: 'Spain', | ||
value: 'ES' | ||
}, { | ||
label: 'Sri Lanka', | ||
value: 'LK' | ||
}, { | ||
label: 'Sudan', | ||
value: 'SD' | ||
}, { | ||
label: 'Suriname', | ||
value: 'SR' | ||
}, { | ||
label: 'Svalbard and Jan Mayen', | ||
value: 'SJ' | ||
}, { | ||
label: 'Swaziland', | ||
value: 'SZ' | ||
}, { | ||
label: 'Sweden', | ||
value: 'SE' | ||
}, { | ||
label: 'Switzerland', | ||
value: 'CH' | ||
}, { | ||
label: 'Syrian Arab Republic', | ||
value: 'SY' | ||
}, { | ||
label: 'Taiwan, Province of China', | ||
value: 'TW' | ||
}, { | ||
label: 'Tajikistan', | ||
value: 'TJ' | ||
}, { | ||
label: 'Tanzania, United Republic of', | ||
value: 'TZ' | ||
}, { | ||
label: 'Thailand', | ||
value: 'TH' | ||
}, { | ||
label: 'Timor-Leste', | ||
value: 'TL' | ||
}, { | ||
label: 'Togo', | ||
value: 'TG' | ||
}, { | ||
label: 'Tokelau', | ||
value: 'TK' | ||
}, { | ||
label: 'Tonga', | ||
value: 'TO' | ||
}, { | ||
label: 'Trinidad and Tobago', | ||
value: 'TT' | ||
}, { | ||
label: 'Tunisia', | ||
value: 'TN' | ||
}, { | ||
label: 'Turkey', | ||
value: 'TR' | ||
}, { | ||
label: 'Turkmenistan', | ||
value: 'TM' | ||
}, { | ||
label: 'Turks and Caicos Islands', | ||
value: 'TC' | ||
}, { | ||
label: 'Tuvalu', | ||
value: 'TV' | ||
}, { | ||
label: 'Uganda', | ||
value: 'UG' | ||
}, { | ||
label: 'Ukraine', | ||
value: 'UA' | ||
}, { | ||
label: 'United Arab Emirates', | ||
value: 'AE' | ||
}, { | ||
label: 'United Kingdom of Great Britain and Northern Ireland', | ||
value: 'GB' | ||
}, { | ||
label: 'United States of America', | ||
value: 'US' | ||
}, { | ||
label: 'United States Minor Outlying Islands', | ||
value: 'UM' | ||
}, { | ||
label: 'Uruguay', | ||
value: 'UY' | ||
}, { | ||
label: 'Uzbekistan', | ||
value: 'UZ' | ||
}, { | ||
label: 'Vanuatu', | ||
value: 'VU' | ||
}, { | ||
label: 'Venezuela (Bolivarian Republic of)', | ||
value: 'VE' | ||
}, { | ||
label: 'Vietnam', | ||
value: 'VN' | ||
}, { | ||
label: 'Virgin Islands (British)', | ||
value: 'VG' | ||
}, { | ||
label: 'Virgin Islands (U.S.)', | ||
value: 'VI' | ||
}, { | ||
label: 'Wallis and Futuna', | ||
value: 'WF' | ||
}, { | ||
label: 'Western Sahara', | ||
value: 'EH' | ||
}, { | ||
label: 'Yemen', | ||
value: 'YE' | ||
}, { | ||
label: 'Zambia', | ||
value: 'ZM' | ||
}, { | ||
label: 'Zimbabwe', | ||
value: 'ZW' | ||
} | ||
]; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = [{ | ||
label: 'Afghanistan', | ||
value: 'AF' | ||
}, { | ||
label: 'Åland Islands', | ||
value: 'AX' | ||
}, { | ||
label: 'Albania', | ||
value: 'AL' | ||
}, { | ||
label: 'Algeria', | ||
value: 'DZ' | ||
}, { | ||
label: 'American Samoa', | ||
value: 'AS' | ||
}, { | ||
label: 'Andorra', | ||
value: 'AD' | ||
}, { | ||
label: 'Angola', | ||
value: 'AO' | ||
}, { | ||
label: 'Anguilla', | ||
value: 'AI' | ||
}, { | ||
label: 'Antarctica', | ||
value: 'AQ' | ||
}, { | ||
label: 'Antigua and Barbuda', | ||
value: 'AG' | ||
}, { | ||
label: 'Argentina', | ||
value: 'AR' | ||
}, { | ||
label: 'Armenia', | ||
value: 'AM' | ||
}, { | ||
label: 'Aruba', | ||
value: 'AW' | ||
}, { | ||
label: 'Australia', | ||
value: 'AU' | ||
}, { | ||
label: 'Austria', | ||
value: 'AT' | ||
}, { | ||
label: 'Azerbaijan', | ||
value: 'AZ' | ||
}, { | ||
label: 'Bahamas', | ||
value: 'BS' | ||
}, { | ||
label: 'Bahrain', | ||
value: 'BH' | ||
}, { | ||
label: 'Bangladesh', | ||
value: 'BD' | ||
}, { | ||
label: 'Barbados', | ||
value: 'BB' | ||
}, { | ||
label: 'Belarus', | ||
value: 'BY' | ||
}, { | ||
label: 'Belgium', | ||
value: 'BE' | ||
}, { | ||
label: 'Belize', | ||
value: 'BZ' | ||
}, { | ||
label: 'Benin', | ||
value: 'BJ' | ||
}, { | ||
label: 'Bermuda', | ||
value: 'BM' | ||
}, { | ||
label: 'Bhutan', | ||
value: 'BT' | ||
}, { | ||
label: 'Bolivia (Plurinational State of)', | ||
value: 'BO' | ||
}, { | ||
label: 'Bonaire, Sint Eustatius and Saba', | ||
value: 'BQ' | ||
}, { | ||
label: 'Bosnia and Herzegovina', | ||
value: 'BA' | ||
}, { | ||
label: 'Botswana', | ||
value: 'BW' | ||
}, { | ||
label: 'Bouvet Island', | ||
value: 'BV' | ||
}, { | ||
label: 'Brazil', | ||
value: 'BR' | ||
}, { | ||
label: 'British Indian Ocean Territory', | ||
value: 'IO' | ||
}, { | ||
label: 'Brunei Darussalam', | ||
value: 'BN' | ||
}, { | ||
label: 'Bulgaria', | ||
value: 'BG' | ||
}, { | ||
label: 'Burkina Faso', | ||
value: 'BF' | ||
}, { | ||
label: 'Burundi', | ||
value: 'BI' | ||
}, { | ||
label: 'Cambodia', | ||
value: 'KH' | ||
}, { | ||
label: 'Cameroon', | ||
value: 'CM' | ||
}, { | ||
label: 'Canada', | ||
value: 'CA' | ||
}, { | ||
label: 'Cabo Verde', | ||
value: 'CV' | ||
}, { | ||
label: 'Cayman Islands', | ||
value: 'KY' | ||
}, { | ||
label: 'Central African Republic', | ||
value: 'CF' | ||
}, { | ||
label: 'Chad', | ||
value: 'TD' | ||
}, { | ||
label: 'Chile', | ||
value: 'CL' | ||
}, { | ||
label: 'China', | ||
value: 'CN' | ||
}, { | ||
label: 'Christmas Island', | ||
value: 'CX' | ||
}, { | ||
label: 'Cocos (Keeling) Islands', | ||
value: 'CC' | ||
}, { | ||
label: 'Colombia', | ||
value: 'CO' | ||
}, { | ||
label: 'Comoros', | ||
value: 'KM' | ||
}, { | ||
label: 'Congo', | ||
value: 'CG' | ||
}, { | ||
label: 'Congo (Democratic Republic of the)', | ||
value: 'CD' | ||
}, { | ||
label: 'Cook Islands', | ||
value: 'CK' | ||
}, { | ||
label: 'Costa Rica', | ||
value: 'CR' | ||
}, { | ||
label: 'Côte d\'Ivoire', | ||
value: 'CI' | ||
}, { | ||
label: 'Croatia', | ||
value: 'HR' | ||
}, { | ||
label: 'Cuba', | ||
value: 'CU' | ||
}, { | ||
label: 'Curaçao', | ||
value: 'CW' | ||
}, { | ||
label: 'Cyprus', | ||
value: 'CY' | ||
}, { | ||
label: 'Czech Republic', | ||
value: 'CZ' | ||
}, { | ||
label: 'Denmark', | ||
value: 'DK' | ||
}, { | ||
label: 'Djibouti', | ||
value: 'DJ' | ||
}, { | ||
label: 'Dominica', | ||
value: 'DM' | ||
}, { | ||
label: 'Dominican Republic', | ||
value: 'DO' | ||
}, { | ||
label: 'Ecuador', | ||
value: 'EC' | ||
}, { | ||
label: 'Egypt', | ||
value: 'EG' | ||
}, { | ||
label: 'El Salvador', | ||
value: 'SV' | ||
}, { | ||
label: 'Equatorial Guinea', | ||
value: 'GQ' | ||
}, { | ||
label: 'Eritrea', | ||
value: 'ER' | ||
}, { | ||
label: 'Estonia', | ||
value: 'EE' | ||
}, { | ||
label: 'Ethiopia', | ||
value: 'ET' | ||
}, { | ||
label: 'Falkland Islands (Malvinas)', | ||
value: 'FK' | ||
}, { | ||
label: 'Faroe Islands', | ||
value: 'FO' | ||
}, { | ||
label: 'Fiji', | ||
value: 'FJ' | ||
}, { | ||
label: 'Finland', | ||
value: 'FI' | ||
}, { | ||
label: 'France', | ||
value: 'FR' | ||
}, { | ||
label: 'French Guiana', | ||
value: 'GF' | ||
}, { | ||
label: 'French Polynesia', | ||
value: 'PF' | ||
}, { | ||
label: 'French Southern Territories', | ||
value: 'TF' | ||
}, { | ||
label: 'Gabon', | ||
value: 'GA' | ||
}, { | ||
label: 'Gambia', | ||
value: 'GM' | ||
}, { | ||
label: 'Georgia', | ||
value: 'GE' | ||
}, { | ||
label: 'Germany', | ||
value: 'DE' | ||
}, { | ||
label: 'Ghana', | ||
value: 'GH' | ||
}, { | ||
label: 'Gibraltar', | ||
value: 'GI' | ||
}, { | ||
label: 'Greece', | ||
value: 'GR' | ||
}, { | ||
label: 'Greenland', | ||
value: 'GL' | ||
}, { | ||
label: 'Grenada', | ||
value: 'GD' | ||
}, { | ||
label: 'Guadeloupe', | ||
value: 'GP' | ||
}, { | ||
label: 'Guam', | ||
value: 'GU' | ||
}, { | ||
label: 'Guatemala', | ||
value: 'GT' | ||
}, { | ||
label: 'Guernsey', | ||
value: 'GG' | ||
}, { | ||
label: 'Guinea', | ||
value: 'GN' | ||
}, { | ||
label: 'Guinea-Bissau', | ||
value: 'GW' | ||
}, { | ||
label: 'Guyana', | ||
value: 'GY' | ||
}, { | ||
label: 'Haiti', | ||
value: 'HT' | ||
}, { | ||
label: 'Heard Island and McDonald Islands', | ||
value: 'HM' | ||
}, { | ||
label: 'Holy See', | ||
value: 'VA' | ||
}, { | ||
label: 'Honduras', | ||
value: 'HN' | ||
}, { | ||
label: 'Hong Kong', | ||
value: 'HK' | ||
}, { | ||
label: 'Hungary', | ||
value: 'HU' | ||
}, { | ||
label: 'Iceland', | ||
value: 'IS' | ||
}, { | ||
label: 'India', | ||
value: 'IN' | ||
}, { | ||
label: 'Indonesia', | ||
value: 'ID' | ||
}, { | ||
label: 'Iran (Islamic Republic of)', | ||
value: 'IR' | ||
}, { | ||
label: 'Iraq', | ||
value: 'IQ' | ||
}, { | ||
label: 'Ireland', | ||
value: 'IE' | ||
}, { | ||
label: 'Isle of Man', | ||
value: 'IM' | ||
}, { | ||
label: 'Israel', | ||
value: 'IL' | ||
}, { | ||
label: 'Italy', | ||
value: 'IT' | ||
}, { | ||
label: 'Jamaica', | ||
value: 'JM' | ||
}, { | ||
label: 'Japan', | ||
value: 'JP' | ||
}, { | ||
label: 'Jersey', | ||
value: 'JE' | ||
}, { | ||
label: 'Jordan', | ||
value: 'JO' | ||
}, { | ||
label: 'Kazakhstan', | ||
value: 'KZ' | ||
}, { | ||
label: 'Kenya', | ||
value: 'KE' | ||
}, { | ||
label: 'Kiribati', | ||
value: 'KI' | ||
}, { | ||
label: 'Korea (Democratic People\'s Republic of)', | ||
value: 'KP' | ||
}, { | ||
label: 'Korea (Republic of)', | ||
value: 'KR' | ||
}, { | ||
label: 'Kuwait', | ||
value: 'KW' | ||
}, { | ||
label: 'Kyrgyzstan', | ||
value: 'KG' | ||
}, { | ||
label: 'Lao People\'s Democratic Republic', | ||
value: 'LA' | ||
}, { | ||
label: 'Latvia', | ||
value: 'LV' | ||
}, { | ||
label: 'Lebanon', | ||
value: 'LB' | ||
}, { | ||
label: 'Lesotho', | ||
value: 'LS' | ||
}, { | ||
label: 'Liberia', | ||
value: 'LR' | ||
}, { | ||
label: 'Libya', | ||
value: 'LY' | ||
}, { | ||
label: 'Liechtenstein', | ||
value: 'LI' | ||
}, { | ||
label: 'Lithuania', | ||
value: 'LT' | ||
}, { | ||
label: 'Luxembourg', | ||
value: 'LU' | ||
}, { | ||
label: 'Macao', | ||
value: 'MO' | ||
}, { | ||
label: 'Macedonia (the former Yugoslav Republic of)', | ||
value: 'MK' | ||
}, { | ||
label: 'Madagascar', | ||
value: 'MG' | ||
}, { | ||
label: 'Malawi', | ||
value: 'MW' | ||
}, { | ||
label: 'Malaysia', | ||
value: 'MY' | ||
}, { | ||
label: 'Maldives', | ||
value: 'MV' | ||
}, { | ||
label: 'Mali', | ||
value: 'ML' | ||
}, { | ||
label: 'Malta', | ||
value: 'MT' | ||
}, { | ||
label: 'Marshall Islands', | ||
value: 'MH' | ||
}, { | ||
label: 'Martinique', | ||
value: 'MQ' | ||
}, { | ||
label: 'Mauritania', | ||
value: 'MR' | ||
}, { | ||
label: 'Mauritius', | ||
value: 'MU' | ||
}, { | ||
label: 'Mayotte', | ||
value: 'YT' | ||
}, { | ||
label: 'Mexico', | ||
value: 'MX' | ||
}, { | ||
label: 'Micronesia (Federated States of)', | ||
value: 'FM' | ||
}, { | ||
label: 'Moldova (Republic of)', | ||
value: 'MD' | ||
}, { | ||
label: 'Monaco', | ||
value: 'MC' | ||
}, { | ||
label: 'Mongolia', | ||
value: 'MN' | ||
}, { | ||
label: 'Montenegro', | ||
value: 'ME' | ||
}, { | ||
label: 'Montserrat', | ||
value: 'MS' | ||
}, { | ||
label: 'Morocco', | ||
value: 'MA' | ||
}, { | ||
label: 'Mozambique', | ||
value: 'MZ' | ||
}, { | ||
label: 'Myanmar', | ||
value: 'MM' | ||
}, { | ||
label: 'Namibia', | ||
value: 'NA' | ||
}, { | ||
label: 'Nauru', | ||
value: 'NR' | ||
}, { | ||
label: 'Nepal', | ||
value: 'NP' | ||
}, { | ||
label: 'Netherlands', | ||
value: 'NL' | ||
}, { | ||
label: 'Netherlands Antilles', | ||
value: 'AN' | ||
}, { | ||
label: 'New Caledonia', | ||
value: 'NC' | ||
}, { | ||
label: 'New Zealand', | ||
value: 'NZ' | ||
}, { | ||
label: 'Nicaragua', | ||
value: 'NI' | ||
}, { | ||
label: 'Niger', | ||
value: 'NE' | ||
}, { | ||
label: 'Nigeria', | ||
value: 'NG' | ||
}, { | ||
label: 'Niue', | ||
value: 'NU' | ||
}, { | ||
label: 'Norfolk Island', | ||
value: 'NF' | ||
}, { | ||
label: 'Northern Mariana Islands', | ||
value: 'MP' | ||
}, { | ||
label: 'Norway', | ||
value: 'NO' | ||
}, { | ||
label: 'Oman', | ||
value: 'OM' | ||
}, { | ||
label: 'Pakistan', | ||
value: 'PK' | ||
}, { | ||
label: 'Palau', | ||
value: 'PW' | ||
}, { | ||
label: 'Palestine, State of', | ||
value: 'PS' | ||
}, { | ||
label: 'Panama', | ||
value: 'PA' | ||
}, { | ||
label: 'Papua New Guinea', | ||
value: 'PG' | ||
}, { | ||
label: 'Paraguay', | ||
value: 'PY' | ||
}, { | ||
label: 'Peru', | ||
value: 'PE' | ||
}, { | ||
label: 'Philippines', | ||
value: 'PH' | ||
}, { | ||
label: 'Pitcairn', | ||
value: 'PN' | ||
}, { | ||
label: 'Poland', | ||
value: 'PL' | ||
}, { | ||
label: 'Portugal', | ||
value: 'PT' | ||
}, { | ||
label: 'Puerto Rico', | ||
value: 'PR' | ||
}, { | ||
label: 'Qatar', | ||
value: 'QA' | ||
}, { | ||
label: 'Réunion', | ||
value: 'RE' | ||
}, { | ||
label: 'Romania', | ||
value: 'RO' | ||
}, { | ||
label: 'Russian Federation', | ||
value: 'RU' | ||
}, { | ||
label: 'Rwanda', | ||
value: 'RW' | ||
}, { | ||
label: 'Saint Barthélemy', | ||
value: 'BL' | ||
}, { | ||
label: 'Saint Helena, Ascension and Tristan da Cunha', | ||
value: 'SH' | ||
}, { | ||
label: 'Saint Kitts and Nevis', | ||
value: 'KN' | ||
}, { | ||
label: 'Saint Lucia', | ||
value: 'LC' | ||
}, { | ||
label: 'Saint Martin (French part)', | ||
value: 'MF' | ||
}, { | ||
label: 'Saint Pierre and Miquelon', | ||
value: 'PM' | ||
}, { | ||
label: 'Saint Vincent and the Grenadines', | ||
value: 'VC' | ||
}, { | ||
label: 'Samoa', | ||
value: 'WS' | ||
}, { | ||
label: 'San Marino', | ||
value: 'SM' | ||
}, { | ||
label: 'Sao Tome and Principe', | ||
value: 'ST' | ||
}, { | ||
label: 'Saudi Arabia', | ||
value: 'SA' | ||
}, { | ||
label: 'Senegal', | ||
value: 'SN' | ||
}, { | ||
label: 'Serbia', | ||
value: 'RS' | ||
}, { | ||
label: 'Seychelles', | ||
value: 'SC' | ||
}, { | ||
label: 'Sierra Leone', | ||
value: 'SL' | ||
}, { | ||
label: 'Singapore', | ||
value: 'SG' | ||
}, { | ||
label: 'Sint Maarten (Dutch part)', | ||
value: 'SX' | ||
}, { | ||
label: 'Slovakia', | ||
value: 'SK' | ||
}, { | ||
label: 'Slovenia', | ||
value: 'SI' | ||
}, { | ||
label: 'Solomon Islands', | ||
value: 'SB' | ||
}, { | ||
label: 'Somalia', | ||
value: 'SO' | ||
}, { | ||
label: 'South Africa', | ||
value: 'ZA' | ||
}, { | ||
label: 'South Georgia and the South Sandwich Islands', | ||
value: 'GS' | ||
}, { | ||
label: 'South Sudan', | ||
value: 'SS' | ||
}, { | ||
label: 'Spain', | ||
value: 'ES' | ||
}, { | ||
label: 'Sri Lanka', | ||
value: 'LK' | ||
}, { | ||
label: 'Sudan', | ||
value: 'SD' | ||
}, { | ||
label: 'Suriname', | ||
value: 'SR' | ||
}, { | ||
label: 'Svalbard and Jan Mayen', | ||
value: 'SJ' | ||
}, { | ||
label: 'Swaziland', | ||
value: 'SZ' | ||
}, { | ||
label: 'Sweden', | ||
value: 'SE' | ||
}, { | ||
label: 'Switzerland', | ||
value: 'CH' | ||
}, { | ||
label: 'Syrian Arab Republic', | ||
value: 'SY' | ||
}, { | ||
label: 'Taiwan, Province of China', | ||
value: 'TW' | ||
}, { | ||
label: 'Tajikistan', | ||
value: 'TJ' | ||
}, { | ||
label: 'Tanzania, United Republic of', | ||
value: 'TZ' | ||
}, { | ||
label: 'Thailand', | ||
value: 'TH' | ||
}, { | ||
label: 'Timor-Leste', | ||
value: 'TL' | ||
}, { | ||
label: 'Togo', | ||
value: 'TG' | ||
}, { | ||
label: 'Tokelau', | ||
value: 'TK' | ||
}, { | ||
label: 'Tonga', | ||
value: 'TO' | ||
}, { | ||
label: 'Trinidad and Tobago', | ||
value: 'TT' | ||
}, { | ||
label: 'Tunisia', | ||
value: 'TN' | ||
}, { | ||
label: 'Turkey', | ||
value: 'TR' | ||
}, { | ||
label: 'Turkmenistan', | ||
value: 'TM' | ||
}, { | ||
label: 'Turks and Caicos Islands', | ||
value: 'TC' | ||
}, { | ||
label: 'Tuvalu', | ||
value: 'TV' | ||
}, { | ||
label: 'Uganda', | ||
value: 'UG' | ||
}, { | ||
label: 'Ukraine', | ||
value: 'UA' | ||
}, { | ||
label: 'United Arab Emirates', | ||
value: 'AE' | ||
}, { | ||
label: 'United Kingdom of Great Britain and Northern Ireland', | ||
value: 'GB' | ||
}, { | ||
label: 'United States of America', | ||
value: 'US' | ||
}, { | ||
label: 'United States Minor Outlying Islands', | ||
value: 'UM' | ||
}, { | ||
label: 'Uruguay', | ||
value: 'UY' | ||
}, { | ||
label: 'Uzbekistan', | ||
value: 'UZ' | ||
}, { | ||
label: 'Vanuatu', | ||
value: 'VU' | ||
}, { | ||
label: 'Venezuela (Bolivarian Republic of)', | ||
value: 'VE' | ||
}, { | ||
label: 'Vietnam', | ||
value: 'VN' | ||
}, { | ||
label: 'Virgin Islands (British)', | ||
value: 'VG' | ||
}, { | ||
label: 'Virgin Islands (U.S.)', | ||
value: 'VI' | ||
}, { | ||
label: 'Wallis and Futuna', | ||
value: 'WF' | ||
}, { | ||
label: 'Western Sahara', | ||
value: 'EH' | ||
}, { | ||
label: 'Yemen', | ||
value: 'YE' | ||
}, { | ||
label: 'Zambia', | ||
value: 'ZM' | ||
}, { | ||
label: 'Zimbabwe', | ||
value: 'ZW' | ||
}]; | ||
module.exports = exports['default']; |
@@ -1,15 +0,25 @@ | ||
export default (Meteor, SimpleSchema) => ({ | ||
recipient: { | ||
type: Object | ||
}, | ||
'use strict'; | ||
'recipient.collection': { | ||
type: String, | ||
allowedValues: [ 'Users', 'Contacts' ] | ||
}, | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
'recipient.doc': { | ||
type: String, | ||
regEx: SimpleSchema.RegEx.Id | ||
} | ||
}); | ||
exports.default = function (Meteor, SimpleSchema) { | ||
return { | ||
recipient: { | ||
type: Object | ||
}, | ||
'recipient.collection': { | ||
type: String, | ||
allowedValues: ['Users', 'Contacts'] | ||
}, | ||
'recipient.doc': { | ||
type: String, | ||
regEx: SimpleSchema.RegEx.Id | ||
} | ||
}; | ||
}; | ||
module.exports = exports['default']; |
@@ -1,54 +0,64 @@ | ||
export default SimpleSchema => new SimpleSchema({ | ||
utilityBill: { | ||
type: String, | ||
optional: true, | ||
autoform: { | ||
afFieldInput: { | ||
type: 'fileUpload', | ||
collection: 'Files' | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (SimpleSchema) { | ||
return new SimpleSchema({ | ||
utilityBill: { | ||
type: String, | ||
optional: true, | ||
autoform: { | ||
afFieldInput: { | ||
type: 'fileUpload', | ||
collection: 'Files' | ||
} | ||
} | ||
} | ||
}, | ||
passport: { | ||
type: String, | ||
optional: true, | ||
autoform: { | ||
afFieldInput: { | ||
type: 'fileUpload', | ||
collection: 'Files' | ||
}, | ||
passport: { | ||
type: String, | ||
optional: true, | ||
autoform: { | ||
afFieldInput: { | ||
type: 'fileUpload', | ||
collection: 'Files' | ||
} | ||
} | ||
} | ||
}, | ||
postIdent: { | ||
type: String, | ||
optional: true, | ||
autoform: { | ||
afFieldInput: { | ||
type: 'fileUpload', | ||
collection: 'Files' | ||
}, | ||
postIdent: { | ||
type: String, | ||
optional: true, | ||
autoform: { | ||
afFieldInput: { | ||
type: 'fileUpload', | ||
collection: 'Files' | ||
} | ||
} | ||
} | ||
}, | ||
webIdent: { | ||
type: String, | ||
optional: true, | ||
autoform: { | ||
afFieldInput: { | ||
type: 'fileUpload', | ||
collection: 'Files' | ||
}, | ||
webIdent: { | ||
type: String, | ||
optional: true, | ||
autoform: { | ||
afFieldInput: { | ||
type: 'fileUpload', | ||
collection: 'Files' | ||
} | ||
} | ||
}, | ||
verification2: { | ||
type: Boolean, | ||
optional: true, | ||
label: 'Verification 2 requested', | ||
index: 1 | ||
}, | ||
verification3: { | ||
type: Boolean, | ||
optional: true, | ||
index: 1, | ||
label: 'Verification 3 requested' | ||
} | ||
}, | ||
verification2: { | ||
type: Boolean, | ||
optional: true, | ||
label: 'Verification 2 requested', | ||
index: 1 | ||
}, | ||
verification3: { | ||
type: Boolean, | ||
optional: true, | ||
index: 1, | ||
label: 'Verification 3 requested' | ||
} | ||
}); | ||
}); | ||
}; | ||
module.exports = exports['default']; |
@@ -1,49 +0,61 @@ | ||
import countries from '../lib/countries'; | ||
'use strict'; | ||
export default SimpleSchema => new SimpleSchema({ | ||
firstName: { | ||
type: String, | ||
optional: true | ||
}, | ||
lastName: { | ||
type: String, | ||
optional: true | ||
}, | ||
address: { | ||
type: String, | ||
label: 'Street and housenumber', | ||
optional: true | ||
}, | ||
city: { | ||
type: String, | ||
optional: true | ||
}, | ||
postcode: { | ||
type: String, | ||
optional: true | ||
}, | ||
region: { | ||
type: String, | ||
optional: true | ||
}, | ||
country: { | ||
type: String, | ||
allowedValues: countries.map(c => c['value']), | ||
autoform: { | ||
options() { | ||
return countries; | ||
} | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _countries = require('../lib/countries'); | ||
var _countries2 = _interopRequireDefault(_countries); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = function (SimpleSchema) { | ||
return new SimpleSchema({ | ||
firstName: { | ||
type: String, | ||
optional: true | ||
}, | ||
optional: true | ||
}, | ||
gender: { | ||
type: String, | ||
allowedValues: [ 'm', 'f' ], | ||
defaultValue: 'm', | ||
autoform: { | ||
afFieldInput: { | ||
type: 'select-radio-inline', | ||
options() { | ||
return [ | ||
{ | ||
lastName: { | ||
type: String, | ||
optional: true | ||
}, | ||
address: { | ||
type: String, | ||
label: 'Street and housenumber', | ||
optional: true | ||
}, | ||
city: { | ||
type: String, | ||
optional: true | ||
}, | ||
postcode: { | ||
type: String, | ||
optional: true | ||
}, | ||
region: { | ||
type: String, | ||
optional: true | ||
}, | ||
country: { | ||
type: String, | ||
allowedValues: _countries2.default.map(function (c) { | ||
return c['value']; | ||
}), | ||
autoform: { | ||
options: function options() { | ||
return _countries2.default; | ||
} | ||
}, | ||
optional: true | ||
}, | ||
gender: { | ||
type: String, | ||
allowedValues: ['m', 'f'], | ||
defaultValue: 'm', | ||
autoform: { | ||
afFieldInput: { | ||
type: 'select-radio-inline', | ||
options: function options() { | ||
return [{ | ||
label: 'Male', | ||
@@ -54,23 +66,25 @@ value: 'm' | ||
value: 'f' | ||
} | ||
]; | ||
}]; | ||
} | ||
} | ||
} | ||
}, | ||
optional: true | ||
}, | ||
optional: true | ||
}, | ||
telephone: { | ||
type: String, | ||
optional: true | ||
}, | ||
dob: { | ||
type: Date, | ||
optional: true, | ||
label: 'Date of birth', | ||
autoform: { | ||
afFieldInput: { | ||
type: 'bootstrap-datepicker' | ||
telephone: { | ||
type: String, | ||
optional: true | ||
}, | ||
dob: { | ||
type: Date, | ||
optional: true, | ||
label: 'Date of birth', | ||
autoform: { | ||
afFieldInput: { | ||
type: 'bootstrap-datepicker' | ||
} | ||
} | ||
} | ||
} | ||
}); | ||
}); | ||
}; | ||
module.exports = exports['default']; |
@@ -1,6 +0,16 @@ | ||
export default SimpleSchema => new SimpleSchema({ | ||
sendMonthlyReminder: { | ||
type: Boolean, | ||
label: 'Send me an email reminder' | ||
} | ||
}); | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (SimpleSchema) { | ||
return new SimpleSchema({ | ||
sendMonthlyReminder: { | ||
type: Boolean, | ||
label: 'Send me an email reminder' | ||
} | ||
}); | ||
}; | ||
module.exports = exports['default']; |
@@ -1,27 +0,37 @@ | ||
export default SimpleSchema => new SimpleSchema({ | ||
level: { | ||
type: Number, | ||
index: 1, | ||
allowedValues: [ 0, 1, 2, 3, 10 ], | ||
autoValue() { | ||
if (this.isInsert) { | ||
return 0; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (SimpleSchema) { | ||
return new SimpleSchema({ | ||
level: { | ||
type: Number, | ||
index: 1, | ||
allowedValues: [0, 1, 2, 3, 10], | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
return 0; | ||
} | ||
} | ||
}, | ||
utilityBill: { | ||
type: Boolean, | ||
optional: true, | ||
label: 'Utility bill OK' | ||
}, | ||
passport: { | ||
type: Boolean, | ||
optional: true, | ||
label: 'Passport OK' | ||
}, | ||
webIdent: { | ||
type: Boolean, | ||
optional: true, | ||
label: 'Web Ident Ok' | ||
} | ||
}, | ||
utilityBill: { | ||
type: Boolean, | ||
optional: true, | ||
label: 'Utility bill OK' | ||
}, | ||
passport: { | ||
type: Boolean, | ||
optional: true, | ||
label: 'Passport OK' | ||
}, | ||
webIdent: { | ||
type: Boolean, | ||
optional: true, | ||
label: 'Web Ident Ok' | ||
} | ||
}); | ||
}); | ||
}; | ||
module.exports = exports['default']; |
@@ -1,9 +0,19 @@ | ||
import utils from '../utils'; | ||
'use strict'; | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _utils = require('../utils'); | ||
var _utils2 = _interopRequireDefault(_utils); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
users: { | ||
type: [ String ], | ||
type: [String], | ||
regEx: SimpleSchema.RegEx.Id | ||
@@ -29,21 +39,22 @@ }, | ||
} | ||
} | ||
}; | ||
}, | ||
helpers(Meteor, Messages) { | ||
helpers: function helpers(Meteor, Messages) { | ||
return { | ||
getLastMessage() { | ||
getLastMessage: function getLastMessage() { | ||
return Messages.findOne(this.lastMessage); | ||
}, | ||
isUnread() { | ||
isUnread: function isUnread() { | ||
return this.readBy[Meteor.userId()] >= this.updatedAt; | ||
}, | ||
markAsRead() { | ||
markAsRead: function markAsRead() { | ||
Meteor.call('threads.markAsRead', this._id); | ||
}, | ||
getLastUpdated() { | ||
getLastUpdated: function getLastUpdated() { | ||
// TODO: format date | ||
return utils.dates.format(this.updatedAt, 'CONTEXTUAL'); | ||
return _utils2.default.dates.format(this.updatedAt, 'CONTEXTUAL'); | ||
} | ||
}; | ||
}, | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,26 +0,19 @@ | ||
const inputCollections = [ | ||
'BitcoinInvoices' | ||
]; | ||
'use strict'; | ||
const outputCollections = [ | ||
'BankTransfers', | ||
'CardPurchases', | ||
'CardTopUps' | ||
]; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var inputCollections = ['BitcoinInvoices']; | ||
const senderCollections = [ | ||
'Guests', | ||
'Users' | ||
]; | ||
var outputCollections = ['BankTransfers', 'CardPurchases', 'CardTopUps']; | ||
const recipientCollections = [ | ||
'Contacts', | ||
'Users' | ||
]; | ||
var senderCollections = ['Guests', 'Users']; | ||
const entriesStatuses = require('../config/statuses').entries; | ||
var recipientCollections = ['Contacts', 'Users']; | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
var entriesStatuses = require('../config/statuses').entries; | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
return { | ||
@@ -38,3 +31,3 @@ // Inputs and outputs | ||
inputs: { | ||
type: [ Object ] | ||
type: [Object] | ||
}, | ||
@@ -51,3 +44,3 @@ 'inputs.$.collection': { | ||
outputs: { | ||
type: [ Object ] | ||
type: [Object] | ||
}, | ||
@@ -65,3 +58,3 @@ 'outputs.$.collection': { | ||
senders: { | ||
type: [ Object ], | ||
type: [Object] | ||
}, | ||
@@ -78,3 +71,3 @@ 'senders.$.collection': { | ||
recipients: { | ||
type: [ Object ], | ||
type: [Object] | ||
}, | ||
@@ -94,26 +87,35 @@ 'recipients.$.collection': { | ||
defaultValue: false | ||
}, | ||
} | ||
}; | ||
}, | ||
helpers(Meteor, BitcoinInvoices, BankTransfers, CardPurchases, CardTopUps) { | ||
const Collections = {BitcoinInvoices, BankTransfers, CardPurchases, CardTopUps}; | ||
helpers: function helpers(Meteor, BitcoinInvoices, BankTransfers, CardPurchases, CardTopUps) { | ||
var Collections = { BitcoinInvoices: BitcoinInvoices, BankTransfers: BankTransfers, CardPurchases: CardPurchases, CardTopUps: CardTopUps }; | ||
return { | ||
canExecute() { | ||
canExecute: function canExecute() { | ||
return this.inputsStatus === 'confirmed' && this.outputsStatus === 'new'; | ||
}, | ||
getInputs() { | ||
return this.inputs.map(input => Collections[input.collection].findOne(input.doc)); | ||
getInputs: function getInputs() { | ||
return this.inputs.map(function (input) { | ||
return Collections[input.collection].findOne(input.doc); | ||
}); | ||
}, | ||
getOutputs() { | ||
return this.outputs.map(output => Collections[output.collection].findOne(output.doc)); | ||
getOutputs: function getOutputs() { | ||
return this.outputs.map(function (output) { | ||
return Collections[output.collection].findOne(output.doc); | ||
}); | ||
}, | ||
getSenders() { | ||
return this.senders.map(sender => Collections[sender.collection].findOne(sender.doc)); | ||
getSenders: function getSenders() { | ||
return this.senders.map(function (sender) { | ||
return Collections[sender.collection].findOne(sender.doc); | ||
}); | ||
}, | ||
getRecipients() { | ||
return this.recipients.map(recipient => Collections[recipient.collection].findOne(recipient.doc)); | ||
getRecipients: function getRecipients() { | ||
return this.recipients.map(function (recipient) { | ||
return Collections[recipient.collection].findOne(recipient.doc); | ||
}); | ||
} | ||
}; | ||
}, | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,11 +0,17 @@ | ||
import {verification as verificationConfig} from '../Config'; | ||
'use strict'; | ||
export default { | ||
schema(Meteor, SimpleSchema) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
const UserFiles = require('./schemas/users/files')(SimpleSchema); | ||
const UserProfile = require('./schemas/users/profile')(SimpleSchema); | ||
const UserSettings = require('./schemas/users/settings')(SimpleSchema); | ||
const UserVerification = require('./schemas/users/verification')(SimpleSchema); | ||
var _Config = require('../Config'); | ||
exports.default = { | ||
schema: function schema(Meteor, SimpleSchema) { | ||
var UserFiles = require('./schemas/users/files')(SimpleSchema); | ||
var UserProfile = require('./schemas/users/profile')(SimpleSchema); | ||
var UserSettings = require('./schemas/users/settings')(SimpleSchema); | ||
var UserVerification = require('./schemas/users/verification')(SimpleSchema); | ||
return { | ||
@@ -17,3 +23,3 @@ _id: { | ||
emails: { | ||
type: [ Object ] | ||
type: [Object] | ||
}, | ||
@@ -59,3 +65,3 @@ 'emails.$.address': { | ||
roles: { | ||
type: [ String ], | ||
type: [String], | ||
blackbox: true, | ||
@@ -67,3 +73,3 @@ optional: true | ||
optional: true, | ||
autoValue() { | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
@@ -82,3 +88,3 @@ return { | ||
type: Date, | ||
autoValue() { | ||
autoValue: function autoValue() { | ||
if (this.isInsert) { | ||
@@ -96,14 +102,14 @@ return new Date(); | ||
}, | ||
helpers(Meteor) { | ||
helpers: function helpers(Meteor) { | ||
return { | ||
fullName() { | ||
fullName: function fullName() { | ||
if (this.profile && this.profile.firstName && this.profile.lastName) { | ||
return `${this.profile.firstName} ${this.profile.lastName}`; | ||
return this.profile.firstName + ' ' + this.profile.lastName; | ||
} | ||
return 'User'; | ||
}, | ||
email() { | ||
email: function email() { | ||
return this.emails[0]; | ||
}, | ||
isAdmin() { | ||
isAdmin: function isAdmin() { | ||
// as soon as meteor let's us use ES2016, this should become | ||
@@ -116,11 +122,12 @@ // return this.roles.includes('admin'); | ||
}, | ||
getLimit() { | ||
getLimit: function getLimit() { | ||
// ToDo: rewrite this, because the global Config does not exist | ||
return verificationConfig.limits[this.getLevel()]; | ||
return _Config.verification.limits[this.getLevel()]; | ||
}, | ||
getRemaining() { | ||
getRemaining: function getRemaining() { | ||
// TODO: figure this out | ||
} | ||
}; | ||
}, | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,2 +0,7 @@ | ||
export default { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
bitcoinPsps: require('./config/bitcoin_psps'), | ||
@@ -8,4 +13,3 @@ cards: require('./config/cards'), | ||
verification: require('./config/verification'), | ||
// General | ||
@@ -17,3 +21,3 @@ siteName: 'Bitwala', | ||
ToS: 'http://about.bitwa.la/tos/', | ||
ToSString: `I have read and agree to the <a href="http://about.bitwa.la/tos/"target="_blank">Terms of Service</a>.`, | ||
ToSString: 'I have read and agree to the <a href="http://about.bitwa.la/tos/"target="_blank">Terms of Service</a>.', | ||
imprint: 'http://about.bitwa.la/imprint/', | ||
@@ -48,3 +52,4 @@ privacy: 'http://about.bitwa.la/privacy/', | ||
defaultCurrency: 'EUR', | ||
disallowedReferences: [ 'asdf', 'asdfasdf', 'test', 'bitcoin' ], | ||
}; | ||
disallowedReferences: ['asdf', 'asdfasdf', 'test', 'bitcoin'] | ||
}; | ||
module.exports = exports['default']; |
@@ -1,8 +0,13 @@ | ||
export default { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
spectrocoin: { | ||
value: 'spectrocoin', | ||
label: 'Spectrocoin', | ||
orderLink(invoice) { | ||
orderLink: function orderLink(invoice) { | ||
if (invoice.response) { | ||
return `https://spectrocoin.com/en/merchant/orders/view/${invoice.response.orderRequestId}.html`; | ||
return 'https://spectrocoin.com/en/merchant/orders/view/' + invoice.response.orderRequestId + '.html'; | ||
} | ||
@@ -14,5 +19,5 @@ } | ||
label: 'Coinapult', | ||
orderLink(invoice) { | ||
orderLink: function orderLink(invoice) { | ||
if (invoice.response) { | ||
return `https://coinapult.com/invoice/${invoice.response.transaction_id}`; | ||
return 'https://coinapult.com/invoice/' + invoice.response.transaction_id; | ||
} | ||
@@ -24,5 +29,5 @@ } | ||
label: 'Cubits', | ||
orderLink(invoice) { | ||
orderLink: function orderLink(invoice) { | ||
if (invoice.response) { | ||
return `https://cubits.com/pdf/invoice/${invoice.response.id}.pdf`; | ||
return 'https://cubits.com/pdf/invoice/' + invoice.response.id + '.pdf'; | ||
} | ||
@@ -34,5 +39,5 @@ } | ||
label: 'Bitpay', | ||
orderLink(invoice) { | ||
orderLink: function orderLink(invoice) { | ||
if (invoice.response) { | ||
return `https://bitpay.com/dashboard/payments/${invoice.response.id}`; | ||
return 'https://bitpay.com/dashboard/payments/' + invoice.response.id; | ||
} | ||
@@ -42,1 +47,2 @@ } | ||
}; | ||
module.exports = exports['default']; |
@@ -1,3 +0,8 @@ | ||
export default { | ||
currencies: [ 'EUR' ], | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
currencies: ['EUR'], | ||
prices: { | ||
@@ -17,3 +22,4 @@ virtual: 5, | ||
}, | ||
disallowedCountries: [ 'AZ', 'IN', 'US', 'UM', 'VI' ] | ||
disallowedCountries: ['AZ', 'IN', 'US', 'UM', 'VI'] | ||
}; | ||
module.exports = exports['default']; |
@@ -1,125 +0,130 @@ | ||
const currencies = [ | ||
// Fiat currnecies | ||
{ | ||
value: 'EUR', | ||
label: 'EUR', | ||
symbol: '€', | ||
minFee: 1, | ||
crudeConversion: 1, | ||
psp: 'bitpay', | ||
baseFee: 0, | ||
countryIso: 'europeanunion', | ||
type: 'fiat' | ||
}, { | ||
value: 'GBP', | ||
label: 'GBP', | ||
symbol: '£', | ||
minFee: 0.7, | ||
crudeConversion: 1.4, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'gb', | ||
type: 'fiat' | ||
}, { | ||
value: 'USD', | ||
label: 'USD', | ||
symbol: '$', | ||
minFee: 1, | ||
crudeConversion: 0.9, | ||
psp: 'coinapult', | ||
baseFee: 20, | ||
baseInThisCurrency: true, | ||
countryIso: 'us', | ||
type: 'fiat' | ||
}, { | ||
value: 'SEK', | ||
label: 'SEK', | ||
symbol: 'SEK ', | ||
minFee: 10, | ||
crudeConversion: 0.1, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'se', | ||
type: 'fiat' | ||
}, { | ||
value: 'HUF', | ||
label: 'HUF', | ||
symbol: 'HUF ', | ||
minFee: 300, | ||
crudeConversion: 0.0032, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'hu', | ||
type: 'fiat' | ||
}, { | ||
value: 'NOK', | ||
label: 'NOK', | ||
symbol: 'kr', | ||
minFee: 10, | ||
crudeConversion: 0.11, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'no', | ||
type: 'fiat' | ||
}, { | ||
value: 'HRK', | ||
label: 'HRK', | ||
symbol: 'HRK ', | ||
minFee: 8, | ||
crudeConversion: 0.13, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'hr', | ||
type: 'fiat' | ||
}, { | ||
value: 'CHF', | ||
label: 'CHF', | ||
symbol: 'CHF ', | ||
minFee: 1.5, | ||
crudeConversion: 0.92, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'ch', | ||
type: 'fiat' | ||
}, { | ||
value: 'CZK', | ||
label: 'CZK', | ||
symbol: 'Kč', | ||
minFee: 30, | ||
crudeConversion: 0.037, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'cz', | ||
type: 'fiat' | ||
}, { | ||
value: 'DKK', | ||
label: 'DKK', | ||
symbol: 'DKK ', | ||
minFee: 7.5, | ||
crudeConversion: 0.13, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'dk', | ||
type: 'fiat' | ||
}, { | ||
value: 'PLN', | ||
label: 'PLN', | ||
symbol: 'PLN ', | ||
minFee: 4, | ||
crudeConversion: 0.24, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'pl', | ||
type: 'fiat' | ||
}, | ||
'use strict'; | ||
// Crypto currencies | ||
{ | ||
value: 'XBT', | ||
label: 'BTC', | ||
symbol: 'Btc', | ||
type: 'crypto' | ||
} | ||
]; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var currencies = [ | ||
// Fiat currnecies | ||
{ | ||
value: 'EUR', | ||
label: 'EUR', | ||
symbol: '€', | ||
minFee: 1, | ||
crudeConversion: 1, | ||
psp: 'bitpay', | ||
baseFee: 0, | ||
countryIso: 'europeanunion', | ||
type: 'fiat' | ||
}, { | ||
value: 'GBP', | ||
label: 'GBP', | ||
symbol: '£', | ||
minFee: 0.7, | ||
crudeConversion: 1.4, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'gb', | ||
type: 'fiat' | ||
}, { | ||
value: 'USD', | ||
label: 'USD', | ||
symbol: '$', | ||
minFee: 1, | ||
crudeConversion: 0.9, | ||
psp: 'coinapult', | ||
baseFee: 20, | ||
baseInThisCurrency: true, | ||
countryIso: 'us', | ||
type: 'fiat' | ||
}, { | ||
value: 'SEK', | ||
label: 'SEK', | ||
symbol: 'SEK ', | ||
minFee: 10, | ||
crudeConversion: 0.1, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'se', | ||
type: 'fiat' | ||
}, { | ||
value: 'HUF', | ||
label: 'HUF', | ||
symbol: 'HUF ', | ||
minFee: 300, | ||
crudeConversion: 0.0032, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'hu', | ||
type: 'fiat' | ||
}, { | ||
value: 'NOK', | ||
label: 'NOK', | ||
symbol: 'kr', | ||
minFee: 10, | ||
crudeConversion: 0.11, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'no', | ||
type: 'fiat' | ||
}, { | ||
value: 'HRK', | ||
label: 'HRK', | ||
symbol: 'HRK ', | ||
minFee: 8, | ||
crudeConversion: 0.13, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'hr', | ||
type: 'fiat' | ||
}, { | ||
value: 'CHF', | ||
label: 'CHF', | ||
symbol: 'CHF ', | ||
minFee: 1.5, | ||
crudeConversion: 0.92, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'ch', | ||
type: 'fiat' | ||
}, { | ||
value: 'CZK', | ||
label: 'CZK', | ||
symbol: 'Kč', | ||
minFee: 30, | ||
crudeConversion: 0.037, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'cz', | ||
type: 'fiat' | ||
}, { | ||
value: 'DKK', | ||
label: 'DKK', | ||
symbol: 'DKK ', | ||
minFee: 7.5, | ||
crudeConversion: 0.13, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'dk', | ||
type: 'fiat' | ||
}, { | ||
value: 'PLN', | ||
label: 'PLN', | ||
symbol: 'PLN ', | ||
minFee: 4, | ||
crudeConversion: 0.24, | ||
psp: 'cubits', | ||
baseFee: 15, | ||
countryIso: 'pl', | ||
type: 'fiat' | ||
}, | ||
export default currencies; | ||
// Crypto currencies | ||
{ | ||
value: 'XBT', | ||
label: 'BTC', | ||
symbol: 'Btc', | ||
type: 'crypto' | ||
}]; | ||
exports.default = currencies; | ||
module.exports = exports['default']; |
@@ -1,6 +0,12 @@ | ||
export default { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
btcAddress: /^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$/, | ||
iban: /^[a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{3,7}([a-zA-Z0-9]?){0,16}$/, | ||
bic: /[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?/i, | ||
bic: /[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?/i | ||
}; | ||
module.exports = exports['default']; |
@@ -1,11 +0,10 @@ | ||
export default { | ||
entries: [ | ||
{value: 'new', label: 'New', class: 'primary', icon: 'th-list', canCancel: true}, | ||
{value: 'paid', label: 'Pending', class: 'warning', icon: 'btc'}, | ||
{value: 'confirmed', label: 'Confirmed', class: 'warning', icon: 'btc'} | ||
], | ||
cards: [ | ||
{value: 'new', label: 'Unpaid', class: 'primary', icon: 'th-list'}, | ||
{value: 'activated', label: 'Activated', class: 'success', icon: 'check'} | ||
] | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
entries: [{ value: 'new', label: 'New', class: 'primary', icon: 'th-list', canCancel: true }, { value: 'paid', label: 'Pending', class: 'warning', icon: 'btc' }, { value: 'confirmed', label: 'Confirmed', class: 'warning', icon: 'btc' }], | ||
cards: [{ value: 'new', label: 'Unpaid', class: 'primary', icon: 'th-list' }, { value: 'activated', label: 'Activated', class: 'success', icon: 'check' }] | ||
}; | ||
module.exports = exports['default']; |
@@ -1,2 +0,7 @@ | ||
export default { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
limits: { | ||
@@ -7,4 +12,5 @@ 0: 200, | ||
3: 50000, | ||
10: 100000, | ||
10: 100000 | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
module.exports = { | ||
@@ -20,2 +22,2 @@ "Dashboard": "Dashboard", | ||
"Edit_my_profile": "Edit my profile" | ||
}; | ||
}; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
module.exports = { | ||
@@ -20,2 +22,2 @@ "Dashboard": "Tableau de bord", | ||
"Edit_my_profile": "Modifier mon profil" | ||
}; | ||
}; |
@@ -1,2 +0,7 @@ | ||
const I18n = (keyword, language) => { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var I18n = function I18n(keyword, language) { | ||
if (!language) { | ||
@@ -6,3 +11,3 @@ language = 'en'; | ||
let translations = {}; | ||
var translations = {}; | ||
@@ -23,2 +28,3 @@ switch (language) { | ||
export default I18n; | ||
exports.default = I18n; | ||
module.exports = exports['default']; |
45
index.js
@@ -1,13 +0,34 @@ | ||
import Config from './Config.js'; | ||
import I18n from './i18n/index.js'; | ||
import Collections from './collections/index.js'; | ||
import Theme from './theme/index.js'; | ||
import Utils from './utils/index.js'; | ||
import mocks from './mocks/index.js'; | ||
'use strict'; | ||
exports.Config = Config; | ||
exports.I18n = I18n; | ||
exports.Collections = Collections; | ||
exports.Theme = Theme; | ||
exports.Utils = Utils; | ||
exports.mocks = mocks; | ||
var _Config = require('./Config.js'); | ||
var _Config2 = _interopRequireDefault(_Config); | ||
var _index = require('./i18n/index.js'); | ||
var _index2 = _interopRequireDefault(_index); | ||
var _index3 = require('./collections/index.js'); | ||
var _index4 = _interopRequireDefault(_index3); | ||
var _index5 = require('./theme/index.js'); | ||
var _index6 = _interopRequireDefault(_index5); | ||
var _index7 = require('./utils/index.js'); | ||
var _index8 = _interopRequireDefault(_index7); | ||
var _index9 = require('./mocks/index.js'); | ||
var _index10 = _interopRequireDefault(_index9); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.Config = _Config2.default; | ||
exports.I18n = _index2.default; | ||
exports.Collections = _index4.default; | ||
exports.Theme = _index6.default; | ||
exports.Utils = _index8.default; | ||
exports.mocks = _index10.default; |
@@ -1,3 +0,8 @@ | ||
const SimpleSchema = function(doc) { | ||
for (const fld in doc) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var SimpleSchema = function SimpleSchema(doc) { | ||
for (var fld in doc) { | ||
if (doc.hasOwnProperty(fld)) { | ||
@@ -9,4 +14,2 @@ this[fld] = doc[fld]; | ||
// this domain regex matches all domains that have at least one . | ||
@@ -16,12 +19,12 @@ // sadly IPv4 Adresses will be caught too but technically those are valid domains | ||
// a modification enforces that the tld consists only of characters | ||
const RX_DOMAIN = '(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z](?:[a-z-]*[a-z])?'; | ||
var RX_DOMAIN = '(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z](?:[a-z-]*[a-z])?'; | ||
// this domain regex matches everythign that could be a domain in intranet | ||
// that means "localhost" is a valid domain | ||
const RX_NAME_DOMAIN = '(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.|$))+'; | ||
var RX_NAME_DOMAIN = '(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.|$))+'; | ||
// strict IPv4 expression which allows 0-255 per oktett | ||
const RX_IPv4 = '(?:(?:[0-1]?\\d{1,2}|2[0-4]\\d|25[0-5])(?:\\.|$)){4}'; | ||
var RX_IPv4 = '(?:(?:[0-1]?\\d{1,2}|2[0-4]\\d|25[0-5])(?:\\.|$)){4}'; | ||
// strict IPv6 expression which allows (and validates) all shortcuts | ||
const RX_IPv6 = `(?:(?:[\\dA-Fa-f]{1,4}(?::|$)){8}|(?=(?:[^:\\s]|:[^:\\s])*::(?:[^:\\s]|:[^:\\s])*$)[\\dA-Fa-f]{0,4}(?:::?(?:[\\dA-Fa-f]{1,4}|$)){1,6})`; // and short adress | ||
var RX_IPv6 = '(?:(?:[\\dA-Fa-f]{1,4}(?::|$)){8}|(?=(?:[^:\\s]|:[^:\\s])*::(?:[^:\\s]|:[^:\\s])*$)[\\dA-Fa-f]{0,4}(?:::?(?:[\\dA-Fa-f]{1,4}|$)){1,6})'; // and short adress | ||
// this allows domains (also localhost etc) and ip adresses | ||
const RX_WEAK_DOMAIN = `(?:${[RX_NAME_DOMAIN,RX_IPv4,RX_IPv6].join('|')})`; | ||
var RX_WEAK_DOMAIN = '(?:' + [RX_NAME_DOMAIN, RX_IPv4, RX_IPv6].join('|') + ')'; | ||
@@ -34,8 +37,8 @@ SimpleSchema.prototype.RegEx = { | ||
Domain: new RegExp(`^${RX_DOMAIN}$`), | ||
WeakDomain: new RegExp(`^${RX_WEAK_DOMAIN}$`), | ||
Domain: new RegExp('^' + RX_DOMAIN + '$'), | ||
WeakDomain: new RegExp('^' + RX_WEAK_DOMAIN + '$'), | ||
IP: new RegExp(`^(?:${RX_IPv4}|${RX_IPv6})$`), | ||
IPv4: new RegExp(`^${RX_IPv4}$`), | ||
IPv6: new RegExp(`^${RX_IPv6}$`), | ||
IP: new RegExp('^(?:' + RX_IPv4 + '|' + RX_IPv6 + ')$'), | ||
IPv4: new RegExp('^' + RX_IPv4 + '$'), | ||
IPv6: new RegExp('^' + RX_IPv6 + '$'), | ||
// URL RegEx from https://gist.github.com/dperini/729294 | ||
@@ -58,2 +61,3 @@ // http://mathiasbynens.be/demo/url-regex | ||
export default SimpleSchema; | ||
exports.default = SimpleSchema; | ||
module.exports = exports['default']; |
@@ -1,20 +0,28 @@ | ||
import {withPicture} from './user'; | ||
import {main as guest} from './guest'; | ||
'use strict'; | ||
const bankTransfer = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.eur = undefined; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _user = require('./user'); | ||
var _guest = require('./guest'); | ||
var bankTransfer = { | ||
amount: 10, | ||
currency: 'EUR', | ||
recipient: { | ||
collection: 'Users', | ||
collection: 'Users' | ||
}, | ||
getRecipient() { | ||
return withPicture; | ||
getRecipient: function getRecipient() { | ||
return _user.withPicture; | ||
}, | ||
getDescription() { | ||
return 'Bank transfer of €10' | ||
getDescription: function getDescription() { | ||
return 'Bank transfer of €10'; | ||
} | ||
}; | ||
export const eur = { | ||
...bankTransfer, | ||
} | ||
var eur = exports.eur = _extends({}, bankTransfer); |
@@ -1,17 +0,27 @@ | ||
import {withPicture} from './user'; | ||
import {main as guest} from './guest'; | ||
'use strict'; | ||
const fromUser = { | ||
getSender() { | ||
return withPicture; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.bitcoinToEURFromUser = undefined; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _user = require('./user'); | ||
var _guest = require('./guest'); | ||
var fromUser = { | ||
getSender: function getSender() { | ||
return _user.withPicture; | ||
} | ||
} | ||
}; | ||
const fromGuest = { | ||
getSender() { | ||
return guest; | ||
var fromGuest = { | ||
getSender: function getSender() { | ||
return _guest.main; | ||
} | ||
} | ||
}; | ||
const bitcoinInvoice = { | ||
var bitcoinInvoice = { | ||
psp: 'bitpay', | ||
@@ -23,10 +33,7 @@ depositAddress: '1Eeyu8biTzgnNg4nnx2fjdbysN6RhMQzcs', | ||
convertedCurrency: 'EUR', | ||
getDescription() { | ||
return 'Bitcoin Invoice for €10' | ||
getDescription: function getDescription() { | ||
return 'Bitcoin Invoice for €10'; | ||
} | ||
}; | ||
export const bitcoinToEURFromUser = { | ||
...fromUser, | ||
...bitcoinInvoice, | ||
} | ||
var bitcoinToEURFromUser = exports.bitcoinToEURFromUser = _extends({}, fromUser, bitcoinInvoice); |
@@ -1,30 +0,37 @@ | ||
import {withPicture} from './user'; | ||
'use strict'; | ||
const contact = { | ||
getName() { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.withUser = exports.main = undefined; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _user = require('./user'); | ||
var contact = { | ||
getName: function getName() { | ||
return 'Dylan McGayfag'; | ||
}, | ||
getProfilePicture(size) { | ||
getProfilePicture: function getProfilePicture(size) { | ||
return 'https://randomuser.me/api/portraits/women/77.jpg'; | ||
}, | ||
getInitials() { | ||
getInitials: function getInitials() { | ||
return 'BF'; | ||
} | ||
} | ||
}; | ||
export const main = { | ||
...contact, | ||
isUser() { | ||
var main = exports.main = _extends({}, contact, { | ||
isUser: function isUser() { | ||
return false; | ||
} | ||
}; | ||
}); | ||
export const withUser = { | ||
...contact, | ||
isUser() { | ||
var withUser = exports.withUser = _extends({}, contact, { | ||
isUser: function isUser() { | ||
return true; | ||
}, | ||
getEntity() { | ||
return withPicture; | ||
getEntity: function getEntity() { | ||
return _user.withPicture; | ||
} | ||
} | ||
}); |
@@ -1,6 +0,11 @@ | ||
const guest = { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var guest = { | ||
email: 'guest@bitwa.la', | ||
ipAddress: '37.49.153.90', | ||
ipAddress: '37.49.153.90' | ||
}; | ||
export const main = guest; | ||
var main = exports.main = guest; |
@@ -1,2 +0,7 @@ | ||
export default { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
bitcoin_invoice: require('./bitcoin_invoice'), | ||
@@ -8,3 +13,4 @@ contact: require('./contact'), | ||
transaction: require('./transaction'), | ||
user: require('./user'), | ||
user: require('./user') | ||
}; | ||
module.exports = exports['default']; |
@@ -1,11 +0,19 @@ | ||
const userMocks = require('./user'); | ||
'use strict'; | ||
const message = { | ||
getOwner() { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var userMocks = require('./user'); | ||
var message = { | ||
getOwner: function getOwner() { | ||
return userMocks.withPicture; | ||
}, | ||
getParsedText() { | ||
getParsedText: function getParsedText() { | ||
return 'This is the message text'; | ||
}, | ||
getDate() { | ||
getDate: function getDate() { | ||
return '19:00'; | ||
@@ -15,14 +23,12 @@ } | ||
export const fromCurrentUser = { | ||
...message, | ||
isFromCurrentUser() { | ||
var fromCurrentUser = exports.fromCurrentUser = _extends({}, message, { | ||
isFromCurrentUser: function isFromCurrentUser() { | ||
return true; | ||
} | ||
}; | ||
}); | ||
export const notFromCurrentUser = { | ||
...message, | ||
isFromCurrentUser() { | ||
var notFromCurrentUser = exports.notFromCurrentUser = _extends({}, message, { | ||
isFromCurrentUser: function isFromCurrentUser() { | ||
return false; | ||
} | ||
}; | ||
}); |
@@ -1,6 +0,14 @@ | ||
const notification = { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var notification = { | ||
link: '/dashboard', | ||
label: 'You got to level 3 verification!', | ||
domain: 'VERIFICATION', | ||
getDate() { | ||
getDate: function getDate() { | ||
return '19:00'; | ||
@@ -10,10 +18,8 @@ } | ||
export const read = { | ||
...notification, | ||
var read = exports.read = _extends({}, notification, { | ||
read: true | ||
}; | ||
}); | ||
export const unread = { | ||
...notification, | ||
var unread = exports.unread = _extends({}, notification, { | ||
read: false | ||
}; | ||
}); |
@@ -1,46 +0,45 @@ | ||
const messageMocks = require('./message'); | ||
const userMocks = require('./user'); | ||
'use strict'; | ||
const thread = { | ||
getLastMessage() { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var messageMocks = require('./message'); | ||
var userMocks = require('./user'); | ||
var thread = { | ||
getLastMessage: function getLastMessage() { | ||
return messageMocks.fromCurrentUser; | ||
}, | ||
getLastUpdate() { | ||
getLastUpdate: function getLastUpdate() { | ||
return '9:42pm'; | ||
}, | ||
getOwner() { | ||
getOwner: function getOwner() { | ||
return userMocks.withPicture; | ||
}, | ||
getMessages() { | ||
return [ | ||
messageMocks.fromCurrentUser, | ||
messageMocks.notFromCurrentUser, | ||
messageMocks.fromCurrentUser, | ||
messageMocks.notFromCurrentUser, | ||
messageMocks.notFromCurrentUser, | ||
]; | ||
getMessages: function getMessages() { | ||
return [messageMocks.fromCurrentUser, messageMocks.notFromCurrentUser, messageMocks.fromCurrentUser, messageMocks.notFromCurrentUser, messageMocks.notFromCurrentUser]; | ||
} | ||
}; | ||
export const unread = { | ||
...thread, | ||
isUnread() { | ||
var unread = exports.unread = _extends({}, thread, { | ||
isUnread: function isUnread() { | ||
return true; | ||
}, | ||
}; | ||
} | ||
}); | ||
export const read = { | ||
...thread, | ||
isUnread() { | ||
var read = exports.read = _extends({}, thread, { | ||
isUnread: function isUnread() { | ||
return false; | ||
}, | ||
}; | ||
} | ||
}); | ||
export const manyMessages = { | ||
...thread, | ||
getMessages() { | ||
var manyMessages = exports.manyMessages = _extends({}, thread, { | ||
getMessages: function getMessages() { | ||
// Return 50 messages | ||
const messages = []; | ||
var messages = []; | ||
let i = 0; | ||
var i = 0; | ||
while (i < 50) { | ||
@@ -52,2 +51,2 @@ messages.push(i % 2 ? messageMocks.fromCurrentUser : messageMocks.notFromCurrentUser); | ||
} | ||
}; | ||
}); |
@@ -1,24 +0,39 @@ | ||
import * as bitcoinInvoices from './bitcoin_invoice'; | ||
import * as bankTransfers from './bank_transfers'; | ||
'use strict'; | ||
const transaction = { | ||
getAmountsSum() { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.btcToEURConfirmed = undefined; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _bitcoin_invoice = require('./bitcoin_invoice'); | ||
var bitcoinInvoices = _interopRequireWildcard(_bitcoin_invoice); | ||
var _bank_transfers = require('./bank_transfers'); | ||
var bankTransfers = _interopRequireWildcard(_bank_transfers); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
var transaction = { | ||
getAmountsSum: function getAmountsSum() { | ||
return 10; | ||
}, | ||
} | ||
}; | ||
export const btcToEURConfirmed = { | ||
...transaction, | ||
getInputs() { | ||
return [{collection: 'BitcoinInvoices', doc: bitcoinInvoices.bitcoinToEURFromUser}]; | ||
var btcToEURConfirmed = exports.btcToEURConfirmed = _extends({}, transaction, { | ||
getInputs: function getInputs() { | ||
return [{ collection: 'BitcoinInvoices', doc: bitcoinInvoices.bitcoinToEURFromUser }]; | ||
}, | ||
getOutputs() { | ||
return [{collection: 'BankTransfers', doc: bankTransfers.eur}] | ||
getOutputs: function getOutputs() { | ||
return [{ collection: 'BankTransfers', doc: bankTransfers.eur }]; | ||
}, | ||
inputsStatus() { | ||
inputsStatus: function inputsStatus() { | ||
return 'confirmed'; | ||
}, | ||
outputsStatus() { | ||
outputsStatus: function outputsStatus() { | ||
return 'confirmed'; | ||
} | ||
} | ||
}); |
@@ -1,6 +0,14 @@ | ||
const user = { | ||
getInitials() { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var user = { | ||
getInitials: function getInitials() { | ||
return 'BF'; | ||
}, | ||
getFullName() { | ||
getFullName: function getFullName() { | ||
return 'Dildo McFaggen'; | ||
@@ -10,14 +18,12 @@ } | ||
export const withPicture = { | ||
...user, | ||
getProfilePicture(size) { | ||
var withPicture = exports.withPicture = _extends({}, user, { | ||
getProfilePicture: function getProfilePicture(size) { | ||
return 'https://randomuser.me/api/portraits/women/77.jpg'; | ||
} | ||
}; | ||
}); | ||
export const withoutPicture = { | ||
...user, | ||
getProfilePicture(size) { | ||
var withoutPicture = exports.withoutPicture = _extends({}, user, { | ||
getProfilePicture: function getProfilePicture(size) { | ||
return null; | ||
} | ||
}; | ||
}); |
{ | ||
"name": "@bitwala/shared", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,22 +0,33 @@ | ||
import * as colors from './lib/colors'; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.border = exports.canvas = exports.alternateText = exports.lightText = exports.text = exports.success = exports.danger = exports.primary = exports.lightBlue = exports.black = exports.grey = exports.lightGrey = exports.white = undefined; | ||
var _colors = require('./lib/colors'); | ||
var colors = _interopRequireWildcard(_colors); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
// Arbitrary | ||
export const white = colors.darkWhite; | ||
export const lightGrey = colors.grey100; // #f5f5f5 | ||
export const grey = colors.grey600; // #757575 | ||
export const black = colors.darkBlack; | ||
export const lightBlue = colors.lightBlue800; | ||
var white = exports.white = colors.darkWhite; | ||
var lightGrey = exports.lightGrey = colors.grey100; // #f5f5f5 | ||
var grey = exports.grey = colors.grey600; // #757575 | ||
var black = exports.black = colors.darkBlack; | ||
var lightBlue = exports.lightBlue = colors.lightBlue800; | ||
// Theme | ||
export const primary = colors.blue900; // #0d47a1 | ||
export const danger = colors.red900; // #b71c1c | ||
export const success = colors.lightGreen900; // #33691e | ||
var primary = exports.primary = colors.blue900; // #0d47a1 | ||
var danger = exports.danger = colors.red900; // #b71c1c | ||
var success = exports.success = colors.lightGreen900; // #33691e | ||
// Typography | ||
export const text = colors.darkBlack; | ||
export const lightText = colors.lightBlack; | ||
export const alternateText = colors.grey100 | ||
var text = exports.text = colors.darkBlack; | ||
var lightText = exports.lightText = colors.lightBlack; | ||
var alternateText = exports.alternateText = colors.grey100; | ||
// Layout | ||
export const canvas = colors.darkWhite; | ||
export const border = grey; | ||
var canvas = exports.canvas = colors.darkWhite; | ||
var border = exports.border = grey; |
@@ -1,3 +0,9 @@ | ||
export default { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
Message: require('./message') | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,4 +0,16 @@ | ||
import * as colors from '../colors'; | ||
'use strict'; | ||
const main = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _colors = require('../colors'); | ||
var colors = _interopRequireWildcard(_colors); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
var main = { | ||
borderRadius: 10, | ||
@@ -8,19 +20,18 @@ textAlign: 'left', | ||
padding: '6px 12px', | ||
fontSize: 14, | ||
} | ||
fontSize: 14 | ||
}; | ||
const fromCurrentUser = { | ||
var fromCurrentUser = { | ||
color: colors.white, | ||
backgroundColor: colors.lightBlue, | ||
} | ||
backgroundColor: colors.lightBlue | ||
}; | ||
const notFromCurrentUser = { | ||
var notFromCurrentUser = { | ||
color: colors.black, | ||
backgroundColor: colors.lightGrey, | ||
} | ||
backgroundColor: colors.lightGrey | ||
}; | ||
export default { | ||
exports.default = { | ||
web: { | ||
main: { | ||
...main, | ||
main: _extends({}, main, { | ||
clear: 'both', | ||
@@ -30,23 +41,16 @@ maxWidth: '55%', | ||
whiteSpace: 'pre-wrap' | ||
}, | ||
fromCurrentUser: { | ||
...fromCurrentUser, | ||
}), | ||
fromCurrentUser: _extends({}, fromCurrentUser, { | ||
float: 'right' | ||
}, | ||
notFromCurrentUser: { | ||
...notFromCurrentUser, | ||
}), | ||
notFromCurrentUser: _extends({}, notFromCurrentUser, { | ||
float: 'left' | ||
} | ||
}) | ||
}, | ||
native: { | ||
main: { | ||
...main | ||
}, | ||
fromCurrentUser: { | ||
...fromCurrentUser | ||
}, | ||
notFromCurrentUser: { | ||
...notFromCurrentUser | ||
} | ||
main: _extends({}, main), | ||
fromCurrentUser: _extends({}, fromCurrentUser), | ||
notFromCurrentUser: _extends({}, notFromCurrentUser) | ||
} | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -1,7 +0,23 @@ | ||
import * as colors from './colors'; | ||
import components from './components'; | ||
'use strict'; | ||
export default { | ||
colors, | ||
components | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _colors = require('./colors'); | ||
var colors = _interopRequireWildcard(_colors); | ||
var _components = require('./components'); | ||
var _components2 = _interopRequireDefault(_components); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
exports.default = { | ||
colors: colors, | ||
components: _components2.default | ||
}; | ||
module.exports = exports['default']; |
@@ -0,8 +1,14 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
// Minimum widths in px for devices | ||
// From http://getbootstrap.com/css/#grid-options | ||
export default { | ||
exports.default = { | ||
sm: 768, | ||
md: 992, | ||
lg: 1200 | ||
} | ||
}; | ||
module.exports = exports['default']; |
@@ -0,288 +1,293 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
// Copied from https://raw.githubusercontent.com/callemall/material-ui/master/src/styles/colors.js | ||
// to avoid loading entire module | ||
export const red50 = '#ffebee'; | ||
export const red100 = '#ffcdd2'; | ||
export const red200 = '#ef9a9a'; | ||
export const red300 = '#e57373'; | ||
export const red400 = '#ef5350'; | ||
export const red500 = '#f44336'; | ||
export const red600 = '#e53935'; | ||
export const red700 = '#d32f2f'; | ||
export const red800 = '#c62828'; | ||
export const red900 = '#b71c1c'; | ||
export const redA100 = '#ff8a80'; | ||
export const redA200 = '#ff5252'; | ||
export const redA400 = '#ff1744'; | ||
export const redA700 = '#d50000'; | ||
var red50 = exports.red50 = '#ffebee'; | ||
var red100 = exports.red100 = '#ffcdd2'; | ||
var red200 = exports.red200 = '#ef9a9a'; | ||
var red300 = exports.red300 = '#e57373'; | ||
var red400 = exports.red400 = '#ef5350'; | ||
var red500 = exports.red500 = '#f44336'; | ||
var red600 = exports.red600 = '#e53935'; | ||
var red700 = exports.red700 = '#d32f2f'; | ||
var red800 = exports.red800 = '#c62828'; | ||
var red900 = exports.red900 = '#b71c1c'; | ||
var redA100 = exports.redA100 = '#ff8a80'; | ||
var redA200 = exports.redA200 = '#ff5252'; | ||
var redA400 = exports.redA400 = '#ff1744'; | ||
var redA700 = exports.redA700 = '#d50000'; | ||
export const pink50 = '#fce4ec'; | ||
export const pink100 = '#f8bbd0'; | ||
export const pink200 = '#f48fb1'; | ||
export const pink300 = '#f06292'; | ||
export const pink400 = '#ec407a'; | ||
export const pink500 = '#e91e63'; | ||
export const pink600 = '#d81b60'; | ||
export const pink700 = '#c2185b'; | ||
export const pink800 = '#ad1457'; | ||
export const pink900 = '#880e4f'; | ||
export const pinkA100 = '#ff80ab'; | ||
export const pinkA200 = '#ff4081'; | ||
export const pinkA400 = '#f50057'; | ||
export const pinkA700 = '#c51162'; | ||
var pink50 = exports.pink50 = '#fce4ec'; | ||
var pink100 = exports.pink100 = '#f8bbd0'; | ||
var pink200 = exports.pink200 = '#f48fb1'; | ||
var pink300 = exports.pink300 = '#f06292'; | ||
var pink400 = exports.pink400 = '#ec407a'; | ||
var pink500 = exports.pink500 = '#e91e63'; | ||
var pink600 = exports.pink600 = '#d81b60'; | ||
var pink700 = exports.pink700 = '#c2185b'; | ||
var pink800 = exports.pink800 = '#ad1457'; | ||
var pink900 = exports.pink900 = '#880e4f'; | ||
var pinkA100 = exports.pinkA100 = '#ff80ab'; | ||
var pinkA200 = exports.pinkA200 = '#ff4081'; | ||
var pinkA400 = exports.pinkA400 = '#f50057'; | ||
var pinkA700 = exports.pinkA700 = '#c51162'; | ||
export const purple50 = '#f3e5f5'; | ||
export const purple100 = '#e1bee7'; | ||
export const purple200 = '#ce93d8'; | ||
export const purple300 = '#ba68c8'; | ||
export const purple400 = '#ab47bc'; | ||
export const purple500 = '#9c27b0'; | ||
export const purple600 = '#8e24aa'; | ||
export const purple700 = '#7b1fa2'; | ||
export const purple800 = '#6a1b9a'; | ||
export const purple900 = '#4a148c'; | ||
export const purpleA100 = '#ea80fc'; | ||
export const purpleA200 = '#e040fb'; | ||
export const purpleA400 = '#d500f9'; | ||
export const purpleA700 = '#aa00ff'; | ||
var purple50 = exports.purple50 = '#f3e5f5'; | ||
var purple100 = exports.purple100 = '#e1bee7'; | ||
var purple200 = exports.purple200 = '#ce93d8'; | ||
var purple300 = exports.purple300 = '#ba68c8'; | ||
var purple400 = exports.purple400 = '#ab47bc'; | ||
var purple500 = exports.purple500 = '#9c27b0'; | ||
var purple600 = exports.purple600 = '#8e24aa'; | ||
var purple700 = exports.purple700 = '#7b1fa2'; | ||
var purple800 = exports.purple800 = '#6a1b9a'; | ||
var purple900 = exports.purple900 = '#4a148c'; | ||
var purpleA100 = exports.purpleA100 = '#ea80fc'; | ||
var purpleA200 = exports.purpleA200 = '#e040fb'; | ||
var purpleA400 = exports.purpleA400 = '#d500f9'; | ||
var purpleA700 = exports.purpleA700 = '#aa00ff'; | ||
export const deepPurple50 = '#ede7f6'; | ||
export const deepPurple100 = '#d1c4e9'; | ||
export const deepPurple200 = '#b39ddb'; | ||
export const deepPurple300 = '#9575cd'; | ||
export const deepPurple400 = '#7e57c2'; | ||
export const deepPurple500 = '#673ab7'; | ||
export const deepPurple600 = '#5e35b1'; | ||
export const deepPurple700 = '#512da8'; | ||
export const deepPurple800 = '#4527a0'; | ||
export const deepPurple900 = '#311b92'; | ||
export const deepPurpleA100 = '#b388ff'; | ||
export const deepPurpleA200 = '#7c4dff'; | ||
export const deepPurpleA400 = '#651fff'; | ||
export const deepPurpleA700 = '#6200ea'; | ||
var deepPurple50 = exports.deepPurple50 = '#ede7f6'; | ||
var deepPurple100 = exports.deepPurple100 = '#d1c4e9'; | ||
var deepPurple200 = exports.deepPurple200 = '#b39ddb'; | ||
var deepPurple300 = exports.deepPurple300 = '#9575cd'; | ||
var deepPurple400 = exports.deepPurple400 = '#7e57c2'; | ||
var deepPurple500 = exports.deepPurple500 = '#673ab7'; | ||
var deepPurple600 = exports.deepPurple600 = '#5e35b1'; | ||
var deepPurple700 = exports.deepPurple700 = '#512da8'; | ||
var deepPurple800 = exports.deepPurple800 = '#4527a0'; | ||
var deepPurple900 = exports.deepPurple900 = '#311b92'; | ||
var deepPurpleA100 = exports.deepPurpleA100 = '#b388ff'; | ||
var deepPurpleA200 = exports.deepPurpleA200 = '#7c4dff'; | ||
var deepPurpleA400 = exports.deepPurpleA400 = '#651fff'; | ||
var deepPurpleA700 = exports.deepPurpleA700 = '#6200ea'; | ||
export const indigo50 = '#e8eaf6'; | ||
export const indigo100 = '#c5cae9'; | ||
export const indigo200 = '#9fa8da'; | ||
export const indigo300 = '#7986cb'; | ||
export const indigo400 = '#5c6bc0'; | ||
export const indigo500 = '#3f51b5'; | ||
export const indigo600 = '#3949ab'; | ||
export const indigo700 = '#303f9f'; | ||
export const indigo800 = '#283593'; | ||
export const indigo900 = '#1a237e'; | ||
export const indigoA100 = '#8c9eff'; | ||
export const indigoA200 = '#536dfe'; | ||
export const indigoA400 = '#3d5afe'; | ||
export const indigoA700 = '#304ffe'; | ||
var indigo50 = exports.indigo50 = '#e8eaf6'; | ||
var indigo100 = exports.indigo100 = '#c5cae9'; | ||
var indigo200 = exports.indigo200 = '#9fa8da'; | ||
var indigo300 = exports.indigo300 = '#7986cb'; | ||
var indigo400 = exports.indigo400 = '#5c6bc0'; | ||
var indigo500 = exports.indigo500 = '#3f51b5'; | ||
var indigo600 = exports.indigo600 = '#3949ab'; | ||
var indigo700 = exports.indigo700 = '#303f9f'; | ||
var indigo800 = exports.indigo800 = '#283593'; | ||
var indigo900 = exports.indigo900 = '#1a237e'; | ||
var indigoA100 = exports.indigoA100 = '#8c9eff'; | ||
var indigoA200 = exports.indigoA200 = '#536dfe'; | ||
var indigoA400 = exports.indigoA400 = '#3d5afe'; | ||
var indigoA700 = exports.indigoA700 = '#304ffe'; | ||
export const blue50 = '#e3f2fd'; | ||
export const blue100 = '#bbdefb'; | ||
export const blue200 = '#90caf9'; | ||
export const blue300 = '#64b5f6'; | ||
export const blue400 = '#42a5f5'; | ||
export const blue500 = '#2196f3'; | ||
export const blue600 = '#1e88e5'; | ||
export const blue700 = '#1976d2'; | ||
export const blue800 = '#1565c0'; | ||
export const blue900 = '#0d47a1'; | ||
export const blueA100 = '#82b1ff'; | ||
export const blueA200 = '#448aff'; | ||
export const blueA400 = '#2979ff'; | ||
export const blueA700 = '#2962ff'; | ||
var blue50 = exports.blue50 = '#e3f2fd'; | ||
var blue100 = exports.blue100 = '#bbdefb'; | ||
var blue200 = exports.blue200 = '#90caf9'; | ||
var blue300 = exports.blue300 = '#64b5f6'; | ||
var blue400 = exports.blue400 = '#42a5f5'; | ||
var blue500 = exports.blue500 = '#2196f3'; | ||
var blue600 = exports.blue600 = '#1e88e5'; | ||
var blue700 = exports.blue700 = '#1976d2'; | ||
var blue800 = exports.blue800 = '#1565c0'; | ||
var blue900 = exports.blue900 = '#0d47a1'; | ||
var blueA100 = exports.blueA100 = '#82b1ff'; | ||
var blueA200 = exports.blueA200 = '#448aff'; | ||
var blueA400 = exports.blueA400 = '#2979ff'; | ||
var blueA700 = exports.blueA700 = '#2962ff'; | ||
export const lightBlue50 = '#e1f5fe'; | ||
export const lightBlue100 = '#b3e5fc'; | ||
export const lightBlue200 = '#81d4fa'; | ||
export const lightBlue300 = '#4fc3f7'; | ||
export const lightBlue400 = '#29b6f6'; | ||
export const lightBlue500 = '#03a9f4'; | ||
export const lightBlue600 = '#039be5'; | ||
export const lightBlue700 = '#0288d1'; | ||
export const lightBlue800 = '#0277bd'; | ||
export const lightBlue900 = '#01579b'; | ||
export const lightBlueA100 = '#80d8ff'; | ||
export const lightBlueA200 = '#40c4ff'; | ||
export const lightBlueA400 = '#00b0ff'; | ||
export const lightBlueA700 = '#0091ea'; | ||
var lightBlue50 = exports.lightBlue50 = '#e1f5fe'; | ||
var lightBlue100 = exports.lightBlue100 = '#b3e5fc'; | ||
var lightBlue200 = exports.lightBlue200 = '#81d4fa'; | ||
var lightBlue300 = exports.lightBlue300 = '#4fc3f7'; | ||
var lightBlue400 = exports.lightBlue400 = '#29b6f6'; | ||
var lightBlue500 = exports.lightBlue500 = '#03a9f4'; | ||
var lightBlue600 = exports.lightBlue600 = '#039be5'; | ||
var lightBlue700 = exports.lightBlue700 = '#0288d1'; | ||
var lightBlue800 = exports.lightBlue800 = '#0277bd'; | ||
var lightBlue900 = exports.lightBlue900 = '#01579b'; | ||
var lightBlueA100 = exports.lightBlueA100 = '#80d8ff'; | ||
var lightBlueA200 = exports.lightBlueA200 = '#40c4ff'; | ||
var lightBlueA400 = exports.lightBlueA400 = '#00b0ff'; | ||
var lightBlueA700 = exports.lightBlueA700 = '#0091ea'; | ||
export const cyan50 = '#e0f7fa'; | ||
export const cyan100 = '#b2ebf2'; | ||
export const cyan200 = '#80deea'; | ||
export const cyan300 = '#4dd0e1'; | ||
export const cyan400 = '#26c6da'; | ||
export const cyan500 = '#00bcd4'; | ||
export const cyan600 = '#00acc1'; | ||
export const cyan700 = '#0097a7'; | ||
export const cyan800 = '#00838f'; | ||
export const cyan900 = '#006064'; | ||
export const cyanA100 = '#84ffff'; | ||
export const cyanA200 = '#18ffff'; | ||
export const cyanA400 = '#00e5ff'; | ||
export const cyanA700 = '#00b8d4'; | ||
var cyan50 = exports.cyan50 = '#e0f7fa'; | ||
var cyan100 = exports.cyan100 = '#b2ebf2'; | ||
var cyan200 = exports.cyan200 = '#80deea'; | ||
var cyan300 = exports.cyan300 = '#4dd0e1'; | ||
var cyan400 = exports.cyan400 = '#26c6da'; | ||
var cyan500 = exports.cyan500 = '#00bcd4'; | ||
var cyan600 = exports.cyan600 = '#00acc1'; | ||
var cyan700 = exports.cyan700 = '#0097a7'; | ||
var cyan800 = exports.cyan800 = '#00838f'; | ||
var cyan900 = exports.cyan900 = '#006064'; | ||
var cyanA100 = exports.cyanA100 = '#84ffff'; | ||
var cyanA200 = exports.cyanA200 = '#18ffff'; | ||
var cyanA400 = exports.cyanA400 = '#00e5ff'; | ||
var cyanA700 = exports.cyanA700 = '#00b8d4'; | ||
export const teal50 = '#e0f2f1'; | ||
export const teal100 = '#b2dfdb'; | ||
export const teal200 = '#80cbc4'; | ||
export const teal300 = '#4db6ac'; | ||
export const teal400 = '#26a69a'; | ||
export const teal500 = '#009688'; | ||
export const teal600 = '#00897b'; | ||
export const teal700 = '#00796b'; | ||
export const teal800 = '#00695c'; | ||
export const teal900 = '#004d40'; | ||
export const tealA100 = '#a7ffeb'; | ||
export const tealA200 = '#64ffda'; | ||
export const tealA400 = '#1de9b6'; | ||
export const tealA700 = '#00bfa5'; | ||
var teal50 = exports.teal50 = '#e0f2f1'; | ||
var teal100 = exports.teal100 = '#b2dfdb'; | ||
var teal200 = exports.teal200 = '#80cbc4'; | ||
var teal300 = exports.teal300 = '#4db6ac'; | ||
var teal400 = exports.teal400 = '#26a69a'; | ||
var teal500 = exports.teal500 = '#009688'; | ||
var teal600 = exports.teal600 = '#00897b'; | ||
var teal700 = exports.teal700 = '#00796b'; | ||
var teal800 = exports.teal800 = '#00695c'; | ||
var teal900 = exports.teal900 = '#004d40'; | ||
var tealA100 = exports.tealA100 = '#a7ffeb'; | ||
var tealA200 = exports.tealA200 = '#64ffda'; | ||
var tealA400 = exports.tealA400 = '#1de9b6'; | ||
var tealA700 = exports.tealA700 = '#00bfa5'; | ||
export const green50 = '#e8f5e9'; | ||
export const green100 = '#c8e6c9'; | ||
export const green200 = '#a5d6a7'; | ||
export const green300 = '#81c784'; | ||
export const green400 = '#66bb6a'; | ||
export const green500 = '#4caf50'; | ||
export const green600 = '#43a047'; | ||
export const green700 = '#388e3c'; | ||
export const green800 = '#2e7d32'; | ||
export const green900 = '#1b5e20'; | ||
export const greenA100 = '#b9f6ca'; | ||
export const greenA200 = '#69f0ae'; | ||
export const greenA400 = '#00e676'; | ||
export const greenA700 = '#00c853'; | ||
var green50 = exports.green50 = '#e8f5e9'; | ||
var green100 = exports.green100 = '#c8e6c9'; | ||
var green200 = exports.green200 = '#a5d6a7'; | ||
var green300 = exports.green300 = '#81c784'; | ||
var green400 = exports.green400 = '#66bb6a'; | ||
var green500 = exports.green500 = '#4caf50'; | ||
var green600 = exports.green600 = '#43a047'; | ||
var green700 = exports.green700 = '#388e3c'; | ||
var green800 = exports.green800 = '#2e7d32'; | ||
var green900 = exports.green900 = '#1b5e20'; | ||
var greenA100 = exports.greenA100 = '#b9f6ca'; | ||
var greenA200 = exports.greenA200 = '#69f0ae'; | ||
var greenA400 = exports.greenA400 = '#00e676'; | ||
var greenA700 = exports.greenA700 = '#00c853'; | ||
export const lightGreen50 = '#f1f8e9'; | ||
export const lightGreen100 = '#dcedc8'; | ||
export const lightGreen200 = '#c5e1a5'; | ||
export const lightGreen300 = '#aed581'; | ||
export const lightGreen400 = '#9ccc65'; | ||
export const lightGreen500 = '#8bc34a'; | ||
export const lightGreen600 = '#7cb342'; | ||
export const lightGreen700 = '#689f38'; | ||
export const lightGreen800 = '#558b2f'; | ||
export const lightGreen900 = '#33691e'; | ||
export const lightGreenA100 = '#ccff90'; | ||
export const lightGreenA200 = '#b2ff59'; | ||
export const lightGreenA400 = '#76ff03'; | ||
export const lightGreenA700 = '#64dd17'; | ||
var lightGreen50 = exports.lightGreen50 = '#f1f8e9'; | ||
var lightGreen100 = exports.lightGreen100 = '#dcedc8'; | ||
var lightGreen200 = exports.lightGreen200 = '#c5e1a5'; | ||
var lightGreen300 = exports.lightGreen300 = '#aed581'; | ||
var lightGreen400 = exports.lightGreen400 = '#9ccc65'; | ||
var lightGreen500 = exports.lightGreen500 = '#8bc34a'; | ||
var lightGreen600 = exports.lightGreen600 = '#7cb342'; | ||
var lightGreen700 = exports.lightGreen700 = '#689f38'; | ||
var lightGreen800 = exports.lightGreen800 = '#558b2f'; | ||
var lightGreen900 = exports.lightGreen900 = '#33691e'; | ||
var lightGreenA100 = exports.lightGreenA100 = '#ccff90'; | ||
var lightGreenA200 = exports.lightGreenA200 = '#b2ff59'; | ||
var lightGreenA400 = exports.lightGreenA400 = '#76ff03'; | ||
var lightGreenA700 = exports.lightGreenA700 = '#64dd17'; | ||
export const lime50 = '#f9fbe7'; | ||
export const lime100 = '#f0f4c3'; | ||
export const lime200 = '#e6ee9c'; | ||
export const lime300 = '#dce775'; | ||
export const lime400 = '#d4e157'; | ||
export const lime500 = '#cddc39'; | ||
export const lime600 = '#c0ca33'; | ||
export const lime700 = '#afb42b'; | ||
export const lime800 = '#9e9d24'; | ||
export const lime900 = '#827717'; | ||
export const limeA100 = '#f4ff81'; | ||
export const limeA200 = '#eeff41'; | ||
export const limeA400 = '#c6ff00'; | ||
export const limeA700 = '#aeea00'; | ||
var lime50 = exports.lime50 = '#f9fbe7'; | ||
var lime100 = exports.lime100 = '#f0f4c3'; | ||
var lime200 = exports.lime200 = '#e6ee9c'; | ||
var lime300 = exports.lime300 = '#dce775'; | ||
var lime400 = exports.lime400 = '#d4e157'; | ||
var lime500 = exports.lime500 = '#cddc39'; | ||
var lime600 = exports.lime600 = '#c0ca33'; | ||
var lime700 = exports.lime700 = '#afb42b'; | ||
var lime800 = exports.lime800 = '#9e9d24'; | ||
var lime900 = exports.lime900 = '#827717'; | ||
var limeA100 = exports.limeA100 = '#f4ff81'; | ||
var limeA200 = exports.limeA200 = '#eeff41'; | ||
var limeA400 = exports.limeA400 = '#c6ff00'; | ||
var limeA700 = exports.limeA700 = '#aeea00'; | ||
export const yellow50 = '#fffde7'; | ||
export const yellow100 = '#fff9c4'; | ||
export const yellow200 = '#fff59d'; | ||
export const yellow300 = '#fff176'; | ||
export const yellow400 = '#ffee58'; | ||
export const yellow500 = '#ffeb3b'; | ||
export const yellow600 = '#fdd835'; | ||
export const yellow700 = '#fbc02d'; | ||
export const yellow800 = '#f9a825'; | ||
export const yellow900 = '#f57f17'; | ||
export const yellowA100 = '#ffff8d'; | ||
export const yellowA200 = '#ffff00'; | ||
export const yellowA400 = '#ffea00'; | ||
export const yellowA700 = '#ffd600'; | ||
var yellow50 = exports.yellow50 = '#fffde7'; | ||
var yellow100 = exports.yellow100 = '#fff9c4'; | ||
var yellow200 = exports.yellow200 = '#fff59d'; | ||
var yellow300 = exports.yellow300 = '#fff176'; | ||
var yellow400 = exports.yellow400 = '#ffee58'; | ||
var yellow500 = exports.yellow500 = '#ffeb3b'; | ||
var yellow600 = exports.yellow600 = '#fdd835'; | ||
var yellow700 = exports.yellow700 = '#fbc02d'; | ||
var yellow800 = exports.yellow800 = '#f9a825'; | ||
var yellow900 = exports.yellow900 = '#f57f17'; | ||
var yellowA100 = exports.yellowA100 = '#ffff8d'; | ||
var yellowA200 = exports.yellowA200 = '#ffff00'; | ||
var yellowA400 = exports.yellowA400 = '#ffea00'; | ||
var yellowA700 = exports.yellowA700 = '#ffd600'; | ||
export const amber50 = '#fff8e1'; | ||
export const amber100 = '#ffecb3'; | ||
export const amber200 = '#ffe082'; | ||
export const amber300 = '#ffd54f'; | ||
export const amber400 = '#ffca28'; | ||
export const amber500 = '#ffc107'; | ||
export const amber600 = '#ffb300'; | ||
export const amber700 = '#ffa000'; | ||
export const amber800 = '#ff8f00'; | ||
export const amber900 = '#ff6f00'; | ||
export const amberA100 = '#ffe57f'; | ||
export const amberA200 = '#ffd740'; | ||
export const amberA400 = '#ffc400'; | ||
export const amberA700 = '#ffab00'; | ||
var amber50 = exports.amber50 = '#fff8e1'; | ||
var amber100 = exports.amber100 = '#ffecb3'; | ||
var amber200 = exports.amber200 = '#ffe082'; | ||
var amber300 = exports.amber300 = '#ffd54f'; | ||
var amber400 = exports.amber400 = '#ffca28'; | ||
var amber500 = exports.amber500 = '#ffc107'; | ||
var amber600 = exports.amber600 = '#ffb300'; | ||
var amber700 = exports.amber700 = '#ffa000'; | ||
var amber800 = exports.amber800 = '#ff8f00'; | ||
var amber900 = exports.amber900 = '#ff6f00'; | ||
var amberA100 = exports.amberA100 = '#ffe57f'; | ||
var amberA200 = exports.amberA200 = '#ffd740'; | ||
var amberA400 = exports.amberA400 = '#ffc400'; | ||
var amberA700 = exports.amberA700 = '#ffab00'; | ||
export const orange50 = '#fff3e0'; | ||
export const orange100 = '#ffe0b2'; | ||
export const orange200 = '#ffcc80'; | ||
export const orange300 = '#ffb74d'; | ||
export const orange400 = '#ffa726'; | ||
export const orange500 = '#ff9800'; | ||
export const orange600 = '#fb8c00'; | ||
export const orange700 = '#f57c00'; | ||
export const orange800 = '#ef6c00'; | ||
export const orange900 = '#e65100'; | ||
export const orangeA100 = '#ffd180'; | ||
export const orangeA200 = '#ffab40'; | ||
export const orangeA400 = '#ff9100'; | ||
export const orangeA700 = '#ff6d00'; | ||
var orange50 = exports.orange50 = '#fff3e0'; | ||
var orange100 = exports.orange100 = '#ffe0b2'; | ||
var orange200 = exports.orange200 = '#ffcc80'; | ||
var orange300 = exports.orange300 = '#ffb74d'; | ||
var orange400 = exports.orange400 = '#ffa726'; | ||
var orange500 = exports.orange500 = '#ff9800'; | ||
var orange600 = exports.orange600 = '#fb8c00'; | ||
var orange700 = exports.orange700 = '#f57c00'; | ||
var orange800 = exports.orange800 = '#ef6c00'; | ||
var orange900 = exports.orange900 = '#e65100'; | ||
var orangeA100 = exports.orangeA100 = '#ffd180'; | ||
var orangeA200 = exports.orangeA200 = '#ffab40'; | ||
var orangeA400 = exports.orangeA400 = '#ff9100'; | ||
var orangeA700 = exports.orangeA700 = '#ff6d00'; | ||
export const deepOrange50 = '#fbe9e7'; | ||
export const deepOrange100 = '#ffccbc'; | ||
export const deepOrange200 = '#ffab91'; | ||
export const deepOrange300 = '#ff8a65'; | ||
export const deepOrange400 = '#ff7043'; | ||
export const deepOrange500 = '#ff5722'; | ||
export const deepOrange600 = '#f4511e'; | ||
export const deepOrange700 = '#e64a19'; | ||
export const deepOrange800 = '#d84315'; | ||
export const deepOrange900 = '#bf360c'; | ||
export const deepOrangeA100 = '#ff9e80'; | ||
export const deepOrangeA200 = '#ff6e40'; | ||
export const deepOrangeA400 = '#ff3d00'; | ||
export const deepOrangeA700 = '#dd2c00'; | ||
var deepOrange50 = exports.deepOrange50 = '#fbe9e7'; | ||
var deepOrange100 = exports.deepOrange100 = '#ffccbc'; | ||
var deepOrange200 = exports.deepOrange200 = '#ffab91'; | ||
var deepOrange300 = exports.deepOrange300 = '#ff8a65'; | ||
var deepOrange400 = exports.deepOrange400 = '#ff7043'; | ||
var deepOrange500 = exports.deepOrange500 = '#ff5722'; | ||
var deepOrange600 = exports.deepOrange600 = '#f4511e'; | ||
var deepOrange700 = exports.deepOrange700 = '#e64a19'; | ||
var deepOrange800 = exports.deepOrange800 = '#d84315'; | ||
var deepOrange900 = exports.deepOrange900 = '#bf360c'; | ||
var deepOrangeA100 = exports.deepOrangeA100 = '#ff9e80'; | ||
var deepOrangeA200 = exports.deepOrangeA200 = '#ff6e40'; | ||
var deepOrangeA400 = exports.deepOrangeA400 = '#ff3d00'; | ||
var deepOrangeA700 = exports.deepOrangeA700 = '#dd2c00'; | ||
export const brown50 = '#efebe9'; | ||
export const brown100 = '#d7ccc8'; | ||
export const brown200 = '#bcaaa4'; | ||
export const brown300 = '#a1887f'; | ||
export const brown400 = '#8d6e63'; | ||
export const brown500 = '#795548'; | ||
export const brown600 = '#6d4c41'; | ||
export const brown700 = '#5d4037'; | ||
export const brown800 = '#4e342e'; | ||
export const brown900 = '#3e2723'; | ||
var brown50 = exports.brown50 = '#efebe9'; | ||
var brown100 = exports.brown100 = '#d7ccc8'; | ||
var brown200 = exports.brown200 = '#bcaaa4'; | ||
var brown300 = exports.brown300 = '#a1887f'; | ||
var brown400 = exports.brown400 = '#8d6e63'; | ||
var brown500 = exports.brown500 = '#795548'; | ||
var brown600 = exports.brown600 = '#6d4c41'; | ||
var brown700 = exports.brown700 = '#5d4037'; | ||
var brown800 = exports.brown800 = '#4e342e'; | ||
var brown900 = exports.brown900 = '#3e2723'; | ||
export const blueGrey50 = '#eceff1'; | ||
export const blueGrey100 = '#cfd8dc'; | ||
export const blueGrey200 = '#b0bec5'; | ||
export const blueGrey300 = '#90a4ae'; | ||
export const blueGrey400 = '#78909c'; | ||
export const blueGrey500 = '#607d8b'; | ||
export const blueGrey600 = '#546e7a'; | ||
export const blueGrey700 = '#455a64'; | ||
export const blueGrey800 = '#37474f'; | ||
export const blueGrey900 = '#263238'; | ||
var blueGrey50 = exports.blueGrey50 = '#eceff1'; | ||
var blueGrey100 = exports.blueGrey100 = '#cfd8dc'; | ||
var blueGrey200 = exports.blueGrey200 = '#b0bec5'; | ||
var blueGrey300 = exports.blueGrey300 = '#90a4ae'; | ||
var blueGrey400 = exports.blueGrey400 = '#78909c'; | ||
var blueGrey500 = exports.blueGrey500 = '#607d8b'; | ||
var blueGrey600 = exports.blueGrey600 = '#546e7a'; | ||
var blueGrey700 = exports.blueGrey700 = '#455a64'; | ||
var blueGrey800 = exports.blueGrey800 = '#37474f'; | ||
var blueGrey900 = exports.blueGrey900 = '#263238'; | ||
export const grey50 = '#fafafa'; | ||
export const grey100 = '#f5f5f5'; | ||
export const grey200 = '#eeeeee'; | ||
export const grey300 = '#e0e0e0'; | ||
export const grey400 = '#bdbdbd'; | ||
export const grey500 = '#9e9e9e'; | ||
export const grey600 = '#757575'; | ||
export const grey700 = '#616161'; | ||
export const grey800 = '#424242'; | ||
export const grey900 = '#212121'; | ||
var grey50 = exports.grey50 = '#fafafa'; | ||
var grey100 = exports.grey100 = '#f5f5f5'; | ||
var grey200 = exports.grey200 = '#eeeeee'; | ||
var grey300 = exports.grey300 = '#e0e0e0'; | ||
var grey400 = exports.grey400 = '#bdbdbd'; | ||
var grey500 = exports.grey500 = '#9e9e9e'; | ||
var grey600 = exports.grey600 = '#757575'; | ||
var grey700 = exports.grey700 = '#616161'; | ||
var grey800 = exports.grey800 = '#424242'; | ||
var grey900 = exports.grey900 = '#212121'; | ||
export const black = '#000000'; | ||
export const white = '#ffffff'; | ||
var black = exports.black = '#000000'; | ||
var white = exports.white = '#ffffff'; | ||
export const transparent = 'rgba(0, 0, 0, 0)'; | ||
export const fullBlack = 'rgba(0, 0, 0, 1)'; | ||
export const darkBlack = 'rgba(0, 0, 0, 0.87)'; | ||
export const lightBlack = 'rgba(0, 0, 0, 0.54)'; | ||
export const minBlack = 'rgba(0, 0, 0, 0.26)'; | ||
export const faintBlack = 'rgba(0, 0, 0, 0.12)'; | ||
export const fullWhite = 'rgba(255, 255, 255, 1)'; | ||
export const darkWhite = 'rgba(255, 255, 255, 0.87)'; | ||
export const lightWhite = 'rgba(255, 255, 255, 0.54)'; | ||
var transparent = exports.transparent = 'rgba(0, 0, 0, 0)'; | ||
var fullBlack = exports.fullBlack = 'rgba(0, 0, 0, 1)'; | ||
var darkBlack = exports.darkBlack = 'rgba(0, 0, 0, 0.87)'; | ||
var lightBlack = exports.lightBlack = 'rgba(0, 0, 0, 0.54)'; | ||
var minBlack = exports.minBlack = 'rgba(0, 0, 0, 0.26)'; | ||
var faintBlack = exports.faintBlack = 'rgba(0, 0, 0, 0.12)'; | ||
var fullWhite = exports.fullWhite = 'rgba(255, 255, 255, 1)'; | ||
var darkWhite = exports.darkWhite = 'rgba(255, 255, 255, 0.87)'; | ||
var lightWhite = exports.lightWhite = 'rgba(255, 255, 255, 0.54)'; |
@@ -1,8 +0,13 @@ | ||
export default { | ||
format(date, profile) { | ||
switch(profile) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
format: function format(date, profile) { | ||
switch (profile) { | ||
case 'CONTEXTUAL': | ||
return `CONTEXTUAL${date}`; | ||
return 'CONTEXTUAL' + date; | ||
case 'LONG': | ||
return `LONG${date}`; | ||
return 'LONG' + date; | ||
default: | ||
@@ -13,1 +18,2 @@ return date; | ||
}; | ||
module.exports = exports['default']; |
@@ -1,3 +0,9 @@ | ||
export default { | ||
dates: require('./dates'), | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { | ||
dates: require('./dates') | ||
}; | ||
module.exports = exports['default']; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
80567
3012
0