summaryrefslogtreecommitdiff
path: root/web/config/aesthetic.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-03-30 21:28:46 -0400
committerFreya Murphy <freya@freyacat.org>2024-03-30 21:28:46 -0400
commitef7b0e26fadb882e026f1b447b6d18259057c040 (patch)
treef5831c9c64b3fd95d8fa73b382d1717e10370684 /web/config/aesthetic.php
parentpost comments, refactor post loading, hide load more btn (diff)
downloadxssbook2-ef7b0e26fadb882e026f1b447b6d18259057c040.tar.gz
xssbook2-ef7b0e26fadb882e026f1b447b6d18259057c040.tar.bz2
xssbook2-ef7b0e26fadb882e026f1b447b6d18259057c040.zip
refactor asset dir, refactor oberver in lib
Diffstat (limited to 'web/config/aesthetic.php')
-rw-r--r--web/config/aesthetic.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/web/config/aesthetic.php b/web/config/aesthetic.php
index ed79653..a2e4194 100644
--- a/web/config/aesthetic.php
+++ b/web/config/aesthetic.php
@@ -7,9 +7,9 @@ class Aesthetic {
$this->config = array(
'_common' => array(
'js' => [
- 'js/jquery-3.7.1.min.js',
+ 'js/thirdparty/jquery.min.js',
'js/lib.js',
- 'js/shared/modal.js',
+ 'js/modal.js',
],
'css' => [
'css/common.css'
@@ -22,8 +22,8 @@ class Aesthetic {
),
'home' => array(
'js' => [
- 'js/shared/post.js',
'js/routes/home.js',
+ 'js/post.js',
],
'css' => [
'css/home.css',
@@ -32,8 +32,11 @@ class Aesthetic {
),
);
}
-
- function get_files($route) {
+ /**
+ * @param mixed $route
+ * @return array<string,>
+ */
+ function get_files($route): array {
$js_files = $this->config['_common']['js'];
$css_files = $this->config['_common']['css'];