Browse Source

Added GNU GPL v3 notes to all files

wip-firestore
Atridad Lahiji 1 year ago
parent
commit
c71302e467
  1. 15
      components/dialog/AddPollDialog.vue
  2. 15
      components/dialog/AddQuestionDialog.vue
  3. 15
      components/dialog/EditPollDialog.vue
  4. 15
      components/dialog/EditQuestionDialog.vue
  5. 15
      components/dialog/FinalResultsViewDialog.vue
  6. 15
      components/dialog/LiveResultsViewDialog.vue
  7. 15
      components/dialog/StudentPollViewDialog.vue
  8. 15
      components/session/FinalResults.vue
  9. 15
      components/session/LiveResults.vue
  10. 15
      components/session/Question.vue
  11. 15
      components/workflow/HomeScreen.vue
  12. 15
      components/workflow/LoginForm.vue
  13. 15
      functions/api.js
  14. 15
      functions/apiconfig.js
  15. 15
      functions/helpers.js
  16. 15
      functions/index.js
  17. 15
      layouts/default.vue
  18. 15
      layouts/error.vue
  19. 15
      middleware/router-auth.js
  20. 15
      pages/index.vue
  21. 15
      pages/login.vue
  22. 15
      plugins/fireauth.js
  23. 15
      plugins/firebase/firebase.js
  24. 15
      plugins/firebase/firebase_config.js.sample
  25. 15
      plugins/vue-chartjs.js
  26. 15
      plugins/vuetify.js
  27. 15
      store/index.js
  28. 15
      test/e2e/HomeScreen.test.js
  29. 15
      test/testconfig.js.sample
  30. 15
      test/unit/AuthMock.js
  31. 15
      test/unit/HomeScreen.spec.js

15
components/dialog/AddPollDialog.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-dialog
@keydown.esc="cancelAddPollDialog()"

15
components/dialog/AddQuestionDialog.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-dialog
@keydown.esc="cancelAddQuestionDialog()"

15
components/dialog/EditPollDialog.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-container>
<add-question-dialog

15
components/dialog/EditQuestionDialog.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-dialog
@keydown.esc="closeEditQuestionDialog()"

15
components/dialog/FinalResultsViewDialog.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-dialog
@keydown.esc="closeFinalResultsViewDialog()"

15
components/dialog/LiveResultsViewDialog.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-dialog
@keydown.esc="closeLiveResultsViewDialog()"

15
components/dialog/StudentPollViewDialog.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-dialog
@keydown.esc="closeStudentPollViewDialog()"

15
components/session/FinalResults.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<div>
<bar-graph

15
components/session/LiveResults.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<div>
<bar-graph

15
components/session/Question.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<div
class="mx-auto text-center"

15
components/workflow/HomeScreen.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-container
class="container"

15
components/workflow/LoginForm.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-card
elevation="12"

15
functions/api.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
const admin = require('firebase-admin');
const apiconfig = require('./apiconfig.js');
const helpers = require('./helpers.js')

15
functions/apiconfig.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
module.exports = {
domain: ''
}

15
functions/helpers.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
module.exports = {
getNewID: function (length) {
var result = '';

15
functions/index.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
const functions = require('firebase-functions');
const api = require('./api.js');

15
layouts/default.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-app>
<v-app-bar

15
layouts/error.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-app dark>
<h1 v-if="error.statusCode === 404">

15
middleware/router-auth.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
export default function ({ store, redirect, route }) {
if (store.state.user !== null && route.name === 'login') {
redirect('/')

15
pages/index.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-container
fluid

15
pages/login.vue

@ -1,3 +1,18 @@
<!-- This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. -->
<template>
<v-layout
column

15
plugins/fireauth.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
import { auth } from 'firebase/app'
const apiconfig = require('../functions/apiconfig.js')

15
plugins/firebase/firebase.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
import firebase from 'firebase/app'
import 'firebase/auth'
import 'firebase/database'

15
plugins/firebase/firebase_config.js.sample

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
/* eslint-disable*/
const fb = {
apiKey: '',

15
plugins/vue-chartjs.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
import Vue from 'vue'
import { Bar, mixins } from 'vue-chartjs'
const { reactiveProp } = mixins

15
plugins/vuetify.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'

15
store/index.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
import createPersistedState from 'vuex-persistedstate'
export const strict = false

15
test/e2e/HomeScreen.test.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
const testconfig = require('../testconfig.js')
module.exports = {

15
test/testconfig.js.sample

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
/* eslint-disable*/
module.exports = {
email: 'email@domain.com',

15
test/unit/AuthMock.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
import * as firebase from 'firebase'
// Firebase Auth Mock

15
test/unit/HomeScreen.spec.js

@ -1,3 +1,18 @@
/* This file is part of Pollo.
Pollo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pollo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pollo. If not, see <https://www.gnu.org/licenses/>. */
import Vue from 'vue'
import Vuetify from 'vuetify'
// Import the Firebase Auth mocks