Skip to content

Commit 4357847

Browse files
committed
tweaks
1 parent e7c025e commit 4357847

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

frontend/components/Editor.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,8 @@ export class Editor extends Component {
753753
}
754754
new_notebook = applyPatches(old_state ?? state.notebook, patches)
755755
} catch (exception) {
756-
/** @type {String} Example: `"a.b[2].c"` */
757-
const failing_path = String(exception).match(".*'(.*)'.*")?.[1].replace(/\//gi, ".") ?? exception
756+
/** Example: `"a.b[2].c"` */
757+
const failing_path = String(exception).match(".*'(.*)'.*")?.[1].replace(/\//gi, ".") ?? String(exception)
758758
const path_value = _.get(this.state.notebook, failing_path, "Not Found")
759759
console.log(String(exception).match(".*'(.*)'.*")?.[1].replace(/\//gi, ".") ?? exception, failing_path, typeof failing_path)
760760
const ignore = should_ignore_patch_error(failing_path)
@@ -1519,13 +1519,6 @@ ${t("t_key_autosave_description")}`
15191519
setup_mathjax()
15201520
}
15211521

1522-
if (old_state.notebook.nbpkg?.restart_recommended_msg !== new_state.notebook.nbpkg?.restart_recommended_msg) {
1523-
console.warn(`New restart recommended message: ${new_state.notebook.nbpkg?.restart_recommended_msg}`)
1524-
}
1525-
if (old_state.notebook.nbpkg?.restart_required_msg !== new_state.notebook.nbpkg?.restart_required_msg) {
1526-
console.warn(`New restart required message: ${new_state.notebook.nbpkg?.restart_required_msg}`)
1527-
}
1528-
15291522
if (old_state.notebook.metadata?.frontmatter?.language !== new_state.notebook.metadata?.frontmatter?.language) {
15301523
this.updateLang()
15311524
}

frontend/components/Popup.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ const PkgPopup = ({ notebook, recent_event, clear_recent_event, disable_input })
257257
alert(t("t_pkg_currently_busy"))
258258
} else {
259259
if (confirm(t("t_pkg_update_packages_description"))) {
260-
console.warn("Pkg.updating!")
261260
pluto_actions.send("pkg_update", {}, { notebook_id: notebook.notebook_id })
262261
}
263262
}

frontend/lang/nederlands_nl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"je doet het supergoed!"
8787
],
8888
"t_package_could_not_load": "<p>Het pakket <strong>{{package}}.jl</strong> kon niet laden omdat de initialisatie mis ging.</p><p>Oh jee! Dit kan je proberen:</p>",
89-
"t_package_could_not_load_things_you_could_try": "<ul><li>Hertsart de notebook.</li><li>Probeer een andere Julia-versie.</li><li>Stuur een bericht naar de ontwikkelaars van {{package}}.jl over deze foutmelding.</li></ul>",
89+
"t_package_could_not_load_things_you_could_try": "<ul><li>Herstart de notebook.</li><li>Probeer een andere Julia-versie.</li><li>Stuur een bericht naar de ontwikkelaars van {{package}}.jl over deze foutmelding.</li></ul>",
9090
"t_might_find_info_in_pkg_log": "Je vindt misschien nuttige informatie in het installatie-logboek van dit pakket:",
9191
"t_edit_frontmatter": "",
9292
"t_start_presentation": "Start presentatie",

0 commit comments

Comments
 (0)