Skip to content

Commit 1c8a9ec

Browse files
author
root
committed
Bug fixes and added help view
1 parent 10598fc commit 1c8a9ec

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed

stubs/config/shibboleth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
'idp_login' => '/Shibboleth.sso/Login',
15-
'idp_logout' => '/Shibboleth.sso/Logout',
15+
'idp_logout' => '/Shibboleth.sso/Logout?return='.env('LOGOUT_URL'),
1616
'authenticated' => '/',
1717

1818

stubs/resources/js/bootstrap.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
window._ = require('lodash');
2+
3+
/**
4+
* We'll load the axios HTTP library which allows us to easily issue requests
5+
* to our Laravel back-end. This library automatically handles sending the
6+
* CSRF token as a header based on the value of the "XSRF" token cookie.
7+
*/
8+
9+
window.axios = require('axios');
10+
11+
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
12+
13+
let token = document.head.querySelector('meta[name="csrf-token"]');
14+
15+
if (token) {
16+
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
17+
} else {
18+
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
19+
}
20+
21+
22+
/**
23+
* Echo exposes an expressive API for subscribing to channels and listening
24+
* for events that are broadcast by Laravel. Echo and event broadcasting
25+
* allows your team to easily build robust real-time web applications.
26+
*/
27+
28+
// import Echo from 'laravel-echo';
29+
30+
// window.Pusher = require('pusher-js');
31+
32+
// window.Echo = new Echo({
33+
// broadcaster: 'pusher',
34+
// key: process.env.MIX_PUSHER_APP_KEY,
35+
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
36+
// forceTLS: true
37+
// });
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<x-app-layout>
2+
3+
<x-slot name="header">
4+
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
5+
{{ __('Help') }}
6+
</h2>
7+
</x-slot>
8+
9+
<div class="py-12">
10+
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
11+
<div class="p-5 text-center bg-white overflow-hidden shadow-xl sm:rounded-lg">
12+
<div class="text-4xl font-bold ">Let us help you!</div>
13+
<p class="text-gray-600 font-normal">
14+
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>
15+
</p>
16+
</div>
17+
</div>
18+
</div>
19+
</x-app-layout>

0 commit comments

Comments
 (0)