Skip to content

Commit c76089c

Browse files
update-v4
1 parent 5ea6216 commit c76089c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+15164
-23688
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Livewire;
4+
5+
use Livewire\Component;
6+
7+
class ForgotPasswordExample extends Component
8+
{
9+
public function render()
10+
{
11+
return view('livewire.forgot-password-example');
12+
}
13+
}

app/Http/Livewire/Index.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Livewire;
4+
5+
use Livewire\Component;
6+
7+
class Index extends Component
8+
{
9+
public function render()
10+
{
11+
return view('livewire.index');
12+
}
13+
}

app/Http/Livewire/LoginExample.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Livewire;
4+
5+
use Livewire\Component;
6+
7+
class LoginExample extends Component
8+
{
9+
public function render()
10+
{
11+
return view('livewire.login-example');
12+
}
13+
}

app/Http/Livewire/Profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Profile extends Component
2121
'user.address' => 'max:20',
2222
'user.number' => 'numeric',
2323
'user.city' => 'max:20',
24-
'user.zip' => 'numeric',
24+
'user.ZIP' => 'numeric',
2525
];
2626

2727
public function mount() { $this->user = auth()->user(); }

app/Http/Livewire/RegisterExample.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Livewire;
4+
5+
use Livewire\Component;
6+
7+
class RegisterExample extends Component
8+
{
9+
public function render()
10+
{
11+
return view('livewire.register-example');
12+
}
13+
}

app/Http/Livewire/UpgradeToPro.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Livewire;
4+
5+
use Livewire\Component;
6+
7+
class UpgradeToPro extends Component
8+
{
9+
public function render()
10+
{
11+
return view('livewire.upgrade-to-pro');
12+
}
13+
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"dependencies": {
5656
"@fortawesome/fontawesome-free": "5.11.2",
5757
"@popperjs/core": "^2.6.0",
58-
"bootstrap": "5.0.0-beta1",
58+
"bootstrap": "5.0.1",
5959
"chartist": "^0.11.4",
6060
"chartist-plugin-tooltips": "0.0.17",
6161
"cross-env": "^7.0.3",
@@ -66,16 +66,17 @@
6666
"simplebar": "^6.0.0-beta.2",
6767
"smooth-scroll": "^16.1.0",
6868
"sweetalert2": "^9.17.1",
69-
"vanillajs-datepicker": "^1.0.3",
69+
"vanillajs-datepicker": "^1.1.4",
7070
"waypoints": "4.0.1"
7171
},
7272
"scripts": {
73-
"scss": "node-sass --watch resources/scss -o css",
73+
"scss": "node-sass resources/scss -o css",
7474
"dev": "npm run development",
7575
"development": "mix",
7676
"watch": "mix watch",
7777
"watch-poll": "mix watch -- --watch-options-poll=1000",
7878
"hot": "mix watch --hot",
7979
"prod": "npm run production",
80-
"production": "mix --production" }
80+
"production": "mix --production"
81+
}
8182
}

public/assets/js/demo.js

Lines changed: 46 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,63 @@
1+
const swalWithBootstrapButtons = Swal.mixin({
2+
customClass: {
3+
confirmButton: 'btn btn-primary',
4+
cancelButton: 'btn btn-gray'
5+
},
6+
buttonsStyling: false
7+
});
8+
9+
// SweetAlert 2
110
document.getElementById('basicAlert').addEventListener('click', function () {
2-
Swal.fire(
11+
swalWithBootstrapButtons.fire(
312
'Basic alert',
413
'You clicked the button!'
514
)
6-
});
7-
8-
document.getElementById('infoAlert').addEventListener('click', function () {
9-
Swal.fire(
15+
});
16+
17+
document.getElementById('infoAlert').addEventListener('click', function () {
18+
swalWithBootstrapButtons.fire(
1019
'Info alert',
1120
'You clicked the button!',
1221
'info'
1322
)
14-
});
15-
16-
document.getElementById('successAlert').addEventListener('click', function () {
17-
Swal.fire({
23+
});
24+
25+
document.getElementById('successAlert').addEventListener('click', function () {
26+
swalWithBootstrapButtons.fire({
1827
icon: 'success',
19-
title: 'Your work has been saved',
20-
showConfirmButton: false,
28+
title: 'Success alert',
29+
text: 'Your work has been saved',
30+
showConfirmButton: true,
2131
timer: 1500
2232
})
23-
});
24-
25-
document.getElementById('warningAlert').addEventListener('click', function () {
26-
Swal.fire(
33+
});
34+
35+
document.getElementById('warningAlert').addEventListener('click', function () {
36+
swalWithBootstrapButtons.fire(
2737
'Warning alert',
2838
'You clicked the button!',
2939
'warning'
3040
)
31-
});
32-
33-
document.getElementById('dangerAlert').addEventListener('click', function () {
34-
Swal.fire({
41+
});
42+
43+
document.getElementById('dangerAlert').addEventListener('click', function () {
44+
swalWithBootstrapButtons.fire({
3545
icon: 'error',
3646
title: 'Oops...',
3747
text: 'Something went wrong!',
3848
footer: '<a href>Why do I have this issue?</a>'
3949
})
40-
});
41-
42-
document.getElementById('questionAlert').addEventListener('click', function () {
43-
Swal.fire(
50+
});
51+
52+
document.getElementById('questionAlert').addEventListener('click', function () {
53+
swalWithBootstrapButtons.fire(
4454
'The Internet?',
4555
'That thing is still around?',
4656
'question'
4757
);
48-
});
49-
50-
document.getElementById('notifyTopLeft').addEventListener('click', function (){
58+
});
59+
60+
document.getElementById('notifyTopLeft').addEventListener('click', function () {
5161
const notyf = new Notyf({
5262
position: {
5363
x: 'left',
@@ -70,9 +80,9 @@ document.getElementById('basicAlert').addEventListener('click', function () {
7080
type: 'info',
7181
message: 'Send us <b>an email</b> to get support'
7282
});
73-
});
74-
75-
document.getElementById('notifyTopRight').addEventListener('click', function (){
83+
});
84+
85+
document.getElementById('notifyTopRight').addEventListener('click', function () {
7686
const notyf = new Notyf({
7787
position: {
7888
x: 'right',
@@ -95,9 +105,9 @@ document.getElementById('basicAlert').addEventListener('click', function () {
95105
type: 'error',
96106
message: 'This action is not allowed.'
97107
});
98-
});
99-
100-
document.getElementById('notifyBottomLeft').addEventListener('click', function (){
108+
});
109+
110+
document.getElementById('notifyBottomLeft').addEventListener('click', function () {
101111
const notyf = new Notyf({
102112
position: {
103113
x: 'left',
@@ -120,9 +130,9 @@ document.getElementById('basicAlert').addEventListener('click', function () {
120130
type: 'warning',
121131
message: 'This might be dangerous.'
122132
});
123-
});
124-
125-
document.getElementById('notifyBottomRight').addEventListener('click', function (){
133+
});
134+
135+
document.getElementById('notifyBottomRight').addEventListener('click', function () {
126136
const notyf = new Notyf({
127137
position: {
128138
x: 'right',
@@ -145,5 +155,4 @@ document.getElementById('basicAlert').addEventListener('click', function () {
145155
type: 'info',
146156
message: 'John Garreth: Are you ready for the presentation?'
147157
});
148-
});
149-
158+
});

public/assets/js/volt.js

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Volt Pro - Premium Bootstrap 5 Dashboard
55
=========================================================
66
7-
* Product Page: https://themesberg.com/product/admin-dashboard/volt-premium-bootstrap-5-dashboard
8-
* Copyright 2020 Themesberg (https://www.themesberg.com)
7+
* Product Page: https://themesberg.com/product/admin-dashboard/volt-bootstrap-5-dashboard
8+
* Copyright 2021 Themesberg (https://www.themesberg.com)
99
1010
* Designed and coded by https://themesberg.com
1111
@@ -77,33 +77,10 @@ d.addEventListener("DOMContentLoaded", function(event) {
7777
});
7878
}
7979

80-
var iconNotifications = d.querySelector('.icon-notifications');
81-
if(iconNotifications) {
82-
var unreadNotifications = d.querySelector('.unread-notifications');
83-
var bellShake = d.querySelector('.bell-shake');
84-
85-
if (iconNotifications.getAttribute('data-unread-notifications') === 'true') {
86-
unreadNotifications.style.display = 'block';
87-
} else {
88-
unreadNotifications.style.display = 'none';
89-
}
90-
91-
// bell shake
92-
var shakingInterval = setInterval(function() {
93-
if (iconNotifications.getAttribute('data-unread-notifications') === 'true') {
94-
if (bellShake.classList.contains('shaking')) {
95-
bellShake.classList.remove('shaking');
96-
} else {
97-
bellShake.classList.add('shaking');
98-
}
99-
}
100-
}, 5000);
101-
102-
iconNotifications.addEventListener('show.bs.dropdown', function () {
103-
bellShake.setAttribute('data-unread-notifications', false);
104-
clearInterval(shakingInterval);
105-
bellShake.classList.remove('shaking');
106-
unreadNotifications.style.display = 'none';
80+
var iconNotifications = d.querySelector('.notification-bell');
81+
if (iconNotifications) {
82+
iconNotifications.addEventListener('shown.bs.dropdown', function () {
83+
iconNotifications.classList.remove('unread');
10784
});
10885
}
10986

@@ -140,7 +117,7 @@ d.addEventListener("DOMContentLoaded", function(event) {
140117

141118

142119
// Datepicker
143-
var datepickers = [].slice.call(document.querySelectorAll('[data-datepicker]'))
120+
var datepickers = [].slice.call(d.querySelectorAll('[data-datepicker]'))
144121
var datepickersList = datepickers.map(function (el) {
145122
return new Datepicker(el, {
146123
buttonClass: 'btn'

0 commit comments

Comments
 (0)