Skip to content

Commit ccd5283

Browse files
author
Evgeny Kuzyakov
authored
Add site.webmanifest (NearSocial#201)
Rework public folder copy. Introduce site.webmanifest
1 parent 30efe19 commit ccd5283

File tree

8 files changed

+26
-13
lines changed

8 files changed

+26
-13
lines changed

functions/[[accountId]]/widget/[[index]].js

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ class NoscriptDescriptionInjector {
7878
function defaultData() {
7979
const image = "https://near.social/assets/logo.png";
8080
const title = "Near Social";
81-
const description = "Social data protocol built on NEAR";
81+
const description =
82+
"Decentralized Customizable Social Network on NEAR Protocol";
8283
return {
8384
image,
8485
title,

public/app.png

26.8 KB
Loading

public/assets/logo.png

44.9 KB
Loading

public/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
<link rel="icon" href="/favicon.png" />
66

77
<meta name="viewport" content="width=device-width, initial-scale=1" />
8-
<link rel="apple-touch-icon" href="/favicon.png" />
8+
<link rel="apple-touch-icon" href="/app.png" />
99
<!--
1010
manifest.json provides metadata used when your web app is installed on a
1111
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
1212
-->
1313
<link rel="manifest" href="/manifest.json" />
1414
<meta
1515
name="description"
16-
content="Social data protocol built on NEAR"
16+
content="Decentralized Customizable Social Network on NEAR Protocol"
1717
/>
1818
<meta name="twitter:card" content="summary_large_image" />
1919
<meta name="twitter:site" content="@NearSocial_">
20-
<meta property="og:image" content="https://near.social/assets/logo.png">
20+
<meta property="og:image" content="https://near.social/logo.png">
2121
<meta property="og:type" content="website">
2222
<meta property="og:title" content="Near Social" />
23-
<meta property="og:description" content="Social data protocol built on NEAR" />
23+
<meta property="og:description" content="Decentralized Customizable Social Network on NEAR Protocol" />
2424
<title>Near Social</title>
2525
</head>
2626
<body>

public/manifest.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
"name": "Near Social",
44
"icons": [
55
{
6-
"src": "favicon.png",
6+
"src": "app.png",
77
"sizes": "1024x1024",
88
"type": "image/png"
99
}
1010
],
11-
"start_url": ".",
1211
"display": "standalone",
13-
"theme_color": "#333333",
12+
"theme_color": "#151718",
1413
"background_color": "#ffffff"
1514
}

public/robots.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# https://www.robotstxt.org/robotstxt.html
22
Sitemap: https://near.social/sitemap/
33
User-agent: *
4-
Disallow:
4+
Disallow: /magic/

public/site.webmanifest

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"short_name": "Near Social",
3+
"name": "Near Social",
4+
"icons": [
5+
{
6+
"src": "app.png",
7+
"sizes": "1024x1024",
8+
"type": "image/png"
9+
}
10+
],
11+
"display": "standalone",
12+
"theme_color": "#151718",
13+
"background_color": "#ffffff"
14+
}

webpack.config.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ module.exports = function (env) {
7070
patterns: [
7171
{
7272
from: paths.publicPath,
73-
to: "assets",
73+
to: "./",
7474
globOptions: {
75-
ignore: ["*.DS_Store"],
75+
ignore: ["**/*.DS_Store", "**/index.html", "**/favicon.png"],
7676
},
7777
noErrorOnMissing: true,
7878
},
@@ -81,15 +81,14 @@ module.exports = function (env) {
8181
new HTMLWebpackPlugin({
8282
template: `${paths.publicPath}/index.html`,
8383
favicon: `${paths.publicPath}/favicon.png`,
84-
robots: `${paths.publicPath}/robots.txt`,
8584
publicPath: "/",
8685
}),
8786
new webpack.ProgressPlugin(),
8887
new webpack.ProvidePlugin({
8988
process: "process/browser",
9089
Buffer: [require.resolve("buffer/"), "Buffer"],
9190
}),
92-
new ManifestPlugin.WebpackManifestPlugin(),
91+
// new ManifestPlugin.WebpackManifestPlugin(),
9392
],
9493
},
9594
loadConfig(mode),

0 commit comments

Comments
 (0)