Merge pull request #215 from matrix-org/bwindels/bring-back-badge
Bring back badge
This commit is contained in:
commit
bfffe55fcc
20
images-nohash/matrix-badge.svg
Normal file
20
images-nohash/matrix-badge.svg
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="99" height="20">
|
||||||
|
<linearGradient id="b" x2="0" y2="100%">
|
||||||
|
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
|
||||||
|
<stop offset="1" stop-opacity=".1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<mask id="a">
|
||||||
|
<rect width="99" height="20" rx="3" fill="#fff"/>
|
||||||
|
</mask>
|
||||||
|
<g mask="url(#a)">
|
||||||
|
<path fill="#555" d="M0 0h42v20H0z"/>
|
||||||
|
<path fill="#46BC99" d="M42 0h59v20H42z"/>
|
||||||
|
<path fill="url(#b)" d="M0 0h99v20H0z"/>
|
||||||
|
</g>
|
||||||
|
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||||
|
<text x="21" y="15" fill="#010101" fill-opacity=".3">matrix</text>
|
||||||
|
<text x="21" y="14">matrix</text>
|
||||||
|
<text x="68.5" y="15" fill="#010101" fill-opacity=".3">join chat</text>
|
||||||
|
<text x="68.5" y="14">join chat</text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 781 B |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "matrix.to",
|
"name": "matrix.to",
|
||||||
"version": "1.2.8",
|
"version": "1.2.9",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -52,6 +52,7 @@ async function build() {
|
|||||||
await removeDirIfExists(targetDir);
|
await removeDirIfExists(targetDir);
|
||||||
await fs.mkdir(targetDir);
|
await fs.mkdir(targetDir);
|
||||||
await fs.mkdir(path.join(targetDir, "images"));
|
await fs.mkdir(path.join(targetDir, "images"));
|
||||||
|
await fs.mkdir(path.join(targetDir, "img")); // contains the badge image for historical reasons, unhashed
|
||||||
await fs.mkdir(path.join(targetDir, ".well-known"));
|
await fs.mkdir(path.join(targetDir, ".well-known"));
|
||||||
const assets = new AssetMap(targetDir);
|
const assets = new AssetMap(targetDir);
|
||||||
const imageAssets = await copyFolder(path.join(projectDir, "images"), path.join(targetDir, "images"));
|
const imageAssets = await copyFolder(path.join(projectDir, "images"), path.join(targetDir, "images"));
|
||||||
@ -60,6 +61,7 @@ async function build() {
|
|||||||
await assets.write(`bundle.css`, await buildCss("css/main.css", targetDir, assets));
|
await assets.write(`bundle.css`, await buildCss("css/main.css", targetDir, assets));
|
||||||
await assets.writeUnhashed(".well-known/apple-app-site-association", buildAppleAssociatedAppsFile(createClients()));
|
await assets.writeUnhashed(".well-known/apple-app-site-association", buildAppleAssociatedAppsFile(createClients()));
|
||||||
await assets.writeUnhashed("index.html", await buildHtml(assets));
|
await assets.writeUnhashed("index.html", await buildHtml(assets));
|
||||||
|
await assets.writeUnhashed("img/matrix-badge.svg", await fs.readFile(path.join(projectDir, "images-nohash/matrix-badge.svg")));
|
||||||
const globalHash = assets.hashForAll();
|
const globalHash = assets.hashForAll();
|
||||||
console.log(`built matrix.to ${version} (${globalHash}) successfully with ${assets.size} files`);
|
console.log(`built matrix.to ${version} (${globalHash}) successfully with ${assets.size} files`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user