Compare commits
88 Commits
brain-patc
...
main
Author | SHA1 | Date | |
---|---|---|---|
0957580308 | |||
47294f9e3e | |||
62aec412dd | |||
0d738885e8 | |||
7d19f57fb0 | |||
2a40a203cf | |||
808d155a85 | |||
5aee683180 | |||
fc352864cc | |||
cc22f6767f | |||
99fe35dee4 | |||
f6673d5819 | |||
c58c727ff9 | |||
41f079fc03 | |||
31b4e21034 | |||
acb5ab5f40 | |||
66bf9d9a98 | |||
32f9d792e4 | |||
8e395d9c16 | |||
86db7774ea | |||
b0b29c77df | |||
d2075123a2 | |||
71ca40dc61 | |||
ee6097bc10 | |||
d90bc32c53 | |||
b25e0c2ce5 | |||
bdaec983d8 | |||
4850d79f54 | |||
df8b79bc53 | |||
348b589d6b | |||
312acee0f2 | |||
f5b7fe8f12 | |||
9bf644161d | |||
4cd12bfe59 | |||
f5b7fd3dee | |||
bd4242a7e1 | |||
93c4fac780 | |||
b2b295df43 | |||
cac4ceb173 | |||
aed94f4237 | |||
efd3d5bca5 | |||
cf5eb08db6 | |||
a4891afa1d | |||
087adf71c1 | |||
83164e3f54 | |||
27f399b0f3 | |||
da20c22ba4 | |||
9a056b6977 | |||
fccf9a55b6 | |||
775cf303d1 | |||
abd1e0ee31 | |||
563f492bc3 | |||
72d6756749 | |||
d1fdde6d10 | |||
a1c758a4b6 | |||
c463c2f1ad | |||
eb5de926d0 | |||
5c4c76356a | |||
61a6115071 | |||
d46aaa0f31 | |||
81dcf5ebe7 | |||
7433d25716 | |||
7feee07d35 | |||
f728f1f72b | |||
663db94cb8 | |||
a49bd3feef | |||
6f12f577d4 | |||
872ff894b5 | |||
0b02df26e8 | |||
17e43d94c4 | |||
c79ada2123 | |||
7b0e38296f | |||
bc1a079503 | |||
cd36d39fad | |||
ba701b2ac8 | |||
9d35989ba9 | |||
f8e78d1cc8 | |||
c2552f3c3a | |||
687454afdb | |||
a7c8774cc4 | |||
b63e5a6c2d | |||
1b221ab180 | |||
e2b101eb89 | |||
654169c383 | |||
26edf1d4b2 | |||
e7ff487aeb | |||
c5bda80f11 | |||
379ddaf5b9 |
@ -1,2 +1,11 @@
|
|||||||
|
.browserslistrc
|
||||||
|
.dockerignore
|
||||||
|
.drone.yml
|
||||||
|
.editorconfig
|
||||||
.git
|
.git
|
||||||
|
.gitignore
|
||||||
|
.reuse
|
||||||
|
Dockerfile
|
||||||
|
LICENSES
|
||||||
|
README.md
|
||||||
node_modules
|
node_modules
|
||||||
|
112
.drone.yml
112
.drone.yml
@ -4,40 +4,118 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: qa
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: reuse
|
- name: reuse
|
||||||
image: fsfe/reuse:latest
|
image: fsfe/reuse:4.0.3-debian@sha256:20e70745bf4aa1d37f4ac054f4df045e4f7df7f4ec95d7abd2e263aa1323f399
|
||||||
|
- name: lint
|
||||||
- name: docker-publish
|
image: node:20.17.0-alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03
|
||||||
image: plugins/docker
|
commands:
|
||||||
|
- npm ci
|
||||||
|
- npm run lint -- --no-fix
|
||||||
|
- name: audit
|
||||||
|
image: node:20.17.0-alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03
|
||||||
|
commands:
|
||||||
|
- npm install -g better-npm-audit
|
||||||
|
- better-npm-audit audit --production --level=moderate
|
||||||
|
- name: docker-dry-run
|
||||||
|
image: plugins/docker:20.18.4@sha256:a8d3d86853c721492213264815f1d00d3ed13f42f5c1855a02f47fa4d5f1e042
|
||||||
settings:
|
settings:
|
||||||
registry: registry.wtf-eg.net
|
registry: git.wtf-eg.de
|
||||||
repo: registry.wtf-eg.net/ki-frontend
|
repo: git.wtf-eg.de/kompetenzinventar/frontend
|
||||||
target: ki-frontend
|
target: ki-frontend
|
||||||
auto_tag: true
|
dry_run: true
|
||||||
username:
|
|
||||||
from_secret: "docker_username"
|
|
||||||
password:
|
|
||||||
from_secret: "docker_password"
|
|
||||||
when:
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build
|
||||||
|
|
||||||
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
- name: docker-publish-tag
|
depends_on:
|
||||||
image: plugins/docker
|
- qa
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker-publish
|
||||||
|
image: plugins/docker:20.18.4@sha256:a8d3d86853c721492213264815f1d00d3ed13f42f5c1855a02f47fa4d5f1e042
|
||||||
settings:
|
settings:
|
||||||
registry: registry.wtf-eg.net
|
registry: git.wtf-eg.de
|
||||||
repo: registry.wtf-eg.net/ki-frontend
|
repo: git.wtf-eg.de/kompetenzinventar/frontend
|
||||||
target: ki-frontend
|
target: ki-frontend
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
username:
|
username:
|
||||||
from_secret: "docker_username"
|
from_secret: "docker_username"
|
||||||
password:
|
password:
|
||||||
from_secret: "docker_password"
|
from_secret: "docker_password"
|
||||||
when:
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: deploy
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: deploy-dev
|
||||||
|
image: appleboy/drone-ssh:1.7.5@sha256:995677e073454912f26d4c0fdd2f9df2e1f5a30d6603d3f2ece667311b6babb3
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
- dev01.wtf-eg.net
|
||||||
|
username: drone_deployment
|
||||||
|
key:
|
||||||
|
from_secret: "dev01_deployment_key"
|
||||||
|
command_timeout: 2m
|
||||||
|
script:
|
||||||
|
- echo "Executing forced command..."
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: tag-release
|
||||||
|
|
||||||
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: reuse
|
||||||
|
image: fsfe/reuse:4.0.3-debian@sha256:20e70745bf4aa1d37f4ac054f4df045e4f7df7f4ec95d7abd2e263aa1323f399
|
||||||
|
- name: lint
|
||||||
|
image: node:20.17.0-alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03
|
||||||
|
commands:
|
||||||
|
- npm ci
|
||||||
|
- npm run lint -- --no-fix
|
||||||
|
- name: docker-publish
|
||||||
|
image: plugins/docker:20.18.4@sha256:a8d3d86853c721492213264815f1d00d3ed13f42f5c1855a02f47fa4d5f1e042
|
||||||
|
settings:
|
||||||
|
registry: git.wtf-eg.de
|
||||||
|
repo: git.wtf-eg.de/kompetenzinventar/frontend
|
||||||
|
target: ki-frontend
|
||||||
|
auto_tag: true
|
||||||
|
username:
|
||||||
|
from_secret: "docker_username"
|
||||||
|
password:
|
||||||
|
from_secret: "docker_password"
|
||||||
|
@ -8,10 +8,13 @@ module.exports = {
|
|||||||
'eslint:recommended'
|
'eslint:recommended'
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: 'babel-eslint'
|
parser: '@babel/eslint-parser'
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
'vue/multi-word-component-names': 'off',
|
||||||
|
'vue/no-useless-template-attributes': 'off',
|
||||||
|
'vue/no-reserved-component-names': 'off'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
28
.reuse/dep5
28
.reuse/dep5
@ -1,28 +0,0 @@
|
|||||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
||||||
Upstream-Name: ki-frontend
|
|
||||||
Upstream-Contact: Scammo <kontakt@samuelbrinkmann.de>
|
|
||||||
Source: https://git.wtf-eg.de/kompetenzinventar/ki-frontend
|
|
||||||
|
|
||||||
Files: package.json package-lock.json
|
|
||||||
Copyright: WTF Kooperative eG <https://wtf-eg.de/>
|
|
||||||
License: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
Files: .browserslistrc .dockerignore .eslintrc.js .gitignore
|
|
||||||
Copyright: WTF Kooperative eG <https://wtf-eg.de/>
|
|
||||||
License: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
Files: src/assets/img/wtf*
|
|
||||||
Copyright: WTF Kooperative eG <https://wtf-eg.de/>
|
|
||||||
License: LicenseRef-WTF
|
|
||||||
|
|
||||||
Files: src/assets/language_level.json src/assets/skill_level.json
|
|
||||||
Copyright: WTF Kooperative eG <https://wtf-eg.de/>
|
|
||||||
License: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
Files: public/img/bootstrap-icons-1.5.0/*
|
|
||||||
Copyright: Copyright (c) 2019-2020 The Bootstrap Authors
|
|
||||||
License: MIT
|
|
||||||
|
|
||||||
Files: public/fonts/Lato*
|
|
||||||
Copyright: 2010-2015, Łukasz Dziedzic (dziedzic@typoland.com)
|
|
||||||
License: OFL-1.1-RFN
|
|
21
Dockerfile
21
Dockerfile
@ -2,14 +2,27 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
FROM node:14-alpine as builder
|
FROM node:20.17.0-alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 as builder
|
||||||
|
|
||||||
COPY . ./
|
COPY package.json package-lock.json ./
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY .eslintrc.js .
|
||||||
|
COPY babel.config.js .
|
||||||
|
COPY public public
|
||||||
|
COPY src src
|
||||||
|
|
||||||
RUN npm ci && npm run build
|
RUN npm ci && npm run build
|
||||||
|
|
||||||
|
|
||||||
FROM nginx as ki-frontend
|
FROM nginx:1.27-alpine@sha256:a5127daff3d6f4606be3100a252419bfa84fd6ee5cd74d0feaca1a5068f97dcf as ki-frontend
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.source=https://git.wtf-eg.de/kompetenzinventar/ki-frontend.git
|
||||||
|
LABEL org.opencontainers.image.url=https://git.wtf-eg.de/kompetenzinventar/ki-frontend
|
||||||
|
LABEL org.opencontainers.image.documentation=https://git.wtf-eg.de/kompetenzinventar/ki-frontend#docker
|
||||||
|
LABEL org.opencontainers.image.vendor="WTF Kooperative eG"
|
||||||
|
|
||||||
|
WORKDIR /usr/share/nginx/html
|
||||||
|
|
||||||
COPY --from=builder /dist/ /usr/share/nginx/html/
|
|
||||||
COPY etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
COPY etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
COPY --from=builder /dist .
|
||||||
|
@ -41,6 +41,14 @@ Folgende Kanäle gibt es für die Kommunikation über das Kompetenzinventar:
|
|||||||
npm ci
|
npm ci
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Pre requirements
|
||||||
|
|
||||||
|
* Node 20
|
||||||
|
* Wenn du eine andere node version installiert hast, kannst du [nvm](https://github.com/nvm-sh/nvm) benutzen um schnell zwischen node version zu wechseln
|
||||||
|
* NPM
|
||||||
|
* (KI-backend)[https://git.wtf-eg.de/kompetenzinventar/ki-backend] muss lokal laufen
|
||||||
|
|
||||||
|
|
||||||
### Konfigurationsdatei anpassen
|
### Konfigurationsdatei anpassen
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -48,7 +56,6 @@ cp public/config.js.dev public/config.js
|
|||||||
vi public/config.js
|
vi public/config.js
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Compiles and hot-reloads for development
|
### Compiles and hot-reloads for development
|
||||||
```
|
```
|
||||||
npm run serve
|
npm run serve
|
||||||
|
40
REUSE.toml
Normal file
40
REUSE.toml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
version = 1
|
||||||
|
SPDX-PackageName = "ki-frontend"
|
||||||
|
SPDX-PackageSupplier = "Scammo <kontakt@samuelbrinkmann.de>"
|
||||||
|
SPDX-PackageDownloadLocation = "https://git.wtf-eg.de/kompetenzinventar/ki-frontend"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["package.json", "package-lock.json", "renovate.json"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "WTF Kooperative eG <https://wtf-eg.de/>"
|
||||||
|
SPDX-License-Identifier = "AGPL-3.0-or-later"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = [".browserslistrc", ".dockerignore", ".eslintrc.js", ".gitignore", "REUSE.toml"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "WTF Kooperative eG <https://wtf-eg.de/>"
|
||||||
|
SPDX-License-Identifier = "AGPL-3.0-or-later"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "src/assets/img/wtf**"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "WTF Kooperative eG <https://wtf-eg.de/>"
|
||||||
|
SPDX-License-Identifier = "LicenseRef-WTF"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["src/assets/language_level.json", "src/assets/skill_level.json"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "WTF Kooperative eG <https://wtf-eg.de/>"
|
||||||
|
SPDX-License-Identifier = "AGPL-3.0-or-later"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "public/img/bootstrap-icons-1.5.0/**"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Copyright (c) 2019-2020 The Bootstrap Authors"
|
||||||
|
SPDX-License-Identifier = "MIT"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "public/fonts/Lato**"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2010-2015, Łukasz Dziedzic (dziedzic@typoland.com)"
|
||||||
|
SPDX-License-Identifier = "OFL-1.1-RFN"
|
@ -9,10 +9,24 @@ server {
|
|||||||
|
|
||||||
#access_log /var/log/nginx/host.access.log main;
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
location / {
|
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html index.htm;
|
|
||||||
try_files $uri $uri/ /index.html;
|
# routes without dots serve the index.html without caching
|
||||||
|
location / {
|
||||||
|
add_header Cache-Control "no-cache";
|
||||||
|
try_files $uri $uri/index.html /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
# static js and css files that get replaced instead of updated
|
||||||
|
location ~ \.(js|css) {
|
||||||
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
# cache other static files for 30 days
|
||||||
|
location ~ \.(?!html) {
|
||||||
|
add_header Cache-Control "public, max-age=2592000";
|
||||||
|
try_files $uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
#error_page 404 /404.html;
|
#error_page 404 /404.html;
|
||||||
|
29892
package-lock.json
generated
29892
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
39
package.json
39
package.json
@ -1,28 +1,31 @@
|
|||||||
{
|
{
|
||||||
"name": "@wtf/ki-frontend",
|
"name": "@wtf/ki-frontend",
|
||||||
"version": "0.1.0",
|
"version": "1.1.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "^4.5.0",
|
"@babel/eslint-parser": "7.25.1",
|
||||||
"@vue/cli-plugin-eslint": "^4.5.0",
|
"@vue/cli-plugin-babel": "5.0.8",
|
||||||
"@vue/cli-plugin-router": "^4.5.0",
|
"@vue/cli-plugin-eslint": "5.0.8",
|
||||||
"@vue/cli-service": "^4.5.0",
|
"@vue/cli-plugin-router": "5.0.8",
|
||||||
"@vue/compiler-sfc": "^3.0.0",
|
"@vue/cli-service": "5.0.8",
|
||||||
"babel-eslint": "^10.1.0",
|
"@vue/compiler-sfc": "3.5.6",
|
||||||
"bootstrap": "^5.0.1",
|
"bootstrap": "5.3.3",
|
||||||
"bootstrap-icons": "^1.5.0",
|
"bootstrap-icons": "1.11.3",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "3.38.1",
|
||||||
"eslint": "^6.7.2",
|
"eslint": "8.57.1",
|
||||||
"eslint-plugin-vue": "^7.0.0",
|
"eslint-plugin-vue": "9.28.0",
|
||||||
"sass": "^1.37.5",
|
"sass": "1.78.0",
|
||||||
"sass-loader": "^10.2.0",
|
"sass-loader": "16.0.1",
|
||||||
"v-tooltip": "^4.0.0-alpha.1",
|
"v-tooltip": "4.0.0-beta.17",
|
||||||
"vue": "^3.0.0",
|
"vue": "3.5.6",
|
||||||
"vue-router": "^4.0.0-0",
|
"vue-router": "4.4.5",
|
||||||
"vuex": "^4.0.2"
|
"vuex": "4.1.0"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"sass-embedded": "1.78.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
21
renovate.json
Normal file
21
renovate.json
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:best-practices",
|
||||||
|
"group:linters",
|
||||||
|
"group:test",
|
||||||
|
"npm:unpublishSafe",
|
||||||
|
":disableDependencyDashboard",
|
||||||
|
":maintainLockFilesWeekly",
|
||||||
|
":pinAllExceptPeerDependencies",
|
||||||
|
":separateMultipleMajorReleases"
|
||||||
|
],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchPackageNames": [
|
||||||
|
"node"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^[1-9][02468]\\./"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
@update-values="this.$emit('update-values', this.values)"
|
@update-values="this.$emit('update-values', this.values)"
|
||||||
>
|
>
|
||||||
</profile-list>
|
</profile-list>
|
||||||
<div v-bind="$attrs" class="card-body">
|
<div v-bind="$attrs" class="card-body bg-white">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-md-4 col-lg-3 col-xl-2">
|
<div class="col-12 col-md-4 col-lg-3 col-xl-2">
|
||||||
<div class="form-control-plaintext form-control-sm">Eintrag hinzufügen:</div>
|
<div class="form-control-plaintext form-control-sm">Eintrag hinzufügen:</div>
|
||||||
@ -34,7 +34,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
<div v-if="searchResults">
|
<div v-if="searchResults">
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
<li
|
<li
|
||||||
class="list-group-item"
|
class="list-group-item bg-white"
|
||||||
v-for="result in searchResults"
|
v-for="result in searchResults"
|
||||||
:key="result.id"
|
:key="result.id"
|
||||||
@click="addResult(result)"
|
@click="addResult(result)"
|
||||||
|
@ -14,6 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="page-link pointer"
|
class="page-link pointer"
|
||||||
|
:class="{ 'bg-white': page !== current }"
|
||||||
@click="onPageClicked(page)"
|
@click="onPageClicked(page)"
|
||||||
>
|
>
|
||||||
{{ page }}
|
{{ page }}
|
||||||
|
@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
<template>
|
<template>
|
||||||
<ul class="list-group list-group-flush">
|
<ul class="list-group list-group-flush">
|
||||||
<li
|
<li
|
||||||
class="list-group-item"
|
class="list-group-item bg-white"
|
||||||
v-for="(value, valueKey) in values"
|
v-for="(value, valueKey) in values"
|
||||||
:key="value.id"
|
:key="value.id"
|
||||||
>
|
>
|
||||||
|
@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
class="text-decoration-none d-flex"
|
class="text-decoration-none d-flex"
|
||||||
:to="{ path: `/s/profile/${profile.user_id}` }"
|
:to="{ path: `/s/profile/${profile.user_id}` }"
|
||||||
>
|
>
|
||||||
<div class="card w-100">
|
<div class="card w-100 bg-white">
|
||||||
<div class="card-body d-flex">
|
<div class="card-body d-flex">
|
||||||
<div class="d-flex align-items-center justify-content-center me-3">
|
<div class="d-flex align-items-center justify-content-center me-3">
|
||||||
<Avatar :name="profile.nickname"/>
|
<Avatar :name="profile.nickname"/>
|
||||||
|
@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
</h3>
|
</h3>
|
||||||
<div class="card w-100">
|
<div class="card w-100">
|
||||||
<slot name="card-body">
|
<slot name="card-body">
|
||||||
<div class="card-body">
|
<div class="card-body bg-white">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
</slot>
|
</slot>
|
||||||
|
@ -95,10 +95,11 @@ export default {
|
|||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async submitFormEdit() {
|
async submitFormEdit(isProfileVisible) {
|
||||||
this.showErrorMessage = false
|
this.showErrorMessage = false
|
||||||
this.showSuccessMessage = false
|
this.showSuccessMessage = false
|
||||||
const userId = store.state.currentUserId
|
const userId = store.state.currentUserId
|
||||||
|
this.profile.visible = isProfileVisible;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const body = JSON.stringify(this.profile)
|
const body = JSON.stringify(this.profile)
|
||||||
|
@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
id="searchText"
|
id="searchText"
|
||||||
v-model="searchText"
|
v-model="searchText"
|
||||||
placeholder="Nick, Fähigkeit, Sprache"
|
placeholder="Nick, Name, Fähigkeit, Sprache"
|
||||||
ref="searchTextInput"
|
ref="searchTextInput"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,25 +12,8 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<form @submit.prevent="submitFormEdit()">
|
<form @submit.prevent="submitFormEdit(false)">
|
||||||
<Section title="Grunddaten">
|
<Section title="Grunddaten">
|
||||||
<div class="mb-4">
|
|
||||||
<div class="form-check form-switch">
|
|
||||||
<input
|
|
||||||
class="form-check-input"
|
|
||||||
type="checkbox"
|
|
||||||
role="switch"
|
|
||||||
v-model="profile.visible"
|
|
||||||
id="visibility"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
class="form-check-label"
|
|
||||||
for="visibility">
|
|
||||||
Profil für angemeldete Benutzer sichtbar
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row mb-4">
|
<div class="row mb-4">
|
||||||
<div class="col-12 col-md-4 mb-3 mb-md-0">
|
<div class="col-12 col-md-4 mb-3 mb-md-0">
|
||||||
<label class="form-label">Nickname</label>
|
<label class="form-label">Nickname</label>
|
||||||
@ -184,7 +167,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<Section title="Sonstiges">
|
<Section title="Sonstiges">
|
||||||
<div class="mb-3">
|
<div class="mb-3 bg-white">
|
||||||
<label class="form-label">Über mich</label>
|
<label class="form-label">Über mich</label>
|
||||||
<textarea
|
<textarea
|
||||||
class="form-control"
|
class="form-control"
|
||||||
@ -223,10 +206,16 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
Gespeichert
|
Gespeichert
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="btn btn-primary ms-3"
|
class="btn btn-secondary ms-3"
|
||||||
@click="submitFormEdit()"
|
@click="submitFormEdit(false)"
|
||||||
>
|
>
|
||||||
Speichern
|
Entwurf Speichern
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="btn btn-primary ms-3"
|
||||||
|
@click="submitFormEdit(true)"
|
||||||
|
>
|
||||||
|
Speichern und Veröffentlichen
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user