Commit graph

544 commits

Author SHA1 Message Date
ro
c85e145774
added getbyIndex for pages, urlencode page titles
the theme controller was grabbing the index by its page name, which was
bad because that might change. that was replaced with a getById function
since the index id will always be 0 since it's the first page. this is a
seperate function from getByUuid which is a unique indentifier for each
page which was being used interchangably before the fix. all of those
references have been cleaned up to reference which type of id is needed

there was also a bug that happened on rendering when there were special
characters in the title. this was solved by saving the title as a
urlencoded string and then just decodded when it was needed for display
on the front end
2024-09-04 14:32:36 -06:00
ro
a0f7bff67c
updated sanitizer, fixed render on save
the module used to sanitize html is no longer maintained, so updated
that methodology to use symfony's very sexy sanitizer

checked to make sure render on save was working as well.
2024-09-04 13:29:06 -06:00
ro
0e6d4bd2b4
Case patch directory pathing
app was erroring out because classes in the upkeep directory could not
be found due to a case mix up where 'Upkeep' and 'UpKeep' were both
being used causing a path error because the actual directory is 'Upkeep.'
2024-08-30 16:14:15 -06:00
ro
2c8bd10391
added link to contributiong guide to readme
added a link straight to the contribution guide in the repo for easy
access
2024-08-05 15:56:45 -06:00
ro
5f40e7b98d
Contribution Guide
Made a md file for the contribution guide to give guidance to people who
want to help with the project.

It's a living document, so changes will be made as needed.
2024-08-05 15:53:34 -06:00
ro
38c907a08d
Updated project description
updated the README to detail what the project is and its goals. it's the
first draft so it will change over time, but it provides a bit more
insight into what Fipamo is
2024-08-04 14:37:41 -06:00
ro
ea9dbf025e
Settings API, Part 1
the first part of the setting API has been restored, with the methods
sync, publish and nav-sync restored to working order under the new API
pattern. Documentation for the API will be completed after the upgrade
is complete.

There was also a script error when trying to edit a page from the link
menu on the dashboard, so that has been fixed as well
2024-07-26 15:10:37 -06:00
ro
1d206b927d
navigation sync bug fix, api & settings cleanup
there was an error when reordering menu items due to a missing variable
to a service class, so that was patched

also removed unecessary code from api url definitions and settings
service class
2024-07-26 12:43:45 -06:00
ro
d8ed8b62c0
Page Admin API, part 2
page tasks have been changed to accept JSON data for the sake of
consistency across the API. The only API method that will accept form
data is file uploads.

Also restored the post, put and delete pattern for better organization
and clarity describing what each page method is for
2024-07-24 14:57:04 -06:00
ro
321feb9b92
Page Admin API, part 1
API accessible tasks (create, update, delete) have been updated to the
new format.

The controller needs to be cleaned up because it's a bit heavy and the
new API flow still needs to be properly documented, but it's a good
start
2024-07-23 17:46:45 -06:00
ro
4337a20fb8
API Improvements #116
API Security has been reworked to check if request is secure, verifies
the API token created on site setup given to every member, and then
confirms the system is accepting API requests by way of the API enabled
toggle in settings

API usage is now only meant for backend use, so this needs to be noted
in the docs
2024-07-17 16:41:11 -06:00
ro
c5afbb9131
API Decouplng Part 2
removed all remaining API requests from the front end and removed the
FipamoAdminAPI js file, changing it to ContentRequest as it now handles
posting data to the system directly, authenticating it self by checking
the embedded CSRF token that regulary rotates

also renamed MaintenanceManager to Maintenance request and moved it to
the same dir as ContentRequest as they are both libraries that connect
to the backend
2024-07-17 15:08:10 -06:00
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
4520c9b608
FIX: misnamed sorting attribute for uploaded files
when creating new ui elements for uploaded files, the 'data-source'
attribute was being created to store the upload path for the file which
is used to save that info in the page doc.

that attribute should be 'data-id' as that is what sortablejs looks for
when sorting element data into arrays
2024-07-09 13:38:02 -06:00
ro
9f6d1970ce
updated wiki link on README
Wiki link in README was still pointing to the old repo, so that needed
to be corrected
2024-07-06 17:45:28 -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
4723db98d5
ignore scripts/theme folder
removed files from the script/theme folder under assets because this
content will be changed dynamically when a site is published
2024-07-02 15:07:54 -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
c7aef33845
fix for #114 - incorrect variable reference
the settings page was failing to load because it was referencing a
parameter in the mail config data array that did not exist.

that's been fixed so the page loads properly
2024-06-04 14:23:41 -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
b268bfb49e
enviroment config template updated
the example file containing environment variables was updated to include fipamo
specific settings
2024-05-31 13:04:26 -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
db5ee3f87f
settings responsive pt. 1
ripped out all of the old responsive styles from the setting layou and
plugged in the new format.

still needs some polish but the new structure is in place, so progress
will be easier
2024-05-28 13:00:25 -06:00
ro
bdca7f4ace
fixed mobile menu
some script got removed during the restruction that included the js
handler for the mobile menu, so that was replaced with a css toggle to
keep it simple
2024-05-28 11:38:32 -06:00
ro
a5cf8816f0
themes setting tabbed styled
the themes tab has been brought into alignment with the new design, so
the only thing that remains is redoing responsive styles for the
settings page

whew
2024-05-26 14:38:46 -06:00
ro
f53716dba9
fixed form field styles
edits to the settings page threw of some form styles throughout the the
dashboard, so some quick css edits were needed to polish them up
2024-05-26 13:16:04 -06:00
ro
9bc0ae8bed
site features tab restyled
the section housing site features has been restyled and brough into
alignment with the new design

still needs responsive work
2024-05-24 16:22:11 -06:00
ro
428e74ae60
member profile tab styled
redid the css for the member profile tab under settings.

responsive style still need to be addressed, but that will happen after
all tabs have been converted to the new layout
2024-05-22 15:15:21 -06:00