update frontend
@ -228,4 +228,11 @@ return [
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| V2board version
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'version' => '1.1'
|
||||
];
|
||||
|
1
public/antd.async.js
vendored
0
public/custom.css
vendored
1
public/umi.js
vendored
1
public/user/antd.async.js
vendored
Normal file
Before Width: | Height: | Size: 237 KiB After Width: | Height: | Size: 237 KiB |
Before Width: | Height: | Size: 680 KiB After Width: | Height: | Size: 680 KiB |
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 143 KiB |
Before Width: | Height: | Size: 832 KiB After Width: | Height: | Size: 832 KiB |
0
public/umi.css → public/user/umi.css
vendored
1
public/user/umi.js
vendored
Normal file
43
resources/views/admin.blade.php
Normal 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>
|
@ -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>
|
||||
|
@ -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')
|
||||
]);
|
||||
});
|
||||
|