From 5b384487331eaf08031dfe438bb2affa31aafcbb Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 8 Jul 2024 11:17:47 +0100 Subject: feat(gui): runbooks that run (#2233) * add initial runbooks frontend * fix buttons, scroll, add shell support to editor * work * some tweaks * wip - run crate * functioning executable blocks * handle resizing, killing ptys * clear properly on stop * move terminal to its own component, handle lifecycle better * fix all build issues * ffs codespelll * update lockfile * clippy is needy once more * only build pty stuff on mac/linux * vendor pty handling into desktop * update lockfile --- ui/src/state/store.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/src/state/store.ts') diff --git a/ui/src/state/store.ts b/ui/src/state/store.ts index 21fbdf14..3a843d35 100644 --- a/ui/src/state/store.ts +++ b/ui/src/state/store.ts @@ -1,5 +1,5 @@ import { create } from "zustand"; -import { persist, createJSONStorage } from "zustand/middleware"; +import { persist } from "zustand/middleware"; import { parseISO } from "date-fns"; @@ -39,13 +39,15 @@ interface AtuinState { historyNextPage: (query?: string) => void; } -let state = (set, get): AtuinState => ({ +let state = (set: any, get: any): AtuinState => ({ user: DefaultUser, homeInfo: DefaultHomeInfo, aliases: [], vars: [], shellHistory: [], calendar: [], + + // @ts-ignore weekStart: new Intl.Locale(navigator.language).getWeekInfo().firstDay, refreshAliases: () => { -- cgit v1.3.1