Compare commits
4 Commits
4695ec3aa9
...
sonar
| Author | SHA1 | Date | |
|---|---|---|---|
| 7aab12e593 | |||
| 32964ae1a1 | |||
| 6e5915b8cb | |||
| e3a7c7ef82 |
@@ -17,7 +17,14 @@ jobs:
|
||||
apt-get update
|
||||
apt-get install -y smbclient
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
npm ci
|
||||
|
||||
- name: build application
|
||||
run: |
|
||||
npm run prod:deploy
|
||||
|
||||
- name: Copy
|
||||
run: |
|
||||
smbclient //192.168.129.245/arne -U "${{ secrets.SAMBA_USER }}" "${{ secrets.SAMBA_PASSWORD }}" -c "cd \"letsencrypt/config/www\"; lcd \".\"; prompt; recurse; mput *"
|
||||
|
||||
smbclient //192.168.129.245/arne -U "${{ secrets.SAMBA_USER }}" "${{ secrets.SAMBA_PASSWORD }}" -c 'prompt OFF; recurse ON; cd letsencrypt/config/www/cptarn/; lcd dist/cpt-arn/browser/; mput *'
|
||||
|
||||
22
.gitea/workflows/sonar.yaml
Normal file
22
.gitea/workflows/sonar.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
name: SonarQube Scan
|
||||
jobs:
|
||||
sonarqube:
|
||||
name: SonarQube Trigger
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checking out
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||
fetch-depth: 0
|
||||
- name: SonarQube Scan
|
||||
uses: SonarSource/sonarqube-scan-action@v7.0.0 # Ex: v4.1.0 or sha1, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||
@@ -7,7 +7,8 @@
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test",
|
||||
"dev:deploy": "ng build --configuration=production --base-href /dev/ --deploy-url /dev/ && npx gzipper compress ./dist"
|
||||
"dev:deploy": "ng build --configuration=production --base-href /dev/ --deploy-url /dev/ && npx gzipper compress ./dist",
|
||||
"prod:deploy": "ng build --configuration=production --base-href / --deploy-url / && npx gzipper compress ./dist"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
||||
19
sonar-project.properties
Normal file
19
sonar-project.properties
Normal file
@@ -0,0 +1,19 @@
|
||||
# must be unique in a given SonarQube instance
|
||||
sonar.projectKey=CptArn-Homepage
|
||||
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
|
||||
sonar.projectName=CptArn Homepage
|
||||
sonar.projectVersion=20.x.x
|
||||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
||||
# This property is optional if sonar.modules is set.
|
||||
sonar.sources=src
|
||||
sonar.sourceEncoding=UTF-8
|
||||
sonar.exclusions=**/node_modules/**,**/*.stories.ts,**/*.spec.ts,**/jest.config.js,**/primeng-theme/**
|
||||
sonar.tests=
|
||||
sonar.test.exclusions=
|
||||
sonar.test.inclusions=**/*.spec.ts
|
||||
sonar.typescript.lcov.reportPaths=coverage/libs/base/lcov.info,coverage/libs/utils/lcov.info
|
||||
sonar.typescript.exclusions=**/**e2e/**,**/node_modules/**,**/stories.ts,**/typings.d.ts,**/main.ts,**/index.ts,**/environments/environment*.ts,**/test.ts,**/*module.ts,**/*routing.module.ts,**/*.js
|
||||
#----- Default SonarQube server
|
||||
sonar.host.url=http://10.0.1.245:9005
|
||||
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
|
||||
@media screen and (max-width: variables.$breakpoint) {
|
||||
.wrapper {
|
||||
padding: 0 2rem;
|
||||
padding: 0 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
@use "../../variables.scss" as variables;
|
||||
|
||||
:host {
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
font-style: italic;
|
||||
padding-bottom: 5rem;
|
||||
position: relative;
|
||||
top: 5rem;
|
||||
top: 2rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: "Jost";
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.contact {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@use "../../variables.scss";
|
||||
|
||||
:host {
|
||||
border-bottom: 1px solid #fff;
|
||||
border-bottom: 2px solid #fff;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -22,6 +22,7 @@ img {
|
||||
text-decoration: none;
|
||||
align-content: center;
|
||||
font-family: "Jost";
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +33,7 @@ img {
|
||||
}
|
||||
|
||||
:host {
|
||||
border-top: 1px solid #fff;
|
||||
border-top: 2px solid #fff;
|
||||
}
|
||||
|
||||
.menu {
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
<img class="mobile" src="assets/CPTARN_logo-figure_White.svg"/>
|
||||
<div class="mobile">
|
||||
<img src="assets/CPTARN_logo-figure_White.svg"/>
|
||||
</div>
|
||||
<p class="hero-text">NO LIMITS, JUST <span class="subSlogan">{{subSlogan}}</span></p>
|
||||
|
||||
@@ -34,9 +34,17 @@
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
border-bottom: 2px solid #fff;
|
||||
padding: 1rem 0;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
border-bottom: 1px solid #fff;
|
||||
max-width: 50%;
|
||||
margin: 0 auto;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<p>Welcome to my creative workspace! I’m a solution-driven freelancer with a passion for blending innovative thinking with technical know-how to bring unique ideas to life. Whether you’re looking to build a prototype, develop custom code, or create a tailored automation system, I’m here to help turn your vision into a reality. My approach combines hands-on experience with a fresh perspective, ensuring that every project isn’t just functional, but forwardthinking and impactful.</p>
|
||||
<a href="mailto:contact@cptarn.com" class="web">Contact</a>
|
||||
</div>
|
||||
<img src="assets/Website_Arne.svg" />
|
||||
<img class="arne" src="assets/Website_Arne.svg" />
|
||||
<a href="mailto:contact@cptarn.com" class="mobile">Contact</a>
|
||||
</div>
|
||||
<div class="right">
|
||||
|
||||
@@ -79,6 +79,11 @@ a {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.arne {
|
||||
max-width: 70%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
img {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
@@ -89,7 +94,7 @@ a {
|
||||
}
|
||||
:host {
|
||||
> div {
|
||||
margin-top: 3rem;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user