lint failures
This commit is contained in:
parent
86504a44d6
commit
f746a0416c
|
@ -16,17 +16,20 @@ const _builderProxy = proxy("/_builder", {
|
|||
pathRewrite: { "^/_builder": "" },
|
||||
})
|
||||
|
||||
const apiProxy = proxy(["/_builder/assets/**", "/_builder/api/**", "/_builder/**/componentlibrary"], {
|
||||
target,
|
||||
logLevel: "debug",
|
||||
changeOrigin: true,
|
||||
cookieDomainRewrite: true,
|
||||
onProxyReq(proxyReq) {
|
||||
if (proxyReq.getHeader("origin")) {
|
||||
proxyReq.setHeader("origin", target)
|
||||
}
|
||||
},
|
||||
})
|
||||
const apiProxy = proxy(
|
||||
["/_builder/assets/**", "/_builder/api/**", "/_builder/**/componentlibrary"],
|
||||
{
|
||||
target,
|
||||
logLevel: "debug",
|
||||
changeOrigin: true,
|
||||
cookieDomainRewrite: true,
|
||||
onProxyReq(proxyReq) {
|
||||
if (proxyReq.getHeader("origin")) {
|
||||
proxyReq.setHeader("origin", target)
|
||||
}
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
const production = !process.env.ROLLUP_WATCH
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</script>
|
||||
|
||||
<div class="select-container">
|
||||
<select on:change bind:value={value}>
|
||||
<select on:change bind:value>
|
||||
<slot />
|
||||
</select>
|
||||
<span class="arrow">
|
||||
|
|
|
@ -38,10 +38,10 @@ const tableProps = (index, indexSchema) => ({
|
|||
"##eventHandlerType": "List Records",
|
||||
parameters: {
|
||||
indexKey: "/all_contacts",
|
||||
statePath: "all_contacts"
|
||||
}
|
||||
}
|
||||
]
|
||||
statePath: "all_contacts",
|
||||
},
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
const columnHeaders = indexSchema =>
|
||||
|
|
|
@ -309,26 +309,20 @@ module.exports = (config, app) => {
|
|||
})
|
||||
.post("/:appname/api/listRecords/*", async ctx => {
|
||||
const indexkey = getRecordKey(ctx.params.appname, ctx.request.path)
|
||||
ctx.body = await ctx.instance.indexApi.listItems(
|
||||
indexkey,
|
||||
{
|
||||
rangeStartParams: ctx.request.body.rangeStartParams,
|
||||
rangeEndParams: ctx.request.body.rangeEndParams,
|
||||
searchPhrase: ctx.request.body.searchPhrase,
|
||||
}
|
||||
)
|
||||
ctx.body = await ctx.instance.indexApi.listItems(indexkey, {
|
||||
rangeStartParams: ctx.request.body.rangeStartParams,
|
||||
rangeEndParams: ctx.request.body.rangeEndParams,
|
||||
searchPhrase: ctx.request.body.searchPhrase,
|
||||
})
|
||||
ctx.response.status = StatusCodes.OK
|
||||
})
|
||||
.post("/:appname/api/aggregates/*", async ctx => {
|
||||
const indexkey = getRecordKey(ctx.params.appname, ctx.request.path)
|
||||
ctx.body = await ctx.instance.indexApi.aggregates(
|
||||
indexkey,
|
||||
{
|
||||
rangeStartParams: ctx.request.body.rangeStartParams,
|
||||
rangeEndParams: ctx.request.body.rangeEndParams,
|
||||
searchPhrase: ctx.request.body.searchPhrase,
|
||||
}
|
||||
)
|
||||
ctx.body = await ctx.instance.indexApi.aggregates(indexkey, {
|
||||
rangeStartParams: ctx.request.body.rangeStartParams,
|
||||
rangeEndParams: ctx.request.body.rangeEndParams,
|
||||
searchPhrase: ctx.request.body.searchPhrase,
|
||||
})
|
||||
ctx.response.status = StatusCodes.OK
|
||||
})
|
||||
.post("/:appname/api/files/*", async ctx => {
|
||||
|
|
|
@ -30,7 +30,10 @@ module.exports.appsFolder = config => appPackageFolder(config, "")
|
|||
|
||||
module.exports.masterAppPackage = context => {
|
||||
const { config } = context
|
||||
const standardPackage = createAppPackage(context, `${__dirname}/../appPackages/_master`)
|
||||
const standardPackage = createAppPackage(
|
||||
context,
|
||||
`${__dirname}/../appPackages/_master`
|
||||
)
|
||||
|
||||
const customizeMaster =
|
||||
config && config.customizeMaster ? config.customizeMaster : a => a
|
||||
|
|
Loading…
Reference in New Issue