├── .eslintrc.json ├── .github └── workflows │ ├── cypress.yml │ └── jest.yml ├── .gitignore ├── LICENSE ├── README.md ├── components ├── authentication │ ├── Login.tsx │ ├── Logout.tsx │ └── form │ │ ├── EditPostForm.tsx │ │ ├── LoginForm.tsx │ │ ├── PostForm.tsx │ │ ├── SettingForm.tsx │ │ └── SignupForm.tsx ├── chats │ ├── UI │ │ ├── chatInput.tsx │ │ ├── message.tsx │ │ └── messages.tsx │ └── conversation │ │ ├── index.tsx │ │ ├── members.tsx │ │ └── new.tsx ├── error │ └── ErrorBoundary.tsx ├── layout │ ├── Footer.tsx │ ├── PWAModal.tsx │ ├── buttons │ │ └── BackToTopButton.tsx │ ├── header │ │ ├── BackHeader.tsx │ │ ├── Header.tsx │ │ └── UserHeader.tsx │ └── loader │ │ ├── ContentLoader.tsx │ │ ├── FormLoader.tsx │ │ ├── Loader.tsx │ │ ├── NotifLoader.tsx │ │ └── UserContentLoader.tsx ├── player │ └── SpotifyPlayer.tsx ├── posts │ ├── Post.tsx │ ├── comments │ │ ├── Comment.tsx │ │ ├── CommentsList.tsx │ │ ├── DeleteComment.tsx │ │ ├── PostComment.tsx │ │ └── replies │ │ │ ├── Replies.tsx │ │ │ ├── Reply.tsx │ │ │ └── ReplyComment.tsx │ ├── delete │ │ ├── DeleteModal.tsx │ │ └── DeletePost.tsx │ ├── edit │ │ └── editPost.tsx │ ├── error │ │ └── PostError.tsx │ ├── icons │ │ ├── PostIcons.tsx │ │ └── WebsiteIcons.tsx │ ├── like │ │ └── LikePost.tsx │ ├── options │ │ └── PostOptions.tsx │ ├── redirect │ │ └── RedirectPost.tsx │ ├── save │ │ └── SavePost.tsx │ ├── search │ │ ├── Album.tsx │ │ ├── Artists.tsx │ │ ├── Items │ │ │ ├── SearchItems.tsx │ │ │ └── SongButtons.tsx │ │ ├── SearchSong.tsx │ │ └── Tracks.tsx │ └── share │ │ └── SharePost.tsx └── user │ ├── UserInfo.tsx │ ├── Users.tsx │ ├── followUser │ ├── FollowDetails.tsx │ └── FollowSection.tsx │ ├── search │ └── searchExplore.tsx │ ├── settings │ └── avatar │ │ ├── avatarCropper.jsx │ │ └── userAvatar.tsx │ └── verified │ └── verifiedUsers.tsx ├── context ├── postContext.tsx ├── searchMusicContext.tsx └── userContext.tsx ├── cypress.config.js ├── cypress ├── e2e │ ├── changePassword.cy.js │ ├── createChat.cy.js │ ├── createPost.cy.js │ ├── deletePost.cy.js │ ├── editPost.cy.js │ ├── followUser.cy.js │ ├── loadPages.cy.js │ ├── login.cy.js │ ├── logout.cy.js │ ├── postComment.cy.js │ ├── replyComment.cy.js │ ├── savePost.cy.js │ ├── searchUser.cy.js │ ├── sendMessage.cy.js │ ├── signup.cy.js │ ├── unfollowUser.cy.js │ ├── unsavePost.cy.js │ └── usersetting.cy.js ├── fixtures │ ├── example.json │ └── logo.png └── support │ ├── commands.js │ └── e2e.js ├── data └── data.ts ├── fonts └── fonts.ts ├── functions ├── authError.ts ├── decodeJWT.tsx ├── formatDate.ts └── requests │ ├── API.tsx │ ├── SWR.ts │ ├── getRequest.ts │ ├── getSpotifyToken.ts │ └── postRequest.ts ├── hooks ├── useAuth.ts ├── useSearchSongs.ts ├── useSearchUsers.ts └── useSocket.ts ├── interfaces └── interface.ts ├── jest.config.mjs ├── middleware.ts ├── next-env.d.ts ├── next-sitemap.config.js ├── next.config.js ├── package.json ├── pages ├── 404.tsx ├── [username] │ ├── followers.tsx │ ├── following.tsx │ ├── index.tsx │ ├── saved.tsx │ └── setting.tsx ├── _app.tsx ├── _document.tsx ├── _offline.tsx ├── comments │ └── [id].tsx ├── home │ └── timeline.tsx ├── index.tsx ├── likes │ └── [id].tsx ├── post │ ├── [id].tsx │ ├── edit │ │ └── [id].tsx │ └── new.tsx ├── server-sitemap.xml │ └── index.tsx └── user │ ├── chats │ ├── [id].tsx │ ├── index.tsx │ └── new.tsx │ ├── forgot-password │ ├── [token].tsx │ └── index.tsx │ ├── notifications.tsx │ ├── search.tsx │ └── signup.tsx ├── public ├── Images │ ├── Copy.svg │ ├── Frame 85 (1).svg │ ├── Frame 85.svg │ ├── Frame 86.svg │ ├── Pause Button.svg │ ├── Play button.svg │ ├── Up Arrow.svg │ ├── add.svg │ ├── back.svg │ ├── chat.svg │ ├── facebook.svg │ ├── home.svg │ ├── icon-192x192.png │ ├── icon-512x512.png │ ├── icons8-left-arrow-50.png │ ├── lf20_2gB0PZ.json │ ├── logo.png │ ├── notification.svg │ ├── save.svg │ ├── search.svg │ ├── setting.svg │ ├── soundcloud.svg │ ├── splashscreens │ │ ├── ipad_splash.png │ │ ├── ipadpro1_splash.png │ │ ├── ipadpro2_splash.png │ │ ├── ipadpro3_splash.png │ │ ├── iphone5_splash.png │ │ ├── iphone6_splash.png │ │ ├── iphoneplus_splash.png │ │ ├── iphonex_splash.png │ │ ├── iphonexr_splash.png │ │ └── iphonexsmax_splash.png │ ├── spotify.svg │ ├── trash-svgrepo-com.svg │ ├── twitch.svg │ ├── user.svg │ ├── verified (2).png │ ├── verified.png │ ├── vimeo.svg │ └── youtube.svg ├── favicon.ico ├── manifest.json ├── robots.txt ├── sitemap-0.xml ├── sitemap.xml └── sw.js ├── redux ├── slices │ └── user.ts └── store │ └── store.ts ├── server.js ├── styles └── style.css ├── tests └── components │ ├── authentication │ └── form │ │ └── PostForm.spec.tsx │ ├── layout │ └── header │ │ └── UserHeader.spec.tsx │ └── posts │ └── options │ └── PostOptions.spec.tsx ├── tsconfig.json └── utils └── HeadTags.tsx /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/cypress.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/.github/workflows/cypress.yml -------------------------------------------------------------------------------- /.github/workflows/jest.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/.github/workflows/jest.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/README.md -------------------------------------------------------------------------------- /components/authentication/Login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/authentication/Login.tsx -------------------------------------------------------------------------------- /components/authentication/Logout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/authentication/Logout.tsx -------------------------------------------------------------------------------- /components/authentication/form/EditPostForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/authentication/form/EditPostForm.tsx -------------------------------------------------------------------------------- /components/authentication/form/LoginForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/authentication/form/LoginForm.tsx -------------------------------------------------------------------------------- /components/authentication/form/PostForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/authentication/form/PostForm.tsx -------------------------------------------------------------------------------- /components/authentication/form/SettingForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/authentication/form/SettingForm.tsx -------------------------------------------------------------------------------- /components/authentication/form/SignupForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/authentication/form/SignupForm.tsx -------------------------------------------------------------------------------- /components/chats/UI/chatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/chats/UI/chatInput.tsx -------------------------------------------------------------------------------- /components/chats/UI/message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/chats/UI/message.tsx -------------------------------------------------------------------------------- /components/chats/UI/messages.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/chats/UI/messages.tsx -------------------------------------------------------------------------------- /components/chats/conversation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/chats/conversation/index.tsx -------------------------------------------------------------------------------- /components/chats/conversation/members.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/chats/conversation/members.tsx -------------------------------------------------------------------------------- /components/chats/conversation/new.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/chats/conversation/new.tsx -------------------------------------------------------------------------------- /components/error/ErrorBoundary.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/error/ErrorBoundary.tsx -------------------------------------------------------------------------------- /components/layout/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/Footer.tsx -------------------------------------------------------------------------------- /components/layout/PWAModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/PWAModal.tsx -------------------------------------------------------------------------------- /components/layout/buttons/BackToTopButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/buttons/BackToTopButton.tsx -------------------------------------------------------------------------------- /components/layout/header/BackHeader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/header/BackHeader.tsx -------------------------------------------------------------------------------- /components/layout/header/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/header/Header.tsx -------------------------------------------------------------------------------- /components/layout/header/UserHeader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/header/UserHeader.tsx -------------------------------------------------------------------------------- /components/layout/loader/ContentLoader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/loader/ContentLoader.tsx -------------------------------------------------------------------------------- /components/layout/loader/FormLoader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/loader/FormLoader.tsx -------------------------------------------------------------------------------- /components/layout/loader/Loader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/loader/Loader.tsx -------------------------------------------------------------------------------- /components/layout/loader/NotifLoader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/loader/NotifLoader.tsx -------------------------------------------------------------------------------- /components/layout/loader/UserContentLoader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/layout/loader/UserContentLoader.tsx -------------------------------------------------------------------------------- /components/player/SpotifyPlayer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/player/SpotifyPlayer.tsx -------------------------------------------------------------------------------- /components/posts/Post.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/Post.tsx -------------------------------------------------------------------------------- /components/posts/comments/Comment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/comments/Comment.tsx -------------------------------------------------------------------------------- /components/posts/comments/CommentsList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/comments/CommentsList.tsx -------------------------------------------------------------------------------- /components/posts/comments/DeleteComment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/comments/DeleteComment.tsx -------------------------------------------------------------------------------- /components/posts/comments/PostComment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/comments/PostComment.tsx -------------------------------------------------------------------------------- /components/posts/comments/replies/Replies.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/comments/replies/Replies.tsx -------------------------------------------------------------------------------- /components/posts/comments/replies/Reply.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/comments/replies/Reply.tsx -------------------------------------------------------------------------------- /components/posts/comments/replies/ReplyComment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/comments/replies/ReplyComment.tsx -------------------------------------------------------------------------------- /components/posts/delete/DeleteModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/delete/DeleteModal.tsx -------------------------------------------------------------------------------- /components/posts/delete/DeletePost.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/delete/DeletePost.tsx -------------------------------------------------------------------------------- /components/posts/edit/editPost.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/edit/editPost.tsx -------------------------------------------------------------------------------- /components/posts/error/PostError.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/error/PostError.tsx -------------------------------------------------------------------------------- /components/posts/icons/PostIcons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/icons/PostIcons.tsx -------------------------------------------------------------------------------- /components/posts/icons/WebsiteIcons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/icons/WebsiteIcons.tsx -------------------------------------------------------------------------------- /components/posts/like/LikePost.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/like/LikePost.tsx -------------------------------------------------------------------------------- /components/posts/options/PostOptions.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/options/PostOptions.tsx -------------------------------------------------------------------------------- /components/posts/redirect/RedirectPost.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/redirect/RedirectPost.tsx -------------------------------------------------------------------------------- /components/posts/save/SavePost.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/save/SavePost.tsx -------------------------------------------------------------------------------- /components/posts/search/Album.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/search/Album.tsx -------------------------------------------------------------------------------- /components/posts/search/Artists.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/search/Artists.tsx -------------------------------------------------------------------------------- /components/posts/search/Items/SearchItems.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/search/Items/SearchItems.tsx -------------------------------------------------------------------------------- /components/posts/search/Items/SongButtons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/search/Items/SongButtons.tsx -------------------------------------------------------------------------------- /components/posts/search/SearchSong.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/search/SearchSong.tsx -------------------------------------------------------------------------------- /components/posts/search/Tracks.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/search/Tracks.tsx -------------------------------------------------------------------------------- /components/posts/share/SharePost.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/posts/share/SharePost.tsx -------------------------------------------------------------------------------- /components/user/UserInfo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/user/UserInfo.tsx -------------------------------------------------------------------------------- /components/user/Users.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/user/Users.tsx -------------------------------------------------------------------------------- /components/user/followUser/FollowDetails.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/user/followUser/FollowDetails.tsx -------------------------------------------------------------------------------- /components/user/followUser/FollowSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/user/followUser/FollowSection.tsx -------------------------------------------------------------------------------- /components/user/search/searchExplore.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/user/search/searchExplore.tsx -------------------------------------------------------------------------------- /components/user/settings/avatar/avatarCropper.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/user/settings/avatar/avatarCropper.jsx -------------------------------------------------------------------------------- /components/user/settings/avatar/userAvatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/user/settings/avatar/userAvatar.tsx -------------------------------------------------------------------------------- /components/user/verified/verifiedUsers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/components/user/verified/verifiedUsers.tsx -------------------------------------------------------------------------------- /context/postContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/context/postContext.tsx -------------------------------------------------------------------------------- /context/searchMusicContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/context/searchMusicContext.tsx -------------------------------------------------------------------------------- /context/userContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/context/userContext.tsx -------------------------------------------------------------------------------- /cypress.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress.config.js -------------------------------------------------------------------------------- /cypress/e2e/changePassword.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/changePassword.cy.js -------------------------------------------------------------------------------- /cypress/e2e/createChat.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/createChat.cy.js -------------------------------------------------------------------------------- /cypress/e2e/createPost.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/createPost.cy.js -------------------------------------------------------------------------------- /cypress/e2e/deletePost.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/deletePost.cy.js -------------------------------------------------------------------------------- /cypress/e2e/editPost.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/editPost.cy.js -------------------------------------------------------------------------------- /cypress/e2e/followUser.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/followUser.cy.js -------------------------------------------------------------------------------- /cypress/e2e/loadPages.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/loadPages.cy.js -------------------------------------------------------------------------------- /cypress/e2e/login.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/login.cy.js -------------------------------------------------------------------------------- /cypress/e2e/logout.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/logout.cy.js -------------------------------------------------------------------------------- /cypress/e2e/postComment.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/postComment.cy.js -------------------------------------------------------------------------------- /cypress/e2e/replyComment.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/replyComment.cy.js -------------------------------------------------------------------------------- /cypress/e2e/savePost.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/savePost.cy.js -------------------------------------------------------------------------------- /cypress/e2e/searchUser.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/searchUser.cy.js -------------------------------------------------------------------------------- /cypress/e2e/sendMessage.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/sendMessage.cy.js -------------------------------------------------------------------------------- /cypress/e2e/signup.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/signup.cy.js -------------------------------------------------------------------------------- /cypress/e2e/unfollowUser.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/unfollowUser.cy.js -------------------------------------------------------------------------------- /cypress/e2e/unsavePost.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/unsavePost.cy.js -------------------------------------------------------------------------------- /cypress/e2e/usersetting.cy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/e2e/usersetting.cy.js -------------------------------------------------------------------------------- /cypress/fixtures/example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/fixtures/example.json -------------------------------------------------------------------------------- /cypress/fixtures/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/fixtures/logo.png -------------------------------------------------------------------------------- /cypress/support/commands.js: -------------------------------------------------------------------------------- 1 | import "@testing-library/cypress/add-commands"; 2 | -------------------------------------------------------------------------------- /cypress/support/e2e.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/cypress/support/e2e.js -------------------------------------------------------------------------------- /data/data.ts: -------------------------------------------------------------------------------- 1 | export const HOST = "https://alinavidi.ir/"; 2 | -------------------------------------------------------------------------------- /fonts/fonts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/fonts/fonts.ts -------------------------------------------------------------------------------- /functions/authError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/functions/authError.ts -------------------------------------------------------------------------------- /functions/decodeJWT.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/functions/decodeJWT.tsx -------------------------------------------------------------------------------- /functions/formatDate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/functions/formatDate.ts -------------------------------------------------------------------------------- /functions/requests/API.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/functions/requests/API.tsx -------------------------------------------------------------------------------- /functions/requests/SWR.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/functions/requests/SWR.ts -------------------------------------------------------------------------------- /functions/requests/getRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/functions/requests/getRequest.ts -------------------------------------------------------------------------------- /functions/requests/getSpotifyToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/functions/requests/getSpotifyToken.ts -------------------------------------------------------------------------------- /functions/requests/postRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/functions/requests/postRequest.ts -------------------------------------------------------------------------------- /hooks/useAuth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/hooks/useAuth.ts -------------------------------------------------------------------------------- /hooks/useSearchSongs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/hooks/useSearchSongs.ts -------------------------------------------------------------------------------- /hooks/useSearchUsers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/hooks/useSearchUsers.ts -------------------------------------------------------------------------------- /hooks/useSocket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/hooks/useSocket.ts -------------------------------------------------------------------------------- /interfaces/interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/interfaces/interface.ts -------------------------------------------------------------------------------- /jest.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/jest.config.mjs -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/middleware.ts -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next-sitemap.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/next-sitemap.config.js -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/package.json -------------------------------------------------------------------------------- /pages/404.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/404.tsx -------------------------------------------------------------------------------- /pages/[username]/followers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/[username]/followers.tsx -------------------------------------------------------------------------------- /pages/[username]/following.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/[username]/following.tsx -------------------------------------------------------------------------------- /pages/[username]/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/[username]/index.tsx -------------------------------------------------------------------------------- /pages/[username]/saved.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/[username]/saved.tsx -------------------------------------------------------------------------------- /pages/[username]/setting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/[username]/setting.tsx -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/_document.tsx -------------------------------------------------------------------------------- /pages/_offline.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/_offline.tsx -------------------------------------------------------------------------------- /pages/comments/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/comments/[id].tsx -------------------------------------------------------------------------------- /pages/home/timeline.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/home/timeline.tsx -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /pages/likes/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/likes/[id].tsx -------------------------------------------------------------------------------- /pages/post/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/post/[id].tsx -------------------------------------------------------------------------------- /pages/post/edit/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/post/edit/[id].tsx -------------------------------------------------------------------------------- /pages/post/new.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/post/new.tsx -------------------------------------------------------------------------------- /pages/server-sitemap.xml/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/server-sitemap.xml/index.tsx -------------------------------------------------------------------------------- /pages/user/chats/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/user/chats/[id].tsx -------------------------------------------------------------------------------- /pages/user/chats/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/user/chats/index.tsx -------------------------------------------------------------------------------- /pages/user/chats/new.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/user/chats/new.tsx -------------------------------------------------------------------------------- /pages/user/forgot-password/[token].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/user/forgot-password/[token].tsx -------------------------------------------------------------------------------- /pages/user/forgot-password/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/user/forgot-password/index.tsx -------------------------------------------------------------------------------- /pages/user/notifications.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/user/notifications.tsx -------------------------------------------------------------------------------- /pages/user/search.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/user/search.tsx -------------------------------------------------------------------------------- /pages/user/signup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/pages/user/signup.tsx -------------------------------------------------------------------------------- /public/Images/Copy.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/Copy.svg -------------------------------------------------------------------------------- /public/Images/Frame 85 (1).svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/Frame 85 (1).svg -------------------------------------------------------------------------------- /public/Images/Frame 85.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/Frame 85.svg -------------------------------------------------------------------------------- /public/Images/Frame 86.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/Frame 86.svg -------------------------------------------------------------------------------- /public/Images/Pause Button.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/Pause Button.svg -------------------------------------------------------------------------------- /public/Images/Play button.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/Play button.svg -------------------------------------------------------------------------------- /public/Images/Up Arrow.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/Up Arrow.svg -------------------------------------------------------------------------------- /public/Images/add.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/add.svg -------------------------------------------------------------------------------- /public/Images/back.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/back.svg -------------------------------------------------------------------------------- /public/Images/chat.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/chat.svg -------------------------------------------------------------------------------- /public/Images/facebook.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/facebook.svg -------------------------------------------------------------------------------- /public/Images/home.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/home.svg -------------------------------------------------------------------------------- /public/Images/icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/icon-192x192.png -------------------------------------------------------------------------------- /public/Images/icon-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/icon-512x512.png -------------------------------------------------------------------------------- /public/Images/icons8-left-arrow-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/icons8-left-arrow-50.png -------------------------------------------------------------------------------- /public/Images/lf20_2gB0PZ.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/lf20_2gB0PZ.json -------------------------------------------------------------------------------- /public/Images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/logo.png -------------------------------------------------------------------------------- /public/Images/notification.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/notification.svg -------------------------------------------------------------------------------- /public/Images/save.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/save.svg -------------------------------------------------------------------------------- /public/Images/search.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/search.svg -------------------------------------------------------------------------------- /public/Images/setting.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/setting.svg -------------------------------------------------------------------------------- /public/Images/soundcloud.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/soundcloud.svg -------------------------------------------------------------------------------- /public/Images/splashscreens/ipad_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/ipad_splash.png -------------------------------------------------------------------------------- /public/Images/splashscreens/ipadpro1_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/ipadpro1_splash.png -------------------------------------------------------------------------------- /public/Images/splashscreens/ipadpro2_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/ipadpro2_splash.png -------------------------------------------------------------------------------- /public/Images/splashscreens/ipadpro3_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/ipadpro3_splash.png -------------------------------------------------------------------------------- /public/Images/splashscreens/iphone5_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/iphone5_splash.png -------------------------------------------------------------------------------- /public/Images/splashscreens/iphone6_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/iphone6_splash.png -------------------------------------------------------------------------------- /public/Images/splashscreens/iphoneplus_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/iphoneplus_splash.png -------------------------------------------------------------------------------- /public/Images/splashscreens/iphonex_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/iphonex_splash.png -------------------------------------------------------------------------------- /public/Images/splashscreens/iphonexr_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/iphonexr_splash.png -------------------------------------------------------------------------------- /public/Images/splashscreens/iphonexsmax_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/splashscreens/iphonexsmax_splash.png -------------------------------------------------------------------------------- /public/Images/spotify.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/spotify.svg -------------------------------------------------------------------------------- /public/Images/trash-svgrepo-com.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/trash-svgrepo-com.svg -------------------------------------------------------------------------------- /public/Images/twitch.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/twitch.svg -------------------------------------------------------------------------------- /public/Images/user.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/user.svg -------------------------------------------------------------------------------- /public/Images/verified (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/verified (2).png -------------------------------------------------------------------------------- /public/Images/verified.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/verified.png -------------------------------------------------------------------------------- /public/Images/vimeo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/vimeo.svg -------------------------------------------------------------------------------- /public/Images/youtube.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/Images/youtube.svg -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/manifest.json -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/robots.txt -------------------------------------------------------------------------------- /public/sitemap-0.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/sitemap-0.xml -------------------------------------------------------------------------------- /public/sitemap.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/sitemap.xml -------------------------------------------------------------------------------- /public/sw.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/public/sw.js -------------------------------------------------------------------------------- /redux/slices/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/redux/slices/user.ts -------------------------------------------------------------------------------- /redux/store/store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/redux/store/store.ts -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/server.js -------------------------------------------------------------------------------- /styles/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/styles/style.css -------------------------------------------------------------------------------- /tests/components/authentication/form/PostForm.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/tests/components/authentication/form/PostForm.spec.tsx -------------------------------------------------------------------------------- /tests/components/layout/header/UserHeader.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/tests/components/layout/header/UserHeader.spec.tsx -------------------------------------------------------------------------------- /tests/components/posts/options/PostOptions.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/tests/components/posts/options/PostOptions.spec.tsx -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/tsconfig.json -------------------------------------------------------------------------------- /utils/HeadTags.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/westernal/Westernal-Frontend/HEAD/utils/HeadTags.tsx --------------------------------------------------------------------------------