-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced old webpack configuration with more modern version
- Loading branch information
Showing
54 changed files
with
8,183 additions
and
16,694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["@babel/preset-env", "@babel/preset-react"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
# Machine Learning Applications for Remote Language Instruction | ||
|
||
_Machine Learning Applications for Remote Language Instruction_ is a project by the | ||
[MIT Programs in Digital Humanities](https://digitalhumanities.mit.edu) in | ||
collaboration with our Spring 2021 Faculty Fellow, [Takako Aikawa](https://https://aikawa.mit.edu/), | ||
Senior Lecturer in Japanese in the Global Languages Department at MIT. | ||
# Boilerplate project for DH Labs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). | ||
* This devtool is neither made for production nor for readable output files. | ||
* It uses "eval()" calls to create a separate source file in the browser devtools. | ||
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) | ||
* or disable the default devtool with "devtool: false". | ||
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). | ||
*/ | ||
/******/ (() => { // webpackBootstrap | ||
/******/ var __webpack_modules__ = ({ | ||
|
||
/***/ "./frontend/index.js": | ||
/*!***************************!*\ | ||
!*** ./frontend/index.js ***! | ||
\***************************/ | ||
/***/ (() => { | ||
|
||
eval("function component() {\n console.log('running with updates');\n const element = document.createElement('div');\n element.innerHTML = 'Hello webpack';\n return element;\n}\ndocument.body.appendChild(component());\n\n//# sourceURL=webpack://boilerplate/./frontend/index.js?"); | ||
|
||
/***/ }) | ||
|
||
/******/ }); | ||
/************************************************************************/ | ||
/******/ | ||
/******/ // startup | ||
/******/ // Load entry module and return exports | ||
/******/ // This entry module can't be inlined because the eval devtool is used. | ||
/******/ var __webpack_exports__ = {}; | ||
/******/ __webpack_modules__["./frontend/index.js"](); | ||
/******/ | ||
/******/ })() | ||
; |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,66 @@ | ||
""" | ||
These view functions and classes implement API endpoints | ||
These view functions and classes implement both standard GET routes and API endpoints | ||
""" | ||
|
||
from rest_framework.decorators import api_view | ||
from rest_framework.response import Response | ||
from django.shortcuts import render | ||
|
||
# from .models import () | ||
# from .serializers import () | ||
|
||
@api_view(['GET']) | ||
def example(request, example_id): | ||
""" | ||
API example endpoint. | ||
""" | ||
|
||
data = { | ||
'name': 'Example', | ||
'id': example_id, | ||
} | ||
return Response(data) | ||
|
||
|
||
def index(request): | ||
""" | ||
Home page | ||
""" | ||
|
||
context = { | ||
'page_metadata': { | ||
'title': 'Home page' | ||
}, | ||
} | ||
|
||
return render(request, 'index.html', context) | ||
|
||
|
||
def example(request): | ||
""" | ||
Example page | ||
""" | ||
|
||
context = { | ||
'page_metadata': { | ||
'title': 'Example page' | ||
}, | ||
} | ||
|
||
return render(request, 'index.html', context) | ||
|
||
|
||
def example_id(request, example_id): | ||
""" | ||
Example ID page | ||
""" | ||
|
||
context = { | ||
'page_metadata': { | ||
'title': 'Example ID page' | ||
}, | ||
'app_data': { | ||
'id': example_id | ||
}, | ||
'app_component': 'ExampleId' | ||
} | ||
|
||
return render(request, 'index.html', context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.