1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: add support for astro files (see #469)

This commit is contained in:
Ferdinand Mütsch 2023-02-19 20:14:22 +01:00
parent f67115a788
commit e495468be2
5 changed files with 460 additions and 144 deletions

View File

@ -30,6 +30,7 @@ app:
cjs: JavaScript cjs: JavaScript
ipynb: Python ipynb: Python
svelte: Svelte svelte: Svelte
astro: Astro
# url template for user avatar images (to be used with services like gravatar or dicebear) # url template for user avatar images (to be used with services like gravatar or dicebear)
# available variable placeholders are: username, username_hash, email, email_hash # available variable placeholders are: username, username_hash, email, email_hash

View File

@ -1,334 +1,605 @@
{ {
"languages": { "languages": {
"1C Enterprise": "#814CCC", "1C Enterprise": "#814CCC",
"2-Dimensional Array": "#38761D",
"4D": "#004289",
"ABAP": "#E8274B", "ABAP": "#E8274B",
"AGS Script": "#B9D9FF", "ABAP CDS": "#555e25",
"AL": "#3AA2B5", "ActionScript": "#882B0F",
"AMPL": "#E6EFBB",
"ANTLR": "#9DC3FF",
"API Blueprint": "#2ACCA8",
"APL": "#8a0707",
"ASP.NET": "#9400ff",
"ATS": "#1ac620",
"ActionScript": "#e3491a",
"Ada": "#02f88c", "Ada": "#02f88c",
"Agda": "#467C91", "Adblock Filter List": "#800000",
"Alloy": "#cc5c24", "Adobe Font Metrics": "#fa0f00",
"Agda": "#315665",
"AGS Script": "#B9D9FF",
"AIDL": "#34EB6B",
"AL": "#3AA2B5",
"Alloy": "#64C800",
"Alpine Abuild": "#0D597F",
"Altium Designer": "#A89663",
"AMPL": "#E6EFBB",
"AngelScript": "#C7D7DC", "AngelScript": "#C7D7DC",
"Ant Build System": "#A9157E",
"Antlers": "#ff269e",
"ANTLR": "#9DC3FF",
"ApacheConf": "#d12127",
"Apex": "#1797c0", "Apex": "#1797c0",
"API Blueprint": "#2ACCA8",
"APL": "#5A8164",
"Apollo Guidance Computer": "#0B3D91", "Apollo Guidance Computer": "#0B3D91",
"AppleScript": "#101F1F", "AppleScript": "#101F1F",
"Arc": "#ca2afe", "Arc": "#aa2afe",
"Arduino": "#bd79d1", "AsciiDoc": "#73a0c5",
"AspectJ": "#1957b0", "ASL": null,
"ASP.NET": "#9400ff",
"AspectJ": "#a957b0",
"Assembly": "#6E4C13", "Assembly": "#6E4C13",
"Astro": "#ff5a03",
"Asymptote": "#ff0000", "Asymptote": "#ff0000",
"Augeas": "#62331f", "ATS": "#1ac620",
"Augeas": "#9CC134",
"AutoHotkey": "#6594b9", "AutoHotkey": "#6594b9",
"AutoIt": "#36699B", "AutoIt": "#1C3552",
"Avro IDL": "#0040FF",
"Awk": "#c30e9b",
"Ballerina": "#FF5000", "Ballerina": "#FF5000",
"BASIC": "#ff0000",
"Batchfile": "#C1F12E", "Batchfile": "#C1F12E",
"Beef": "#a52f4e", "Beef": "#a52f4e",
"Befunge": null,
"Berry": "#15A13C",
"BibTeX": "#778899",
"Bicep": "#519aba",
"Bikeshed": "#5562ac",
"Bison": "#6A463F", "Bison": "#6A463F",
"BitBake": "#00bce4",
"Blade": "#f7523f", "Blade": "#f7523f",
"BlitzBasic": "#00FFAE",
"BlitzMax": "#cd6400", "BlitzMax": "#cd6400",
"Bluespec": "#12223c",
"Boo": "#d4bec1", "Boo": "#d4bec1",
"Boogie": "#c80fa0", "Boogie": "#c80fa0",
"Brainfuck": "#2F2530", "Brainfuck": "#2F2530",
"BrighterScript": "#66AABB",
"Brightscript": "#662D91",
"Browserslist": "#ffd539", "Browserslist": "#ffd539",
"C": "#555555", "C": "#555555",
"C Sharp": "#178600", "C#": "#178600",
"C#": "#5a25a2",
"C++": "#f34b7d", "C++": "#f34b7d",
"CSON": "#244776", "C2hs Haskell": null,
"CSS": "#563d7c", "Cabal Config": "#483465",
"Cadence": "#00ef8b",
"Cairo": "#ff4a48",
"CameLIGO": "#3be133",
"CAP CDS": "#0092d1",
"Cap'n Proto": "#c42727",
"CartoCSS": null,
"Ceylon": "#dfa535", "Ceylon": "#dfa535",
"Chapel": "#8dc63f", "Chapel": "#8dc63f",
"Cirru": "#aaaaff", "Charity": null,
"ChucK": "#3f8000",
"Cirru": "#ccccff",
"Clarion": "#db901e", "Clarion": "#db901e",
"Clarity": "#5546ff",
"Classic ASP": "#6a40fd", "Classic ASP": "#6a40fd",
"Clean": "#3a81ad", "Clean": "#3F85AF",
"Click": "#E4E6F3", "Click": "#E4E6F3",
"CLIPS": "#00A300",
"Clojure": "#db5855", "Clojure": "#db5855",
"Closure Templates": "#0d948f", "Closure Templates": "#0d948f",
"Cloud Firestore Security Rules": "#FFA000",
"CMake": "#DA3434",
"COBOL": null,
"CodeQL": "#140f46",
"CoffeeScript": "#244776", "CoffeeScript": "#244776",
"ColdFusion": "#ed2cd6", "ColdFusion": "#ed2cd6",
"ColdFusion CFC": "#ed2cd6", "ColdFusion CFC": "#ed2cd6",
"COLLADA": "#F1A42B",
"Common Lisp": "#3fb68b", "Common Lisp": "#3fb68b",
"Common Workflow Language": "#B5314C", "Common Workflow Language": "#B5314C",
"Component Pascal": "#b0ce4e", "Component Pascal": "#B0CE4E",
"Cool": null,
"Coq": "#d0b68c",
"Crystal": "#000100", "Crystal": "#000100",
"CSON": "#244776",
"Csound": "#1a1a1a",
"Csound Document": "#1a1a1a",
"Csound Score": "#1a1a1a",
"CSS": "#563d7c",
"CSV": "#237346",
"Cuda": "#3A4E3A", "Cuda": "#3A4E3A",
"D": "#fcd46d", "CUE": "#5886E1",
"DM": "#075ff1", "Curry": "#531242",
"CWeb": "#00007a",
"Cycript": null,
"Cypher": "#34c0eb",
"Cython": "#fedf5b",
"D": "#ba595e",
"Dafny": "#FFEC25", "Dafny": "#FFEC25",
"Dart": "#98BAD6", "Darcs Patch": "#8eff23",
"Dart": "#00B4AB",
"DataWeave": "#003a52", "DataWeave": "#003a52",
"Denizen": "#faf094", "Debian Package Control File": "#D70751",
"DenizenScript": "#FBEE96",
"Dhall": "#dfafff", "Dhall": "#dfafff",
"DIGITAL Command Language": null,
"DirectX 3D File": "#aace60",
"DM": "#447265",
"Dockerfile": "#384d54", "Dockerfile": "#384d54",
"Dogescript": "#cca760", "Dogescript": "#cca760",
"Dylan": "#3ebc27", "DTrace": null,
"Dylan": "#6c616e",
"E": "#ccce35", "E": "#ccce35",
"Earthly": "#2af0ff",
"Easybuild": "#069406",
"eC": "#913960",
"Ecere Projects": "#913960",
"ECL": "#8a1267", "ECL": "#8a1267",
"ECLiPSe": "#001d9d",
"Ecmarkup": "#eb8131",
"EditorConfig": "#fff1f2",
"Eiffel": "#4d6977",
"EJS": "#a91e50", "EJS": "#a91e50",
"EQ": "#a78649",
"Eagle": "#3994bc",
"Eiffel": "#946d57",
"Elixir": "#6e4a7e", "Elixir": "#6e4a7e",
"Elm": "#60B5CC", "Elm": "#60B5CC",
"Elvish": "#55BB55",
"Emacs Lisp": "#c065db", "Emacs Lisp": "#c065db",
"EmberScript": "#f64e3e", "EmberScript": "#FFF4F3",
"Erlang": "#0faf8d", "EQ": "#a78649",
"Erlang": "#B83998",
"Euphoria": "#FF790B",
"F#": "#b845fc", "F#": "#b845fc",
"F*": "#572e30", "F*": "#572e30",
"FLUX": "#33CCFF",
"FORTRAN": "#4d41b1",
"Factor": "#636746", "Factor": "#636746",
"Fancy": "#7b9db4", "Fancy": "#7b9db4",
"Fantom": "#dbded5", "Fantom": "#14253c",
"Faust": "#c37240", "Faust": "#c37240",
"Fennel": "#fff3d7",
"FIGlet Font": "#FFDDBB",
"Filebench WML": "#F6B900",
"Filterscript": null,
"fish": "#4aae47",
"Fluent": "#ffcc33",
"FLUX": "#88ccff",
"Forth": "#341708", "Forth": "#341708",
"Fortran": "#4d41b1", "Fortran": "#4d41b1",
"Fortran Free Form": "#4d41b1",
"FreeBasic": "#867db1",
"FreeMarker": "#0050b2", "FreeMarker": "#0050b2",
"Frege": "#00cafe", "Frege": "#00cafe",
"Futhark": "#5f021f", "Futhark": "#5f021f",
"G-code": "#D08CF2", "G-code": "#D08CF2",
"Game Maker Language": "#71b417",
"GAML": "#FFC766", "GAML": "#FFC766",
"GAMS": "#f49a22",
"GAP": "#0000cc",
"GCC Machine Description": "#FFCFAB",
"GDB": null,
"GDScript": "#355570", "GDScript": "#355570",
"Game Maker Language": "#8ad353", "GEDCOM": "#003058",
"Gemfile.lock": "#701516",
"Gemini": "#ff6900",
"Genero": "#63408e",
"Genero Forms": "#d8df39",
"Genie": "#fb855d", "Genie": "#fb855d",
"Genshi": "#951531",
"Gentoo Ebuild": "#9400ff",
"Gentoo Eclass": "#9400ff",
"Gerber Image": "#d20b00",
"Gherkin": "#5B2063", "Gherkin": "#5B2063",
"Glyph": "#e4cc98", "Git Attributes": "#F44D27",
"Git Config": "#F44D27",
"Git Revision List": "#F44D27",
"Gleam": "#ffaff3",
"GLSL": "#5686a5",
"Glyph": "#c1ac7f",
"Gnuplot": "#f0a9f0", "Gnuplot": "#f0a9f0",
"Go": "#375eab", "Go": "#00ADD8",
"Golo": "#f6a51f", "Go Checksums": "#00ADD8",
"Go Module": "#00ADD8",
"Golo": "#88562A",
"Gosu": "#82937f", "Gosu": "#82937f",
"Grace": "#615f8b",
"Gradle": "#02303a",
"Grammatical Framework": "#ff0000", "Grammatical Framework": "#ff0000",
"GraphQL": "#e10098", "GraphQL": "#e10098",
"Groovy": "#e69f56", "Graphviz (DOT)": "#2596be",
"HTML": "#e44b23", "Groovy": "#4298b8",
"Groovy Server Pages": "#4298b8",
"GSC": "#FF6800",
"Hack": "#878787", "Hack": "#878787",
"Haml": "#ece2a9", "Haml": "#ece2a9",
"Handlebars": "#f7931e", "Handlebars": "#f7931e",
"HAProxy": "#106da9",
"Harbour": "#0e60e3", "Harbour": "#0e60e3",
"Haskell": "#29b544", "Haskell": "#5e5086",
"Haxe": "#f7941e", "Haxe": "#df7900",
"HCL": null,
"HiveQL": "#dce200", "HiveQL": "#dce200",
"HLSL": "#aace60",
"HOCON": "#9ff8ee",
"HolyC": "#ffefaf", "HolyC": "#ffefaf",
"Hy": "#7891b1", "hoon": "#00b171",
"IDL": "#e3592c", "HTML": "#e34c26",
"IGOR Pro": "#0000cc", "HTML+ECR": "#2e1052",
"HTML+EEX": "#6e4a7e",
"HTML+ERB": "#701516",
"HTML+PHP": "#4f5d95",
"HTML+Razor": "#512be4",
"HTTP": "#005C9C",
"HXML": "#f68712",
"Hy": "#7790B2",
"HyPhy": null,
"IDL": "#a3522f",
"Idris": "#b30000", "Idris": "#b30000",
"Ignore List": "#000000",
"IGOR Pro": "#0000cc",
"ImageJ Macro": "#99AAFF", "ImageJ Macro": "#99AAFF",
"Imba": "#16cec6",
"Inform 7": null,
"INI": "#d1dbe0",
"Ink": null,
"Inno Setup": "#264b99",
"Io": "#a9188d", "Io": "#a9188d",
"Ioke": "#078193", "Ioke": "#078193",
"Isabelle": "#fdcd00", "Isabelle": "#FEFE00",
"Isabelle ROOT": "#FEFE00",
"J": "#9EEDFF", "J": "#9EEDFF",
"JFlex": "#DBCA00", "Janet": "#0886a5",
"JSONiq": "#40d47e", "JAR Manifest": "#b07219",
"Jasmin": "#d03600",
"Java": "#b07219", "Java": "#b07219",
"Java Properties": "#2A6277",
"Java Server Pages": "#2A6277",
"JavaScript": "#f1e05a", "JavaScript": "#f1e05a",
"JavaScript+ERB": "#f1e05a",
"Jest Snapshot": "#15c213",
"JetBrains MPS": "#21D789",
"JFlex": "#DBCA00",
"Jinja": "#a52a22",
"Jison": "#56b3cb",
"Jison Lex": "#56b3cb",
"Jolie": "#843179", "Jolie": "#843179",
"jq": "#c7254e",
"JSON": "#292929",
"JSON with Comments": "#292929",
"JSON5": "#267CB9",
"JSONiq": "#40d47e",
"JSONLD": "#0c479c",
"Jsonnet": "#0064bd", "Jsonnet": "#0064bd",
"Julia": "#a270ba", "Julia": "#a270ba",
"Jupyter Notebook": "#DA5B0B", "Jupyter Notebook": "#DA5B0B",
"KRL": "#f5c800", "just": "#384d54",
"Kaitai Struct": "#773b37", "Kaitai Struct": "#773b37",
"Kotlin": "#F18E33", "KakouneScript": "#6f8042",
"LFE": "#004200", "KiCad Layout": "#2f4aab",
"LLVM": "#185619", "KiCad Legacy Layout": "#2f4aab",
"LOLCODE": "#cc9900", "KiCad Schematic": "#2f4aab",
"LSL": "#3d9970", "Kotlin": "#A97BFF",
"Lark": "#0b130f", "KRL": "#28430A",
"Lasso": "#2584c3", "kvlang": "#1da6e0",
"Latte": "#A8FF97", "LabVIEW": "#fede06",
"Lark": "#2980B9",
"Lasso": "#999999",
"Latte": "#f2a542",
"Lean": null,
"Less": "#1d365d", "Less": "#1d365d",
"Lex": "#DBCA00", "Lex": "#DBCA00",
"LFE": "#4C3023",
"LigoLANG": "#0e74ff",
"LilyPond": "#9ccc7c",
"Limbo": null,
"Liquid": "#67b8de", "Liquid": "#67b8de",
"Literate Agda": "#315665",
"Literate CoffeeScript": "#244776",
"Literate Haskell": "#5e5086",
"LiveScript": "#499886", "LiveScript": "#499886",
"LLVM": "#185619",
"Logos": null,
"Logtalk": "#295b9a",
"LOLCODE": "#cc9900",
"LookML": "#652B81", "LookML": "#652B81",
"Lua": "#fa1fa1", "LoomScript": null,
"MATLAB": "#e16737", "LSL": "#3d9970",
"MAXScript": "#00a6a6", "Lua": "#000080",
"MLIR": "#5EC8DB", "M": null,
"MQL4": "#62A8D6", "M4": null,
"MQL5": "#4A76B8", "M4Sugar": null,
"MTML": "#0095d9",
"Macaulay2": "#d8ffff", "Macaulay2": "#d8ffff",
"Makefile": "#427819", "Makefile": "#427819",
"Mako": "#7e858d",
"Markdown": "#083fa1", "Markdown": "#083fa1",
"Marko": "#42bff2", "Marko": "#42bff2",
"Mask": "#f97732", "Mask": "#f97732",
"Matlab": "#bb92ac", "Mathematica": "#dd1100",
"Max": "#ce279c", "MATLAB": "#e16737",
"Mercury": "#abcdef", "Max": "#c4a79c",
"MAXScript": "#00a6a6",
"mcfunction": "#E22837",
"Mercury": "#ff2b2b",
"Mermaid": "#ff3670",
"Meson": "#007800", "Meson": "#007800",
"Metal": "#8f14e9", "Metal": "#8f14e9",
"MiniD": null,
"MiniYAML": "#ff1111",
"Mint": "#02b046",
"Mirah": "#c7a938", "Mirah": "#c7a938",
"mIRC Script": "#3d57c3",
"MLIR": "#5EC8DB",
"Modelica": "#de1d31",
"Modula-2": "#10253f",
"Modula-3": "#223388", "Modula-3": "#223388",
"Module Management System": null,
"Monkey": null,
"Monkey C": "#8D6747",
"Moocode": null,
"MoonScript": "#ff4585",
"Motoko": "#fbb03b",
"Motorola 68K Assembly": "#005daa",
"Move": "#4a137a",
"MQL4": "#62A8D6",
"MQL5": "#4A76B8",
"MTML": "#b7e1f4",
"MUF": null,
"mupad": "#244963",
"Mustache": "#724b3b", "Mustache": "#724b3b",
"Myghty": null,
"nanorc": "#2d004d",
"Nasal": "#1d2c4e",
"NASL": null,
"NCL": "#28431f", "NCL": "#28431f",
"NWScript": "#111522",
"Nearley": "#990000", "Nearley": "#990000",
"Nemerle": "#0d3c6e", "Nemerle": "#3d3c6e",
"nesC": "#94B0C7",
"NetLinx": "#0aa0ff", "NetLinx": "#0aa0ff",
"NetLinx+ERB": "#747faa", "NetLinx+ERB": "#747faa",
"NetLogo": "#ff2b2b", "NetLogo": "#ff6375",
"NewLisp": "#eedd66", "NewLisp": "#87AED7",
"Nextflow": "#3ac486", "Nextflow": "#3ac486",
"Nginx": "#009639",
"Nim": "#ffc200", "Nim": "#ffc200",
"Nimrod": "#37775b", "Nit": "#009917",
"Nit": "#0d8921", "Nix": "#7e7eff",
"Nix": "#7070ff", "NPM Config": "#cb3837",
"NSIS": null,
"Nu": "#c9df40", "Nu": "#c9df40",
"NumPy": "#9C8AF9", "NumPy": "#9C8AF9",
"Nunjucks": "#3d8137", "Nunjucks": "#3d8137",
"OCaml": "#3be133", "NWScript": "#111522",
"ObjectScript": "#424893", "OASv2-json": "#85ea2d",
"OASv2-yaml": "#85ea2d",
"OASv3-json": "#85ea2d",
"OASv3-yaml": "#85ea2d",
"Objective-C": "#438eff", "Objective-C": "#438eff",
"Objective-C++": "#4886FC", "Objective-C++": "#6866fb",
"Objective-J": "#ff0c5a", "Objective-J": "#ff0c5a",
"ObjectScript": "#424893",
"OCaml": "#3be133",
"Odin": "#60AFFE", "Odin": "#60AFFE",
"Omgrofl": "#cabbff", "Omgrofl": "#cabbff",
"ooc": "#b0b77e",
"Opa": null,
"Opal": "#f7ede0", "Opal": "#f7ede0",
"Open Policy Agent": "#7d9199",
"OpenAPI Specification v2": "#85ea2d",
"OpenAPI Specification v3": "#85ea2d",
"OpenCL": "#ed2e2d",
"OpenEdge ABL": "#5ce600",
"OpenQASM": "#AA70FF", "OpenQASM": "#AA70FF",
"OpenRC runscript": null,
"OpenSCAD": "#e5cd45",
"Option List": "#476732",
"Org": "#77aa99", "Org": "#77aa99",
"Oxygene": "#5a63a3", "Ox": null,
"Oz": "#fcaf3e", "Oxygene": "#cdd0e3",
"Oz": "#fab738",
"P4": "#7055b5", "P4": "#7055b5",
"PAWN": "#dbb284",
"PHP": "#4F5D95",
"PLSQL": "#dad8d8",
"Pan": "#cc0000", "Pan": "#cc0000",
"Papyrus": "#6600cc", "Papyrus": "#6600cc",
"Parrot": "#f3ca0a", "Parrot": "#f3ca0a",
"Pascal": "#b0ce4e", "Parrot Assembly": null,
"Parrot Internal Representation": null,
"Pascal": "#E3F171",
"Pawn": "#dbb284", "Pawn": "#dbb284",
"PDDL": "#0d00ff",
"PEG.js": "#234d6b",
"Pep8": "#C76F5B", "Pep8": "#C76F5B",
"Perl": "#0298c3", "Perl": "#0298c3",
"Perl6": "#0298c3", "PHP": "#4F5D95",
"PicoLisp": "#6067af",
"PigLatin": "#fcd7de", "PigLatin": "#fcd7de",
"Pike": "#066ab2", "Pike": "#005390",
"PLpgSQL": "#336790",
"PLSQL": "#dad8d8",
"PogoScript": "#d80074", "PogoScript": "#d80074",
"Polar": "#ae81ff",
"Pony": null,
"Portugol": "#f8bd00",
"PostCSS": "#dc3a0c",
"PostScript": "#da291c", "PostScript": "#da291c",
"POV-Ray SDL": "#6bac65",
"PowerBuilder": "#8f0f8d", "PowerBuilder": "#8f0f8d",
"PowerShell": "#012456", "PowerShell": "#012456",
"Prisma": "#0c344b", "Prisma": "#0c344b",
"Processing": "#2779ab", "Processing": "#0096D8",
"Procfile": "#3B2F63",
"Prolog": "#74283c", "Prolog": "#74283c",
"Propeller Spin": "#2b446d", "Promela": "#de0000",
"Propeller Spin": "#7fa2a7",
"Pug": "#a86454", "Pug": "#a86454",
"Puppet": "#cc5555", "Puppet": "#302B6D",
"Pure Data": "#91de79",
"PureBasic": "#5a6986", "PureBasic": "#5a6986",
"PureScript": "#bcdc53", "PureScript": "#1D222D",
"Python": "#3581ba", "Python": "#3572A5",
"Python console": "#3572A5",
"Python traceback": "#3572A5",
"q": "#0040cd",
"Q#": "#fed659", "Q#": "#fed659",
"QMake": null,
"QML": "#44a51c", "QML": "#44a51c",
"Qt Script": "#00b841", "Qt Script": "#00b841",
"Quake": "#882233", "Quake": "#882233",
"R": "#198ce7", "R": "#198CE7",
"RAML": "#77d9fb", "Racket": "#3c5caa",
"RUNOFF": "#665a4e",
"Racket": "#ae17ff",
"Ragel": "#9d5200", "Ragel": "#9d5200",
"Ragel in Ruby Host": "#ff9c2e",
"Raku": "#0000fb", "Raku": "#0000fb",
"RAML": "#77d9fb",
"Rascal": "#fffaa0", "Rascal": "#fffaa0",
"ReScript": "#ed5051", "RDoc": "#701516",
"REALbasic": null,
"Reason": "#ff5847", "Reason": "#ff5847",
"ReasonLIGO": "#ff5847",
"Rebol": "#358a5b", "Rebol": "#358a5b",
"Record Jar": "#0673ba", "Record Jar": "#0673ba",
"Red": "#ee0000", "Red": "#f50000",
"Redcode": null,
"Regular Expression": "#009a00",
"Ren'Py": "#ff7f7f", "Ren'Py": "#ff7f7f",
"RenderScript": null,
"ReScript": "#ed5051",
"reStructuredText": "#141414",
"REXX": "#d90e09",
"Ring": "#2D54CB", "Ring": "#2D54CB",
"Riot": "#A71E49", "Riot": "#A71E49",
"RMarkdown": "#198ce7",
"RobotFramework": "#00c0b5",
"Roff": "#ecdebe", "Roff": "#ecdebe",
"Roff Manpage": "#ecdebe",
"Rouge": "#cc0088", "Rouge": "#cc0088",
"RouterOS Script": "#DE3941",
"RPC": null,
"RPGLE": "#2BDE21",
"Ruby": "#701516", "Ruby": "#701516",
"RUNOFF": "#665a4e",
"Rust": "#dea584", "Rust": "#dea584",
"SAS": "#1E90FF", "Sage": null,
"SCSS": "#c6538c",
"SQF": "#FFCB1F",
"SRecode Template": "#348a34",
"SVG": "#ff9900",
"SaltStack": "#646464", "SaltStack": "#646464",
"SAS": "#B34936",
"Sass": "#a53b70", "Sass": "#a53b70",
"Scala": "#7dd3b0", "Scala": "#c22d40",
"Scaml": "#bd181a", "Scaml": "#bd181a",
"Scenic": "#fdc700",
"Scheme": "#1e4aec", "Scheme": "#1e4aec",
"Scilab": "#ca0f21",
"SCSS": "#c6538c",
"sed": "#64b970",
"Self": "#0579aa", "Self": "#0579aa",
"Shell": "#5861ce", "ShaderLab": "#222c37",
"Shell": "#89e051",
"ShellCheck Config": "#cecfcb",
"ShellSession": null,
"Shen": "#120F14", "Shen": "#120F14",
"Sieve": null,
"Simple File Verification": "#C9BFED",
"Singularity": "#64E6AD",
"Slash": "#007eff", "Slash": "#007eff",
"Slice": "#003fa2", "Slice": "#003fa2",
"Slim": "#ff8877", "Slim": "#2b2b2b",
"SmPL": "#c94949", "Smali": null,
"Smalltalk": "#596706", "Smalltalk": "#596706",
"Smarty": "#f0c040",
"Smithy": "#c44536",
"SmPL": "#c94949",
"SMT": null,
"Solidity": "#AA6746", "Solidity": "#AA6746",
"SourcePawn": "#f69e1d", "SourcePawn": "#f69e1d",
"SPARQL": "#0C4597",
"SQF": "#3F3F3F",
"SQL": "#e38c00",
"SQLPL": "#e38c00",
"Squirrel": "#800000", "Squirrel": "#800000",
"SRecode Template": "#348a34",
"Stan": "#b2011d", "Stan": "#b2011d",
"Standard ML": "#dc566d", "Standard ML": "#dc566d",
"Starlark": "#76d275", "Starlark": "#76d275",
"Stata": "#1a5f91",
"STL": "#373b5e",
"StringTemplate": "#3fb34f",
"Stylus": "#ff6347", "Stylus": "#ff6347",
"SubRip Text": "#9e0101",
"SugarSS": "#2fcc9f",
"SuperCollider": "#46390b", "SuperCollider": "#46390b",
"Svelte": "#ff3e00", "Svelte": "#ff3e00",
"Swift": "#ffac45", "SVG": "#ff9900",
"SystemVerilog": "#343761", "Swift": "#F05138",
"TI Program": "#A0AA87", "SWIG": null,
"SystemVerilog": "#DAE1C2",
"Talon": "#333333",
"Tcl": "#e4cc98", "Tcl": "#e4cc98",
"TeX": "#3D6117", "Tcsh": null,
"Terra": "#00004c", "Terra": "#00004c",
"Turing": "#45f715", "TeX": "#3D6117",
"Textile": "#ffe7ac",
"TextMate Properties": "#df66e4",
"Thrift": "#D12127",
"TI Program": "#A0AA87",
"TLA": "#4b0079",
"TOML": "#9c4221",
"TSQL": "#e38c00",
"TSV": "#237346",
"TSX": "#3178c6",
"Turing": "#cf142b",
"Twig": "#c1d026", "Twig": "#c1d026",
"TypeScript": "#31859c", "TXL": "#0178b8",
"Unified Parallel C": "#755223", "TypeScript": "#3178c6",
"Unified Parallel C": "#4e3617",
"Unity3D Asset": "#222c37",
"Unix Assembly": null,
"Uno": "#9933cc", "Uno": "#9933cc",
"UnrealScript": "#a54c4d", "UnrealScript": "#a54c4d",
"UrWeb": "#ccccee",
"V": "#4f87c4", "V": "#4f87c4",
"Vala": "#a56de2",
"Valve Data Format": "#f26025",
"VBA": "#867db1", "VBA": "#867db1",
"VBScript": "#15dcdc", "VBScript": "#15dcdc",
"VCL": "#0298c3", "VCL": "#148AA8",
"VHDL": "#543978", "Velocity Template Language": "#507cff",
"Vala": "#ee7d06", "Verilog": "#b2b7f8",
"Verilog": "#848bf3", "VHDL": "#adb2cb",
"Vim script": "#199f4b", "Vim Help File": "#199f4b",
"VimL": "#199c4b", "Vim Script": "#199f4b",
"Visual Basic": "#945db7", "Vim Snippet": "#199f4b",
"Visual Basic .NET": "#945db7", "Visual Basic .NET": "#945db7",
"Volt": "#0098db", "Visual Basic 6.0": "#2c6353",
"Vue": "#2c3e50", "Volt": "#1F1F1F",
"Web Ontology Language": "#3994bc", "Vue": "#41b883",
"Vyper": "#2980b9",
"wdl": "#42f1f4",
"Web Ontology Language": "#5b70bd",
"WebAssembly": "#04133b", "WebAssembly": "#04133b",
"WebIDL": null,
"Whiley": "#d5c397",
"Wikitext": "#fc5757",
"Windows Registry Entries": "#52d5ff",
"wisp": "#7582D1",
"Witcher Script": "#ff0000",
"Wollok": "#a23738", "Wollok": "#a23738",
"World of Warcraft Addon Data": "#f7e43f",
"Wren": "#383838",
"X10": "#4B6BEF", "X10": "#4B6BEF",
"xBase": "#403a40",
"XC": "#99DA07", "XC": "#99DA07",
"XQuery": "#2700e2", "XML": "#0060ac",
"XML Property List": "#0060ac",
"Xojo": "#81bd41",
"Xonsh": "#285EEF",
"XProc": null,
"XQuery": "#5232e7",
"XS": null,
"XSLT": "#EB8CEB", "XSLT": "#EB8CEB",
"Xtend": "#24255d",
"Yacc": "#4B6C4B",
"YAML": "#cb171e", "YAML": "#cb171e",
"YARA": "#220000", "YARA": "#220000",
"YASnippet": "#32AB90", "YASnippet": "#32AB90",
"Yacc": "#4B6C4B", "Yul": "#794932",
"ZAP": "#0d665e", "ZAP": "#0d665e",
"ZIL": "#dc75e5", "Zeek": null,
"ZenScript": "#00BCD1", "ZenScript": "#00BCD1",
"Zephir": "#118f9e", "Zephir": "#118f9e",
"Zig": "#ec915c", "Zig": "#ec915c",
"cpp": "#f34b7d", "ZIL": "#dc75e5",
"eC": "#913960", "Zimpl": "#d67711"
"edn": "#db5855",
"mIRC Script": "#3d57c3",
"mcfunction": "#E22837",
"nesC": "#ffce3b",
"ooc": "#b0b77e",
"q": "#0040cd",
"sed": "#64b970",
"wdl": "#42f1f4",
"wisp": "#7582D1",
"xBase": "#3a4040",
"Other": "#1f9aef"
}, },
"editors": { "editors": {
"Adobe XD": "#fd27bc", "Adobe XD": "#fd27bc",

View File

@ -0,0 +1,30 @@
package migrations
import (
"github.com/emvi/logbuch"
"github.com/muety/wakapi/config"
"gorm.io/gorm"
)
func init() {
const name = "20230219-add_astro_language"
f := migrationFunc{
name: name,
f: func(db *gorm.DB, cfg *config.Config) error {
if hasRun(name, db) {
return nil
}
logbuch.Info("running migration '%s'", name)
if err := db.Exec("UPDATE heartbeats SET language = 'Astro' where language = '' and entity like '%.astro'").Error; err != nil {
return err
}
setHasRun(name, db)
return nil
},
}
registerPostMigration(f)
}

13
scripts/convert_colors.py Normal file
View File

@ -0,0 +1,13 @@
# convert colors from the format provided by https://raw.githubusercontent.com/ozh/github-colors/master/colors.json to what wakapi wants
import sys
import json
with open(sys.argv[1], 'r') as f:
colors = json.load(f)
result = {}
for k, v in colors.items():
result[k] = v['color']
print(json.dumps(result, indent=4))

View File

@ -19,7 +19,8 @@ LANGUAGES = {
'Python': 'py', 'Python': 'py',
# https://github.com/muety/wakapi/issues/172 # https://github.com/muety/wakapi/issues/172
'PHP': 'php', 'PHP': 'php',
'Blade': 'blade.php' 'Blade': 'blade.php',
'?': 'astro', # simulate language unknown to wakatime-cli
} }
BRANCHES = ['master', 'feature-1', 'feature-2'] BRANCHES = ['master', 'feature-1', 'feature-2']
@ -78,7 +79,7 @@ def generate_data(n: int, n_projects: int = 5, n_past_hours: int = 24) -> List[H
data.append(Heartbeat( data.append(Heartbeat(
entity=f'/home/me/dev/{p}/{f}.{LANGUAGES[l]}', entity=f'/home/me/dev/{p}/{f}.{LANGUAGES[l]}',
project=p, project=p,
language=l, language=l if not '?' in l else None,
branch=b, branch=b,
time=(now - delta).timestamp() time=(now - delta).timestamp()
)) ))