Skip to content

Commit

Permalink
feat: improve how SOLDER_STREAM and SOLDER_VERSION work
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyker committed Nov 28, 2024
1 parent d7f58ac commit faaac16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public function register(): void
public function boot(): void
{
if (! defined('SOLDER_STREAM')) {
define('SOLDER_STREAM', 'DEV');
define('SOLDER_STREAM', 'rolling');
}
if (! defined('SOLDER_VERSION')) {
define('SOLDER_VERSION', 'v0.7.16');
define('SOLDER_VERSION', '0.7.16');
}

View::composer('layouts.master', function ($view) {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/dashboard/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class="btn btn-primary btn-xs"
</div>
<div id="changelog" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="changelogHeading">
<div class="panel-body">
<p><strong>Your Solder version is {{SOLDER_VERSION}}</strong></p>
<p><strong>You're running Solder v{{SOLDER_VERSION}}</strong></p>
@if (array_key_exists('error',$changelog))
<div class="alert alert-warning">{{ $changelog['error'] }}</div>
@else
Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
@section('title')
<title>Technic Solder {{ SOLDER_VERSION }}</title>
<title>Technic Solder v{{ SOLDER_VERSION }}</title>
@show
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}">
Expand Down Expand Up @@ -37,7 +37,7 @@
</button>
<a class="navbar-brand"
href="{{ URL::to('dashboard') }}"
><img src="{{ URL::asset('img/title.png') }}"> {{ SOLDER_VERSION }}</a>
><img src="{{ URL::asset('img/title.png') }}"> v{{ SOLDER_VERSION }}</a>
</div>
<ul class="nav navbar-top-links navbar-left">
@if (Cache::get('update'))
Expand Down

0 comments on commit faaac16

Please sign in to comment.