Skip to content

Commit

Permalink
Merge pull request #1 from nscuro/issue-2041-resolve-merge-conflicts
Browse files Browse the repository at this point in the history
Resolve merge conflicts in collection projects PR
  • Loading branch information
rkg-mm authored Dec 7, 2024
2 parents 59a5bdd + 1ff8db4 commit ebed999
Show file tree
Hide file tree
Showing 48 changed files with 952 additions and 626 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/defect-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ body:
- 4.10.x
- 4.11.x
- 4.12.0
- 4.12.1
- 4.12.2
- 4.13.0-SNAPSHOT
validations:
required: true
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/_meta-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/[email protected].0
uses: actions/[email protected].2

- name: Set up NodeJs
uses: actions/setup-node@v4.0.4
uses: actions/setup-node@v4.1.0
with:
node-version: '20'
cache: 'npm'
Expand All @@ -43,7 +43,7 @@ jobs:
npm run build --if-present
- name: Upload Artifacts
uses: actions/upload-artifact@v4.3.6
uses: actions/upload-artifact@v4.4.3
with:
name: assembled-frontend
path: |-
Expand All @@ -57,7 +57,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/[email protected].0
uses: actions/[email protected].2

- name: Download Artifacts
uses: actions/[email protected]
Expand All @@ -68,7 +68,7 @@ jobs:
uses: docker/[email protected]

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.6.1
uses: docker/setup-buildx-action@v3.7.1
id: buildx
with:
install: true
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
- name: Build multi-arch Container Image
uses: docker/build-push-action@v6.9.0
uses: docker/build-push-action@v6.10.0
with:
tags: ${{ steps.tags.outputs.tags }}
build-args: |-
Expand All @@ -112,7 +112,7 @@ jobs:

- name: Run Trivy Vulnerability Scanner
if: ${{ inputs.publish-container }}
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.29.0
env:
# https://github.com/aquasecurity/trivy-action/issues/389
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fi
- name: Checkout Repository
uses: actions/[email protected].0
uses: actions/[email protected].2

- name: Parse Version from package.json
id: parse
Expand All @@ -47,7 +47,7 @@ jobs:
- call-build
steps:
- name: Checkout Repository
uses: actions/[email protected].0
uses: actions/[email protected].2

- name: Download Artifacts
uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected].0
uses: actions/[email protected].2

- name: Set up NodeJs
uses: actions/setup-node@v4.0.4
uses: actions/setup-node@v4.1.0
with:
node-version: '20'
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/[email protected].0
uses: actions/[email protected].2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected].0
uses: actions/[email protected].2

- name: Dependency Review
uses: actions/dependency-review-action@v4
4 changes: 2 additions & 2 deletions .github/workflows/i18n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/[email protected].0
uses: actions/[email protected].2

- name: Set up NodeJs
uses: actions/setup-node@v4.0.4
uses: actions/setup-node@v4.1.0
with:
node-version: '20'
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/[email protected].0
uses: actions/[email protected].2

- name: Set up NodeJs
uses: actions/setup-node@v4.0.4
uses: actions/setup-node@v4.1.0
with:
node-version: '20'
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginxinc/nginx-unprivileged:1.27.1-alpine@sha256:c149247b2e5997ce60f337bcb19f61c0c09b906224e6f1683be64248c814d7e1
FROM nginxinc/nginx-unprivileged:1.27.3-alpine@sha256:6097fa6666257aa3e991a2d4b48df07468ea3adb58acba3ab9c6de34c664d714

# Arguments that can be passed at build time
ARG COMMIT_SHA=unknown
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ entrypoint_log() {
}

ME=$(basename $0)
DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf"
DEFAULT_CONF_FILE="etc/nginx/templates/default.conf.template"

# check if we have ipv6 available
if [ ! -f "/proc/net/if_inet6" ]; then
Expand Down
8 changes: 7 additions & 1 deletion docker/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ server {
index index.html;
try_files $uri $uri/ /index.html;

location ~ (config\.json|index\.html)$ {
add_header Cache-Control "max-age=0, no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires 0;
}

sub_filter '<base href=/' '<base href=${BASE_PATH}';
sub_filter_once on;
}
Expand All @@ -16,4 +22,4 @@ server {
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
62 changes: 36 additions & 26 deletions src/containers/DefaultContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,17 @@ export default {
subSectionUuid,
subSectionLabel,
) {
let sectionName = this.$route.meta.sectionName;
let sectionLabel = this.$t(this.$route.meta.i18n);
let sectionPath = this.$route.meta.sectionPath;
if (crumbName && subSectionName && subSectionUuid && subSectionLabel) {
return [
{ path: '', name: this.$t('message.home') },
{ path: sectionPath, name: sectionLabel },
{ path: '', name: 'Home', meta: { label: this.$t('message.home') } },
{
path: sectionPath,
name: sectionName,
meta: { label: sectionLabel },
},
{
name: subSectionName,
params: { uuid: subSectionUuid },
Expand All @@ -187,44 +192,49 @@ export default {
];
} else if (crumbName) {
return [
{ path: '', name: this.$t('message.home') },
{ path: sectionPath, name: sectionLabel },
{ path: '', name: 'Home', meta: { label: this.$t('message.home') } },
{
path: sectionPath,
name: sectionName,
meta: { label: sectionLabel },
},
{ name: crumbName, active: true },
];
} else {
return [
{ path: '', name: this.$t('message.home') },
{ path: sectionPath, name: sectionLabel },
{ path: '', name: 'Home', meta: { label: this.$t('message.home') } },
{
path: sectionPath,
name: sectionName,
meta: { label: sectionLabel },
},
];
}
},
},
mounted() {
if (this.$dtrack && this.$dtrack.version.includes('SNAPSHOT')) {
this.$root.$emit('bv::show::modal', 'snapshotModal');
}
this.isSidebarMinimized =
localStorage && localStorage.getItem('isSidebarMinimized') !== null
? localStorage.getItem('isSidebarMinimized') === 'true'
: false;
const sidebar = document.body;
if (sidebar) {
if (this.isSidebarMinimized) {
sidebar.classList.add('sidebar-minimized');
} else {
sidebar.classList.remove('sidebar-minimized');
}
this.isSidebarMinimized =
localStorage && localStorage.getItem('isSidebarMinimized') !== null
? localStorage.getItem('isSidebarMinimized') === 'true'
: false;
const sidebar = document.body;
if (sidebar) {
if (this.isSidebarMinimized) {
sidebar.classList.add('sidebar-minimized');
} else {
sidebar.classList.remove('sidebar-minimized');
}
this.$nextTick(() => {
const sidebarMinimizer = this.$el.querySelector('.sidebar-minimizer');
if (sidebarMinimizer) {
sidebarMinimizer.addEventListener(
'click',
this.handleMinimizedUpdate,
);
}
});
}
this.$nextTick(() => {
const sidebarMinimizer = this.$el.querySelector('.sidebar-minimizer');
if (sidebarMinimizer) {
sidebarMinimizer.addEventListener('click', this.handleMinimizedUpdate);
}
});
},
computed: {
name() {
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "Richtung",
"download_bom": "BOM herunterladen",
"download_component": "Komponenten herunterladen",
"edit": "Bearbeiten",
"edit_affected_component": "Bearbeiten Sie die betroffene Komponente",
"email": "E-Mail",
"empty_selection": "Keine Elemente ausgewählt",
"endpoints": "Endpunkte",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "Direction",
"download_bom": "Download BOM",
"download_component": "Download Components",
"edit": "Edit",
"edit_affected_component": "Edit Affected Component",
"email": "Email",
"empty_selection": "No items selected",
"endpoints": "Endpoints",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "Dirección",
"download_bom": "Descargar lista de materiales",
"download_component": "Descargar componentes",
"edit": "Editar",
"edit_affected_component": "Editar componente afectado",
"email": "Correo electrónico",
"empty_selection": "No hay elementos seleccionados",
"endpoints": "Puntos finales",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "Direction",
"download_bom": "Télécharger la nomenclature",
"download_component": "Télécharger les composants",
"edit": "Modifier",
"edit_affected_component": "Modifier le composant concerné",
"email": "Courriel",
"empty_selection": "Aucun élément sélectionné",
"endpoints": "Points de terminaison",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "दिशा",
"download_bom": "BOM डाउनलोड करें",
"download_component": "घटक डाउनलोड करें",
"edit": "संपादन करना",
"edit_affected_component": "प्रभावित घटक संपादित करें",
"email": "ईमेल",
"empty_selection": "कोई आइटम चयनित नहीं",
"endpoints": "अंतिमबिंदुओं",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "Direzione",
"download_bom": "Scarica distinta base",
"download_component": "Scarica Componenti",
"edit": "Modificare",
"edit_affected_component": "Modifica componente interessato",
"email": "E-mail",
"empty_selection": "Nessun elemento selezionato",
"endpoints": "Endpoint",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "方向",
"download_bom": "BOMをダウンロード",
"download_component": "コンポーネントをダウンロードする",
"edit": "編集",
"edit_affected_component": "影響を受けるコンポーネントの編集",
"email": "Eメール",
"empty_selection": "項目が選択されていません",
"endpoints": "エンドポイント",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "Kierunek",
"download_bom": "Pobierz BOM",
"download_component": "Pobierz komponenty",
"edit": "Redagować",
"edit_affected_component": "Edytuj komponent, którego dotyczy problem",
"email": "E-mail",
"empty_selection": "Nie wybrano żadnych elementów",
"endpoints": "Punkty końcowe",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "Direção",
"download_bom": "Baixe a lista técnica",
"download_component": "Baixar componentes",
"edit": "Editar",
"edit_affected_component": "Editar componente afetado",
"email": "E-mail",
"empty_selection": "Nenhum item selecionado",
"endpoints": "Pontos finais",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"direction": "Direção",
"download_bom": "Baixe a lista técnica",
"download_component": "Baixar componentes",
"edit": "Editar",
"edit_affected_component": "Editar componente afetado",
"email": "E-mail",
"empty_selection": "Nenhum item selecionado",
"endpoints": "Pontos finais",
Expand Down
Loading

0 comments on commit ebed999

Please sign in to comment.