diff --git a/lib/src/common.dart b/lib/src/common.dart index f0313746..f8be345c 100644 --- a/lib/src/common.dart +++ b/lib/src/common.dart @@ -46,4 +46,5 @@ export 'package:github/src/common/util/oauth2.dart'; export 'package:github/src/common/util/pagination.dart'; export 'package:github/src/common/util/service.dart'; export 'package:github/src/common/util/utils.dart'; +export 'package:github/src/const/language_color.dart'; export 'package:github/src/const/token_env_keys.dart'; diff --git a/lib/src/const/language_color.dart b/lib/src/const/language_color.dart index 9a3fd526..7c3d40d7 100644 --- a/lib/src/const/language_color.dart +++ b/lib/src/const/language_color.dart @@ -1,18 +1,20 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -// VERSION OF 2020-02-08T14:23:59.127442 +// VERSION OF 2020-10-03T23:56:33.788466 -const languagesColor = { +const languageColors = { '1C Enterprise': '#814CCC', '4D': '#EDEDED', 'ABAP': '#E8274B', 'ABNF': '#EDEDED', 'AGS Script': '#B9D9FF', + 'AL': '#3AA2B5', 'AMPL': '#E6EFBB', 'ANTLR': '#9DC3FF', 'API Blueprint': '#2ACCA8', 'APL': '#5A8164', + 'ASL': '#EDEDED', 'ASN.1': '#EDEDED', - 'ASP': '#6A40FD', + 'ASP.NET': '#9400FF', 'ATS': '#1AC620', 'ActionScript': '#882B0F', 'Ada': '#02F88C', @@ -24,25 +26,26 @@ const languagesColor = { 'AngelScript': '#C7D7DC', 'Ant Build System': '#EDEDED', 'ApacheConf': '#EDEDED', - 'Apex': '#EDEDED', - 'Apollo Guidance Computer': '#EDEDED', + 'Apex': '#1797C0', + 'Apollo Guidance Computer': '#0B3D91', 'AppleScript': '#101F1F', 'Arc': '#AA2AFE', 'AsciiDoc': '#EDEDED', 'AspectJ': '#A957B0', 'Assembly': '#6E4C13', - 'Asymptote': '#4A0C0C', + 'Asymptote': '#FF0000', 'Augeas': '#EDEDED', 'AutoHotkey': '#6594B9', 'AutoIt': '#1C3552', + 'Avro IDL': '#EDEDED', 'Awk': '#EDEDED', 'Ballerina': '#FF5000', 'Batchfile': '#C1F12E', 'Befunge': '#EDEDED', 'BibTeX': '#EDEDED', - 'Bison': '#EDEDED', + 'Bison': '#6A463F', 'BitBake': '#EDEDED', - 'Blade': '#EDEDED', + 'Blade': '#F7523F', 'BlitzBasic': '#EDEDED', 'BlitzMax': '#CD6400', 'Bluespec': '#EDEDED', @@ -58,7 +61,7 @@ const languagesColor = { 'CMake': '#EDEDED', 'COBOL': '#EDEDED', 'COLLADA': '#EDEDED', - 'CSON': '#EDEDED', + 'CSON': '#244776', 'CSS': '#563D7C', 'CSV': '#EDEDED', 'CWeb': '#EDEDED', @@ -71,15 +74,17 @@ const languagesColor = { 'ChucK': '#EDEDED', 'Cirru': '#CCCCFF', 'Clarion': '#DB901E', + 'Classic ASP': '#6A40FD', 'Clean': '#3F85AF', 'Click': '#E4E6F3', 'Clojure': '#DB5855', 'Closure Templates': '#EDEDED', 'Cloud Firestore Security Rules': '#EDEDED', 'CoNLL-U': '#EDEDED', + 'CodeQL': '#EDEDED', 'CoffeeScript': '#244776', 'ColdFusion': '#ED2CD6', - 'ColdFusion CFC': '#EDEDED', + 'ColdFusion CFC': '#ED2CD6', 'Common Lisp': '#3FB68B', 'Common Workflow Language': '#B5314C', 'Component Pascal': '#B0CE4E', @@ -100,6 +105,7 @@ const languagesColor = { 'DM': '#447265', 'DNS Zone': '#EDEDED', 'DTrace': '#EDEDED', + 'Dafny': '#FFEC25', 'Darcs Patch': '#EDEDED', 'Dart': '#00B4AB', 'DataWeave': '#003A52', @@ -113,7 +119,7 @@ const languagesColor = { 'EBNF': '#EDEDED', 'ECL': '#8A1267', 'ECLiPSe': '#EDEDED', - 'EJS': '#EDEDED', + 'EJS': '#A91E50', 'EML': '#EDEDED', 'EQ': '#A78649', 'Eagle': '#EDEDED', @@ -121,7 +127,7 @@ const languagesColor = { 'Ecere Projects': '#EDEDED', 'EditorConfig': '#EDEDED', 'Edje Data Collection': '#EDEDED', - 'Eiffel': '#946D57', + 'Eiffel': '#4D6977', 'Elixir': '#6E4A7E', 'Elm': '#60B5CC', 'Emacs Lisp': '#C065DB', @@ -140,8 +146,10 @@ const languagesColor = { 'Formatted': '#EDEDED', 'Forth': '#341708', 'Fortran': '#4D41B1', + 'Fortran Free Form': '#EDEDED', 'FreeMarker': '#0050B2', 'Frege': '#00CAFE', + 'Futhark': '#5F021F', 'G-code': '#D08CF2', 'GAML': '#FFC766', 'GAMS': '#EDEDED', @@ -149,6 +157,7 @@ const languagesColor = { 'GCC Machine Description': '#EDEDED', 'GDB': '#EDEDED', 'GDScript': '#355570', + 'GEDCOM': '#EDEDED', 'GLSL': '#EDEDED', 'GN': '#EDEDED', 'Game Maker Language': '#71B417', @@ -169,9 +178,9 @@ const languagesColor = { 'Gosu': '#82937F', 'Grace': '#EDEDED', 'Gradle': '#EDEDED', - 'Grammatical Framework': '#79AA7A', + 'Grammatical Framework': '#FF0000', 'Graph Modeling Language': '#EDEDED', - 'GraphQL': '#EDEDED', + 'GraphQL': '#E10098', 'Graphviz (DOT)': '#EDEDED', 'Groovy': '#E69F56', 'Groovy Server Pages': '#EDEDED', @@ -188,8 +197,8 @@ const languagesColor = { 'HTTP': '#EDEDED', 'HXML': '#EDEDED', 'Hack': '#878787', - 'Haml': '#EDEDED', - 'Handlebars': '#EDEDED', + 'Haml': '#ECE2A9', + 'Handlebars': '#F7931E', 'Harbour': '#0E60E3', 'Haskell': '#5E5086', 'Haxe': '#DF7900', @@ -210,7 +219,7 @@ const languagesColor = { 'Isabelle': '#FEFE00', 'Isabelle ROOT': '#EDEDED', 'J': '#9EEDFF', - 'JFlex': '#EDEDED', + 'JFlex': '#DBCA00', 'JSON': '#EDEDED', 'JSON with Comments': '#EDEDED', 'JSON5': '#EDEDED', @@ -230,6 +239,7 @@ const languagesColor = { 'Julia': '#A270BA', 'Jupyter Notebook': '#DA5B0B', 'KRL': '#28430A', + 'Kaitai Struct': '#773B37', 'KiCad Layout': '#EDEDED', 'KiCad Legacy Layout': '#EDEDED', 'KiCad Schematic': '#EDEDED', @@ -242,9 +252,9 @@ const languagesColor = { 'LTspice Symbol': '#EDEDED', 'LabVIEW': '#EDEDED', 'Lasso': '#999999', - 'Latte': '#EDEDED', + 'Latte': '#F2A542', 'Lean': '#EDEDED', - 'Less': '#EDEDED', + 'Less': '#1D365D', 'Lex': '#DBCA00', 'LilyPond': '#EDEDED', 'Limbo': '#EDEDED', @@ -270,10 +280,11 @@ const languagesColor = { 'MQL5': '#4A76B8', 'MTML': '#B7E1F4', 'MUF': '#EDEDED', + 'Macaulay2': '#D8FFFF', 'Makefile': '#427819', 'Mako': '#EDEDED', - 'Markdown': '#EDEDED', - 'Marko': '#EDEDED', + 'Markdown': '#083FA1', + 'Marko': '#42BFF2', 'Mask': '#F97732', 'Mathematica': '#EDEDED', 'Maven POM': '#EDEDED', @@ -294,8 +305,11 @@ const languagesColor = { 'MoonScript': '#EDEDED', 'Motorola 68K Assembly': '#EDEDED', 'Muse': '#EDEDED', + 'Mustache': '#EDEDED', 'Myghty': '#EDEDED', + 'NASL': '#EDEDED', 'NCL': '#28431F', + 'NEON': '#EDEDED', 'NL': '#EDEDED', 'NPM Config': '#EDEDED', 'NSIS': '#EDEDED', @@ -307,12 +321,12 @@ const languagesColor = { 'NewLisp': '#87AED7', 'Nextflow': '#3AC486', 'Nginx': '#EDEDED', - 'Nim': '#37775B', + 'Nim': '#FFC200', 'Ninja': '#EDEDED', 'Nit': '#009917', 'Nix': '#7E7EFF', 'Nu': '#C9DF40', - 'NumPy': '#EDEDED', + 'NumPy': '#9C8AF9', 'OCaml': '#3BE133', 'ObjDump': '#EDEDED', 'Object Data Instance Notation': '#EDEDED', @@ -327,6 +341,7 @@ const languagesColor = { 'Open Policy Agent': '#EDEDED', 'OpenCL': '#EDEDED', 'OpenEdge ABL': '#EDEDED', + 'OpenQASM': '#AA70FF', 'OpenRC runscript': '#EDEDED', 'OpenSCAD': '#EDEDED', 'OpenStep Property List': '#EDEDED', @@ -354,6 +369,7 @@ const languagesColor = { 'PicoLisp': '#EDEDED', 'PigLatin': '#FCD7DE', 'Pike': '#005390', + 'PlantUML': '#EDEDED', 'Pod': '#EDEDED', 'Pod 6': '#EDEDED', 'PogoScript': '#D80074', @@ -362,14 +378,14 @@ const languagesColor = { 'PostScript': '#DA291C', 'PowerBuilder': '#8F0F8D', 'PowerShell': '#012456', - 'Prisma': '#EDEDED', + 'Prisma': '#0C344B', 'Processing': '#0096D8', 'Proguard': '#EDEDED', 'Prolog': '#74283C', 'Propeller Spin': '#7FA2A7', 'Protocol Buffer': '#EDEDED', 'Public Key': '#EDEDED', - 'Pug': '#EDEDED', + 'Pug': '#A86454', 'Puppet': '#302B6D', 'Pure Data': '#EDEDED', 'PureBasic': '#5A6986', @@ -377,15 +393,16 @@ const languagesColor = { 'Python': '#3572A5', 'Python console': '#EDEDED', 'Python traceback': '#EDEDED', + 'Q#': '#FED659', 'QML': '#44A51C', 'QMake': '#EDEDED', + 'Qt Script': '#00B841', 'Quake': '#882233', 'R': '#198CE7', 'RAML': '#77D9FB', 'RDoc': '#EDEDED', 'REALbasic': '#EDEDED', 'REXX': '#EDEDED', - 'RHTML': '#EDEDED', 'RMarkdown': '#EDEDED', 'RPC': '#EDEDED', 'RPM Spec': '#EDEDED', @@ -413,7 +430,7 @@ const languagesColor = { 'Ruby': '#701516', 'Rust': '#DEA584', 'SAS': '#B34936', - 'SCSS': '#EDEDED', + 'SCSS': '#C6538C', 'SMT': '#EDEDED', 'SPARQL': '#EDEDED', 'SQF': '#3F3F3F', @@ -422,11 +439,11 @@ const languagesColor = { 'SRecode Template': '#348A34', 'SSH Config': '#EDEDED', 'STON': '#EDEDED', - 'SVG': '#EDEDED', + 'SVG': '#FF9900', 'SWIG': '#EDEDED', 'Sage': '#EDEDED', 'SaltStack': '#646464', - 'Sass': '#EDEDED', + 'Sass': '#A53B70', 'Scala': '#C22D40', 'Scaml': '#EDEDED', 'Scheme': '#1E4AEC', @@ -436,32 +453,34 @@ const languagesColor = { 'Shell': '#89E051', 'ShellSession': '#EDEDED', 'Shen': '#120F14', + 'Sieve': '#EDEDED', 'Slash': '#007EFF', 'Slice': '#003FA2', - 'Slim': '#EDEDED', + 'Slim': '#2B2B2B', 'SmPL': '#C94949', 'Smali': '#EDEDED', 'Smalltalk': '#596706', 'Smarty': '#EDEDED', 'Solidity': '#AA6746', - 'SourcePawn': '#5C7611', + 'SourcePawn': '#F69E1D', 'Spline Font Database': '#EDEDED', 'Squirrel': '#800000', 'Stan': '#B2011D', 'Standard ML': '#DC566D', 'Starlark': '#76D275', 'Stata': '#EDEDED', - 'Stylus': '#EDEDED', + 'Stylus': '#FF6347', 'SubRip Text': '#EDEDED', 'SugarSS': '#EDEDED', 'SuperCollider': '#46390B', - 'Svelte': '#EDEDED', + 'Svelte': '#FF3E00', 'Swift': '#FFAC45', 'SystemVerilog': '#DAE1C2', 'TI Program': '#A0AA87', 'TLA': '#EDEDED', 'TOML': '#EDEDED', 'TSQL': '#EDEDED', + 'TSV': '#EDEDED', 'TSX': '#EDEDED', 'TXL': '#EDEDED', 'Tcl': '#E4CC98', @@ -475,22 +494,23 @@ const languagesColor = { 'Thrift': '#EDEDED', 'Turing': '#CF142B', 'Turtle': '#EDEDED', - 'Twig': '#EDEDED', + 'Twig': '#C1D026', 'Type Language': '#EDEDED', 'TypeScript': '#2B7489', - 'Unified Parallel C': '#EDEDED', + 'Unified Parallel C': '#4E3617', 'Unity3D Asset': '#EDEDED', 'Unix Assembly': '#EDEDED', - 'Uno': '#EDEDED', + 'Uno': '#9933CC', 'UnrealScript': '#A54C4D', 'UrWeb': '#EDEDED', - 'V': '#5D87BD', + 'V': '#4F87C4', 'VBA': '#867DB1', 'VBScript': '#15DCDC', 'VCL': '#148AA8', 'VHDL': '#ADB2CB', 'Vala': '#FBE5CD', 'Verilog': '#B2B7F8', + 'Vim Help File': '#EDEDED', 'Vim Snippet': '#EDEDED', 'Vim script': '#199F4B', 'Visual Basic .NET': '#945DB7', @@ -521,7 +541,7 @@ const languagesColor = { 'XSLT': '#EB8CEB', 'Xojo': '#EDEDED', 'Xtend': '#EDEDED', - 'YAML': '#EDEDED', + 'YAML': '#CB171E', 'YANG': '#EDEDED', 'YARA': '#220000', 'YASnippet': '#32AB90', @@ -539,7 +559,7 @@ const languagesColor = { 'eC': '#913960', 'edn': '#EDEDED', 'fish': '#EDEDED', - 'mIRC Script': '#926059', + 'mIRC Script': '#3D57C3', 'mcfunction': '#E22837', 'mupad': '#EDEDED', 'nanorc': '#EDEDED', diff --git a/tool/language_color_generator.dart b/tool/language_color_generator.dart index 67afc165..42fdcb66 100644 --- a/tool/language_color_generator.dart +++ b/tool/language_color_generator.dart @@ -8,17 +8,19 @@ const _path = './lib/src/const/language_color.dart'; const _url = 'https://raw.githubusercontent.com/' 'github/linguist/master/lib/linguist/languages.yml'; -Future main() async { +Future main() async { final response = await http.Client().get(_url); final yaml = loadYaml(response.body) as YamlMap; + final stringBuffer = StringBuffer() ..writeln('// GENERATED CODE - DO NOT MODIFY BY HAND') ..writeln('// VERSION OF ${DateTime.now().toIso8601String()}') ..writeln() - ..writeln('const languagesColor = {'); + ..writeln('const languageColors = {'); final map = yaml.value as YamlMap; + final languages = map.keys.cast().toList(growable: false)..sort(); for (var language in languages) {