Browse Source

update frontend

Tokumeikoi 5 years ago
parent
commit
47be10f274
33 changed files with 66 additions and 7 deletions
  1. 7 0
      config/app.php
  2. 0 0
      public/antd.async.js
  3. 0 0
      public/custom.css
  4. 0 0
      public/umi.js
  5. 0 0
      public/user/antd.async.js
  6. 0 0
      public/user/antd.chunk.css
  7. 0 0
      public/user/env.example.js
  8. 0 0
      public/user/static/Simple-Line-Icons.0cb0b9c5.woff2
  9. 0 0
      public/user/static/Simple-Line-Icons.78f07e2c.woff
  10. 0 0
      public/user/static/Simple-Line-Icons.d2285965.ttf
  11. 0 0
      public/user/static/Simple-Line-Icons.ed67e5a3.svg
  12. 0 0
      public/user/static/Simple-Line-Icons.f33df365.eot
  13. 0 0
      public/user/static/fa-brands-400.14c590d1.eot
  14. 0 0
      public/user/static/fa-brands-400.3e1b2a65.woff2
  15. 0 0
      public/user/static/fa-brands-400.5e8aa9ea.ttf
  16. 0 0
      public/user/static/fa-brands-400.91fd86e5.svg
  17. 0 0
      public/user/static/fa-brands-400.df02c782.woff
  18. 0 0
      public/user/static/fa-regular-400.285a9d2a.ttf
  19. 0 0
      public/user/static/fa-regular-400.5623624d.woff
  20. 0 0
      public/user/static/fa-regular-400.6b5ed912.svg
  21. 0 0
      public/user/static/fa-regular-400.aa66d0e0.eot
  22. 0 0
      public/user/static/fa-regular-400.ac21cac3.woff2
  23. 0 0
      public/user/static/fa-solid-900.3ded831d.woff
  24. 0 0
      public/user/static/fa-solid-900.42e1fbd2.eot
  25. 0 0
      public/user/static/fa-solid-900.649208f1.svg
  26. 0 0
      public/user/static/fa-solid-900.896e20e2.ttf
  27. 0 0
      public/user/static/fa-solid-900.d6d8d5da.woff2
  28. 0 0
      public/user/umi.css
  29. 0 0
      public/user/umi.js
  30. 0 0
      public/user/vendors.async.js
  31. 43 0
      resources/views/admin.blade.php
  32. 6 6
      resources/views/app.blade.php
  33. 10 1
      routes/web.php

+ 7 - 0
config/app.php

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

File diff suppressed because it is too large
+ 0 - 0
public/antd.async.js


+ 0 - 0
public/custom.css


File diff suppressed because it is too large
+ 0 - 0
public/umi.js


File diff suppressed because it is too large
+ 0 - 0
public/user/antd.async.js


File diff suppressed because it is too large
+ 0 - 0
public/user/antd.chunk.css


+ 0 - 0
public/env.example.js → public/user/env.example.js


+ 0 - 0
public/static/Simple-Line-Icons.0cb0b9c5.woff2 → public/user/static/Simple-Line-Icons.0cb0b9c5.woff2


+ 0 - 0
public/static/Simple-Line-Icons.78f07e2c.woff → public/user/static/Simple-Line-Icons.78f07e2c.woff


+ 0 - 0
public/static/Simple-Line-Icons.d2285965.ttf → public/user/static/Simple-Line-Icons.d2285965.ttf


+ 0 - 0
public/static/Simple-Line-Icons.ed67e5a3.svg → public/user/static/Simple-Line-Icons.ed67e5a3.svg


+ 0 - 0
public/static/Simple-Line-Icons.f33df365.eot → public/user/static/Simple-Line-Icons.f33df365.eot


+ 0 - 0
public/static/fa-brands-400.14c590d1.eot → public/user/static/fa-brands-400.14c590d1.eot


+ 0 - 0
public/static/fa-brands-400.3e1b2a65.woff2 → public/user/static/fa-brands-400.3e1b2a65.woff2


+ 0 - 0
public/static/fa-brands-400.5e8aa9ea.ttf → public/user/static/fa-brands-400.5e8aa9ea.ttf


+ 0 - 0
public/static/fa-brands-400.91fd86e5.svg → public/user/static/fa-brands-400.91fd86e5.svg


+ 0 - 0
public/static/fa-brands-400.df02c782.woff → public/user/static/fa-brands-400.df02c782.woff


+ 0 - 0
public/static/fa-regular-400.285a9d2a.ttf → public/user/static/fa-regular-400.285a9d2a.ttf


+ 0 - 0
public/static/fa-regular-400.5623624d.woff → public/user/static/fa-regular-400.5623624d.woff


+ 0 - 0
public/static/fa-regular-400.6b5ed912.svg → public/user/static/fa-regular-400.6b5ed912.svg


+ 0 - 0
public/static/fa-regular-400.aa66d0e0.eot → public/user/static/fa-regular-400.aa66d0e0.eot


+ 0 - 0
public/static/fa-regular-400.ac21cac3.woff2 → public/user/static/fa-regular-400.ac21cac3.woff2


+ 0 - 0
public/static/fa-solid-900.3ded831d.woff → public/user/static/fa-solid-900.3ded831d.woff


+ 0 - 0
public/static/fa-solid-900.42e1fbd2.eot → public/user/static/fa-solid-900.42e1fbd2.eot


+ 0 - 0
public/static/fa-solid-900.649208f1.svg → public/user/static/fa-solid-900.649208f1.svg


+ 0 - 0
public/static/fa-solid-900.896e20e2.ttf → public/user/static/fa-solid-900.896e20e2.ttf


+ 0 - 0
public/static/fa-solid-900.d6d8d5da.woff2 → public/user/static/fa-solid-900.d6d8d5da.woff2


+ 0 - 0
public/umi.css → public/user/umi.css


File diff suppressed because it is too large
+ 0 - 0
public/user/umi.js


+ 0 - 0
public/vendors.async.js → public/user/vendors.async.js


+ 43 - 0
resources/views/admin.blade.php

@@ -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>

+ 6 - 6
resources/views/app.blade.php

@@ -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>

+ 10 - 1
routes/web.php

@@ -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')
+    ]);
+});

Some files were not shown because too many files changed in this diff