From 7c9a0a262c9f683205a3a139c74f1f3b5fd0994b Mon Sep 17 00:00:00 2001 From: Faqih Muntashir Date: Thu, 18 Jun 2020 10:30:39 +0700 Subject: [PATCH] Mengubah ekstensi view menjadi jsx --- resources/js/Pages/Auth/{Login.js => Login.jsx} | 0 resources/js/Pages/Contacts/{Create.js => Create.jsx} | 0 resources/js/Pages/Contacts/{Edit.js => Edit.jsx} | 0 resources/js/Pages/Contacts/{Index.js => Index.jsx} | 0 resources/js/Pages/Dashboard/{Index.js => Index.jsx} | 0 resources/js/Pages/Organizations/{Create.js => Create.jsx} | 0 resources/js/Pages/Organizations/{Edit.js => Edit.jsx} | 0 resources/js/Pages/Organizations/{Index.js => Index.jsx} | 0 resources/js/Pages/Reports/{Index.js => Index.jsx} | 0 resources/js/Pages/Users/{Create.js => Create.jsx} | 0 resources/js/Pages/Users/{Edit.js => Edit.jsx} | 0 resources/js/Pages/Users/{Index.js => Index.jsx} | 0 resources/js/Shared/{BottomHeader.js => BottomHeader.jsx} | 0 resources/js/Shared/{DeleteButton.js => DeleteButton.jsx} | 0 resources/js/Shared/{FileInput.js => FileInput.jsx} | 0 resources/js/Shared/{FlashMessages.js => FlashMessages.jsx} | 0 resources/js/Shared/{Icon.js => Icon.jsx} | 0 resources/js/Shared/{Layout.js => Layout.jsx} | 0 resources/js/Shared/{LoadingButton.js => LoadingButton.jsx} | 0 resources/js/Shared/{Logo.js => Logo.jsx} | 0 resources/js/Shared/{MainMenu.js => MainMenu.jsx} | 0 resources/js/Shared/{MainMenuItem.js => MainMenuItem.jsx} | 0 resources/js/Shared/{Pagination.js => Pagination.jsx} | 0 resources/js/Shared/{SearchFilter.js => SearchFilter.jsx} | 0 resources/js/Shared/{SelectInput.js => SelectInput.jsx} | 0 resources/js/Shared/{TextInput.js => TextInput.jsx} | 0 resources/js/Shared/{TopHeader.js => TopHeader.jsx} | 0 resources/js/Shared/{TrashedMessage.js => TrashedMessage.jsx} | 0 resources/js/{app.js => app.jsx} | 0 resources/js/{utils.js => utils.jsx} | 0 webpack.mix.js | 4 ++-- 31 files changed, 2 insertions(+), 2 deletions(-) rename resources/js/Pages/Auth/{Login.js => Login.jsx} (100%) rename resources/js/Pages/Contacts/{Create.js => Create.jsx} (100%) rename resources/js/Pages/Contacts/{Edit.js => Edit.jsx} (100%) rename resources/js/Pages/Contacts/{Index.js => Index.jsx} (100%) rename resources/js/Pages/Dashboard/{Index.js => Index.jsx} (100%) rename resources/js/Pages/Organizations/{Create.js => Create.jsx} (100%) rename resources/js/Pages/Organizations/{Edit.js => Edit.jsx} (100%) rename resources/js/Pages/Organizations/{Index.js => Index.jsx} (100%) rename resources/js/Pages/Reports/{Index.js => Index.jsx} (100%) rename resources/js/Pages/Users/{Create.js => Create.jsx} (100%) rename resources/js/Pages/Users/{Edit.js => Edit.jsx} (100%) rename resources/js/Pages/Users/{Index.js => Index.jsx} (100%) rename resources/js/Shared/{BottomHeader.js => BottomHeader.jsx} (100%) rename resources/js/Shared/{DeleteButton.js => DeleteButton.jsx} (100%) rename resources/js/Shared/{FileInput.js => FileInput.jsx} (100%) rename resources/js/Shared/{FlashMessages.js => FlashMessages.jsx} (100%) rename resources/js/Shared/{Icon.js => Icon.jsx} (100%) rename resources/js/Shared/{Layout.js => Layout.jsx} (100%) rename resources/js/Shared/{LoadingButton.js => LoadingButton.jsx} (100%) rename resources/js/Shared/{Logo.js => Logo.jsx} (100%) rename resources/js/Shared/{MainMenu.js => MainMenu.jsx} (100%) rename resources/js/Shared/{MainMenuItem.js => MainMenuItem.jsx} (100%) rename resources/js/Shared/{Pagination.js => Pagination.jsx} (100%) rename resources/js/Shared/{SearchFilter.js => SearchFilter.jsx} (100%) rename resources/js/Shared/{SelectInput.js => SelectInput.jsx} (100%) rename resources/js/Shared/{TextInput.js => TextInput.jsx} (100%) rename resources/js/Shared/{TopHeader.js => TopHeader.jsx} (100%) rename resources/js/Shared/{TrashedMessage.js => TrashedMessage.jsx} (100%) rename resources/js/{app.js => app.jsx} (100%) rename resources/js/{utils.js => utils.jsx} (100%) diff --git a/resources/js/Pages/Auth/Login.js b/resources/js/Pages/Auth/Login.jsx similarity index 100% rename from resources/js/Pages/Auth/Login.js rename to resources/js/Pages/Auth/Login.jsx diff --git a/resources/js/Pages/Contacts/Create.js b/resources/js/Pages/Contacts/Create.jsx similarity index 100% rename from resources/js/Pages/Contacts/Create.js rename to resources/js/Pages/Contacts/Create.jsx diff --git a/resources/js/Pages/Contacts/Edit.js b/resources/js/Pages/Contacts/Edit.jsx similarity index 100% rename from resources/js/Pages/Contacts/Edit.js rename to resources/js/Pages/Contacts/Edit.jsx diff --git a/resources/js/Pages/Contacts/Index.js b/resources/js/Pages/Contacts/Index.jsx similarity index 100% rename from resources/js/Pages/Contacts/Index.js rename to resources/js/Pages/Contacts/Index.jsx diff --git a/resources/js/Pages/Dashboard/Index.js b/resources/js/Pages/Dashboard/Index.jsx similarity index 100% rename from resources/js/Pages/Dashboard/Index.js rename to resources/js/Pages/Dashboard/Index.jsx diff --git a/resources/js/Pages/Organizations/Create.js b/resources/js/Pages/Organizations/Create.jsx similarity index 100% rename from resources/js/Pages/Organizations/Create.js rename to resources/js/Pages/Organizations/Create.jsx diff --git a/resources/js/Pages/Organizations/Edit.js b/resources/js/Pages/Organizations/Edit.jsx similarity index 100% rename from resources/js/Pages/Organizations/Edit.js rename to resources/js/Pages/Organizations/Edit.jsx diff --git a/resources/js/Pages/Organizations/Index.js b/resources/js/Pages/Organizations/Index.jsx similarity index 100% rename from resources/js/Pages/Organizations/Index.js rename to resources/js/Pages/Organizations/Index.jsx diff --git a/resources/js/Pages/Reports/Index.js b/resources/js/Pages/Reports/Index.jsx similarity index 100% rename from resources/js/Pages/Reports/Index.js rename to resources/js/Pages/Reports/Index.jsx diff --git a/resources/js/Pages/Users/Create.js b/resources/js/Pages/Users/Create.jsx similarity index 100% rename from resources/js/Pages/Users/Create.js rename to resources/js/Pages/Users/Create.jsx diff --git a/resources/js/Pages/Users/Edit.js b/resources/js/Pages/Users/Edit.jsx similarity index 100% rename from resources/js/Pages/Users/Edit.js rename to resources/js/Pages/Users/Edit.jsx diff --git a/resources/js/Pages/Users/Index.js b/resources/js/Pages/Users/Index.jsx similarity index 100% rename from resources/js/Pages/Users/Index.js rename to resources/js/Pages/Users/Index.jsx diff --git a/resources/js/Shared/BottomHeader.js b/resources/js/Shared/BottomHeader.jsx similarity index 100% rename from resources/js/Shared/BottomHeader.js rename to resources/js/Shared/BottomHeader.jsx diff --git a/resources/js/Shared/DeleteButton.js b/resources/js/Shared/DeleteButton.jsx similarity index 100% rename from resources/js/Shared/DeleteButton.js rename to resources/js/Shared/DeleteButton.jsx diff --git a/resources/js/Shared/FileInput.js b/resources/js/Shared/FileInput.jsx similarity index 100% rename from resources/js/Shared/FileInput.js rename to resources/js/Shared/FileInput.jsx diff --git a/resources/js/Shared/FlashMessages.js b/resources/js/Shared/FlashMessages.jsx similarity index 100% rename from resources/js/Shared/FlashMessages.js rename to resources/js/Shared/FlashMessages.jsx diff --git a/resources/js/Shared/Icon.js b/resources/js/Shared/Icon.jsx similarity index 100% rename from resources/js/Shared/Icon.js rename to resources/js/Shared/Icon.jsx diff --git a/resources/js/Shared/Layout.js b/resources/js/Shared/Layout.jsx similarity index 100% rename from resources/js/Shared/Layout.js rename to resources/js/Shared/Layout.jsx diff --git a/resources/js/Shared/LoadingButton.js b/resources/js/Shared/LoadingButton.jsx similarity index 100% rename from resources/js/Shared/LoadingButton.js rename to resources/js/Shared/LoadingButton.jsx diff --git a/resources/js/Shared/Logo.js b/resources/js/Shared/Logo.jsx similarity index 100% rename from resources/js/Shared/Logo.js rename to resources/js/Shared/Logo.jsx diff --git a/resources/js/Shared/MainMenu.js b/resources/js/Shared/MainMenu.jsx similarity index 100% rename from resources/js/Shared/MainMenu.js rename to resources/js/Shared/MainMenu.jsx diff --git a/resources/js/Shared/MainMenuItem.js b/resources/js/Shared/MainMenuItem.jsx similarity index 100% rename from resources/js/Shared/MainMenuItem.js rename to resources/js/Shared/MainMenuItem.jsx diff --git a/resources/js/Shared/Pagination.js b/resources/js/Shared/Pagination.jsx similarity index 100% rename from resources/js/Shared/Pagination.js rename to resources/js/Shared/Pagination.jsx diff --git a/resources/js/Shared/SearchFilter.js b/resources/js/Shared/SearchFilter.jsx similarity index 100% rename from resources/js/Shared/SearchFilter.js rename to resources/js/Shared/SearchFilter.jsx diff --git a/resources/js/Shared/SelectInput.js b/resources/js/Shared/SelectInput.jsx similarity index 100% rename from resources/js/Shared/SelectInput.js rename to resources/js/Shared/SelectInput.jsx diff --git a/resources/js/Shared/TextInput.js b/resources/js/Shared/TextInput.jsx similarity index 100% rename from resources/js/Shared/TextInput.js rename to resources/js/Shared/TextInput.jsx diff --git a/resources/js/Shared/TopHeader.js b/resources/js/Shared/TopHeader.jsx similarity index 100% rename from resources/js/Shared/TopHeader.js rename to resources/js/Shared/TopHeader.jsx diff --git a/resources/js/Shared/TrashedMessage.js b/resources/js/Shared/TrashedMessage.jsx similarity index 100% rename from resources/js/Shared/TrashedMessage.js rename to resources/js/Shared/TrashedMessage.jsx diff --git a/resources/js/app.js b/resources/js/app.jsx similarity index 100% rename from resources/js/app.js rename to resources/js/app.jsx diff --git a/resources/js/utils.js b/resources/js/utils.jsx similarity index 100% rename from resources/js/utils.js rename to resources/js/utils.jsx diff --git a/webpack.mix.js b/webpack.mix.js index ac2efdb..8e51402 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -17,7 +17,7 @@ const tailwindcss = require('tailwindcss'); */ mix - .react('resources/js/app.js', 'public/js') + .react('resources/js/app.jsx', 'public/js') .postCss('resources/css/app.css', 'public/css/app.css') .options({ postCss: [ @@ -29,7 +29,7 @@ mix purgecss({ content: [ './resources/views/**/*.blade.php', - './resources/js/**/*.js' + './resources/js/**/*.jsx' ], defaultExtractor: content => content.match(/[\w-/:.]+(?