abstracttext icon indicating copy to clipboard operation
abstracttext copied to clipboard

Editing with vue

Open arthurpsmith opened this issue 4 years ago • 3 comments

Note right now this requires one of the 1.35 Mediawiki versions; copy "Dockerfile.unreleased" to "Dockerfile" and repeat the "docker build" command to get a Mediawiki version based on the latest "master" branch.

Once it's up and running, when viewing a Z object page there should be a "New edit" tab, to the right of "View history"; click that to enter the new editor mode; it should show the type (Z1K1), labels descriptions etc. (Z1K3-Z1K5) and then any additional keys below - all editable! Also a copy of the current zobject is displayed at the bottom (for now for debugging purposes, this could be prettier!) Submit should update the zobject within Mediawiki. Note that it does NOT update the file stored in eneyj/data so there may be a discrepancy when you return to the display depending on where various parts of that are run from.

arthurpsmith avatar Jun 23 '20 18:06 arthurpsmith

Unfortunately the flux in the Vue component parser in Mediawiki ResourceLoader has also broken the display of the language boxes - I've posted comments on what I hope is the relevant Phabricator ticket; I don't know a good workaround for that yet but I'll look into it if I don't get a good response from the Mediawiki devs.

arthurpsmith avatar Jun 23 '20 20:06 arthurpsmith

Note I've updated the main Dockerfile so the regular docker build should just work now with these changes for editing, no need to copy in a special Dockerfile. It is probably putting in way too many extensions (the default for these release candidates seems to be to include them all) so if we persist with this version for a while we may want to trim it to just the needed ones.

arthurpsmith avatar Jun 24 '20 20:06 arthurpsmith

Last commit fixed the language box problem. I think this is ready to use... :)

arthurpsmith avatar Jun 25 '20 14:06 arthurpsmith