Skip to content

Commit

Permalink
new file: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
phothinmg committed Mar 12, 2024
1 parent 74386a7 commit c8ea1b8
Show file tree
Hide file tree
Showing 37 changed files with 1,571 additions and 34,886 deletions.
Empty file added README.md
Empty file.
11,053 changes: 0 additions & 11,053 deletions application.html

This file was deleted.

54 changes: 54 additions & 0 deletions docs/application/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../styles.css" />
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css"
/>
<title>Media Types : Application</title>
</head>
<body>
<pre></pre>

<script>
var pre = document.querySelector("pre");

fetch("./index.json")
.then((response) => response.json())
.then((data) => {
let b = [];
Object.entries(data).forEach(([key, value]) => {
var a = `<tr>
<td>${key}</td>
<td>${value}</td>
</tr>`;
b.push(a);
});
console.log(b);
pre.innerHTML = `
<h1>Application <a href="/" style="text-decoration: none; margin-top: 5px"><i class="ti ti-home" style="font-size: larger; font-weight: bold;"></i></a> </h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Template</th>
</tr>
</thead>
<tbody>
${b.map((i) => i).join("")}
</tbody>
</table>
`;
})
.catch((error) => {
console.error("Error:", error);
});
</script>
</body>
</html>
11 changes: 10 additions & 1 deletion memi/application.json → docs/application/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"alto-networkmap+json": "application/alto-networkmap+json",
"alto-propmap+json": "application/alto-propmap+json",
"alto-propmapparams+json": "application/alto-propmapparams+json",
"alto-tips+json": "application/alto-tips+json",
"alto-tipsparams+json": "application/alto-tipsparams+json",
"alto-updatestreamcontrol+json": "application/alto-updatestreamcontrol+json",
"alto-updatestreamparams+json": "application/alto-updatestreamparams+json",
"AML": "application/AML",
Expand Down Expand Up @@ -333,6 +335,9 @@
"prs.hpub+zip": "application/prs.hpub+zip",
"prs.implied-document+xml": "application/prs.implied-document+xml",
"prs.implied-executable": "application/prs.implied-executable",
"prs.implied-object+json": "application/prs.implied-object+json",
"prs.implied-object+json-seq": "application/prs.implied-object+json-seq",
"prs.implied-object+yaml": "application/prs.implied-object+yaml",
"prs.implied-structure": "application/prs.implied-structure",
"prs.nprend": "application/prs.nprend",
"prs.plucker": "application/prs.plucker",
Expand Down Expand Up @@ -579,6 +584,7 @@
"vnd.antix.game-component": "application/vnd.antix.game-component",
"vnd.apache.arrow.file": "application/vnd.apache.arrow.file",
"vnd.apache.arrow.stream": "application/vnd.apache.arrow.stream",
"vnd.apache.parquet": "application/vnd.apache.parquet",
"vnd.apache.thrift.binary": "application/vnd.apache.thrift.binary",
"vnd.apache.thrift.compact": "application/vnd.apache.thrift.compact",
"vnd.apache.thrift.json": "application/vnd.apache.thrift.json",
Expand Down Expand Up @@ -756,6 +762,7 @@
"vnd.epson.salt": "application/vnd.epson.salt",
"vnd.epson.ssf": "application/vnd.epson.ssf",
"vnd.ericsson.quickcall": "application/vnd.ericsson.quickcall",
"vnd.erofs": "application/vnd.erofs",
"vnd.espass-espass+zip": "application/vnd.espass-espass+zip",
"vnd.eszigno3+xml": "application/vnd.eszigno3+xml",
"vnd.etsi.aoc+xml": "application/vnd.etsi.aoc+xml",
Expand Down Expand Up @@ -854,7 +861,7 @@
"vnd.gnu.taler.merchant+json": "application/vnd.gnu.taler.merchant+json",
"vnd.google-earth.kml+xml": "application/vnd.google-earth.kml+xml",
"vnd.google-earth.kmz": "application/vnd.google-earth.kmz",
"vnd.gov.sk.e-form+xml": "application/vnd.gov.sk.e-form+xml",
"vnd.gov.sk.e-form+xml (OBSOLETED by request)": "application/vnd.gov.sk.e-form+xml",
"vnd.gov.sk.e-form+zip": "application/vnd.gov.sk.e-form+zip",
"vnd.gov.sk.xmldatacontainer+xml": "application/vnd.gov.sk.xmldatacontainer+xml",
"vnd.gpxsee.map+xml": "application/vnd.gpxsee.map+xml",
Expand Down Expand Up @@ -1500,6 +1507,7 @@
"vnd.wv.ssp+xml": "application/vnd.wv.ssp+xml",
"vnd.xacml+json": "application/vnd.xacml+json",
"vnd.xara": "application/vnd.xara",
"vnd.xecrets-encrypted": "application/vnd.xecrets-encrypted",
"vnd.xfdl": "application/vnd.xfdl",
"vnd.xfdl.webform": "application/vnd.xfdl.webform",
"vnd.xmi+xml": "application/vnd.xmi+xml",
Expand Down Expand Up @@ -1570,6 +1578,7 @@
"yang-data+xml": "application/yang-data+xml",
"yang-patch+json": "application/yang-patch+json",
"yang-patch+xml": "application/yang-patch+xml",
"yang-sid+json": "application/yang-sid+json",
"yin+xml": "application/yin+xml",
"zip": "application/zip",
"zlib": "application/zlib",
Expand Down
54 changes: 54 additions & 0 deletions docs/audio/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../styles.css" />
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css"
/>
<title>Media Types: Audio</title>
</head>
<body>
<pre></pre>

<script>
var pre = document.querySelector("pre");

fetch("./index.json")
.then((response) => response.json())
.then((data) => {
let b = [];
Object.entries(data).forEach(([key, value]) => {
var a = `<tr>
<td>${key}</td>
<td>${value}</td>
</tr>`;
b.push(a);
});
console.log(b);
pre.innerHTML = `
<h1>Audio <a href="/" style="text-decoration: none; margin-top: 5px"><i class="ti ti-home" style="font-size: larger; font-weight: bold;"></i></a> </h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Template</th>
</tr>
</thead>
<tbody>
${b.map((i) => i).join("")}
</tbody>
</table>
`;
})
.catch((error) => {
console.error("Error:", error);
});
</script>
</body>
</html>
1 change: 1 addition & 0 deletions memi/audio.json → docs/audio/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"EVRCWB1": "audio/EVRCWB1",
"EVS": "audio/EVS",
"example": "audio/example",
"flac": "audio/flac",
"flexfec": "audio/flexfec",
"fwdred": "audio/fwdred",
"G711-0": "audio/G711-0",
Expand Down
Binary file added docs/favicon.ico
Binary file not shown.
54 changes: 54 additions & 0 deletions docs/font/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../styles.css" />
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css"
/>
<title>Media Types: Font</title>
</head>
<body>
<pre></pre>

<script>
var pre = document.querySelector("pre");

fetch("./index.json")
.then((response) => response.json())
.then((data) => {
let b = [];
Object.entries(data).forEach(([key, value]) => {
var a = `<tr>
<td>${key}</td>
<td>${value}</td>
</tr>`;
b.push(a);
});
console.log(b);
pre.innerHTML = `
<h1>Font <a href="/" style="text-decoration: none; margin-top: 5px"><i class="ti ti-home" style="font-size: larger; font-weight: bold;"></i></a> </h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Template</th>
</tr>
</thead>
<tbody>
${b.map((i) => i).join("")}
</tbody>
</table>
`;
})
.catch((error) => {
console.error("Error:", error);
});
</script>
</body>
</html>
File renamed without changes.
54 changes: 54 additions & 0 deletions docs/image/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../styles.css" />
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<title>Media Types: Image</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css"
/>
</head>
<body>
<pre></pre>

<script>
var pre = document.querySelector("pre");

fetch("./index.json")
.then((response) => response.json())
.then((data) => {
let b = [];
Object.entries(data).forEach(([key, value]) => {
var a = `<tr>
<td>${key}</td>
<td>${value}</td>
</tr>`;
b.push(a);
});
console.log(b);
pre.innerHTML = `
<h1>Image <a href="/" style="text-decoration: none; margin-top: 5px"><i class="ti ti-home" style="font-size: larger; font-weight: bold;"></i></a> </h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Template</th>
</tr>
</thead>
<tbody>
${b.map((i) => i).join("")}
</tbody>
</table>
`;
})
.catch((error) => {
console.error("Error:", error);
});
</script>
</body>
</html>
1 change: 1 addition & 0 deletions memi/image.json → docs/image/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"jphc": "image/jphc",
"jpm": "image/jpm",
"jpx": "image/jpx",
"jxl": "image/jxl",
"jxr": "image/jxr",
"jxrA": "image/jxrA",
"jxrS": "image/jxrS",
Expand Down
49 changes: 49 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles.css" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css"
/>
<title>Media Types</title>
</head>
<body>
<pre>
<!-- <img src="https://www.iana.org/_img/2022/iana-logo-header.svg" alt="IANA"> -->
<h1>IANA : MEDIA TYPES</h1>
<h3>1. <a href="./application">Application</a> <small>Download Json</small> <i class="ti ti-download" name="application"></i></h3>
<h3>2. <a href="./audio">Audio</a> <small>Download Json</small> <i class="ti ti-download" name="audio"></i></h3>
<h3>3. <a href="./font">Font</a> <small>Download Json</small> <i class="ti ti-download" name="font"></i></h3>
<h3>4. <a href="./image">Image</a> <small>Download Json</small> <i class="ti ti-download" name="image"></i></h3>
<h3>5. <a href="./message">Message</a> <small>Download Json</small> <i class="ti ti-download" name="message"></i></h3>
<h3>6. <a href="./model">Model</a> <small>Download Json</small> <i class="ti ti-download" name="model"></i></h3>
<h3>7. <a href="./multipart">Multipart</a> <small>Download Json</small> <i class="ti ti-download" name="multipart"></i></h3>
<h3>8. <a href="./text">Text</a> <small>Download Json</small> <i class="ti ti-download" name="text"></i></h3>
<h3>9. <a href="./video/">Video</a> <small>Download Json</small> <i class="ti ti-download" name="video"></i></h3>
</pre>
<script>
function downloadFile(fileUrl, fileName) {
const link = document.createElement("a");
link.href = fileUrl;
link.download = fileName;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
var dlbButtons = document.querySelectorAll(".ti-download");

dlbButtons.forEach(function (button) {
button.addEventListener("click", function (event) {
var name = event.target.getAttribute("name");
const fileUrl = `./${name}/index.json`;
const fileName = `${name}-mime.json`;
downloadFile(fileUrl, fileName);
});
});
</script>
</body>
</html>
Loading

0 comments on commit c8ea1b8

Please sign in to comment.