mirror of
https://gitlab.com/MrFry/qmining-data-editor
synced 2025-04-01 20:24:01 +02:00
Merge branch 'master' of gitlab.com:MrFry/qmining-data-editor
This commit is contained in:
commit
096702ca9c
7 changed files with 16162 additions and 7 deletions
25
.eslintrc.js
Normal file
25
.eslintrc.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
node: true,
|
||||
},
|
||||
parser: 'babel-eslint',
|
||||
extends: ['eslint:recommended', 'plugin:react/recommended'],
|
||||
globals: {
|
||||
Atomics: 'readonly',
|
||||
SharedArrayBuffer: 'readonly',
|
||||
},
|
||||
rules: {
|
||||
'react/prop-types': 0,
|
||||
'no-undef': ['error'],
|
||||
eqeqeq: ['warn', 'smart'],
|
||||
'no-unused-vars': 'warn',
|
||||
'no-prototype-builtins': 'off',
|
||||
'id-length': [
|
||||
'warn',
|
||||
{ exceptions: ['x', 'i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b', 'e'] },
|
||||
],
|
||||
},
|
||||
root: true,
|
||||
}
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
node_modules/
|
||||
.next/
|
||||
out/
|
16126
package-lock.json
generated
Normal file
16126
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -64,6 +64,8 @@ export default function Question({ question, onChange, index }) {
|
|||
<div className={styles.text}>Lehetséges válaszok:</div>
|
||||
<div className={styles.possibleAnswers}>
|
||||
{possibleAnswers.map((possibleAnswer, i) => {
|
||||
// {"text":"a. Kétismeretlenes egyenletrendszert használunk.",
|
||||
// "selectedByUser":true}
|
||||
return (
|
||||
<div key={i}>
|
||||
<div>
|
||||
|
@ -71,15 +73,15 @@ export default function Question({ question, onChange, index }) {
|
|||
onChange={() => {
|
||||
onChange({
|
||||
...question,
|
||||
A: possibleAnswer,
|
||||
A: possibleAnswer.text,
|
||||
})
|
||||
}}
|
||||
checked={possibleAnswer === question.A}
|
||||
value={possibleAnswer}
|
||||
checked={possibleAnswer.text === question.A}
|
||||
value={possibleAnswer.text}
|
||||
type="radio"
|
||||
name={`possiblea${index ? index : ''}`}
|
||||
/>
|
||||
<span>{possibleAnswer}</span>
|
||||
<span>{possibleAnswer.text}</span>
|
||||
</div>
|
||||
<span
|
||||
onClick={() => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"apiUrl": "https://api.frylabs.net/",
|
||||
"siteUrl": "https://qmining.frylabs.net/",
|
||||
"apiUrl": "http://localhost:8080/",
|
||||
"maxQuestionsToRender": 250
|
||||
}
|
||||
|
|
|
@ -167,5 +167,4 @@ select {
|
|||
}
|
||||
|
||||
select:hover {
|
||||
border: 1px solid #99f;
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ const Infos = ({ onClick, renderOKButton }) => {
|
|||
|
||||
const fetchDbs = () => {
|
||||
return new Promise((resolve) => {
|
||||
fetch(`${constants.apiUrl}getdbs`, {
|
||||
fetch(`${constants.apiUrl}getDbs`, {
|
||||
credentials: 'include',
|
||||
})
|
||||
.then((resp) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue