summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-07-02 16:08:14 +0200
committerRaindropsSys <contact@minteck.org>2023-07-02 16:08:14 +0200
commitf0c74a4a869bd93edbb0bd8caea3143c27969d58 (patch)
treeef209be94912ae3d0779dff5e6c74fc5a1bf5977
parent3bf35644339304f72261a1c0a20b4c96622fa8f6 (diff)
downloadhorses-f0c74a4a869bd93edbb0bd8caea3143c27969d58.tar.gz
horses-f0c74a4a869bd93edbb0bd8caea3143c27969d58.tar.bz2
horses-f0c74a4a869bd93edbb0bd8caea3143c27969d58.zip
Updated 4 files (automated)
-rw-r--r--assets/brand/Design/Palette/Palette.svg184
-rw-r--r--includes/search/crawler/collect.js6
-rw-r--r--includes/search/crawler/fetch.js2
-rw-r--r--includes/search/search/indexes/ddg.js4
4 files changed, 98 insertions, 98 deletions
diff --git a/assets/brand/Design/Palette/Palette.svg b/assets/brand/Design/Palette/Palette.svg
index 7edf528..e6c9d64 100644
--- a/assets/brand/Design/Palette/Palette.svg
+++ b/assets/brand/Design/Palette/Palette.svg
@@ -1,27 +1,27 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- viewBox="0 0 1254 805" style="enable-background:new 0 0 1254 805;" xml:space="preserve">
-<style type="text/css">
- .st0{fill:#FFFFFF;}
- .st1{fill:#392F76;}
- .st2{fill:#836FBA;}
- .st3{fill:#618CC7;}
- .st4{fill:#9FE3F0;}
- .st5{fill:#8F65D0;}
- .st6{fill:#D6ACF9;}
- .st7{opacity:0.5;}
- .st8{font-family:'JosefinSans-Medium';}
- .st9{font-size:20.913px;}
- .st10{font-family:'JosefinSans-Regular';}
- .st11{font-size:22.5981px;}
- .st12{font-family:'JetBrainsMono-Regular';}
- .st13{font-size:17.0661px;}
- .st14{fill:#D980C3;}
- .st15{fill:#CE91BF;}
- .st16{fill:#8F60C3;}
- .st17{fill:#87E0D8;}
-</style>
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 1254 805" style="enable-background:new 0 0 1254 805;" xml:space="preserve">
+<style type="text/css">
+ .st0{fill:#FFFFFF;}
+ .st1{fill:#392F76;}
+ .st2{fill:#836FBA;}
+ .st3{fill:#618CC7;}
+ .st4{fill:#9FE3F0;}
+ .st5{fill:#8F65D0;}
+ .st6{fill:#D6ACF9;}
+ .st7{opacity:0.5;}
+ .st8{font-family:'JosefinSans-Medium';}
+ .st9{font-size:20.913px;}
+ .st10{font-family:'JosefinSans-Regular';}
+ .st11{font-size:22.5981px;}
+ .st12{font-family:'JetBrainsMono-Regular';}
+ .st13{font-size:17.0661px;}
+ .st14{fill:#D980C3;}
+ .st15{fill:#CE91BF;}
+ .st16{fill:#8F60C3;}
+ .st17{fill:#87E0D8;}
+</style>
<font horiz-adv-x="1000">
<!-- JetBrains Mono is a trademark of JetBrains s.r.o. -->
<!-- Copyright: Copyright 2023 Adobe System Incorporated. All rights reserved. -->
@@ -44,7 +44,7 @@
<glyph unicode="9" horiz-adv-x="600" d="M187,0l207,332l-4,3C377,316 360,302 338,292C316,282 291,277 264,277C225,277 190,286 161,305C131,324 108,350 92,385C76,419 68,459 68,505C68,552 78,594 97,629C116,664 143,691 178,711C213,730 253,740 299,740C346,740 387,730 422,711C457,691 484,664 503,629C522,594 532,552 532,505C532,468 527,432 517,397C506,362 491,328 470,295l-183,-295M300,350C343,350 377,364 403,393C429,421 442,458 442,505C442,552 429,589 403,618C377,646 343,660 300,660C257,660 223,646 197,618C171,589 158,552 158,505C158,458 171,421 197,393C223,364 257,350 300,350z"/>
<glyph unicode="#" horiz-adv-x="600" d="M83,0l37,200l-85,0l0,65l97,0l36,200l-98,0l0,65l110,0l37,200l70,0l-37,-200l160,0l37,200l70,0l-37,-200l85,0l0,-65l-97,0l-36,-200l98,0l0,-65l-110,0l-37,-200l-70,0l37,200l-160,0l-37,-200M202,265l160,0l36,200l-160,0z"/>
</font>
-
+
<font horiz-adv-x="1000">
<!-- Josefin Sans is a trademark of Typemade. -->
<!-- Copyright: Copyright 2023 Adobe System Incorporated. All rights reserved. -->
@@ -85,7 +85,7 @@
<glyph unicode=" " horiz-adv-x="318"/>
<glyph unicode="&#xA9;" horiz-adv-x="854" d="M576,198C561,183 541,170 516,157C491,144 462,138 429,139C394,140 363,149 335,167C307,184 285,208 269,237C252,266 244,297 244,331C244,368 252,402 269,431C285,460 308,484 337,501C366,518 399,526 437,526C450,526 465,525 480,523C495,520 509,516 524,511C538,505 550,498 559,489l-41,-78C507,421 496,428 484,431C471,434 458,436 445,436C427,436 411,431 397,422C382,412 371,399 363,384C355,369 351,352 351,333C351,315 355,298 363,283C370,268 381,255 395,246C409,237 426,232 446,232C461,232 475,235 490,241C504,247 517,256 528,268M427,-15C378,-15 333,-6 291,11C249,28 212,53 180,84C147,115 122,151 104,193C85,234 76,280 76,330C76,380 85,426 104,468C122,510 147,547 180,578C212,609 249,633 291,650C333,667 378,676 427,676C475,676 520,667 563,650C605,633 642,609 675,578C707,547 732,510 750,468C768,426 777,380 777,330C777,281 768,235 751,193C733,151 708,115 676,84C644,53 607,28 565,11C522,-6 476,-15 427,-15M426,68C475,68 520,79 559,102C598,125 630,156 653,195C676,234 687,279 687,329C687,380 676,426 653,465C630,504 598,535 559,558C520,581 475,592 426,592C378,592 334,581 295,558C255,535 223,504 200,465C177,426 165,380 165,329C165,279 176,234 199,195C221,155 252,124 291,102C330,79 375,68 426,68z"/>
</font>
-
+
<font horiz-adv-x="1000">
<!-- Josefin Sans is a trademark of Typemade. -->
<!-- Copyright: Copyright 2023 Adobe System Incorporated. All rights reserved. -->
@@ -120,69 +120,69 @@
<glyph unicode="*" horiz-adv-x="335" d="M139,525C126,518 113,510 100,503C87,495 73,487 60,480C55,489 51,497 46,506C41,515 35,523 30,531C44,538 58,546 71,554C84,561 97,569 110,576C97,584 84,592 71,600C58,608 44,616 31,624C36,632 40,640 45,648C49,655 53,663 58,671C71,664 85,656 99,648C112,640 126,632 139,624l0,96l60,0C198,704 198,688 198,672C198,656 198,640 197,624C211,632 225,640 239,648C253,655 267,663 280,670C285,662 289,654 294,647C298,639 302,631 307,623C294,615 280,607 267,599C253,591 239,583 225,575l0,0C238,567 252,559 265,552C278,544 292,536 306,528C301,520 297,512 292,503C287,494 281,486 276,477C263,485 249,493 236,501C223,509 209,517 196,525C196,510 196,495 196,480C195,465 195,449 195,434l-56,0z"/>
<glyph unicode=" " horiz-adv-x="316"/>
</font>
-
- <rect class="st0" width="1254" height="805"/>
-<g>
- <circle class="st1" cx="115.5" cy="101.5" r="67.5"/>
-</g>
-<g>
- <circle class="st2" cx="367.5" cy="103.5" r="67.5"/>
-</g>
-<g>
- <circle class="st3" cx="115.5" cy="356.5" r="67.5"/>
-</g>
-<g>
- <circle class="st4" cx="367.5" cy="358.5" r="67.5"/>
-</g>
-<g>
- <circle class="st5" cx="875.5" cy="105.5" r="67.5"/>
-</g>
-<g>
- <circle class="st6" cx="1127.5" cy="105.5" r="67.5"/>
-</g>
-<g>
- <circle cx="116.5" cy="631.5" r="67.5"/>
-</g>
-<g>
- <circle class="st0" cx="368.5" cy="633.5" r="67"/>
- <path d="M368.5,567c36.7,0,66.5,29.8,66.5,66.5S405.2,700,368.5,700S302,670.2,302,633.5S331.8,567,368.5,567 M368.5,566
- c-37.3,0-67.5,30.2-67.5,67.5s30.2,67.5,67.5,67.5s67.5-30.2,67.5-67.5S405.8,566,368.5,566L368.5,566z"/>
-</g>
-<text transform="matrix(1 0 0 1 961.0508 698.7969)" class="st7"><tspan x="0" y="0" class="st8 st9">*For monochrome icons only</tspan><tspan x="-136.9" y="50.2" class="st8 st9">© 2023 Equestria.dev, All Rights Reserved</tspan><tspan x="-39.9" y="75.3" class="st8 st9">https://equestria.horse/branding</tspan></text>
-<text transform="matrix(1 0 0 1 48.9995 206.437)" class="st10 st11">Misty Hoof Dark</text>
-<text transform="matrix(1 0 0 1 300.3949 206.6655)" class="st10 st11">Misty Hoof Light</text>
-<text transform="matrix(1 0 0 1 49.395 230.8804)" class="st7 st12 st13">#392F76</text>
-<text transform="matrix(1 0 0 1 302.5524 230.5041)" class="st7 st12 st13">#836FBA</text>
-<text transform="matrix(1 0 0 1 47.1458 457.8192)" class="st10 st11">Misty Face Dark</text>
-<text transform="matrix(1 0 0 1 49.3033 481.6578)" class="st7 st12 st13">#618CC7</text>
-<text transform="matrix(1 0 0 1 298.8369 456.8191)" class="st10 st11">Misty Face Light</text>
-<text transform="matrix(1 0 0 1 300.9943 480.6577)" class="st7 st12 st13">#9FE3F0</text>
-<text transform="matrix(1 0 0 1 807.9462 204.3191)" class="st10 st11">Misty End Dark</text>
-<text transform="matrix(1 0 0 1 810.1037 228.1577)" class="st7 st12 st13">#8F65D0</text>
-<text transform="matrix(1 0 0 1 1059.6372 203.319)" class="st10 st11">Misty End Light</text>
-<text transform="matrix(1 0 0 1 1061.7947 227.1577)" class="st7 st12 st13">#D6ACF9</text>
-<text transform="matrix(1 0 0 1 49.8273 731.5964)" class="st10 st11">Black*</text>
-<text transform="matrix(1 0 0 1 51.9847 755.4351)" class="st7 st12 st13">#000000</text>
-<text transform="matrix(1 0 0 1 298.464 730.5966)" class="st10 st11">White*</text>
-<text transform="matrix(1 0 0 1 300.6215 754.4352)" class="st7 st12 st13">#FFFFFF</text>
-<g>
- <circle class="st14" cx="877.5" cy="358.5" r="67.5"/>
-</g>
-<g>
- <circle class="st15" cx="1129.5" cy="360.5" r="67.5"/>
-</g>
-<text transform="matrix(1 0 0 1 810.9995 463.437)" class="st10 st11">Misty Horn 1</text>
-<text transform="matrix(1 0 0 1 1062.3949 463.6654)" class="st10 st11">Misty Horn 2</text>
-<text transform="matrix(1 0 0 1 811.395 487.8804)" class="st7 st12 st13">#D980C3</text>
-<text transform="matrix(1 0 0 1 1064.5524 487.5041)" class="st7 st12 st13">#CE91BF</text>
-<g>
- <circle class="st16" cx="619.5" cy="104.5" r="67.5"/>
-</g>
-<text transform="matrix(1 0 0 1 551.6373 202.319)" class="st10 st11">Misty Mane Dark</text>
-<text transform="matrix(1 0 0 1 553.7947 226.1577)" class="st7 st12 st13">#8F60C3</text>
-<g>
- <circle class="st17" cx="621.5" cy="359.5" r="67.5"/>
-</g>
-<text transform="matrix(1 0 0 1 554.3949 462.6654)" class="st10 st11">Misty Mane Light</text>
-<text transform="matrix(1 0 0 1 556.5524 486.5041)" class="st7 st12 st13">#87E0D8</text>
-</svg>
+
+ <rect class="st0" width="1254" height="805"/>
+<g>
+ <circle class="st1" cx="115.5" cy="101.5" r="67.5"/>
+</g>
+<g>
+ <circle class="st2" cx="367.5" cy="103.5" r="67.5"/>
+</g>
+<g>
+ <circle class="st3" cx="115.5" cy="356.5" r="67.5"/>
+</g>
+<g>
+ <circle class="st4" cx="367.5" cy="358.5" r="67.5"/>
+</g>
+<g>
+ <circle class="st5" cx="875.5" cy="105.5" r="67.5"/>
+</g>
+<g>
+ <circle class="st6" cx="1127.5" cy="105.5" r="67.5"/>
+</g>
+<g>
+ <circle cx="116.5" cy="631.5" r="67.5"/>
+</g>
+<g>
+ <circle class="st0" cx="368.5" cy="633.5" r="67"/>
+ <path d="M368.5,567c36.7,0,66.5,29.8,66.5,66.5S405.2,700,368.5,700S302,670.2,302,633.5S331.8,567,368.5,567 M368.5,566
+ c-37.3,0-67.5,30.2-67.5,67.5s30.2,67.5,67.5,67.5s67.5-30.2,67.5-67.5S405.8,566,368.5,566L368.5,566z"/>
+</g>
+<text transform="matrix(1 0 0 1 961.0508 698.7969)" class="st7"><tspan x="0" y="0" class="st8 st9">*For monochrome icons only</tspan><tspan x="-136.9" y="50.2" class="st8 st9">© 2023 Equestria.dev, All Rights Reserved</tspan><tspan x="-39.9" y="75.3" class="st8 st9">https://equestria.dev/branding</tspan></text>
+<text transform="matrix(1 0 0 1 48.9995 206.437)" class="st10 st11">Misty Hoof Dark</text>
+<text transform="matrix(1 0 0 1 300.3949 206.6655)" class="st10 st11">Misty Hoof Light</text>
+<text transform="matrix(1 0 0 1 49.395 230.8804)" class="st7 st12 st13">#392F76</text>
+<text transform="matrix(1 0 0 1 302.5524 230.5041)" class="st7 st12 st13">#836FBA</text>
+<text transform="matrix(1 0 0 1 47.1458 457.8192)" class="st10 st11">Misty Face Dark</text>
+<text transform="matrix(1 0 0 1 49.3033 481.6578)" class="st7 st12 st13">#618CC7</text>
+<text transform="matrix(1 0 0 1 298.8369 456.8191)" class="st10 st11">Misty Face Light</text>
+<text transform="matrix(1 0 0 1 300.9943 480.6577)" class="st7 st12 st13">#9FE3F0</text>
+<text transform="matrix(1 0 0 1 807.9462 204.3191)" class="st10 st11">Misty End Dark</text>
+<text transform="matrix(1 0 0 1 810.1037 228.1577)" class="st7 st12 st13">#8F65D0</text>
+<text transform="matrix(1 0 0 1 1059.6372 203.319)" class="st10 st11">Misty End Light</text>
+<text transform="matrix(1 0 0 1 1061.7947 227.1577)" class="st7 st12 st13">#D6ACF9</text>
+<text transform="matrix(1 0 0 1 49.8273 731.5964)" class="st10 st11">Black*</text>
+<text transform="matrix(1 0 0 1 51.9847 755.4351)" class="st7 st12 st13">#000000</text>
+<text transform="matrix(1 0 0 1 298.464 730.5966)" class="st10 st11">White*</text>
+<text transform="matrix(1 0 0 1 300.6215 754.4352)" class="st7 st12 st13">#FFFFFF</text>
+<g>
+ <circle class="st14" cx="877.5" cy="358.5" r="67.5"/>
+</g>
+<g>
+ <circle class="st15" cx="1129.5" cy="360.5" r="67.5"/>
+</g>
+<text transform="matrix(1 0 0 1 810.9995 463.437)" class="st10 st11">Misty Horn 1</text>
+<text transform="matrix(1 0 0 1 1062.3949 463.6654)" class="st10 st11">Misty Horn 2</text>
+<text transform="matrix(1 0 0 1 811.395 487.8804)" class="st7 st12 st13">#D980C3</text>
+<text transform="matrix(1 0 0 1 1064.5524 487.5041)" class="st7 st12 st13">#CE91BF</text>
+<g>
+ <circle class="st16" cx="619.5" cy="104.5" r="67.5"/>
+</g>
+<text transform="matrix(1 0 0 1 551.6373 202.319)" class="st10 st11">Misty Mane Dark</text>
+<text transform="matrix(1 0 0 1 553.7947 226.1577)" class="st7 st12 st13">#8F60C3</text>
+<g>
+ <circle class="st17" cx="621.5" cy="359.5" r="67.5"/>
+</g>
+<text transform="matrix(1 0 0 1 554.3949 462.6654)" class="st10 st11">Misty Mane Light</text>
+<text transform="matrix(1 0 0 1 556.5524 486.5041)" class="st7 st12 st13">#87E0D8</text>
+</svg>
diff --git a/includes/search/crawler/collect.js b/includes/search/crawler/collect.js
index f332da8..0c0c8ca 100644
--- a/includes/search/crawler/collect.js
+++ b/includes/search/crawler/collect.js
@@ -58,7 +58,7 @@ async function crawl(url, initial) {
try {
let file = (await axios.get(origin + "/robots.txt", {
- headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.horse/search)" }
+ headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.dev/search)" }
})).data;
let robots = robotsParser(origin + "/robots.txt", file);
@@ -91,7 +91,7 @@ async function crawl(url, initial) {
try {
const pageHTML = await axios.get(url, {
- headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.horse/search)" }
+ headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.dev/search)" }
});
const $ = cheerio.load(pageHTML.data);
$("a").each((index, element) => {
@@ -113,7 +113,7 @@ async function crawl(url, initial) {
}
console.log("Sending initial request...");
-crawl("https://equestria.horse/", true);
+crawl("https://equestria.dev/", true);
crawl("https://ponies.equestria.horse/", true);
crawl("https://git.equestria.dev/minteck.org", true);
crawl("https://familine.minteck.org/", true);
diff --git a/includes/search/crawler/fetch.js b/includes/search/crawler/fetch.js
index a04d72d..e3957d3 100644
--- a/includes/search/crawler/fetch.js
+++ b/includes/search/crawler/fetch.js
@@ -43,7 +43,7 @@ if (fs.existsSync("./data/pages.json") && fs.existsSync("./data/state.json") &&
try {
let page = (await axios.get(url, {
- headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.horse/search)" },
+ headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.dev/search)" },
timeout: 10000,
maxContentLength: 1048576
})).data;
diff --git a/includes/search/search/indexes/ddg.js b/includes/search/search/indexes/ddg.js
index 51f7a9d..d6ed527 100644
--- a/includes/search/search/indexes/ddg.js
+++ b/includes/search/search/indexes/ddg.js
@@ -13,7 +13,7 @@ function requests(query) {
for (let url of list) {
let r = await axios.get(url, {
- headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.horse/search)" }
+ headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.dev/search)" }
});
pages.push(r.data);
@@ -53,7 +53,7 @@ async function search(query) {
let finalResuts = [...itemsOfficial, ...itemsUnofficial]
let ir = (await axios.get("https://api.duckduckgo.com/?q=" + encodeURIComponent(query) + "&format=json", {
- headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.horse/search)" }
+ headers: { "User-Agent": "Mozilla/5.0 (compatible; HorsiesBot/1.0; +https://equestria.dev/search)" }
})).data;
let infobox = null;