Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
00a0c99f70 | |||
4bcbc67436 | |||
595735ad00 | |||
7fcb6a9fc3 | |||
8fb39276af | |||
a1b600df1c | |||
fe1bbc7816 | |||
7ae0081d69 |
187
.dockerignore
Normal file
187
.dockerignore
Normal file
@ -0,0 +1,187 @@
|
||||
# ---> Node
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# Snowpack dependency directory (https://snowpack.dev/)
|
||||
web_modules/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Microbundle cache
|
||||
.rpt2_cache/
|
||||
.rts2_cache_cjs/
|
||||
.rts2_cache_es/
|
||||
.rts2_cache_umd/
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
# Next.js build output
|
||||
.next
|
||||
out
|
||||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# public
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
# Stores VSCode versions used for testing VSCode extensions
|
||||
.vscode-test
|
||||
|
||||
# yarn v2
|
||||
.yarn/cache
|
||||
.yarn/unplugged
|
||||
.yarn/build-state.yml
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
# ---> Windows
|
||||
# Windows thumbnail cache files
|
||||
Thumbs.db
|
||||
Thumbs.db:encryptable
|
||||
ehthumbs.db
|
||||
ehthumbs_vista.db
|
||||
|
||||
# Dump file
|
||||
*.stackdump
|
||||
|
||||
# Folder config file
|
||||
[Dd]esktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Windows Installer files
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Windows shortcuts
|
||||
*.lnk
|
||||
|
||||
# ---> macOS
|
||||
# General
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Icon must end with two \r
|
||||
Icon
|
||||
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.com.apple.timemachine.donotpresent
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
# ---> Vue
|
||||
# gitignore template for Vue.js projects
|
||||
#
|
||||
# Recommended template: Node.gitignore
|
||||
|
||||
# TODO: where does this rule come from?
|
||||
docs/_book
|
||||
|
||||
# TODO: where does this rule come from?
|
||||
test/
|
||||
|
||||
/package-lock.json
|
||||
/yarn.lock
|
||||
/public/env.js
|
@ -2,7 +2,13 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
||||
|
||||
#### [1.0.0](https://git.odit.services/lfk/selfservice/compare/0.11.3...1.0.0)
|
||||
#### [1.0.1](https://git.odit.services/lfk/selfservice/compare/1.0.0...1.0.1)
|
||||
|
||||
- fix(container): Add dockeringore [`7fcb6a9`](https://git.odit.services/lfk/selfservice/commit/7fcb6a9fc3f98772990790f6385200732f8bce7c)
|
||||
|
||||
### [1.0.0](https://git.odit.services/lfk/selfservice/compare/0.11.3...1.0.0)
|
||||
|
||||
> 2 December 2024
|
||||
|
||||
- chore(deps): update all [`4a11fef`](https://git.odit.services/lfk/selfservice/commit/4a11fef0e0ad0940535fd1d6a1a57a829dc2b50d)
|
||||
- chore: pnpm v9 [`b85c395`](https://git.odit.services/lfk/selfservice/commit/b85c3958c288293bb98df2326f73dfad1684e3cb)
|
||||
@ -15,6 +21,7 @@ All notable changes to this project will be documented in this file. Dates are d
|
||||
- registration brand font + more translations [`afffde8`](https://git.odit.services/lfk/selfservice/commit/afffde8fa04df88d0a8bff05d0a28550414ce385)
|
||||
- feat: lfk font [`af9a168`](https://git.odit.services/lfk/selfservice/commit/af9a168f587768d8b1af8990729e743481ba687d)
|
||||
- updated profile page [`4fcc38c`](https://git.odit.services/lfk/selfservice/commit/4fcc38c374553b22f92a734903df1b7a032348fa)
|
||||
- 🚀Bumped version to v1.0.0 [`2285ea5`](https://git.odit.services/lfk/selfservice/commit/2285ea507069cf362baa950e7337aec72a37d4e3)
|
||||
- i18n [`f296cbc`](https://git.odit.services/lfk/selfservice/commit/f296cbc1a0c9035db6546c85781be71b152264d7)
|
||||
- feat(Footer): ref lfk [`6376dcb`](https://git.odit.services/lfk/selfservice/commit/6376dcb5fe7e3b1e1e639e41bc1b682036d838a0)
|
||||
- feat(Home): improve ui [`75b61d9`](https://git.odit.services/lfk/selfservice/commit/75b61d991bd483aaf00871c12c9268fc6e21435b)
|
||||
|
@ -6,8 +6,4 @@ runner selfservice portal
|
||||
- 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 lfk instance - WITH TRAILING SLASH
|
||||
- see [@lfk/deployment](https://git.odit.services/lfk/deployment) for a complete deployment guide
|
||||
- `baseurl_selfservice`: location of the selfservice instance - WITH TRAILING SLASH
|
||||
- e.g. path: `/selfservice/`
|
||||
- e.g. url: `https://example.com/selfservice/`
|
||||
- `baseurl`: url to the main lfk instance - WITH TRAILING SLASH
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@odit/lfk-selfservice",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
@ -3,14 +3,12 @@ const config = {
|
||||
documentserver_key: '',
|
||||
// required, with trailing slash
|
||||
baseurl: '',
|
||||
// optional, will fallback to /selfservice/
|
||||
baseurl_selfservice: '/selfservice/',
|
||||
// full url (including fqdn)
|
||||
baseurl_documentserver: 'http://localhost:4010/documents',
|
||||
// optional, will fallback to code128
|
||||
code_format: 'ean13',
|
||||
// optional, will fallback to baseurl_selfservice/imprint
|
||||
// optional, will fallback to /imprint
|
||||
url_imprint: '',
|
||||
// optional, will fallback to baseurl_selfservice/privacy
|
||||
// optional, will fallback to /privacy
|
||||
url_privacy: '',
|
||||
};
|
||||
|
@ -1,29 +0,0 @@
|
||||
<template>
|
||||
<section class="container px-4 py-32 mx-auto">
|
||||
<div class="w-full mx-auto lg:w-1/3">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="h-20 feather feather-alert-triangle"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0zM12 9v4M12 17h.01"
|
||||
/>
|
||||
</svg>
|
||||
<p
|
||||
class="mt-5 mb-3 text-xl font-bold text-black dark:text-gray-50 md:text-2xl"
|
||||
>{{ $t('configuration_error') }}</p>
|
||||
<p class="mb-3 text-base font-medium text-gray-700 dark:text-gray-400">
|
||||
{{ $t('the_system_is_not_properly_configured_please_contact_the_system_administrator_for_help') }}
|
||||
<br />
|
||||
<br />
|
||||
{{ $t('if_you_are_the_system_administrator_please_refer_to_the_official_product_documentation_readme_for_configuration_guidance') }}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
@ -19,8 +19,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
imprint_url: config.url_imprint || config.baseurl_selfservice + "imprint"
|
||||
, privacy_url: config.url_privacy || config.baseurl_selfservice + "privacy"
|
||||
imprint_url: config.url_imprint || "/imprint"
|
||||
, privacy_url: config.url_privacy || "/privacy"
|
||||
}
|
||||
},
|
||||
}
|
||||
|
@ -1,24 +1,23 @@
|
||||
// import EnvError from './components/EnvError.vue';
|
||||
import Home from './views/Home.vue';
|
||||
import Imprint from './views/Imprint.vue';
|
||||
import Privacy from './views/Privacy.vue';
|
||||
import Register from './views/Register.vue';
|
||||
import Profile from './views/Profile.vue';
|
||||
import ProfileNone from './views/ProfileNone.vue';
|
||||
import Home from "./views/Home.vue";
|
||||
import Imprint from "./views/Imprint.vue";
|
||||
import Privacy from "./views/Privacy.vue";
|
||||
import Register from "./views/Register.vue";
|
||||
import Profile from "./views/Profile.vue";
|
||||
import ProfileNone from "./views/ProfileNone.vue";
|
||||
|
||||
console.log(config);
|
||||
|
||||
/** @type {import('vue-router').RouterOptions['routes']} */
|
||||
export const routes = [
|
||||
{ path: config.baseurl_selfservice + '', component: Home },
|
||||
{ path: config.baseurl_selfservice + 'imprint', component: Imprint },
|
||||
{ path: config.baseurl_selfservice + 'imprint/', component: Imprint },
|
||||
{ path: config.baseurl_selfservice + 'privacy', component: Privacy },
|
||||
{ path: config.baseurl_selfservice + 'privacy/', component: Privacy },
|
||||
{ path: config.baseurl_selfservice + 'register', component: Register },
|
||||
{ path: config.baseurl_selfservice + 'register/', component: Register },
|
||||
{ path: config.baseurl_selfservice + 'register/:token', component: Register, props: true },
|
||||
{ path: config.baseurl_selfservice + 'profile', component: Profile },
|
||||
{ path: config.baseurl_selfservice + 'profile/', component: ProfileNone },
|
||||
{ path: config.baseurl_selfservice + 'profile/:token', component: Profile, props: true }
|
||||
{ path: "/", component: Home },
|
||||
{ path: "/imprint", component: Imprint },
|
||||
{ path: "/imprint/", component: Imprint },
|
||||
{ path: "/privacy", component: Privacy },
|
||||
{ path: "/privacy/", component: Privacy },
|
||||
{ path: "/register", component: Register },
|
||||
{ path: "/register/", component: Register },
|
||||
{ path: "/register/:token", component: Register, props: true },
|
||||
{ path: "/profile", component: Profile },
|
||||
{ path: "/profile/", component: ProfileNone },
|
||||
{ path: "/profile/:token", component: Profile, props: true },
|
||||
];
|
||||
|
@ -11,8 +11,8 @@
|
||||
Selfservice Portal</h2>
|
||||
<p class="px-0 mb-6 text-md lg:px-24 font-medium">{{ $t('main_page_text') }}</p>
|
||||
<a class="w-full block mx-auto md:w-3/4 px-6 py-3 border border-transparent text-base font-semibold rounded-md text-gray-900 bg-white shadow-sm hover:text-gray-600 focus:outline-none focus:text-gray-600 xl:text-lg xl:py-4"
|
||||
href="/selfservice/register/">{{ $t('register_now') }}</a>
|
||||
<a href="/selfservice/profile/"
|
||||
href="/register/">{{ $t('register_now') }}</a>
|
||||
<a href="/profile/"
|
||||
class="md:mt-4 mt-2 w-full block mx-auto md:w-3/4 px-6 py-3 text-base font-semibold rounded-md bg-gray-800 shadow-sm hover:bg-gray-700 focus:outline-none focus:bg-gray-700 xl:text-lg xl:py-4 border border-gray-400">{{
|
||||
$t('view_my_data') }}</a>
|
||||
</div>
|
||||
|
@ -576,7 +576,7 @@ function delete_me() {
|
||||
.then(() => {
|
||||
toast.clear();
|
||||
toast(t('alle_daten_geloescht'));
|
||||
location.replace(`${config.baseurl_selfservice}`);
|
||||
location.replace(`/`);
|
||||
})
|
||||
.catch((error) => {
|
||||
toast.clear();
|
||||
|
@ -48,7 +48,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<a href="/selfservice/register/"
|
||||
<a href="/register/"
|
||||
class="text-white block w-full text-center py-2 px-3 border-2 border-gray-300 rounded-md p-1 bg-blue-800 font-medium hover:border-gray-400 focus:outline-none focus:border-gray-400 sm:text-sm">{{
|
||||
$t('register_now_small') }}</a>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user