pybricksMicropython/lib: add module

This creates a new module for dealing with stuff specific to Pybricks
MicroPython.
This commit is contained in:
David Lechner
2022-03-11 15:41:16 -06:00
parent 38b9bb6656
commit e36a30de4c
8 changed files with 142 additions and 73 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import { eventChannel } from 'redux-saga';
import { call, fork, getContext, put, takeEvery } from 'typed-redux-saga/macro';
import Observable from 'zen-observable';
import { EditorType } from '../editor/Editor';
import { pythonFileExtension, pythonFileMimeType } from '../pybricksMicropython/lib';
import { ensureError, timestamp } from '../utils';
import {
fileStorageArchiveAllFiles,
@@ -117,7 +118,7 @@ function* handleExportFile(
suggestedName: action.fileName,
types: [
{
accept: { 'text/x-python': '.py' },
accept: { [pythonFileMimeType]: pythonFileExtension },
// TODO: translate description
description: 'Python Files',
},