mirror of
https://github.com/Sevichecc/m-oauth.git
synced 2025-04-30 06:59:29 +08:00
45 lines
808 B
TypeScript
45 lines
808 B
TypeScript
import { clsx, type ClassValue } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
import { ReadScope, WriteScope, AdminScope } from "@/lib/types";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export const readScopes: ReadScope[] = [
|
|
"account",
|
|
"blocks",
|
|
"bookmarks",
|
|
"favourites",
|
|
"filters",
|
|
"lists",
|
|
"mutes",
|
|
"notifications",
|
|
"search",
|
|
"statuses",
|
|
];
|
|
|
|
export const writeScopes: WriteScope[] = [
|
|
"account",
|
|
"blocks",
|
|
"bookmarks",
|
|
"favourites",
|
|
"filters",
|
|
"lists",
|
|
"mutes",
|
|
"notifications",
|
|
"statuses",
|
|
"conversations",
|
|
"media",
|
|
"reports",
|
|
];
|
|
|
|
export const adminScopes: AdminScope[] = [
|
|
"account",
|
|
"reports",
|
|
"domain_allows",
|
|
"domain_blocks",
|
|
"ip_blocks",
|
|
"email_domain_blocks",
|
|
"canonical_email_blocks",
|
|
];
|