Add version number

This commit is contained in:
Bubka 2020-03-11 16:32:19 +01:00
parent 19d3458431
commit 800d5ea56f
3 changed files with 18 additions and 3 deletions

View File

@ -13,7 +13,16 @@
|
*/
'name' => env('APP_NAME', 'Laravel'),
'name' => env('APP_NAME', '2FAuth'),
/*
|--------------------------------------------------------------------------
| Application Version
|--------------------------------------------------------------------------
|
*/
'version' => '1.0.0',
/*
|--------------------------------------------------------------------------

View File

@ -1,5 +1,9 @@
<template>
<form-wrapper :fail="fail" :success="success">
<div class="tags has-addons">
<span class="tag is-dark">2FAuth</span>
<span class="tag is-info">v{{ version }}</span>
</div>
<form @submit.prevent="handleSubmit" @change="handleSubmit" @keydown="form.onKeydown($event)">
<form-select :options="options" :form="form" fieldName="lang" :label="$t('settings.forms.language.label')" :help="$t('settings.forms.language.help')" />
<form-switch :form="form" fieldName="showTokenAsDot" :label="$t('settings.forms.show_token_as_dot.label')" :help="$t('settings.forms.show_token_as_dot.help')" />
@ -23,7 +27,8 @@
options: [
{ text: this.$t('languages.en'), value: 'en' },
{ text: this.$t('languages.fr'), value: 'fr' },
]
],
version: appVersion
}
},

View File

@ -23,7 +23,8 @@
<app></app>
</div>
<script type="text/javascript">
var appSettings = {!! $appSettings !!}
var appSettings = {!! $appSettings !!};
var appVersion = '{{ config("app.version") }}';
</script>
<script src="{{ mix('js/app.js') }}"></script>
<script src="{{ mix('js/locales.js') }}"></script>