bundle css, import tabulator in filter component, import vue in Phrases Plugin

This commit is contained in:
Harald Bamberger
2024-04-08 09:13:42 +02:00
parent d2f19350b4
commit 9268395215
4 changed files with 41 additions and 9 deletions
+1
View File
@@ -15,6 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { TabulatorFull as Tabulator } from 'tabulator-tables';
import {CoreFilterAPIs} from './API.js';
import {CoreRESTClient} from '../../RESTClient.js';
import {CoreFetchCmpt} from '../../components/Fetch.js';
+5 -3
View File
@@ -1,4 +1,6 @@
const categories = Vue.reactive({});
import { reactive, computed } from 'vue';
const categories = reactive({});
const loadingModules = {};
function extractCategory(obj, category) {
@@ -35,7 +37,7 @@ const phrasen = {
},
t_ref(category, phrase, params) {
console.warn('depricated');
return Vue.computed(() => this.t(category, phrase, params));
return computed(() => this.t(category, phrase, params));
},
t(category, phrase, params) {
if (params === undefined && (
@@ -49,7 +51,7 @@ const phrasen = {
console.error('invalid input', category, phrase, params);
return '';
}
let val = Vue.computed(() => {
let val = computed(() => {
if (!categories[category])
return '';
return getValueForLoadedPhrase(category, phrase, params);