nextjs-cms 0.8.7 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +290 -290
- package/dist/api/index.d.ts +3 -3
- package/dist/api/lib/serverActions.d.ts +3 -3
- package/dist/api/root.d.ts +6 -6
- package/dist/api/routers/fields.js +4 -4
- package/dist/api/routers/navigation.d.ts +3 -3
- package/dist/cli/lib/db-config.js +10 -10
- package/dist/core/db/table-checker/MysqlTable.js +8 -8
- package/dist/core/factories/section-factory-with-esbuild.js +9 -9
- package/dist/core/factories/section-factory-with-jiti.js +9 -9
- package/dist/core/fields/select.d.ts +1 -1
- package/dist/core/sections/category.d.ts +4 -4
- package/dist/core/sections/category.d.ts.map +1 -1
- package/dist/core/sections/category.js +9 -8
- package/dist/core/sections/hasItems.d.ts +58 -58
- package/dist/core/sections/section.d.ts +3 -3
- package/dist/core/sections/simple.d.ts +4 -4
- package/dist/plugins/loader.d.ts +2 -1
- package/dist/plugins/loader.d.ts.map +1 -1
- package/dist/plugins/loader.js +1 -3
- package/dist/translations/client.d.ts +4 -4
- package/dist/translations/dictionaries/ar.d.ts +433 -0
- package/dist/translations/dictionaries/ar.d.ts.map +1 -0
- package/dist/translations/dictionaries/ar.js +444 -0
- package/dist/translations/dictionaries/en.d.ts +433 -0
- package/dist/translations/dictionaries/en.d.ts.map +1 -0
- package/dist/translations/dictionaries/en.js +444 -0
- package/dist/translations/server.d.ts +4 -4
- package/dist/validators/number.js +5 -5
- package/package.json +3 -3
|
@@ -38,10 +38,10 @@ export const fieldsRouter = router({
|
|
|
38
38
|
}
|
|
39
39
|
const { table, selectIdentifier } = field.destinationDb;
|
|
40
40
|
const searchPattern = `%${input.query}%`;
|
|
41
|
-
const [rows] = await db.execute(sql `SELECT DISTINCT \`${sql.raw(selectIdentifier)}\` as value
|
|
42
|
-
FROM \`${sql.raw(table)}\`
|
|
43
|
-
WHERE \`${sql.raw(selectIdentifier)}\` LIKE ${searchPattern}
|
|
44
|
-
ORDER BY \`${sql.raw(selectIdentifier)}\` ASC
|
|
41
|
+
const [rows] = await db.execute(sql `SELECT DISTINCT \`${sql.raw(selectIdentifier)}\` as value
|
|
42
|
+
FROM \`${sql.raw(table)}\`
|
|
43
|
+
WHERE \`${sql.raw(selectIdentifier)}\` LIKE ${searchPattern}
|
|
44
|
+
ORDER BY \`${sql.raw(selectIdentifier)}\` ASC
|
|
45
45
|
LIMIT 20`);
|
|
46
46
|
return rows.map((row) => row.value);
|
|
47
47
|
}),
|