lint failures

This commit is contained in:
Martin McKeaveney 2020-02-27 16:45:24 +00:00
parent 86504a44d6
commit f746a0416c
5 changed files with 33 additions and 33 deletions

View File

@ -16,17 +16,20 @@ const _builderProxy = proxy("/_builder", {
pathRewrite: { "^/_builder": "" }, pathRewrite: { "^/_builder": "" },
}) })
const apiProxy = proxy(["/_builder/assets/**", "/_builder/api/**", "/_builder/**/componentlibrary"], { const apiProxy = proxy(
target, ["/_builder/assets/**", "/_builder/api/**", "/_builder/**/componentlibrary"],
logLevel: "debug", {
changeOrigin: true, target,
cookieDomainRewrite: true, logLevel: "debug",
onProxyReq(proxyReq) { changeOrigin: true,
if (proxyReq.getHeader("origin")) { cookieDomainRewrite: true,
proxyReq.setHeader("origin", target) onProxyReq(proxyReq) {
} if (proxyReq.getHeader("origin")) {
}, proxyReq.setHeader("origin", target)
}) }
},
}
)
const production = !process.env.ROLLUP_WATCH const production = !process.env.ROLLUP_WATCH

View File

@ -4,7 +4,7 @@
</script> </script>
<div class="select-container"> <div class="select-container">
<select on:change bind:value={value}> <select on:change bind:value>
<slot /> <slot />
</select> </select>
<span class="arrow"> <span class="arrow">

View File

@ -38,10 +38,10 @@ const tableProps = (index, indexSchema) => ({
"##eventHandlerType": "List Records", "##eventHandlerType": "List Records",
parameters: { parameters: {
indexKey: "/all_contacts", indexKey: "/all_contacts",
statePath: "all_contacts" statePath: "all_contacts",
} },
} },
] ],
}) })
const columnHeaders = indexSchema => const columnHeaders = indexSchema =>

View File

@ -309,26 +309,20 @@ module.exports = (config, app) => {
}) })
.post("/:appname/api/listRecords/*", async ctx => { .post("/:appname/api/listRecords/*", async ctx => {
const indexkey = getRecordKey(ctx.params.appname, ctx.request.path) const indexkey = getRecordKey(ctx.params.appname, ctx.request.path)
ctx.body = await ctx.instance.indexApi.listItems( ctx.body = await ctx.instance.indexApi.listItems(indexkey, {
indexkey, rangeStartParams: ctx.request.body.rangeStartParams,
{ rangeEndParams: ctx.request.body.rangeEndParams,
rangeStartParams: ctx.request.body.rangeStartParams, searchPhrase: ctx.request.body.searchPhrase,
rangeEndParams: ctx.request.body.rangeEndParams, })
searchPhrase: ctx.request.body.searchPhrase,
}
)
ctx.response.status = StatusCodes.OK ctx.response.status = StatusCodes.OK
}) })
.post("/:appname/api/aggregates/*", async ctx => { .post("/:appname/api/aggregates/*", async ctx => {
const indexkey = getRecordKey(ctx.params.appname, ctx.request.path) const indexkey = getRecordKey(ctx.params.appname, ctx.request.path)
ctx.body = await ctx.instance.indexApi.aggregates( ctx.body = await ctx.instance.indexApi.aggregates(indexkey, {
indexkey, rangeStartParams: ctx.request.body.rangeStartParams,
{ rangeEndParams: ctx.request.body.rangeEndParams,
rangeStartParams: ctx.request.body.rangeStartParams, searchPhrase: ctx.request.body.searchPhrase,
rangeEndParams: ctx.request.body.rangeEndParams, })
searchPhrase: ctx.request.body.searchPhrase,
}
)
ctx.response.status = StatusCodes.OK ctx.response.status = StatusCodes.OK
}) })
.post("/:appname/api/files/*", async ctx => { .post("/:appname/api/files/*", async ctx => {

View File

@ -30,7 +30,10 @@ module.exports.appsFolder = config => appPackageFolder(config, "")
module.exports.masterAppPackage = context => { module.exports.masterAppPackage = context => {
const { config } = context const { config } = context
const standardPackage = createAppPackage(context, `${__dirname}/../appPackages/_master`) const standardPackage = createAppPackage(
context,
`${__dirname}/../appPackages/_master`
)
const customizeMaster = const customizeMaster =
config && config.customizeMaster ? config.customizeMaster : a => a config && config.customizeMaster ? config.customizeMaster : a => a