Drop querystring package
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2023-04-18 01:11:33 +02:00
parent 6a9f3e5cec
commit b0874cecda
5 changed files with 1 additions and 82 deletions

50
package-lock.json generated
View File

@ -11,7 +11,6 @@
"merge": "^2.1.1",
"portal-vue": "^2.1.7",
"postcss-import": "^14.0.1",
"query-string": "^7.0.0",
"svg-sprite": "^2.0.2",
"v-tooltip": "^2.1.3",
"vue-toasted": "^1.1.28",
@ -4331,14 +4330,6 @@
}
}
},
"node_modules/decode-uri-component": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz",
"integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==",
"engines": {
"node": ">=0.10"
}
},
"node_modules/deep-is": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
@ -5222,14 +5213,6 @@
"node": ">=8"
}
},
"node_modules/filter-obj": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz",
"integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/finalhandler": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
@ -8261,23 +8244,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/query-string": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.3.tgz",
"integrity": "sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==",
"dependencies": {
"decode-uri-component": "^0.2.2",
"filter-obj": "^1.1.0",
"split-on-first": "^1.0.0",
"strict-uri-encode": "^2.0.0"
},
"engines": {
"node": ">=6"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/querystring": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz",
@ -9121,14 +9087,6 @@
"node": ">= 6"
}
},
"node_modules/split-on-first": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz",
"integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==",
"engines": {
"node": ">=6"
}
},
"node_modules/stable": {
"version": "0.1.8",
"resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz",
@ -9181,14 +9139,6 @@
"xtend": "^4.0.0"
}
},
"node_modules/strict-uri-encode": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz",
"integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==",
"engines": {
"node": ">=4"
}
},
"node_modules/string_decoder": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",

View File

@ -31,7 +31,6 @@
"merge": "^2.1.1",
"portal-vue": "^2.1.7",
"postcss-import": "^14.0.1",
"query-string": "^7.0.0",
"svg-sprite": "^2.0.2",
"v-tooltip": "^2.1.3",
"vue-toasted": "^1.1.28",

View File

@ -18,11 +18,7 @@
</template>
<script>
import mergesQueryString from '../mixins/mergesQueryString.js';
export default {
mixins: [mergesQueryString],
props: {
only: {
required: true,
@ -37,7 +33,7 @@ export default {
},
methods: {
goto(page) {
this.$inertia.visit(this.qs({page: page.page}), {
this.$inertia.visit(window.location.pathname + '?page=' + page.page, {
only: this.only,
preserveState: this.preserve,
});

View File

@ -52,7 +52,6 @@
<script>
import VLink from './_VLink.vue';
import {debounce} from 'lodash';
import mergesQueryString from '../mixins/mergesQueryString.js';
export default {
data: function () {
@ -66,7 +65,6 @@ export default {
VNotification: () => import('../components/VNotification.vue'),
VLink,
},
mixins: [mergesQueryString],
computed: {
filterMenu() {

View File

@ -1,24 +0,0 @@
import queryString from 'query-string';
export default {
methods: {
qs(merge) {
var c = queryString.parse(window.location.search);
var m = { ...c, ...merge };
var mn = {};
Object.keys(m).forEach((k) => {
if (m[k] !== null) {
mn[k] = m[k];
}
});
var merged = queryString.stringify(mn);
return window.location.pathname + (merged ? '?'+merged : '');
}
}
};