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 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 = { export type Note = {
contents: string contents: string

View File

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

View File

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

View File

@ -39,6 +39,16 @@
you are welcomed to check & audit the you are welcomed to check & audit the
<a href="https://github.com/cupcakearmy/cryptgeon">source code</a>. <a href="https://github.com/cupcakearmy/cryptgeon">source code</a>.
</p> </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> </section>
<style> <style>

View File

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