forked from rage/java-programming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
116 lines (107 loc) · 3.32 KB
/
index.js
File metadata and controls
116 lines (107 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// import importAll from 'import-all.macro'
// function getNamedPartials() {
// const partials = importAll.sync('./*.js')
// const namedPartials = {}
// Object.entries(partials)
// .filter(([k, _]) => k !== './index.js')
// .forEach(([k, v]) => {
// const newKey = toKebabCase(k.replace('./', '').replace('.js', ''))
// namedPartials[newKey] = v.default
// })
// function toKebabCase(string) {
// return string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase()
// }
// return namedPartials
// }
// export default getNamedPartials
import Test from "./Test"
import PagesInThisSection from "./PagesInThisSection"
import ProgrammingExercise from "./ProgrammingExercise"
import TextBox from "./TextBox"
import SampleData from "./SampleData"
import SampleOutput from "./SampleOutput"
import Youtube from "./Youtube"
import Quiz from "./Quiz"
import Quiznator from "./Quiznator"
import PleaseLogin from "./PleaseLogin"
import FloatImageRight from "./FloatImageRight"
import CodeStatesVisualizer from "./CodeStatesVisualizer"
import PdfSlideshow from "./PdfSlideshow"
import ExercisesInThisSection from "./ExercisesInThisSection"
import AbStudy from "./AbStudy"
// import CrowdSorcerer from "./CrowdSorcerer"
import MoodleExercise from "./MoodleExercise"
import SqlTrainerExercise from "./SqlTrainerExercise"
import GoogleFormLink from "./GoogleFormLink"
import {
Table,
TableBody,
TableCell,
TableHead,
TableRow,
TableTh,
} from "./Table"
import Deadline from "./Deadline"
import OnlyForAbGroup from "./AbStudy/OnlyForAbGroup"
import H3 from "./Headers/H3"
import H1 from "./Headers/H1"
import H2 from "./Headers/H2"
import H4 from "./Headers/H4"
import H5 from "./Headers/H5"
import H6 from "./Headers/H6"
import Hr from "./Hr"
import TableOfContents from "./TableOfContents"
import Notice from "./Notice"
import RegistrationLink from "./RegistrationLink"
import RegistrationLink2 from "./RegistrationLink2"
import OnlyForCourseVariant from "./OnlyForCourseVariant"
import OnlyForNotLoggedIn from "./OnlyForNotLoggedIn"
import Points from "./Points"
import WorkshopSchedule from "./WorkshopSchedule"
const mapping = {
test: Test,
"pages-in-this-section": PagesInThisSection,
"programming-exercise": ProgrammingExercise,
"text-box": TextBox,
"sample-data": SampleData,
"sample-output": SampleOutput,
"please-login": PleaseLogin,
"float-image-right": FloatImageRight,
"code-states-visualizer": CodeStatesVisualizer,
"pdf-slideshow": PdfSlideshow,
"exercises-in-this-section": ExercisesInThisSection,
"ab-study": AbStudy,
"only-for-ab-group": OnlyForAbGroup,
"only-for-course-variant": OnlyForCourseVariant,
"only-for-not-logged-in": OnlyForNotLoggedIn,
"table-of-contents": TableOfContents,
"registration-link": RegistrationLink,
"registration-link-ohja": RegistrationLink2,
"moodle-exercise": MoodleExercise,
"sqltrainer-exercise": SqlTrainerExercise,
"google-form-link": GoogleFormLink,
"workshop-schedule": WorkshopSchedule,
notice: Notice,
// crowdsorcerer: CrowdSorcerer,
youtube: Youtube,
quiz: Quiz,
quiznator: Quiznator,
table: Table,
tbody: TableBody,
thead: TableHead,
tr: TableRow,
td: TableCell,
th: TableTh,
deadline: Deadline,
h1: H1,
h2: H2,
h3: H3,
h4: H4,
h5: H5,
h6: H6,
hr: Hr,
points: Points,
}
export default () => {
return mapping
}