Commit c54ee176cd5a143c5f73eb3b54e1ad7699bcefcb

Authored by Miguel Barão
1 parent b141e132
Exists in master and in 1 other branch dev

update javascript library versions

fix README.md
1 1
2 # BUGS 2 # BUGS
3 3
  4 +- se aluno abre dois tabs no browser, conseque navegar em simultaneo para perguntas diferentes. quando submete uma delas dá asneira. Tem de haver um campo hidden que tenha um céodigo único que indique qual a pergunta. do lado do servidor apnas há o codigo da pergunta corrente, se forem diferentes faz redirect para /.
4 - guardar o estado a meio de um nível. 5 - guardar o estado a meio de um nível.
5 - safari as vezes envia dois gets no inicio do topico. nesses casos, a segunda pergunta não é actualizada no browser... o topico tem de ser gerado qd se escolhe o topico em main_topics. O get nao deve alterar o estado. 6 - safari as vezes envia dois gets no inicio do topico. nesses casos, a segunda pergunta não é actualizada no browser... o topico tem de ser gerado qd se escolhe o topico em main_topics. O get nao deve alterar o estado.
6 - click numa opcao checkbox fora da checkbox+label não está a funcionar. 7 - click numa opcao checkbox fora da checkbox+label não está a funcionar.
@@ -10,23 +10,27 @@ Before installing the server, we will need to install python with some additiona @@ -10,23 +10,27 @@ Before installing the server, we will need to install python with some additiona
10 This can be done using the system package management, downloaded from [http://www.python.org](), or compiled from sources. 10 This can be done using the system package management, downloaded from [http://www.python.org](), or compiled from sources.
11 11
12 - Installing from the system package manager: 12 - Installing from the system package manager:
13 - ```sh  
14 - sudo port install python37 # MacOS  
15 - sudo pkg install python37 py37-sqlite3 # FreeBSD  
16 - sudo apt install ?not available yet? # Linux, install from source  
17 - ``` 13 +
  14 +```sh
  15 +sudo port install python37 # MacOS
  16 +sudo pkg install python37 py37-sqlite3 # FreeBSD
  17 +sudo apt install ?not available yet? # Linux, install from source
  18 +```
  19 +
18 - Installing from source: 20 - Installing from source:
19 - Download from [http://www.python.org]() and 21 +
  22 +Download from [http://www.python.org]() and
  23 +
  24 +```sh
  25 +unxz Python-3.7.tar.xz
  26 +tar xvf Python-3.7.tar
  27 +cd Python-3.7
  28 +./configure --prefix=$HOME/.local/bin
  29 +make && make install
  30 +```
20 31
21 - ```sh  
22 - unxz Python-3.7.tar.xz  
23 - tar xvf Python-3.7.tar  
24 - cd Python-3.7  
25 - ./configure --prefix=$HOME/.local/bin  
26 - make && make install  
27 - ``` 32 +This will install python locally under `~/.local/bin`. Make sure to add it to your `PATH` (edit `~/.profile` in MacOS or FreeBSD).
28 33
29 - This will install python locally under `~/.local/bin`. Make sure to add it to your `PATH` (edit `~/.profile` in MacOS or FreeBSD).  
30 34
31 ### Install pip 35 ### Install pip
32 36
@@ -184,7 +188,7 @@ Reboot or `sudo service pf start`. @@ -184,7 +188,7 @@ Reboot or `sudo service pf start`.
184 188
185 To help with troubleshooting, use the option `--debug` when running the server. This will increase logs in the terminal and will present the python exception errors in the browser. 189 To help with troubleshooting, use the option `--debug` when running the server. This will increase logs in the terminal and will present the python exception errors in the browser.
186 190
187 -Logging levels can be adjusted in `config/logger.yaml` and `config/logger-debug.yaml`. 191 +Logging levels can be adjusted in `~/.config/aprendizations/logger.yaml` and `~/.config/aprendizations/logger-debug.yaml`.
188 192
189 193
190 #### UnicodeEncodeError 194 #### UnicodeEncodeError
@@ -209,7 +213,7 @@ me:\ @@ -209,7 +213,7 @@ me:\
209 sqlite3 students.db "select distinct student_id from studenttopic" 213 sqlite3 students.db "select distinct student_id from studenttopic"
210 ``` 214 ```
211 215
212 -- How many topics had each student done? 216 +- How many topics has each student done?
213 217
214 ```sh 218 ```sh
215 sqlite3 students.db "select student_id, count(topic_id) from studenttopic group by student_id order by count(topic_id) desc" 219 sqlite3 students.db "select student_id, count(topic_id) from studenttopic group by student_id order by count(topic_id) desc"
aprendizations/learnapp.py
@@ -239,7 +239,7 @@ class LearnApp(object): @@ -239,7 +239,7 @@ class LearnApp(object):
239 239
240 if new_topics: 240 if new_topics:
241 s.add_all(new_topics) 241 s.add_all(new_topics)
242 - logger.info(f'Added {len(new_topics)} new topics to the ' 242 + logger.info(f'Added {len(new_topics)} new topic(s) to the '
243 f'database') 243 f'database')
244 244
245 # ------------------------------------------------------------------------ 245 # ------------------------------------------------------------------------
package-lock.json
@@ -3,14 +3,14 @@ @@ -3,14 +3,14 @@
3 "lockfileVersion": 1, 3 "lockfileVersion": 1,
4 "dependencies": { 4 "dependencies": {
5 "@fortawesome/fontawesome-free": { 5 "@fortawesome/fontawesome-free": {
6 - "version": "5.7.2",  
7 - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.7.2.tgz",  
8 - "integrity": "sha512-Ha4HshKdCVKgu4TVCtG8XyPPYdzTzNW4/fvPnn+LT7AosRABryhlRv4cc4+o84dgpvVJN9reN7jo/c+nYujFug==" 6 + "version": "5.8.1",
  7 + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.8.1.tgz",
  8 + "integrity": "sha512-GJtx6e55qLEOy2gPOsok2lohjpdWNGrYGtQx0FFT/++K4SYx+Z8LlPHdQBaFzKEwH5IbBB4fNgb//uyZjgYXoA=="
9 }, 9 },
10 "codemirror": { 10 "codemirror": {
11 - "version": "5.43.0",  
12 - "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.43.0.tgz",  
13 - "integrity": "sha512-mljwQWUaWIf85I7QwTBryF2ASaIvmYAL4s5UCanCJFfKeXOKhrqdHWdHiZWAMNT+hjLTCnVx2S/SYTORIgxsgA==" 11 + "version": "5.45.0",
  12 + "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.45.0.tgz",
  13 + "integrity": "sha512-c19j644usCE8gQaXa0jqn2B/HN9MnB2u6qPIrrhrMkB+QAP42y8G4QnTwuwbVSoUS1jEl7JU9HZMGhCDL0nsAw=="
14 }, 14 },
15 "mathjax": { 15 "mathjax": {
16 "version": "2.7.5", 16 "version": "2.7.5",
@@ -18,9 +18,9 @@ @@ -18,9 +18,9 @@
18 "integrity": "sha512-OzsJNitEHAJB3y4IIlPCAvS0yoXwYjlo2Y4kmm9KQzyIBZt2d8yKRalby3uTRNN4fZQiGL2iMXjpdP1u2Rq2DQ==" 18 "integrity": "sha512-OzsJNitEHAJB3y4IIlPCAvS0yoXwYjlo2Y4kmm9KQzyIBZt2d8yKRalby3uTRNN4fZQiGL2iMXjpdP1u2Rq2DQ=="
19 }, 19 },
20 "mdbootstrap": { 20 "mdbootstrap": {
21 - "version": "4.7.3",  
22 - "resolved": "https://registry.npmjs.org/mdbootstrap/-/mdbootstrap-4.7.3.tgz",  
23 - "integrity": "sha512-Vnh1IZBywNcnGuvSCpcX20fEG6jMFuwmM8NePan3pndDQMGvi12Nl2HjvF70dGdLICc4exOEs6rQ2ThGY3dcyQ==" 21 + "version": "4.7.6",
  22 + "resolved": "https://registry.npmjs.org/mdbootstrap/-/mdbootstrap-4.7.6.tgz",
  23 + "integrity": "sha512-b5Dgg/DQon8E3F/oIKJsCiFN1E5kgQBlndQ8vNzDnGcQXo2ruVKZA6Z3cvIJrv2IKS1kPBWOUwDedJiCLoAZxA=="
24 } 24 }
25 } 25 }
26 } 26 }
@@ -2,9 +2,9 @@ @@ -2,9 +2,9 @@
2 "description": "Javascript libraries required to run the server", 2 "description": "Javascript libraries required to run the server",
3 "email": "mjsb@uevora.pt", 3 "email": "mjsb@uevora.pt",
4 "dependencies": { 4 "dependencies": {
5 - "@fortawesome/fontawesome-free": "^5.7.1",  
6 - "codemirror": "^5.43.0", 5 + "@fortawesome/fontawesome-free": "^5.8.1",
  6 + "codemirror": "^5.45.0",
7 "mathjax": "^2.7.5", 7 "mathjax": "^2.7.5",
8 - "mdbootstrap": "^4.7.3" 8 + "mdbootstrap": "^4.7.6"
9 } 9 }
10 } 10 }