mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 05:59:50 +00:00
feat(app): better diff/code comments (#14621)
Co-authored-by: adamelmore <2363879+adamdottv@users.noreply.github.com> Co-authored-by: David Hill <iamdavidhill@gmail.com>
This commit is contained in:
parent
9a6bfeb782
commit
fc52e4b2d3
70 changed files with 6454 additions and 3151 deletions
|
|
@ -1,10 +0,0 @@
|
|||
import type { ValidComponent } from "solid-js"
|
||||
import { createSimpleContext } from "./helper"
|
||||
|
||||
const ctx = createSimpleContext<ValidComponent, { component: ValidComponent }>({
|
||||
name: "DiffComponent",
|
||||
init: (props) => props.component,
|
||||
})
|
||||
|
||||
export const DiffComponentProvider = ctx.provider
|
||||
export const useDiffComponent = ctx.use
|
||||
|
|
@ -2,9 +2,9 @@ import type { ValidComponent } from "solid-js"
|
|||
import { createSimpleContext } from "./helper"
|
||||
|
||||
const ctx = createSimpleContext<ValidComponent, { component: ValidComponent }>({
|
||||
name: "CodeComponent",
|
||||
name: "FileComponent",
|
||||
init: (props) => props.component,
|
||||
})
|
||||
|
||||
export const CodeComponentProvider = ctx.provider
|
||||
export const useCodeComponent = ctx.use
|
||||
export const FileComponentProvider = ctx.provider
|
||||
export const useFileComponent = ctx.use
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
export * from "./helper"
|
||||
export * from "./data"
|
||||
export * from "./diff"
|
||||
export * from "./file"
|
||||
export * from "./dialog"
|
||||
export * from "./i18n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue