-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete visual overhaul (still has some bugs)
- Loading branch information
Christoph Theiß
committed
May 7, 2021
1 parent
68843cc
commit 3db423b
Showing
11 changed files
with
440 additions
and
92 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import axios from "axios"; | ||
|
||
const API_URL = "http://127.0.0.1:5000"; | ||
|
||
export default { | ||
async asciify(formData) { | ||
const response = await axios.post(`${API_URL}/api/asciify`, formData); | ||
let asciifiedImageURL = "data:img/jpeg;base64," + response.data; | ||
return asciifiedImageURL; | ||
}, | ||
async getFonts() { | ||
const response = await axios.get(`${API_URL}/api/fonts`); | ||
let fonts = response.data["fonts"]; | ||
return fonts; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<template> | ||
<div class="container"> | ||
<h2>{{ title }}</h2> | ||
<v-row class="mx-auto" dense> | ||
<v-col class="col-6"> | ||
<v-sheet | ||
class="text-center d-flex align-center justify-space-between py-3 px-4" | ||
rounded | ||
:color="modelValue ? '#41b883' : '#53565d'" | ||
flat | ||
link | ||
@click="(event) => $emit('update:modelValue', true)" | ||
> | ||
<span>Enabled</span><v-icon color="#f5f6fa">fas fa-check</v-icon> | ||
</v-sheet> | ||
</v-col> | ||
<v-col class="col-6"> | ||
<v-sheet | ||
class="text-center d-flex align-center justify-space-between py-3 px-4" | ||
rounded | ||
:color="!modelValue ? '#41b883' : '#53565d'" | ||
flat | ||
link | ||
@click="(event) => $emit('update:modelValue', false)" | ||
> | ||
<span>Disabled</span><v-icon color="#f5f6fa">fas fa-times</v-icon> | ||
</v-sheet> | ||
</v-col> | ||
</v-row> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
title: { | ||
default: "", | ||
type: String, | ||
}, | ||
name: String, | ||
modelValue: { | ||
default: false, | ||
type: Boolean, | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.v-sheet { | ||
cursor: pointer; | ||
color: #f5f6fa; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.