Skip to content
Snippets Groups Projects
Commit a6ce6eda authored by Leander's avatar Leander
Browse files

ci: remove pipeline config, add built version and instructions in readme

parent 919bb0a3
Branches
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ pnpm-debug.log*
lerna-debug.log*
node_modules
dist
#dist
dist-ssr
*.local
......
default:
image: node:latest
before_script:
- npm ci --cache .npm --prefer-offline
- |
{
echo "@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/"
echo "${CI_API_V4_URL#https?}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}"
} | tee -a .npmrc
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm/
workflow:
rules:
- if: $CI_COMMIT_BRANCH
variables:
NPM_TOKEN: ${CI_JOB_TOKEN}
stages:
- build
- release
build:
stage: build
script:
- npm run build
publish:
stage: release
script:
- npm run semantic-release
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
\ No newline at end of file
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/gitlab",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
\ No newline at end of file
# Scouting tool
A visualization of data scraped from FBref.com, containing detailed statistics of soccer players.
## Review
A built version of this project is available under the `dist` folder.
The contained index.html file can be opened in a browser, however, you will receive a CORS error when trying to fetch the built assets.
To avoid this, you can run the command `npx vite preview`.
## Getting Started
1. Install dependencies by either running `npm ci` or `yarn`
2. Start the development server by running `npm run dev` or `yarn dev`
......
This diff is collapsed.
:root{--primary: #987070;--secondary: #C39898;--tertiary: #DBB5B5;--quaternary: #F1E5D1;--text: #333;--box-shadow: 0px 2px 15px 2px rgb(51 51 51 / 5%)}body{font-family:Segoe UI,sans-serif;background-image:linear-gradient(to right,var(--tertiary),var(--quaternary));color:var(--text)}body:before{content:"";position:fixed;top:10%;right:0;width:10rem;height:10rem;background-image:radial-gradient(circle,var(--tertiary),var(--secondary));filter:blur(125px);z-index:-1;animation:shimmer 10s infinite}body:after{content:"";position:fixed;bottom:10%;left:0;width:10rem;height:10rem;background-image:radial-gradient(circle,var(--tertiary),var(--secondary));filter:blur(125px);z-index:-1;animation:shimmer 10s infinite}h1{text-align:center;margin-bottom:2rem}.axis path,.axis line{fill:none;stroke:#333;shape-rendering:crispEdges}.axis text{font-family:sans-serif;font-size:11px}#tooltip{position:absolute;display:none;background:#fff;padding:8px 14px;border-radius:8px;border:1px solid #ccc;box-shadow:0 0 10px #0000001a}#app{display:flex;gap:1rem}#app .left,#app .right{position:relative;flex:1;text-align:center}#app .left #zoom-wrapper,#app .right #zoom-wrapper{position:absolute;bottom:1rem;right:0;width:400px;display:flex;align-items:center;justify-content:flex-end;gap:1rem}#app .left{flex:2}#app .right{flex:1}button{padding:.5rem;border:none;cursor:pointer;transition:transform .2s;background:linear-gradient(145deg,var(--primary),var(--secondary));color:#fff;border-radius:.5rem;min-width:3rem}button:hover{transform:scale(1.05)}input[type=text]{border-radius:.5rem;box-shadow:0 0 10px #0000001a;padding:.5rem;border:1px solid var(--text)}.search-wrapper{margin-bottom:1rem}@media (max-width: 1536px){#app{flex-direction:column}}@keyframes shimmer{0%{filter:blur(70px);transform:scale(1)}50%{filter:blur(100px);transform:scale(1.3)}to{filter:blur(70px);transform:scale(1)}}
This diff is collapsed.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Scouting tool</title>
<script type="module" crossorigin src="/assets/index-iwv3vsKO.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-yLQA1G0R.css">
</head>
<body>
<h1>Scouting tool</h1>
<div id="app">
<div class="left">
<div class="search-wrapper">
<label for="search">Spieler suchen:</label>
<input id="search" type="text" autoComplete="on" list="player-datalist"/>
<button id="search-button">🔎︎</button>
<datalist id="player-datalist"></datalist>
</div>
<div id="bubble-chart-wrapper">
</div>
<div id="zoom-wrapper">
<button id="zoom-out">-</button>
<input type="range" min="1" max="100" value="50" class="slider" id="zoom-slider"/>
<button id="zoom-in">+</button>
</div>
</div>
<div class="right">
<h2>Vergleichen</h2>
<div id="radar-chart-wrapper">
</div>
</div>
</div>
</body>
</html>
This diff is collapsed.
......@@ -10,9 +10,6 @@
"semantic-release": "semantic-release"
},
"devDependencies": {
"@semantic-release/git": "^10.0.1",
"@semantic-release/gitlab": "^13.1.0",
"@semantic-release/npm": "^12.0.1",
"@types/d3": "^7.4.3",
"sass": "^1.75.0",
"semantic-release": "^24.0.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment