Skip to content

Commit

Permalink
File renames
Browse files Browse the repository at this point in the history
  • Loading branch information
whaaaley committed Dec 21, 2024
1 parent df0a853 commit 6305e18
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/src/components/WeatherLocation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useNow } from '@vueuse/core'
import { computed, defineComponent, onMounted } from 'vue'
import { useEmoji } from '~/hooks/useEmoji'
import { weatherQueries } from '~/io/queries/index'
import { getWeatherEmoji } from '~/utils/getWeatherEmoji'
import { getWeatherEmoji } from '~/utils/emoji.utils'

export default defineComponent({
name: 'WeatherLocation',
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion client/src/io/queries/logStream.queries.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { type LogRequestSchema, logResponseSchema, messageSchema } from '$models/logStream.model'
import { makeRequest } from '~/io/streams/fetch.streams'
import { connect, disconnect } from '~/io/streams/sseStreams'
import { connect, disconnect } from '~/io/streams/sse.streams'

export type LogResponseSchema = z.infer<typeof logResponseSchema>
export type MessageSchema = z.infer<typeof messageSchema>

type NextFn = (data: unknown) => void

let lastNext: NextFn | undefined

export const connectLogs = async (next: NextFn) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fromEvent, lastValueFrom, map, of, pipe, switchMap, tap } from 'rxjs'
import { type ZodSchema } from 'zod'
import { prefixUrl } from '~/io/operators/request.operators'
import { logging, unmarshal, zod } from '~/io/operators/streamOperators'
import { logging, unmarshal, zod } from '~/io/operators/stream.operators'

type ConnectConfig = {
url: string
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion server/controllers/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { createEmojiController } from './emojiController.ts'
export { createEmojiController } from './emoji.controller.ts'
export { createLogStreamController } from './logStream.controller.ts'
export { createWeatherController } from './weather.controller.ts'
2 changes: 1 addition & 1 deletion server/controllers/logStream.controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getLogger } from '@logtape/logtape'
import { Context, ServerSentEvent, Status } from '@oak/oak'
import { createSaltedHash } from '../utils/hash.utils.ts'
import { createSaltedHash } from '../utils/hash.util.ts'
import { logRequestSchema } from '../models/logStream.model.ts'

const logger = getLogger(['app'])
Expand Down
2 changes: 1 addition & 1 deletion server/logging.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { configure, getConsoleSink } from '@logtape/logtape'
import { getLogStreamSink } from './sinks/logStreamSink.ts'
import { getLogStreamSink } from './sinks/logStream.sink.ts'

await configure({
sinks: {
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions server/middleware/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { corsMiddleware } from './corsMiddleware.ts'
export { errorMiddleware } from './errorMiddleware.ts'
export { loggerMiddleware } from './loggerMiddleware.ts'
export { spaRoutingMiddleware } from './spaRoutingMiddleware.ts'
export { staticFileMiddleware } from './staticFileMiddleware.ts'
export { corsMiddleware } from './cors.middleware.ts'
export { errorMiddleware } from './error.middleware.ts'
export { loggerMiddleware } from './logger.middleware.ts'
export { spaRoutingMiddleware } from './spaRouting.middleware.ts'
export { staticFileMiddleware } from './staticFile.middleware.ts'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6305e18

Please sign in to comment.