neofonie / a11y Goto Github PK
View Code? Open in Web Editor NEWa little helper with big impact
Home Page: https://a11y.neofonie.de/
a little helper with big impact
Home Page: https://a11y.neofonie.de/
Aktuell gibt es nur simple Checkboxen und es fehlt die Option Codebeispiele zuhinterlegen.
Auch ein Playground mit Codepen (oder ähnliches) wäre dufte
Lokal gehts
<svelte:head>
<!-- TODO: https://www.npmjs.com/package/playground-elements?activeTab=readme#other -->
<script type="module" src="/node_modules/playground-elements/playground-ide.js"></script>
</svelte:head>
https://www.npmjs.com/package/playground-elements?activeTab=readme#other
Aktuell ist eine Checkbox in /src/routes/+page.svelte
https://github.com/Neofonie/a11y/blob/main/src/routes/%2Bpage.svelte
ein normales label
<label><input type="checkbox">Alle automatischen Accessibility-Tests laufen durch</label> <br />
Soll:
Baue daraus eine Checkbox Komponente Importiere diese und befülle mit Props
<Checkbox label="Alle automatischen Accessibility-Tests laufen durch">Code Beispiel</Checkbox>
Am Ende möchte man vielleicht nicht nur eine Seite sondern auch Unterseiten abtesten lassen
Dafür brauchen wir einen Crawler ob in svelte oder im Proxy
wenn der proxy angefragt wird dann wird ein ui feedback gebraucht
siehe hier
https://github.com/dutscher/bbx/blob/master/src/comps/Features/DarkmodeButton.svelte
<script>(() => {
if (localStorage.getItem('theme') === 'dark' || window.matchMedia('(prefers-color-scheme: dark)').matches) {
//document.body.classList.add('is-dark')
}
})()</script>
Damit es hier auch schön aussieht brauchen wir ein CSS-Framework
für alle die mitgewirkt haben solls avatare geben und mit auf die seite
siehe: https://github.com/ferdium/ferdium-app?tab=readme-ov-file#contributors-
Für gemeinsames codeformatting.
4 indents
Single quotes
200 linebreak
Der Iframe lädt eine Url und dann werden bestimmte A11y Regeln ausgeführt und es gibt am Ende eine Summary
Aktuell verliert die Seite ihren Zustand bei einem Reload
As user i want to have an editable drop-down rather then an input, to either enter my URL by myself or to select a predefined URL.
AC:
Optional:
maybe the selected value could be stored in localStorage for convenience
aktuell baut nur der main wir könnten aber auch eine infrastruktur für features bauen
ein commit auf einen feature branch löst eine github action aus.
diese action baut dann mit svelte-kit unter dem pfad a11y.neofonie.de/preview/pr-38/index.html
nach erfolgreichem build könnte die action einen link als kommentar in den pullrequest schreiben
http://a11y.neofonie.de:8443/https://google.com/
geht aktuell.
aber es soll auch :
https://a11y.neofonie.de:8443/https://google.com/
nvm + node 20 ✅
npm init + npm install ✅
npm run start ✅
cd /etc/nginx/sites-available
nano default
map $query_string $proxy_host {
"~^url=(.*)" $1;
default $query_string;
}
server {
listen 443 ssl;
server_name a11y.neofonie.de;
root /var/www/html;
index index.html;
ssl_certificate /etc/ssl/neofonie/fullchain.pem;
ssl_certificate_key /etc/ssl/neofonie/privkey.pem;
# a11y.neofonie.de/cors-hirse?url=google.com
location /cors-ng {
rewrite ^/cors-ng(.*) /$1 break;
resolver 8.8.8.8 valid=1h;
proxy_pass https://$proxy_host;
}
location /cors-js {
rewrite ^/cors-js(.*) /$1 break;
proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://a11y.neofonie.de:8443/https://$proxy_host;
}
location /cors {
proxy_pass http://a11y.neofonie.de:8443;
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.