Changeset 35743 for main/trunk/model-interfaces-dev/atea/ocr/src/main.js
- Timestamp:
- 2021-11-24T10:57:13+13:00 (2 years ago)
- Location:
- main/trunk/model-interfaces-dev/atea/ocr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/ocr
- Property svn:ignore
-
old new 1 1 dist 2 node_modules
-
- Property svn:ignore
-
main/trunk/model-interfaces-dev/atea/ocr/src/main.js
r35734 r35743 1 1 import { createApp } from "vue"; 2 2 import { createStore } from "vuex" 3 import Util from "./js/Util"4 3 import App from "./App.vue"; 5 4 import ToggleButton from "./components/ToggleButton.vue" … … 9 8 return { 10 9 /** @type {Map<String, String>} */ 11 translations: new Map(), 12 macronisedFileInfos: [], 13 directInput: null, 14 directOutput: [] 10 translations: new Map() 15 11 } 16 12 }, … … 18 14 setTranslations(state, translations) { 19 15 state.translations = translations; 20 },21 pushFileInfo(state, fileInfo) {22 state.macronisedFileInfos.push({23 id: Util.generateUuid(),24 ...fileInfo25 });26 },27 setDirectInput(state, input) {28 state.directInput = input;29 },30 setDirectOutput(state, output) {31 state.directOutput = output;32 16 } 33 17 } … … 48 32 /* eslint-disable no-undef */ 49 33 if (typeof gs !== "undefined" && gs.text && gs.text.atea && gs.text.atea.ocr) { 50 for (const key in gs.text.atea ) {51 translations.set(key, gs.text.atea [key]);34 for (const key in gs.text.atea.ocr) { 35 translations.set(key, gs.text.atea.ocr[key]); 52 36 } 53 37
Note:
See TracChangeset
for help on using the changeset viewer.