Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
release: SketchForge 1.0.5
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import type { WorkplaneWorkspaceSettings } from "@/types/sketchforge";
|
||||
import { formatMeasurementNumber, lengthDisplayUnit, millimetersToDisplay, normalizeScaleForUnits, parseMeasurementInput, scaleOptionsForUnits } from "@/lib/measurementUnits";
|
||||
import { DEFAULT_SNAP_GRID, DEFAULT_WORKPLANE_WORKSPACE, normalizeSnapGrid, normalizeWorkspaceSettings, workplaneSettingsFingerprint, workspaceHydrationSyncDecision } from "@/lib/workplaneSettings";
|
||||
import { canBeginShapeDrag, DEFAULT_SNAP_GRID, DEFAULT_WORKPLANE_WORKSPACE, normalizeSnapGrid, normalizeWorkspaceSettings, workplaneSettingsFingerprint, workspaceHydrationSyncDecision } from "@/lib/workplaneSettings";
|
||||
|
||||
describe("workplane settings helpers", () => {
|
||||
it("accepts known snap grid values and falls back for unknown values", () => {
|
||||
@@ -32,6 +32,7 @@ describe("workplane settings helpers", () => {
|
||||
showShadows: false,
|
||||
showGrid: false,
|
||||
cruiseShapes: false,
|
||||
selectBeforeMove: true,
|
||||
zoomSpeed: Infinity,
|
||||
units: "Bricks",
|
||||
scale: "1:10 (centimeters)",
|
||||
@@ -49,6 +50,7 @@ describe("workplane settings helpers", () => {
|
||||
showShadows: false,
|
||||
showGrid: false,
|
||||
cruiseShapes: false,
|
||||
selectBeforeMove: true,
|
||||
units: "Bricks",
|
||||
scale: "1:1 (studs)",
|
||||
accuracy: 3,
|
||||
@@ -61,6 +63,12 @@ describe("workplane settings helpers", () => {
|
||||
expect(normalizeWorkspaceSettings({ gridColor: "not-a-color" }).gridColor).toBe(DEFAULT_WORKPLANE_WORKSPACE.gridColor);
|
||||
});
|
||||
|
||||
it("can require selection before a shape starts moving", () => {
|
||||
expect(canBeginShapeDrag(false, false)).toBe(true);
|
||||
expect(canBeginShapeDrag(true, false)).toBe(false);
|
||||
expect(canBeginShapeDrag(true, true)).toBe(true);
|
||||
});
|
||||
|
||||
it("keeps scale options in the selected unit family", () => {
|
||||
expect(scaleOptionsForUnits("Metric (Default)")).toEqual(["1:1 (millimeters)", "1:10 (centimeters)", "1:1000 (meters)"]);
|
||||
expect(normalizeScaleForUnits("Metric (Default)", "1:100 (meters)")).toBe("1:1000 (meters)");
|
||||
|
||||
Reference in New Issue
Block a user