-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Apr 1, 2021
1 parent
9c7c49d
commit f3f9e7c
Showing
5 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
window._ = require('lodash'); | ||
|
||
/** | ||
* We'll load the axios HTTP library which allows us to easily issue requests | ||
* to our Laravel back-end. This library automatically handles sending the | ||
* CSRF token as a header based on the value of the "XSRF" token cookie. | ||
*/ | ||
|
||
window.axios = require('axios'); | ||
|
||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; | ||
|
||
let token = document.head.querySelector('meta[name="csrf-token"]'); | ||
|
||
if (token) { | ||
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; | ||
} else { | ||
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); | ||
} | ||
|
||
|
||
/** | ||
* Echo exposes an expressive API for subscribing to channels and listening | ||
* for events that are broadcast by Laravel. Echo and event broadcasting | ||
* allows your team to easily build robust real-time web applications. | ||
*/ | ||
|
||
// import Echo from 'laravel-echo'; | ||
|
||
// window.Pusher = require('pusher-js'); | ||
|
||
// window.Echo = new Echo({ | ||
// broadcaster: 'pusher', | ||
// key: process.env.MIX_PUSHER_APP_KEY, | ||
// cluster: process.env.MIX_PUSHER_APP_CLUSTER, | ||
// forceTLS: true | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<x-app-layout> | ||
|
||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 leading-tight"> | ||
{{ __('Help') }} | ||
</h2> | ||
</x-slot> | ||
|
||
<div class="py-12"> | ||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> | ||
<div class="p-5 text-center bg-white overflow-hidden shadow-xl sm:rounded-lg"> | ||
<div class="text-4xl font-bold ">Let us help you!</div> | ||
<p class="text-gray-600 font-normal"> | ||
Please contact <a class="inline-block rounded-lg bg-indigo-100 hover:bg-indigo-200 text-indigo-600 px-1 py-2" href="mailto:techsupport@uis.edu?subject={{ env('APP_NAME') }} Help">techsupport@uis.edu</a> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</x-app-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
<?php | ||
|
||
use App\Http\Controllers\UserController; | ||
use Illuminate\Support\Facades\Route; | ||
|
||
Route::get('/login', ['uses' => '\StudentAffairsUwm\Shibboleth\Controllers\ShibbolethController@login', 'as' => 'login']); | ||
|
||
Route::middleware(['auth:web', 'impersonate:web'])->group(function() { | ||
Route::view('/','home')->name('home'); | ||
|
||
Route::get('/user/impersonate-stop', [UserController::class, 'stopImpersonate']) | ||
Route::get('/user/impersonate-stop', 'UserController@stopImpersonate') | ||
->name('user.impersonatestop'); | ||
|
||
Route::get('/user/{user}/impersonate/', [UserController::class, 'impersonateUser']) | ||
Route::get('/user/{user}/impersonate/', 'UserController@impersonateUser') | ||
->name('user.impersonate'); | ||
|
||
Route::resource('/user', UserController::class); | ||
Route::resource('/user', 'UserController'); | ||
|
||
Route::view('/feedback', 'feedback.index'); | ||
|
||
Route::view('/help', 'help.index'); | ||
}); |