Commit graph

80 commits

Author SHA1 Message Date
ro
3d17771f76
API Decoupling, Part 1
The first part of improving the API is removing all admin functions from
the front end so those no admin methods will be available client side.

The urls in the FipamoAdmin js file have been changed to post directly to the
system and they are handled from there. To account for this change
controller routes for every standard method have been created for better
organization and readability.

The FipamoAdmin js file will be integrated with the rest of the front
end code and will not be seperate library
2024-07-13 14:23:01 -06:00
ro
458b076f73
FEATURE: full asset restore from backup archive
the current restore process only restored images and not the additional
file types that are allowed, so that has been added

also tweaked the reset request to include the correct token so the
request does not fail API authorization
2024-07-09 16:26:01 -06:00
ro
d51071b2d3
added additional asset folders to back up script
the current file backup included images, but the additional asset types
such as sound files, video and docs were not being added if they
existed, so those have been added.

also tweaked the front end script to include the correct token for the
API so the backup request doesn't fail the auth check
2024-07-09 14:27:03 -06:00
ro
4113418c83
reorganized api, added token validation
regrouped api calls for better organization and to add a bit more
security. it now checks to make sure the incoming token matches the
current session to authorize requests
2024-07-06 17:41:32 -06:00
ro
ac543f3856
UPDATE: page deletion
page editor was missing soft delete of page as it had not been wired up
to the new api yet. oops
2024-07-06 16:23:23 -06:00
ro
d24df50d96
FEATURE: Full site restore
content restore was already enabled, so the last step was completing
file restorartion if there was a file archive uploaded

now that this has been added, full site restore from backup archives now
works.
2024-07-05 13:17:53 -06:00
ro
4e880092c1
FEATURE: File Backup
Turned on file backups that grabs uploaded images in the public
directory and saves them in a zip so they can be downloaded and
archived.
2024-07-03 14:30:32 -06:00
ro
bc7b1fe7ec
FEATURE: Restore to default
plugged in a new feature that will allow the site to be reset to its
default state, clearing out all content and configurations to start
fresh
2024-07-02 17:09:27 -06:00
ro
68469d958b
Fix for #115, theme css subdir deleted on publish
Patch for a bug that was deleteting the subdirectories of the theme css
folder holding additional theme assets  when being published and tested in the theme kit.

also removed an unneccessary helper script and organized directory
actions in their own helper file to keep it all tidy
2024-06-30 19:50:27 -06:00
ro
fb3aff6c85
automate environment file creation
added a post install script to the composer.json file to automate the
creation of the .env file which hold app specific configs

also added a helper function to create new keys in the future
2024-06-30 18:45:41 -06:00
ro
928d5468db
removed hard-coded page id in theme controller
theme controller class was using hard coded uuids to find and display
page data, so that's been tweaked so that is no longer needed and finds
what it needs based on what time of view is being requested

also connected it the the preview 👁️ button in the page edit screen so
page layouts based on the current theme can be seen before they are
published
2024-06-26 17:10:24 -06:00
ro
ed6f028598
added layout varible to sorting, updated ignore
data sorting needed a new variable to differentiate between index page
rendering and standard page rendering, so that was added to the return
as well as updating the render script to include the variable that
wasn't being added for tags

also updated the git ignore file to ignore global images that are not
used by the base system. the script theme folder needs to be ignore as
well as that is going to updated by the theme itself for front end
coding and not used by the system
2024-06-26 14:08:53 -06:00
ro
7c027beb92
menu update fix, asset path tweak
when pages where being unpinned from the main menu, there was an error
resulting from a missing method reference in the class

also rearranged some path references in the asset service class for the
sake of better organization
2024-06-25 17:01:10 -06:00
ro
37120efe18
asset moving for themes fixed, settings save patch
When testing themes, the script wasn't moving all assets that were in
subdirectories of the theme css folder, so that's been fixed so it moves
everything when testing a theme and rendering the site

there was also an issue with saving settings options because the script
was referencing email data that was no longer being provided from the
front end, so it was erroring out trying to save it. those references
have been removed so it's smooth sailing
2024-06-25 15:33:42 -06:00
ro
7d78476870
restore site error path
there was minor error with pathing to remove the back up zip once the
restore process finised

fixed
2024-06-12 15:09:58 -06:00
ro
e02f99da94
restore asset url check
in the restore init process, there is a space that restores assets from
a previous install but grabbing them directly from the site and saving
them to the install.

a check was added so this script only runs if that url has been set in
the init restore form
2024-06-12 14:59:07 -06:00
ro
59b9f481af
removed hard-coded environment paths; updated .env
there were places in the codebase where path to fipamo specific paths
and file were hard-coded into the system, reducing flexibility and
customozation for people that want to define their own path.

those hard-coded elements have been removed and replaced with references
to the env file so those paths can be changed to whatever is needed

the .env.example file has also been updated to contain default paths for
easier installation.
2024-06-12 14:53:10 -06:00
ro
e0994b32ab
mail error capture (#113)
tweaked error catching to return a message when the mail action fails
2024-06-05 13:50:45 -06:00
ro
b37e64d062
Updated Mailer (#113)
Removed email settings from settings.json and moved them to the .env
file to use Laravel's mailer functionality.

references to the old mailer has been removed from settings.json,
data sorting class and the settings template file

the front end script has also been updated to accomodate different
message types, starting with a test message so members can make sure the
settings defined in the .env are working
2024-06-05 13:33:11 -06:00
ro
9923f087a6
fix for tag sorting and html page render
when sorting tags on a fresh install, a fatal error happens when the tag
array is empty because it looks for a var that doesn't exist yet. that's
been patched

the settings json file was still referencing the old version of the base
theme, so it was crashing because it doesn't exist anymore. updating it
to the new theme name clears this error
2024-06-04 15:19:46 -06:00
ro
8704fdcfe1
fix for status check
legacy reference to depracated auth class was removed
2024-06-04 14:58:55 -06:00
ro
728a2e5a69
incorrect error capture for creating member secret
the init process was erroring out because instead of re-running the
script to make a valid token, it was not capturing the correct error, so
it would just fail

also the folder for saving config files needed to be created to save
them, so that addition was made as well
2024-06-02 21:33:20 -06:00
ro
2f405ffb6d
incorrect path to template files
init process was looking for template settings file in incorrect
location. fixed
2024-06-02 21:04:42 -06:00
ro
787c00a75b
improper reference in init class
init class needed to be udpated to correct the reference to the doc
services class.
2024-06-02 21:00:52 -06:00
ro
35c22913f8
incorrect path to init service class
there was a fatal error in the init process because it was looking for a
class that had been moved but the reference had not been updated, which
is now corrected
2024-06-02 20:52:01 -06:00
ro
91aa2703b6
avatar and background image upload fixed
uploading new member avatar and background images weren't uploading to
the correct location and the approprate files weren't being updated, so
that was been fixed.

the folks template in the init directory also needed be updated because
the system was looking for 'avatar' instead of 'avi' which was resulting
in some mismatch calls that were resulting in not found errors. the
variable is now 'avatar' everywhere for the sake of consistency.
2024-05-31 12:56:38 -06:00
ro
cd056336cd
file upload fix
found a minor bug that was preventing file uploads, so that was fixed.

also commented out some buttons that are for features that have not been
added just yet
2024-05-28 13:16:50 -06:00
ro
8c375e6ba1
update member info from settings
setting sync is working but member data was not being updated in the
folks file or in the current active session, so that's been addressed

still need to turn on avatar updating as well, but that is tied to
updating the settings page, so that will be handled when image uploads
for that area are reactivated
2024-05-13 13:36:06 -06:00
ro
064407aa88
implemented member repo class
a class for members was needed for long term handling of member
functions like login, update, status checking, etc so that class was
created and the AuthService class was removed as it was redundant and
it's functionaity moved to the member class
2024-05-13 12:06:05 -06:00
ro
36d04c8f68
reorganized services
service classes are beginning to swell as there functionality is being
fleshed out, so a new organizational structure was needed to make sure
class sizes don't become too large and to increase site managability and
legibilty as more features get added and the code base grows.

data is for retrieving, managing site information, assets interact with external files
and upkeep is for maintenance.

some additional tweaks were also made to the options menu template to
prep it for it's transition to a toolbar component
2024-05-12 22:14:53 -06:00
ro
7f1654d13b
controller reorganization
cleaned up the controller directory and renamed files to more approriate
names.

made the appropriate changes to RouteController as well as tweaking the
routing so it's simpler and easier to follow
2024-05-09 11:24:12 -06:00
ro
e09d85292a
added labels to forms (#102), init templates added
added some labels to login and set up forms for better accesibility and
clarity about what info is being requested.

found a bug in setting where the site would error out if it can't find
the correct config files instead of going to set up, so when config
files aren't present, it loads template files to continue to process.
still thinking about a better fix for this

also discovered that the init files needed for a fresh install had been
removed, so those are back in place
2024-05-08 15:55:27 -06:00
ro
bd25c0b104
route controller auth checking
there was no auth checking for dashboard and theme routing, so that's
been added
2024-05-08 12:27:56 -06:00
ro
b6425e2c07
quick clean up
changes to front end scripting has rendered some files obsolete so they
have been removed.

removed some todo notes that have already been implemented
2024-05-07 14:17:18 -06:00
ro
e224410cfa
navigation route fix
the route to show menu order was erroring because it was calling a
misspelled method, so that was fixed

also added some notes to improve the StartController
2024-05-06 15:18:05 -06:00
ro
cb99c44a33
implemented dynamic page rendering
html page rendering works, so the next step was to get dynamic page
rendering up and running, meaning instead of pages being exported to
html, they are instead rendered on the fly when the corresponding URL is
hit.

the StartController that handles page routing needs to be organized a
bit better as there is some confusion between index and regular page
files so it's clear where requests are going and what is the expected
response
2024-05-06 15:09:24 -06:00
ro
ceeb4a2573
page routing rework
routing needed more nuance than what was possible in the web routing
controller, so a new RouteContoller was created to identify requests and
then sending them to the correct controller to get the appropriatie page

this was necessary because routing the previous was erroring out because
when the system was looking for pages to display with dynamic page
creation it would get confused with prexisting routes and choose to
display whatever the Start Controller was capturing, ignoring routes
defined in the web controller.

but that's been cleaned up without having to re-write everything and
continues to use existing controllers
2024-05-06 13:37:26 -06:00
ro
6cb9631a46
intergrated the fipamo theme kit
a basic preview engine has been added to ease the process of editing
pages. currently it previews all basic templates and custom created
pages

this is will replace the external fipamo theme kit tool, which will be
archived
2024-04-25 15:03:06 -06:00
ro
8bf640ee18
edited asset moving class
conversion of markdown files to html works fine, but the coresponding
css, js and image assets were not being moved, so the class responsible
for moving them was edited so theme assets are moved to their
    appropriate directories when the site is published.

also made some css and image edits, and removed a legacy css files that
were no longer in use
2024-04-25 13:17:24 -06:00
ro
a92e124957
default theme clean up
the default theme included with fipamo was a bit janky, so that's been
cleaned to bring it more inline with current accessiblility standards,
an updated mobile friendly menu, updated the logo and plugged in the
fresh colors.

the layout is still a bit boring but the main purpose of the default is
to show how templating works, so it needs to be kept as simple as
possible

but it still has some room for making it pop a bit more.
2024-04-23 13:41:41 -06:00
ro
69eb9905a2
update tags on page save
the list of tags was not being updated when an edited page was saved,
which is needed for the front end tags page.

all cleaned up and active
2024-04-22 15:19:06 -06:00
ro
234453b900
update site back up and restore process
the back up process did not include saving document and video assets so
that needed to be updated to save all of those references along with
images

once that was done, the restore process had to be updated to look for
docs and videos and create the corresponding directories to move them
too

the script responsible for moving those assets was also streamlined so a
seperate process was not needed for each asset type.

the last update date in the settings template was displaying
incorrectly, so that was fixed as well.
2024-04-22 13:11:51 -06:00
ro
b2493820e9
activated image transfer for restore process
rather than make a massive downloadable archive file for ever image on
the site (which still may happen), a method has been added to make
copies of imags from an external site and store them on the fresh
install based on the image list saved in the created back up file

it's clean but some additional error checking is needed so the process
does not crash out when a file can't be located and upon completion the
user can be notified of what images did not make it over in the process
2024-04-18 14:36:05 -06:00
ro
2f0e1fdc62
implemented install from scratch
activated the fresh install process for setting up a brand new fipamo
install
2024-04-16 15:36:57 -06:00
ro
f8005aa60d
turned on backups
ported over the backup functionality from the old build to the new while
making  few tweaks

instead of packaging up all files in the site to create massive zip
files, now a list of files is created for the user and blog directories
that the system will use to download and put them in the appropriate
directories, resulting in a such slimmer backup file.

archiving images my be added at a later date, but will be kept seperate
from the current back up process
2024-04-05 12:29:38 -06:00
ro
1f62e6f816
reworked sorting service class
decided to keep the sorting service class as is and remix how it works to
return data objects rather than just settings information to render
pages.

the overall size of the class is still large but now there are
some opportunites to move around some methodolgy to reduce it.

also made the necessary changes in the render service class and the
theme controller to use the new methodology
2024-03-28 16:42:37 -06:00
ro
9a716acb29
removed string service
moved methods of string service to helper function and got rid of the
string service class

still messing around with the sorter helper to see how dependecies work.
sorting as a helper may be a bit too complex for what help functions are
supposed to be
2024-03-28 15:13:13 -06:00
ro
65220fe06a
added helper function scaffolding
some serivce classes are getting to heavy, so some functionality will be
offloaded to custom helper function for better manageability and
readability.

a couple of place holders have been added to demonstrate how helpers
will be organized
2024-03-27 14:04:19 -06:00
ro
3c6322ec12
actived menu editing
the last ui page that needed to be added was managing the main
navigation menu for rendered pages, so that's been turned on. menu
items can be added by pinning pages to the menu when editing them and
can be removed by unpinning them or deleting them from the navigation
edit ui

it touched quite a few systems so all of those classes needed to be
edited as well tweaking the front end script to work with the new
modular script format
2024-03-22 14:35:44 -06:00
ro
252059df19
settings syncing active
turned on the abiity to save settings to config file via the settings
page

the current member session needs to updated by the data coming in but
that will be handled by a specific member service that hasn't been built
yet, so just commenting it out for now

also fixed a minor bug that was stopping the save on render toggle from
working correctly, so now it's saving and updating the status properly
now
2024-03-19 16:35:02 -06:00