aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Added readmemainRaymaekers Luca2024-10-211-0/+12
|
* markup cleanupRaymaekers Luca2024-10-212-4/+6
|
* Do not list ideas redirect: redirect insteadRaymaekers Luca2024-10-212-16/+3
|
* Fix typoRaymaekers Luca2024-10-141-1/+1
|
* Split server code and http codeRaymaekers Luca2024-10-1211-247/+549
| | | | | | | | | | | | | | | | | | | | | | | | Create multiple instances of Ideez by running NewIdeez(), after creating they can be added to the Ideezes slice to manage them. NewIdeez() imports the data and registers the routes. main.go has the code for managing the instances and server.go has the code coupled to a single instance. For eg. main.go has the code which checks files with .data extension in data directory, and imports servers on startup. - Add import functionality - Add nginx configuration - Add style and copy animation - Check for https with "X-Forwarded-Proto" - Change assets and templates to reflect the new id change - Change port to 15118 - Add Id field to Idea - Do not check for duplicate titles anymore - Extract ideez_servers into const variable - Extract documentation in doc.go - Rename Server -> Ideez - Rename t_idea/ -> templates/ - Fix cancel not working with form by using javascript instead - Set logger prefix in different contexts
* add (edit) on date field after idea is editedRaymaekers Luca2024-10-091-1/+1
|
* Add typescript codeRaymaekers Luca2024-10-094-19/+147
| | | | | | | - Migrated javascript to typescript for type safety and learning - created a tsconfig.json for frontendjavascript Note: We keep the javascript file because this makes it easier to deploy
* Change CreatedAt to LastUpdatedRaymaekers Luca2024-10-093-20/+28
| | | | - The field now changes when the idea is edited.
* Fixed edit function not working because js bsRaymaekers Luca2024-10-062-11/+10
| | | | | Because for loop would declare a global variable, the closures would use the el of previous scope.
* Removed the comment coedv0.2.0Raymaekers Luca2024-09-301-10/+1
|
* Changed text to <pre>Raymaekers Luca2024-09-302-1/+2
|
* Fixed css stylingRaymaekers Luca2024-09-291-1/+6
| | | | Updated the edit page such that the input areas would not overflow.
* Added og meta tagsRaymaekers Luca2024-09-293-1/+7
|
* Added / -> /ideas/ redirectionRaymaekers Luca2024-09-291-0/+4
|
* Added edit functionalityv0.1.0Raymaekers Luca2024-09-295-126/+236
| | | | | | | | | | | | Added a new edit functionality and page with styling. Other minor changes: - Added assets folder served under /static/ - Created a new template edit.html - grouped ideas.html and edit.html under t_idea - Changed router to use mux and organized routes - Added more checks on empty titles - Added javascript to t_idea/index.html for intuitive button functionality
* added ui changesRaymaekers Luca2024-09-281-2/+2
|
* Added create data file if not existRaymaekers Luca2024-09-281-23/+34
|
* added ui changesRaymaekers Luca2024-09-282-11/+39
| | | | | | | | | - Added a delete button next to each idea instead of deleting them by name - Changed Post to Think - Added a text when there are no ideas - Added more CSS for the create - Added checks for denying empty fields
* Added Idea CRDRaymaekers Luca2024-09-282-24/+128
| | | | | | | | - Also added sending back errors to the template for displaying what went wrong. - Renamed Description to Text - Added Delete operation for an idea - Removed Store type because it had no real value
* Added datafile for persistent ideasRaymaekers Luca2024-09-274-53/+83
| | | | | | | | | | | | | The data file uses a version number for debugging and is serialized into a data file, for now this is good enough but because of encapsulating the data in a struct there is no convenient way of appending to the Ideas slice. - Removed the Rating as it is not really constructive. - Added handling of SIGINT to keep the data even on exit from air of Ctrl-c - Removed example data - Use log instaed of fmt everywhere - Removed Makefile
* initRaymaekers Luca2024-09-275-0/+166