Skip to content

Commit

Permalink
run save for all scripts in build/data/tags
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Jan 10, 2025
1 parent 0a3515a commit c33c52a
Show file tree
Hide file tree
Showing 12 changed files with 423 additions and 45 deletions.
2 changes: 1 addition & 1 deletion build/data/tags/countries.json
Original file line number Diff line number Diff line change
Expand Up @@ -959,4 +959,4 @@
"name": "zimbabwe",
"code": "zw"
}
]
]
4 changes: 1 addition & 3 deletions build/data/tags/countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@
country["code"] = country["code"].lower().strip()

if __name__ == '__main__':
strings = Prebuild.to_string(
[value.to_dict() for value in countries]
)
strings = Prebuild.to_string(countries)
Prebuild.print(strings)
Prebuild.save(strings, __file__)
26 changes: 26 additions & 0 deletions build/data/tags/crossorigins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"id": "AST_LAYOUT_ATTRIBUTE_VALUE_TYPE_ANONYMOUS",
"generate_name": "anonymous",
"text": {
"EN": [
"anonymous"
],
"FA": [
"ناشناس"
]
}
},
{
"id": "AST_LAYOUT_ATTRIBUTE_VALUE_TYPE_USE_CREDENTIALS",
"generate_name": "use-credentials",
"text": {
"EN": [
"use credentials"
],
"FA": [
"یوز کرید"
]
}
}
]
30 changes: 30 additions & 0 deletions build/data/tags/dirs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"id": "AST_LAYOUT_ATTRIBUTE_VALUE_TYPE_LTR",
"generate_name": "ltr",
"text": {
"EN": [
"ltr",
"left"
],
"FA": [
"چپ به راست",
"چپ"
]
}
},
{
"id": "AST_LAYOUT_ATTRIBUTE_VALUE_TYPE_RTL",
"generate_name": "rtl",
"text": {
"EN": [
"rtl",
"right"
],
"FA": [
"راست به چپ",
"راست"
]
}
}
]
2 changes: 1 addition & 1 deletion build/data/tags/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -799,4 +799,4 @@
"name": "zulu",
"code": "zu"
}
]
]
4 changes: 1 addition & 3 deletions build/data/tags/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@
language["code"] = language["code"].lower().strip()

if __name__ == '__main__':
strings = Prebuild.to_string(
[value.to_dict() for value in languages]
)
strings = Prebuild.to_string(languages)
Prebuild.print(strings)
Prebuild.save(strings, __file__)
76 changes: 42 additions & 34 deletions build/data/tags/mediatypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
"code": "application/eat-ucs+cbor"
},
{
"name": "ecmascript (obsoleted in favor of text/javascript)",
"name": "ecmascript",
"code": "application/ecmascript"
},
{
Expand Down Expand Up @@ -872,9 +872,13 @@
"code": "application/sipc"
},
{
"name": "smil (obsoleted in favor of application/smil+xml)",
"name": "smil",
"code": "application/smil"
},
{
"name": "smil+xml)",
"code": "application/smil+xml"
},
{
"name": "smpte336m",
"code": "application/smpte336m"
Expand Down Expand Up @@ -1780,9 +1784,13 @@
"code": "application/vnd.gentoo.xpak"
},
{
"name": "vnd.geo+json (obsoleted by [rfc7946] in favor of application/geo+json)",
"name": "vnd.geo+json",
"code": "application/vnd.geo+json"
},
{
"name": "geo+json",
"code": "application/geo+json"
},
{
"name": "vnd.geogebra.file",
"code": "application/vnd.geogebra.file"
Expand Down Expand Up @@ -1816,7 +1824,7 @@
"code": "application/vnd.google-earth.kml+xml"
},
{
"name": "vnd.gov.sk.e-form+xml (obsoleted by request)",
"name": "vnd.gov.sk.e-form+xml",
"code": "application/vnd.gov.sk.e-form+xml"
},
{
Expand Down Expand Up @@ -1892,9 +1900,13 @@
"code": "application/vnd.ibm.electronic-media"
},
{
"name": "vnd.ibm.modcap (obsoleted in favor of application/vnd.afpc.modca)",
"name": "vnd.ibm.modcap",
"code": "application/vnd.ibm.modcap"
},
{
"name": "vnd.afpc.modca",
"code": "application/vnd.afpc.modca"
},
{
"name": "vnd.ibm.secure-container",
"code": "application/vnd.ibm.secure-container"
Expand Down Expand Up @@ -1936,9 +1948,13 @@
"code": "application/vnd.infotech.project"
},
{
"name": "vnd.informix-visionary (obsoleted in favor of application/vnd.visionary)",
"name": "vnd.informix-visionary",
"code": "application/vnd.informix-visionary"
},
{
"name": "vnd.visionary",
"code": "application/vnd.visionary"
},
{
"name": "vnd.insors.igm",
"code": "application/vnd.insors.igm"
Expand Down Expand Up @@ -3172,7 +3188,11 @@
"code": "application/vnd.yaoweme"
},
{
"name": "vnd.youtube.yt (obsoleted in favor of video/vnd.youtube.yt)",
"name": "vnd.youtube.yt",
"code": "video/vnd.youtube.yt"
},
{
"name": "vnd.youtube.yt",
"code": "application/vnd.youtube.yt"
},
{
Expand Down Expand Up @@ -3287,10 +3307,6 @@
"name": "zlib",
"code": "application/zlib"
},
{
"name": "name",
"code": "template"
},
{
"name": "32kadpcm",
"code": "audio/32kadpcm"
Expand Down Expand Up @@ -3611,10 +3627,6 @@
"name": "vorbis",
"code": "audio/vorbis"
},
{
"name": "name",
"code": "template"
},
{
"name": "otf",
"code": "font/otf"
Expand Down Expand Up @@ -3800,12 +3812,12 @@
"code": "image/webp"
},
{
"name": "x-emf - deprecated in favor of image/emf",
"name": "x-emf",
"code": "image/x-emf"
},
{
"name": "name",
"code": "template"
"name": "emf",
"code": "image/emf"
},
{
"name": "cpim",
Expand Down Expand Up @@ -3852,13 +3864,9 @@
"code": "message/sipfrag"
},
{
"name": "vnd.si.simp (obsoleted by request)",
"name": "vnd.si.simp",
"code": "message/vnd.si.simp"
},
{
"name": "name",
"code": "template"
},
{
"name": "e57",
"code": "model/e57"
Expand Down Expand Up @@ -3939,10 +3947,6 @@
"name": "x3d+fastinfoset",
"code": "model/x3d+fastinfoset"
},
{
"name": "name",
"code": "template"
},
{
"name": "appledouble",
"code": "multipart/appledouble"
Expand Down Expand Up @@ -3975,10 +3979,6 @@
"name": "voice-message",
"code": "multipart/voice-message"
},
{
"name": "name",
"code": "template"
},
{
"name": "cache-manifest",
"code": "text/cache-manifest"
Expand All @@ -3996,13 +3996,21 @@
"code": "text/csv"
},
{
"name": "directory - deprecated by rfc6350",
"name": "directory",
"code": "text/directory"
},
{
"name": "ecmascript (obsoleted in favor of text/javascript)",
"name": "ecmascript",
"code": "text/ecmascript"
},
{
"name": "javascript",
"code": "text/javascript"
},
{
"name": "css",
"code": "text/css"
},
{
"name": "enriched",
"code": "text/enriched"
Expand Down Expand Up @@ -4355,4 +4363,4 @@
"name": "vp8",
"code": "video/vp8"
}
]
]
4 changes: 1 addition & 3 deletions build/data/tags/mediatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,8 +1105,6 @@
mediatype["code"] = mediatype["code"].lower().strip()

if __name__ == '__main__':
strings = Prebuild.to_string(
[value.to_dict() for value in mediatypes]
)
strings = Prebuild.to_string(mediatypes)
Prebuild.print(strings)
Prebuild.save(strings, __file__)
26 changes: 26 additions & 0 deletions build/data/tags/methods.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"id": "AST_LAYOUT_ATTRIBUTE_VALUE_TYPE_GET",
"generate_name": "get",
"text": {
"EN": [
"get"
],
"FA": [
"گت"
]
}
},
{
"id": "AST_LAYOUT_ATTRIBUTE_VALUE_TYPE_POST",
"generate_name": "post",
"text": {
"EN": [
"post"
],
"FA": [
"پست"
]
}
}
]
Loading

0 comments on commit c33c52a

Please sign in to comment.