mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Allow Cachet to be setup not from the server's root
The `asset()` helper was missing at some places so it was not possible to install it in an other place than the server's root (/). The paths have been fixed and now use the `asset()` helper. Also, The steps process takes care of the current path. See: #3618
This commit is contained in:
parent
c30b3659fe
commit
c5217637e6
56
public/dist/js/all.js
vendored
56
public/dist/js/all.js
vendored
File diff suppressed because one or more lines are too long
2
public/dist/js/app.js
vendored
2
public/dist/js/app.js
vendored
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
||||
{
|
||||
"/dist/js/vendor.js": "/dist/js/vendor.js?id=313e4cd2cf600307cb5c",
|
||||
"/dist/js/app.js": "/dist/js/app.js?id=be35dd18d92eef9dee9f",
|
||||
"/dist/js/app.js": "/dist/js/app.js?id=7877550e52e1d4e8d66b",
|
||||
"/dist/css/dashboard/dashboard.css": "/dist/css/dashboard/dashboard.css?id=0d9dfb3411fe9391898f",
|
||||
"/dist/css/app.css": "/dist/css/app.css?id=1b9032e972af93e2c869",
|
||||
"/dist/js/manifest.js": "/dist/js/manifest.js?id=40dcfff9d09d402daf38",
|
||||
"/dist/js/all.js": "/dist/js/all.js?id=1350a1cbe301201dbf4b"
|
||||
"/dist/js/all.js": "/dist/js/all.js?id=498db5622a6525cca7e2"
|
||||
}
|
||||
|
@ -251,7 +251,8 @@ $(function () {
|
||||
|
||||
// Only validate going forward. If current group is invalid, do not go further
|
||||
if (next > current) {
|
||||
var url = '/setup/step' + current;
|
||||
var currentUrl = window.location.href.replace(/step\d/, '');
|
||||
var url = currentUrl + '/step' + current;
|
||||
$.post(url, $form.serializeObject())
|
||||
.done(function(response) {
|
||||
goToStep(current, next);
|
||||
|
@ -25,7 +25,7 @@
|
||||
@if($enableExternalDependencies)
|
||||
{{-- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset={{ $fontSubset }}" rel="stylesheet" type="text/css"> --}}
|
||||
@endif
|
||||
<link rel="stylesheet" href="{{ mix('dist/css/dashboard/dashboard.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset(mix('dist/css/dashboard/dashboard.css')) }}">
|
||||
@yield('css')
|
||||
|
||||
@include('partials.crowdin')
|
||||
@ -35,8 +35,8 @@
|
||||
Global.locale = '{{ $appLocale }}';
|
||||
</script>
|
||||
|
||||
<script src="{{ mix('dist/js/manifest.js') }}"></script>
|
||||
<script src="{{ mix('dist/js/vendor.js') }}"></script>
|
||||
<script src="{{ asset(mix('dist/js/manifest.js')) }}"></script>
|
||||
<script src="{{ asset(mix('dist/js/vendor.js')) }}"></script>
|
||||
</head>
|
||||
|
||||
<body class="@yield('bodyClass')">
|
||||
@ -45,5 +45,5 @@
|
||||
</div>
|
||||
</body>
|
||||
@yield('js')
|
||||
<script src="{{ mix('dist/js/all.js') }}"></script>
|
||||
<script src="{{ asset(mix('dist/js/all.js')) }}"></script>
|
||||
</html>
|
||||
|
@ -31,13 +31,13 @@
|
||||
@if($enableExternalDependencies)
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset={{ $fontSubset }}" rel="stylesheet" type="text/css">
|
||||
@endif
|
||||
<link rel="stylesheet" href="{{ mix('dist/css/dashboard/dashboard.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset(mix('dist/css/dashboard/dashboard.css')) }}">
|
||||
@yield('css')
|
||||
|
||||
@include('partials.crowdin')
|
||||
|
||||
<script src="{{ mix('dist/js/manifest.js') }}"></script>
|
||||
<script src="{{ mix('dist/js/vendor.js') }}"></script>
|
||||
<script src="{{ asset(mix('dist/js/manifest.js')) }}"></script>
|
||||
<script src="{{ asset(mix('dist/js/vendor.js')) }}"></script>
|
||||
</head>
|
||||
|
||||
<body class="dashboard">
|
||||
@ -61,5 +61,5 @@
|
||||
</div>
|
||||
</body>
|
||||
@yield('js')
|
||||
<script src="{{ mix('dist/js/all.js') }}"></script>
|
||||
<script src="{{ asset(mix('dist/js/all.js')) }}"></script>
|
||||
</html>
|
||||
|
@ -48,7 +48,7 @@
|
||||
@if($enableExternalDependencies)
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset={{ $fontSubset }}" rel="stylesheet" type="text/css">
|
||||
@endif
|
||||
<link rel="stylesheet" href="{{ mix('dist/css/app.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset(mix('dist/css/app.css')) }} ">
|
||||
|
||||
@include('partials.stylesheet')
|
||||
|
||||
@ -74,8 +74,8 @@
|
||||
|
||||
Global.locale = '{{ $appLocale }}';
|
||||
</script>
|
||||
<script src="{{ mix('dist/js/manifest.js') }}"></script>
|
||||
<script src="{{ mix('dist/js/vendor.js') }}"></script>
|
||||
<script src="{{ asset(mix('dist/js/manifest.js')) }}"></script>
|
||||
<script src="{{ asset(mix('dist/js/vendor.js')) }}"></script>
|
||||
</head>
|
||||
<body class="status-page @yield('bodyClass')">
|
||||
@yield('outer-content')
|
||||
@ -88,5 +88,5 @@
|
||||
|
||||
@yield('bottom-content')
|
||||
</body>
|
||||
<script src="{{ mix('dist/js/all.js') }}"></script>
|
||||
<script src="{{ asset(mix('dist/js/all.js')) }}"></script>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user