Commit Graph

234 Commits

Author SHA1 Message Date
Niko f40c9c7437 Added user profile button on nav
* Add default_profile.png file on assets
* Create navmenu.js module
* Load "app" on regular javascript inside template
2022-02-11 15:48:39 +01:00
Niko 4139c9ef74 Advancing /app home UI + Added theming system
* Header nav scheme done
* Added template (components) for nav buttons
* Created few css for the whole app (+ theme light)
2022-02-11 15:12:25 +01:00
Niko e9d69b7d0f Added a way to include template args as string 2022-02-11 13:46:27 +01:00
Niko 5f98b94ff3 Added forkawesome fonts + script to download specific version 2022-02-11 12:51:30 +01:00
Niko 9fdcda37fa Added proto-1 icons for FediLove 2022-02-11 12:50:07 +01:00
Niko 553c7d17a5 Avancing in profile.php module to show public profile
* Get urlargs correctly (username from URL)
* Validate the username by the regex
* Get $actor to be used in page HTML
2022-02-11 01:50:52 +01:00
Niko 7706c71f6d Added methods to retrieve Actor information (by ID, username) 2022-02-11 01:49:13 +01:00
Niko 0206084508 Changed MEDIA_DIR to DATA_DIR to hold assets too 2022-02-11 01:46:55 +01:00
Niko 2b5c2fdc5c Create function to validate usernames (by regex) 2022-02-11 01:26:33 +01:00
Niko 88db2c2919 Added a way to template environment variables inside NGINX config using docker
* Created configuration for storing media (avatars, images, videos...)
2022-02-11 01:24:25 +01:00
Niko 390cffbed2 Fix /@username page routing 2022-02-11 00:10:14 +01:00
Niko c396898925 Redirect to /login when there is no session (enforcing) + New templates 2022-02-11 00:05:26 +01:00
Niko cc186de4aa Created method to get URL args consistently 2022-02-10 10:50:35 +01:00
Niko beb561a5e5 Support regex on config/routes.php + further wrapping of routes 2022-02-10 10:38:16 +01:00
Niko d0f5ea233f Improved environment checking 2022-02-10 02:50:21 +01:00
Niko 8718c099f8 Improved kernel routing system 2022-02-10 02:39:26 +01:00
Niko a3c0ac7ab6 Added improved session enforcing and redirection methods 2022-02-10 02:08:46 +01:00
Niko f9540b9aab Fixed DB class not finding $manager + Refactor methods to be similar to Node 2022-02-10 02:07:53 +01:00
Niko 3a3cf576e5 Added mongodb support for PHP "web" service
* Created new Dockerfile with the needed installs
* Created database.php simple class for MongoDB simplify and queries
2022-02-10 01:32:00 +01:00
Niko 4cf4de2b20 Added templating for css (styles) and other generic files
* Fixed null files was causing error on foreach
2022-02-09 22:54:49 +01:00
Niko 2f406745a8 Fix script ns ("." based name) replacement to "/" 2022-02-09 22:28:46 +01:00
Niko 46f922721d Done login flow to obtain session cookie + more base code
* Added templating system for .php files inside _templates/
* Use templating system with tpl* functions in base.php
* Added templating to include scripts and other properties for tpl .php files
* Added http.js, a regular JS helper for xhr-related operations
* Added COOKIE check in PHP to redirect to APP_DIR
2022-02-09 22:22:41 +01:00
Niko 56bca7e0a0 A lot of changes in /web
* Moved /web endpoint to /app + created a link
* Create kernel includer for pages
2022-02-09 21:05:27 +01:00
Niko 7e0abcbc17 Add actor URL redirection to /@username when Accepts text/html 2022-02-09 19:46:08 +01:00
Niko 83e34a6dd4 Make /@ URL pass to "web" + redirect to /u/username if activity+json 2022-02-09 14:26:41 +01:00
Niko d775e56c35 Reimplement well-known WebFinger to support multiple aliases and specify profile-page 2022-02-09 14:15:06 +01:00
Niko a22f8a352b Forgot to store actor in the apex.store 2022-02-09 02:39:06 +01:00
Niko 7246b38a3d Create system user for signing Person actors + improvements 2022-02-09 02:09:32 +01:00
Niko 93b7593151 Change default database name + cleaner code 2022-02-08 23:25:55 +01:00
Niko 4abbcc690b Added /accounts/login API for logging in users using "email" + "password" 2022-02-08 23:19:53 +01:00
Niko bc2a9e2eb7 Add "activated": 1 to user document on created (TODO: change it later) 2022-02-08 22:29:58 +01:00
Niko 95436a59b3 Added register account API + Changes needed
* Added .env to .gitignore
* New dependencies on package.json
* Moved database connection to a "db.js" module
* Changed API ActivityPub params
* Added new APIs on "server.js"
* Added needed env variables on .env
2022-02-08 22:22:42 +01:00
Niko dbd336be33 initial commit 2022-02-08 14:07:18 +01:00
Bofh 9d72e9c732 Initial commit 2022-02-08 13:04:20 +00:00