Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f6d518e67 | ||
|
|
8d6e853d4c | ||
|
|
6b6572db67 | ||
|
|
b46b24bb83 | ||
|
|
b12fb86c1c | ||
|
|
84dc9d74b9 | ||
|
|
114d0c7cd9 | ||
|
|
bb553924d0 | ||
|
|
73a14e545b | ||
|
|
2756aed449 | ||
|
|
289908f302 | ||
|
|
7b9674110e | ||
|
|
e070c9f374 | ||
|
|
95cf933424 | ||
|
|
2aca0010dc | ||
|
|
4701c3f86d | ||
|
|
fb53fdb16d |
No files matched your search
@@ -0,0 +1,39 @@
|
|||||||
|
APP_NAME="NH Gooi (dev)"
|
||||||
|
APP_ENV=staging
|
||||||
|
APP_KEY=pHU3XfraRBc4T54pe5hM0WsCz1zZxWG3
|
||||||
|
APP_DEBUG=true
|
||||||
|
APP_LOG_LEVEL=error
|
||||||
|
APP_URL=https://dev.nhgooi.nl
|
||||||
|
IMAGE_BASE_URL=https://dev.nhgooi.nl/
|
||||||
|
|
||||||
|
API_URL=https://api-new.nhgooi.nl/
|
||||||
|
|
||||||
|
BROADCAST_DRIVER=log
|
||||||
|
CACHE_DRIVER=file
|
||||||
|
SESSION_DRIVER=file
|
||||||
|
QUEUE_DRIVER=sync
|
||||||
|
|
||||||
|
REDIS_HOST=127.0.0.1
|
||||||
|
REDIS_PASSWORD=null
|
||||||
|
REDIS_PORT=6379
|
||||||
|
|
||||||
|
MAIL_DRIVER=smtp
|
||||||
|
MAIL_HOST=in-v3.mailjet.com
|
||||||
|
MAIL_PORT=25
|
||||||
|
MAIL_USERNAME=08eb4dbf869367bc1478f0777b9de044
|
||||||
|
MAIL_PASSWORD=eb26e4f3e5e6dbeb8aad361c69bf5ff1
|
||||||
|
MAIL_ENCRYPTION=null
|
||||||
|
|
||||||
|
PUSHER_APP_ID=
|
||||||
|
PUSHER_APP_KEY=
|
||||||
|
PUSHER_APP_SECRET=
|
||||||
|
|
||||||
|
DB_CONNECTION=mysql
|
||||||
|
DB_HOST=nhgooi.nl
|
||||||
|
DB_PORT=3306
|
||||||
|
DB_DATABASE=radio6fm_web
|
||||||
|
DB_USERNAME=6fmstats
|
||||||
|
DB_PASSWORD=C6h938EJ2cd5p4cT
|
||||||
|
|
||||||
|
CACHE_DRIVER=file
|
||||||
|
QUEUE_DRIVER=sync
|
||||||
@@ -10,6 +10,7 @@ on:
|
|||||||
- 'composer.json'
|
- 'composer.json'
|
||||||
- 'composer.lock'
|
- 'composer.lock'
|
||||||
- '.gitea/workflows/build-docker.yml'
|
- '.gitea/workflows/build-docker.yml'
|
||||||
|
- 'version' # Change this file to force rebuild
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -42,14 +43,14 @@ jobs:
|
|||||||
docker push "$IMAGE:${{ gitea.sha }}"
|
docker push "$IMAGE:${{ gitea.sha }}"
|
||||||
docker push "$IMAGE:latest"
|
docker push "$IMAGE:latest"
|
||||||
|
|
||||||
- name: Trigger deployment
|
# - name: Trigger deployment
|
||||||
run: |
|
# run: |
|
||||||
curl --fail-with-body \
|
# curl --fail-with-body \
|
||||||
-X POST \
|
# -X POST \
|
||||||
-H "Content-Type: application/json" \
|
# -H "Content-Type: application/json" \
|
||||||
-d '{
|
# -d '{
|
||||||
"image": "'"$IMAGE:${{ gitea.sha }}"'",
|
# "image": "'"$IMAGE:${{ gitea.sha }}"'",
|
||||||
"commit": "${{ gitea.sha }}",
|
# "commit": "${{ gitea.sha }}",
|
||||||
"repository": "${{ gitea.repository }}"
|
# "repository": "${{ gitea.repository }}"
|
||||||
}' \
|
# }' \
|
||||||
"${{ secrets.DEPLOY_WEBHOOK_URL }}"
|
# "${{ secrets.DEPLOY_WEBHOOK_URL }}"
|
||||||
@@ -1,13 +1,23 @@
|
|||||||
/node_modules
|
.phpunit.cache
|
||||||
/bootstrap/cache
|
node_modules
|
||||||
/public/hot
|
app/public/build
|
||||||
/public/storage
|
app/public/hot
|
||||||
/storage/*.key
|
app/public/storage
|
||||||
/vendor
|
app/storage/*.key
|
||||||
/.idea
|
app/bootstrap
|
||||||
/.vagrant
|
app/storage
|
||||||
|
bootstrap/cache
|
||||||
|
vendor
|
||||||
|
.env
|
||||||
|
.env.backup
|
||||||
|
.env.production
|
||||||
|
.phpunit.result.cache
|
||||||
Homestead.json
|
Homestead.json
|
||||||
Homestead.yaml
|
Homestead.yaml
|
||||||
|
auth.json
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
.env
|
.fleet
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
update
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
FROM php:8.3-apache
|
FROM php:8.3.36-apache
|
||||||
|
|
||||||
|
# Install Node.js
|
||||||
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git \
|
git \
|
||||||
@@ -43,17 +46,15 @@ RUN echo '<Directory /var/www/app/public>\n\
|
|||||||
</Directory>' > /etc/apache2/conf-available/laravel.conf \
|
</Directory>' > /etc/apache2/conf-available/laravel.conf \
|
||||||
&& a2enconf laravel
|
&& a2enconf laravel
|
||||||
|
|
||||||
|
# Copy app files (composer/npm setup happens at runtime via entrypoint)
|
||||||
COPY composer.json composer.lock ./
|
COPY composer.json composer.lock ./
|
||||||
|
COPY package.json package-lock.json* ./
|
||||||
|
COPY scripts/ ./scripts/ 2>/dev/null
|
||||||
|
|
||||||
# Note: for Laravel, the COPY . . needs to be before the composer install
|
# Note: for Laravel, the COPY . . needs to be before the composer install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN composer install \
|
# Create storage directories
|
||||||
--no-dev \
|
|
||||||
--prefer-dist \
|
|
||||||
--no-interaction \
|
|
||||||
--optimize-autoloader
|
|
||||||
|
|
||||||
RUN mkdir -p \
|
RUN mkdir -p \
|
||||||
storage/app \
|
storage/app \
|
||||||
storage/framework/cache/data \
|
storage/framework/cache/data \
|
||||||
@@ -61,7 +62,12 @@ RUN mkdir -p \
|
|||||||
storage/framework/views \
|
storage/framework/views \
|
||||||
storage/logs \
|
storage/logs \
|
||||||
bootstrap/cache \
|
bootstrap/cache \
|
||||||
&& chown -R www-data:www-data storage bootstrap/cache \
|
public/assets/vendor
|
||||||
&& chmod -R ug+rwX storage bootstrap/cache
|
|
||||||
|
# Copy and set up entrypoint script
|
||||||
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
* To add new packages, add a line below:
|
||||||
|
```json
|
||||||
|
"new-package": "^1.2.3"
|
||||||
|
```
|
||||||
|
|
||||||
|
* If the npm name differs from vendor folder name: Also update the mapping in setup-vendor.js:
|
||||||
|
```json
|
||||||
|
'npm-name': { folder: 'vendor-folder', subdir: 'dist' }
|
||||||
|
```
|
||||||
|
|
||||||
|
* Then regenerate lock file (do this locally, NOT in Docker)
|
||||||
|
```bash
|
||||||
|
rm package-lock.json
|
||||||
|
docker run --rm -v "$PWD:/workspace" -w /workspace node:20 npm install --package-lock-only
|
||||||
|
```
|
||||||
@@ -9,19 +9,19 @@ class CalendarController extends Controller
|
|||||||
public function show(Request $request, $id)
|
public function show(Request $request, $id)
|
||||||
{
|
{
|
||||||
parent::registerView($request, 'agenda', $id);
|
parent::registerView($request, 'agenda', $id);
|
||||||
$apiResult = (object) $this->API('agenda/item/' . (int)$id);
|
$apiResult = $this->API('agenda/item/' . (int)$id);
|
||||||
$calendarEvent = new \Model\CalendarEvent((object) $apiResult->news);
|
$calendarEvent = new \Model\CalendarEvent($apiResult->news);
|
||||||
|
|
||||||
return view('calendarevent', array_merge($this->getSidebareData(), ['event' => $calendarEvent, 'metadata' => $calendarEvent->metadata]));
|
return view('calendarevent', array_merge($this->getSidebareData(), ['event' => $calendarEvent, 'metadata' => $calendarEvent->metadata]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function overview(Request $request)
|
public function overview(Request $request)
|
||||||
{
|
{
|
||||||
$apiResult = (object) $this->API('agenda/overzicht?aantal=100');
|
$apiResult = $this->API('agenda/overzicht?aantal=100');
|
||||||
$calendar = [];
|
$calendar = [];
|
||||||
foreach($apiResult->events as $calendarItem)
|
foreach($apiResult->events as $calendarItem)
|
||||||
{
|
{
|
||||||
$calendar[] = new \Model\CalendarEvent((object) $calendarItem);
|
$calendar[] = new \Model\CalendarEvent($calendarItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('calendarlist', array_merge($this->getSidebareData(), ['events' => $calendar]));
|
return view('calendarlist', array_merge($this->getSidebareData(), ['events' => $calendar]));
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class ContactController extends Controller
|
|||||||
{
|
{
|
||||||
public function show()
|
public function show()
|
||||||
{
|
{
|
||||||
$page = (object) $this->API('statisch/contact');
|
$page = $this->API('statisch/contact');
|
||||||
if ($page == null) {
|
if ($page == null) {
|
||||||
return abort(404);
|
return abort(404);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,31 +10,24 @@ class HomeController extends Controller
|
|||||||
public function show(Request $request)
|
public function show(Request $request)
|
||||||
{
|
{
|
||||||
$page = (int) $request->get('pagina', 1);
|
$page = (int) $request->get('pagina', 1);
|
||||||
$apiResult = (object) $this->API('nieuws/overzicht?pagina=' . (int) max(1, $page) . '&aantal=10');
|
$apiResult = $this->API('nieuws/overzicht?pagina=' . (int) max(1, $page) . '&aantal=10');
|
||||||
$news = [];
|
$news = [];
|
||||||
if ($apiResult && isset($apiResult->news)) {
|
foreach ($apiResult->news as $newsItem) {
|
||||||
foreach ($apiResult->news as $newsItem) {
|
$news[] = new \Model\NewsItem($newsItem);
|
||||||
$news[] = new \Model\NewsItem((object) $newsItem);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$apiResult = (object) $this->API('nieuws/liveblogs');
|
$apiResult = $this->API('nieuws/liveblogs');
|
||||||
$liveblogs = $apiResult && isset($apiResult->liveblogs) ? $apiResult->liveblogs : [];
|
$liveblogs = $apiResult->liveblogs;
|
||||||
|
|
||||||
$populair = [];
|
$populair = [];
|
||||||
$apiResult = (object) $this->API('nieuws/populair?pagina=' . (int) max(1, $page) . '&aantal=5');
|
$apiResult = $this->API('nieuws/populair?pagina=' . (int) max(1, $page) . '&aantal=5');
|
||||||
if ($apiResult && isset($apiResult->news)) {
|
foreach ($apiResult->news as $newsItem) {
|
||||||
foreach ($apiResult->news as $newsItem) {
|
$populair[] = new \Model\NewsItem($newsItem);
|
||||||
$populair[] = new \Model\NewsItem((object) $newsItem);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$podcast = null;
|
$apiResult = $this->API('podcast/overzicht?aantal=15');
|
||||||
$apiResult = (object) $this->API('podcast/overzicht?aantal=15');
|
$index = array_rand($apiResult->podcasts);
|
||||||
if ($apiResult && isset($apiResult->podcasts) && !empty($apiResult->podcasts)) {
|
$podcast = new \Model\Podcast($apiResult->podcasts[$index]);
|
||||||
$index = array_rand($apiResult->podcasts);
|
|
||||||
$podcast = new \Model\Podcast((object) $apiResult->podcasts[$index]);
|
|
||||||
}
|
|
||||||
return view('home', ['populair' => $populair, 'podcast' => $podcast, 'title' => 'Home', 'news' => $news, 'liveblogs' => $liveblogs, 'searchURL' => 'nieuws/zoeken']);
|
return view('home', ['populair' => $populair, 'podcast' => $podcast, 'title' => 'Home', 'news' => $news, 'liveblogs' => $liveblogs, 'searchURL' => 'nieuws/zoeken']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@ class ImagesController extends Controller
|
|||||||
|
|
||||||
public function show(Request $request, $id)
|
public function show(Request $request, $id)
|
||||||
{
|
{
|
||||||
$apiResult = (object) $this->API('beelden/details/' . $id);
|
$apiResult = $this->API('beelden/details/' . $id);
|
||||||
$imagesItem = new \Model\NewsItem($apiResult->images);
|
$imagesItem = new \Model\NewsItem($apiResult->images);
|
||||||
|
|
||||||
return view('imagesitem', ['images' => $imagesItem, 'metadata' => $imagesItem->metadata]);
|
return view('imagesitem', ['images' => $imagesItem, 'metadata' => $imagesItem->metadata]);
|
||||||
@@ -39,7 +39,7 @@ class ImagesController extends Controller
|
|||||||
private function listImages(Request $request, $url, $title = null)
|
private function listImages(Request $request, $url, $title = null)
|
||||||
{
|
{
|
||||||
$page = (int)$request->get('pagina', 1);
|
$page = (int)$request->get('pagina', 1);
|
||||||
$apiResult = (object) $this->API('beelden/' . $url . '?pagina=' . (int)max(1, $page));
|
$apiResult = $this->API('beelden/' . $url . '?pagina=' . (int)max(1, $page));
|
||||||
$images = [];
|
$images = [];
|
||||||
foreach($apiResult->items as $imagesItem)
|
foreach($apiResult->items as $imagesItem)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class JobsController extends Controller
|
|||||||
public function show(Request $request, $id)
|
public function show(Request $request, $id)
|
||||||
{
|
{
|
||||||
parent::registerView($request, 'nieuws', $id);
|
parent::registerView($request, 'nieuws', $id);
|
||||||
$apiResult = (object) $this->API('vacatures/details/' . $id);
|
$apiResult = $this->API('vacatures/details/' . $id);
|
||||||
$jobsItem = new \Model\JobOpening($apiResult->item);
|
$jobsItem = new \Model\JobOpening($apiResult->item);
|
||||||
return view('jobsitem', array_merge($this->getSidebareData(), ['job' => $jobsItem, 'metadata' => $jobsItem->metadata]));
|
return view('jobsitem', array_merge($this->getSidebareData(), ['job' => $jobsItem, 'metadata' => $jobsItem->metadata]));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class KerkdienstController extends Controller
|
|||||||
public function main(Request $request)
|
public function main(Request $request)
|
||||||
{
|
{
|
||||||
parent::registerView($request, 'kerkdienst', 0);
|
parent::registerView($request, 'kerkdienst', 0);
|
||||||
$apiResult = (object) $this->API('kerkdienst');
|
$apiResult = $this->API('kerkdienst');
|
||||||
return view('kerkdienst', ['kerkdienst' => new \Model\Kerkdienst((object) $apiResult)]);
|
return view('kerkdienst', ['kerkdienst' => new \Model\Kerkdienst($apiResult)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,8 +21,8 @@ class NewsController extends Controller
|
|||||||
if (request()->get('preview', null) != null) {
|
if (request()->get('preview', null) != null) {
|
||||||
$preview = "?preview=" . request()->get('preview');
|
$preview = "?preview=" . request()->get('preview');
|
||||||
}
|
}
|
||||||
$apiResult = (object) $this->API('nieuws/bericht/' . $id . $preview);
|
$apiResult = $this->API('nieuws/bericht/' . $id . $preview);
|
||||||
$newsItem = new \Model\NewsItem((object) $apiResult->news);
|
$newsItem = new \Model\NewsItem($apiResult->news);
|
||||||
|
|
||||||
switch ($apiResult->version) {
|
switch ($apiResult->version) {
|
||||||
case 1:
|
case 1:
|
||||||
@@ -54,10 +54,10 @@ class NewsController extends Controller
|
|||||||
{
|
{
|
||||||
$page = (int) $request->get('pagina', 1);
|
$page = (int) $request->get('pagina', 1);
|
||||||
$id = $request->get('id', '');
|
$id = $request->get('id', '');
|
||||||
$apiResult = (object) $this->API('nieuws/overzicht?pagina=' . (int) max(1, $page) . '&aantal=5');
|
$apiResult = $this->API('nieuws/overzicht?pagina=' . (int) max(1, $page) . '&aantal=5');
|
||||||
$news = [];
|
$news = [];
|
||||||
foreach ($apiResult->news as $newsItem) {
|
foreach ($apiResult->news as $newsItem) {
|
||||||
$news[] = new \Model\NewsItem((object) $newsItem);
|
$news[] = new \Model\NewsItem($newsItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('partial/newslist_small', ['id' => $id, 'news' => $news]);
|
return view('partial/newslist_small', ['id' => $id, 'news' => $news]);
|
||||||
@@ -68,9 +68,9 @@ class NewsController extends Controller
|
|||||||
$page = (int) $request->get('pagina', 1);
|
$page = (int) $request->get('pagina', 1);
|
||||||
$id = $request->get('id', '');
|
$id = $request->get('id', '');
|
||||||
$populair = [];
|
$populair = [];
|
||||||
$apiResult = (object) $this->API('nieuws/populair?pagina=' . (int) max(1, $page) . '&aantal=5');
|
$apiResult = $this->API('nieuws/populair?pagina=' . (int) max(1, $page) . '&aantal=5');
|
||||||
foreach ($apiResult->news as $_newsItem) {
|
foreach ($apiResult->news as $_newsItem) {
|
||||||
$populair[] = new \Model\NewsItem((object) $_newsItem);
|
$populair[] = new \Model\NewsItem($_newsItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('partial/newslist_small', ['id' => $id, 'news' => $populair]);
|
return view('partial/newslist_small', ['id' => $id, 'news' => $populair]);
|
||||||
@@ -99,9 +99,9 @@ class NewsController extends Controller
|
|||||||
|
|
||||||
public function activeblog()
|
public function activeblog()
|
||||||
{
|
{
|
||||||
$apiResult = (object) $this->API('blog/overzicht');
|
$apiResult = $this->API('blog/overzicht');
|
||||||
if (count((array) $apiResult)) {
|
if (count($apiResult)) {
|
||||||
$blog = new \Model\Blog((object) $apiResult[0]);
|
$blog = new \Model\Blog($apiResult[0]);
|
||||||
if ($blog->is_active) {
|
if ($blog->is_active) {
|
||||||
return redirect($blog->url);
|
return redirect($blog->url);
|
||||||
}
|
}
|
||||||
@@ -115,9 +115,9 @@ class NewsController extends Controller
|
|||||||
|
|
||||||
parent::registerView($request, 'blog', $id);
|
parent::registerView($request, 'blog', $id);
|
||||||
|
|
||||||
$blog = (object) $this->API('nieuws/liveblog/' . (int) $id);
|
$blog = $this->API('nieuws/liveblog/' . (int) $id);
|
||||||
foreach ($blog->artikelen as &$item) {
|
foreach ($blog->artikelen as &$item) {
|
||||||
$item = new \Model\NewsItem((object) $item);
|
$item = new \Model\NewsItem($item);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request()->ajax()) {
|
if (request()->ajax()) {
|
||||||
@@ -140,38 +140,38 @@ class NewsController extends Controller
|
|||||||
if ($url == 'overzicht' && $request->get('dateStart', null) && $request->get('dateEnd', null)) {
|
if ($url == 'overzicht' && $request->get('dateStart', null) && $request->get('dateEnd', null)) {
|
||||||
$url = 'datum/' . $request->get('dateStart', null) . '/' . $request->get('dateEnd', null);
|
$url = 'datum/' . $request->get('dateStart', null) . '/' . $request->get('dateEnd', null);
|
||||||
}
|
}
|
||||||
$apiResult = (object) $this->API('nieuws/' . $url . '?pagina=' . (int) max(1, $page) . ($total ? '&aantal=' . $total : ''));
|
$apiResult = $this->API('nieuws/' . $url . '?pagina=' . (int) max(1, $page) . ($total ? '&aantal=' . $total : ''));
|
||||||
$news = [];
|
$news = [];
|
||||||
foreach ($apiResult->news ?? [] as $newsItem) {
|
foreach ($apiResult->news ?? [] as $newsItem) {
|
||||||
$news[] = new \Model\NewsItem((object) $newsItem);
|
$news[] = new \Model\NewsItem($newsItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
$populair = [];
|
$populair = [];
|
||||||
if ($title == null) {
|
if ($title == null) {
|
||||||
$total = 5;
|
$total = 5;
|
||||||
}
|
}
|
||||||
$apiResult = (object) $this->API('nieuws/populair?pagina=' . (int) max(
|
$apiResult = $this->API('nieuws/populair?pagina=' . (int) max(
|
||||||
1,
|
1,
|
||||||
$page
|
$page
|
||||||
) . ($total ? '&aantal=' . $total : ''));
|
) . ($total ? '&aantal=' . $total : ''));
|
||||||
foreach ($apiResult->news as $newsItem) {
|
foreach ($apiResult->news as $newsItem) {
|
||||||
$populair[] = new \Model\NewsItem((object) $newsItem);
|
$populair[] = new \Model\NewsItem($newsItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
$podcast = null;
|
$podcast = null;
|
||||||
$podcasts = [];
|
$podcasts = [];
|
||||||
if ($title == null) {
|
if ($title == null) {
|
||||||
$apiResult = (object) $this->API('podcast/overzicht?aantal=3');
|
$apiResult = $this->API('podcast/overzicht?aantal=3');
|
||||||
$podcast = new \Model\Podcast((object) $apiResult->podcasts[0]);
|
$podcast = new \Model\Podcast($apiResult->podcasts[0]);
|
||||||
foreach ($apiResult->podcasts as $_podcast) {
|
foreach ($apiResult->podcasts as $_podcast) {
|
||||||
$podcasts[] = new \Model\Podcast((object) $_podcast);
|
$podcasts[] = new \Model\Podcast($_podcast);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$newsItems = [];
|
$newsItems = [];
|
||||||
$apiResult = (object) $this->API('nieuws/overzicht?aantal=5');
|
$apiResult = $this->API('nieuws/overzicht?aantal=5');
|
||||||
foreach ($apiResult->news as $_newsItem) {
|
foreach ($apiResult->news as $_newsItem) {
|
||||||
$newsItems[] = new \Model\NewsItem((object) $_newsItem);
|
$newsItems[] = new \Model\NewsItem($_newsItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view($request->ajax() ? ($title == null ? 'partial/home_newslist_small' : 'partial/newslist_small') : ($title == null ? 'news' : 'newslist'), ['populair' => $populair, 'newsItems' => $newsItems, 'podcasts' => $podcasts, 'podcast' => $podcast, 'id' => $id, 'title' => $title, 'news' => $news, 'searchURL' => 'nieuws/zoeken']);
|
return view($request->ajax() ? ($title == null ? 'partial/home_newslist_small' : 'partial/newslist_small') : ($title == null ? 'news' : 'newslist'), ['populair' => $populair, 'newsItems' => $newsItems, 'podcasts' => $podcasts, 'podcast' => $podcast, 'id' => $id, 'title' => $title, 'news' => $news, 'searchURL' => 'nieuws/zoeken']);
|
||||||
@@ -179,7 +179,7 @@ class NewsController extends Controller
|
|||||||
|
|
||||||
public function popular()
|
public function popular()
|
||||||
{
|
{
|
||||||
$apiResult = (object) $this->API('nieuws/populair');
|
$apiResult = $this->API('nieuws/populair');
|
||||||
$news = [];
|
$news = [];
|
||||||
foreach ($apiResult->news as $newsItem) {
|
foreach ($apiResult->news as $newsItem) {
|
||||||
$news[] = new \Model\NewsItem($newsItem);
|
$news[] = new \Model\NewsItem($newsItem);
|
||||||
@@ -190,7 +190,7 @@ class NewsController extends Controller
|
|||||||
|
|
||||||
public function regionieuws()
|
public function regionieuws()
|
||||||
{
|
{
|
||||||
$data = (object) $this->API('nieuws/regionieuws.json');
|
$data = $this->API('nieuws/regionieuws.json');
|
||||||
return view('listen', [
|
return view('listen', [
|
||||||
'source' => $this->API_URL . 'nieuws/regionieuws.mp3',
|
'source' => $this->API_URL . 'nieuws/regionieuws.mp3',
|
||||||
'title' => 'Regionieuws',
|
'title' => 'Regionieuws',
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class PodcastController extends Controller
|
|||||||
$viewData = [];
|
$viewData = [];
|
||||||
if((int)$programma > 0) {
|
if((int)$programma > 0) {
|
||||||
$action = 'programma/' . (int)$programma;
|
$action = 'programma/' . (int)$programma;
|
||||||
$viewData['program'] = new \Model\Program((object) $this->API('programma/details/' . (int)$programma));
|
$viewData['program'] = new \Model\Program($this->API('programma/details/' . (int)$programma));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->getPodcastList($request, $action, $viewData);
|
return $this->getPodcastList($request, $action, $viewData);
|
||||||
@@ -22,7 +22,7 @@ class PodcastController extends Controller
|
|||||||
private function getPodcastList(Request $request, $action, $viewData = [])
|
private function getPodcastList(Request $request, $action, $viewData = [])
|
||||||
{
|
{
|
||||||
$page = (int)$request->get('pagina', 1);
|
$page = (int)$request->get('pagina', 1);
|
||||||
$apiResult = (object) $this->API('podcast/' . $action . '?pagina=' . (int)max(1, $page) . '&aantal=8');
|
$apiResult = $this->API('podcast/' . $action . '?pagina=' . (int)max(1, $page) . '&aantal=8');
|
||||||
$podcasts = [];
|
$podcasts = [];
|
||||||
foreach($apiResult->podcasts as $podcast)
|
foreach($apiResult->podcasts as $podcast)
|
||||||
{
|
{
|
||||||
@@ -35,15 +35,15 @@ class PodcastController extends Controller
|
|||||||
public function podcast(Request $request, $id)
|
public function podcast(Request $request, $id)
|
||||||
{
|
{
|
||||||
parent::registerView($request, 'podcast', $id);
|
parent::registerView($request, 'podcast', $id);
|
||||||
$apiResult = (object) $this->API('podcast/details/' . (int)$id);
|
$apiResult = $this->API('podcast/details/' . (int)$id);
|
||||||
$podcast = new \Model\Podcast((object) $apiResult);
|
$podcast = new \Model\Podcast($apiResult);
|
||||||
$podcasts = [];
|
$podcasts = [];
|
||||||
if($podcast->program) {
|
if($podcast->program) {
|
||||||
$apiResult = (object) $this->API('podcast/programma/' . (int)$podcast->program->id . '?pagina=1&aantal=5');
|
$apiResult = $this->API('podcast/programma/' . (int)$podcast->program->id . '?pagina=1&aantal=5');
|
||||||
$podcasts = [];
|
$podcasts = [];
|
||||||
foreach($apiResult->podcasts as $p)
|
foreach($apiResult->podcasts as $p)
|
||||||
{
|
{
|
||||||
$podcasts[] = new \Model\Podcast((object) $p);
|
$podcasts[] = new \Model\Podcast($p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return view('podcastitem', ['podcast' => $podcast, 'metadata' => $podcast->metadata, 'podcasts' => $podcasts, 'isPodcast' => true]);
|
return view('podcastitem', ['podcast' => $podcast, 'metadata' => $podcast->metadata, 'podcasts' => $podcasts, 'isPodcast' => true]);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class RadioController extends Controller
|
|||||||
{
|
{
|
||||||
$start = $date ? (new \DateTime($date))->format('Y-m-d') : (new \DateTime("-2 day"))->format('Y-m-d');
|
$start = $date ? (new \DateTime($date))->format('Y-m-d') : (new \DateTime("-2 day"))->format('Y-m-d');
|
||||||
$end = $date ? (new \DateTime($date))->modify('+1 day')->format('Y-m-d') : (new \DateTime("+3 day"))->format('Y-m-d');
|
$end = $date ? (new \DateTime($date))->modify('+1 day')->format('Y-m-d') : (new \DateTime("+3 day"))->format('Y-m-d');
|
||||||
$apiResult = (object) $this->API('programma/schema/periode/' . $start . '/' . $end);
|
$apiResult = $this->API('programma/schema/periode/' . $start . '/' . $end);
|
||||||
$schedule = [];
|
$schedule = [];
|
||||||
foreach($apiResult->schedule as $program)
|
foreach($apiResult->schedule as $program)
|
||||||
{
|
{
|
||||||
@@ -19,7 +19,7 @@ class RadioController extends Controller
|
|||||||
'starttime' => self::JsonToDateTime($program->start),
|
'starttime' => self::JsonToDateTime($program->start),
|
||||||
'endtime' => self::JsonToDateTime($program->end),
|
'endtime' => self::JsonToDateTime($program->end),
|
||||||
'shift' => 0,
|
'shift' => 0,
|
||||||
'program' => new \Model\Program((object) $program->program)
|
'program' => new \Model\Program($program->program)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,11 +49,11 @@ class RadioController extends Controller
|
|||||||
|
|
||||||
public function program($id)
|
public function program($id)
|
||||||
{
|
{
|
||||||
$apiResult = (object) $this->API('programma/details/' . (int)$id);
|
$apiResult = $this->API('programma/details/' . (int)$id);
|
||||||
if($apiResult == null) {
|
if($apiResult == null) {
|
||||||
return abort(404);
|
return abort(404);
|
||||||
}
|
}
|
||||||
return view('radioprogram', ['program' => new \Model\Program((object) $apiResult)]);
|
return view('radioprogram', ['program' => new \Model\Program($apiResult)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function podcast(Request $request, $id, $title = '')
|
public function podcast(Request $request, $id, $title = '')
|
||||||
@@ -63,11 +63,11 @@ class RadioController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
parent::registerView($request, 'podcast', $id);
|
parent::registerView($request, 'podcast', $id);
|
||||||
$apiResult = (object) $this->API('podcast/details/' . (int)$id);
|
$apiResult = $this->API('podcast/details/' . (int)$id);
|
||||||
$podcast = new \Model\Podcast((object) $apiResult);
|
$podcast = new \Model\Podcast($apiResult);
|
||||||
|
|
||||||
$page = (int)$request->get('pagina', 1);
|
$page = (int)$request->get('pagina', 1);
|
||||||
$apiResult = (object) $this->API('podcast/overzicht?pagina=' . (int)max(1, $page) . '&aantal=6');
|
$apiResult = $this->API('podcast/overzicht?pagina=' . (int)max(1, $page) . '&aantal=6');
|
||||||
$podcasts = [];
|
$podcasts = [];
|
||||||
foreach($apiResult->podcasts as $_podcast)
|
foreach($apiResult->podcasts as $_podcast)
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ class RadioController extends Controller
|
|||||||
$viewData = [];
|
$viewData = [];
|
||||||
if((int)$programma > 0) {
|
if((int)$programma > 0) {
|
||||||
$action = 'programma/' . (int)$programma;
|
$action = 'programma/' . (int)$programma;
|
||||||
$viewData['program'] = new \Model\Program((object) $this->API('programma/details/' . (int)$programma));
|
$viewData['program'] = new \Model\Program($this->API('programma/details/' . (int)$programma));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->getPodcastList($request, $action, array_merge($this->getSidebareData(), $viewData));
|
return $this->getPodcastList($request, $action, array_merge($this->getSidebareData(), $viewData));
|
||||||
@@ -99,13 +99,13 @@ class RadioController extends Controller
|
|||||||
$programs = [];
|
$programs = [];
|
||||||
$now = new \DateTimeImmutable('2 minutes ago');
|
$now = new \DateTimeImmutable('2 minutes ago');
|
||||||
$page = (int)$request->get('pagina', 1);
|
$page = (int)$request->get('pagina', 1);
|
||||||
$apiResult = (object) $this->API('programma/schema/recent?pagina=' . (int)max(1, $page) . '&aantal=12');
|
$apiResult = $this->API('programma/schema/recent?pagina=' . (int)max(1, $page) . '&aantal=12');
|
||||||
foreach($apiResult->schedule as $item) {
|
foreach($apiResult->schedule as $item) {
|
||||||
if(!$item->program->nonstop && !$item->program->rerun) {
|
if(!$item->program->nonstop && !$item->program->rerun) {
|
||||||
$item->start = self::JsonToDateTime($item->start);
|
$item->start = self::JsonToDateTime($item->start);
|
||||||
$item->end = self::JsonToDateTime($item->end);
|
$item->end = self::JsonToDateTime($item->end);
|
||||||
$item->current = $item->end >= $now;
|
$item->current = $item->end >= $now;
|
||||||
$item->program = new \Model\Program((object) $item->program);
|
$item->program = new \Model\Program($item->program);
|
||||||
$programs[] = $item;
|
$programs[] = $item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -116,11 +116,11 @@ class RadioController extends Controller
|
|||||||
private function getPodcastList(Request $request, $action, $viewData = [])
|
private function getPodcastList(Request $request, $action, $viewData = [])
|
||||||
{
|
{
|
||||||
$page = (int)$request->get('pagina', 1);
|
$page = (int)$request->get('pagina', 1);
|
||||||
$apiResult = (object) $this->API('podcast/' . $action . '?pagina=' . (int)max(1, $page) . '&aantal=12');
|
$apiResult = $this->API('podcast/' . $action . '?pagina=' . (int)max(1, $page) . '&aantal=12');
|
||||||
$podcasts = [];
|
$podcasts = [];
|
||||||
foreach($apiResult->podcasts as $podcast)
|
foreach($apiResult->podcasts as $podcast)
|
||||||
{
|
{
|
||||||
$podcasts[] = new \Model\Podcast((object) $podcast);
|
$podcasts[] = new \Model\Podcast($podcast);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view($request->ajax() ? 'partial/podcastitems' : 'podcastlist', array_merge($viewData, ['id' => 'items-podcasts', 'podcasts' => $podcasts, 'searchURL' => 'gemist/zoeken', 'isPodcast' => false]));
|
return view($request->ajax() ? 'partial/podcastitems' : 'podcastlist', array_merge($viewData, ['id' => 'items-podcasts', 'podcasts' => $podcasts, 'searchURL' => 'gemist/zoeken', 'isPodcast' => false]));
|
||||||
|
|||||||
@@ -61,11 +61,11 @@ class SpecialController extends Controller
|
|||||||
public function bart(Request $request)
|
public function bart(Request $request)
|
||||||
{
|
{
|
||||||
$page = (int)$request->get('pagina', 1);
|
$page = (int)$request->get('pagina', 1);
|
||||||
$apiResult = (object) $this->API('blog/overzicht/2019-07-01/2019-07-10?pagina=' . (int)max(1, $page));
|
$apiResult = $this->API('blog/overzicht/2019-07-01/2019-07-10?pagina=' . (int)max(1, $page));
|
||||||
$blog = [];
|
$blog = [];
|
||||||
foreach($apiResult->items as $blogItem)
|
foreach($apiResult->items as $blogItem)
|
||||||
{
|
{
|
||||||
$blog[] = new \Model\NewsItem((object) $blogItem);
|
$blog[] = new \Model\NewsItem($blogItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view($request->ajax() ? 'bloglistitems' : 'bloglist', ['title' => 'De Nacht van Bart - 6 juli 2019', 'items' => $blog]);
|
return view($request->ajax() ? 'bloglistitems' : 'bloglist', ['title' => 'De Nacht van Bart - 6 juli 2019', 'items' => $blog]);
|
||||||
|
|||||||
@@ -14,23 +14,7 @@ class Blog extends Model {
|
|||||||
public $url;
|
public $url;
|
||||||
|
|
||||||
public function __construct($data, $images = null, $podcast = null) {
|
public function __construct($data, $images = null, $podcast = null) {
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
// Ensure id is a string, not an array
|
|
||||||
if(is_array($this->id)) {
|
|
||||||
$this->id = $this->id[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure title is a string, not an array
|
|
||||||
if(is_array($this->title)) {
|
|
||||||
$this->title = $this->title[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::ConvertToDateTime($this->start_date);
|
parent::ConvertToDateTime($this->start_date);
|
||||||
parent::ConvertToDateTime($this->end_date);
|
parent::ConvertToDateTime($this->end_date);
|
||||||
|
|
||||||
|
|||||||
@@ -18,23 +18,7 @@ class CalendarEvent extends Model {
|
|||||||
public $tags;
|
public $tags;
|
||||||
|
|
||||||
public function __construct($data, $images = null, $podcast = null) {
|
public function __construct($data, $images = null, $podcast = null) {
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
// Ensure id is a string, not an array
|
|
||||||
if(is_array($this->id)) {
|
|
||||||
$this->id = $this->id[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure title is a string, not an array
|
|
||||||
if(is_array($this->title)) {
|
|
||||||
$this->title = $this->title[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::ConvertToDateTime($this->starts);
|
parent::ConvertToDateTime($this->starts);
|
||||||
parent::ConvertToDateTime($this->ends);
|
parent::ConvertToDateTime($this->ends);
|
||||||
|
|
||||||
@@ -42,7 +26,7 @@ class CalendarEvent extends Model {
|
|||||||
if(isset($data->keywords)) {
|
if(isset($data->keywords)) {
|
||||||
if(is_array($data->keywords)) {
|
if(is_array($data->keywords)) {
|
||||||
$this->keywords = $data->keywords;
|
$this->keywords = $data->keywords;
|
||||||
} else if(trim((string) $data->keywords)) {
|
} else if(trim($data->keywords)) {
|
||||||
$this->keywords = explode(' ', $data->keywords);
|
$this->keywords = explode(' ', $data->keywords);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -63,7 +47,7 @@ class CalendarEvent extends Model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->url = "/agenda/{$this->id}/" . parent::url_slug($this->title ?? '');
|
$this->url = "/agenda/{$this->id}/" . parent::url_slug($this->title);
|
||||||
$this->metadata = (new MetaData())
|
$this->metadata = (new MetaData())
|
||||||
->set('title', $this->title)
|
->set('title', $this->title)
|
||||||
->set('description', strip_tags($this->excerpt()))
|
->set('description', strip_tags($this->excerpt()))
|
||||||
|
|||||||
@@ -12,23 +12,7 @@ class JobOpening extends Model {
|
|||||||
public $url;
|
public $url;
|
||||||
|
|
||||||
public function __construct($data, $images = null, $podcast = null) {
|
public function __construct($data, $images = null, $podcast = null) {
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
// Ensure id is a string, not an array
|
|
||||||
if(is_array($this->id)) {
|
|
||||||
$this->id = $this->id[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure title is a string, not an array
|
|
||||||
if(is_array($this->title)) {
|
|
||||||
$this->title = $this->title[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::ConvertToDateTime($this->starts);
|
parent::ConvertToDateTime($this->starts);
|
||||||
parent::ConvertToDateTime($this->ends);
|
parent::ConvertToDateTime($this->ends);
|
||||||
|
|
||||||
@@ -36,7 +20,7 @@ class JobOpening extends Model {
|
|||||||
if(isset($data->keywords)) {
|
if(isset($data->keywords)) {
|
||||||
if(is_array($data->keywords)) {
|
if(is_array($data->keywords)) {
|
||||||
$this->keywords = $data->keywords;
|
$this->keywords = $data->keywords;
|
||||||
} else if(trim((string) $data->keywords)) {
|
} else if(trim($data->keywords)) {
|
||||||
$this->keywords = explode(' ', $data->keywords);
|
$this->keywords = explode(' ', $data->keywords);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,18 +7,7 @@ class KerkdienstInstance extends Model {
|
|||||||
public $start;
|
public $start;
|
||||||
|
|
||||||
public function __construct($data) {
|
public function __construct($data) {
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
// Ensure name is a string, not an array
|
|
||||||
if(is_array($this->name)) {
|
|
||||||
$this->name = $this->name[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::ConvertToDateTime($this->start);
|
parent::ConvertToDateTime($this->start);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,18 +9,8 @@ class NewsImage extends Model {
|
|||||||
public $url;
|
public $url;
|
||||||
|
|
||||||
public function __construct($data, $urlPrefix = '/') {
|
public function __construct($data, $urlPrefix = '/') {
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
// Ensure title is a string, not an array
|
|
||||||
if(is_array($this->title)) {
|
|
||||||
$this->title = $this->title[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deserialisatie van JSON heeft url in data,
|
// Deserialisatie van JSON heeft url in data,
|
||||||
// lezen uit database heeft file en (als het goed is) urlPrefix
|
// lezen uit database heeft file en (als het goed is) urlPrefix
|
||||||
if(isset($data->file)) {
|
if(isset($data->file)) {
|
||||||
|
|||||||
@@ -29,23 +29,7 @@ class NewsItem extends Model {
|
|||||||
public $metadata;
|
public $metadata;
|
||||||
|
|
||||||
public function __construct($data, $images = null, $podcast = null) {
|
public function __construct($data, $images = null, $podcast = null) {
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
// Ensure id is a string, not an array
|
|
||||||
if(is_array($this->id)) {
|
|
||||||
$this->id = $this->id[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure title is a string, not an array
|
|
||||||
if(is_array($this->title)) {
|
|
||||||
$this->title = $this->title[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::ConvertToDateTime($this->published);
|
parent::ConvertToDateTime($this->published);
|
||||||
parent::ConvertToDateTime($this->edited);
|
parent::ConvertToDateTime($this->edited);
|
||||||
|
|
||||||
@@ -59,9 +43,9 @@ class NewsItem extends Model {
|
|||||||
{
|
{
|
||||||
if(is_object($data->source))
|
if(is_object($data->source))
|
||||||
{
|
{
|
||||||
$this->source = new \Model\NewsSource($data->source->title ?? null, $data->source->url ?? null, $data->source->show ?? false);
|
$this->source = new \Model\NewsSource($data->source->title, $data->source->url, $data->source->show);
|
||||||
} else if($data->source) {
|
} else if($data->source) {
|
||||||
$this->source = new \Model\NewsSource($data->source, $data->source_url ?? null, $data->showsource ?? false);
|
$this->source = new \Model\NewsSource($data->source, $data->source_url, $data->showsource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,45 +59,33 @@ class NewsItem extends Model {
|
|||||||
if(isset($data->keywords)) {
|
if(isset($data->keywords)) {
|
||||||
if(is_array($data->keywords) || is_object($data->keywords)) {
|
if(is_array($data->keywords) || is_object($data->keywords)) {
|
||||||
$this->keywords = $data->keywords;
|
$this->keywords = $data->keywords;
|
||||||
} else if(trim((string) $data->keywords)) {
|
} else if(trim($data->keywords)) {
|
||||||
$this->keywords = explode(' ', $data->keywords);
|
$this->keywords = explode(' ', $data->keywords);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($data->region)) {
|
if(isset($data->region)) {
|
||||||
if(is_object($data->region)) {
|
if(is_object($data->region)) {
|
||||||
$this->region = new \Model\NewsRegion($data->region->title ?? null, $data->region->slug ?? null);
|
$this->region = new \Model\NewsRegion($data->region->title, $data->region->slug);
|
||||||
} else {
|
} else {
|
||||||
$this->region = new \Model\NewsRegion($data->region, $data->region_slug ?? null);
|
$this->region = new \Model\NewsRegion($data->region, $data->region_slug);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($data->theme)) {
|
if(isset($data->theme)) {
|
||||||
if(is_object($data->theme)) {
|
if(is_object($data->theme)) {
|
||||||
$this->theme = new \Model\NewsRegion($data->theme->title ?? null, $data->theme->slug ?? null);
|
$this->theme = new \Model\NewsRegion($data->theme->title, $data->theme->slug);
|
||||||
} else {
|
} else {
|
||||||
$this->theme = new \Model\NewsRegion($data->theme, $data->theme_slug ?? null);
|
$this->theme = new \Model\NewsRegion($data->theme, $data->theme_slug);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($data->tags)) {
|
if(isset($data->tags)) {
|
||||||
$this->tags = [];
|
|
||||||
foreach($data->tags as $tag) {
|
foreach($data->tags as $tag) {
|
||||||
if(is_object($tag)) {
|
$this->theme = new \Model\NewsRegion($tag->titel, $tag->slug);
|
||||||
$this->tags[] = new \Model\NewsRegion($tag->titel ?? null, $tag->slug ?? null);
|
|
||||||
} elseif(is_array($tag)) {
|
|
||||||
$this->tags[] = new \Model\NewsRegion($tag['titel'] ?? null, $tag['slug'] ?? null);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure content is iterable for views - convert string to empty array
|
|
||||||
if(isset($this->content) && is_string($this->content)) {
|
|
||||||
$this->content = [];
|
|
||||||
} elseif(!isset($this->content)) {
|
|
||||||
$this->content = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$images = ($images != null) ? $images
|
$images = ($images != null) ? $images
|
||||||
: (isset($data->images) ? $data->images : null);
|
: (isset($data->images) ? $data->images : null);
|
||||||
if($images) {
|
if($images) {
|
||||||
@@ -123,7 +95,7 @@ class NewsItem extends Model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->url = "/nieuws/{$this->id}/" . parent::url_slug($this->title ?? '');
|
$this->url = "/nieuws/{$this->id}/" . parent::url_slug($this->title);
|
||||||
$this->metadata = (new MetaData())
|
$this->metadata = (new MetaData())
|
||||||
->set('title', $this->title)
|
->set('title', $this->title)
|
||||||
->set('description', strip_tags($this->excerpt()))
|
->set('description', strip_tags($this->excerpt()))
|
||||||
@@ -136,17 +108,11 @@ class NewsItem extends Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function excerpt() {
|
public function excerpt() {
|
||||||
// Handle case where content might be an array of blocks instead of a string
|
|
||||||
if(is_array($this->content) || is_object($this->content)) {
|
|
||||||
return '<p class="news-excerpt"></p>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$hasImages = isset($this->images) && count($this->images) > 0;
|
$hasImages = isset($this->images) && count($this->images) > 0;
|
||||||
$maxLength = $hasImages ? 200 : 500;
|
$maxLength = $hasImages ? 200 : 500;
|
||||||
$text = (string) $this->content;
|
|
||||||
return '<p class="news-excerpt ' . ($hasImages ? 'short' : 'long') . '">' .
|
return '<p class="news-excerpt ' . ($hasImages ? 'short' : 'long') . '">' .
|
||||||
substr($text, 0, $maxLength) .
|
substr($this->content, 0, $maxLength) .
|
||||||
(strlen($text) > $maxLength ? '...' : '') .
|
(strlen($this->content) > $maxLength ? '...' : '') .
|
||||||
'</p>';
|
'</p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,13 +4,11 @@ namespace Model;
|
|||||||
|
|
||||||
class NewsRegion {
|
class NewsRegion {
|
||||||
public $title;
|
public $title;
|
||||||
public $titel; // Support both English and Dutch spelling
|
|
||||||
public $slug;
|
public $slug;
|
||||||
|
|
||||||
public function __construct($title = null, $slug = null) {
|
public function __construct($title, $slug = null) {
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
$this->titel = $title; // Also set titel for compatibility with API responses
|
$this->slug = $slug ? $slug : strtolower(str_replace(' ', '', $title));
|
||||||
$this->slug = $slug ? $slug : ($title ? strtolower(str_replace(' ', '', $title)) : null);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,31 +21,10 @@ class Podcast extends Model {
|
|||||||
private $key;
|
private $key;
|
||||||
|
|
||||||
public function __construct($data) {
|
public function __construct($data) {
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
// Ensure id is a string, not an array
|
|
||||||
if(is_array($this->id)) {
|
|
||||||
$this->id = $this->id[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure title is a string, not an array
|
|
||||||
if(is_array($this->title)) {
|
|
||||||
$this->title = $this->title[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure image is not an array from API
|
|
||||||
if(is_array($this->image)) {
|
|
||||||
$this->image = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::ConvertToDateTime($this->created);
|
parent::ConvertToDateTime($this->created);
|
||||||
|
|
||||||
$this->url = '/' . $this->id . '/' . parent::url_slug($this->title ?? '') . '.mp3';
|
$this->url = '/' . $this->id . '/' . parent::url_slug($this->title) . '.mp3';
|
||||||
if($this->soundfilename) {
|
if($this->soundfilename) {
|
||||||
// Only generate when not constructing from a JSON object
|
// Only generate when not constructing from a JSON object
|
||||||
$this->key = sha1($this->id . ':' . date('Y-m-d') . ':' . $this->soundfilename);
|
$this->key = sha1($this->id . ':' . date('Y-m-d') . ':' . $this->soundfilename);
|
||||||
@@ -57,15 +36,7 @@ class Podcast extends Model {
|
|||||||
if(is_object($data->program)) {
|
if(is_object($data->program)) {
|
||||||
$this->program = new \Model\Program($data->program);
|
$this->program = new \Model\Program($data->program);
|
||||||
} elseif($data->program) {
|
} elseif($data->program) {
|
||||||
$program_name = $data->program_name ?? null;
|
$this->program = new \Model\Program(['id' => $data->program, 'name' => $data->program_name, 'description' => $data->program_description]);
|
||||||
if(is_array($program_name)) {
|
|
||||||
$program_name = $program_name[0] ?? null;
|
|
||||||
}
|
|
||||||
$program_desc = $data->program_description ?? null;
|
|
||||||
if(is_array($program_desc)) {
|
|
||||||
$program_desc = $program_desc[0] ?? null;
|
|
||||||
}
|
|
||||||
$this->program = new \Model\Program((object) ['id' => $data->program, 'name' => $program_name, 'description' => $program_desc]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +44,7 @@ class Podcast extends Model {
|
|||||||
$imagedata = new \stdClass();
|
$imagedata = new \stdClass();
|
||||||
$imagedata->id = $this->id;
|
$imagedata->id = $this->id;
|
||||||
$imagedata->file = $data->imagefile;
|
$imagedata->file = $data->imagefile;
|
||||||
$imagedata->title = $data->imagecaption ?? null;
|
$imagedata->title = $data->imagecaption;
|
||||||
$this->image = new NewsImage($imagedata, '/img/podcast/');
|
$this->image = new NewsImage($imagedata, '/img/podcast/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,29 +18,10 @@ class Program extends Model {
|
|||||||
public $next;
|
public $next;
|
||||||
|
|
||||||
public function __construct($data) {
|
public function __construct($data) {
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
// Ensure id is a string, not an array
|
|
||||||
if(is_array($this->id)) {
|
|
||||||
$this->id = $this->id[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure name is a string, not an array
|
|
||||||
if(is_array($this->name)) {
|
|
||||||
$this->name = $this->name[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($data->suffix) && $data->suffix) {
|
if(isset($data->suffix) && $data->suffix) {
|
||||||
$suffix = $data->suffix;
|
$this->name .= ' ' . $data->suffix;
|
||||||
if(is_array($suffix)) {
|
|
||||||
$suffix = $suffix[0] ?? '';
|
|
||||||
}
|
|
||||||
$this->name .= ' ' . $suffix;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->recent && $this->recent) {
|
if($this->recent && $this->recent) {
|
||||||
@@ -56,7 +37,7 @@ class Program extends Model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($data->email) && ($mailComma = strpos((string) $data->email, ',')) !== false) {
|
if(isset($data->email) && ($mailComma = strpos($data->email, ',')) !== false) {
|
||||||
$this->email = substr($data->email, 0, $mailComma);
|
$this->email = substr($data->email, 0, $mailComma);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +46,7 @@ class Program extends Model {
|
|||||||
$this->rerun = $data->state == 3;
|
$this->rerun = $data->state == 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->url = "/{$this->id}/" . parent::url_slug($this->name ?? '');
|
$this->url = "/{$this->id}/" . parent::url_slug($this->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isSpecial() {
|
public function isSpecial() {
|
||||||
|
|||||||
@@ -6,19 +6,5 @@ class ProgramHost extends Model {
|
|||||||
public $id;
|
public $id;
|
||||||
public $name;
|
public $name;
|
||||||
public $email;
|
public $email;
|
||||||
|
|
||||||
public function __construct($data) {
|
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
|
||||||
|
|
||||||
// Ensure name is a string, not an array
|
|
||||||
if(is_array($this->name)) {
|
|
||||||
$this->name = $this->name[0] ?? '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12,24 +12,7 @@ class Track extends Model {
|
|||||||
public $isLayout;
|
public $isLayout;
|
||||||
|
|
||||||
public function __construct($data) {
|
public function __construct($data) {
|
||||||
// Convert arrays to objects for consistent handling
|
|
||||||
if(is_array($data)) {
|
|
||||||
$data = (object) $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
// Ensure string fields are not arrays
|
|
||||||
if(is_array($this->title)) {
|
|
||||||
$this->title = $this->title[0] ?? '';
|
|
||||||
}
|
|
||||||
if(is_array($this->itemCode)) {
|
|
||||||
$this->itemCode = $this->itemCode[0] ?? '';
|
|
||||||
}
|
|
||||||
if(is_array($this->artist)) {
|
|
||||||
$this->artist = $this->artist[0] ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
parent::ConvertToDateTime($this->start);
|
parent::ConvertToDateTime($this->start);
|
||||||
parent::ConvertToDateTime($this->ends);
|
parent::ConvertToDateTime($this->ends);
|
||||||
$isLayout = $this->isLayout();
|
$isLayout = $this->isLayout();
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd /var/www/app
|
||||||
|
|
||||||
|
# Set HOME for npm cache (www-data user needs writable cache directory)
|
||||||
|
export HOME=/tmp
|
||||||
|
|
||||||
|
echo "Setting up dependencies..."
|
||||||
|
|
||||||
|
# Create vendor directories and fix permissions
|
||||||
|
echo "Fixing permissions..."
|
||||||
|
mkdir -p bootstrap/cache storage/framework storage/logs public/assets/vendor
|
||||||
|
chown -R www-data:www-data bootstrap/cache storage/framework storage/logs public/assets/vendor
|
||||||
|
chmod -R ug+rwX bootstrap/cache storage/framework storage/logs public/assets/vendor
|
||||||
|
|
||||||
|
# Install PHP dependencies
|
||||||
|
echo "Installing PHP packages..."
|
||||||
|
composer install \
|
||||||
|
--no-dev \
|
||||||
|
--prefer-dist \
|
||||||
|
--no-interaction \
|
||||||
|
--optimize-autoloader
|
||||||
|
|
||||||
|
# Install npm dependencies if package.json has dependencies
|
||||||
|
if grep -q "\"dependencies\"" package.json; then
|
||||||
|
echo "Installing npm packages..."
|
||||||
|
npm ci --omit=dev
|
||||||
|
node scripts/setup-vendor.js
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fix permissions
|
||||||
|
echo "Fixing permissions..."
|
||||||
|
chown -R www-data:www-data \
|
||||||
|
bootstrap/cache \
|
||||||
|
public/assets/vendor
|
||||||
|
|
||||||
|
chmod -R ug+rwX bootstrap/cache
|
||||||
|
|
||||||
|
echo "✓ Setup complete, starting Apache..."
|
||||||
|
exec apache2-foreground
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
# Set ownership
|
||||||
|
chown -R www-data:www-data .
|
||||||
|
|
||||||
|
# Normal permissions
|
||||||
|
find . -type d -exec chmod 775 {} \;
|
||||||
|
find . -type f -exec chmod 664 {} \;
|
||||||
|
|
||||||
|
# Laravel writable directories
|
||||||
|
find storage bootstrap/cache -type d -exec chmod 775 {} \;
|
||||||
|
find storage bootstrap/cache -type f -exec chmod 664 {} \;
|
||||||
|
|
||||||
|
# Laravel CLI
|
||||||
|
chmod 755 artisan
|
||||||
@@ -1,9 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "nhgooi.nl",
|
"name": "workspace",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
|
"hasInstallScript": true,
|
||||||
|
"dependencies": {
|
||||||
|
"air-datepicker": "^3.5.0",
|
||||||
|
"daterangepicker": "^3.1.0",
|
||||||
|
"jquery": "^3.7.0",
|
||||||
|
"jquery-ui": "^1.13.0",
|
||||||
|
"moment": "^2.30.0",
|
||||||
|
"wavesurfer.js": "^7.8.0"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "^1.6.1",
|
"grunt": "^1.6.1",
|
||||||
"grunt-contrib-concat": "^2.1.0",
|
"grunt-contrib-concat": "^2.1.0",
|
||||||
@@ -18,6 +27,12 @@
|
|||||||
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
|
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/air-datepicker": {
|
||||||
|
"version": "3.6.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/air-datepicker/-/air-datepicker-3.6.0.tgz",
|
||||||
|
"integrity": "sha512-+txUkqa949rXBJDmkQAIb/GehZECJYF4rm9XJxVYtEX22C9WvBpE/XwCUQZBopKIkpg4ycAySJ9lH3JOg9qQTw==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/ansi-styles": {
|
"node_modules/ansi-styles": {
|
||||||
"version": "4.3.0",
|
"version": "4.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||||
@@ -241,6 +256,16 @@
|
|||||||
"node": "*"
|
"node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/daterangepicker": {
|
||||||
|
"version": "3.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/daterangepicker/-/daterangepicker-3.1.0.tgz",
|
||||||
|
"integrity": "sha512-DxWXvvPq4srWLCqFugqSV+6CBt/CvQ0dnpXhQ3gl0autcIDAruG1PuGG3gC7yPRNytAD1oU1AcUOzaYhOawhTw==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": ">=1.10",
|
||||||
|
"moment": "^2.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/debug": {
|
"node_modules/debug": {
|
||||||
"version": "3.2.7",
|
"version": "3.2.7",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
|
||||||
@@ -1075,6 +1100,21 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/jquery": {
|
||||||
|
"version": "3.7.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz",
|
||||||
|
"integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/jquery-ui": {
|
||||||
|
"version": "1.14.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/jquery-ui/-/jquery-ui-1.14.2.tgz",
|
||||||
|
"integrity": "sha512-1gSl7PUjyipa2adSr780Ujk16faicrV7PjPPzPtvWk7tTqBnsqp67NNV9jZK2+BIxUPXWSnIUU/LBCgwgGZE+Q==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": ">=1.12.0 <5.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/js-yaml": {
|
"node_modules/js-yaml": {
|
||||||
"version": "3.14.1",
|
"version": "3.14.1",
|
||||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
|
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
|
||||||
@@ -1207,6 +1247,15 @@
|
|||||||
"node": "*"
|
"node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/moment": {
|
||||||
|
"version": "2.30.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
|
||||||
|
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/ms": {
|
"node_modules/ms": {
|
||||||
"version": "2.1.3",
|
"version": "2.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||||
@@ -1740,6 +1789,12 @@
|
|||||||
"node": ">= 0.10"
|
"node": ">= 0.10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/wavesurfer.js": {
|
||||||
|
"version": "7.12.11",
|
||||||
|
"resolved": "https://registry.npmjs.org/wavesurfer.js/-/wavesurfer.js-7.12.11.tgz",
|
||||||
|
"integrity": "sha512-Sx0yZIz7jRJ9J9p7UL+pl9y0UQBB6UN/XNo+R7Gy4tCR5xZI9jMyA0dnt1R8TMVSQ4LZ10SeB2HJYQ+dV2dPSA==",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
"node_modules/websocket-driver": {
|
"node_modules/websocket-driver": {
|
||||||
"version": "0.7.4",
|
"version": "0.7.4",
|
||||||
"resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz",
|
"resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz",
|
||||||
|
|||||||
@@ -1,12 +1,24 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"dev": "grunt watch",
|
||||||
|
"build": "grunt uglify concat",
|
||||||
|
"postinstall": "node scripts/setup-vendor.js || true",
|
||||||
"sass": "sass resources/assets/sass:public/css",
|
"sass": "sass resources/assets/sass:public/css",
|
||||||
"sass-watch": "sass --watch resources/assets/sass:public/css",
|
"sass-watch": "sass --watch resources/assets/sass:public/css",
|
||||||
"sass-minify": "sass resources/assets/sass/style.scss:public/css/style.min.css --style compressed",
|
"sass-minify": "sass resources/assets/sass/style.scss:public/css/style.min.css --style compressed",
|
||||||
"sass-minify-watch": "sass --watch resources/assets/sass/style.scss:public/css/style.min.css --style compressed",
|
"sass-minify-watch": "sass --watch resources/assets/sass/style.scss:public/css/style.min.css --style compressed",
|
||||||
"js-watch": "grunt watch"
|
"js-watch": "grunt watch"
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": "^3.7.0",
|
||||||
|
"jquery-ui": "^1.13.0",
|
||||||
|
"moment": "^2.30.0",
|
||||||
|
"daterangepicker": "^3.1.0",
|
||||||
|
"wavesurfer.js": "^7.8.0",
|
||||||
|
"air-datepicker": "^3.5.0"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "^1.6.1",
|
"grunt": "^1.6.1",
|
||||||
"grunt-contrib-concat": "^2.1.0",
|
"grunt-contrib-concat": "^2.1.0",
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 183 KiB After Width: | Height: | Size: 183 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 606 B |
|
Before Width: | Height: | Size: 417 B After Width: | Height: | Size: 417 B |
|
Before Width: | Height: | Size: 951 B After Width: | Height: | Size: 951 B |
|
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 637 B |
|
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 274 B |
|
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 274 B |