diff --git a/api/pytest.ini b/api/pytest.ini index 4ab907403..9be63d353 100644 --- a/api/pytest.ini +++ b/api/pytest.ini @@ -3,3 +3,4 @@ DJANGO_SETTINGS_MODULE=config.settings.test # -- recommended but optional: python_files = tests.py test_*.py *_tests.py +testpatsh = tests diff --git a/front/package.json b/front/package.json index 5bec01602..3eb5201b2 100644 --- a/front/package.json +++ b/front/package.json @@ -23,7 +23,8 @@ "vue-resource": "^1.3.4", "vue-router": "^2.3.1", "vuedraggable": "^2.14.1", - "vuex": "^3.0.1" + "vuex": "^3.0.1", + "vuex-persistedstate": "^2.4.2" }, "devDependencies": { "autoprefixer": "^6.7.2", diff --git a/front/src/cache/index.js b/front/src/cache/index.js deleted file mode 100644 index e039ee788..000000000 --- a/front/src/cache/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import logger from '@/logging' -export default { - get (key, d) { - let v = localStorage.getItem(key) - if (v === null) { - return d - } else { - try { - return JSON.parse(v).value - } catch (e) { - logger.default.error('Removing unparsable cached value for key ' + key) - this.remove(key) - return d - } - } - }, - set (key, value) { - return localStorage.setItem(key, JSON.stringify({value: value})) - }, - - remove (key) { - return localStorage.removeItem(key) - }, - - clear () { - localStorage.clear() - } - -} diff --git a/front/src/components/Sidebar.vue b/front/src/components/Sidebar.vue index d6a253922..a315aab19 100644 --- a/front/src/components/Sidebar.vue +++ b/front/src/components/Sidebar.vue @@ -62,7 +62,7 @@ {{ track.artist.name }} -