Skip to content

Commit 53264a1

Browse files
committed
Update dependencies, seo tags and icons
Switch to pnpm
1 parent 4b05baf commit 53264a1

26 files changed

+5696
-11219
lines changed

.eslintrc

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github: Simonwep
1+
github: simonwep
22
patreon: simonwep
33
custom: ["paypal.me/simonreinisch", "buymeacoffee.com/aVc3krbXQ"]

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Main
2+
3+
on: ["push", "pull_request"]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: pnpm/action-setup@v4
11+
with:
12+
version: 9.15.0
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 22
18+
cache: 'pnpm'
19+
20+
- name: Install dependencies
21+
run: pnpm install
22+
23+
- name: Install browsers
24+
run: npx puppeteer browsers install chrome
25+
26+
- name: Lint
27+
run: pnpm run lint
28+
29+
- name: Build
30+
run: pnpm run build
31+
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v3
34+
with:
35+
path: dist
36+
37+
deploy:
38+
name: Deploy
39+
runs-on: ubuntu-22.04
40+
if: github.ref == 'refs/heads/master'
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
steps:
45+
- name: Deploy to GitHub Pages
46+
uses: actions/deploy-pages@v4

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Simon Reinisch
3+
Copyright (c) 2021-Present Simon Reinisch
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

eslint.config.mjs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import js from '@eslint/js';
2+
import react from 'eslint-plugin-react';
3+
import ts from 'typescript-eslint';
4+
import tsParser from '@typescript-eslint/parser';
5+
import prettier from 'eslint-plugin-prettier/recommended';
6+
import globals from 'globals';
7+
8+
export default [
9+
js.configs.recommended,
10+
react.configs.flat.recommended,
11+
...ts.configs.recommended,
12+
prettier,
13+
{
14+
files: ['**/*.ts', '**/*.tsx', '**/*.mjs', '**/*.js'],
15+
languageOptions: {
16+
parser: tsParser,
17+
parserOptions: {
18+
ecmaVersion: 'latest',
19+
sourceType: 'module',
20+
ecmaFeatures: {
21+
jsx: true
22+
}
23+
},
24+
globals: {
25+
...globals.node
26+
}
27+
},
28+
settings: {
29+
react: {
30+
version: '18'
31+
}
32+
},
33+
rules: {
34+
'react/no-unknown-property': 'off',
35+
'react/react-in-jsx-scope': 'off',
36+
'react/prop-types': 'off',
37+
'react/no-unescaped-entities': ['error', { forbid: ['>', '}'] }],
38+
'prettier/prettier': [
39+
'error',
40+
{
41+
jsonRecursiveSort: true,
42+
printWidth: 120,
43+
singleQuote: true,
44+
trailingComma: 'none'
45+
}
46+
]
47+
}
48+
}
49+
];

index.html

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,40 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Audio Spectrum Analyzer</title>
77

8-
<!-- Chrome, Firefox OS and Opera -->
8+
<!-- Theme color -->
99
<meta name="theme-color" content="#000000" />
10-
11-
<!-- Windows Phone -->
1210
<meta name="msapplication-navbutton-color" content="#000000" />
13-
14-
<!-- iOS Safari -->
1511
<meta name="apple-mobile-web-app-status-bar-style" content="#000000" />
1612

17-
<!-- Favicons -->
18-
<link rel="icon" href="favicon.svg" />
19-
<link rel="fluid-icon" href="favicon.svg" />
20-
<link rel="apple-touch-icon" href="favicon.svg" />
21-
2213
<!-- SEO -->
2314
<meta name="audience" lang="en" content="all" />
15+
<meta name="topic" content="Application, Audio, Visualizer, PWA">
16+
<meta name="summary" content="Portfolio from Simon Reinisch">
2417
<meta name="expires" content="7 days" />
25-
<meta name="robots" content="follow" />
2618
<meta name="revisit-after" content="7 days" />
2719
<meta name="page-topic" content="Audio Spectrum Analyzer" />
28-
<meta name="copyright" content="Simon Reinisch" />
29-
<meta name="author" content="Simon Reinisch" />
30-
<meta name="description" content="" />
31-
<meta name="keywords" content="audio, fft, spectrum, analyzer, pwa, web-app" />
32-
33-
<!-- Open Graph / Facebook -->
34-
<meta property="og:image" content="favicon.co" />
20+
<meta name="copyright" content="Simon Reinisch">
21+
<meta name="owner" content="Simon Reinisch">
22+
<meta name="author" content="Simon Reinisch">
23+
<meta name="robots" content="index, follow" />
24+
<meta name="description" content="Simple audio spectrum analyzer, can analyze audio input from the microphone as well as audio files." />
25+
<meta name="keywords" content="audio, spectrum, visualizer, analyzer, pwa, web-app, fft" />
26+
27+
<!-- Open Graph -->
3528
<meta property="og:type" content="website" />
3629
<meta property="og:url" content="https://spectrum.reinisch.io" />
3730
<meta property="og:site_name" content="Audio Spectrum Analyzer" />
3831
<meta property="og:title" content="Audio Spectrum Analyzer" />
39-
<meta property="og:description" content="A small audio spectrum visualizer." />
32+
<meta property="og:description" content="Simple audio spectrum analyzer, can analyze audio input from the microphone as well as audio files." />
33+
<meta property="og:description" content="Portfolio of an software architect with a drive for perfection." />
4034

41-
<!-- Twitter -->
42-
<meta property="twitter:url" content="https://spectrum.reinisch.io">
43-
<meta property="twitter:title" content="Audio Spectrum Analyzer">
44-
<meta property="twitter:description" content="A small audio spectrum visualizer.">
45-
<meta property="twitter:image" content="favicon.png">
35+
<!-- Icons -->
36+
<link rel="icon" href="/favicon.ico" sizes="32x32">
37+
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml">
38+
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
4639

4740
<!-- Analytics -->
48-
<script async src="https://ackee.reinisch.io/tracker.js" data-ackee-server="https://ackee.reinisch.io" data-ackee-domain-id="b0c5af46-63e4-46ba-afb0-95b2cea6072b" data-ackee-opts='{"detailed": true}'></script>
49-
</head>
50-
41+
<script defer src="https://numai.reinisch.io/script.js" data-website-id="87a8f46b-ea2c-4630-a42e-05aa89a05de4"></script> </head>
5142
<body>
5243
<div id="app"></div>
5344
<script type="module" src="/src/main.tsx"></script>

0 commit comments

Comments
 (0)