mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 16:26:28 +00:00
cleanup
This commit is contained in:
parent
802886fc08
commit
67d29dab2e
@ -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
|
||||||
|
@ -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',
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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 />
|
||||||
|
Loading…
Reference in New Issue
Block a user