Skip to content

Commit

Permalink
Add better support for Django
Browse files Browse the repository at this point in the history
  • Loading branch information
blfpd authored and Baptiste Darthenay committed Jun 11, 2018
1 parent 2097577 commit 1acf08b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions icons/file_type_djangotxt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/icon-manifest/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export const languages: ILanguageCollection = {
cython: { ids: 'cython', defaultExtension: 'pyx' },
dal: { ids: 'dal', defaultExtension: 'dal' },
dart: { ids: 'dart', defaultExtension: 'dart' },
django: { ids: 'django-html', defaultExtension: 'html' },
djangotxt: { ids: 'django-txt', defaultExtension: 'txt' },
diff: { ids: 'diff', defaultExtension: 'diff' },
dlang: { ids: ['d', 'dscript', 'dml', 'diet'], defaultExtension: 'd' },
dockerfile: { ids: 'dockerfile', defaultExtension: 'dockerfile' },
Expand Down
3 changes: 2 additions & 1 deletion src/icon-manifest/supportedExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ export const extensions: IFileCollection = {
{ icon: 'db', extensions: ['db'], light: true, format: FileFormat.svg },
{ icon: 'dependencies', extensions: ['dependencies.yml'], filename: true, format: FileFormat.svg },
{ icon: 'delphi', extensions: [], languages: [languages.pascal], format: FileFormat.svg },
{ icon: 'django', extensions: ['djt'], format: FileFormat.svg },
{ icon: 'django', extensions: ['djt'], languages: [languages.django], format: FileFormat.svg },
{ icon: 'django', extensions: [], languages: [languages.djangotxt], format: FileFormat.svg },
{ icon: 'dlang', extensions: [], languages: [languages.dlang], format: FileFormat.svg },
{ icon: 'diff', extensions: [], languages: [languages.diff], format: FileFormat.svg },
{
Expand Down
2 changes: 2 additions & 0 deletions src/models/language/languageCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export interface ILanguageCollection extends INativeLanguageCollection {
cython: ILanguage;
dal: ILanguage;
dart: ILanguage;
django: ILanguage;
djangotxt: ILanguage;
dlang: ILanguage;
doctex: ILanguage;
dotenv: ILanguage;
Expand Down

0 comments on commit 1acf08b

Please sign in to comment.