Cleanup old code

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-04-29 11:23:08 +02:00
commit 669d341500
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF
17 changed files with 14 additions and 443 deletions

View file

@ -20,10 +20,6 @@
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
- UPDATE: Adds Quiz option and takes the input:
- is yet to store input of quizzes and cannot represtent them
- requires quizFormItem.vue (should be added to svn)
-->
<template>
@ -129,9 +125,8 @@ import answerTypes from '../models/AnswerTypes'
import EmptyContent from '../components/EmptyContent'
import Question from '../components/Questions/Question'
import QuestionLong from '../components/Questions/QuestionLong'
import QuestionShort from '../components/Questions/QuestionShort'
import QuestionMultiple from '../components/Questions/QuestionMultiple'
import QuizFormItem from '../components/quizFormItem'
import QuestionShort from '../components/Questions/QuestionShort'
import TopBar from '../components/TopBar'
import ViewsMixin from '../mixins/ViewsMixin'
@ -149,7 +144,6 @@ export default {
QuestionLong,
QuestionShort,
QuestionMultiple,
QuizFormItem,
TopBar,
},

View file

@ -81,14 +81,13 @@ import { generateUrl } from '@nextcloud/router'
import { showError } from '@nextcloud/dialogs'
import AppContent from '@nextcloud/vue/dist/Components/AppContent'
import axios from '@nextcloud/axios'
import json2csvParser from 'json2csv'
import EmptyContent from '../components/EmptyContent'
import ResultItem from '../components/resultItem'
import TopBar from '../components/TopBar'
import ViewsMixin from '../mixins/ViewsMixin'
import ResultItem from '../components/resultItem'
import json2csvParser from 'json2csv'
export default {
name: 'Results',
@ -181,7 +180,7 @@ export default {
download() {
this.loading = true
axios.get(OC.generateUrl('apps/forms/get/form/' + this.$route.params.hash))
axios.get(generateUrl('apps/forms/get/form/' + this.$route.params.hash))
.then((response) => {
this.json2csvParser = ['userId', 'questionId', 'questionText', 'Answer'] // TODO Is this one necessary??
const formattedAns = []

View file

@ -118,6 +118,7 @@ import AppSidebar from '@nextcloud/vue/dist/Components/AppSidebar'
import DatetimePicker from '@nextcloud/vue/dist/Components/DatetimePicker'
import moment from '@nextcloud/moment'
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import { getLocale, getLanguage } from '@nextcloud/l10n'
import ShareDiv from '../components/shareDiv'
import ViewsMixin from '../mixins/ViewsMixin'
@ -176,9 +177,9 @@ export default {
},
created() {
this.lang = OC.getLanguage()
this.lang = getLanguage()
try {
this.locale = OC.getLocale()
this.locale = getLocale()
} catch (e) {
if (e instanceof TypeError) {
this.locale = this.lang

View file

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg8"
viewBox="0 0 32 32"
x="0px"
y="0px"
enable-background="new 0 0 595.275 311.111"
width="32"
height="32"
xml:space="preserve"
version="1.1"><metadata
id="metadata14"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs12" /><rect
id="rect2"
y="2"
x="3"
height="26"
width="7"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.93541431" /><rect
id="rect4"
y="12"
x="12"
height="16"
width="7"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.93541431" /><rect
id="rect6"
y="8"
x="21"
height="20"
width="7"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.8918826" /></svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -1,14 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16">
<ellipse
style="opacity:1;fill:none;fill-opacity:1;stroke:#f45573;stroke-width:1.49987304;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
cx="8"
cy="8"
rx="6.2500634"
ry="6.2500639" />
<rect
style="fill:none;fill-opacity:1;stroke:#ffc107;stroke-width:0.86666656;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
width="5.6333332"
height="5.6333332"
x="5.1833334"
y="5.1833334" />
</svg>

Before

Width:  |  Height:  |  Size: 569 B

View file

@ -1,11 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16">
<ellipse
style="opacity:1;fill:none;fill-opacity:1;stroke:#f45573;stroke-width:1.49987304;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
cx="8"
cy="8"
rx="6.2500634"
ry="6.2500639" />
<path
d="M 6.9766048,11.334813 3.39273,7.7509392 4.4157633,6.7271819 6.9766048,9.285851 11.569757,4.6651869 12.60727,5.7034244 Z"
style="fill:#49bc49;fill-opacity:1" />
</svg>

Before

Width:  |  Height:  |  Size: 476 B

View file

@ -1,14 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16">
<path
style="opacity:1;fill:none;fill-opacity:1;stroke:#49bc49;stroke-width:1.5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 14.244065,8.0059972 c 0,3.4518138 -2.798249,6.2500608 -6.2500623,6.2500608 -3.4518138,0 -6.250062,-2.798247 -6.2500622,-6.2500608 0,-3.4518134 2.7982482,-6.2500612 6.2500622,-6.2500612" />
<path
style="fill:#49bc49;fill-opacity:1;stroke:none;stroke-width:0.11827402;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 7.9774453,0.41685427 11.667719,1.8149286 7.9774453,3.2780296 v 0 z" />
<rect
style="fill:none;fill-opacity:1;stroke:#ffc107;stroke-width:0.86666656;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
width="5.6333332"
height="5.6333332"
x="5.1833334"
y="5.1833334" />
</svg>

Before

Width:  |  Height:  |  Size: 958 B

View file

@ -1,11 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16">
<path
d="M 6.9766048,11.334813 3.39273,7.750939 4.4157633,6.7271817 6.9766048,9.2858508 11.569757,4.6651867 12.60727,5.7034243 Z"
style="fill:#49bc49;fill-opacity:1" />
<path
style="opacity:1;fill:none;fill-opacity:1;stroke:#49bc49;stroke-width:1.5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 14.250063,7.9999999 c 0,3.4518141 -2.798249,6.2500611 -6.2500635,6.2500611 -3.4518138,0 -6.250062,-2.798247 -6.2500622,-6.2500611 0,-3.4518134 2.7982482,-6.2500609 6.2500622,-6.2500609" />
<path
style="fill:#49bc49;fill-opacity:1;stroke:none;stroke-width:0.11827402;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 7.977,0.4168247 11.667274,1.8148987 7.977,3.278 v 0 z" />
</svg>

Before

Width:  |  Height:  |  Size: 852 B