diff --git a/.gitignore b/.gitignore index dc24894..979299d 100644 --- a/.gitignore +++ b/.gitignore @@ -182,4 +182,5 @@ docs/_book test/ /package-lock.json -/yarn.lock \ No newline at end of file +/yarn.lock +/public/env.js \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ad93058 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +### Changelog + +All notable changes to this project will be documented in this file. Dates are displayed in UTC. + +#### 0.0.1 diff --git a/README.md b/README.md index ca13970..5eda5c2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ # @lfk/selfservice -runner selfservice portal \ No newline at end of file +runner selfservice portal + +## ⚡ Development +### Requirements +- Node.js v14.15.0 or newer +- yarn package manager >= v1.22.10 < 2 + +### Recommended Extensions +- will be automatically recommended via `./vscode/extensions.json` +- we also provide a config for i18n-ally in the `./vscode/` folder + +### Fastest Dev Environment +- You can install the [Remote - Containers](https://github.com/Microsoft/vscode-remote-release) extension and use all recommended extensions and editor settings via the provided `./devcontainer/` config + +## 🔨 environment config +- copy the `/public/env.sample.js` file to `/public/env.js` +- set the required environment variables + - `documentserver_key`: url to the [document server](https://git.odit.services/lfk/document-server) instance + - `baseurl`: url to the main instance + - see [@lfk/deployment](https://git.odit.services/lfk/deployment) for a complete deployment guide \ No newline at end of file diff --git a/index.html b/index.html index 8a98ae3..2e151b8 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@
+ diff --git a/package.json b/package.json index caeef94..d2cbc06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@odit/lfk-selfservice", - "version": "0.0.0", + "version": "0.1.0", "scripts": { "dev": "vite", "build": "vite build", @@ -8,6 +8,7 @@ }, "dependencies": { "got": "^11.8.2", + "marked": "^2.0.1", "redaxios": "^0.4.1", "toastify-js": "^1.9.3", "validator": "^13.5.2", @@ -19,13 +20,13 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^1.1.5", - "@vue/compiler-sfc": "^3.0.6", - "autoprefixer": "^10.2.4", - "postcss": "^8.2.6", - "release-it": "^14.4.1", - "tailwindcss": "^2.0.3", - "vite": "^2.0.3", - "vite-plugin-windicss": "^0.5.4" + "@vue/compiler-sfc": "^3.0.7", + "autoprefixer": "^10.2.5", + "postcss": "^8.2.8", + "release-it": "^14.5.0", + "tailwindcss": "^2.0.4", + "vite": "^2.1.2", + "vite-plugin-windicss": "^0.9.11" }, "release-it": { "git": { diff --git a/public/env.sample.js b/public/env.sample.js new file mode 100644 index 0000000..1852851 --- /dev/null +++ b/public/env.sample.js @@ -0,0 +1,10 @@ +const config = { + // required + documentserver_key: '', + // required + baseurl: '', + // optional, will fallback to /imprint + url_imprint: '', + // optional, will fallback to /privacy + url_privacy: '' +}; diff --git a/public/imprint_en.md b/public/imprint_en.md new file mode 100644 index 0000000..12e65a1 --- /dev/null +++ b/public/imprint_en.md @@ -0,0 +1 @@ +TODO: \ No newline at end of file diff --git a/public/privacy_en.md b/public/privacy_en.md new file mode 100644 index 0000000..12e65a1 --- /dev/null +++ b/public/privacy_en.md @@ -0,0 +1 @@ +TODO: \ No newline at end of file diff --git a/src/assets/empty_laps.svg b/src/assets/empty_laps.svg new file mode 100644 index 0000000..17ed002 --- /dev/null +++ b/src/assets/empty_laps.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/EnvError.vue b/src/components/EnvError.vue new file mode 100644 index 0000000..c326305 --- /dev/null +++ b/src/components/EnvError.vue @@ -0,0 +1,29 @@ + \ No newline at end of file diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 168f42f..96b88f6 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -14,16 +14,26 @@ Impressum Datenschutzerklärung + \ No newline at end of file diff --git a/src/components/Imprint.vue b/src/components/Imprint.vue new file mode 100644 index 0000000..8fa9046 --- /dev/null +++ b/src/components/Imprint.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/src/components/Login.vue b/src/components/Login.vue index ef0c89a..e1f680f 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -97,11 +97,8 @@ 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", diff --git a/src/components/LoginForm.vue b/src/components/LoginForm.vue index 9444c6e..49ed64b 100644 --- a/src/components/LoginForm.vue +++ b/src/components/LoginForm.vue @@ -97,11 +97,8 @@ 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", diff --git a/src/components/Privacy.vue b/src/components/Privacy.vue new file mode 100644 index 0000000..94394c8 --- /dev/null +++ b/src/components/Privacy.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/src/components/Profile.vue b/src/components/Profile.vue index d5d0718..fc7c8f1 100644 --- a/src/components/Profile.vue +++ b/src/components/Profile.vue @@ -1,115 +1,110 @@ \ No newline at end of file diff --git a/src/components/Register.vue b/src/components/Register.vue index 6d83529..99c8ba8 100644 --- a/src/components/Register.vue +++ b/src/components/Register.vue @@ -6,6 +6,11 @@ class="sm:text-3xl text-2xl font-medium title-font mb-4 text-center" >Lauf für Kaya! - {{ $t('registrieren') }}

{{ $t('register.register_now') }}

+

Organization: {{ state.org_name }}

+

Bürgerlauf

@@ -145,16 +182,40 @@
+
+ +
+
+ +
+
+
@@ -180,16 +241,38 @@