mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
move interfaces to commmon directory
This commit is contained in:
1 parent
6a724fbf09
commit
5c7d545bf5
9 files changed
+29
-84
No files matched your search
@@ -1,10 +0,0 @@
|
||||
export interface Tweet {
|
||||
id: number;
|
||||
profile_name?: string;
|
||||
avatar_url?: string;
|
||||
message: string;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
images?: string;
|
||||
likes?: number;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
interface TwitterConfig {
|
||||
showNotifications: boolean;
|
||||
generateProfileNameFromUsers: boolean;
|
||||
allowEdtiableProfileName: boolean;
|
||||
characterLimit: number;
|
||||
enableAvatars: boolean;
|
||||
enableEmojis: boolean;
|
||||
enableImages: boolean;
|
||||
maxImages: number;
|
||||
}
|
||||
|
||||
interface NotificationConfig {
|
||||
horizontal: "left" | "center" | "right";
|
||||
vertical: "bottom" | "top";
|
||||
}
|
||||
|
||||
export interface ServerConfig {
|
||||
Locale: string;
|
||||
KeyTogglePhone: number;
|
||||
KeyTakeCall: number;
|
||||
PhoneAsItem: boolean;
|
||||
SwimDestroy: boolean;
|
||||
RunRate: number;
|
||||
DestoryChance: number;
|
||||
DestroyPhoneReCheck: number;
|
||||
twitter: TwitterConfig;
|
||||
notificationPosition: NotificationConfig;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
export interface Tweet {
|
||||
id: number;
|
||||
profile_name?: string;
|
||||
profile_id: number;
|
||||
avatar_url?: string;
|
||||
message: string;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
images?: string;
|
||||
likes?: number;
|
||||
}
|
||||
|
||||
export interface Profile {
|
||||
id: number;
|
||||
profile_name: string;
|
||||
identifier: string;
|
||||
avatar_url?: string;
|
||||
bio?: string;
|
||||
location?: string;
|
||||
job?: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
interface TwitterConfig {
|
||||
generateProfileNameFromUsers: boolean;
|
||||
characterLimit: number;
|
||||
allowEdtiableProfileName: boolean;
|
||||
enableAvatars: boolean;
|
||||
enableEmojis: boolean;
|
||||
enableImages: boolean;
|
||||
maxImages: number;
|
||||
}
|
||||
|
||||
export interface ServerConfig {
|
||||
Locale: string;
|
||||
KeyTogglePhone: number;
|
||||
KeyTakeCall: number;
|
||||
PhoneAsItem: boolean;
|
||||
SwimDestroy: boolean;
|
||||
RunRate: number;
|
||||
DestoryChance: number;
|
||||
DestroyPhoneReCheck: number;
|
||||
twitter: TwitterConfig;
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
interface TwitterConfig {
|
||||
showNotifications: boolean;
|
||||
generateProfileNameFromUsers: boolean;
|
||||
characterLimit: number;
|
||||
allowEdtiableProfileName: boolean;
|
||||
enableAvatars: boolean;
|
||||
enableEmojis: boolean;
|
||||
enableImages: boolean;
|
||||
maxImages: number;
|
||||
}
|
||||
|
||||
interface NotificationConfig {
|
||||
horizontal: "left" | "center" | "right";
|
||||
vertical: "bottom" | "top";
|
||||
}
|
||||
|
||||
export interface ServerConfig {
|
||||
Locale: string;
|
||||
KeyTogglePhone: number;
|
||||
KeyTakeCall: number;
|
||||
PhoneAsItem: boolean;
|
||||
SwimDestroy: boolean;
|
||||
RunRate: number;
|
||||
DestoryChance: number;
|
||||
DestroyPhoneReCheck: number;
|
||||
twitter: TwitterConfig;
|
||||
notificationPosition: NotificationConfig;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useRecoilValue } from "recoil";
|
||||
import { phoneState } from "./state";
|
||||
import { ServerConfig } from "../../interfaces/serverConfig";
|
||||
import { ServerConfig } from "../../../common/interfaces/config";
|
||||
|
||||
interface IUsePhone {
|
||||
visibility: boolean;
|
||||
|
||||
Reference in new issue
Block a user