- Remove external JS and CSS dependencies - Use Vuejs runtime - Add xss sanitizer - Normalize Laravel mix + add cleaner - Update npm deps - Upgrade bootswatch theme
32 lines
864 B
PHP
32 lines
864 B
PHP
@extends('layout.app')
|
|
|
|
|
|
|
|
@section('content')
|
|
<div class="container container-xxl vueComponent">
|
|
@php
|
|
$dataVue = [
|
|
'isAdmin' => Auth::user()->isAdmin() ? '1' : '0',
|
|
'today' => now(),
|
|
'startDay' => $date,
|
|
'loadCollection' => $loadCollection,
|
|
'projects' => $projects,
|
|
'projectStatusEnum' => ProjectStatus::toArray(),
|
|
'activitiesEnum' => ActivityEnum::toArray(),
|
|
'macroscheduleConfig' => config('macroschedule'),
|
|
];
|
|
@endphp
|
|
<div
|
|
id="macro-planning"
|
|
data-json='@json($dataVue)'></div>
|
|
</div>
|
|
@endsection
|
|
|
|
@push('scriptsConstants')
|
|
<script nonce="{{ $nonce }}">
|
|
window._routes = {
|
|
"macroplanning.activity": "{{ route('macroplanning.activity') }}",
|
|
"projects.show": "{{ route('projects.show', ['project' => 'PROJECT']) }}",
|
|
};
|
|
</script>
|
|
@endpush
|