🎉 initial commit
This commit is contained in:
parent
7c2154ad02
commit
4ca10e1db4
|
@ -181,3 +181,5 @@ docs/_book
|
||||||
# TODO: where does this rule come from?
|
# TODO: where does this rule come from?
|
||||||
test/
|
test/
|
||||||
|
|
||||||
|
/package-lock.json
|
||||||
|
/yarn.lock
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"2gua.rainbow-brackets",
|
||||||
|
"christian-kohler.npm-intellisense",
|
||||||
|
"remimarsal.prettier-now",
|
||||||
|
"lokalise.i18n-ally",
|
||||||
|
"bradlc.vscode-tailwindcss",
|
||||||
|
"johnsoncodehk.volar",
|
||||||
|
],
|
||||||
|
"unwantedRecommendations": [
|
||||||
|
"antfu.i18n-ally",
|
||||||
|
"octref.vetur"
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Lauf für Kaya! - Selfservice</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="dark:bg-gray-900 text-black dark:text-white">
|
||||||
|
<div id="app"></div>
|
||||||
|
<script type="module" src="/src/main.js"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"name": "@lfk/selfservice",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vite build"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"got": "^11.8.1",
|
||||||
|
"redaxios": "^0.4.1",
|
||||||
|
"toastify-js": "^1.9.3",
|
||||||
|
"vue": "^3.0.5"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vitejs/plugin-vue": "^1.0.4",
|
||||||
|
"@vue/compiler-sfc": "^3.0.5",
|
||||||
|
"autoprefixer": "^10.2.4",
|
||||||
|
"postcss": "^8.2.6",
|
||||||
|
"tailwindcss": "^2.0.3",
|
||||||
|
"vite": "^2.0.0-beta.7",
|
||||||
|
"vite-plugin-windicss": "^0.1.16"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
module.exports = {
|
||||||
|
plugins: {
|
||||||
|
tailwindcss: {},
|
||||||
|
autoprefixer: {},
|
||||||
|
},
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
|
@ -0,0 +1,42 @@
|
||||||
|
<template>
|
||||||
|
<header class="body-font">
|
||||||
|
<div class="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">
|
||||||
|
<a class="flex title-font font-medium items-center mb-4 md:mb-0">
|
||||||
|
<img src="/favicon.ico" alt />
|
||||||
|
<span class="ml-3 text-xl">Lauf für Kaya! - Selfservice</span>
|
||||||
|
</a>
|
||||||
|
<!-- <nav
|
||||||
|
class="md:ml-auto flex flex-wrap items-center text-base justify-center"
|
||||||
|
>
|
||||||
|
<a class="mr-5 hover">First Link</a>
|
||||||
|
<a class="mr-5 hover">Second Link</a>
|
||||||
|
<a class="mr-5 hover">Third Link</a>
|
||||||
|
<a class="mr-5 hover">Fourth Link</a>
|
||||||
|
</nav>-->
|
||||||
|
<!-- <button
|
||||||
|
class="inline-flex items-center bg-gray-800 border-0 py-1 px-3 focus:outline-none hover:bg-gray-700 rounded text-base mt-4 md:mt-0"
|
||||||
|
>
|
||||||
|
Button
|
||||||
|
<svg
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
class="w-4 h-4 ml-1"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path d="M5 12h14M12 5l7 7-7 7"></path>
|
||||||
|
</svg>
|
||||||
|
</button>-->
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<LoginForm />
|
||||||
|
<Footer />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import HelloWorld from "./components/HelloWorld.vue";
|
||||||
|
import LoginForm from "./components/LoginForm.vue";
|
||||||
|
import Footer from "./components/Footer.vue";
|
||||||
|
</script>
|
Binary file not shown.
After Width: | Height: | Size: 6.7 KiB |
|
@ -0,0 +1,29 @@
|
||||||
|
<template>
|
||||||
|
<footer class="text-gray-400 bg-gray-900 body-font">
|
||||||
|
<div class="container px-5 py-8 mx-auto flex items-center sm:flex-row flex-col">
|
||||||
|
<p class="text-sm text-gray-400 sm:ml-4 sm:pl-4 sm:py-2 sm:mt-0 mt-4">
|
||||||
|
Lauf für Kaya! Selfservice - Copyright © 2021 + proudly powered by
|
||||||
|
<a
|
||||||
|
class="underline"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener,noreferrer"
|
||||||
|
href="https://odit.services"
|
||||||
|
>ODIT.Services</a>
|
||||||
|
</p>
|
||||||
|
<span class="inline-flex sm:ml-auto sm:mt-0 mt-4 justify-center sm:justify-start">
|
||||||
|
<a
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener,noreferrer"
|
||||||
|
href="/impressum/"
|
||||||
|
class="ml-3 text-gray-400 underline"
|
||||||
|
>Impressum</a>
|
||||||
|
<a
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener,noreferrer"
|
||||||
|
href="/datenschutz/"
|
||||||
|
class="ml-3 text-gray-400 underline"
|
||||||
|
>Datenschutzerklärung</a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</template>
|
|
@ -0,0 +1,30 @@
|
||||||
|
<template>
|
||||||
|
<h1>{{ msg }}</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://vitejs.dev/guide/features.html" target="_blank">Vite Documentation</a> |
|
||||||
|
<a href="https://v3.vuejs.org/" target="_blank">Vue 3 Documentation</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<button @click="state.count++">count is: {{ state.count }}</button>
|
||||||
|
<p>
|
||||||
|
Edit
|
||||||
|
<code>components/HelloWorld.vue</code> to test hot module replacement.
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { defineProps, reactive } from 'vue'
|
||||||
|
|
||||||
|
defineProps({
|
||||||
|
msg: String
|
||||||
|
})
|
||||||
|
|
||||||
|
const state = reactive({ count: 0 })
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
a {
|
||||||
|
color: #42b983;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,112 @@
|
||||||
|
<template>
|
||||||
|
<div class="min-h-screen flex items-center justify-center">
|
||||||
|
<div class="max-w-md w-full py-12 px-6">
|
||||||
|
<!-- <img class="mx-auto h-8 w-auto" src="/img/tailwindui-logo.svg" alt="" /> -->
|
||||||
|
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-center">Login</h1>
|
||||||
|
<p
|
||||||
|
class="mx-auto leading-relaxed text-base text-center"
|
||||||
|
>Bitte anmelden...</p>
|
||||||
|
<div class="mt-5">
|
||||||
|
<div class="rounded-md shadow-sm">
|
||||||
|
<div>
|
||||||
|
<input
|
||||||
|
aria-label="E-Mail Adresse"
|
||||||
|
name="email"
|
||||||
|
type="email"
|
||||||
|
required
|
||||||
|
class="border-gray-300 placeholder-gray-500 appearance-none rounded-none relative block w-full px-3 py-2 border text-gray-900 rounded-t-md focus:outline-none focus:shadow-outline-blue focus:border-blue-300 focus:z-10 sm:text-sm"
|
||||||
|
placeholder="E-Mail Adresse"
|
||||||
|
v-model="mail"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="-mt-px relative">
|
||||||
|
<input
|
||||||
|
aria-label="Passwort"
|
||||||
|
name="password"
|
||||||
|
type="password"
|
||||||
|
required
|
||||||
|
class="border-gray-300 placeholder-gray-500 appearance-none rounded-none relative block w-full px-3 py-2 border text-gray-900 rounded-b-md focus:outline-none focus:shadow-outline-blue focus:border-blue-300 focus:z-10 sm:text-sm"
|
||||||
|
placeholder="Passwort"
|
||||||
|
/>
|
||||||
|
<div class="absolute inset-y-0 right-0 pr-3 flex items-center text-sm">
|
||||||
|
<a href="./reset" class="text-gray-900 underline">Passwort vergessen?</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mt-5">
|
||||||
|
<button
|
||||||
|
v-if="loading === false"
|
||||||
|
@click="login"
|
||||||
|
type="submit"
|
||||||
|
class="relative block w-full py-2 px-3 border border-transparent rounded-md font-semibold bg-gray-800 hover:bg-gray-700 focus:bg-gray-900 focus:outline-none focus:shadow-outline sm:text-sm text-white"
|
||||||
|
>
|
||||||
|
<span class="absolute left-0 inset-y pl-3">
|
||||||
|
<svg class="h-5 w-5 text-gray-500" fill="currentColor" viewBox="0 0 20 20">
|
||||||
|
<path
|
||||||
|
fill-rule="evenodd"
|
||||||
|
d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
Log in
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
v-if="loading === true"
|
||||||
|
type="submit"
|
||||||
|
class="relative block w-full py-2 px-3 border border-transparent rounded-md font-semibold bg-yellow-500 sm:text-sm text-black"
|
||||||
|
>
|
||||||
|
<span class="absolute left-0 inset-y pl-3">
|
||||||
|
<svg class="h-5 w-5 text-gray-500" fill="currentColor" viewBox="0 0 20 20">
|
||||||
|
<path
|
||||||
|
fill-rule="evenodd"
|
||||||
|
d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
Logging in...
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mt-6">
|
||||||
|
<div class="relative">
|
||||||
|
<div class="absolute inset-0 flex items-center">
|
||||||
|
<div class="w-full border-t border-gray-300"></div>
|
||||||
|
</div>
|
||||||
|
<div class="relative flex justify-center text-sm">
|
||||||
|
<span class="px-2 bg-white dark:bg-gray-900">Sie haben noch keinen Account?</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mt-6">
|
||||||
|
<a
|
||||||
|
href="./register"
|
||||||
|
class="block w-full text-center py-2 px-3 border border-gray-300 rounded-md font-medium hover:border-gray-400 focus:outline-none focus:border-gray-400 sm:text-sm"
|
||||||
|
>Account erstellen</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref } from "vue";
|
||||||
|
import axios from "redaxios";
|
||||||
|
import Toastify from "toastify-js";
|
||||||
|
|
||||||
|
let mail = ref("");
|
||||||
|
let loading = ref(false);
|
||||||
|
function login() {
|
||||||
|
console.log("ihi");
|
||||||
|
console.log(mail.value);
|
||||||
|
loading.value = true;
|
||||||
|
axios.get("").then((res) => {
|
||||||
|
console.log(res.data);
|
||||||
|
loading.value = false;
|
||||||
|
Toastify({
|
||||||
|
text: "This is a toast",
|
||||||
|
duration: 3000,
|
||||||
|
}).showToast();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,6 @@
|
||||||
|
import { createApp } from 'vue';
|
||||||
|
import App from './App.vue';
|
||||||
|
import 'windi.css';
|
||||||
|
import 'toastify-js/src/toastify.css';
|
||||||
|
|
||||||
|
createApp(App).mount('#app');
|
|
@ -0,0 +1,11 @@
|
||||||
|
module.exports = {
|
||||||
|
purge: [],
|
||||||
|
darkMode: "media", // or 'media' or 'class'
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
variants: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
plugins: [],
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
import vue from '@vitejs/plugin-vue';
|
||||||
|
import WindiCSS from 'vite-plugin-windicss';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {import('vite').UserConfig}
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
plugins: [ vue(), WindiCSS() ]
|
||||||
|
};
|
Loading…
Reference in New Issue