File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @okcode/desktop" ,
3- "version" : " 0.0.6 " ,
3+ "version" : " 0.0.7 " ,
44 "private" : true ,
55 "main" : " dist-electron/main.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " okcodes" ,
3- "version" : " 0.0.6 " ,
3+ "version" : " 0.0.7 " ,
44 "license" : " MIT" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @okcode/web" ,
3- "version" : " 0.0.6 " ,
3+ "version" : " 0.0.7 " ,
44 "private" : true ,
55 "type" : " module" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { FileCodeIcon } from "lucide-react";
44import { FileViewShell } from "~/components/file-view/FileViewShell" ;
55import { ProjectSubpageShell } from "~/components/review/ProjectSubpageShell" ;
66
7- interface FileViewSearch {
7+ export interface FileViewSearch {
88 cwd ?: string ;
99 path ?: string ;
1010}
@@ -26,9 +26,17 @@ function FileViewRouteView() {
2626}
2727
2828export const Route = createFileRoute ( "/_chat/file-view" ) ( {
29- validateSearch : ( search : Record < string , unknown > ) : FileViewSearch => ( {
30- cwd : typeof search . cwd === "string" ? search . cwd : undefined ,
31- path : typeof search . path === "string" ? search . path : undefined ,
32- } ) ,
29+ validateSearch : ( search : Record < string , unknown > ) : FileViewSearch => {
30+ const validatedSearch : FileViewSearch = { } ;
31+
32+ if ( typeof search . cwd === "string" ) {
33+ validatedSearch . cwd = search . cwd ;
34+ }
35+ if ( typeof search . path === "string" ) {
36+ validatedSearch . path = search . path ;
37+ }
38+
39+ return validatedSearch ;
40+ } ,
3341 component : FileViewRouteView ,
3442} ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @okcode/contracts" ,
3- "version" : " 0.0.6 " ,
3+ "version" : " 0.0.7 " ,
44 "private" : true ,
55 "files" : [
66 " dist"
You can’t perform that action at this time.
0 commit comments