Fixes for dem

This commit is contained in:
David Bomba 2020-07-16 15:50:02 +10:00
parent b4ad18bfe9
commit e5a8b8af0a
3 changed files with 4 additions and 3 deletions

View File

@ -86,7 +86,7 @@ class DemoMode extends Command
private function createSmallAccount() private function createSmallAccount()
{ {
$this->count = 100; $this->count = 10;
$this->info('Creating Small Account and Company'); $this->info('Creating Small Account and Company');

View File

@ -10,6 +10,7 @@ $factory->define(App\Models\Company::class, function (Faker $faker) {
'ip' => $faker->ipv4, 'ip' => $faker->ipv4,
'db' => config('database.default'), 'db' => config('database.default'),
'settings' => CompanySettings::defaults(), 'settings' => CompanySettings::defaults(),
'is_large' => true,
'custom_fields' => (object) [ 'custom_fields' => (object) [
//'invoice1' => 'Custom Date|date', //'invoice1' => 'Custom Date|date',
// 'invoice2' => '2|switch', // 'invoice2' => '2|switch',

View File

@ -5,7 +5,7 @@
<title>Invoice Ninja</title> <title>Invoice Ninja</title>
<meta name="report_errors" content="{{ $report_errors }}"> <meta name="report_errors" content="{{ $report_errors }}">
<meta name="google-signin-client_id" content="{{ config('services.google.client_id') }}"> <meta name="google-signin-client_id" content="{{ config('services.google.client_id') }}">
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json?v={{sha1(time())}}">
</head> </head>
<body style="background-color:#888888;"> <body style="background-color:#888888;">
@ -75,7 +75,7 @@
<script> <script>
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
window.addEventListener('load', function () { window.addEventListener('load', function () {
navigator.serviceWorker.register('/flutter_service_worker.js'); navigator.serviceWorker.register('/flutter_service_worker.js?v={{sha1(time())}}');
}); });
} }