1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

lint failures

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

View file

@ -16,7 +16,9 @@ const _builderProxy = proxy("/_builder", {
pathRewrite: { "^/_builder": "" }, pathRewrite: { "^/_builder": "" },
}) })
const apiProxy = proxy(["/_builder/assets/**", "/_builder/api/**", "/_builder/**/componentlibrary"], { const apiProxy = proxy(
["/_builder/assets/**", "/_builder/api/**", "/_builder/**/componentlibrary"],
{
target, target,
logLevel: "debug", logLevel: "debug",
changeOrigin: true, changeOrigin: true,
@ -26,7 +28,8 @@ const apiProxy = proxy(["/_builder/assets/**", "/_builder/api/**", "/_builder/**
proxyReq.setHeader("origin", target) 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, rangeStartParams: ctx.request.body.rangeStartParams,
rangeEndParams: ctx.request.body.rangeEndParams, rangeEndParams: ctx.request.body.rangeEndParams,
searchPhrase: ctx.request.body.searchPhrase, 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, rangeStartParams: ctx.request.body.rangeStartParams,
rangeEndParams: ctx.request.body.rangeEndParams, rangeEndParams: ctx.request.body.rangeEndParams,
searchPhrase: ctx.request.body.searchPhrase, 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