-
-
Save morgant/158721178322f18ae33da66aa4ff90e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
get(page) { | |
return this.all().find(p => p.page == page) | |
}, | |
all() { | |
return [ | |
{ | |
page: 'signup', | |
title: 'Sign up', | |
subtitle: 'Please enter your name, email and set a password.', | |
fields: [ | |
{ | |
type: "text", | |
label: "First and Last Name", | |
placeholder: "", | |
model: "user", | |
data: "name" | |
}, | |
{ | |
type: "email", | |
label: "Email", | |
placeholder: "", | |
model: "user", | |
data: "email" | |
}, | |
{ | |
type: "password", | |
label: "Password", | |
placeholder: "", | |
model: "user", | |
data: "password" | |
}, | |
], | |
buttons: [], | |
nextPage: "organization-new", | |
showNext: true, | |
display: "one" | |
}, | |
{ | |
page: 'organization-new', | |
title: 'Describe your business', | |
subtitle: 'Give your account a name and optional description', | |
fields: [ | |
{ | |
type: "search", | |
label: "Name of business", | |
placeholder: "Find or add", | |
model: "business", | |
data: "name" | |
}, | |
{ | |
type: "textarea", | |
label: "Description", | |
placeholder: "", | |
model: "business", | |
data: "about" | |
}, | |
], | |
buttons: [], | |
nextPage: "organization-locations", | |
showNext: true, | |
display: "one" | |
}, | |
{ | |
page: 'organization-locations', | |
title: 'Add locations', | |
subtitle: 'Search and select store address locations', | |
fields: [ | |
{ | |
type: "search", | |
label: "Location", | |
placeholder: "start typing address..", | |
model: "business", | |
data: "locations" | |
} | |
], | |
buttons: [], | |
nextPage: "organization-contact", | |
showNext: true, | |
display: "one" | |
}, | |
{ | |
page: 'organization-contact', | |
title: 'How do customers contact you', | |
subtitle: 'Lorem ipsum', | |
fields: [ | |
{ | |
type: "text", | |
label: "Website", | |
placeholder: "", | |
model: "business", | |
data: "website" | |
}, | |
{ | |
type: "text", | |
label: "Phone", | |
placeholder: "", | |
model: "business", | |
data: "phone" | |
} | |
], | |
buttons: [], | |
nextPage: "organization-image", | |
showNext: true, | |
display: "one" | |
}, | |
{ | |
page: 'organization-image', | |
title: 'Upload an image', | |
subtitle: 'Lorem ipsum', | |
fields: [], | |
buttons: [ | |
{ | |
class: "button", | |
label: "Upload an image", | |
placeholder: "", | |
model: "business", | |
data: "image", | |
action: "cloudinary" | |
}, | |
{ | |
class: "button", | |
label: "Skip", | |
placeholder: "", | |
model: "", | |
data: "", | |
action: "next" | |
}, | |
], | |
nextPage: "organization-deal-category", | |
showNext: false, | |
display: "one" | |
}, | |
{ | |
page: 'organization-deal-category', | |
title: 'Create a deal to attact customers', | |
subtitle: 'Lorem ipsum', | |
fields: [], | |
buttons: [ | |
{ | |
class: "button", | |
label: "A thing to do", | |
placeholder: "", | |
model: "deal", | |
data: "category", | |
action: "set" | |
}, | |
{ | |
class: "button", | |
label: "shop", | |
placeholder: "", | |
model: "deal", | |
data: "category", | |
action: "set" | |
}, | |
{ | |
class: "button", | |
label: "Eat or drink", | |
placeholder: "", | |
model: "deal", | |
data: "category", | |
action: "set" | |
}, | |
{ | |
class: "button", | |
label: "Service", | |
placeholder: "", | |
model: "deal", | |
data: "category", | |
action: "set" | |
}, | |
{ | |
class: "button", | |
label: "Stay", | |
placeholder: "", | |
model: "deal", | |
data: "category", | |
action: "set" | |
}, | |
], | |
nextPage: "organization-deal-spend", | |
showNext: false, | |
display: "one" | |
}, | |
{ | |
page: 'organization-deal-spend', | |
title: 'Spend details', | |
subtitle: 'Lorem ipsum', | |
fields: [ | |
{ | |
type: "dollar", | |
label: "How much must they spend", | |
placeholder: "", | |
model: "deal", | |
data: "min_spend" | |
}, | |
{ | |
type: "dollar", | |
label: "What will the award amount be", | |
placeholder: "", | |
model: "deal", | |
data: "award_value" | |
} | |
], | |
buttons: [], | |
nextPage: "organization-deal-disclaimers", | |
showNext: true, | |
display: "one" | |
}, | |
{ | |
page: 'organization-deal-disclaimers', | |
title: 'Disclaimers', | |
subtitle: 'Lorem ipsum', | |
fields: [ | |
{ | |
type: "checkbox-multiple", | |
label: "Select one or more disclaimers", | |
placeholder: "", | |
model: "deal", | |
data: "disclaimers", | |
options: [ | |
"only one per customers", | |
"cannot be combined with other offers" | |
], | |
allow_more: true | |
}, | |
], | |
buttons: [], | |
nextPage: "organization-deal-description", | |
showNext: true, | |
display: "one" | |
}, | |
{ | |
page: 'organization-deal-description', | |
title: 'Deal preview', | |
subtitle: 'Lorem ipsum', | |
fields: [ | |
{ | |
type: "text", | |
label: "First and Last Name", | |
placeholder: "", | |
model: "user", | |
data: "name" | |
}, | |
], | |
buttons: [ | |
{ | |
class: "button", | |
label: "Looks Good - Next", | |
placeholder: "", | |
model: "", | |
data: "", | |
action: "next" | |
}, | |
{ | |
class: "button", | |
label: "Back to edit", | |
placeholder: "", | |
model: "", | |
data: "", | |
action: "back" | |
}, | |
], | |
nextPage: "organization-fund", | |
showNext: false, | |
display: "one" | |
}, | |
{ | |
page: 'organization-deal-method', | |
title: 'Choose deal workflow options', | |
subtitle: 'Scan a QR code and/or One-click for customers', | |
fields: [], | |
buttons: [ | |
{ | |
class: "button", | |
label: "One-click", | |
placeholder: "", | |
model: "business", | |
data: "deal_method", | |
action: "set_click" | |
}, | |
{ | |
class: "button", | |
label: "Scan QR", | |
placeholder: "", | |
model: "", | |
data: "", | |
action: "set_scan" | |
}, | |
{ | |
class: "button", | |
label: "Both", | |
placeholder: "", | |
model: "", | |
data: "", | |
action: "set_both" | |
}, | |
], | |
nextPage: "organization-fund", | |
showNext: false, | |
display: "one" | |
}, | |
{ | |
page: 'organization-fund', | |
title: 'Prefund your deal', | |
subtitle: 'Lorem ipsum', | |
fields: [ | |
{ | |
type: "select", | |
label: "Choose a prefund amount", | |
options: [ | |
{ | |
value: 2500, | |
text: "$25" | |
}, | |
{ | |
value: 5000, | |
text: "$50" | |
}, | |
{ | |
value: 10000, | |
text: "$100" | |
}, | |
{ | |
value: 100000, | |
text: "$1,000" | |
}, | |
], | |
default: 2500, | |
model: "business", | |
data: "refill_amount" | |
}, | |
{ | |
type: "select", | |
label: "Refill when balance is below", | |
options: [ | |
{ | |
value: 1000, | |
text: "$10" | |
}, | |
{ | |
value: 3000, | |
text: "$30" | |
}, | |
{ | |
value: 10000, | |
text: "$100" | |
}, | |
{ | |
value: false, | |
text: "Do not auto refill" | |
}, | |
], | |
default: 1000, | |
model: "business", | |
data: "refill_trigger" | |
}, | |
], | |
buttons: [], | |
nextPage: "organization-deal-payment-method", | |
showNext: false, | |
display: "one" | |
}, | |
{ | |
page: 'organization-deal-payment-method', | |
title: 'Payment Details', | |
subtitle: 'Lorem ipsum', | |
fields: [ | |
{ | |
type: "creditcard", | |
}, | |
], | |
nextPage: "organization-deal-pay", | |
showNext: false, | |
display: "one" | |
}, | |
{ | |
page: 'organization-deal-pay', | |
title: 'Purchase credit and activate deal', | |
subtitle: 'Lorem ipsum', | |
fields: [], | |
buttons: [ | |
{ | |
class: "button", | |
label: "Purchase Credits", | |
placeholder: "", | |
model: "", | |
data: "", | |
action: "purchase" | |
}, | |
], | |
nextPage: "", | |
showNext: false, | |
display: "one" | |
}, | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment