Remove ImportDialog and all manual credential management. The browser handles 401 challenges natively for same-origin fetch requests — it shows its own credential prompt, retries, and caches the result for the session. No JS-level auth code is needed. - api.js: remove authHeader() and all credentials parameters - store.js: remove credentials field - ImportDialog.js: deleted - AppShell.js: remove showImport/openImport/onMounted dialog machinery; pass importOnLoad through to PaneCP - PaneCP.js: inline doImport() (was in ImportDialog); auto-triggers on mount when importOnLoad is true; shows inline import error on failure - StatusPoller.js: remove credentials arg from fetchStatus() - style.css: remove .se-import-dialog and .se-overlay blocks
29 lines
589 B
JavaScript
29 lines
589 B
JavaScript
import { reactive } from 'vue';
|
|
|
|
export const store = reactive({
|
|
scoreModel: null,
|
|
rawScoreText: null,
|
|
focusPath: [],
|
|
synthesisStatus: null,
|
|
isDirty: false,
|
|
errorMessage: '',
|
|
exportLog: [],
|
|
|
|
setFocus(path) {
|
|
this.focusPath = path;
|
|
},
|
|
|
|
pushFocus(node) {
|
|
const idx = this.focusPath.indexOf(node);
|
|
if (idx !== -1) {
|
|
this.focusPath = this.focusPath.slice(0, idx + 1);
|
|
} else {
|
|
this.focusPath = [...this.focusPath, node];
|
|
}
|
|
},
|
|
|
|
markDirty() {
|
|
this.isDirty = true;
|
|
},
|
|
});
|