Skip to content

Commit

Permalink
fix: audio/aiff clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmccallum committed Apr 3, 2024
1 parent 643fa07 commit 0667fd5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
30 changes: 5 additions & 25 deletions src/mimeData.json
Original file line number Diff line number Diff line change
Expand Up @@ -686,27 +686,6 @@
"popularUsage": null
}
},
{
"name": "audio/x-aiff",
"description": "",
"links": {
"deprecates": [],
"relatedTo": [],
"parentOf": [],
"alternativeTo": []
},
"fileTypes": [
".aif",
".aifc",
".aiff"
],
"furtherReading": [],
"notices": {
"hasNoOfficial": false,
"communityContributed": false,
"popularUsage": null
}
},
{
"name": "application/vnd.adobe.air-application-installer-package+zip",
"description": "",
Expand Down Expand Up @@ -5315,7 +5294,7 @@
},
{
"name": "audio/aiff",
"description": "AIFF (Audio Interchange File Format) files store uncompressed signed audio samples inside an IFF container. There's also a compressed variant, called AIFC with the same mimetype.<br /><br />AIFF chunks provide native metadata. In addition, although it is not in the specification, an ID3 chunk is often used to include ID3V2 metadata.",
"description": "AIFF (Audio Interchange File Format) files store uncompressed signed audio samples inside an IFF container. There's also a compressed variant, called AIFC with the same mimetype.<br /><br />AIFF chunks provide native metadata. In addition, although it is not in the specification, an ID3 chunk is often used to include ID3V2 metadata.<br /><br />It is difficult to trace down official mention of an official mimetype declaration, however you should follow existing guidance which is to assign with audio/aiff and support reading from audio/x-aiff also.",
"furtherReading": [
{
"title": "Let's Solve the File Format Problem!",
Expand All @@ -5324,10 +5303,11 @@
],
"links": {
"deprecates": [
"audio/x-aiff"
],
"relatedTo": [],
"parentOf": [],
"parentOf": [
"audio/x-aiff"
],
"alternativeTo": []
},
"fileTypes": [
Expand All @@ -5336,7 +5316,7 @@
".aff"
],
"notices": {
"hasNoOfficial": false,
"hasNoOfficial": true,
"communityContributed": false,
"popularUsage": null
}
Expand Down
22 changes: 22 additions & 0 deletions src/shared/templates/MimetypeTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,28 @@ const MimetypeTemplate = props => {
</a>
</div>
</div>
{mime.notices.popularUsage && (
<div
className={
"flex items-stretch gap-3 rounded-md bg-amber-50 p-1 text-indigo-50"
}
>
<div
className={
"flex w-10 items-center justify-center rounded-md bg-amber-500 p-2 text-red-50"
}
>
<IconCode size={20} />
</div>{" "}
<div className={"py-2 text-amber-900"}>
Important: An officially mentioned type either
does not exist, or is hard to track down. The
information here likely reflects community
contributions or popular usage derived from
existing implementations.
</div>
</div>
)}
{mime.notices.popularUsage && (
<div
className={
Expand Down

0 comments on commit 0667fd5

Please sign in to comment.