Update other old references
This commit is contained in:
@@ -20,14 +20,14 @@ class UpdateCommand extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'crater:update';
|
||||
protected $signature = 'core:update';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Automatically update your crater app';
|
||||
protected $description = 'Automatically update your InvoiceShelf Core App';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
|
||||
@@ -108,7 +108,7 @@ class ModuleResource extends JsonResource
|
||||
return false;
|
||||
}
|
||||
|
||||
if (version_compare(Setting::getSetting('version'), $this->latest_module_version->crater_version, '<')) {
|
||||
if (version_compare(Setting::getSetting('version'), $this->latest_module_version->invoiceshelf_version, '<')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ class Company extends Model implements HasMedia
|
||||
'fiscal_year' => '1-12',
|
||||
'carbon_date_format' => 'Y/m/d',
|
||||
'moment_date_format' => 'YYYY/MM/DD',
|
||||
'notification_email' => 'noreply@crater.in',
|
||||
'notification_email' => 'noreply@invoiceshelf.com',
|
||||
'notify_invoice_viewed' => 'NO',
|
||||
'notify_estimate_viewed' => 'NO',
|
||||
'tax_per_item' => 'NO',
|
||||
|
||||
@@ -119,11 +119,11 @@ class FileDisk extends Model
|
||||
if ($disk == 'dropbox') {
|
||||
$root = $credentials['root'].'/';
|
||||
}
|
||||
\Storage::disk($prefix.$disk)->put($root.'crater_temp.text', 'Check Credentials');
|
||||
\Storage::disk($prefix.$disk)->put($root.'invoiceshelf_temp.text', 'Check Credentials');
|
||||
|
||||
if (\Storage::disk($prefix.$disk)->exists($root.'crater_temp.text')) {
|
||||
if (\Storage::disk($prefix.$disk)->exists($root.'invoiceshelf_temp.text')) {
|
||||
$exists = true;
|
||||
\Storage::disk($prefix.$disk)->delete($root.'crater_temp.text');
|
||||
\Storage::disk($prefix.$disk)->delete($root.'invoiceshelf_temp.text');
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
$exists = false;
|
||||
|
||||
@@ -16,8 +16,8 @@ trait SiteApi
|
||||
$headers['headers'] = [
|
||||
'Accept' => 'application/json',
|
||||
'Referer' => url('/'),
|
||||
'crater' => Setting::getSetting('version'),
|
||||
'Authorization' => "Bearer {$token}",
|
||||
'invoiceshelf' => Setting::getSetting('version'),
|
||||
];
|
||||
|
||||
$data['http_errors'] = false;
|
||||
|
||||
@@ -118,7 +118,7 @@ class Updater
|
||||
|
||||
public static function copyFiles($temp_extract_dir)
|
||||
{
|
||||
if (! File::copyDirectory($temp_extract_dir.'/Crater', base_path())) {
|
||||
if (! File::copyDirectory($temp_extract_dir.'/InvoiceShelf', base_path())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ function get_page_title($company_id)
|
||||
$routeName = Route::currentRouteName();
|
||||
|
||||
$pageTitle = null;
|
||||
$defaultPageTitle = 'Crater - Self Hosted Invoicing Platform';
|
||||
$defaultPageTitle = 'InvoiceShelf - Self Hosted Invoicing Platform';
|
||||
|
||||
if (\Storage::disk('local')->has('database_created')) {
|
||||
if ($routeName === 'customer.dashboard') {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<body
|
||||
class="h-full overflow-hidden bg-gray-100 font-base
|
||||
@if(isset($current_theme)) theme-{{ $current_theme }} @else theme-{{get_app_setting('admin_portal_theme') ?? 'crater'}} @endif ">
|
||||
@if(isset($current_theme)) theme-{{ $current_theme }} @else theme-{{get_app_setting('admin_portal_theme') ?? 'invoiceshelf'}} @endif ">
|
||||
|
||||
<!-- Module Scripts -->
|
||||
@foreach (\InvoiceShelf\Services\Module\ModuleFacade::allScripts() as $name => $path)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
{{-- Footer --}}
|
||||
@slot('footer')
|
||||
@component('mail::footer')
|
||||
Powered by <a class="footer-link" href="https://craterapp.com">Crater</a>
|
||||
Powered by <a class="footer-link" href="https://invoiceshelf.com" target="_blank">InvoiceShelf</a>
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endcomponent
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
{{-- Footer --}}
|
||||
@slot('footer')
|
||||
@component('mail::footer')
|
||||
Powered by <a class="footer-link" href="https://craterapp.com">Crater</a>
|
||||
Powered by <a class="footer-link" href="https://invoiceshelf.com" target="_blank">InvoiceShelf</a>
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endcomponent
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
{{-- Footer --}}
|
||||
@slot('footer')
|
||||
@component('mail::footer')
|
||||
Powered by <a class="footer-link" href="https://craterapp.com">Crater</a>
|
||||
Powered by <a class="footer-link" href="https://invoiceshelf.com" target="_blank">InvoiceShelf</a>
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endcomponent
|
||||
|
||||
Reference in New Issue
Block a user