Skip to content

Commit

Permalink
chore: update server rule schema (#115)
Browse files Browse the repository at this point in the history
* chore: update server rule schema

* chore: fix env

* chore: bump versions
  • Loading branch information
thezzisu authored Dec 23, 2024
1 parent b10b535 commit 01b8ff0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .yarn/versions/0c101d43.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
releases:
"@aoi-js/frontend": patch
"@aoi-js/server": patch
2 changes: 1 addition & 1 deletion apps/frontend/src/utils/vaptcha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useVaptcha = ({ onPass }: { onPass?: (token: string) => void } = {}

onMounted(() => {
const config = {
vid: import.meta.env.VAPTCHA_VID,
vid: import.meta.env.VITE_VAPTCHA_VID,
mode: 'click',
scene: 0,
container: document.getElementById('vaptcha'),
Expand Down
10 changes: 9 additions & 1 deletion apps/server/src/schemas/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@ export class ServerTypeBuilder extends JavaScriptTypeBuilder {
$in: this.Optional(this.Array(this.Any())),
$nin: this.Optional(this.Array(this.Any())),
$startsWith: this.Optional(this.String()),
$endsWith: this.Optional(this.String())
$notStartsWith: this.Optional(this.String()),
$endsWith: this.Optional(this.String()),
$notEndsWith: this.Optional(this.String()),
$includes: this.Optional(this.Any()),
$notIncludes: this.Optional(this.Any()),
$includesEach: this.Optional(this.Array(this.Any())),
$notIncludesEach: this.Optional(this.Array(this.Any())),
$includesSome: this.Optional(this.Array(this.Any())),
$notIncludesSome: this.Optional(this.Array(this.Any()))
})
}

Expand Down

0 comments on commit 01b8ff0

Please sign in to comment.