diff --git a/.eslintrc.js b/.eslintrc.js index 01dedd9..b03b412 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,6 +15,7 @@ module.exports = { 'vue' ], 'rules': { + "no-console": "off", 'indent': [ 'error', 2 diff --git a/package-lock.json b/package-lock.json index 86d199f..afdbeec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8500,6 +8500,11 @@ "integrity": "sha512-w7fLxIRCRT7U8Qu53jQnJyPkYZIaR4n5151KMfcJlO/A9397Wxb1amJvROTK6TOnp7PfoAmg/qXiNHI+08jRfA==", "dev": true }, + "ramda": { + "version": "0.26.1", + "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.26.1.tgz", + "integrity": "sha512-hLWjpy7EnsDBb0p+Z3B7rPi3GDeRG5ZtiI33kJhTt+ORCd38AbAIjB/9zRIUoeTbE/AVX5ZkU7m6bznsvrf8eQ==" + }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", diff --git a/package.json b/package.json index 51ad248..8feda7a 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "core-js": "^3.3.2", "jquery": "^3.4.1", "popper.js": "^1.16.0", + "ramda": "^0.26.1", "vue": "^2.6.10", "vuex": "^3.1.2" }, diff --git a/src/App.vue b/src/App.vue index cbd4a7c..7ed4c2d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,11 @@
- +
@@ -11,15 +15,17 @@ diff --git a/src/components/Table.vue b/src/components/Table.vue index b957484..de9b234 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -1,23 +1,59 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 7a1fa64..953122c 100644 --- a/src/main.js +++ b/src/main.js @@ -9,10 +9,10 @@ import 'bootstrap/dist/js/bootstrap.min.js'; // fontawesome import { library } from '@fortawesome/fontawesome-svg-core'; -import { faPlus, faCheckCircle, faEdit, faTrash, faCat, faSyncAlt } from '@fortawesome/free-solid-svg-icons'; +import { faPlus, faCheckCircle, faEdit, faTrash, faCat, faSyncAlt, faSort, faSortUp, faSortDown } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; -library.add(faPlus, faCheckCircle, faEdit, faTrash, faCat, faSyncAlt); +library.add(faPlus, faCheckCircle, faEdit, faTrash, faCat, faSyncAlt, faSort, faSortUp, faSortDown); Vue.component('font-awesome-icon', FontAwesomeIcon); diff --git a/src/store/index.js b/src/store/index.js index ede6c69..280edb9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -7,7 +7,15 @@ export default new Vuex.Store({ state: { events: ['35c3', 'camp19', '36c3'], activeEvent: '36c3', - loadedItems: [] + loadedItems: [ + { uid: 1, description: 'sleeping bag', box: 7, image: 41 }, + { uid: 2, description: 'tent', box: 7, image: 23 }, + { uid: 3, description: 'chest', box: 7, image: 52 }, + { uid: 4, description: 'power supply black', box: 5, image: 62 }, + { uid: 5, description: 'pullover yellow "pesthörnchen"', box: 5, image: 84 }, + { uid: 6, description: '"blue black second skin"', box: 6, image: 72 }, + { uid: 7, description: '"the bike blog" bottle orange', box: 6, image: 71 } + ] }, mutations: { changeEvent(state, event) {