Skip to content
Snippets Groups Projects
Commit 5a44bee8 authored by dcz's avatar dcz
Browse files

"platform: linux/amd64" not supported in earlier docker versions

Import small dataset as default setup
Refresh entry list on filter apply
parent afe27b1d
Branches
Tags
No related merge requests found
......@@ -19,7 +19,7 @@ services:
- ./.datastore/postgresql:/var/lib/postgresql/data
backend:
platform: linux/amd64
#platform: linux/amd64
container_name: shellvalier-backend
image: shellvalier-developer:latest
build:
......
......@@ -412,9 +412,9 @@ function initialize_main_form() {
var submit = main_form.find('input[type="submit"]');
submit.prop('disabled', true);
event.preventDefault();
clear_results();
// clear_results();
clear_info();
show_entry_list_spinner();
// show_entry_list_spinner();
clear_form_errors(main_form);
var data = { 'forms' : serialize_forms(main_form) };
$.ajax({
......
......@@ -23,8 +23,18 @@
canViewAssignment: has_permission("users.view_assignment"),
}
},
methods: {
setup() {
setup_entries_list({
table: this.$refs.table,
lexicalUnitSelected: (entryId, lexicalUnitId) => { this.$emit('lexicalUnitSelected', entryId, lexicalUnitId); },
selectEntryId: this.initialEntryId
});
}
},
emits: ['lexicalUnitSelected'],
mounted () {
this.$.appContext.config.globalProperties.$entries_list = this;
setup_entries_list({
table: this.$refs.table,
lexicalUnitSelected: (entryId, lexicalUnitId) => { this.$emit('lexicalUnitSelected', entryId, lexicalUnitId); },
......
......@@ -168,6 +168,7 @@ export default {
}
},
mounted () {
this.$.appContext.config.globalProperties.$lexical_unit_display = this;
Split(['#main-frames-pane', '#vue-examples'], {
direction: 'vertical',
sizes: [75, 25],
......
......@@ -24,4 +24,7 @@ window.update_entries = function () {
app.mount('#vue-app');
mounted = true;
}
if(app._context.config.globalProperties.$entries_list) {
app._context.config.globalProperties.$entries_list.setup();
}
}
......@@ -34,9 +34,9 @@ def import_tei():
logging.basicConfig(filename='import.log', level=logging.DEBUG)
#xml_file = os.path.join(BASE_DIR, 'data', 'walenty', 'walenty_20200926_smaller.xml')
xml_file = os.path.join(BASE_DIR, 'data', 'walenty', 'walenty_20210913_smaller.xml')
# xml_file = os.path.join(BASE_DIR, 'data', 'walenty', 'walenty_20210913_smallest.xml')
xml_file = os.path.join(BASE_DIR, 'data', 'walenty', 'walenty_20210913.xml')
#xml_file = os.path.join(BASE_DIR, 'data', 'walenty', 'walenty_20210913_smaller.xml')
xml_file = os.path.join(BASE_DIR, 'data', 'walenty', 'walenty_20210913_smallest.xml')
#xml_file = os.path.join(BASE_DIR, 'data', 'walenty', 'walenty_20210913.xml')
xml_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), xml_file)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment