mirror of
https://github.com/open-webui/open-webui
synced 2025-03-04 19:38:54 +00:00
fix: codeblock
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
This commit is contained in:
parent
7a63947b94
commit
802f8809dd
@ -464,8 +464,8 @@
|
||||
onSave={() => {
|
||||
saveCode();
|
||||
}}
|
||||
onChange={(e) => {
|
||||
_code = e;
|
||||
onChange={(value) => {
|
||||
_code = value;
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
@ -88,14 +88,14 @@
|
||||
code={token?.text ?? ''}
|
||||
{attributes}
|
||||
{save}
|
||||
onCode={(e) => {
|
||||
dispatch('code', e);
|
||||
onCode={(value) => {
|
||||
dispatch('code', value);
|
||||
}}
|
||||
onSave={(e) => {
|
||||
dispatch('update', {
|
||||
raw: token.raw,
|
||||
oldContent: token.text,
|
||||
newContent: e
|
||||
newContent: value
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
@ -79,7 +79,7 @@
|
||||
});
|
||||
|
||||
_value = formattedCode;
|
||||
onChange({ value: _value });
|
||||
onChange(_value);
|
||||
await tick();
|
||||
|
||||
toast.success($i18n.t('Code formatted successfully'));
|
||||
@ -98,7 +98,7 @@
|
||||
EditorView.updateListener.of((e) => {
|
||||
if (e.docChanged) {
|
||||
_value = e.state.doc.toString();
|
||||
onChange({ value: _value });
|
||||
onChange(_value);
|
||||
}
|
||||
}),
|
||||
editorTheme.of([]),
|
||||
|
Loading…
Reference in New Issue
Block a user