Commit Graph

97 Commits (c01d37e35584fd696532013e9a62e4990a036661)

Author SHA1 Message Date
trivernis e8eb85993e Add level configuration and query
- Add query getLevels to get all possible levels
- Add mutation createLevel as a way for admins to create new levels
- Remove column levelNumber and replace it with method that looks up the number of the level by counting
5 years ago
trivernis 9328367bb5 Add configurable levels
- Add Level table and gql type
- change level field on User
- add hook on user to update the level
5 years ago
trivernis 781ee274b8 Fix allow media id of user to be null 5 years ago
trivernis beac7e36dc Add reports for post
- Add reports field on posts
- add reportPost mutation
- add getReports query
- add createReportReason mutation
- Add Report type and model
- Add ReportReason type and model

Closes #62
5 years ago
trivernis 928485c336 Add mutations setUsername and setHandle
Closes #70
5 years ago
trivernis 75a7a2cdec Add not null constrain to media type 5 years ago
trivernis 76c0574c74 Hotfix interval for cleanup being milliseconds 5 years ago
trivernis b4aaba79ce Hotfix crash when starting due to cleanup 5 years ago
trivernis 0e232b1c71 Cleanup code
- Cleanup
- Optimization
- Style fixes
5 years ago
trivernis 6ede632507 Add differentiation between media and text posts
Add type argument when creating posts. If the post is of type MEDIA it will be invisible until an image was uploaded for the post.
5 years ago
trivernis 8dc1424775 Add media table for media files
- Add media_id fk to user
- Add media_id  fk to group
- Add media_id fk to post
- Add routine to cleanup orphaned media entries (not referenced by post, user, group)
- Add delete handler for media to delete the corresponding file
5 years ago
trivernis 78fce76407 Remove ffmpeg dependencies 5 years ago
trivernis 0bae164b9b Remove ffmpeg processing
- Remove ffmpeg video processing due to high cpu usages
5 years ago
trivernis ebeaf3f549 Change video format to webm
- Change default allowed filesize to 10mb
- Change video format for posts to webm
5 years ago
Trivernis 2899eb6762 [WIP] Add media to posts
- Add graphql upload handling
- Add file handling for posts
- Add media url to Post model
5 years ago
Trivernis f213503c4e Allow admins to delete groups 5 years ago
trivernis ac2672e589 Fix http status not found error 5 years ago
trivernis aafbbb5d52 Cleanup code and http 404 for not found
- Add 404 status code return for all not found errors
5 years ago
trivernis b27ed1def2 Replace shorthand resolver with new classes 5 years ago
trivernis 57091e522c Add all resolvers and help types to classes
- Add resolvers to Mutation class
- Add reslovers to Query class
- Add helper classes for several types and errors
5 years ago
trivernis 164ecb77c6 Add new resolver files 5 years ago
trivernis 8a35195040 Add chatCreate socket event 5 years ago
trivernis 0f4f4fb9f1 Add delete functions to Group and Event
- Add deletable attribute to Group and Event type
- Add deleteGroup and delteEvent function
- Add markdown plugin for html5 video and audio
5 years ago
trivernis 54646e6b73 Add space to BlacklistedError phrase list 5 years ago
trivernis f57f638104 Fix style issue 5 years ago
trivernis f58dc4a33c Add Blacklists
- Add BlacklistedPhrase model to store blacklisted phrases
- Add checking for blacklisted phrases inside of posts content, usernames, groupnames, eventnames
- Add api to create, delete phrases and check if phrases contain blacklisted phrases
5 years ago
trivernis 81b0aa9657 Add Group Picture upload
- Add field picture to Group type
- Add config option for image format
- Add groupPicture file handling at /upload
5 years ago
trivernis a4339ea540 Fix posts TOP ordering 5 years ago
trivernis 0c18670698 Fix duplicated posts with pagination in TOP sort 5 years ago
trivernis dc4731bb36 Add mail dns check
- Add a check if the mail address is a valid domain
5 years ago
Trivernis 9e7150645b Sort messages descending
- Sort messages for chats in descending
5 years ago
Trivernis 8f3b50a4ce Fix Style Issues 5 years ago
trivernis b1ec17b9d7 Change config file handling
- Add Folder config to top level
- Add module config to load the config files
- Change to toml format for config files
5 years ago
trivernis 0ff6791c19 Fix status fields error when not logged in
- Fix userVote, joined, deletable
5 years ago
trivernis e0dd9b270f Make every userId in status fields optional
- Make userId in joined on Group and Event optional
- Make userId and deletable in userVote on Post optional
5 years ago
trivernis b60b08b7b3 Add chat message pagination 5 years ago
trivernis 29a1e7bfb3 Add jsdoc to all members
- Add jsdoc rule to tslint and fix the new issues
5 years ago
trivernis ea8a97beb5 Add joined field to Group api type
- Add joined field to Group type which accepts a userId and returns if the user is a member of the group
- Add joined function to Group model
5 years ago
trivernis 2f2ee8e214 Add joined field to Event api type
- Add joined field which accepts a userId and returns if the user has joined the event
- Add joined function to Event model
5 years ago
Trivernis a0ecb36064 Fix deletePost 5 years ago
Trivernis 4f6caf461c Added activities
- added Activity model
- added Activity association to Post
- added getActivities field to queries
- added createActivity to mutations
5 years ago
Trivernis 124fde08d5 Added profilePicture property to User
- added profilePicture which saves the url to the users profile picture
5 years ago
Trivernis 9011cb39cf Added publicPath to config file
- added publicPath config property to configure the path to the  public files
5 years ago
Trivernis f7dae45ab9 Admins
- added is_admin column to users
- added ability for admins to delete posts that are not their own
5 years ago
Trivernis 21641cbc20 Fixed typo
- changed deleteable to deletable
5 years ago
Trivernis e25095627e Added deleteable field to Post model 5 years ago
Trivernis 126f53dbbf Added Bearer authentification
- added the getToken method to the graphql query type
- added the graphql Token type
- added database fields for the token and the expire date
- added a way to authorize as a user via the Authorization HTTP header
5 years ago
Trivernis 0083f669c2 Added Jenkinsfile
- added jenkinsfile
- autofixed tslint issues
5 years ago
Trivernis fd8b907527 Settings addition to user profile
- closes #50
- added the getSelf.settings field to get the user settings
- added the setUserSettings mutation to set the settings for the user
5 years ago
Trivernis e798e3f059 Api additions/fixed
- fixed #47 userVote is always null
- changed field userVote to require a userId
5 years ago