This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Phrase Translations | |
on: | |
push: | |
branches: | |
- 'phrase-translations' | |
jobs: | |
create-pr: | |
if: github.event_name == 'push' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { HookConfig } from '@directus/extensions'; | |
import { FieldFilter, FieldFilterOperator, LogicalFilterOR } from '@directus/types'; | |
import { validate as isUuid } from 'uuid'; | |
type COLLECTION = string; | |
type FIELD = string; | |
type ISearchOptions = Record< | |
COLLECTION, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.scroll-snap-x-container { | |
display:flex; | |
overflow-x: scroll; | |
-ms-overflow-style: none; | |
scrollbar-width: none; | |
-ms-scroll-snap-type: x mandatory; | |
scroll-snap-type: x mandatory | |
} | |
.scroll-snap-x-child { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// eslint-disable-next-line node/no-extraneous-import | |
import Keyv from 'keyv'; | |
/** | |
* Debounces the execution of a function that takes an ID parameter, ensuring that it only runs once per second | |
* for each ID across all containers/threads. Uses a combination of shared cache and a locking mechanism to achieve this. | |
* | |
* @param id - The ID parameter for the function being debounced | |
* @param cache - The Redis cache instance used for locking and storing timestamps | |
* @param fn - The function being debounced, which takes the ID parameter and returns a Promise |