Skip to content

Commit

Permalink
Deploying to gh-pages from @ 1dccd4f 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Jun 18, 2024
0 parents commit 9534906
Show file tree
Hide file tree
Showing 124 changed files with 30,170 additions and 0 deletions.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.syndicationd.ymgyt.io
Binary file added favicon.ico
Binary file not shown.
69 changes: 69 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html lang="en" id="oranda" class="dark">
<head>
<title>Syndicationd</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="&#x2f;oranda-v0.6.1.css" />


</head>
<body>
<div class="container">
<div class="page-body">
<main>
<header>
<h1 class="title">Syndicationd</h1>
</header>

<ul class="index-grid">

</ul>



<ul class="index-grid">

<li>
<div class="content">
<div class="index-about">
<h4>synd-term</h4>

<div class="index-description">terminal feed viewer</div>

</div>

</div>
<div class="links">
<a href="&#x2f;synd-term">Website</a>

<a href="https:&#x2f;&#x2f;github.com&#x2f;ymgyt&#x2f;syndicationd">Repository</a>

</div>
</li>

<li>
<div class="content">
<div class="index-about">
<h4>synd-api</h4>

<div class="index-description">syndicationd backend api</div>

</div>

</div>
<div class="links">
<a href="&#x2f;synd-api">Website</a>

<a href="https:&#x2f;&#x2f;github.com&#x2f;ymgyt&#x2f;syndicationd">Repository</a>

</div>
</li>

</ul>

</main>
</div>
</div>
</body>
</html>
3 changes: 3 additions & 0 deletions oranda-v0.6.1.css

Large diffs are not rendered by default.

245 changes: 245 additions & 0 deletions synd-api/artifacts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
/* Code modified from the blender website
* https://www.blender.org/wp-content/themes/bthree/assets/js/get_os.js?x82196
*/

let options = {
windows64: "x86_64-pc-windows",
windows32: "i686-pc-windows",
windowsArm: "aarch64-pc-windows",

mac64: "x86_64-apple",
mac32: "i686-apple",
macSilicon: "aarch64-apple",

linux64: "x86_64-unknown-linux",
linux32: "i686-unknown-linux",
linuxArm: "aarch64-unknown-linux",

// ios: "ios",
// android: "linux-android",
// freebsd: "freebsd",
};

function isAppleSilicon() {
try {
var glcontext = document.createElement("canvas").getContext("webgl");
var debugrenderer = glcontext
? glcontext.getExtension("WEBGL_debug_renderer_info")
: null;
var renderername =
(debugrenderer &&
glcontext.getParameter(debugrenderer.UNMASKED_RENDERER_WEBGL)) ||
"";
if (renderername.match(/Apple M/) || renderername.match(/Apple GPU/)) {
return true;
}

return false;
} catch (e) {}
}

function getOS() {
var OS = options.windows64.default;
var userAgent = navigator.userAgent;
var platform = navigator.platform;

if (navigator.appVersion.includes("Win")) {
if (
!userAgent.includes("Windows NT 5.0") &&
!userAgent.includes("Windows NT 5.1") &&
(userAgent.indexOf("Win64") > -1 ||
platform == "Win64" ||
userAgent.indexOf("x86_64") > -1 ||
userAgent.indexOf("x86_64") > -1 ||
userAgent.indexOf("amd64") > -1 ||
userAgent.indexOf("AMD64") > -1 ||
userAgent.indexOf("WOW64") > -1)
) {
OS = options.windows64;
} else {
if (
window.external &&
window.external.getHostEnvironmentValue &&
window.external
.getHostEnvironmentValue("os-architecture")
.includes("ARM64")
) {
OS = options.windowsArm;
} else {
try {
var canvas = document.createElement("canvas");
var gl = canvas.getContext("webgl");

var debugInfo = gl.getExtension("WEBGL_debug_renderer_info");
var renderer = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
if (renderer.includes("Qualcomm")) OS = options.windowsArm;
} catch (e) {}
}
}
}

//MacOS, MacOS X, macOS
if (navigator.appVersion.includes("Mac")) {
if (
navigator.userAgent.includes("OS X 10.5") ||
navigator.userAgent.includes("OS X 10.6")
) {
OS = options.mac32;
} else {
OS = options.mac64;

const isSilicon = isAppleSilicon();
if (isSilicon) {
OS = options.macSilicon;
}
}
}

// linux
if (platform.includes("Linux")) {
OS = options.linux64;
// FIXME: Can we find out whether linux 32-bit or ARM are used?
}

// if (
// userAgent.includes("iPad") ||
// userAgent.includes("iPhone") ||
// userAgent.includes("iPod")
// ) {
// OS = options.ios;
// }
// if (platform.toLocaleLowerCase().includes("freebsd")) {
// OS = options.freebsd;
// }

return OS;
}

let os = getOS();
window.os = os;

// Unhide and hydrate selector with events
const archSelect = document.querySelector(".arch-select");
if (archSelect) {
archSelect.classList.remove("hidden");
const selector = document.querySelector("#install-arch-select");
if (selector) {
selector.addEventListener("change", onArchChange);
}
}

// Hydrate tab buttons with events
Array.from(document.querySelectorAll(".install-tab[data-id]")).forEach((tab) => {
tab.addEventListener("click", onTabClick);
});

function onArchChange(evt) {
// Get target
const target = evt.currentTarget.value;
// Find corresponding installer lists
const newContentEl = document.querySelector(`.arch[data-arch=${target}]`);
const oldContentEl = document.querySelector(`.arch[data-arch]:not(.hidden)`);
// Hide old content element (if applicable)
if (oldContentEl) {
oldContentEl.classList.add("hidden");
}
// Show new content element
newContentEl.classList.remove("hidden");
// Show the first tab's content if nothing was selected before
if (newContentEl.querySelectorAll(".install-tab.selected").length === 0) {
const firstContentChild = newContentEl.querySelector(".install-content:first-of-type");
const firstTabChild = newContentEl.querySelector(".install-tab:first-of-type");
firstContentChild.classList.remove("hidden");
if (firstTabChild) {
firstTabChild.classList.add("selected");
}
}
// Hide "no OS detected" message
const noDetectEl = document.querySelector(".no-autodetect");
noDetectEl.classList.add("hidden");
// Hide Mac hint
document.querySelector(".mac-switch").classList.add("hidden");
}

function onTabClick(evt) {
// Get target and ID
const {triple, id} = evt.currentTarget.dataset;
if (triple) {
// Find corresponding content elements
const newContentEl = document.querySelector(`.install-content[data-id="${String(id)}"][data-triple=${triple}]`);
const oldContentEl = document.querySelector(`.install-content[data-triple=${triple}][data-id]:not(.hidden)`);
// Find old tab to unselect
const oldTabEl = document.querySelector(`.install-tab[data-triple=${triple}].selected`);
// Hide old content element
if (oldContentEl && oldTabEl) {
oldContentEl.classList.add("hidden");
oldTabEl.classList.remove("selected");
}

// Unhide new content element
newContentEl.classList.remove("hidden");
// Select new tab element
evt.currentTarget.classList.add("selected");
}
}

const allPlatforms = Array.from(document.querySelectorAll(`.arch[data-arch]`));
let hit = allPlatforms.find(
(a) => {
// Show Intel Mac downloads if no M1 Mac downloads are available
if (
a.attributes["data-arch"].value.includes(options.mac64) &&
os.includes(options.macSilicon) &&
!allPlatforms.find(p => p.attributes["data-arch"].value.includes(options.macSilicon))) {
// Unhide hint
document.querySelector(".mac-switch").classList.remove("hidden");
return true;
}
return a.attributes["data-arch"].value.includes(os);
}
);

if (hit) {
hit.classList.remove("hidden");
const selectEl = document.querySelector("#install-arch-select");
selectEl.value = hit.dataset.arch;
const firstContentChild = hit.querySelector(".install-content:first-of-type");
const firstTabChild = hit.querySelector(".install-tab:first-of-type");
firstContentChild.classList.remove("hidden");
if (firstTabChild) {
firstTabChild.classList.add("selected");
}
} else {
const noDetectEl = document.querySelector(".no-autodetect");
if (noDetectEl) {
const noDetectElDetails = document.querySelector(".no-autodetect-details");
if (noDetectElDetails) {
noDetectElDetails.innerHTML = `We detected you're on ${os} but there don't seem to be installers for that. `
}
noDetectEl.classList.remove("hidden");
}
}

let copyButtons = Array.from(document.querySelectorAll("[data-copy]"));
if (copyButtons.length) {
copyButtons.forEach(function (element) {
element.addEventListener("click", () => {
navigator.clipboard.writeText(element.attributes["data-copy"].value);
});
});
}

// Toggle for pre releases
const checkbox = document.getElementById("show-prereleases");

if (checkbox) {
checkbox.addEventListener("click", () => {
const all = document.getElementsByClassName("pre-release");

if (all) {
for (var item of all) {
item.classList.toggle("hidden");
}
}
});
}
1 change: 1 addition & 0 deletions synd-api/artifacts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"format_version":"0.6.3","tag":"synd-term-v0.2.6","formatted_date":"Jun 18 2024 at 15:25 UTC","platforms_with_downloads":[{"target":["aarch64-apple-darwin"],"display_name":"macOS Apple Silicon","installers":[10,1,0,2]},{"target":["x86_64-apple-darwin"],"display_name":"macOS Intel","installers":[10,1,0,3]},{"target":["x86_64-pc-windows-msvc"],"display_name":"Windows x64","installers":[9,0,4]},{"target":["x86_64-unknown-linux-gnu"],"display_name":"Linux x64","installers":[10,1,0,5]},{"target":["x86_64-unknown-linux-musl"],"display_name":"musl Linux x64","installers":[10,6]}],"downloadable_files":[[4,{"name":"synd-term-aarch64-apple-darwin.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-aarch64-apple-darwin.tar.gz","view_path":null,"checksum_file":5},["macOS Apple Silicon"]],[10,{"name":"synd-term-x86_64-apple-darwin.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-apple-darwin.tar.gz","view_path":null,"checksum_file":11},["macOS Intel"]],[13,{"name":"synd-term-x86_64-pc-windows-msvc.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-pc-windows-msvc.tar.gz","view_path":null,"checksum_file":14},["Windows x64"]],[16,{"name":"synd-term-x86_64-unknown-linux-gnu.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-unknown-linux-gnu.tar.gz","view_path":null,"checksum_file":17},["Linux x64"]],[19,{"name":"synd-term-x86_64-unknown-linux-musl.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-unknown-linux-musl.tar.gz","view_path":null,"checksum_file":20},["musl Linux x64"]]],"release":{"artifacts":{"files":[{"name":"dist-manifest.json","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/dist-manifest.json","view_path":null,"checksum_file":null},{"name":"source.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/source.tar.gz","view_path":null,"checksum_file":2},{"name":"source.tar.gz.sha256","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/source.tar.gz.sha256","view_path":null,"checksum_file":null},{"name":"synd-term-aarch64-apple-darwin-update","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-aarch64-apple-darwin-update","view_path":null,"checksum_file":null},{"name":"synd-term-aarch64-apple-darwin.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-aarch64-apple-darwin.tar.gz","view_path":null,"checksum_file":5},{"name":"synd-term-aarch64-apple-darwin.tar.gz.sha256","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-aarch64-apple-darwin.tar.gz.sha256","view_path":null,"checksum_file":null},{"name":"synd-term-installer.ps1","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-installer.ps1","view_path":"synd-term-installer.ps1.txt","checksum_file":null},{"name":"synd-term-installer.sh","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-installer.sh","view_path":"synd-term-installer.sh.txt","checksum_file":null},{"name":"synd-term-npm-package.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-npm-package.tar.gz","view_path":null,"checksum_file":null},{"name":"synd-term-x86_64-apple-darwin-update","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-apple-darwin-update","view_path":null,"checksum_file":null},{"name":"synd-term-x86_64-apple-darwin.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-apple-darwin.tar.gz","view_path":null,"checksum_file":11},{"name":"synd-term-x86_64-apple-darwin.tar.gz.sha256","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-apple-darwin.tar.gz.sha256","view_path":null,"checksum_file":null},{"name":"synd-term-x86_64-pc-windows-msvc-update","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-pc-windows-msvc-update","view_path":null,"checksum_file":null},{"name":"synd-term-x86_64-pc-windows-msvc.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-pc-windows-msvc.tar.gz","view_path":null,"checksum_file":14},{"name":"synd-term-x86_64-pc-windows-msvc.tar.gz.sha256","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-pc-windows-msvc.tar.gz.sha256","view_path":null,"checksum_file":null},{"name":"synd-term-x86_64-unknown-linux-gnu-update","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-unknown-linux-gnu-update","view_path":null,"checksum_file":null},{"name":"synd-term-x86_64-unknown-linux-gnu.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-unknown-linux-gnu.tar.gz","view_path":null,"checksum_file":17},{"name":"synd-term-x86_64-unknown-linux-gnu.tar.gz.sha256","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-unknown-linux-gnu.tar.gz.sha256","view_path":null,"checksum_file":null},{"name":"synd-term-x86_64-unknown-linux-musl-update","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-unknown-linux-musl-update","view_path":null,"checksum_file":null},{"name":"synd-term-x86_64-unknown-linux-musl.tar.gz","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-unknown-linux-musl.tar.gz","view_path":null,"checksum_file":20},{"name":"synd-term-x86_64-unknown-linux-musl.tar.gz.sha256","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-x86_64-unknown-linux-musl.tar.gz.sha256","view_path":null,"checksum_file":null},{"name":"synd-term.rb","download_url":"https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term.rb","view_path":null,"checksum_file":null}],"installers":[{"label":"npm","description":"Install prebuilt binaries into your npm project","app_name":null,"method":{"type":"Run","file":null,"run_hint":"npm install @syndicationd/synd-term@0.2.6"}},{"label":"homebrew","description":"Install prebuilt binaries via Homebrew","app_name":null,"method":{"type":"Run","file":null,"run_hint":"brew install ymgyt/syndicationd/synd-term"}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":4}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":10}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":13}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":16}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":19}},{"label":"nix","description":"","app_name":null,"method":{"type":"Run","file":null,"run_hint":"nix profile install github:ymgyt/syndicationd#synd-api"}},{"label":"cargo","description":"","app_name":null,"method":{"type":"Run","file":null,"run_hint":"cargo install synd-api --locked"}},{"label":"powershell","description":"","app_name":null,"method":{"type":"Run","file":6,"run_hint":"powershell -c \"irm https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-installer.ps1 | iex\""}},{"label":"shell","description":"","app_name":null,"method":{"type":"Run","file":7,"run_hint":"curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ymgyt/syndicationd/releases/download/synd-term-v0.2.6/synd-term-installer.sh | sh"}}],"targets":{"aarch64-apple-darwin":[10,1,0,2],"aarch64-pc-windows-msvc":[9,0],"aarch64-unknown-linux-gnu":[10],"aarch64-unknown-linux-musl":[10],"i686-apple-darwin":[10],"i686-pc-windows-msvc":[9],"i686-unknown-linux-gnu":[10],"i686-unknown-linux-musl":[10],"x86_64-apple-darwin":[10,1,0,3],"x86_64-pc-windows-msvc":[9,0,4],"x86_64-unknown-linux-gnu":[10,1,0,5],"x86_64-unknown-linux-musl":[10,6]}}},"os_script":"/synd-api/artifacts.js","has_checksum_files":true}
Loading

0 comments on commit 9534906

Please sign in to comment.