diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 63bf415..47bfdba 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -3,9 +3,12 @@ namespace App\Http\Controllers; use Illuminate\Http\Request; +<<<<<<< HEAD +======= use App\User; use Nahid\Talk\Live\Broadcast; +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 class HomeController extends Controller { @@ -26,6 +29,9 @@ public function __construct() */ public function index() { +<<<<<<< HEAD + return view('home'); +======= $users = User::all(); return view('home', compact('users')); } @@ -35,5 +41,6 @@ public function tests() $b = new Broadcast(\Illuminate\Contracts\Config\Repository::class, \Vinkla\Pusher\PusherFactory::class); dd($b->tests()); +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 } } diff --git a/app/Http/Controllers/MessageController.php b/app/Http/Controllers/MessageController.php index 6bd99f8..26d6b27 100644 --- a/app/Http/Controllers/MessageController.php +++ b/app/Http/Controllers/MessageController.php @@ -72,4 +72,15 @@ public function tests() { dd(Talk::channel()); } +<<<<<<< HEAD + + public function index() + { + $users = User::all(); + return view('/home', compact('users')); + } + +} +======= } +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 diff --git a/config/app.php b/config/app.php index 57946a5..4aed31b 100644 --- a/config/app.php +++ b/config/app.php @@ -12,7 +12,11 @@ | any other location as required by the application or its packages. */ +<<<<<<< HEAD + 'name' => 'Test Chat 123', +======= 'name' => 'Talk Message', +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 /* |-------------------------------------------------------------------------- @@ -38,7 +42,11 @@ | */ +<<<<<<< HEAD + 'debug' => env('APP_DEBUG', true), +======= 'debug' => env('APP_DEBUG', false), +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 /* |-------------------------------------------------------------------------- @@ -51,7 +59,11 @@ | */ +<<<<<<< HEAD + 'url' => env('APP_URL', $_ENV['APP_URL']), +======= 'url' => env('APP_URL', 'http://localhost'), +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 /* |-------------------------------------------------------------------------- @@ -103,7 +115,11 @@ | */ +<<<<<<< HEAD + 'key' => env('APP_KEY', $_ENV['APP_KEY']), +======= 'key' => env('APP_KEY'), +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 'cipher' => 'AES-256-CBC', @@ -230,4 +246,8 @@ ], +<<<<<<< HEAD ]; +======= +]; +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 diff --git a/config/talk.php b/config/talk.php index 7dc57cf..4a9fd38 100644 --- a/config/talk.php +++ b/config/talk.php @@ -4,7 +4,11 @@ 'model' => 'App\User' ], 'broadcast' => [ +<<<<<<< HEAD + 'enable' => true, +======= 'enable' => false, +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 'app_name' => 'talk-example', 'pusher' => [ 'app_id' => env('PUSHER_APP_ID'), @@ -12,4 +16,8 @@ 'app_secret' => env('PUSHER_SECRET') ] ] +<<<<<<< HEAD ]; +======= +]; +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 diff --git a/public/chat/css/style.css b/public/chat/css/style.css index 8ac92da..daeaed6 100644 --- a/public/chat/css/style.css +++ b/public/chat/css/style.css @@ -86,6 +86,23 @@ body { color: #92959E; } +<<<<<<< HEAD +.people-list .unread-counter { + display: none; + height: 20px; + width: 20px; + + -moz-border-radius: 30px; + border-radius: 30px; + + background-color: #C5DDEB; + text-align: center; + float: right; + margin-left: 5px; + font-weight: bold; +} +======= +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 .chat { width: 490px; float: left; diff --git a/public/chat/js/talk.js b/public/chat/js/talk.js index a3cd82a..0b9b075 100644 --- a/public/chat/js/talk.js +++ b/public/chat/js/talk.js @@ -5,7 +5,15 @@ $(document).ready(function () { } }); +<<<<<<< HEAD + $('#message-data').on('keydown', function(event){ + if ((event.keyCode == 10 || event.keyCode == 13) && event.ctrlKey){ + $('#talkSendMessage').trigger('submit'); + } + }); +======= +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 $('#talkSendMessage').on('submit', function(e) { e.preventDefault(); var url, request, tag, data; diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 3dfe587..fae02c6 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -42,7 +42,11 @@
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 249bb48..1460cf0 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -3,6 +3,35 @@ @section('content')
+<<<<<<< HEAD +
+
+
List of users to chat with
+ @if(Auth::check()) + + + @foreach($users as $user) + @if ($user['id'] == Auth::user()->id) + @continue + @endif + + + + + @endforeach +
+ {{ $user['name'] }} + + Send Message +
+ @endif +
+
+
+
+ +@endsection +=======
All Users
@@ -27,3 +56,4 @@
@endsection +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 7180581..28fe2f9 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -71,7 +71,10 @@ +<<<<<<< HEAD +======= +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 @endif diff --git a/resources/views/layouts/chat.blade.php b/resources/views/layouts/chat.blade.php index f3851cf..709f81d 100644 --- a/resources/views/layouts/chat.blade.php +++ b/resources/views/layouts/chat.blade.php @@ -3,7 +3,11 @@ +<<<<<<< HEAD + Test Chat 123 +======= Talk Message +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 @@ -20,7 +24,11 @@
+<<<<<<< HEAD + Test Chat 123 +======= Talk Message +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93
@@ -86,9 +94,19 @@ $('#talkMessages').append(html); } +<<<<<<< HEAD + var conShow = funtion(data){ + console.log(data); + } +======= +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 {!! talk_live(['user'=>["id"=>auth()->user()->id, 'callback'=>['msgshow']]]) !!} +<<<<<<< HEAD +======= + +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 diff --git a/resources/views/partials/peoplelist.blade.php b/resources/views/partials/peoplelist.blade.php index 79d2b73..670d8b8 100644 --- a/resources/views/partials/peoplelist.blade.php +++ b/resources/views/partials/peoplelist.blade.php @@ -1,11 +1,35 @@
+<<<<<<< HEAD + +======= +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93
+<<<<<<< HEAD + {!! talk_live(['conversation'=>['id'=>$inbox->thread->conversation_id, 'callback'=>['con_show']]]) !!} +======= +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 @endif @endforeach +<<<<<<< HEAD
+======= + +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 7fab102..77b004c 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -5,7 +5,11 @@ +<<<<<<< HEAD + Test chat 123 +======= Talk Message +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 @@ -78,6 +82,12 @@
+<<<<<<< HEAD + Test Chat 123 +
+ + @@ -89,9 +99,14 @@

This is a demo project for Talk. So lets start your journey.

+>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 Registration
+<<<<<<< HEAD + +======= +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 diff --git a/routes/web.php b/routes/web.php index 36c41b6..74de176 100644 --- a/routes/web.php +++ b/routes/web.php @@ -19,7 +19,11 @@ Route::get('tests', 'MessageController@tests'); +<<<<<<< HEAD +Route::get('/home', 'MessageController@index'); +======= Route::get('/home', 'HomeController@index'); +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93 Route::get('message/{id}', 'MessageController@chatHistory')->name('message.read'); @@ -29,3 +33,8 @@ Route::delete('message/delete/{id}', 'MessageController@ajaxDeleteMessage')->name('message.delete'); }); +<<<<<<< HEAD + +Auth::routes(); +======= +>>>>>>> 08ed55357d1124fbf16f3a0a8a1d11baa1561e93