From f6408e0c2fa1c577e9b3e22311799980b75a5b44 Mon Sep 17 00:00:00 2001 From: Richard Bishop Date: Sat, 24 Mar 2018 18:36:08 +0000 Subject: [PATCH] Add recaptcha component to render it in the thread modal --- resources/assets/js/app.js | 1 + resources/assets/js/components/Recaptcha.vue | 24 ++++++++ resources/views/modals/new-thread.blade.php | 2 +- resources/views/threads/create.blade.php | 64 -------------------- 4 files changed, 26 insertions(+), 65 deletions(-) create mode 100644 resources/assets/js/components/Recaptcha.vue delete mode 100644 resources/views/threads/create.blade.php diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index cb42bb4..e8f3895 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -25,6 +25,7 @@ Vue.component("activity-favorite", require("./components/ActivityFavorite")); Vue.component("activity-reply", require("./components/ActivityReply")); Vue.component("activity-thread", require("./components/ActivityThread")); Vue.component("wysiwyg", require("./components/Wysiwyg.vue")); +Vue.component("recaptcha", require("./components/Recaptcha.vue")); Vue.component("dropdown", require("./components/Dropdown.vue")); Vue.component("channel-dropdown", require("./components/ChannelDropdown.vue")); Vue.component("logout-button", require("./components/LogoutButton")); diff --git a/resources/assets/js/components/Recaptcha.vue b/resources/assets/js/components/Recaptcha.vue new file mode 100644 index 0000000..49c2831 --- /dev/null +++ b/resources/assets/js/components/Recaptcha.vue @@ -0,0 +1,24 @@ + + + + diff --git a/resources/views/modals/new-thread.blade.php b/resources/views/modals/new-thread.blade.php index 3a2891c..e345f7d 100644 --- a/resources/views/modals/new-thread.blade.php +++ b/resources/views/modals/new-thread.blade.php @@ -29,7 +29,7 @@
-
+
diff --git a/resources/views/threads/create.blade.php b/resources/views/threads/create.blade.php deleted file mode 100644 index f6ffcd3..0000000 --- a/resources/views/threads/create.blade.php +++ /dev/null @@ -1,64 +0,0 @@ -@extends('layouts.app') - -@section ('head') - -@endsection - -@section('content') -
-
-
-
-
Create a New Thread
- -
-
- {{ csrf_field() }} - -
- - -
- -
- - -
- -
- - -
- -
-
-
- -
- -
- - @if (count($errors)) -
    - @foreach ($errors->all() as $error) -
  • {{ $error }}
  • - @endforeach -
- @endif -
- -
-
-
-
-
-@endsection