Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Full-stack-Django-and-React
/ functions
Functions
151 in github.com/PacktPublishing/Full-stack-Django-and-React
⨍
Functions
151
◇
Types & classes
47
↳
Endpoints
4
↓ 10 callers
Function
userFixtures
()
social-media-react/src/helpers/fixtures/user.js:4
↓ 9 callers
Function
getUser
()
social-media-react/src/hooks/user.actions.js:67
↓ 8 callers
Method
delete
(self, using=None, keep_parents=False)
core/abstract/models.py:52
↓ 6 callers
Function
setUserData
(data)
social-media-react/src/hooks/user.actions.js:89
↓ 5 callers
Method
create
(self, request, *args, **kwargs)
core/post/viewsets.py:42
↓ 5 callers
Method
get_object_by_public_id
(self, public_id)
core/abstract/models.py:19
↓ 5 callers
Function
render
(ui, { ...renderOptions } = {})
social-media-react/src/helpers/test-utils.jsx:5
↓ 4 callers
Method
create_user
Create and return a `User` with an email, phone number, username and password.
core/user/models.py:17
↓ 4 callers
Function
getRefreshToken
()
social-media-react/src/hooks/user.actions.js:83
↓ 4 callers
Function
useUserActions
()
social-media-react/src/hooks/user.actions.js:5
↓ 3 callers
Method
save
( self, force_insert=False, force_update=False, using=None, update_fields=None )
core/abstract/models.py:39
↓ 2 callers
Function
_delete_cached_objects
(app_label)
core/abstract/models.py:9
↓ 2 callers
Function
commentFixtures
(isLiked = true, isEdited = false, user = undefined)
social-media-react/src/helpers/fixtures/comment.js:5
↓ 2 callers
Function
getAccessToken
()
social-media-react/src/hooks/user.actions.js:77
↓ 2 callers
Method
get_object
(self)
core/comment/viewsets.py:29
↓ 2 callers
Method
get_object
(self)
core/post/viewsets.py:21
↓ 2 callers
Function
handleLikeClick
(action)
social-media-react/src/components/comments/Comment.jsx:17
↓ 2 callers
Function
handleLikeClick
(action)
social-media-react/src/components/posts/Post.jsx:18
↓ 2 callers
Function
postFixtures
(isLiked = true, isEdited = false, user = undefined)
social-media-react/src/helpers/fixtures/post.js:5
↓ 1 callers
Function
add
(a, b)
tests.py:1
↓ 1 callers
Method
create
(self, request, *args, **kwargs)
core/comment/viewsets.py:51
↓ 1 callers
Method
create_superuser
Create and return a `User` with superuser (admin) permissions.
core/user/models.py:34
↓ 1 callers
Method
get_queryset
(self)
core/comment/viewsets.py:18
↓ 1 callers
Method
get_queryset
(self)
core/post/viewsets.py:18
↓ 1 callers
Function
handleClose
()
social-media-react/src/components/comments/UpdateComment.jsx:19
↓ 1 callers
Function
handleClose
()
social-media-react/src/components/posts/CreatePost.jsx:20
↓ 1 callers
Function
handleClose
()
social-media-react/src/components/posts/UpdatePost.jsx:17
↓ 1 callers
Method
has_liked_comment
Return True if the user has liked a `comment`; else False
core/user/models.py:102
↓ 1 callers
Method
has_liked_post
Return True if the user has liked a `post`; else False
core/user/models.py:90
↓ 1 callers
Method
like_comment
Like `comment` if it hasn't been done yet
core/user/models.py:94
↓ 1 callers
Method
like_post
Like `post` if it hasn't been done yet
core/user/models.py:82
↓ 1 callers
Function
main
Run administrative tasks.
manage.py:7
↓ 1 callers
Method
remove_like_comment
Remove a like from a `comment`
core/user/models.py:98
↓ 1 callers
Method
remove_like_post
Remove a like from a `post`
core/user/models.py:86
Function
App
()
social-media-react/src/App.js:11
Function
Comment
(props)
social-media-react/src/components/comments/Comment.jsx:11
Function
CreateComment
(props)
social-media-react/src/components/comments/CreateComment.jsx:8
Function
CreatePost
(props)
social-media-react/src/components/posts/CreatePost.jsx:7
Function
EditProfile
()
social-media-react/src/pages/EditProfile.jsx:9
Function
Home
()
social-media-react/src/pages/Home.jsx:11
Function
Layout
(props)
social-media-react/src/components/Layout.jsx:10
Function
Login
()
social-media-react/src/pages/Login.jsx:5
Function
LoginForm
()
social-media-react/src/components/authentication/LoginForm.jsx:6
Function
NavigationBar
()
social-media-react/src/components/Navbar.jsx:8
Function
Post
(props)
social-media-react/src/components/posts/Post.jsx:12
Function
Profile
()
social-media-react/src/pages/Profile.jsx:10
Function
ProfileCard
(props)
social-media-react/src/components/profile/ProfileCard.jsx:5
Function
ProfileDetails
(props)
social-media-react/src/components/profile/ProfileDetails.jsx:6
Function
ProtectedRoute
({ children })
social-media-react/src/routes/ProtectedRoute.jsx:6
Function
Registration
()
social-media-react/src/pages/Registration.jsx:5
Function
RegistrationForm
()
social-media-react/src/components/authentication/RegistrationForm.jsx:6
Function
SinglePost
()
social-media-react/src/pages/SinglePost.jsx:12
Function
Toaster
(props)
social-media-react/src/components/Toaster.jsx:4
Function
UpdateComment
(props)
social-media-react/src/components/comments/UpdateComment.jsx:7
Function
UpdatePost
(props)
social-media-react/src/components/posts/UpdatePost.jsx:6
Function
UpdateProfileForm
(props)
social-media-react/src/components/profile/UpdateProfileForm.jsx:8
Function
Wrapper
({ children })
social-media-react/src/helpers/test-utils.jsx:6
Method
__str__
(self)
core/user/models.py:75
Method
__str__
(self)
core/comment/models.py:19
Method
__str__
(self)
core/post/models.py:17
Function
client
()
conftest.py:6
Function
comment
(db, user, post)
core/fixtures/comment.py:10
Method
create
(self, validated_data)
core/auth/serializers/register.py:33
Method
create
(self, request, *args, **kwargs)
core/auth/viewsets/register.py:14
Method
create
(self, request, *args, **kwargs)
core/auth/viewsets/login.py:14
Method
create
(self, request, *args, **kwargs)
core/auth/viewsets/logout.py:13
Method
create
(self, request, *args, **kwargs)
core/auth/viewsets/refresh.py:13
Function
edit
(data, userId)
social-media-react/src/hooks/user.actions.js:35
Function
fetcher
(url)
social-media-react/src/helpers/axios.js:56
Method
get_comments_count
(self, instance)
core/post/serializers.py:18
Method
get_liked
(self, instance)
core/comment/serializers.py:21
Method
get_liked
(self, instance)
core/post/serializers.py:21
Method
get_likes_count
(self, instance)
core/comment/serializers.py:30
Method
get_likes_count
(self, instance)
core/post/serializers.py:30
Method
get_object
(self)
core/user/viewsets.py:22
Method
get_posts_count
(self, instance)
core/user/serializers.py:11
Method
get_queryset
(self)
core/user/viewsets.py:17
Function
handleDelete
()
social-media-react/src/components/comments/Comment.jsx:26
Function
handleDelete
()
social-media-react/src/components/posts/Post.jsx:27
Function
handleLogout
()
social-media-react/src/components/Navbar.jsx:15
Function
handleNavigateToProfile
()
social-media-react/src/components/profile/ProfileCard.jsx:9
Function
handleShow
()
social-media-react/src/components/comments/UpdateComment.jsx:20
Function
handleShow
()
social-media-react/src/components/posts/CreatePost.jsx:21
Function
handleShow
()
social-media-react/src/components/posts/UpdatePost.jsx:18
Function
handleSubmit
(event)
social-media-react/src/components/profile/UpdateProfileForm.jsx:22
Function
handleSubmit
(event)
social-media-react/src/components/authentication/RegistrationForm.jsx:19
Function
handleSubmit
(event)
social-media-react/src/components/authentication/LoginForm.jsx:15
Function
handleSubmit
(event)
social-media-react/src/components/comments/CreateComment.jsx:21
Function
handleSubmit
(event)
social-media-react/src/components/comments/UpdateComment.jsx:22
Function
handleSubmit
(event)
social-media-react/src/components/posts/CreatePost.jsx:23
Function
handleSubmit
(event)
social-media-react/src/components/posts/UpdatePost.jsx:20
Method
has_object_permission
(self, request, view, obj)
core/auth/permissions.py:5
Method
has_permission
(self, request, view)
core/auth/permissions.py:28
Method
like
(self, request, *args, **kwargs)
core/comment/viewsets.py:58
Method
like
(self, request, *args, **kwargs)
core/post/viewsets.py:49
Method
list
(self, request, *args, **kwargs)
core/comment/viewsets.py:36
Method
list
(self, request, *args, **kwargs)
core/post/viewsets.py:28
Function
login
(data)
social-media-react/src/hooks/user.actions.js:17
Function
logout
()
social-media-react/src/hooks/user.actions.js:56
Method
name
(self)
core/user/models.py:79
next →
1–100 of 151, ranked by callers