diff --git a/JS/mainstream(r1)-script.js b/JS/mainstream(r1)-script.js deleted file mode 100644 index 0ced12e..0000000 --- a/JS/mainstream(r1)-script.js +++ /dev/null @@ -1,45 +0,0 @@ -function doCORSRequest(options, printResult) { - var x = new XMLHttpRequest(); - var proxy_url = 'https://api.allorigins.win/get?url='; - var target_url = encodeURIComponent(options.url); - x.open(options.method, proxy_url + target_url); - x.onload = x.onerror = function() { - var response = JSON.parse(x.responseText); - printResult( - options.method + ' ' + options.url + '\n' + - x.status + ' ' + x.statusText + '\n\n' + - (response.contents || '') - ); - }; - - x.send(options.data); -} - -doCORSRequest({ - method: "GET", - url: "https://packages.boostyconnect.com/oreonproject/oreon-lime/", -}, function printResult(res) { - console.log('Response:', res); - // https://packages.boostyconnect.com/Oreon-lime-(R1)/gnome-shell-oreon-theming-1-11.fc39.noarch.rpm - try { - const parser = new DOMParser(); - const doc = parser.parseFromString(res, "text/html"); - const links = doc.querySelectorAll("a"); - links.forEach((link) => { - const forbidden_links = ["Name", "Last modified", "Size", "Description", "Parent Directory"]; - if (!forbidden_links.includes(link.innerHTML.trim())) { - const link_e = document.createElement("a"); - const new_href = link.href.replace("/Oreon-lime-(R1)/", "/oreonproject/oreon-lime/") - link_e.href = new_href; - link_e.innerHTML = link.innerHTML; - link_e.className = "package"; - link_e.target = "_blank"; - document.getElementById("packages").appendChild(link_e); - console.log('Original URL:', link.href); - console.log('Modified URL:', new_href); - } - }); - } catch (e) { - console.error('Parsing error:', e); - } -}); diff --git a/JS/mainstream(r2)-script.js b/JS/mainstream(r2)-script.js deleted file mode 100644 index bc94bfe..0000000 --- a/JS/mainstream(r2)-script.js +++ /dev/null @@ -1,45 +0,0 @@ -function doCORSRequest(options, printResult) { - var x = new XMLHttpRequest(); - var proxy_url = 'https://api.allorigins.win/get?url='; - var target_url = encodeURIComponent(options.url); - x.open(options.method, proxy_url + target_url); - x.onload = x.onerror = function() { - var response = JSON.parse(x.responseText); - printResult( - options.method + ' ' + options.url + '\n' + - x.status + ' ' + x.statusText + '\n\n' + - (response.contents || '') - ); - }; - - x.send(options.data); -} - -doCORSRequest({ - method: "GET", - url: "https://packages.boostyconnect.com/oreon-lime-r2/mainstream/", -}, function printResult(res) { - console.log('Response:', res); - - try { - const parser = new DOMParser(); - const doc = parser.parseFromString(res, "text/html"); - const links = doc.querySelectorAll("a"); - links.forEach((link) => { - const forbidden_links = ["Name", "Last modified", "Size", "Destination", "Description", "Parent Directory"]; - if (!forbidden_links.includes(link.innerHTML)) { - const link_e = document.createElement("a"); - const new_href = link.href; - - link_e.href = new_href; - link_e.innerHTML = link.innerHTML; - link_e.className = "package"; - link_e.target = "_blank"; - document.getElementById("packages").appendChild(link_e); - console.log(link.href); - } - }); - } catch (e) { - console.error('Parsing error:', e); - } -}); \ No newline at end of file diff --git a/JS/security-script.js b/JS/security-script.js deleted file mode 100644 index d5ff56b..0000000 --- a/JS/security-script.js +++ /dev/null @@ -1,45 +0,0 @@ -function doCORSRequest(options, printResult) { - var x = new XMLHttpRequest(); - var proxy_url = 'https://api.allorigins.win/get?url='; - var target_url = encodeURIComponent(options.url); - x.open(options.method, proxy_url + target_url); - x.onload = x.onerror = function() { - var response = JSON.parse(x.responseText); - printResult( - options.method + ' ' + options.url + '\n' + - x.status + ' ' + x.statusText + '\n\n' + - (response.contents || '') - ); - }; - - x.send(options.data); -} - -doCORSRequest({ - method: "GET", - url: "https://packages.boostyconnect.com/oreonproject/oreon-security/", -}, function printResult(res) { - console.log('Response:', res); - - try { - const parser = new DOMParser(); - const doc = parser.parseFromString(res, "text/html"); - const links = doc.querySelectorAll("a"); - links.forEach((link) => { - const forbidden_links = ["Name", "Last modified", "Size", "Destination", "Description", "Parent Directory"]; - if (!forbidden_links.includes(link.innerHTML)) { - const link_e = document.createElement("a"); - const new_href = link.href; - - link_e.href = new_href; - link_e.innerHTML = link.innerHTML; - link_e.className = "package"; - link_e.target = "_blank"; - document.getElementById("packages").appendChild(link_e); - console.log(link.href); - } - }); - } catch (e) { - console.error('Parsing error:', e); - } -}); \ No newline at end of file diff --git a/JS/source-script.js b/JS/source-script.js deleted file mode 100644 index 0b4b1af..0000000 --- a/JS/source-script.js +++ /dev/null @@ -1,44 +0,0 @@ -function doCORSRequest(options, printResult) { - var x = new XMLHttpRequest(); - var proxy_url = 'https://api.allorigins.win/get?url='; - var target_url = encodeURIComponent(options.url); - x.open(options.method, proxy_url + target_url); - x.onload = x.onerror = function() { - var response = JSON.parse(x.responseText); - printResult( - options.method + ' ' + options.url + '\n' + - x.status + ' ' + x.statusText + '\n\n' + - (response.contents || '') - ); - }; - - x.send(options.data); -} - -doCORSRequest({ - method: "GET", - url: " https://packages.boostyconnect.com/oreon-lime-r2/mainstream/src/", -}, function printResult(res) { - console.log('Response:', res); - - try { - const parser = new DOMParser(); - const doc = parser.parseFromString(res, "text/html"); - const links = doc.querySelectorAll("a"); - links.forEach((link) => { - const forbidden_links = ["Name", "Last modified", "Size", "Destination", "Description", "Parent Directory"]; - if (!forbidden_links.includes(link.innerHTML)) { - const link_e = document.createElement("a"); - const new_href = link.href; - link_e.href = new_href; - link_e.innerHTML = link.innerHTML; - link_e.className = "package"; - link_e.target = "_blank"; - document.getElementById("packages").appendChild(link_e); - console.log(link.href); - } - }); - } catch (e) { - console.error('Parsing error:', e); - } -}); \ No newline at end of file diff --git a/CSS/style.css b/assets/css/style.css similarity index 91% rename from CSS/style.css rename to assets/css/style.css index d264f9e..16e1624 100644 --- a/CSS/style.css +++ b/assets/css/style.css @@ -13,7 +13,7 @@ h1, h2, a, p { flex-direction: row; align-items: center; } -.dropbtn { +.dropButton { background-color: rgb(63, 173, 63); color: white; padding: 16px; @@ -21,7 +21,7 @@ h1, h2, a, p { border: none; display: none; } -.dropbtn i { +.dropButton i { color: black; } .dropdown { @@ -34,7 +34,7 @@ h1, h2, a, p { position: absolute; background-color: black; min-width: 160px; - box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); z-index: 1; } @@ -53,7 +53,7 @@ h1, h2, a, p { padding-right: 20px; } -.dropdown:hover .dropbtn { +.dropdown:hover .dropButton { background-color: grey; } .hdr a { @@ -75,8 +75,8 @@ h1, h2, a, p { margin-top: 200px; } .logo { - width: 550px; - height: 150px; + min-width: 550px; + min-height: 150px; } .edit-cont { @@ -92,7 +92,7 @@ h1, h2, a, p { flex-direction: column; gap: 10px; align-items: center; - border: 1.7px, solid black; + border: 2px solid black; } .edit-btn { height: 60px; @@ -112,7 +112,7 @@ h1, h2, a, p { background-color: darkblue; } .package { - border: 1.7px solid black; + border: 2px solid black; display: flex; align-items: center; justify-content: center; @@ -137,7 +137,7 @@ h1, h2, a, p { width: 350px; margin-left: 20px; } - .dropbtn { + .dropButton { display: block; } .edit-cont { diff --git a/assets/fonts/montserrat-cyrillic-ext-italic.woff2 b/assets/fonts/montserrat-cyrillic-ext-italic.woff2 new file mode 100644 index 0000000..93df6b6 Binary files /dev/null and b/assets/fonts/montserrat-cyrillic-ext-italic.woff2 differ diff --git a/assets/fonts/montserrat-cyrillic-ext.woff2 b/assets/fonts/montserrat-cyrillic-ext.woff2 new file mode 100644 index 0000000..4b7bc4a Binary files /dev/null and b/assets/fonts/montserrat-cyrillic-ext.woff2 differ diff --git a/assets/fonts/montserrat-cyrillic-italic.woff2 b/assets/fonts/montserrat-cyrillic-italic.woff2 new file mode 100644 index 0000000..a2a83e2 Binary files /dev/null and b/assets/fonts/montserrat-cyrillic-italic.woff2 differ diff --git a/assets/fonts/montserrat-cyrillic.woff2 b/assets/fonts/montserrat-cyrillic.woff2 new file mode 100644 index 0000000..5379c12 Binary files /dev/null and b/assets/fonts/montserrat-cyrillic.woff2 differ diff --git a/assets/fonts/montserrat-latin-ext-italic.woff2 b/assets/fonts/montserrat-latin-ext-italic.woff2 new file mode 100644 index 0000000..4bf7cdd Binary files /dev/null and b/assets/fonts/montserrat-latin-ext-italic.woff2 differ diff --git a/assets/fonts/montserrat-latin-ext.woff2 b/assets/fonts/montserrat-latin-ext.woff2 new file mode 100644 index 0000000..7669127 Binary files /dev/null and b/assets/fonts/montserrat-latin-ext.woff2 differ diff --git a/assets/fonts/montserrat-latin-italic.woff2 b/assets/fonts/montserrat-latin-italic.woff2 new file mode 100644 index 0000000..98847bf Binary files /dev/null and b/assets/fonts/montserrat-latin-italic.woff2 differ diff --git a/assets/fonts/montserrat-latin.woff2 b/assets/fonts/montserrat-latin.woff2 new file mode 100644 index 0000000..6122800 Binary files /dev/null and b/assets/fonts/montserrat-latin.woff2 differ diff --git a/assets/fonts/montserrat-vietnamese-italic.woff2 b/assets/fonts/montserrat-vietnamese-italic.woff2 new file mode 100644 index 0000000..099b027 Binary files /dev/null and b/assets/fonts/montserrat-vietnamese-italic.woff2 differ diff --git a/assets/fonts/montserrat-vietnamese.woff2 b/assets/fonts/montserrat-vietnamese.woff2 new file mode 100644 index 0000000..6ec3730 Binary files /dev/null and b/assets/fonts/montserrat-vietnamese.woff2 differ diff --git a/assets/fonts/montserrat.css b/assets/fonts/montserrat.css new file mode 100644 index 0000000..5615717 --- /dev/null +++ b/assets/fonts/montserrat.css @@ -0,0 +1,90 @@ +/* cyrillic-ext */ +@font-face { + font-family: 'Montserrat'; + font-style: italic; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-cyrillic-ext-italic.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Montserrat'; + font-style: italic; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-cyrillic-italic.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* vietnamese */ +@font-face { + font-family: 'Montserrat'; + font-style: italic; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-vietnamese-italic.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Montserrat'; + font-style: italic; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-latin-ext-italic.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Montserrat'; + font-style: italic; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-latin-italic.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-cyrillic-ext.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-cyrillic.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* vietnamese */ +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-vietnamese.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-latin-ext.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 100 900; + font-display: swap; + src: url(montserrat-latin.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} diff --git a/Assets/logo.png b/assets/img/logo.png similarity index 100% rename from Assets/logo.png rename to assets/img/logo.png diff --git a/assets/js/fetchPackages.js b/assets/js/fetchPackages.js new file mode 100644 index 0000000..cc5065d --- /dev/null +++ b/assets/js/fetchPackages.js @@ -0,0 +1,32 @@ +async function fetchPackages(uri) { + let statusText = document.getElementById("statusText"); + statusText.innerHTML = "Fetching packages, please wait..."; + let response = await fetch(uri, { + method: "GET" + }) + let responseText = await response.text() + console.log('Response:', responseText); + try { + const parsedDocument = new DOMParser().parseFromString(responseText, "text/html"); + const linksNodeList = parsedDocument.querySelectorAll("a"); + statusText.remove() + linksNodeList.forEach((link) => { + const linkText = link.innerHTML.trim(); + const forbiddenLinks = ["Name", "Last modified", "Size", "Description", "Parent Directory"]; + if (!forbiddenLinks.includes(linkText)) { + const packageLink = document.createElement("a"); + const newRedirect = uri + "/" + link.href.split("/").pop(); + packageLink.href = newRedirect; + packageLink.innerHTML = linkText; + packageLink.className = "package"; + packageLink.target = "_blank"; + document.getElementById("packages").appendChild(packageLink); + console.log('Original URL:', link.href); + console.log('Modified URL:', newRedirect); + } + }); + } catch (e) { + console.error('Parsing error:', e); + statusText.innerHTML = "Failed to fetch packages. Please try again later."; + } +} \ No newline at end of file diff --git a/index.html b/index.html index 6765872..e137cbc 100644 --- a/index.html +++ b/index.html @@ -3,27 +3,23 @@ - Document + Oreon Package Manager - - - - - + + + -

BCPackage

-
- +
+

Oreon's package manager

BCPackage is our offical package manager and here you can
find references to all oreon packages.

-
+
\ No newline at end of file diff --git a/oreon-lime-r2/mainstream/mainstream.html b/oreonproject/oreon-lime-r2/mainstream/index.html similarity index 66% rename from oreon-lime-r2/mainstream/mainstream.html rename to oreonproject/oreon-lime-r2/mainstream/index.html index 91a5d61..508712c 100644 --- a/oreon-lime-r2/mainstream/mainstream.html +++ b/oreonproject/oreon-lime-r2/mainstream/index.html @@ -5,28 +5,24 @@ Document - - - - - + + + - + - - +
-

BCPackage

-
+

Oreon lime (R2)

Mainstream packages

+

-
+
+ + \ No newline at end of file diff --git a/oreon-lime-r2/mainstream/src/source.html b/oreonproject/oreon-lime-r2/src/index.html similarity index 65% rename from oreon-lime-r2/mainstream/src/source.html rename to oreonproject/oreon-lime-r2/src/index.html index d21b823..1543c29 100644 --- a/oreon-lime-r2/mainstream/src/source.html +++ b/oreonproject/oreon-lime-r2/src/index.html @@ -5,28 +5,24 @@ Document - - - - - + + + - + - - +
-

BCPackage

-
+

Oreon lime (R2)

Mainstream source packages

+

-
+
+ + + \ No newline at end of file diff --git a/oreonproject/oreon-lime/mainstream.html b/oreonproject/oreon-lime/mainstream/index.html similarity index 65% rename from oreonproject/oreon-lime/mainstream.html rename to oreonproject/oreon-lime/mainstream/index.html index e74bc1c..18bf194 100644 --- a/oreonproject/oreon-lime/mainstream.html +++ b/oreonproject/oreon-lime/mainstream/index.html @@ -5,28 +5,24 @@ Document - - - - - + + + - - - - + + +
-

BCPackage

-
+

Oreon lime (R1)

Mainstream packages

+

-
+
+ + \ No newline at end of file diff --git a/oreonproject/oreon-security/security.html b/oreonproject/oreon-lime/security/index.html similarity index 67% rename from oreonproject/oreon-security/security.html rename to oreonproject/oreon-lime/security/index.html index 16cc386..43bb664 100644 --- a/oreonproject/oreon-security/security.html +++ b/oreonproject/oreon-lime/security/index.html @@ -5,27 +5,23 @@ Document - - - - - + + + - + - - +

BCPackage

-
+

Oreon lime (R1)

Security packages

+

-
+
+ + \ No newline at end of file diff --git a/src/main.ts b/src/main.ts deleted file mode 100644 index e69de29..0000000