Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ui:cwd] make easily able to mapping mimetype to the kind #3375

Merged
merged 1 commit into from Jul 7, 2021

Conversation

nao-pon
Copy link
Member

@nao-pon nao-pon commented Jul 7, 2021

"kind"+ FILE EXTENSION By defining a language member, you can easily add the file type displayed in the UI.

ref. #3369

It can be...

from

fm.bind('init', function() {
    fm.kinds['image/vnd.dxf'] = 'DXF';
    fm.messages['kindDXF'] = 'AutoCAD DXF';
});

to

fm.bind('init', function() {
    fm.messages['kindDXF'] = 'AutoCAD DXF';
});

`"kind"+ FILE EXTENSION` By defining a language member, you can easily
add the file type displayed in the UI.

ref. Studio-42#3369

It can be...

from

```javascript
fm.bind('init', function() {
    fm.kinds['image/vnd.dxf'] = 'DXF';
    fm.messages['kindDXF'] = 'AutoCAD DXF';
});
```

to

```javascript
fm.bind('init', function() {
    fm.messages['kindDXF'] = 'AutoCAD DXF';
});
@nao-pon nao-pon merged commit 3c93e74 into Studio-42:master Jul 7, 2021
@nao-pon nao-pon deleted the mime2kind branch July 7, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant