Merge branch 'master' into feat/sellout-app

This commit is contained in:
Christopher Gjelten authored and GitHub committed 2020-10-18 22:08:56 +02:00
commit 771ad147d7
46 files changed
+4495 -587

No files matched your search

+2 -2
View File
@@ -1,3 +1,3 @@
export default {
TWITTER: 'TWITTER',
}
TWITTER: "TWITTER",
};
+27 -20
View File
@@ -1,23 +1,30 @@
export default {
Locale: 'en',
KeyTogglePhone: 288,
KeyTakeCall: 38,
PhoneAsItem: false,
Locale: "en",
KeyTogglePhone: 288,
KeyTakeCall: 38,
PhoneAsItem: false,
// destroy phone
SwimDestroy: false,
RunRate: 10,
DestoryChance: 100,
DestroyPhoneReCheck: 3,
// destroy phone
SwimDestroy: false,
RunRate: 10,
DestoryChance: 100,
DestroyPhoneReCheck: 3,
// twitter app
twitter: {
generateProfileNameFromUsers: true,
characterLimit: 240,
allowEdtiableProfileName: true,
enableAvatars: true,
enableEmojis: true,
enableImages: true,
maxImages: 3,
}
};
// notification settings
notificationPosition: {
horizontal: 'right', // left, center, right
vertical: 'bottom', // bottom, top
},
// twitter app
twitter: {
showNotifications: true,
generateProfileNameFromUsers: true,
characterLimit: 240,
allowEdtiableProfileName: true,
enableAvatars: true,
enableEmojis: true,
enableImages: true,
maxImages: 3,
},
};
+22 -21
View File
@@ -1,24 +1,25 @@
export default {
// Twitter
TWITTER_FETCH_TWEETS: 'phone:fetchTweets',
TWITTER_FETCH_TWEETS_SUCCESS: 'fetchTweets',
TWITTER_FETCH_TWEETS_FAILURE: 'fetchTweetsFailed',
TWITTER_FETCH_TWEETS_FILTERED: 'phone:fetchTweetsFiltered',
TWITTER_FETCH_TWEETS_FILTERED_SUCCESS: 'fetchTweetsFiltered',
TWITTER_FETCH_TWEETS_FILTERED_FAILURE: 'fetchTweetsFilteredFailed',
TWITTER_GET_OR_CREATE_PROFILE: 'phone:getOrCreateTwitterProfile',
TWITTER_GET_OR_CREATE_PROFILE_SUCCESS: 'getOrCreateTwitterProfile',
TWITTER_GET_OR_CREATE_PROFILE_FAILURE: 'getOrCreateTwitterProfileFailed',
TWITTER_UPDATE_PROFILE: 'phone:updateTwitterProfile',
TWITTER_UPDATE_PROFILE_LOADING: 'updateProfileLoading',
TWITTER_UPDATE_PROFILE_RESULT: 'updateProfileResult',
TWITTER_CREATE_TWEET: 'phone:createTweet',
TWITTER_CREATE_TWEET_LOADING: 'createTweetLoading',
TWITTER_CREATE_TWEET_RESULT: 'createTweetResult',
TWITTER_CREATE_TWEET_FAILURE: 'createTweetResultFailed',
TWITTER_TOGGLE_LIKE: 'phone:toggleLike',
TWITTER_TOGGLE_LIKE_SUCCESS: 'toggleLikeSuccess',
TWITTER_TOGGLE_LIKE_FAILURE: 'toggleLikeFailed',
// Twitter
TWITTER_FETCH_TWEETS: "phone:fetchTweets",
TWITTER_FETCH_TWEETS_SUCCESS: "fetchTweets",
TWITTER_FETCH_TWEETS_FAILURE: "fetchTweetsFailed",
TWITTER_FETCH_TWEETS_FILTERED: "phone:fetchTweetsFiltered",
TWITTER_FETCH_TWEETS_FILTERED_SUCCESS: "fetchTweetsFiltered",
TWITTER_FETCH_TWEETS_FILTERED_FAILURE: "fetchTweetsFilteredFailed",
TWITTER_GET_OR_CREATE_PROFILE: "phone:getOrCreateTwitterProfile",
TWITTER_GET_OR_CREATE_PROFILE_SUCCESS: "getOrCreateTwitterProfile",
TWITTER_GET_OR_CREATE_PROFILE_FAILURE: "getOrCreateTwitterProfileFailed",
TWITTER_UPDATE_PROFILE: "phone:updateTwitterProfile",
TWITTER_UPDATE_PROFILE_LOADING: "updateProfileLoading",
TWITTER_UPDATE_PROFILE_RESULT: "updateProfileResult",
TWITTER_CREATE_TWEET: "phone:createTweet",
TWITTER_CREATE_TWEET_LOADING: "createTweetLoading",
TWITTER_CREATE_TWEET_RESULT: "createTweetResult",
TWITTER_CREATE_TWEET_BROADCAST: "createTweetBroadcast",
TWITTER_CREATE_TWEET_FAILURE: "createTweetResultFailed",
TWITTER_TOGGLE_LIKE: "phone:toggleLike",
TWITTER_TOGGLE_LIKE_SUCCESS: "toggleLikeSuccess",
TWITTER_TOGGLE_LIKE_FAILURE: "toggleLikeFailed",
// Contacts
CONTACTS_SEND_CONTACTS: 'phone:sendContacts',
@@ -31,4 +32,4 @@ export default {
SELLOUT_ADD_LISTING: 'phone:addListing',
SELLOUT_FETCH_LISTING: 'phone:fetchAllListing',
SELLOUT_SEND_LISTING: 'phone:sendAllListings'
}
}
+1 -1
View File
@@ -1,2 +1,2 @@
// https://forum.cfx.re/t/typescript-vs-lua-questions/612483/11
export const Delay = (ms: number) => new Promise(res => setTimeout(res, ms));
export const Delay = (ms: number) => new Promise((res) => setTimeout(res, ms));
+9 -7
View File
@@ -1,13 +1,15 @@
import apps from './apps';
import apps from "./apps";
function sendMessage(app: string, method: string, data: any) {
return SendNuiMessage(JSON.stringify({
app,
method,
data,
}))
return SendNuiMessage(
JSON.stringify({
app,
method,
data,
})
);
}
export function sendTwitterMessage(method: string, data: any = {}) {
return sendMessage(apps.TWITTER, method, data);
return sendMessage(apps.TWITTER, method, data);
}