Changeset 35770
- Timestamp:
- 2021-12-08T13:26:51+13:00 (2 years ago)
- Location:
- main/trunk/model-interfaces-dev/atea/ocr
- Files:
-
- 2 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/ocr/src/components/EditPage.vue
r35762 r35770 10 10 <div class="image-panel"> 11 11 <div class="image-container" :style="{ transform: transformString }"> 12 <img v-if="rotateMode" src=" images/rotate-arrow.svg" class="rotate-handle rotate-tl" @mousedown="allowRotation = true" draggable="false" />13 <img v-if="rotateMode" src=" images/rotate-arrow.svg" class="rotate-handle rotate-tr" @mousedown="allowRotation = true" draggable="false" />14 <img v-if="rotateMode" src=" images/rotate-arrow.svg" class="rotate-handle rotate-bl" @mousedown="allowRotation = true" draggable="false" />15 <img v-if="rotateMode" src=" images/rotate-arrow.svg" class="rotate-handle rotate-br" @mousedown="allowRotation = true" draggable="false" />12 <img v-if="rotateMode" src="../assets/rotate-arrow.svg" class="rotate-handle rotate-tl" @mousedown="allowRotation = true" draggable="false" /> 13 <img v-if="rotateMode" src="../assets/rotate-arrow.svg" class="rotate-handle rotate-tr" @mousedown="allowRotation = true" draggable="false" /> 14 <img v-if="rotateMode" src="../assets/rotate-arrow.svg" class="rotate-handle rotate-bl" @mousedown="allowRotation = true" draggable="false" /> 15 <img v-if="rotateMode" src="../assets/rotate-arrow.svg" class="rotate-handle rotate-br" @mousedown="allowRotation = true" draggable="false" /> 16 16 17 17 <table v-if="rotateMode" class="rotate-guide" :style="{ transform: transformStringInverted }"> … … 230 230 }, 231 231 async closeAndSave() { 232 const Jimp= await import("jimp/es");232 const { default: Jimp } = await import("jimp/es"); 233 233 234 234 const buffer = Buffer.from(this.imageBuffer); -
main/trunk/model-interfaces-dev/atea/ocr/src/js/OcrService.js
r35769 r35770 74 74 /** @type {String} The URL to which query POST requests should be made. */ 75 75 if (process.env.NODE_ENV !== "production") { 76 this. queryUrl = "//localhost:8383/gs3-atea-ocr/";76 this.rootQueryUrl = "//localhost:8383/gs3-atea-ocr/"; 77 77 } 78 78 else { 79 this. queryUrl = "/gs3-atea-ocr/tesseract";79 this.rootQueryUrl = "/gs3-atea-ocr/"; 80 80 } 81 81 } … … 88 88 async run(images) 89 89 { 90 const queryUrl = this. queryUrl + "tesseract";90 const queryUrl = this.rootQueryUrl + "tesseract"; 91 91 92 92 try … … 135 135 async getThresholdedImage(key) 136 136 { 137 const queryUrl = this. queryUrl + `image?key=${key}`;137 const queryUrl = this.rootQueryUrl + `image?key=${key}`; 138 138 139 139 try -
main/trunk/model-interfaces-dev/atea/ocr/vue.config.js
r35734 r35770 5 5 */ 6 6 module.exports = { 7 // publicPath: "interfaces/atea/ocr/dist", 8 filenameHashing: false, // Allows us to easily setup direct links to the bundles in ocr.xsl. You may want to change this for production in order to help with caching 7 filenameHashing: false, // Allows us to easily setup direct links to the bundles in macron-restoration.xsl. You may want to change this for production in order to help with caching 8 publicPath: process.env.NODE_ENV === 'production' 9 ? '/greenstone3/interfaces/atea/ocr/dist' 10 : '/', 9 11 10 12 chainWebpack: config => {
Note:
See TracChangeset
for help on using the changeset viewer.