Skip to content

Commit

Permalink
feat: 前端&请求优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyan-shi committed Dec 5, 2021
1 parent e018047 commit f0ee00e
Show file tree
Hide file tree
Showing 19 changed files with 143 additions and 35 deletions.
23 changes: 23 additions & 0 deletions src/main/resources/templates/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"files": {
"main.css": "/static/css/main.459d4172.chunk.css",
"main.js": "/static/js/main.1500f7d1.chunk.js",
"main.js.map": "/static/js/main.1500f7d1.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.cf7a56a7.js",
"runtime-main.js.map": "/static/js/runtime-main.cf7a56a7.js.map",
"static/css/2.2b8316e7.chunk.css": "/static/css/2.2b8316e7.chunk.css",
"static/js/2.12191df5.chunk.js": "/static/js/2.12191df5.chunk.js",
"static/js/2.12191df5.chunk.js.map": "/static/js/2.12191df5.chunk.js.map",
"index.html": "/index.html",
"static/css/2.2b8316e7.chunk.css.map": "/static/css/2.2b8316e7.chunk.css.map",
"static/css/main.459d4172.chunk.css.map": "/static/css/main.459d4172.chunk.css.map",
"static/js/2.12191df5.chunk.js.LICENSE.txt": "/static/js/2.12191df5.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.cf7a56a7.js",
"static/css/2.2b8316e7.chunk.css",
"static/js/2.12191df5.chunk.js",
"static/css/main.459d4172.chunk.css",
"static/js/main.1500f7d1.chunk.js"
]
}
Binary file added src/main/resources/templates/favicon.ico
Binary file not shown.
15 changes: 0 additions & 15 deletions src/main/resources/templates/freeDownload.html

This file was deleted.

21 changes: 1 addition & 20 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"></meta>
<title>Menu</title>
</head>
<body>
<h1>Welcome!</h1>
<h2>Menu</h2>
<a href="freeDownload.html">1. csdn free download。</a>
<br>
<a href="http://39.103.166.167:3000/" onclick="codimdAlert()">2. codimd(轻量级的在线文档协作工具)。</a>
<p></p>
</body>
<script>
function codimdAlert() {
alert("请注意注册按钮默认就为灰色的(待改),填好信息后点击注册即可完成注册。")
}
</script>
</html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Yjx's Website</title><link href="/static/css/2.2b8316e7.chunk.css" rel="stylesheet"><link href="/static/css/main.459d4172.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,f,l=r[0],p=r[1],i=r[2],c=0,s=[];c<l.length;c++)f=l[c],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&s.push(o[f][0]),o[f]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++){var p=t[l];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={1:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var l=this["webpackJsonpopenbbs-frontend"]=this["webpackJsonpopenbbs-frontend"]||[],p=l.push.bind(l);l.push=r,l=l.slice();for(var i=0;i<l.length;i++)r(l[i]);var a=p;t()}([])</script><script src="/static/js/2.12191df5.chunk.js"></script><script src="/static/js/main.1500f7d1.chunk.js"></script></body></html>
Binary file added src/main/resources/templates/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/templates/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/main/resources/templates/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions src/main/resources/templates/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
10 changes: 10 additions & 0 deletions src/main/resources/templates/static/css/2.2b8316e7.chunk.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/main/resources/templates/static/js/2.12191df5.chunk.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/

/**
* React Router v6.0.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/main/resources/templates/static/js/main.1500f7d1.chunk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f0ee00e

Please sign in to comment.