diff --git a/README.md b/README.md index 5c901dd..1bf3a66 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,10 @@ https://codeofaninja.com/2017/02/create-simple-rest-api-in-php.html +https://vuejsdevelopers.com/2020/07/29/bootstrap-vue/ + + +to avoid: +Error: ENOSPC: System limit for number of file watchers reached, watch ' + +echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p diff --git a/api/objects/score.php b/api/objects/score.php index 7e4f8a2..a63f766 100644 --- a/api/objects/score.php +++ b/api/objects/score.php @@ -39,10 +39,9 @@ class Score $score_item = array( "id" => $row[1], "name" => $row[2], - "compositor" => $row[3], - "style" => $row[4] + "compositor" => $row[3] ); - + // "style" => $row[4] array_push($scores_arr["scores"], $score_item); } } diff --git a/frontend/score/package-lock.json b/frontend/score/package-lock.json index 4bf8306..f7b6c9e 100644 --- a/frontend/score/package-lock.json +++ b/frontend/score/package-lock.json @@ -2555,6 +2555,14 @@ "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", "dev": true }, + "axios": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.0.tgz", + "integrity": "sha512-fmkJBknJKoZwem3/IKSSLpkdNXZeBu5Q7GA/aRsr2btgrptmSCxi2oFjZHqGdK9DoTil9PIHlPIZw2EcRJXRvw==", + "requires": { + "follow-redirects": "^1.10.0" + } + }, "babel-eslint": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz", @@ -5534,8 +5542,7 @@ "follow-redirects": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.0.tgz", - "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==", - "dev": true + "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==" }, "for-in": { "version": "1.0.2", diff --git a/frontend/score/package.json b/frontend/score/package.json index 3f5d174..8209824 100644 --- a/frontend/score/package.json +++ b/frontend/score/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "axios": "^0.21.0", "bootstrap-vue": "^2.17.3", "core-js": "^3.6.5", "vue": "^2.6.11" diff --git a/frontend/score/src/App.vue b/frontend/score/src/App.vue index 55df315..b9213f9 100644 --- a/frontend/score/src/App.vue +++ b/frontend/score/src/App.vue @@ -1,28 +1,111 @@ diff --git a/frontend/score/src/components/HelloWorld.vue b/frontend/score/src/components/HelloWorld.vue deleted file mode 100644 index 879051a..0000000 --- a/frontend/score/src/components/HelloWorld.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - diff --git a/frontend/score/src/plugins/bootstrap-vue.js b/frontend/score/src/plugins/bootstrap-vue.js index 22a88fe..22fb9aa 100644 --- a/frontend/score/src/plugins/bootstrap-vue.js +++ b/frontend/score/src/plugins/bootstrap-vue.js @@ -1,7 +1,9 @@ import Vue from 'vue' -import BootstrapVue from 'bootstrap-vue' +import { BootstrapVue, BootstrapVueIcons } from 'bootstrap-vue' import 'bootstrap/dist/css/bootstrap.min.css' import 'bootstrap-vue/dist/bootstrap-vue.css' +import 'bootstrap-vue/dist/bootstrap-vue-icons.min.css' -Vue.use(BootstrapVue) +Vue.use(BootstrapVue) +Vue.use(BootstrapVueIcons) \ No newline at end of file diff --git a/frontend/score/vue.config.js b/frontend/score/vue.config.js new file mode 100644 index 0000000..c26a5ec --- /dev/null +++ b/frontend/score/vue.config.js @@ -0,0 +1,3 @@ +module.exports = { + publicPath: '/score/' +} \ No newline at end of file