Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/async-labs/saas
/ functions
Functions
315 in github.com/async-labs/saas
⨍
Functions
315
◇
Types & classes
96
↓ 73 callers
Function
notify
(obj)
app/lib/notifier.ts:3
↓ 43 callers
Function
get
(name: string, required: boolean = false, alternateName: string = null)
api/server/consts.ts:6
↓ 32 callers
Function
sendRequestAndGetResponse
(path, opts: any = {})
app/lib/api/sendRequestAndGetResponse.ts:9
↓ 10 callers
Method
getDiscussion
(slug: string)
app/pages/discussion.tsx:82
↓ 7 callers
Method
edit
({ content, userId, id, }: { content: string; userId: string; id: string; })
api/server/models/Post.ts:135
↓ 7 callers
Function
withAuth
( BaseComponent, { loginRequired = true, logoutRequired = false, teamRequired = true } = {}, )
app/lib/withAuth.tsx:25
↓ 6 callers
Function
generateSlug
(Model, name, filter = {})
api/server/utils/slugify.ts:31
↓ 6 callers
Method
getList
(userId: string)
api/server/models/Team.ts:99
↓ 6 callers
Function
getSocket
(socketId?: string)
api/server/realtime.ts:11
↓ 5 callers
Function
getEmailTemplate
( name: string, params: any, template?: IEmailTemplateDocument, )
api/server/models/EmailTemplate.ts:100
↓ 5 callers
Method
joinSocketRoom
()
app/lib/store/team.ts:376
↓ 5 callers
Method
loadDiscussions
()
app/lib/store/team.ts:140
↓ 5 callers
Method
publicFields
()
api/server/models/User.ts:431
↓ 5 callers
Method
render
()
app/pages/_app.tsx:35
↓ 5 callers
Function
sendEmail
(options)
api/server/aws-ses.ts:7
↓ 5 callers
Function
uploadFileUsingSignedPutRequest
(file, signedRequest, headers = {})
app/lib/api/team-member.ts:85
↓ 4 callers
Method
add
({ name, userId, }: { userId: string; name: string; avatarUrl: string; })
api/server/models/Team.ts:79
↓ 4 callers
Method
checkPermission
({ userId, teamId, memberIds = [] })
api/server/models/Discussion.ts:91
↓ 4 callers
Function
getSignedRequestForUpload
({ file, prefix, bucket, acl = 'private' })
app/lib/api/team-member.ts:79
↓ 3 callers
Method
changeLocalCache
(data)
app/lib/store/discussion.ts:79
↓ 3 callers
Method
checkPermission
({ userId, discussionId, post = null })
api/server/models/Post.ts:227
↓ 3 callers
Function
confirm
({ title, message, onAnswer, }: { title: string; message: string; onAnswer: (answer) => void; })
app/lib/confirm.ts:3
↓ 3 callers
Method
delete
({ userId, id }: { userId: string; id: string })
api/server/models/Post.ts:157
↓ 3 callers
Function
getStore
()
app/lib/store/index.ts:293
↓ 3 callers
Method
gtag
()
app/pages/_document.tsx:148
↓ 3 callers
Method
leaveSocketRoom
()
app/lib/store/team.ts:365
↓ 3 callers
Method
logout
()
app/lib/store/user.ts:131
↓ 3 callers
Function
markdownToHtml
(content)
api/server/models/Post.ts:77
↓ 3 callers
Method
updateProfile
({ userId, name, avatarUrl, }: { userId: string; name: string; avatarUrl: string;
api/server/models/User.ts:165
↓ 2 callers
Method
addDiscussionToLocalCache
(data)
app/lib/store/discussion.ts:181
↓ 2 callers
Method
addPost
(content: string)
app/lib/store/discussion.ts:129
↓ 2 callers
Method
addPostToLocalCache
(data)
app/lib/store/discussion.ts:104
↓ 2 callers
Method
addTeamToLocalCache
(data)
app/lib/store/index.ts:160
↓ 2 callers
Function
cancelSubscription
({ subscriptionId })
api/server/stripe.ts:41
↓ 2 callers
Method
cancelSubscription
({ teamLeaderId, teamId, }: { teamLeaderId: string; teamId: string; })
api/server/models/Team.ts:116
↓ 2 callers
Method
changeDiscussion
()
app/pages/discussion.tsx:105
↓ 2 callers
Method
changeLocalCache
(data)
app/lib/store/post.ts:30
↓ 2 callers
Method
changeLocalCache
(data)
app/lib/store/team.ts:387
↓ 2 callers
Method
checkTeam
()
app/components/layout/index.tsx:258
↓ 2 callers
Method
createCustomer
({ userId, stripeToken, }: { userId: string; stripeToken: object; })
api/server/models/User.ts:193
↓ 2 callers
Method
createSubscription
({ teamId }: { teamId: string })
app/lib/store/team.ts:322
↓ 2 callers
Function
deletePostFiles
(posts: IPostDocument[])
api/server/models/Post.ts:18
↓ 2 callers
Function
generateNumberSlug
(Model, filter = {}, n = 1)
api/server/utils/slugify.ts:45
↓ 2 callers
Function
generateToken
()
api/server/models/Invitation.ts:63
↓ 2 callers
Method
getListOfInvoicesForCustomer
({ userId }: { userId: string })
api/server/models/User.ts:208
↓ 2 callers
Method
getTeamInvitedUsers
({ userId, teamId }: { userId: string; teamId: string })
api/server/models/Invitation.ts:57
↓ 2 callers
Method
getTeamMembers
({ userId, teamId }: { userId: string; teamId: string })
api/server/models/User.ts:175
↓ 2 callers
Function
getUser
(options = {})
app/lib/api/public.ts:5
↓ 2 callers
Method
initializeFileUIandEvent
()
app/components/posts/PostContent.tsx:39
↓ 2 callers
Method
loadCurrentTeamData
()
app/lib/store/index.ts:223
↓ 2 callers
Method
loadPosts
()
app/lib/store/discussion.ts:56
↓ 2 callers
Function
makeQueryString
(params)
app/lib/api/makeQueryString.ts:1
↓ 2 callers
Method
publicFields
()
api/server/models/User.ts:163
↓ 2 callers
Method
removeDiscussionFromLocalCache
(discussionId: string)
app/lib/store/discussion.ts:204
↓ 2 callers
Method
removeMember
({ teamId, teamLeaderId, userId, }: { teamId: string; teamLeaderId: string; userId: string
api/server/models/Team.ts:100
↓ 2 callers
Method
removeTeamFromLocalCache
(teamId: string)
app/lib/store/index.ts:181
↓ 2 callers
Function
resizeImage
(file: File, MAX_WIDTH, MAX_HEIGHT)
app/lib/resizeImage.ts:1
↓ 2 callers
Method
sendDataToLambdaApiMethod
({ discussionName, discussionLink, postContent, authorName, userIds, })
app/lib/store/discussion.ts:159
↓ 2 callers
Method
setCurrentTeam
(slug: string)
app/lib/store/index.ts:136
↓ 2 callers
Method
setCurrentUser
(user, isLoadTeam: boolean, selectedTeamSlug: string)
app/lib/store/index.ts:187
↓ 2 callers
Method
setTeams
(teams: any[], selectedTeamSlug?: string)
app/lib/store/index.ts:87
↓ 2 callers
Function
subscribe
({ email, listName })
api/server/mailchimp.ts:40
↓ 2 callers
Method
toggleTheme
({ userId, darkTheme }: { userId: string; darkTheme: boolean })
api/server/models/User.ts:209
↓ 1 callers
Function
addDiscussion
app/lib/api/team-member.ts:41
↓ 1 callers
Method
addDiscussion
(data)
app/lib/store/team.ts:195
↓ 1 callers
Method
addDiscussionToLocalCache
(data)
app/lib/store/team.ts:173
↓ 1 callers
Function
addPlaceholder
(elm)
app/components/posts/PostContent.tsx:3
↓ 1 callers
Function
addPost
app/lib/api/team-member.ts:62
↓ 1 callers
Function
addTeam
app/lib/api/team-leader.ts:5
↓ 1 callers
Method
addTeam
({ name, avatarUrl }: { name: string; avatarUrl: string })
app/lib/store/index.ts:103
↓ 1 callers
Method
addUserToTeam
({ token, user }: { token: string; user: IUserDocument })
api/server/models/Invitation.ts:60
↓ 1 callers
Function
api
(server: express.Express)
api/server/api/index.ts:15
↓ 1 callers
Function
callAPI
({ path, method, data })
api/server/mailchimp.ts:11
↓ 1 callers
Method
cancelSubscriptionAfterFailedPayment
({ subscriptionId, }: { subscriptionId: string; })
api/server/models/Team.ts:123
↓ 1 callers
Function
cancelSubscriptionApiMethod
({ teamId }: { teamId: string })
app/lib/api/team-leader.ts:42
↓ 1 callers
Method
changeCurrentUrl
(url: string)
app/lib/store/index.ts:76
↓ 1 callers
Method
checkIfTeamLeaderMustBeCustomer
()
app/lib/store/team.ts:351
↓ 1 callers
Method
checkPermissionAndGetTeam
({ userId, teamId })
api/server/models/User.ts:449
↓ 1 callers
Function
checkPrefix
(prefix, user)
api/server/aws-s3.ts:10
↓ 1 callers
Function
createCustomer
({ token, teamLeaderEmail, teamLeaderId })
api/server/stripe.ts:14
↓ 1 callers
Function
createCustomerApiMethod
({ token }: { token: object })
app/lib/api/team-leader.ts:47
↓ 1 callers
Function
createNewCard
({ customerId, token })
api/server/stripe.ts:52
↓ 1 callers
Method
createNewCardAndUpdateCustomer
({ token }: { token: object })
app/lib/store/user.ts:94
↓ 1 callers
Function
createNewCardAndUpdateCustomerApiMethod
({ token }: { token: object })
app/lib/api/team-leader.ts:52
↓ 1 callers
Method
createNewCardUpdateCustomer
({ userId, stripeToken, }: { userId: string; stripeToken: object; })
api/server/models/User.ts:201
↓ 1 callers
Function
createSubscription
({ customerId, teamId, teamLeaderId })
api/server/stripe.ts:25
↓ 1 callers
Function
createSubscriptionApiMethod
({ teamId }: { teamId: string })
app/lib/api/team-leader.ts:37
↓ 1 callers
Function
createUniqueSlug
(Model, slug, count, filter)
api/server/utils/slugify.ts:19
↓ 1 callers
Function
deleteDiscussion
app/lib/api/team-member.ts:51
↓ 1 callers
Method
deleteDiscussion
(id: string)
app/lib/store/team.ts:210
↓ 1 callers
Function
deleteFiles
(bucket: string, files: string[])
api/server/aws-s3.ts:107
↓ 1 callers
Function
deletePost
app/lib/api/team-member.ts:72
↓ 1 callers
Method
deletePost
(post: Post)
app/lib/store/discussion.ts:147
↓ 1 callers
Function
discussionAdded
({ socketId, discussion, }: { socketId?: string; discussion: IDiscussionDocument; })
api/server/realtime.ts:82
↓ 1 callers
Function
discussionDeleted
({ socketId, teamId, id, }: { socketId?: string; teamId: string; id: string; })
api/server/realtime.ts:115
↓ 1 callers
Function
discussionEdited
({ socketId, discussion, }: { socketId?: string; discussion: IDiscussionDocument; })
api/server/realtime.ts:97
↓ 1 callers
Function
editDiscussion
app/lib/api/team-member.ts:46
↓ 1 callers
Method
editDiscussionFromLocalCache
(data)
app/lib/store/discussion.ts:191
↓ 1 callers
Function
editPost
app/lib/api/team-member.ts:67
↓ 1 callers
Method
editPostFromLocalCache
(data)
app/lib/store/discussion.ts:117
next →
1–100 of 315, ranked by callers