update frontend

This commit is contained in:
Tokumeikoi 2020-02-13 16:22:30 +08:00
parent 540b331f16
commit 47be10f274
33 changed files with 80 additions and 24 deletions

View File

@ -228,4 +228,11 @@ return [
],
/*
|--------------------------------------------------------------------------
| V2board version
|--------------------------------------------------------------------------
*/
'version' => '1.1'
];

File diff suppressed because one or more lines are too long

0
public/custom.css vendored
View File

1
public/umi.js vendored

File diff suppressed because one or more lines are too long

1
public/user/antd.async.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 237 KiB

After

Width:  |  Height:  |  Size: 237 KiB

View File

Before

Width:  |  Height:  |  Size: 680 KiB

After

Width:  |  Height:  |  Size: 680 KiB

View File

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 143 KiB

View File

Before

Width:  |  Height:  |  Size: 832 KiB

After

Width:  |  Height:  |  Size: 832 KiB

1
public/user/umi.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="./admin/antd.chunk.css?v={{$verison}}">
<link rel="stylesheet" href="./admin/umi.css?v={{$verison}}">
<link rel="stylesheet" href="./admin/custom.css?v={{$verison}}">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<title>{{$title}}</title>
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,400i,600,700"> -->
<script>window.routerBase = "/";</script>
<script>
window.v2board = {
title: '{{$title}}',
theme: '{{$theme}}',
verison: '{{$verison}}',
background_url: '{{$backgroun_url}}'
}
</script>
</head>
<body>
<div id="root"></div>
<script src="./admin/vendors.async.js?v={{$verison}}"></script>
<script src="./admin/antd.async.js?v={{$verison}}"></script>
<script src="./admin/umi.js?v={{$verison}}"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-P1E9Z5LRRK"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-P1E9Z5LRRK');
</script>
</body>
</html>

View File

@ -2,9 +2,9 @@
<html>
<head>
<link rel="stylesheet" href="./antd.chunk.css?v={{$verison}}">
<link rel="stylesheet" href="./umi.css?v={{$verison}}">
<link rel="stylesheet" href="./custom.css?v={{$verison}}">
<link rel="stylesheet" href="./user/antd.chunk.css?v={{$verison}}">
<link rel="stylesheet" href="./user/umi.css?v={{$verison}}">
<link rel="stylesheet" href="./user/custom.css?v={{$verison}}">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<title>{{$title}}</title>
@ -23,9 +23,9 @@
<body>
<div id="root"></div>
<script src="./vendors.async.js?v={{$verison}}"></script>
<script src="./antd.async.js?v={{$verison}}"></script>
<script src="./umi.js?v={{$verison}}"></script>
<script src="./user/vendors.async.js?v={{$verison}}"></script>
<script src="./user/antd.async.js?v={{$verison}}"></script>
<script src="./user/umi.js?v={{$verison}}"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-P1E9Z5LRRK"></script>
<script>

View File

@ -23,7 +23,16 @@ Route::get('/', function (Request $request) {
'title' => config('v2board.app_name', 'V2Board'),
'theme' => config('v2board.frontend_theme', 1),
'backgroun_url' => config('v2board.frontend_background_url'),
'verison' => '1.0.4',
'verison' => config('app.version'),
'description' => config('v2board.app_description', 'V2Board is best')
]);
});
Route::get('/admin', function () {
return view('admin', [
'title' => config('v2board.app_name', 'V2Board'),
'theme' => config('v2board.frontend_theme', 1),
'backgroun_url' => config('v2board.frontend_background_url'),
'verison' => config('app.version')
]);
});