From 79639094bfcb75df305502ca27461ec9888ff8a2 Mon Sep 17 00:00:00 2001
From: Bitha17 <16521076@mahasiswa.itb.ac.id>
Date: Thu, 16 Nov 2023 01:04:33 +0700
Subject: [PATCH] chore: restructuring

---
 app/{Views/template => Client/components}/event.php |  0
 .../template => Client/components}/footer.php       |  0
 .../template => Client/components}/history.php      |  0
 .../template => Client/components}/navbar.php       |  0
 app/{Views => Client/pages}/event/create.php        |  0
 app/{Views => Client/pages}/event/update.php        |  0
 app/{Views => Client/pages}/history/history.php     |  0
 app/{Views => Client/pages}/home/home.php           |  0
 app/{Views => Client/pages}/login/login.php         |  0
 app/{Views => Client/pages}/login/register.php      |  0
 app/{Views => Client/pages}/pembelian/pembelian.php |  0
 .../pages}/profile/edit_profile.php                 |  0
 .../pages}/profile/view_profile.php                 |  0
 app/util.php                                        | 13 -------------
 14 files changed, 13 deletions(-)
 rename app/{Views/template => Client/components}/event.php (100%)
 rename app/{Views/template => Client/components}/footer.php (100%)
 rename app/{Views/template => Client/components}/history.php (100%)
 rename app/{Views/template => Client/components}/navbar.php (100%)
 rename app/{Views => Client/pages}/event/create.php (100%)
 rename app/{Views => Client/pages}/event/update.php (100%)
 rename app/{Views => Client/pages}/history/history.php (100%)
 rename app/{Views => Client/pages}/home/home.php (100%)
 rename app/{Views => Client/pages}/login/login.php (100%)
 rename app/{Views => Client/pages}/login/register.php (100%)
 rename app/{Views => Client/pages}/pembelian/pembelian.php (100%)
 rename app/{Views => Client/pages}/profile/edit_profile.php (100%)
 rename app/{Views => Client/pages}/profile/view_profile.php (100%)
 delete mode 100644 app/util.php

diff --git a/app/Views/template/event.php b/app/Client/components/event.php
similarity index 100%
rename from app/Views/template/event.php
rename to app/Client/components/event.php
diff --git a/app/Views/template/footer.php b/app/Client/components/footer.php
similarity index 100%
rename from app/Views/template/footer.php
rename to app/Client/components/footer.php
diff --git a/app/Views/template/history.php b/app/Client/components/history.php
similarity index 100%
rename from app/Views/template/history.php
rename to app/Client/components/history.php
diff --git a/app/Views/template/navbar.php b/app/Client/components/navbar.php
similarity index 100%
rename from app/Views/template/navbar.php
rename to app/Client/components/navbar.php
diff --git a/app/Views/event/create.php b/app/Client/pages/event/create.php
similarity index 100%
rename from app/Views/event/create.php
rename to app/Client/pages/event/create.php
diff --git a/app/Views/event/update.php b/app/Client/pages/event/update.php
similarity index 100%
rename from app/Views/event/update.php
rename to app/Client/pages/event/update.php
diff --git a/app/Views/history/history.php b/app/Client/pages/history/history.php
similarity index 100%
rename from app/Views/history/history.php
rename to app/Client/pages/history/history.php
diff --git a/app/Views/home/home.php b/app/Client/pages/home/home.php
similarity index 100%
rename from app/Views/home/home.php
rename to app/Client/pages/home/home.php
diff --git a/app/Views/login/login.php b/app/Client/pages/login/login.php
similarity index 100%
rename from app/Views/login/login.php
rename to app/Client/pages/login/login.php
diff --git a/app/Views/login/register.php b/app/Client/pages/login/register.php
similarity index 100%
rename from app/Views/login/register.php
rename to app/Client/pages/login/register.php
diff --git a/app/Views/pembelian/pembelian.php b/app/Client/pages/pembelian/pembelian.php
similarity index 100%
rename from app/Views/pembelian/pembelian.php
rename to app/Client/pages/pembelian/pembelian.php
diff --git a/app/Views/profile/edit_profile.php b/app/Client/pages/profile/edit_profile.php
similarity index 100%
rename from app/Views/profile/edit_profile.php
rename to app/Client/pages/profile/edit_profile.php
diff --git a/app/Views/profile/view_profile.php b/app/Client/pages/profile/view_profile.php
similarity index 100%
rename from app/Views/profile/view_profile.php
rename to app/Client/pages/profile/view_profile.php
diff --git a/app/util.php b/app/util.php
deleted file mode 100644
index da3c6d5..0000000
--- a/app/util.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-function preprocess($str) {
-    return str_replace(' ', '%20', $str);
-}
-
-function formatPrice($price) {
-    return number_format($price,0,',','.');
-}
-
-function isEmailValid($email) {
-    return filter_var($email, FILTER_VALIDATE_EMAIL);
-}
-?>
\ No newline at end of file
-- 
GitLab