mishig HF staff commited on
Commit
5705707
β€’
1 Parent(s): 8baea3c

Rename componentns to better names (#7)

Browse files
src/lib/components/{Playground/PlaygroundCode.svelte β†’ CodeSnippets.svelte} RENAMED
File without changes
src/lib/components/{Playground/PlaygroundOptions.svelte β†’ GenerationConfig.svelte} RENAMED
File without changes
src/lib/components/{Playground/PlaygroundTokenModal.svelte β†’ HFTokenModal.svelte} RENAMED
File without changes
src/lib/components/{Playground/PlaygroundMessage.svelte β†’ Message.svelte} RENAMED
File without changes
src/lib/components/{Playground/PlaygroundModelSelector.svelte β†’ ModelSelector.svelte} RENAMED
File without changes
src/lib/components/{Playground/PlaygroundModelSelectorV2.svelte β†’ ModelSelectorV2.svelte} RENAMED
File without changes
src/lib/components/{Playground/Playground.svelte β†’ Playground.svelte} RENAMED
@@ -1,15 +1,15 @@
1
  <script lang="ts">
2
- import PlaygroundCode from './PlaygroundCode.svelte';
3
  import {
4
  createHfInference,
5
  prepareRequestMessages,
6
  handleStreamingResponse,
7
  handleNonStreamingResponse
8
  } from './playgroundUtils';
9
- import PlaygroundMessage from '$lib/components/Playground/PlaygroundMessage.svelte';
10
- import PlaygroundOptions from '$lib/components/Playground/PlaygroundOptions.svelte';
11
- import PlaygroundTokenModal from './PlaygroundTokenModal.svelte';
12
- import PlaygroundModelSelector from './PlaygroundModelSelector.svelte';
13
  import { onDestroy, onMount } from 'svelte';
14
  import { type ModelEntry } from "@huggingface/hub";
15
  import { type ChatCompletionInputMessage } from "@huggingface/tasks";
 
1
  <script lang="ts">
2
+ import PlaygroundCode from './CodeSnippets.svelte';
3
  import {
4
  createHfInference,
5
  prepareRequestMessages,
6
  handleStreamingResponse,
7
  handleNonStreamingResponse
8
  } from './playgroundUtils';
9
+ import PlaygroundMessage from '$lib/components/Message.svelte';
10
+ import PlaygroundOptions from '$lib/components/GenerationConfig.svelte';
11
+ import PlaygroundTokenModal from './HFTokenModal.svelte';
12
+ import PlaygroundModelSelector from './ModelSelector.svelte';
13
  import { onDestroy, onMount } from 'svelte';
14
  import { type ModelEntry } from "@huggingface/hub";
15
  import { type ChatCompletionInputMessage } from "@huggingface/tasks";
src/lib/components/{Playground/playgroundUtils.ts β†’ playgroundUtils.ts} RENAMED
File without changes
src/routes/+page.svelte CHANGED
@@ -1,5 +1,5 @@
1
  <script lang="ts">
2
- import Playground from '$lib/components/Playground/Playground.svelte';
3
  </script>
4
 
5
  <Playground />
 
1
  <script lang="ts">
2
+ import Playground from '$lib/components/Playground.svelte';
3
  </script>
4
 
5
  <Playground />