Compare commits
1 Commits
feature/up
...
f36d55ebc8
Author | SHA1 | Date | |
---|---|---|---|
f36d55ebc8
|
115
.drone.yml
115
.drone.yml
@ -4,103 +4,22 @@
|
|||||||
# 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: qa
|
name: default
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
- pull_request
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: reuse
|
- name: reuse
|
||||||
image: fsfe/reuse
|
image: fsfe/reuse:latest
|
||||||
- name: lint
|
- name: docker-publish
|
||||||
image: node:20
|
image: plugins/docker
|
||||||
commands:
|
settings:
|
||||||
- npm ci
|
registry: registry.wtf-eg.net
|
||||||
- npm run lint
|
repo: registry.wtf-eg.net/ki-frontend
|
||||||
|
target: ki-frontend
|
||||||
---
|
auto_tag: true
|
||||||
kind: pipeline
|
username:
|
||||||
type: docker
|
from_secret: "docker_username"
|
||||||
name: build
|
password:
|
||||||
|
from_secret: "docker_password"
|
||||||
trigger:
|
when:
|
||||||
event:
|
branch:
|
||||||
- push
|
- main
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- qa
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: docker-publish
|
|
||||||
image: plugins/docker
|
|
||||||
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"
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: deploy
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: deploy-dev
|
|
||||||
image: appleboy/drone-ssh
|
|
||||||
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:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: reuse
|
|
||||||
image: fsfe/reuse
|
|
||||||
- name: lint
|
|
||||||
image: node:20
|
|
||||||
commands:
|
|
||||||
- npm ci
|
|
||||||
- npm run lint
|
|
||||||
- name: docker-publish
|
|
||||||
image: plugins/docker
|
|
||||||
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,7 +8,7 @@ module.exports = {
|
|||||||
'eslint:recommended'
|
'eslint:recommended'
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: '@babel/eslint-parser'
|
parser: 'babel-eslint'
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
FROM node:20-alpine as builder
|
FROM node:14-alpine as builder
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
@ -13,8 +13,3 @@ FROM nginx as ki-frontend
|
|||||||
|
|
||||||
COPY --from=builder /dist/ /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
|
||||||
|
|
||||||
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"
|
|
||||||
|
@ -9,24 +9,10 @@ server {
|
|||||||
|
|
||||||
#access_log /var/log/nginx/host.access.log main;
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
|
|
||||||
# routes without dots serve the index.html without caching
|
|
||||||
location / {
|
location / {
|
||||||
add_header Cache-Control "no-cache";
|
root /usr/share/nginx/html;
|
||||||
try_files $uri $uri/index.html /index.html;
|
index index.html index.htm;
|
||||||
}
|
try_files $uri $uri/ /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;
|
||||||
|
30326
package-lock.json
generated
30326
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@ -7,22 +7,22 @@
|
|||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "~5.0.8",
|
"@vue/cli-plugin-babel": "~4.5.0",
|
||||||
"@vue/cli-plugin-eslint": "~5.0.8",
|
"@vue/cli-plugin-eslint": "~4.5.0",
|
||||||
"@vue/cli-plugin-router": "~5.0.8",
|
"@vue/cli-plugin-router": "~4.5.0",
|
||||||
"@vue/cli-service": "~5.0.8",
|
"@vue/cli-service": "~4.5.0",
|
||||||
"@vue/compiler-sfc": "^3.0.0",
|
"@vue/compiler-sfc": "^3.0.0",
|
||||||
"@babel/eslint-parser": "7.23.10",
|
"babel-eslint": "^10.1.0",
|
||||||
"bootstrap": "^5.3.2",
|
"bootstrap": "^5.0.1",
|
||||||
"bootstrap-icons": "^1.11.3",
|
"bootstrap-icons": "^1.5.0",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^6.7.2",
|
||||||
"eslint-plugin-vue": "^7.0.0",
|
"eslint-plugin-vue": "^7.0.0",
|
||||||
"sass": "^1.37.5",
|
"sass": "^1.37.5",
|
||||||
"sass-loader": "^10.2.0",
|
"sass-loader": "^10.2.0",
|
||||||
"v-tooltip": "^4.0.0-beta.17",
|
"v-tooltip": "^4.0.0-alpha.1",
|
||||||
"vue": "^3.4.0",
|
"vue": "^3.0.0",
|
||||||
"vue-router": "^4.2.5",
|
"vue-router": "^4.0.0-0",
|
||||||
"vuex": "^4.1.0"
|
"vuex": "^4.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,11 +21,3 @@
|
|||||||
.search-card{
|
.search-card{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-body {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.list-group-flush > .list-group-item {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
@ -13,7 +13,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
<div class="fw-bold text-white mb-2">Kompetenzinventar</div>
|
<div class="fw-bold text-white mb-2">Kompetenzinventar</div>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li><a href="https://git.wtf-eg.de/kompetenzinventar">Quellcode</a></li>
|
<li><a href="https://git.wtf-eg.de/kompetenzinventar">Quellcode</a></li>
|
||||||
<li><a href="https://git.wtf-eg.de/kompetenzinventar/ki-doku/issues/new/choose">Problem melden</a></li>
|
<li><a href="https://git.wtf-eg.de/kompetenzinventar/ki-frontend/issues/new">Problem melden</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,14 +16,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="profile?.address?.name">
|
|
||||||
<div class="d-flex align-items-center">
|
|
||||||
<i class="fs-4 bi bi-person-fill text-dark mx-2"></i>
|
|
||||||
<div class="text-white">
|
|
||||||
a.k.a. {{ profile.address.name }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-if="location">
|
<div v-if="location">
|
||||||
<div class="d-flex align-items-center">
|
<div class="d-flex align-items-center">
|
||||||
<i class="fs-4 bi bi-geo-alt-fill text-dark mx-2"></i>
|
<i class="fs-4 bi bi-geo-alt-fill text-dark mx-2"></i>
|
||||||
|
@ -42,17 +42,17 @@ export default {
|
|||||||
state.errorMessage = errorMessage
|
state.errorMessage = errorMessage
|
||||||
},
|
},
|
||||||
setQuerySearch(state, search) {
|
setQuerySearch(state, search) {
|
||||||
state.query = {...state.query, search}
|
state.query.search = search
|
||||||
},
|
},
|
||||||
setPages(state, pages) {
|
setPages(state, pages) {
|
||||||
state.pages = pages
|
state.pages = pages
|
||||||
},
|
},
|
||||||
setQueryPage(state, page) {
|
setQueryPage(state, page) {
|
||||||
state.query = {...state.query, page}
|
state.query.page = page
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
async search({state, commit, rootState, dispatch}) {
|
async search({state, commit, rootState}) {
|
||||||
if (state.searching) {
|
if (state.searching) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ export default {
|
|||||||
commit('setErrorMessage', '')
|
commit('setErrorMessage', '')
|
||||||
|
|
||||||
const url = new URL(`${window.ki.apiUrl}/users/profiles`)
|
const url = new URL(`${window.ki.apiUrl}/users/profiles`)
|
||||||
|
|
||||||
if (state.query.search) {
|
if (state.query.search) {
|
||||||
url.searchParams.append('search', state.query.search)
|
url.searchParams.append('search', state.query.search)
|
||||||
}
|
}
|
||||||
@ -91,19 +91,8 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(response.ok)
|
|
||||||
console.log(response.status)
|
|
||||||
console.log(state.query.page)
|
|
||||||
|
|
||||||
clearTimeout(timeoutId)
|
clearTimeout(timeoutId)
|
||||||
|
|
||||||
if (!response.ok && response.status === 404 && state.query.page != 1) {
|
|
||||||
commit('setQueryPage', 1)
|
|
||||||
commit('setSearching', false)
|
|
||||||
await dispatch('search')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
commit('setError', true)
|
commit('setError', true)
|
||||||
commit('clearProfiles')
|
commit('clearProfiles')
|
||||||
|
@ -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, Name, Fähigkeit, Sprache"
|
placeholder="Nick, Fähigkeit, Sprache"
|
||||||
ref="searchTextInput"
|
ref="searchTextInput"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -161,16 +161,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.$route.query.query) {
|
if (this.$route.query.query !== undefined) {
|
||||||
this.searchText = this.$route.query.query
|
this.searchText = this.$route.query.query
|
||||||
this.$store.commit('search/clearProfiles')
|
this.$store.commit('search/clearProfiles')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.$route.query.page) {
|
|
||||||
this.currentPage = parseInt(this.$route.query.page, 10)
|
|
||||||
this.$store.commit('search/clearProfiles')
|
|
||||||
}
|
|
||||||
|
|
||||||
this.$store.dispatch('search/search')
|
this.$store.dispatch('search/search')
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -32,7 +32,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
</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-6 mb-3">
|
||||||
<label class="form-label">Nickname</label>
|
<label class="form-label">Nickname</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
@ -43,17 +43,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-4 mb-3 mb-md-0">
|
<div class="col-6 mb-3">
|
||||||
<label class="form-label">Klarname (optional)</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
class="form-control"
|
|
||||||
id="realname"
|
|
||||||
maxlength="25"
|
|
||||||
v-model="profile.address.name"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="col-12 col-md-4">
|
|
||||||
<label class="form-label">
|
<label class="form-label">
|
||||||
Pronomen
|
Pronomen
|
||||||
<i class="bi bi-info-circle" v-tooltip="pronounsTooltip"></i>
|
<i class="bi bi-info-circle" v-tooltip="pronounsTooltip"></i>
|
||||||
|
@ -75,7 +75,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
<label class="form-label fw-bold">
|
<label class="form-label fw-bold">
|
||||||
Anmerkungen
|
Anmerkungen
|
||||||
</label>
|
</label>
|
||||||
<div class="line-break-text">{{ profile.availability_text }}</div>
|
<div>{{ profile.availability_text }}</div>
|
||||||
</div>
|
</div>
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
@ -98,11 +98,11 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
title="Sonstiges">
|
title="Sonstiges">
|
||||||
<div v-if="profile.freetext" :class="{ 'lh-base': true, 'mb-4': profile.volunteerwork }">
|
<div v-if="profile.freetext" :class="{ 'lh-base': true, 'mb-4': profile.volunteerwork }">
|
||||||
<h5>Über mich</h5>
|
<h5>Über mich</h5>
|
||||||
<div class="line-break-text">{{ profile.freetext }}</div>
|
{{ profile.freetext }}
|
||||||
</div>
|
</div>
|
||||||
<div v-if="profile.volunteerwork" class="lh-base">
|
<div v-if="profile.volunteerwork" class="lh-base">
|
||||||
<h5>Ehrenamtliche Arbeit</h5>
|
<h5>Ehrenamtliche Arbeit</h5>
|
||||||
<div class="line-break-text">{{ profile.volunteerwork }}</div>
|
{{ profile.volunteerwork }}
|
||||||
</div>
|
</div>
|
||||||
</Section>
|
</Section>
|
||||||
</template>
|
</template>
|
||||||
@ -154,7 +154,4 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.line-break-text{
|
|
||||||
white-space: pre-line;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user