Merge branch 'master' of https://gitlab.com/mohit.panjvani/crater-web into dashboard-refactor

This commit is contained in:
raishvaria
2019-11-18 09:14:33 +05:30
9 changed files with 201009 additions and 12 deletions

View File

@ -107,7 +107,7 @@ class Updater
public static function checkForUpdate()
{
$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]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,6 @@
{
"/assets/js/app.js": "/assets/js/app.js?id=3b2f01ef62fc004d0eb0",
"/assets/css/laraspace.css": "/assets/css/laraspace.css?id=6167eed16c8f72709d70"
"/assets/js/app.js": "/assets/js/app.js",
"/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"
}

View File

@ -8,7 +8,7 @@
</p>
<label class="input-label">{{ $t('settings.update_app.current_version') }}</label><br>
<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" />
{{ $t('settings.update_app.check_update') }}
</base-button>
@ -98,7 +98,7 @@ export default {
if (response.data) {
this.updateData.isMinor = response.data.is_minor
this.updateData.version = response.data.version.version
this.description = response.data.description
this.description = response.data.version.description
this.isUpdateAvailable = true
}
} catch (e) {

View File

@ -3,10 +3,8 @@
@import "../../../node_modules/bootstrap/scss/functions";
@import "../../../node_modules/bootstrap/scss/variables";
@import 'variables';
// Plugins
//----------------------------------

View File

@ -90,7 +90,7 @@ $theme-colors: (
danger: $ls-color-red,
light: $ls-color-primary--light,
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-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");