Skip to content

Commit dc74215

Browse files
committed
unslop
1 parent 560753f commit dc74215

11 files changed

Lines changed: 3 additions & 62 deletions

File tree

apps/docs/app/assets/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
@theme {
55
--font-sans: "Geist", sans-serif;
6-
--font-mono: "Geist Pixel Square", monospace;
6+
--font-mono: "Geist Pixel Line", monospace;
77
}
88

99
:root {

apps/docs/app/plugins/vercel.client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export default defineNuxtPlugin(() => {
2121
path: route.path
2222
})
2323
})
24-
// On navigation to a new page
2524
nuxtApp.hooks.hook('page:finish', () => {
2625
pageview({
2726
route: route.matched[0]?.path || route.path,

apps/playground/app/components/playground/NavigationTabs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function selectSection(sectionId: string) {
2828
]"
2929
@click="selectSection(section.id)"
3030
>
31-
<UIcon v-if="section.icon" :name="section.icon" class="w-4 h-4" />
31+
<UIcon v-if="section.icon" :name="section.icon" class="size-4" />
3232
{{ section.label }}
3333
</button>
3434
</div>

apps/playground/app/components/playground/StatusIndicator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ const config = computed(() => {
3434
<UIcon
3535
:name="config.icon"
3636
:class="[config.color, config.animate]"
37-
class="w-4 h-4"
37+
class="size-4"
3838
/>
3939
</template>

apps/playground/app/composables/useTestConfig.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,18 @@ import type { TestConfig, TestSection } from '~/config/tests.config'
44
export function useTestConfig() {
55
const sections = computed(() => testConfig.sections)
66

7-
/**
8-
* Get a section by ID
9-
*/
107
const getSection = (id: string): TestSection | undefined => {
118
return sections.value.find(s => s.id === id)
129
}
1310

14-
/**
15-
* Get a test by section ID and test ID
16-
*/
1711
const getTest = (sectionId: string, testId: string): TestConfig | undefined => {
1812
const section = getSection(sectionId)
1913
return section?.tests.find(t => t.id === testId)
2014
}
2115

22-
/**
23-
* Get all tests across all sections
24-
*/
25-
const getAllTests = computed(() => {
26-
return sections.value.flatMap(section => section.tests)
27-
})
28-
2916
return {
3017
sections,
3118
getSection,
3219
getTest,
33-
getAllTests,
3420
}
3521
}

apps/playground/app/composables/useTestRunner.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,18 @@ export function useTestRunner(testId: string, options?: UseTestRunnerOptions) {
1313
const error = computed(() => state.getError(testId))
1414
const status = computed(() => state.getStatus(testId))
1515

16-
/**
17-
* Execute a test function
18-
*/
1916
async function execute(fn?: () => Promise<any> | void) {
2017
state.setStatus(testId, 'loading')
2118
state.clearResults(testId)
2219

2320
try {
2421
let response
2522

26-
// If endpoint is provided, fetch it
2723
if (options?.endpoint) {
2824
response = await $fetch(options.endpoint, {
2925
method: options.method || 'GET',
3026
})
3127
} else if (fn) {
32-
// Otherwise execute the provided function
3328
response = await fn()
3429
}
3530

@@ -47,9 +42,6 @@ export function useTestRunner(testId: string, options?: UseTestRunnerOptions) {
4742
}
4843
}
4944

50-
/**
51-
* Reset test state
52-
*/
5345
function reset() {
5446
state.clearTest(testId)
5547
}

apps/playground/app/composables/useTestState.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,12 @@ const state = ref<Record<string, TestState>>({})
99

1010
export function useTestState() {
1111
return {
12-
/**
13-
* Get the current status of a test
14-
*/
1512
getStatus: (id: string) => state.value[id]?.status ?? 'idle',
1613

17-
/**
18-
* Get the result of a test
19-
*/
2014
getResult: (id: string) => state.value[id]?.result,
2115

22-
/**
23-
* Get the error of a test
24-
*/
2516
getError: (id: string) => state.value[id]?.error,
2617

27-
/**
28-
* Set the status of a test
29-
*/
3018
setStatus: (id: string, status: TestState['status']) => {
3119
if (!state.value[id]) {
3220
state.value[id] = { status, timestamp: Date.now() }
@@ -36,9 +24,6 @@ export function useTestState() {
3624
}
3725
},
3826

39-
/**
40-
* Set the result of a test
41-
*/
4227
setResult: (id: string, result: any) => {
4328
if (!state.value[id]) {
4429
state.value[id] = { status: 'success', result, timestamp: Date.now() }
@@ -47,9 +32,6 @@ export function useTestState() {
4732
}
4833
},
4934

50-
/**
51-
* Set the error of a test
52-
*/
5335
setError: (id: string, error: any) => {
5436
if (!state.value[id]) {
5537
state.value[id] = { status: 'error', error, timestamp: Date.now() }
@@ -58,33 +40,19 @@ export function useTestState() {
5840
}
5941
},
6042

61-
/**
62-
* Clear results for a test (keep status)
63-
*/
6443
clearResults: (id: string) => {
6544
if (state.value[id]) {
6645
state.value[id].result = undefined
6746
state.value[id].error = undefined
6847
}
6948
},
7049

71-
/**
72-
* Clear a test entirely
73-
*/
7450
clearTest: (id: string) => {
7551
delete state.value[id]
7652
},
7753

78-
/**
79-
* Reset all tests
80-
*/
8154
resetAll: () => {
8255
state.value = {}
8356
},
84-
85-
/**
86-
* Get all test states (for debugging/history)
87-
*/
88-
getAllStates: () => computed(() => state.value),
8957
}
9058
}

apps/playground/server/api/test/critical/important.get.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Critical path - should always be logged due to path pattern matching
21
export default defineEventHandler((event) => {
32
const log = useLogger(event)
43

apps/playground/server/api/test/service-override.get.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export default defineEventHandler((event) => {
2-
// Test explicit service override via useLogger second parameter
32
const log = useLogger(event, 'custom-service')
43

54
log.set({

packages/evlog/src/error.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export class EvlogError extends Error {
6565
}
6666

6767
override toString(): string {
68-
// Use colors only on server (terminal)
6968
const useColors = isServer()
7069

7170
const red = useColors ? colors.red : ''

0 commit comments

Comments
 (0)