+
+
+ apps
+
+
(
@@ -113,6 +125,10 @@ function toggleMiniMap() {
isMiniMapShown.value = !isMiniMapShown.value;
}
+function handleAutoArrange(ev: MouseEvent) {
+ emit("autoArrange");
+}
+
function handleRenderOffsetChange(offset: typeof props.renderOffset) {
emit("changeRenderOffset", offset);
}
@@ -190,7 +206,7 @@ onUnmounted(() => {
overflow: hidden;
color: var(--builderSecondaryTextColor);
border: 1px solid var(--builderSeparatorColor);
- width: 230px;
+ width: 260px;
}
.bar {
@@ -198,12 +214,23 @@ onUnmounted(() => {
background: var(--builderBackgroundColor);
}
+.autoArranger {
+ min-height: 36px;
+ min-width: 40px;
+ flex: 0 0 40px;
+ display: flex;
+ border-right: 1px solid var(--builderSeparatorColor);
+ align-items: center;
+ justify-content: center;
+}
+
.zoomer {
flex: 1 0 auto;
display: flex;
padding: 4px;
gap: 4px;
align-items: center;
+ justify-content: center;
}
.zoomer .zoomLevelInput {
diff --git a/src/writer/command_line.py b/src/writer/command_line.py
index a460fc39..69cb198c 100644
--- a/src/writer/command_line.py
+++ b/src/writer/command_line.py
@@ -1,6 +1,5 @@
import os
import shutil
-import sys
from typing import Optional
import click
@@ -29,11 +28,11 @@ def run(path: str, host: str, port: Optional[int], enable_jobs_api: bool):
abs_path = os.path.abspath(path)
if wf_project.is_project(path) is False and \
wf_project.can_create_project(path) is True:
- raise click.ClickException(f"There’s no Writer Framework project at this location, create a new one with `writer create {path}`")
+ raise click.ClickException(f"There's no Writer Framework project at this location, create a new one with `writer create {path}`")
if wf_project.is_project(path) is False and \
wf_project.can_create_project(path) is False:
- raise click.ClickException(f"There’s no Writer Framework project at this location : {abs_path}")
+ raise click.ClickException(f"There's no Writer Framework project at this location : {abs_path}")
writer.serve.serve(
abs_path, mode="run", port=port, host=host, enable_server_setup=True, enable_jobs_api=enable_jobs_api)
@@ -43,7 +42,7 @@ def run(path: str, host: str, port: Optional[int], enable_jobs_api: bool):
@click.option('--port', default=None, help="Port to run the app on")
@click.option('--enable-remote-edit', help="Set this flag to allow non-local requests in edit mode.", is_flag=True)
@click.option('--enable-server-setup', help="Set this flag to enable server setup hook in edit mode.", is_flag=True)
-@click.option("--no-interactive", help="Set the flask to ask the app to run without asking anything to the user", is_flag=True)
+@click.option("--no-interactive", help="Set this flag to run the app without asking anything to the user.", is_flag=True)
@click.option("--enable-jobs-api", help="Set this flag to enable the Jobs API, allowing you to execute jobs without user interaction.", is_flag=True)
@click.argument('path')
def edit(