This commit is contained in:
cupcakearmy 2021-05-02 12:31:32 +02:00
parent 802886fc08
commit 67d29dab2e
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
7 changed files with 19 additions and 8 deletions

View File

@ -1,6 +1,7 @@
import axios from 'axios'
import { dev } from '$app/env'
const base = axios.create({ baseURL: 'http://localhost:5000' })
const base = axios.create({ baseURL: dev ? 'http://localhost:5000' : undefined })
export type Note = {
contents: string

View File

@ -3,10 +3,10 @@
import { create } from '$lib/api'
import { getKeyFromString, encrypt } from '$lib/crypto'
import Button from './ui/Button.svelte'
import Switch from './ui/Switch.svelte'
import TextArea from './ui/TextArea.svelte'
import TextInput from './ui/TextInput.svelte'
import Button from '$lib/ui/Button.svelte'
import Switch from '$lib/ui/Switch.svelte'
import TextArea from '$lib/ui/TextArea.svelte'
import TextInput from '$lib/ui/TextInput.svelte'
let note: Note = {
contents: 'secret',

View File

@ -1,6 +1,6 @@
<script lang="ts">
import '../app.css'
import Header from '$lib/Header/index.svelte'
import Header from '$lib/views/Header/index.svelte'
</script>
<svelte:head>

View File

@ -39,6 +39,16 @@
you are welcomed to check & audit the
<a href="https://github.com/cupcakearmy/cryptgeon">source code</a>.
</p>
<p>
<br />
<b>▶ attributions</b>
<br />
<small>
icons made by <a href="https://www.freepik.com" title="Freepik">freepik</a> from
<a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>
</small>
</p>
</section>
<style>

View File

@ -1,9 +1,9 @@
<script context="module" lang="ts">
export const prerender = true;
export const prerender = true
</script>
<script lang="ts">
import Create from '$lib/Create.svelte';
import Create from '$lib/views/Create.svelte'
</script>
<Create />