Skip to content

Commit 2fdef7c

Browse files
committed
Rename post_message utility to post-message and update all import references
1 parent 746e73b commit 2fdef7c

11 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎apps/editor/src/views/panel/frontend/Home/Home.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Scrollable as UiScrollable } from '@ui/components/editor/panel/Scrollab
44
import { Timeline as UiTimeline } from '@ui/components/editor/panel/Timeline'
55
import { ModeButton as UiModeButton } from '@ui/components/editor/panel/ModeButton'
66
import cn from 'classnames'
7-
import { post_message } from '../utils/post_message'
7+
import { post_message } from '../utils/post-message'
88
import { Checkpoint, FrontendMessage } from '@/views/panel/types/messages'
99
import { Responses as UiResponses } from '@ui/components/editor/panel/Responses'
1010
import { ResponseHistoryItem } from '@shared/types/response-history-item'

‎apps/editor/src/views/panel/frontend/Main/Main.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
SelectionState
1313
} from '@/views/panel/types/messages'
1414
import { ApiToolConfiguration } from '@/views/panel/types/messages'
15-
import { post_message } from '../utils/post_message'
15+
import { post_message } from '../utils/post-message'
1616
import { Configurations as UiConfigurations } from '@ui/components/editor/panel/Configurations'
1717
import { ResponseHistoryItem } from '@shared/types/response-history-item'
1818

‎apps/editor/src/views/panel/frontend/Panel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { MODE } from '../types/main-view-mode'
88
import { Home } from './Home'
99
import styles from './Panel.module.scss'
1010
import cn from 'classnames'
11-
import { post_message } from './utils/post_message'
11+
import { post_message } from './utils/post-message'
1212
import { ResponsePreview as UiResponsePreview } from '@ui/components/editor/panel/ResponsePreview'
1313
import { Modal as UiModal } from '@ui/components/editor/panel/modals/Modal'
1414
import { ProgressModal as UiProgressModal } from '@ui/components/editor/panel/modals/ProgressModal'

‎apps/editor/src/views/panel/frontend/hooks/panel/use-editor-sync.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
FrontendMessage,
55
SelectionState
66
} from '../../../types/messages'
7-
import { post_message } from '../../utils/post_message'
7+
import { post_message } from '../../utils/post-message'
88

99
export const use_editor_sync = (vscode: any) => {
1010
const [currently_open_file_path, set_currently_open_file_path] = useState<

‎apps/editor/src/views/panel/frontend/hooks/panel/use-instructions.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useEffect } from 'react'
22
import { BackendMessage, InstructionsState } from '../../../types/messages'
3-
import { post_message } from '../../utils/post_message'
3+
import { post_message } from '../../utils/post-message'
44
import { Mode, MODE } from '../../../types/main-view-mode'
55
import { WebPromptType, ApiPromptType } from '@shared/types/prompt-types'
66

‎apps/editor/src/views/panel/frontend/hooks/panel/use-panel.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import { Checkpoint } from '../../../types/messages'
88
import { Mode, MODE } from '../../../types/main-view-mode'
99
import { ApiPromptType, WebPromptType } from '@shared/types/prompt-types'
10-
import { post_message } from '../../utils/post_message'
10+
import { post_message } from '../../utils/post-message'
1111
import { use_instructions } from './use-instructions'
1212

1313
export const use_panel = (vscode: any) => {

‎apps/editor/src/views/panel/frontend/hooks/panel/use-preset-editing.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from 'react'
22
import { Preset } from '@shared/types/preset'
33
import { BackendMessage } from '../../../types/messages'
4-
import { post_message } from '../../utils/post_message'
4+
import { post_message } from '../../utils/post-message'
55

66
export const use_preset_editing = (vscode: any) => {
77
const [updating_preset, set_updating_preset] = useState<Preset>()

‎apps/editor/src/views/panel/frontend/hooks/panel/use-preview-manager.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useEffect } from 'react'
22
import { BackendMessage } from '../../../types/messages'
3-
import { post_message } from '../../utils/post_message'
3+
import { post_message } from '../../utils/post-message'
44
import { ApiConfiguration } from '@shared/types/response-history-item'
55
import { ItemInPreview } from '@shared/types/file-in-preview'
66

‎apps/editor/src/views/panel/frontend/hooks/panel/use-response-history.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from 'react'
22
import { BackendMessage } from '../../../types/messages'
33
import { ResponseHistoryItem } from '@shared/types/response-history-item'
4-
import { post_message } from '../../utils/post_message'
4+
import { post_message } from '../../utils/post-message'
55

66
export const use_response_history = (vscode: any) => {
77
const [response_history, set_response_history] = useState<

‎apps/editor/src/views/panel/frontend/hooks/use-tasks.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from 'react'
22
import { Task } from '@shared/types/task'
33
import { BackendMessage } from '../../types/messages'
4-
import { post_message } from '../utils/post_message'
4+
import { post_message } from '../utils/post-message'
55

66
export const use_tasks = (vscode: any) => {
77
const [tasks, set_tasks] = useState<Record<string, Task[]>>({})

0 commit comments

Comments
 (0)