Skip to content

Commit

Permalink
chore: Fix typo everywhere from zodius to zodios
Browse files Browse the repository at this point in the history
  • Loading branch information
alcroito committed Sep 24, 2023
1 parent 2c36584 commit 6615940
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion webclients/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "vite dev",
"apigen": "openapi-zod-client ../../crates/dyndns/generated/openapi.json -o ./src/generated/zodiusClient.ts --default-status auto-correct",
"apigen": "openapi-zod-client ../../crates/dyndns/generated/openapi.json -o ./src/generated/zodiosClient.ts --default-status auto-correct",
"build": "vite build",
"watch": "vite build -w",
"preview": "vite preview",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { api as zodiusClientDefault, createApiClient } from '../generated/zodiusClient';
import { api as zodiosClientDefault, createApiClient } from '../generated/zodiosClient';

const createClient = () => {
let zodiusClient = zodiusClientDefault;
let zodiosClient = zodiosClientDefault;
// Set in non-git-controlled .env.development file in the base dir of the web app
// pointing to http://localhost:8095/. Use for API requests when running
// vite dev.
if (import.meta.env.VITE_SERVER_API_BASE_URL) {
zodiusClient = createApiClient(import.meta.env.VITE_SERVER_API_BASE_URL);
zodiosClient = createApiClient(import.meta.env.VITE_SERVER_API_BASE_URL);
}
return zodiusClient;
return zodiosClient;
};

export const zodiusClient = createClient();
export const zodiosClient = createClient();
6 changes: 3 additions & 3 deletions webclients/svelte/src/stores/DomainRecordIpChangesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import axios from 'axios';
import { createQuery, QueryClient } from '@tanstack/svelte-query';
import { defer, delay, firstValueFrom, TimeoutError } from 'rxjs';
import type { z } from 'zod';
import type { schemas } from '../generated/zodiusClient';
import { zodiusClient } from '../services/zodius';
import type { schemas } from '../generated/zodiosClient';
import { zodiosClient } from '../services/zodios';

type DomainRecordIpChange = z.infer<typeof schemas.DomainRecordIpChange>;
type DomainRecordIpChanges = {
Expand All @@ -27,7 +27,7 @@ export class DomainRecordIpChangesStore {

private queryFn() {
const route = '/api/v1/domain_record_ip_changes';
const obs = defer(() => zodiusClient.get(route)).pipe(delay(500));
const obs = defer(() => zodiosClient.get(route)).pipe(delay(500));
const promise = firstValueFrom(obs);
return promise;
}
Expand Down

0 comments on commit 6615940

Please sign in to comment.