mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 10:51:57 +01:00
Run oxfmt across repo, add format script and docs
Add .oxfmtignore to skip generated bindings and wasm-pack output. Add npm format script, update DEVELOPMENT.md for Vite+ toolchain, and format all non-generated files with oxfmt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,35 +1,35 @@
|
||||
import type { PullResult, PushResult } from '@yaakapp-internal/git';
|
||||
import { showToast } from '../../lib/toast';
|
||||
import type { PullResult, PushResult } from "@yaakapp-internal/git";
|
||||
import { showToast } from "../../lib/toast";
|
||||
|
||||
export function handlePushResult(r: PushResult) {
|
||||
switch (r.type) {
|
||||
case 'needs_credentials':
|
||||
showToast({ id: 'push-error', message: 'Credentials not found', color: 'danger' });
|
||||
case "needs_credentials":
|
||||
showToast({ id: "push-error", message: "Credentials not found", color: "danger" });
|
||||
break;
|
||||
case 'success':
|
||||
showToast({ id: 'push-success', message: r.message, color: 'success' });
|
||||
case "success":
|
||||
showToast({ id: "push-success", message: r.message, color: "success" });
|
||||
break;
|
||||
case 'up_to_date':
|
||||
showToast({ id: 'push-nothing', message: 'Already up-to-date', color: 'info' });
|
||||
case "up_to_date":
|
||||
showToast({ id: "push-nothing", message: "Already up-to-date", color: "info" });
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
export function handlePullResult(r: PullResult) {
|
||||
switch (r.type) {
|
||||
case 'needs_credentials':
|
||||
showToast({ id: 'pull-error', message: 'Credentials not found', color: 'danger' });
|
||||
case "needs_credentials":
|
||||
showToast({ id: "pull-error", message: "Credentials not found", color: "danger" });
|
||||
break;
|
||||
case 'success':
|
||||
showToast({ id: 'pull-success', message: r.message, color: 'success' });
|
||||
case "success":
|
||||
showToast({ id: "pull-success", message: r.message, color: "success" });
|
||||
break;
|
||||
case 'up_to_date':
|
||||
showToast({ id: 'pull-nothing', message: 'Already up-to-date', color: 'info' });
|
||||
case "up_to_date":
|
||||
showToast({ id: "pull-nothing", message: "Already up-to-date", color: "info" });
|
||||
break;
|
||||
case 'diverged':
|
||||
case "diverged":
|
||||
// Handled by mutation callback before reaching here
|
||||
break;
|
||||
case 'uncommitted_changes':
|
||||
case "uncommitted_changes":
|
||||
// Handled by mutation callback before reaching here
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user