diff --git a/.env.example b/.env.example old mode 100644 new mode 100755 diff --git a/.github/workflows/phpapp.yml b/.github/workflows/phpapp.yml old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index ecfeacd..3c4276e --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ database/* www/static/* *.pid .env -data/session/* \ No newline at end of file +data/session/* +node_modules \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md old mode 100644 new mode 100755 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md old mode 100644 new mode 100755 diff --git a/LICENSE.md b/LICENSE.md old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 index f4cca87..0392876 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ ```bash composer install + npm run build ``` 4. Run the installer: diff --git a/app/controller/catalog/components.php b/app/controller/catalog/components.php old mode 100644 new mode 100755 index 8a0fd1f..52ace7c --- a/app/controller/catalog/components.php +++ b/app/controller/catalog/components.php @@ -7,9 +7,6 @@ public function index() { $this->meta->setTitle($this->language->get('meta_title')); $this->meta->setDescription($this->language->get('meta_description')); - $this->response->addStyle('https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css'); - $this->response->addScript('https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js'); - $classes = scandir(DIR_CORE . 'classes'); $this->data['classes'] = array(); diff --git a/app/controller/catalog/csrf_protection.php b/app/controller/catalog/csrf_protection.php old mode 100644 new mode 100755 diff --git a/app/controller/catalog/pagination.php b/app/controller/catalog/pagination.php old mode 100644 new mode 100755 diff --git a/app/controller/common/footer.php b/app/controller/common/footer.php old mode 100644 new mode 100755 diff --git a/app/controller/common/header.php b/app/controller/common/header.php old mode 100644 new mode 100755 index 3e7c39f..9ce20f4 --- a/app/controller/common/header.php +++ b/app/controller/common/header.php @@ -5,6 +5,8 @@ public function index() { $this->data['meta'] = $this->meta->getMetaTags(); $this->data['styles'] = $this->response->getStyles(); + + $this->response->addScript('/assets/js/app.js'); $scripts = $this->response->getScripts(); @@ -18,9 +20,7 @@ public function index() { $this->data['menu'] = $this->load->controller('common/menu'); - $this->response->addStyle('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css'); - $this->response->addStyle('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css'); - $this->response->addStyle($this->staticfile->getUri('css/style.css')); + $this->response->addStyle('/assets/css/app.css'); $this->data['styles'] = $this->response->getStyles(); diff --git a/app/controller/common/menu.php b/app/controller/common/menu.php old mode 100644 new mode 100755 diff --git a/app/controller/common/pagination.php b/app/controller/common/pagination.php old mode 100644 new mode 100755 diff --git a/app/controller/error/not_found.php b/app/controller/error/not_found.php old mode 100644 new mode 100755 index e9ad023..125d930 --- a/app/controller/error/not_found.php +++ b/app/controller/error/not_found.php @@ -9,9 +9,6 @@ public function index() { $this->data['heading_title'] = $this->language->get('heading_title'); - $this->response->addStyle('https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css'); - $this->response->addScript('https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js'); - $this->data['header'] = $this->load->controller('common/header'); $this->data['footer'] = $this->load->controller('common/footer'); diff --git a/app/controller/index.php b/app/controller/index.php old mode 100644 new mode 100755 diff --git a/app/language/en/catalog/components.php b/app/language/en/catalog/components.php old mode 100644 new mode 100755 diff --git a/app/language/en/catalog/csrf_protection.php b/app/language/en/catalog/csrf_protection.php old mode 100644 new mode 100755 diff --git a/app/language/en/catalog/pagination.php b/app/language/en/catalog/pagination.php old mode 100644 new mode 100755 diff --git a/app/language/en/common/menu.php b/app/language/en/common/menu.php old mode 100644 new mode 100755 diff --git a/app/language/en/en.php b/app/language/en/en.php old mode 100644 new mode 100755 diff --git a/app/language/en/error/not_found.php b/app/language/en/error/not_found.php old mode 100644 new mode 100755 diff --git a/app/model/demo/demo.php b/app/model/demo/demo.php old mode 100644 new mode 100755 diff --git a/app/view/catalog/components.twig b/app/view/catalog/components.twig old mode 100644 new mode 100755 index 5c1a680..55362c7 --- a/app/view/catalog/components.twig +++ b/app/view/catalog/components.twig @@ -1,25 +1,34 @@ {{ header }} -
{{ text_help }}
+{{ text_help }}
-{{ class }}
+ {{ class }}
+ {{ library }}
+
+ {{ library }}
+ {{ text_help }}
+{{ text_help }}
+