Skip to content

Commit 235626a

Browse files
Upgrade to Bootstrap 5 and Mix 6
1 parent 11ba0da commit 235626a

File tree

29 files changed

+3747
-6218
lines changed

29 files changed

+3747
-6218
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
run: npm install --no-audit --no-progress --silent
6464

6565
- name: Build client
66-
run: npm run production
66+
run: npm run build
6767

6868
- name: Upgrade Chrome driver
6969
run: php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1`

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- Login, register, email verification and password reset
1919
- Authentication with JWT
2020
- Socialite integration
21-
- Bootstrap 4 + Font Awesome 5
21+
- Bootstrap 5 + Font Awesome 5
2222

2323
## Installation
2424

@@ -33,17 +33,13 @@
3333
#### Development
3434

3535
```bash
36-
# Build and watch
37-
npm run watch
38-
39-
# Serve with hot reloading (not working)
40-
npm run hot
36+
npm run dev
4137
```
4238

4339
#### Production
4440

4541
```bash
46-
npm run production
42+
npm run build
4743
```
4844

4945
## Socialite

package-lock.json

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

package.json

Lines changed: 34 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,49 @@
11
{
22
"private": true,
33
"scripts": {
4-
"dev": "npm run development",
5-
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
6-
"watch": "npm run development -- --watch",
7-
"watch-poll": "npm run watch -- --watch-poll",
8-
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
9-
"prod": "npm run production",
10-
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
11-
"lint": "eslint --fix --ext .js,.vue resources/js"
4+
"dev": "mix watch --hot",
5+
"watch": "mix watch",
6+
"build": "mix --production",
7+
"eslint": "eslint --fix --ext .js,.vue resources/js"
128
},
139
"dependencies": {
14-
"@fortawesome/fontawesome-svg-core": "^1.2.32",
15-
"@fortawesome/free-brands-svg-icons": "^5.15.1",
16-
"@fortawesome/free-regular-svg-icons": "^5.15.1",
17-
"@fortawesome/free-solid-svg-icons": "^5.15.1",
18-
"@fortawesome/vue-fontawesome": "^2.0.0",
10+
"@fortawesome/fontawesome-svg-core": "^1.2.36",
11+
"@fortawesome/free-brands-svg-icons": "^5.15.4",
12+
"@fortawesome/free-regular-svg-icons": "^5.15.4",
13+
"@fortawesome/free-solid-svg-icons": "^5.15.4",
14+
"@fortawesome/vue-fontawesome": "^2.0.2",
15+
"@popperjs/core": "^2.9.3",
1916
"axios": "^0.21.1",
20-
"bootstrap": "^4.5.3",
21-
"jquery": "^3.5.1",
17+
"bootstrap": "^5.1.0",
2218
"js-cookie": "^2.2.1",
23-
"popper.js": "^1.16.1",
24-
"sweetalert2": "^10.9.0",
25-
"vform": "^1.0.1",
26-
"vue": "^2.6.12",
27-
"vue-i18n": "^8.22.1",
19+
"sweetalert2": "^11.1.2",
20+
"vform": "^2.1.1",
21+
"vue": "^2.6.14",
22+
"vue-i18n": "^8.25.0",
2823
"vue-meta": "^2.4.0",
29-
"vue-router": "^3.4.8",
30-
"vuex": "^3.5.1",
24+
"vue-router": "^3.5.2",
25+
"vuex": "^3.6.2",
3126
"vuex-router-sync": "^5.0.0"
3227
},
3328
"devDependencies": {
34-
"@babel/core": "^7.12.3",
35-
"@babel/eslint-parser": "^7.12.1",
29+
"@babel/core": "^7.15.0",
30+
"@babel/eslint-parser": "^7.15.0",
3631
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
37-
"@babel/preset-env": "^7.12.1",
38-
"cross-env": "^7.0.2",
39-
"eslint": "^7.12.1",
40-
"eslint-config-standard": "^16.0.1",
41-
"eslint-plugin-import": "^2.22.1",
32+
"@babel/preset-env": "^7.15.0",
33+
"eslint": "^7.32.0",
34+
"eslint-config-standard": "^16.0.3",
35+
"eslint-plugin-import": "^2.24.0",
4236
"eslint-plugin-node": "^11.1.0",
43-
"eslint-plugin-promise": "^4.2.1",
44-
"eslint-plugin-standard": "^4.0.2",
45-
"eslint-plugin-vue": "^7.1.0",
46-
"laravel-mix": "^5.0.7",
47-
"laravel-mix-versionhash": "^1.1.7",
48-
"resolve-url-loader": "^3.1.2",
49-
"sass": "^1.28.0",
50-
"sass-loader": "^10.0.4",
51-
"vue-template-compiler": "^2.6.12",
52-
"webpack-bundle-analyzer": "^3.9.0"
37+
"eslint-plugin-promise": "^5.1.0",
38+
"eslint-plugin-standard": "^5.0.0",
39+
"eslint-plugin-vue": "^7.16.0",
40+
"laravel-mix": "^6.0.27",
41+
"laravel-mix-versionhash": "^2.0.1",
42+
"resolve-url-loader": "^4.0.0",
43+
"sass": "^1.37.5",
44+
"sass-loader": "^12.1.0",
45+
"vue-loader": "^15.9.8",
46+
"vue-template-compiler": "^2.6.14",
47+
"webpack-bundle-analyzer": "^4.4.2"
5348
}
5449
}

resources/js/components/Checkbox.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<template>
2-
<div class="custom-control custom-checkbox d-flex">
2+
<div class="form-check">
33
<input
44
:id="id || name"
55
:name="name"
66
:checked="internalValue"
77
type="checkbox"
8-
class="custom-control-input"
8+
class="form-check-input"
99
@click="handleClick"
1010
>
11-
<label :for="id || name" class="custom-control-label my-auto">
11+
<label :for="id || name" class="form-check-label">
1212
<slot />
1313
</label>
1414
</div>

resources/js/components/LocaleDropdown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<li v-if="Object.keys(locales).length > 1" class="nav-item dropdown">
33
<a class="nav-link dropdown-toggle" href="#" role="button"
4-
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
4+
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
55
>
66
{{ locales[locale] }}
77
</a>

resources/js/components/LoginWithGithub.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<button v-if="githubAuth" class="btn btn-dark ml-auto" type="button" @click="login">
2+
<button v-if="githubAuth" class="btn btn-dark ms-auto" type="button" @click="login">
33
{{ $t('login_with') }}
44
<fa :icon="['fab', 'github']" />
55
</button>

resources/js/components/Navbar.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@
55
{{ appName }}
66
</router-link>
77

8-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false">
8+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar">
99
<span class="navbar-toggler-icon" />
1010
</button>
1111

12-
<div id="navbarToggler" class="collapse navbar-collapse">
12+
<div id="navbar" class="collapse navbar-collapse">
1313
<ul class="navbar-nav">
1414
<locale-dropdown />
1515
<!-- <li class="nav-item">
1616
<a class="nav-link" href="#">Link</a>
1717
</li> -->
1818
</ul>
1919

20-
<ul class="navbar-nav ml-auto">
20+
<ul class="navbar-nav ms-auto">
2121
<!-- Authenticated -->
2222
<li v-if="user" class="nav-item dropdown">
2323
<a class="nav-link dropdown-toggle text-dark"
24-
href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
24+
href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
2525
>
26-
<img :src="user.photo_url" class="rounded-circle profile-photo mr-1">
26+
<img :src="user.photo_url" class="rounded-circle profile-photo me-1">
2727
{{ user.name }}
2828
</a>
2929
<div class="dropdown-menu">
30-
<router-link :to="{ name: 'settings.profile' }" class="dropdown-item pl-3">
30+
<router-link :to="{ name: 'settings.profile' }" class="dropdown-item ps-3">
3131
<fa icon="cog" fixed-width />
3232
{{ $t('settings') }}
3333
</router-link>
3434

3535
<div class="dropdown-divider" />
36-
<a href="#" class="dropdown-item pl-3" @click.prevent="logout">
36+
<a href="#" class="dropdown-item ps-3" @click.prevent="logout">
3737
<fa icon="sign-out-alt" fixed-width />
3838
{{ $t('logout') }}
3939
</a>
@@ -93,4 +93,8 @@ export default {
9393
height: 2rem;
9494
margin: -.375rem 0;
9595
}
96+
97+
.container {
98+
max-width: 1100px;
99+
}
96100
</style>

resources/js/components/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Vue from 'vue'
2-
import Card from './Card'
3-
import Child from './Child'
4-
import Button from './Button'
5-
import Checkbox from './Checkbox'
6-
import { HasError, AlertError, AlertSuccess } from 'vform'
2+
import Card from './Card.vue'
3+
import Child from './Child.vue'
4+
import Button from './Button.vue'
5+
import Checkbox from './Checkbox.vue'
6+
import { HasError, AlertError, AlertSuccess } from 'vform/components/bootstrap5'
77

88
// Components that are registered globaly.
99
[

resources/js/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="main-layout">
33
<navbar />
44

5-
<div class="container mt-4">
5+
<div class="container-lg mt-4">
66
<child />
77
</div>
88
</div>

0 commit comments

Comments
 (0)