Merge branch 'staging/maintenance' into maintenance
This commit is contained in:
commit
7a124d1861
12 files changed
+66
-44
No files matched your search
@@ -18,10 +18,10 @@ from octoprint.util.version import (
|
||||
)
|
||||
|
||||
SENTRY_URL_SERVER = (
|
||||
"https://a12e10f3ca4b418dba3ed99c1d220d14@o118517.ingest.sentry.io/1373987"
|
||||
"https://4f9abc3158334309ad3c22f6693ee6e7@o118517.ingest.sentry.io/1373987"
|
||||
)
|
||||
SENTRY_URL_COREUI = (
|
||||
"https://988f6e4854ee49188df51642ab576346@o118517.ingest.sentry.io/1374096"
|
||||
"https://ef731a61e7a146228b720c54e21c554c@o118517.ingest.sentry.io/1374096"
|
||||
)
|
||||
|
||||
SETTINGS_DEFAULTS = {
|
||||
|
||||
@@ -1944,6 +1944,8 @@ class Server:
|
||||
global assets
|
||||
global pluginManager
|
||||
|
||||
from octoprint.server.util.webassets import MemoryManifest # noqa: F401
|
||||
|
||||
util.flask.fix_webassets_filtertool()
|
||||
|
||||
base_folder = self._settings.getBaseFolder("generated")
|
||||
@@ -1955,7 +1957,8 @@ class Server:
|
||||
|
||||
for entry, recreate in (
|
||||
("webassets", True),
|
||||
(".webassets-cache", False), # no longer used, but clean up just in case
|
||||
# no longer used, but clean up just in case
|
||||
(".webassets-cache", False),
|
||||
(".webassets-manifest.json", False),
|
||||
):
|
||||
path = os.path.join(base_folder, entry)
|
||||
@@ -2042,7 +2045,7 @@ class Server:
|
||||
# few seconds for regeneration in development, if it means we can get rid of
|
||||
# a whole monkey patch and in internal use of pickle with non-tamperproof files
|
||||
assets.cache = False
|
||||
assets.manifest = "json:.webassets-manifest.json"
|
||||
assets.manifest = "memory"
|
||||
|
||||
UpdaterType = type(util.flask.SettingsCheckUpdater)(
|
||||
util.flask.SettingsCheckUpdater.__name__,
|
||||
|
||||
@@ -6,6 +6,7 @@ import gzip
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import threading
|
||||
from urllib import parse as urlparse
|
||||
|
||||
import webassets.filter.cssrewrite.urlpath as urlpath
|
||||
@@ -14,6 +15,7 @@ from webassets.filter import Filter
|
||||
from webassets.filter.cssrewrite.base import PatternRewriter
|
||||
from webassets.filter.rjsmin import rjsmin
|
||||
from webassets.merge import BaseHunk, MemoryHunk
|
||||
from webassets.version import Manifest
|
||||
|
||||
|
||||
def replace_url(source_url, output_url, url):
|
||||
@@ -207,3 +209,19 @@ class JsPluginBundle(Bundle):
|
||||
(hunk, lambda x: x.replace("\n", "\n ")),
|
||||
MemoryHunk(_PLUGIN_BUNDLE_WRAPPER_SUFFIX.format(plugin=self.plugin)),
|
||||
)
|
||||
|
||||
|
||||
class MemoryManifest(Manifest):
|
||||
id = "memory"
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.manifest = {}
|
||||
self._lock = threading.RLock()
|
||||
|
||||
def remember(self, bundle, ctx, version):
|
||||
with self._lock:
|
||||
self.manifest[bundle.output] = version
|
||||
|
||||
def query(self, bundle, ctx):
|
||||
with self._lock:
|
||||
return self.manifest.get(bundle.output, None)
|
||||
Binary file not shown.
@@ -5,7 +5,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OctoPrint 1.8.0\n"
|
||||
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
|
||||
"POT-Creation-Date: 2022-03-15 19:27+0100\n"
|
||||
"POT-Creation-Date: 2022-03-28 14:13+0200\n"
|
||||
"PO-Revision-Date: 2021-08-04 11:01+0200\n"
|
||||
"Last-Translator: Gina Häußge <gina@octoprint.org>\n"
|
||||
"Language: de\n"
|
||||
@@ -4661,7 +4661,7 @@ msgstr "Aus"
|
||||
#: src/octoprint/static/js/app/helpers.js:793
|
||||
#: src/octoprint/static/js/app/viewmodels/access.js:324
|
||||
#: src/octoprint/static/js/app/viewmodels/access.js:656
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:187
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:188
|
||||
msgid "Are you sure?"
|
||||
msgstr "Bist Du sicher?"
|
||||
|
||||
@@ -4804,21 +4804,21 @@ msgstr "Gruppe \"%(name)s\" bearbeiten"
|
||||
msgid "You are about to delete the group \"%(name)s\"."
|
||||
msgstr "Du bist im Begriff die Gruppe\"%(name)s\" zu löschen."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:47
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:48
|
||||
#: src/octoprint/templates/sidebar/connection.jinja2:17
|
||||
msgid "Connect"
|
||||
msgstr "Verbinden"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:48
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:200
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:49
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:201
|
||||
msgid "Disconnect"
|
||||
msgstr "Trennen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:52
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:53
|
||||
msgid "No serial port found"
|
||||
msgstr "Keine serielle Schnittstelle gefunden"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:188
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:189
|
||||
msgid ""
|
||||
"<p><strong>You are about to disconnect from the printer while a print is "
|
||||
"in progress.</strong></p><p>Disconnecting while a print is in progress "
|
||||
@@ -4833,11 +4833,11 @@ msgstr ""
|
||||
"Versuch, OctoPrint neuzustarten oder erneut mit dem Drucker zu verbinden "
|
||||
"den Druck unterbrechen.<p>"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:196
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:197
|
||||
msgid "Are you sure you want to disconnect from the printer?"
|
||||
msgstr "Bist Du sicher, dass du die Verbindung zum Drucker trennen willst?"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:199
|
||||
#: src/octoprint/static/js/app/viewmodels/connection.js:200
|
||||
msgid "Stay Connected"
|
||||
msgstr "Verbunden bleiben"
|
||||
|
||||
@@ -6962,8 +6962,8 @@ msgid ""
|
||||
"By checking this you'll disable OctoPrint warning you if no serial ports "
|
||||
"to connect to were found."
|
||||
msgstr ""
|
||||
"Wenn du das auswählst, wird OctoPrint dich nicht warnen, wenn keine seriellen "
|
||||
"Ports zum Verbinden gefunden werden konnten."
|
||||
"Wenn du das auswählst, wird OctoPrint dich nicht warnen, wenn keine "
|
||||
"seriellen Ports zum Verbinden gefunden werden konnten."
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:110
|
||||
msgid "Serial logging"
|
||||
|
||||
Reference in new issue
Block a user