mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-07 23:07:26 +02:00
[#197] added now datetime filter constant
This commit is contained in:
1 parent
b7d32c23aa
commit
456ced75ce
13 files changed
+45
-24
No files matched your search
@@ -230,7 +230,7 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
let options = [{ label: "false" }, { label: "true" }];
|
||||
let options = [{ label: "false" }, { label: "true" }, { label: "@now" }];
|
||||
|
||||
if (!disableIndirectCollectionsKeys) {
|
||||
options.push({ label: "@collection.*", apply: "@collection." });
|
||||
@@ -263,7 +263,7 @@
|
||||
|
||||
// Returns all field keys as keyword patterns to highlight.
|
||||
function keywords() {
|
||||
const result = [];
|
||||
const result = [{ regex: CommonHelper.escapeRegExp("@now"), token: "keyword" }];
|
||||
const keys = getAllKeys(!disableRequestKeys, !disableIndirectCollectionsKeys);
|
||||
|
||||
for (const key of keys) {
|
||||
|
||||
Reference in new issue
Block a user