Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…stent into develop

deployment
  • Loading branch information
Bock4Soft committed Jul 5, 2024
2 parents 02fe793 + e66ca71 commit b0f3660
Show file tree
Hide file tree
Showing 19 changed files with 758 additions and 284 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
npm run build
working-directory: client
env:
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
- name: Set up JDK
uses: actions/setup-java@v1
with:
Expand All @@ -35,5 +35,5 @@ jobs:
run: mvn clean install -s .mvn/settings.xml
env:
GIT_HUB_USERNAME: ${{ secrets.GIT_HUB_USERNAME }}
GIT_HUB_PACKAGES_ACCESS_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
GIT_HUB_PACKAGES_ACCESS_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,23 @@ jobs:
run: |
git config user.email "actions@dipa.online"
git config user.name "DiPA GitHub Actions"
- name: Einstellen des Autorisierungstoken
run: |
npm config set //npm.pkg.github.com/:_authToken=${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
- name: Set up Node.js
uses: actions/setup-node@v2.1.5
with:
node-version: 14.x
registry-url: "https://npm.pkg.github.com"
scope: "@dipa-projekt"
- name: Release with Maven
run: mvn -s .mvn/settings.xml -B -DreleaseVersion=${{ github.event.inputs.release_version }} gitflow:release --file pom.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_REGISTRY_USERNAME: dipa
DOCKER_REGISTRY_TOKEN: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GIT_HUB_USERNAME: ${{ secrets.GIT_HUB_USERNAME }}
GIT_HUB_PACKAGES_ACCESS_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
- name: Deployment to Kubernetes
run: |
git checkout -f main
Expand All @@ -63,5 +71,5 @@ jobs:
DOCKER_REGISTRY_USERNAME: dipa
DOCKER_REGISTRY_TOKEN: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
GIT_HUB_USERNAME: ${{ secrets.GIT_HUB_USERNAME }}
GIT_HUB_PACKAGES_ACCESS_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
GIT_HUB_PACKAGES_ACCESS_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,7 @@ buildNumber.properties
.vscode
/client/eslint-report.json
/server/src/main/resources/liquibase-diff-changeLog.yaml

OpenOfficePortable/
client/node/
node_modules/
41 changes: 39 additions & 2 deletions .mvn/settings.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,48 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>github-packages</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github-packages</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>github-packages</id>
<name>GitHub - DiPA-Projekt</name>
<url>https://maven.pkg.github.com/dipa-projekt/projektassistent-openapi</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
<username>${env.GIT_HUB_USERNAME}</username>
<password>${env.GIT_HUB_PACKAGES_ACCESS_TOKEN}</password>
</server>
<server>
<id>github-packages</id>
<username>${env.GIT_HUB_USERNAME}</username>
<password>${env.GIT_HUB_PACKAGES_ACCESS_TOKEN}</password>
</server>
<server>
<id>docker.dipa.online</id>
Expand Down
6 changes: 5 additions & 1 deletion client/public/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
},
"dataType": {
"activity": "Aktivität",
"conventionFigure": "Konventionsabbildung",
"decisionPoint": "Entscheidungspunkt",
"division": "Bereich",
"externalTemplate": "Externe Kopiervorlage",
"methodReference": "Methodenreferenz",
"organisationRole": "Organisationsrolle",
Expand All @@ -26,6 +28,7 @@
"SimpleDate": "{{date, date}}"
},
"label": {
"activities": "Aktivitäten",
"bibliography": "Literaturverzeichnis",
"group": "Gruppe",
"product": "Produkt",
Expand All @@ -34,6 +37,7 @@
},
"text": {
"insertTopicDescription": "Themenbeschreibungen einfügen",
"generateNavigation": "Erstelle Navigation"
"generateNavigation": "Erstelle Navigation",
"pleaseSelectSubChapter": "Bitte wählen Sie ein Unterkapitel."
}
}
11 changes: 10 additions & 1 deletion client/public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ ul.sideMenu > li > ul > li > ul > li > div {
color: rgba(0, 0, 0, 0.88);
}

.disable-link{
.disable-link {
pointer-events: none;
}

/* side background color like menu background color */
.ant-layout-sider-children {
background: #f5f5f5;
}

.ant-layout-header {
background: #fff;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions client/src/components/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Link, useLocation } from 'react-router-dom';
import React, { useEffect, useState } from 'react';
import { useDocumentation } from '../context/DocumentationContext';
import { Breadcrumb } from 'antd';
import { getSearchStringFromHash } from '../shares/utils';
import { decodeXml, getSearchStringFromHash } from '../shares/utils';

export function Breadcrumbs() {
// const [pathSnippets, setPathSnippets] = useState<string[]>([]);
Expand Down Expand Up @@ -49,7 +49,7 @@ export function Breadcrumbs() {
const url = '/documentation/' + parent?.key + getSearchStringFromHash();
return {
key: url,
title: <Link to={url}>{parent?.label}</Link>,
title: <Link to={url}>{decodeXml(parent?.label)}</Link>,
};
})
.reverse();
Expand Down
36 changes: 15 additions & 21 deletions client/src/components/header/SiteHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
import { Col, Layout, Menu, MenuProps, Row } from 'antd';
import React from 'react';
import React, { useEffect, useState } from 'react';
import { BookOutlined, FileTextOutlined, HomeOutlined, ScissorOutlined } from '@ant-design/icons';
import { Link } from 'react-router-dom';
import { Link, useLocation } from 'react-router-dom';
import { useTailoring } from '../../context/TailoringContext';
import useImage from '../../hooks/useImage';
import { LinkWithQuery } from '../LinkWithQuery';

const { Header } = Layout;

// <Menu.Item key="1">
// <HomeOutlined />
// <Link to="/"> Home</Link>
// </Menu.Item>
// <Menu.Item key="2">
// <ScissorOutlined />
// <NavLink to="/tailoring">Tailoring</NavLink>
// </Menu.Item>
// <Menu.Item key="3">
// <FileTextOutlined />
// <NavLink to="/documentation">Dokumentation</NavLink>
// </Menu.Item>
// <Menu.Item key="4">
// <BookOutlined />
// <NavLink to="/produktvorlagen">Produktvorlagen</NavLink>
// </Menu.Item>

export const SiteHeader = (props: any) => {
const { tailoringParameter } = useTailoring();
const location = useLocation();
const [current, setCurrent] = useState(location.pathname);

useEffect(() => {
if (location) {
const splitPathname = location.pathname.split('/');
if (splitPathname.length >= 2 && current !== splitPathname[1]) {
setCurrent(splitPathname[1]);
}
}
}, [location]);

const items: MenuProps['items'] = [
{
Expand All @@ -44,7 +38,7 @@ export const SiteHeader = (props: any) => {
Dokumentation
</LinkWithQuery>
),
key: 'dokumentation',
key: 'documentation',
icon: <FileTextOutlined />,
disabled: !tailoringParameter.projectTypeId,
},
Expand Down Expand Up @@ -112,8 +106,8 @@ export const SiteHeader = (props: any) => {
<Col span={20}>
<Menu
mode="horizontal"
theme="dark"
defaultSelectedKeys={[props.selectedKey]}
selectedKeys={[current]}
// onClick={handleMenuClick}
items={items}
></Menu>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export type PageEntry = {
export type TableEntry = {
id: string;
descriptionEntry: string;
dataEntryDescription?: string;
dataEntries: DataEntry[];
};

Expand Down
Loading

0 comments on commit b0f3660

Please sign in to comment.