From 3a82baec9d793edf81ac2b151b0f4d4159641375 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 1 Apr 2024 11:09:25 -0400 Subject: login and register, liking on homepage --- web/config/aesthetic.php | 59 ------------------------------------------------ web/config/routes.php | 7 ------ 2 files changed, 66 deletions(-) delete mode 100644 web/config/aesthetic.php delete mode 100644 web/config/routes.php (limited to 'web/config') diff --git a/web/config/aesthetic.php b/web/config/aesthetic.php deleted file mode 100644 index a2e4194..0000000 --- a/web/config/aesthetic.php +++ /dev/null @@ -1,59 +0,0 @@ -config = array( - '_common' => array( - 'js' => [ - 'js/thirdparty/jquery.min.js', - 'js/lib.js', - 'js/modal.js', - ], - 'css' => [ - 'css/common.css' - ], - ), - 'error' => array( - 'css' => [ - 'css/error.css' - ], - ), - 'home' => array( - 'js' => [ - 'js/routes/home.js', - 'js/post.js', - ], - 'css' => [ - 'css/home.css', - 'css/post.css' - ], - ), - ); - } - /** - * @param mixed $route - * @return array - */ - function get_files($route): array { - $js_files = $this->config['_common']['js']; - $css_files = $this->config['_common']['css']; - - if (array_key_exists($route, $this->config)) { - $config = $this->config[$route]; - if (array_key_exists('js', $config)) { - $js_files = array_merge($js_files, $config['js']); - } - if (array_key_exists('css', $config)) { - $css_files = array_merge($css_files, $config['css']); - } - } - - return array( - 'js_files' => $js_files, - 'css_files' => $css_files, - ); - } - -} diff --git a/web/config/routes.php b/web/config/routes.php deleted file mode 100644 index 78df332..0000000 --- a/web/config/routes.php +++ /dev/null @@ -1,7 +0,0 @@ -