Use static resources.

This commit is contained in:
Yang Luo 2021-06-12 12:27:13 +08:00
parent 56b2c91217
commit 00ba783fc4
6 changed files with 7 additions and 18 deletions

View File

@ -96,6 +96,10 @@ func GetUser(id string) *User {
} }
func GetMaskedUser(user *User) *User { func GetMaskedUser(user *User) *User {
if user == nil {
return nil
}
if user.Password != "" { if user.Password != "" {
user.Password = "***" user.Password = "***"
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@ -9,12 +9,12 @@
name="description" name="description"
content="Web site created using create-react-app" content="Web site created using create-react-app"
/> />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/favicon.png" /> <link rel="apple-touch-icon" href="https://cdn.casbin.org/site/casdoor/favicon.png" />
<!-- <!--
manifest.json provides metadata used when your web app is installed on a manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
--> -->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> <link rel="manifest" href="https://cdn.casbin.org/site/casdoor/manifest.json" />
<!-- <!--
Notice the use of %PUBLIC_URL% in the tags above. Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build. It will be replaced with the URL of the `public` folder during the build.

View File

@ -1,15 +0,0 @@
{
"short_name": "Casdoor",
"name": "Casdoor Authentication",
"icons": [
{
"src": "favicon.png",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

View File

@ -13,7 +13,7 @@ code {
} }
.logo { .logo {
background: url("logo.png"); background: url("https://cdn.casbin.org/img/logo_384x96.png");
background-size: 108px, 33px; background-size: 108px, 33px;
width: 108px; width: 108px;
height: 27px; height: 27px;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB