Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMicky-FR committed Dec 21, 2022
1 parent 4683e54 commit d008f40
Show file tree
Hide file tree
Showing 10 changed files with 1,009 additions and 901 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Azuriom

[![PHP CI](https://img.shields.io/github/workflow/status/Azuriom/Azuriom/PHP%20CI?style=flat-square)](https://github.com/Azuriom/Azuriom/actions)
[![Code Quality](https://img.shields.io/scrutinizer/quality/g/Azuriom/Azuriom?style=flat-square)](https://scrutinizer-ci.com/g/Azuriom/Azuriom/)
[![Style](https://github.styleci.io/repos/237486333/shield)](https://github.styleci.io/repos/237486333)
[![CodeFactor](https://www.codefactor.io/repository/github/azuriom/azuriom/badge?style=flat-square)](https://www.codefactor.io/repository/github/azuriom/azuriom)
[![Latest release](https://img.shields.io/github/v/release/Azuriom/Azuriom?style=flat-square)](http://github.com/Azuriom/Azuriom/releases)
[![Chat](https://img.shields.io/discord/625774284823986183?color=5865f2&label=Discord&logo=discord&logoColor=fff&style=flat-square)](https://azuriom.com/discord)

Expand Down Expand Up @@ -42,7 +42,7 @@ Contributions are always welcome!

See [the contribution guidelines](CONTRIBUTING.md) for ways to get started.

Please adhere to this project's [code of conduct](CODE_OF_CONDUCT.md)`.
Please adhere to this project's [code of conduct](CODE_OF_CONDUCT.md).

## Translations

Expand Down
6 changes: 1 addition & 5 deletions app/Policies/PostPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ class PostPolicy
*/
public function view(?User $user, Post $post)
{
if (! $post->isPublished()) {
abort(404);

return false;
}
abort_if(! $post->isPublished(), 404);

return true;
}
Expand Down
617 changes: 362 additions & 255 deletions composer.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
],

'microsoft' => [
'client_id' => env('MICROSOFT_CLIENT_SECRET'),
'client_secret' => env('MICROSOFT_CLIENT_ID'),
'client_id' => env('MICROSOFT_CLIENT_ID'),
'client_secret' => env('MICROSOFT_CLIENT_SECRET'),
'redirect' => '/user/login/callback',
],
];
1,240 changes: 620 additions & 620 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions resources/js/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
window._ = require('lodash');
import _ from 'lodash';
window._ = _;

/**
* 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');
import axios from 'axios';
window.axios = axios;

window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

/**
* 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');
// import Pusher from 'pusher-js';
// window.Pusher = Pusher;

// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: process.env.MIX_PUSHER_APP_KEY,
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
// forceTLS: true
// key: import.meta.env.VITE_PUSHER_APP_KEY,
// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`,
// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80,
// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443,
// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
// enabledTransports: ['ws', 'wss'],
// });
5 changes: 5 additions & 0 deletions resources/lang/en/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
'alpha_num' => 'The :attribute must only contain letters and numbers.',
'array' => 'The :attribute must be an array.',
'ascii' => 'The :attribute must only contain single-byte alphanumeric characters and symbols.',
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
Expand All @@ -36,6 +37,7 @@
'date' => 'The :attribute is not a valid date.',
'date_equals' => 'The :attribute must be a date equal to :date.',
'date_format' => 'The :attribute does not match the format :format.',
'decimal' => 'The :attribute must have :decimal decimal places.',
'declined' => 'The :attribute must be declined.',
'declined_if' => 'The :attribute must be declined when :other is :value.',
'different' => 'The :attribute and :other must be different.',
Expand Down Expand Up @@ -70,6 +72,7 @@
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'lowercase' => 'The :attribute must be lowercase.',
'lt' => [
'array' => 'The :attribute must have less than :value items.',
'file' => 'The :attribute must be less than :value kilobytes.',
Expand Down Expand Up @@ -135,7 +138,9 @@
'timezone' => 'The :attribute must be a valid timezone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload. Maybe this one\'s too heavy.',
'uppercase' => 'The :attribute must be uppercase.',
'url' => 'The :attribute must be a valid URL.',
'ulid' => 'The :attribute must be a valid ULID.',
'uuid' => 'The :attribute must be a valid UUID.',

'username' => 'The :attribute must be a valid username.',
Expand Down
5 changes: 5 additions & 0 deletions resources/lang/fr/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'alpha_dash' => 'Le champ :attribute doit contenir uniquement des lettres, des chiffres et des tirets.',
'alpha_num' => 'Le champ :attribute doit contenir uniquement des lettres et des chiffres.',
'array' => 'Le champ :attribute doit être un tableau.',
'ascii' => 'Le champ :attribute doit contenir que des caractères alphanumériques et des symboles à un octet.',
'before' => 'Le champ :attribute doit être une date avant le :date.',
'before_or_equal' => 'Le champ :attribute doit être une date avant ou égale au :date.',
'between' => [
Expand All @@ -36,6 +37,7 @@
'date' => 'Le champ :attribute n\'est pas une date valide.',
'date_equals' => 'La date :attribute doit être une date égale au :date.',
'date_format' => 'La date :attribute ne correspond pas au format :format.',
'decimal' => 'Le champ :attribute doit avoir :decimal décimales.',
'declined' => 'Le champ :attribute ne doit pas être accepté.',
'declined_if' => 'Le champ :attribute ne doit pas être accepté quand :other est :value.',
'different' => 'Les champs :attribute et :other doivent être différents.',
Expand Down Expand Up @@ -70,6 +72,7 @@
'ipv4' => 'Le champ :attribute doit être une adresse IPv4 valide.',
'ipv6' => 'Le champ :attribute doit être une adresse IPv6 valide.',
'json' => 'Le champ :attribute doit être un document JSON valide.',
'lowercase' => 'Le champ :attribute doit être en minuscules.',
'lt' => [
'array' => 'Le tableau :attribute doit contenir moins de :value éléments.',
'file' => 'La taille du fichier de :attribute doit être inférieure à :value kilooctets.',
Expand Down Expand Up @@ -135,7 +138,9 @@
'timezone' => 'Le champ :attribute doit être un fuseau horaire valide.',
'unique' => 'La valeur du champ :attribute est déjà utilisée.',
'uploaded' => 'Le fichier du champ :attribute n\'a pas pu être téléchargé. Celui-ci est peut-être trop lourd.',
'uppercase' => 'Le champ :attribute doit être en majuscules.',
'url' => 'Le champ :attribute n\'est pas une URL valide.',
'ulid' => 'Le champ :attribute doit être un ULID valide.',
'uuid' => 'Le champ :attribute doit être un UUID valide.',

'username' => 'Le champ :attribute doit être un pseudo valide.',
Expand Down
4 changes: 0 additions & 4 deletions resources/sass/admin/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ a.sidebar-link {

.sidebar [data-bs-toggle="collapse"]::after {
border: solid;
border-top-width: medium;
border-right-width: medium;
border-bottom-width: medium;
border-left-width: medium;
border-width: 0 .075rem .075rem 0;
content: " ";
display: inline-block;
Expand Down
1 change: 0 additions & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const mix = require('laravel-mix');
const fs = require('fs');

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit d008f40

Please sign in to comment.