Skip to content

Commit

Permalink
Update NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaasie committed Apr 30, 2024
1 parent 16dfcbe commit bcd1dd5
Show file tree
Hide file tree
Showing 9 changed files with 25,243 additions and 9,383 deletions.
2 changes: 1 addition & 1 deletion example/app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable, Searchable;
use HasFactory, Notifiable, Searchable;

protected $fillable = [
'name',
Expand Down
8 changes: 3 additions & 5 deletions example/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,19 @@
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^10.0",
"laravel/sanctum": "^3.2",
"laravel/framework": "^11.0",
"laravel/scout": "^10.0",
"laravel/tinker": "^2.8",
"solarium/solarium": "^6.1"
},
"require-dev": {
"laravel/legacy-factories": "^1.0",
"spatie/laravel-ignition": "^1.0",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^7.0",
"nunomaduro/collision": "^8.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion example/docker/8.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG WWWGROUP
ARG NODE_VERSION=20
ARG POSTGRES_VERSION=15

WORKDIR /var/www/html
WORKDIR /var/www/html/example

ENV DEBIAN_FRONTEND noninteractive
ENV TZ=UTC
Expand Down
4 changes: 2 additions & 2 deletions example/docker/8.3/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid

[program:php]
command=%(ENV_SUPERVISOR_PHP_COMMAND)s
user=%(ENV_SUPERVISOR_PHP_USER)s
command=/usr/bin/php -d variables_order=EGPCS /var/www/html/example/artisan serve --host=0.0.0.0 --port=80
user=sail
environment=LARAVEL_SAIL="1"
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
Expand Down
11,773 changes: 2,404 additions & 9,369 deletions example/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"production": "mix --production"
},
"devDependencies": {
"axios": "^0.21",
"axios": "^1.6.8",
"laravel-mix": "^6.0.6",
"lodash": "^4.17.19",
"postcss": "^8.1.14"
Expand Down
5 changes: 4 additions & 1 deletion example/public/css/app.css
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#crud-form{min-width:500px}
#crud-form {
min-width: 500px;
}

22,784 changes: 22,782 additions & 2 deletions example/public/js/app.js

Large diffs are not rendered by default.

46 changes: 45 additions & 1 deletion example/public/js/publication_date.js
Original file line number Diff line number Diff line change
@@ -1 +1,45 @@
IMask(document.querySelector('input[name="publication_date"]'),{mask:Date,pattern:"Y-m-d",blocks:{d:{mask:IMask.MaskedRange,from:1,to:31,maxLength:2},m:{mask:IMask.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:IMask.MaskedRange,from:1e3,to:9999}},format:function(a){var e=a.getDate(),t=a.getMonth()+1;return e<10&&(e="0"+e),t<10&&(t="0"+t),[a.getFullYear(),t,e].join("-")},parse:function(a){var e=a.split("-");return new Date(e[0],e[1]-1,e[2])},autofix:!0,lazy:!0,overwrite:!0});
/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
/*!******************************************!*\
!*** ./resources/js/publication_date.js ***!
\******************************************/
var dateMask = IMask(document.querySelector('input[name="publication_date"]'), {
mask: Date,
pattern: 'Y-m-d',
blocks: {
d: {
mask: IMask.MaskedRange,
from: 1,
to: 31,
maxLength: 2
},
m: {
mask: IMask.MaskedRange,
from: 1,
to: 12,
maxLength: 2
},
Y: {
mask: IMask.MaskedRange,
from: 1000,
to: 9999
}
},
format: function format(date) {
var day = date.getDate();
var month = date.getMonth() + 1;
var year = date.getFullYear();
if (day < 10) day = "0" + day;
if (month < 10) month = "0" + month;
return [year, month, day].join('-');
},
parse: function parse(str) {
var yearMonthDay = str.split('-');
return new Date(yearMonthDay[0], yearMonthDay[1] - 1, yearMonthDay[2]);
},
autofix: true,
lazy: true,
overwrite: true
});
/******/ })()
;

0 comments on commit bcd1dd5

Please sign in to comment.