mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-01-09 16:53:22 +01:00
fef2e09aa9
LittleLink Custom now includes an .env config editor. This editor can be accessed via the Admin Panel under Admin>Config. This editor allows admins to edit, backup, download and upload the .env configuration file. All in all, the new feature, allows users to more easily edit the configuration file, contributing to my goal of making LittleLink Custom easier to use. Read more about this topic on the Blog https://blog.littlelink-custom.com/built-in-config-editor
34 lines
1.0 KiB
PHP
34 lines
1.0 KiB
PHP
@php($translatePrefix='env-editor::env-editor.views.currentEnv.')
|
|
<template id="env-editor-config-actions">
|
|
<div>
|
|
<button class="btn-outline-dark btn btn-sm" title="{{__($translatePrefix.'btn.deleteConfigCacheDesc')}}"
|
|
@click="deleteConfigCache">{{__($translatePrefix.'btn.deleteConfigCache')}}</button>
|
|
|
|
</div>
|
|
</template>
|
|
|
|
@push('scripts')
|
|
|
|
<script>
|
|
|
|
let configActions = {
|
|
template: '#env-editor-config-actions',
|
|
methods: {
|
|
deleteConfigCache() {
|
|
this.submit('delete', '{{route(config($package.'.route.name').'.clearConfigCache')}}');
|
|
},
|
|
submit(method, url) {
|
|
envClient(url,{
|
|
method: method
|
|
}).then(data => {
|
|
if (data.message) {
|
|
envAlert('info', data.message);
|
|
}
|
|
})
|
|
},
|
|
}
|
|
};
|
|
|
|
</script>
|
|
@endpush
|