Craig Oates
d0ff0c812b
update storage and dashboard HTML templates (add & get features).
2 years ago
Craig Oates
953bfc5fb0
implement the 'add and get' functionality for storage routes.
2 years ago
Craig Oates
f5549e17a1
add files package (in /src/models and ritherdon-archive.asd file).
2 years ago
Craig Oates
6e7d2b6845
put copyright text in <p> tags (in footer.html template).
...
The text was wrapped in anything and was rendering weirdly in the
browser's inspector.
2 years ago
Craig Oates
0ce1aef3e4
change how site-wide-snippet file is stored and accessed.
...
The site-wide-snippet file is now a .js file and stored in /static/js
after the website's first run.
2 years ago
Craig Oates
63e3919970
update .gitignore to ignore site-wide-snippet.js in /static/js.
...
This file is copied to here on website's first run. This stops any
changes I make to the file during dev. time from clogging up the
commit history.
2 years ago
Craig Oates
015eda2b0a
initial steps for /storage/management defroute.
...
This is an end-of-session commit. I've got the route up and running
with the /user/storage HTML template rendering in the browser and
listing out the files in storage. I could do with adding a model and
storing the files meta-data in the database. This page could do with
rendering the images and placeholders (E.G.generic text file icon) for
non-image files.
2 years ago
Craig Oates
a89686c05f
add file uploads section to /user/dashboard.html template.
2 years ago
Craig Oates
c4f9f52ba8
add /storage/upload defroutes (single and multi file uploads).
2 years ago
Craig Oates
a855d9db90
refactor store-file functions to include more file types.
...
The original code was very ham-fisted in how it dealt with storing
files -- based on their file-types. The changes made here improves on
it and the store-file (for both raw and /storage paths) functions now
accepts more file types because of it.
2 years ago
Craig Oates
8106b5a5c5
rename site-settings function to get-site-settings in nera package.
...
The function call 'site-settings' was clashing with class and package
name 'site-settings'.
2 years ago
Craig Oates
d31c4ab38a
remove old defroutes.
2 years ago
Craig Oates
f626557b97
add system-data to data passed to the HTML GET routes in web.lisp.
...
System-data is a collection of the system settings and page data in
the database. It minimises the function calls in the defroute macros.
2 years ago
Craig Oates
2bb7d053e6
clean up old and unused code in HTML templates.
...
It was getting out of hand and difficult to navigate around the pages
when viewing them in the browser.
2 years ago
Craig Oates
e9792a6fa0
import archivo in main.css file.
2 years ago
Craig Oates
4c1b99fa08
add pages in init-db and write system-data func. in nera package.
2 years ago
Craig Oates
e765c3b24e
add and populate header and footer HTML templates.
...
The HTML is basic, just to get the sections to a usable state.
2 years ago
Craig Oates
9b8c5a7ca5
add archivo font.
2 years ago
Craig Oates
bb5f8fb482
update web.lisp, mostly around site settings and first-run set-up.
2 years ago
Craig Oates
2f819de9a2
add init-storage process and 'raw-path' I/O functions.
2 years ago
Craig Oates
f78beb7ea4
add CRUD features for 'page' table in DB and expand init-db process.
2 years ago
Craig Oates
161e9c6169
remove old code and update forms in /user/site-settings.html file.
2 years ago
Craig Oates
d0426a9494
add form for /page/set-nav-menu defroute in /user/edit-page.html.
...
I, also, changed templated data to use 'db-data' element in databag
passed to the djula HTML template.
2 years ago
Craig Oates
7e2f04d370
add can-delete check to /user/pages.html template.
2 years ago
Craig Oates
aacfcba654
add favicon link to /layouts/default.html template.
2 years ago
Craig Oates
9a50938c0d
implement get-image-dimensions function in utils package.
2 years ago
Craig Oates
4bac1e3db3
add enable-site-logo and site-name slots to site-settings class.
2 years ago
Craig Oates
6ecd555712
addd validation.lisp and pages.lisp files to ritherdon-archive.asd.
2 years ago
Craig Oates
e3471e82ea
update .gitignore to ignore /static/images and /site-wide-snippet.
...
These files will be created and populated via the site first-run
set-up process. This should stop the commit history getting clogged up
with needless and irrelevant changes in these files.
2 years ago
Craig Oates
4736db9bd2
add validation package.
2 years ago
Craig Oates
e4612d0711
create pages package and page class (for Mito to map to DB).
2 years ago
Craig Oates
b26b296e89
stubb out sections in site-settings.html (not implemented yet).
...
The sections are more a check-list at this point. Things I need to
implement. I've stubbed them out and going to call it a day. They HTML
I've used is rough but it give me something to work on next time I
work on this project.
2 years ago
Craig Oates
94e326a292
expand the site-settings.html template.
...
This is template still needs a lot of work done to it. The additions
in this commit focus on the set home page and enable/disable the
sign-up features.
2 years ago
Craig Oates
7e892f25b1
add {{content}} section to index.html template.
2 years ago
Craig Oates
d9e09c52f6
add site-settings functionality in web.lisp file.
...
This is work-in-progress for the site-settings section of the
website. These additional features in this commit focus on setting
home page and enabling/disabling the sign-up features.
2 years ago
Craig Oates
f1c79a9ecd
add integer-to-checkbox djula-filter (view.lisp).
2 years ago
Craig Oates
eb62ade5be
add condition check to checkbox-to-bool and remove bool-to-checkbox.
2 years ago
Craig Oates
6d4d16ec45
implement update-enable-sign-on-settings and set-home-page in nera.
2 years ago
Craig Oates
bfcef81763
add home-page slot to site-settings class.
2 years ago
Craig Oates
cb51a83605
implement /page/delete defroute and update redirects to /user/pages.
2 years ago
Craig Oates
45ef9fa84a
add role check and update 'pages' link in /user/pages.html template.
2 years ago
Craig Oates
b9180da6e2
implement /pages and /view/page/:slug defroutes in web.lisp file.
2 years ago
Craig Oates
f4744f14b7
update links to /page and /pages and add HTML templates.
...
The templates added allow the viewer to view the 'pages' individually or
as a list (index page of 'pages' basically).
2 years ago
Craig Oates
1c6781c945
implement the 'edit pages' functionality in web.lisp file.
2 years ago
Craig Oates
d6d5a58792
add /user/edit-page.html template.
...
This HTML template is very rough -- just basics to make it
operational.
2 years ago
Craig Oates
f0356b00f0
add /user/pages.html template.
...
This template displays a list of pages stored in the system in the
/storage directory. It is very rough -- only bare basics to get the
page operational.
2 years ago
Craig Oates
681033b1cd
add /pages link to /user/dashboard.html template.
2 years ago
Craig Oates
6b09c3e81c
update .gitignore to ignore the /storage directory.
...
This is so the data/pages/files/content used for testing the website
don't get mingled with the code-base.
2 years ago
Craig Oates
3937b626e8
finish implementing the /create/page defroute (HTTP POST).
2 years ago
Craig Oates
a477470a90
remove 'meta-data' from create-page.html template's HTML form.
...
This is prep. for getting a working version of the /create/page
defroute. My thinking at the minute is the logged in user can create a
'page' which is a page specific to the website and a 'post' of some
sort for an actual archive entry. I don't know how desirable or
feasible this design/approach is but I'm trying it to find out.
2 years ago