generated from edenia/full-stack-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(wepapp): add content from database for home route * feat(hapi): return only ggoods with a small image * feat(webapp): add block explorer env variable * feat(hapi): add endpoint to return one ggood on sale * refactor(hapi): return trxid for put on sale, create template and confirm sale actions * feat(hasura): expose trxid for put on sale, create template and confirm sale actions * feat(webapp): add empty message for my collection route * refactor(webapp): organize queries for organizations * feat(webapp): add util to get last characters from trxid * feat(webapp): add link to trxid after a success donation * feat(webapp): show trxid after publish a ggood * fix(webapp): add missing link for "Browse goods" in home route * feat(webapp): show trxid after create a template * feat(webapp): implement custom upload template * feat(webapp): implement avatar maker upload * feat(webapp): reload ggoods after close modal * fix(webapp): wrong markup after resolve conflicts * fix(webapp): your collection carousel
- Loading branch information
Showing
44 changed files
with
1,204 additions
and
739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const Joi = require('joi') | ||
|
||
const { nftService } = require('../services') | ||
|
||
module.exports = { | ||
method: 'POST', | ||
path: '/ggoods-on-sale', | ||
handler: ({ payload: { input } }) => nftService.ggoodsOnSale(input), | ||
options: { | ||
validate: { | ||
payload: Joi.object({ | ||
input: Joi.object({ | ||
seller: Joi.string().allow('').optional(), | ||
limit: Joi.number().optional().default(100) | ||
}).optional() | ||
}).options({ stripUnknown: true }) | ||
}, | ||
auth: false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
const confirmSaleWithPaypalRoute = require('./confirm-sale-with-paypal.route') | ||
const createTemplateRoute = require('./create-template.route') | ||
const ggoodOnSaleRoute = require('./ggood-on-sale.route') | ||
const ggoodsOnSaleRoute = require('./ggoods-on-sale.route') | ||
const healthzRoute = require('./healthz.route') | ||
const myGGoodsRoute = require('./my-ggoods.route') | ||
const putOnSaleRoute = require('./put-on-sale.route') | ||
const createAccountRoute = require('./create-account/create-account.route') | ||
const createAccountOrganization = require('./create-account-organization/create-account-organization.route') | ||
const preRegisterOrganization = require('./pre-register-organization/pre-register-organization.route') | ||
const verifyEmailRouteRoute = require('./verify-email/verify-email.route') | ||
const loginRoute = require('./login/login.route') | ||
const createTemplateRoute = require('./create-template.route') | ||
const healthzRoute = require('./healthz.route') | ||
const myGGoodsRoute = require('./my-ggoods.route') | ||
const nftOnSaleRoute = require('./nft-on-sale.route') | ||
const confirmSaleWithPaypalRoute = require('./confirm-sale-with-paypal.route') | ||
const putOnSaleRoute = require('./put-on-sale.route') | ||
const credentialsRecovery = require('./credentials-recovery/credentials-recovery.route') | ||
const changePassword = require('./change-password/change-password.route') | ||
|
||
module.exports = [ | ||
confirmSaleWithPaypalRoute, | ||
createTemplateRoute, | ||
ggoodOnSaleRoute, | ||
ggoodsOnSaleRoute, | ||
healthzRoute, | ||
myGGoodsRoute, | ||
putOnSaleRoute, | ||
createAccountRoute, | ||
createAccountOrganization, | ||
preRegisterOrganization, | ||
verifyEmailRouteRoute, | ||
loginRoute, | ||
createTemplateRoute, | ||
healthzRoute, | ||
myGGoodsRoute, | ||
nftOnSaleRoute, | ||
putOnSaleRoute, | ||
confirmSaleWithPaypalRoute, | ||
credentialsRecovery, | ||
changePassword | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
const Joi = require('joi') | ||
|
||
const { nftService } = require('../services') | ||
|
||
module.exports = { | ||
method: 'POST', | ||
path: '/my-ggoods', | ||
handler: ({ auth: { credentials } }) => nftService.myGGoods(credentials) | ||
handler: ({ auth: { credentials }, payload: { input } }) => | ||
nftService.myGGoods(credentials, input), | ||
options: { | ||
validate: { | ||
payload: Joi.object({ | ||
input: Joi.object({ | ||
limit: Joi.number().optional().default(100) | ||
}).optional() | ||
}).options({ stripUnknown: true }) | ||
} | ||
} | ||
} |
Oops, something went wrong.