Commit Graph

167 Commits (fe75393ab0f0fca7ea410a34d9c50ff0b2363635)

Author SHA1 Message Date
Trivernis 9e7150645b Sort messages descending
- Sort messages for chats in descending
5 years ago
Trivernis 8f3b50a4ce Fix Style Issues 5 years ago
trivernis 53cf4076db Optimize import and Change Rate Limit
- Change default Rate Limit to 60
5 years ago
trivernis 03a5dcbcc7 Add Query Complexity headers
- Add headers headers `X-Query-Complexity` and `X-Max-Query-Complexity`
5 years ago
trivernis 6c22ae1840 Fix Style Issue 5 years ago
trivernis 54d3643e9f Add graphql query complexity limit
- Add query complexity limit that is calculated with directive fields in the schema
- Add complexity limit config option in the config file
5 years ago
trivernis 5c3ec38289 Add Rate Limits
- Add rate limits to /graphql and /upload that can be configured in the config
- Change the default response timeout to 30 secons
5 years ago
trivernis 21e31fad8a Remove public files
- Remove the default public files which only was a stylesheet for the error pages
- Inline stylesheet for error pages
5 years ago
trivernis 57ee014bd6 Add redis connection to config
- Add a config property for the redis connection uri
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 0fbc7f68a6 Change api vote(..) return type
- Change vote return type to new type VoteResult to also return the post that was voted on
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 19c407fdf1 Add event and eventCount to User
- Add event field to UserData API interface
- Add eventCount field to UserData API interface
5 years ago
Trivernis a0ecb36064 Fix deletePost 5 years ago
Trivernis b1b5f82f95 Fixed critical bug UploadConfirmation couldn't be found 5 years ago
Trivernis 027ea73d08 Fix Style Issue 5 years ago
Trivernis f71636e376 Optimize profilePicture quality and size
- Optimize size by increasing the effort from 4 to 6
- Optimize quality with smartSubsampling
5 years ago
Trivernis 78425cc012 Move profilePicture upload to separate private method 5 years ago
Trivernis 827ac1ff95 Change routes structure
- Rename home to HomeRoute
- Rename upload to UploadRoute
- Remove index.ts
- Remove unused imports
5 years ago
Trivernis e413e76321 Add deletion of old profile pictures after uploading a new one 5 years ago
Trivernis 88f84a42b3 Change Profile picture format to webp 5 years ago
Trivernis cc100f967b Change file upload
- Move upload handling to seperate router at routes/upload.ts
- Change file upload directory to being "data"
- Change filename to being a time-based hash
5 years ago
Trivernis 82ded854ee Fix incomplete api error message 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 da90ba0c16 Added file upload
- added ability to upload profile pictures
5 years ago
Trivernis 4b67c0be41 Fixed invalid login on token generation 5 years ago
Trivernis 05e69aacf3 Event changes
- changed creation to group-admins only
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 69b47d7d8d Merge remote-tracking branch 'origin/julius-dev' into julius-dev 5 years ago
Trivernis e25095627e Added deleteable field to Post model 5 years ago
Trivernis e8499079d9 Fixed bug "deletePost doesn't work" 5 years ago
Trivernis bddcc84fba Fixed denyRequest
- fixed mutation denyRequest requiring the wrong params
- updated changelog
5 years ago
Trivernis 051f9206bb Implemented search function
- added graphql field search that searches for users/groups/events/posts
- marked searchUser as deprecated
5 years ago
Trivernis f103be95b3 Fixed style issue 5 years ago
Trivernis 1debb27933 Merge remote-tracking branch 'origin/julius-dev' into julius-dev 5 years ago
Trivernis 569b4a67f9 Added findUser implementation
- added findUser to the graphql resolvers
- changed default limit to 20
- removed special worker logging
- added error handling for worker initialization
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 6e5eab84a1 Added lib/regex tests 5 years ago
Trivernis ebc3970e0f Mocha tests
- added tests with mocha and chai
- added tests to jenkins pipeline
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
Trivernis 9b9d71998b Fixed seqelize logging without winston 5 years ago
Trivernis 61451882aa Cluster improvements
- added resource logging for clusters
- changed handling of logging
- moved to yarn for package management
5 years ago
Trivernis 8de1de44f1 Performance improvements
- added redis to socket.io 
- added node cluster and enabled running on all cpu cores
5 years ago
Trivernis 7785a118f2 Code cleanup 5 years ago
Trivernis 580f15da3d Fixed Handle whitespace
- removed whitespace from handles
- fixed character length not being detected
5 years ago
Trivernis dc3f9f1702 Auto stash before merge of "julius-dev" and "origin/julius-dev" 5 years ago
Trivernis 76f7593b02 Changed handle generation 5 years ago
Trivernis 157249c2f6 Merge remote-tracking branch 'origin/julius-dev' into julius-dev 5 years ago
Trivernis 1a918ddf64 Fixed logout error 5 years ago
Trivernis d305261a0a Added angular config option
- (converted to unix line endings)
- added angular index.html config to run angular apps
5 years ago
Trivernis e3c65f36b0 Added level to file logs 5 years ago
Trivernis b17fca2590 API changes and error pages
- added pagination for most list types
- added count for pagination list
- added 404 and 500 error page
5 years ago
Trivernis 5478f70098 Added email query field 5 years ago
Trivernis 9ee20adcc3 Added basic event functions
- added join function
- added leave function
5 years ago
Trivernis 78ac194d37 API additions
- implemented event creation
- added id to requests
- added getGroup, getRequest, getEvent by id to api
5 years ago
Trivernis 82d0e1bc59 Fixed friendships
- fixed problem with accepting friendships
- added removeFriend mutation
5 years ago
Trivernis 5c6dd6b24f Encapsulated group membership change
- added method to change group membership to dataccess
- added action to perform for group membership as enum to dataccess
5 years ago
Trivernis 72329f0ce8 Backend implementation of events 5 years ago
Trivernis e854dc2687 Added ranking fields
- added level and points field on user
5 years ago
Trivernis 43fbb5a6f2 Optimized imports
- grouped imports and removed obsolete ones
5 years ago
Trivernis 97ed21e469 implemented groups and password hashing
- added Groups with creator, admins, members, groupChats, name
- implemented hashing before storing the password in the database
5 years ago
Trivernis ba828da18a Fixed friends
- fixed friends field in gql api
5 years ago
Trivernis c68f11080f Data access improvements
- fixed votes
- added column constraints
- added post not found error to vote
5 years ago
Trivernis 298940cc32 Switched to typescript-sequelize
- delted old models
- deleted wrapper models
- integrated api functions in sequelize-typescript models
5 years ago
Trivernis 511a446c71 Fixed user voting 5 years ago
Trivernis 57338355a7 Added Sequelize
- added sequelize for database management
- added sequelize models under dataaccess/datamodels
- removed postgres-only stuff
5 years ago
Trivernis b671845337 Added CORS 5 years ago
Trivernis acfea36665 Added feed retrieval
- added the option to get feed items with getPost sorted by TOP or NEW
- fixed docker compose
5 years ago
Trivernis bc8455f84b Errors and Structure
- moved graphql stuff to a seperate directory
- added error for already existing email in database
5 years ago
Trivernis 2d0a6e3433 Implemented Socket.io
- added socket for chat messages
- added socket for new requests
- added socket for post creation
- added socket for created post
5 years ago
Trivernis 2ed4f9793a Changed to table creation
- changed creation and update to transaction type
- fixed creation file
5 years ago
Trivernis bf3be7d129 changed sql
- added create tables to anonymous block
5 years ago
Trivernis bf79df08ad changed table creation files 5 years ago
Trivernis aa761f98ca MemoryCache performance improvement
- switched to faster sha-1 function for hash strings
5 years ago
Trivernis b9655acc12 Implemented Request API
- implemented sendRequest, acceptRequest, denyRequest
5 years ago
Trivernis 770c8a35fa Fixed data loading
- fixed multiple loading requests on pending data load
5 years ago
Trivernis 46733d1046 Fixed import filename for caching on globals 5 years ago
Trivernis 7b94e4e3da Added in-memory caching
- added class for caching management
- added cache parameter to sql query object
- implemented caching for sql querys with cache = true
- added loglevel to config
- improved some methods of dataaccess classes to enable better caching
5 years ago
Trivernis 47d775fd2c Bug Fixes
- fixed Chatrooms
- fixed ChatMessages
5 years ago
Trivernis e1a9287641 Updated database for requests 5 years ago
Trivernis c97d0ffe55 Api functions
- added chat message functions
- added markdown rendering
- added custom error classes
5 years ago
Trivernis d7f819e02e More graphql implementation stuff
- implemented methods to get user and post information
- implemented methods to create chatrooms
5 years ago
Trivernis 84b683db11 Removed frontend part and added graphql implementation 5 years ago
Trivernis 1d97e3305e API implementation 5 years ago
Trivernis e6d2191266 Fixed graphql
- fixed graphql resolution
- added login, logout, acceptCookies implementation
5 years ago
Trivernis 6121aff29f Added chat data objects 5 years ago
Trivernis 40be59a9b7 Merge branch 'develop' into julius-dev 5 years ago
Trivernis 1b9e7e1a66 Fixed maxAge value of config 5 years ago
Trivernis 69e535276b Added sessions 5 years ago
Max 031ffd14fc added login and register page 5 years ago