diff --git a/.eslintrc.cjs b/.eslintrc.cjs index e3db14c..3901e0a 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -74,6 +74,7 @@ module.exports = { 'no-unused-vars': 'off', 'no-trailing-spaces' : 'off', 'vue/multi-word-component-names' : 'off', + 'vue/no-v-text-v-html-on-component' : 'off', // allow debugger during development only 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' diff --git a/README.md b/README.md index bc1bfbf..c3858d4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ HFSPlay stock management - [ ] editable categories - [x] qrcode generation - [x] fix search to be persistent -- [ ] fix comments to be more legible +- [x] fix comments to be more legible - [ ] fix comments to allow resolution - [ ] batch print QR codes - [x] fix tables pagination diff --git a/src/css/app.scss b/src/css/app.scss index 973ee37..0e33eec 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -1,7 +1,7 @@ // app global css in SCSS form @font-face { font-family: geist; - src: url(../font/Geist-var.ttf) format('truetype'); + src: url(font/Geist-var.ttf) format('truetype'); } // declare a class which applies it diff --git a/src/pages/StockItem.vue b/src/pages/StockItem.vue index d022428..52d6668 100644 --- a/src/pages/StockItem.vue +++ b/src/pages/StockItem.vue @@ -1,10 +1,12 @@ @@ -220,7 +241,9 @@ export default { username: null, qrCodeDataUrl: null, showQr: false, - item: {} + item: {}, + showHistory: false, + selectedHistory: null, } }, computed: { @@ -341,8 +364,8 @@ export default { console.error('Error compressing image:', error) } }, - getImageUrl (history, image) { - return this.$pb.files.getURL(history, image, { thumb: '300x300f' }) + getImageUrl (history, image, thumb = false) { + return this.$pb.files.getURL(history, image, { thumb: thumb ? '300x300f' : null }) }, loadItem () { let item = this.stock.find(item => {