Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
haxgun committed Dec 3, 2024
1 parent 21aa07d commit ca35521
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 19 deletions.
1 change: 0 additions & 1 deletion frontend/src/components/Overlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import IconValory from '@/components/icons/IconValory.vue'
</script>


<template>
<div class="overlay">
<div class="logo">
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/components/ui/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ defineProps(['modelValue', 'placeholder'])
<template>
<div class="input">
<label class="label_input" for="text-input">
<input :value="modelValue" :placeholder="placeholder" id="text-input" type="text" @input="$emit('update:modelValue', $event.target.value)" />
<input
:value="modelValue"
:placeholder="placeholder"
id="text-input"
type="text"
@input="$emit('update:modelValue', $event.target.value)"
/>
</label>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"submit": "Submit",
"random": "Click to substitute an example of Riot ID."
},
"hdevKey" : {
"hdevKey": {
"title": "HDEV API Key",
"description": "Something text here..."
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const router = createRouter({
{
path: '/:pathMatch(.*)*',
component: () => import('@/views/PageNotFoundView.vue')
},
}
]
})

Expand Down
24 changes: 12 additions & 12 deletions frontend/src/views/EditorView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const handleSubmit = async () => {
const response = await fetch('http://localhost:8000/overlay', {
method: 'POST',
headers: {
'Content-type': 'application/json',
'Content-type': 'application/json'
},
body: JSON.stringify(form.value),
body: JSON.stringify(form.value)
})
if (!response.ok) {
console.error('Ошибка при отправке!')
Expand Down Expand Up @@ -75,16 +75,16 @@ const handleSubmit = async () => {
</div>
</div>
</div>
<!-- <div class="editor__container__body">-->
<!-- <div class="editor__settings">-->
<!-- <div class="editor__settings__header">-->
<!-- <h1 class="title">{{ $t('editor.customization.title') }}</h1>-->
<!-- <p class="description">-->
<!-- {{ $t('editor.customization.description') }}-->
<!-- </p>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="editor__container__body">-->
<!-- <div class="editor__settings">-->
<!-- <div class="editor__settings__header">-->
<!-- <h1 class="title">{{ $t('editor.customization.title') }}</h1>-->
<!-- <p class="description">-->
<!-- {{ $t('editor.customization.description') }}-->
<!-- </p>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<Button class="editor__button" type="submit">Submit</Button>
</form>
</div>
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/views/OverlayView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
import { ref, onMounted } from 'vue'
import Overlay from '@/components/Overlay.vue'
import { onMounted, ref } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
Expand Down Expand Up @@ -28,7 +28,7 @@ async function fetchOverlayData() {
console.log(nickname)
console.log(tag)
} catch (error) {
console.error("Ошибка при загрузке данных:", error)
console.error('Ошибка при загрузке данных:', error)
}
}
Expand All @@ -46,7 +46,6 @@ onMounted(() => {
<Overlay />
</template>


<style lang="scss">
:root {
background: none !important;
Expand Down

0 comments on commit ca35521

Please sign in to comment.