mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
fix auto update issues
This commit is contained in:
@ -107,7 +107,7 @@ class Updater
|
|||||||
public static function checkForUpdate()
|
public static function checkForUpdate()
|
||||||
{
|
{
|
||||||
$data = null;
|
$data = null;
|
||||||
$url = 'https://craterapp.com/downloads/check/latest/'. Setting::getSetting('version');
|
$url = 'https://craterapp.com/downloads/check/latest/'. Setting::getSetting('version') . '?type=update';
|
||||||
|
|
||||||
$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);
|
$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);
|
||||||
|
|
||||||
|
|||||||
18772
public/assets/css/laraspace.css
vendored
18772
public/assets/css/laraspace.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
182229
public/assets/js/app.js
182229
public/assets/js/app.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
"/assets/js/app.js": "/assets/js/app.js?id=3b2f01ef62fc004d0eb0",
|
"/assets/js/app.js": "/assets/js/app.js",
|
||||||
"/assets/css/laraspace.css": "/assets/css/laraspace.css?id=6167eed16c8f72709d70"
|
"/assets/css/laraspace.css": "/assets/css/laraspace.css",
|
||||||
|
"/assets/js/app.js.map": "/assets/js/app.js.map",
|
||||||
|
"/assets/css/laraspace.css.map": "/assets/css/laraspace.css.map"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<label class="input-label">{{ $t('settings.update_app.current_version') }}</label><br>
|
<label class="input-label">{{ $t('settings.update_app.current_version') }}</label><br>
|
||||||
<label class="version mb-4">{{ currentVersion }}</label>
|
<label class="version mb-4">{{ currentVersion }}</label>
|
||||||
<base-button :outline="true" :disabled="isCheckingforUpdate || isUpdating" size="large" color="theme" @click="checkUpdate" class="mb-4">
|
<base-button :outline="true" :disabled="isCheckingforUpdate || isUpdating" size="large" color="theme" class="mb-4" @click="checkUpdate">
|
||||||
<font-awesome-icon :class="{'update': isCheckingforUpdate}" style="margin-right: 10px;" icon="sync-alt" />
|
<font-awesome-icon :class="{'update': isCheckingforUpdate}" style="margin-right: 10px;" icon="sync-alt" />
|
||||||
{{ $t('settings.update_app.check_update') }}
|
{{ $t('settings.update_app.check_update') }}
|
||||||
</base-button>
|
</base-button>
|
||||||
@ -98,7 +98,7 @@ export default {
|
|||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.updateData.isMinor = response.data.is_minor
|
this.updateData.isMinor = response.data.is_minor
|
||||||
this.updateData.version = response.data.version.version
|
this.updateData.version = response.data.version.version
|
||||||
this.description = response.data.description
|
this.description = response.data.version.description
|
||||||
this.isUpdateAvailable = true
|
this.isUpdateAvailable = true
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
2
resources/assets/sass/laraspace.scss
vendored
2
resources/assets/sass/laraspace.scss
vendored
@ -3,10 +3,8 @@
|
|||||||
|
|
||||||
@import "../../../node_modules/bootstrap/scss/functions";
|
@import "../../../node_modules/bootstrap/scss/functions";
|
||||||
@import "../../../node_modules/bootstrap/scss/variables";
|
@import "../../../node_modules/bootstrap/scss/variables";
|
||||||
|
|
||||||
@import 'variables';
|
@import 'variables';
|
||||||
|
|
||||||
|
|
||||||
// Plugins
|
// Plugins
|
||||||
//----------------------------------
|
//----------------------------------
|
||||||
|
|
||||||
|
|||||||
2
resources/assets/sass/variables.scss
vendored
2
resources/assets/sass/variables.scss
vendored
@ -90,7 +90,7 @@ $theme-colors: (
|
|||||||
danger: $ls-color-red,
|
danger: $ls-color-red,
|
||||||
light: $ls-color-primary--light,
|
light: $ls-color-primary--light,
|
||||||
dark: $ls-color-secondary
|
dark: $ls-color-secondary
|
||||||
) !default;
|
);
|
||||||
|
|
||||||
$navbar-dark-toggler-icon-bg: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{str-replace(str-replace(#{$navbar-dark-color}, "(", "%28"), ")", "%29")}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
|
$navbar-dark-toggler-icon-bg: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{str-replace(str-replace(#{$navbar-dark-color}, "(", "%28"), ")", "%29")}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
|
||||||
$navbar-light-toggler-icon-bg: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{str-replace(str-replace(#{$navbar-light-color}, "(", "%28"), ")", "%29")}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
|
$navbar-light-toggler-icon-bg: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{str-replace(str-replace(#{$navbar-light-color}, "(", "%28"), ")", "%29")}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
|
||||||
|
|||||||
Reference in New Issue
Block a user