mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
refactor(events): Events are now tied to a common enum typings (#167)
* chore(scripts/twitter): Refactored twitter to use event enums * chore(scripts/marketplace): Refactored marketplace to use event enums * chore(scripts/messages): Refactored messages to use event enums * chore(scripts/contacts): Refactored contacts to use event enums * chore(scripts/calls): Refactored calls to use event enums * chore(scripts/notes): Refactored notes to use event enums * chore(scripts/photos): Refactored photos to use event enums * chore(scripts/bank): Refactored bank to use event enums * chore(scripts/phone): Refactored phone to use event enums * chore(events): Removed old events object * refactor(phone/nui-events): Attached NUI events to respective enum * tweak(event-enums): Added npwd prefix to all events * tweak(phone/serve): Added craco to override CRA without eject Also bumped react-scripts to 4.0.1, with seemingly no issues * fix(typings/twitter): Fixed method enums for twitter
This commit is contained in:
62 files changed
+4734
-3470
No files matched your search
@@ -46,3 +46,39 @@ export interface Profile {
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export enum TwitterEvents {
|
||||
FETCH_TWEETS = 'npwd:fetchTweets',
|
||||
FETCH_TWEETS_SUCCESS = 'fetchTweets',
|
||||
FETCH_TWEETS_FAILURE = 'fetchTweetsFailed',
|
||||
FETCH_TWEETS_FILTERED = 'npwd:fetchTweetsFiltered',
|
||||
FETCH_TWEETS_FILTERED_SUCCESS = 'fetchTweetsFiltered',
|
||||
FETCH_TWEETS_FILTERED_FAILURE = 'fetchTweetsFilteredFailed',
|
||||
CREATE_PROFILE = 'npwd:createTwitterProfile',
|
||||
CREATE_PROFILE_RESULT = 'npwd:createProfileResult',
|
||||
GET_OR_CREATE_PROFILE = 'npwd:getOrCreateTwitterProfile',
|
||||
GET_OR_CREATE_PROFILE_NULL = 'getOrCreateTwitterProfileNull',
|
||||
GET_OR_CREATE_PROFILE_SUCCESS = 'getOrCreateTwitterProfile',
|
||||
GET_OR_CREATE_PROFILE_FAILURE = 'getOrCreateTwitterProfileFailed',
|
||||
UPDATE_PROFILE = 'npwd:updateTwitterProfile',
|
||||
UPDATE_PROFILE_LOADING = 'updateProfileLoading',
|
||||
UPDATE_PROFILE_RESULT = 'updateProfileResult',
|
||||
CREATE_TWEET = 'npwd:createTweet',
|
||||
CREATE_TWEET_LOADING = 'createTweetLoading',
|
||||
CREATE_TWEET_RESULT = 'createTweetResult',
|
||||
CREATE_TWEET_BROADCAST = 'createTweetBroadcast',
|
||||
CREATE_TWEET_FAILURE = 'createTweetResultFailed',
|
||||
DELETE_TWEET = 'npwd:deleteTweet',
|
||||
DELETE_TWEET_SUCCESS = 'deleteTweetSuccess',
|
||||
DELETE_TWEET_FAILURE = 'deleteTweetFailed',
|
||||
TOGGLE_LIKE = 'npwd:toggleLike',
|
||||
TOGGLE_LIKE_SUCCESS = 'toggleLikeSuccess',
|
||||
TOGGLE_LIKE_FAILURE = 'toggleLikeFailed',
|
||||
RETWEET = 'npwd:retweet',
|
||||
RETWEET_SUCCESS = 'npwd:retweetSuccess',
|
||||
RETWEET_EXISTS = 'npwd:retweetExists',
|
||||
RETWEET_FAILURE = 'npwd:retweetFailed',
|
||||
REPORT = 'npwd:reportTweet',
|
||||
REPORT_SUCCESS = 'reportTweetSuccess',
|
||||
REPORT_FAILURE = 'reportTweetFailed',
|
||||
}
|
||||
Reference in new issue
Block a user