Craig Oates
c1e664b631
remove unused code from archive-entry class.
2 years ago
Craig Oates
eff71bcbfe
import archive package to nera package.
2 years ago
Craig Oates
d6cc11dc03
create archive package, archive-entry model and add to .asd file.
...
This is a rough sketching out of what the model/data needs to look
like. This model is what will be connecting the site's archive (Nic's
artwork entries) with the Meilisearch service -- running alongside
each other. I don't know how much this model is going to change but
expect it to in future commits.
2 years ago
Craig Oates
6a67a7cfc7
add thumbnail features to delete and rename storage file routes.
2 years ago
Craig Oates
80aab44c00
refactor 'create thumbnail' code in web.lisp to call from utils.
...
I've applied the changes to the singe and multi upload defroutes.
2 years ago
Craig Oates
592c38759f
move create-thumbnail code to utils (reduce duplicated code).
2 years ago
Craig Oates
13d1e31c13
rafactor /storage/view route and add a route/process for thumbnails.
...
When uploading a file, a thumbnail is made (if an image, using the
Image Magick program with Bash). This file is not stored in the
database. It is a file-system only thing. The reason for adding this
is some I can create HTML templates/defroutes which show a list of the
images in /storage/media without saturating the viewers bandwidth.
2 years ago
Craig Oates
2c069573db
update /user/storage.html template to use build-thumbnail filter.
...
I, also, removed code made redundant by build-thumbnail filter.
2 years ago
Craig Oates
44c7ebbc90
add @build-thumbnail (djula) filter in view.lisp file.
2 years ago
Craig Oates
6d8fa33b97
remove get-latest-file-type code from storage package.
2 years ago
Craig Oates
a15619de56
add woo server to ritherdon-archive.asd file.
...
Added it so I can switch between hunchentoot and woo whenever I
want. No real reason to choose one over the other at the moment.
2 years ago
Craig Oates
7a6f330497
begin defroutes for viewing files in /storage/media.
...
I need to work on this functionality a bit more. This is an end of
session commit. Started it and it works but needs expanding.
I could do with adding file-type checks and changing 'octet/stream' to
something like 'image/png' depending on the file-type (storage in
DB). This will stop the browser from downloading every file in
/storage/media and allow the files which can be viewed in the
browser (like images).
2 years ago
Craig Oates
104ac264a8
change /storage routes to use slugs over filenames (HTTP POST).
2 years ago
Craig Oates
4c99109388
export delete-storage-file from nera package.
2 years ago
Craig Oates
1cf86c674c
end-of-session-commit: working on /storage/delete/:slug defroute.
...
Need to test it and make sure the logic in the various 'cond' sections.
2 years ago
Craig Oates
191f5b2c22
add delete-storage-file function in nera package.
2 years ago
Craig Oates
0331999136
refactor code calling get-storage-file and add storage/rename route.
2 years ago
Craig Oates
f3d856f7f4
add keyword args to get-storage-file and write rename-storage-file.
...
These changes are in the nera package. I, also, got Emacs to auto
format the file -- that is why is are loads of line changes in the diff.
2 years ago
Craig Oates
b9848197e7
add storage-upload defroutes (single and multiple) in web.lisp file.
2 years ago
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