Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* backend : endpoint pour obtenir la liste d'attente d'une salle d'écoute * fonctionnalité (presque) terminée - manque commentaire - nettoyage * refactor : convert snake_case to camelCase * refactor(backend) : reformat files * feat(frontend) : create environment variable for store the endpoint of backend feat(frontend) : musicQueue can be customized with id as parameters (url path : /musicQueue/[id] in place of /musicQueue with id hard coded) * fix : fix type in JSONTrack (backend and frontend) - primitive type only - good type for data stored * refactor(backend) : remove node-fetch library, now use Fetch API embedded (experimental) in node.js * refactor(backend) : replace spotify api call with fetch with spotify endpoint by spotify api package * chore(backend) : for future, allow to have multiple music platform using new class which extends MusicPlatform, and modify factory as in consequence * refactor(backend) : replace spotify api call with fetch with spotify endpoint by spotify api package * refactor : refactoring with rule of project : 2 spaces for indents * refactor : full rename "queue" by "room" in all files * fix(frontend) : fix active room display on react-native (tested on Android with Expo Go) * style(frontend) : add TextInput and Button components which permit to route to an active room whose id come from the text input * refactor : change event name of socket.io in client (frontend) and server (backend) to better blend in app * style(frontend) : import external font from file in app * style(frontend) : adapt room page to wireframe design and style * chore(frontend) : exclude android and ios compilation folder * chore(frontend) : improve and keep only .env.exemple * refactor(frontend) : light clean package.json * fix : delete duplicate files and imports after rebase * fix(backend) : delete duplicate lines which enabled cors * fix(backend) : fix routes * refactor : execute prettier * refactor : execute prettier after rebase * refactor : after npm install * fix(frontend) : make work app after merging code of main and code of this feature * fix(common) : resolve types file of database * fix(frontend) : delete duplicate file * refactor : place JSONTrack interface in commons folder to share the same file between front and back * refactor(backend) : eslint fix * refactor : suppress "Function type" warning * fixup! refactor(backend) : eslint fix * refactor : reset not my file as main * docs(frontend) : ide detect problem on this line * fix(frontend) : remove duplicate line * refactor : put RoomJSON interface in commons folder/package * refactor : rename EXPO_PUBLIC_API_ENDPOINT (my name) to EXPO_PUBLIC_BACKEND_API (equivalent name from main branch) * refactor : review thomas : delete unused View component in room tab * refactor : thomas's review : rename MusicStorage by RoomStorage everywhere * refactor : thomas's review : rename Track to TrackMetadata, make constructor private and replace this by static method newTrackMetadata which may return TrackMetadata (previously Track) or Error objects if parameters are invalid (only formal not in their API). Transform of toJSON static method which call music platform with surround of try keyword to avoid to stop program cause by error in external JS API. * refactor : use rewritten base component for this project in my code * refactor : clean useless comments through bobby review * refactor : put every component from expo\app\(tabs)\rooms\[id].tsx in separated files through bobby review * refactor(backend) : clean useless comments through bobby review * docs(backend) : clean useless comments and add useful other * refactor(backend) : extract method which get how many capturing group in a regex * refactor(backend) : delete useless attributes and methods in MusicPlatform : they have permitted to store all MusicPlatform subclass. With TrackFactory is now unused * feat(frontend) : make my components compliant with wireframe * feat(backend) : refactor room.ts and implement remove a track from a room (with track url or index in room). TrackFactory is created only when a room is created, not every track is added like before * feat(backend) : implement remove track from room feature in socket io : event queue:remove and queue:removeLink * refactor(backend) : set property which contain artist in JSONTrack to access all artists, not only main artist of track. All artist names are joined with comma separator to object of string type * fix(backend) : ignore string which is not URL when it tries to build Track object in TrackFactory.ts * refactor(backend) : Maxence's review : remove hand-defined type * refactor(backend) : Maxence's review : add space after comme between two artists name * refactor(backend) : Maxence's review : get image with minimal size but with width greater of 46 if possible * refactor(backend) : Maxence's review : remove comment disabling eslint analyse of one case * refactor(backend) : Maxence's review : split Track object builder with URL and id : new TrackMetadata is renamed to createFromURL and take only URL object as source and for id, you must use constructor which has a public visibility * refactor(backend) : Maxence's review : rename tracks by queue * refactor(frontend) : Maxence's review : use already coded function to get backend url * refactor(frontend) : Maxence's review : rename tracks by queue * refactor(frontend) : Maxence's review : remove Stack.Screen settings of room page * refactor(frontend) : Maxence's review : define socket io endpoint to backend through already coded function * fix(frontend) : remove problem change after rebase * fix(frontend) : merge noam and me work * fix(frontend) : catch error of spotify API in Spotify class * refactor(frontend) : remove useless comment * fix(backend) : fix forgotten route from main * fix(backend) : remove little code change between main and here * fix(backend) : I follow instruction in docs of fastify return reply if async function is used * fix(frontend) : adjust room create feature * fix(backend) : delete room mock creator and send to frontend uuid of room when this is created with success * refactor(backend) : make beautify import * feet(backend) : create new static method to get room from storage with uuid and code, these use database to check if this exists * feet(frontend) : allow to add spotify track url to a queue of a room * refactor: remove gadget differences with the main branch * fix: kept wrong types during rebase * fix: removed hard coded port for API url * refactor(frontend): using CustomTextInput component instead of TextInput from react * fix: using router.back instead of pushing ../ * fix: using rooms instead of active_rooms * refactor(backend): stopped using onAny * refactor(backend): renamed variable to a more precise intent * style(frontend): fixed slight overflow in tabs height causing vertical scrollbars * refactor(frontend): using custom components * refactor(frontend): using components properly * feat(ui): added style prop to button in case of necessary additional styles --------- Co-authored-by: MAXOUXAX <[email protected]>
- Loading branch information