Skip to content

Commit db6938a

Browse files
author
=
committed
Merge branch 'develop'
2 parents 0da8081 + b25835f commit db6938a

File tree

273 files changed

+42270
-8454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+42270
-8454
lines changed

.babelrc

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

.browserslistrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Browsers that we support
2+
3+
> 0.25%
4+
not dead

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.env.sample

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MAPBOX_TOKEN=
2+
API_SERVER=
3+
ROUTING_SERVER=
4+
TILE_SERVER=
5+
ANALYTICS=no
6+
ANALYTICS_SERVER=
7+
ANALYTICS_KEY=

.eslintrc

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,22 @@
1-
extends:
2-
eslint-config-airbnb
3-
4-
parser:
5-
babel-eslint
6-
7-
settings:
8-
ecmascript: 6
9-
10-
ecmaFeatures:
11-
jsx: true
12-
modules: true
13-
destructuring: true
14-
classes: true
15-
forOf: true
16-
blockBindings: true
17-
arrowFunctions: true
18-
19-
env:
20-
browser: true
21-
22-
rules:
23-
indent: 2
24-
func-style: 0
25-
func-names: 0
26-
comma-dangle: 0
27-
no-console: 0
28-
no-param-reassign: 0
29-
linebreak-style: 0
30-
import/no-extraneous-dependencies: 0
31-
import/no-unresolved: 0
32-
import/extensions: 0
33-
jsx-quotes: [2, "prefer-single"]
34-
react/jsx-filename-extension: 0
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:react/recommended",
5+
"plugin:jsx-a11y/recommended",
6+
"plugin:import/errors",
7+
"prettier"
8+
],
9+
"parser": "babel-eslint",
10+
"parserOptions": {
11+
"ecmaVersion": 6,
12+
"sourceType": "module"
13+
},
14+
"env": {
15+
"es6": true,
16+
"browser": true,
17+
"node": true
18+
},
19+
"settings": {
20+
"import/resolver": "webpack"
21+
}
22+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ static
55
*.log*
66
_nogit
77
*.swp
8+
public
89

10+
.env
911
set_envs.sh

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

ACCESSIBILITY-AUDIT.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Accessibility Audit
2+
3+
We want AccessMap to be an accessible web site for screen readers and tab navigation.
4+
At the moment, we are limited by the component toolkit we've adopted, `react-md`, which
5+
has decent aria-label/accessibility support, but still has significant holes.
6+
7+
The most popular issue on GitHub for the `react-md` repository indicates that it may
8+
no longer be under particularly active development, so we should consider using a
9+
different toolkit and/or rolling our own. Wrapping web components could be a nice way
10+
forward.
11+
12+
## Known issues
13+
14+
### `role="radio"` combined with `aria-pressed` for radio control groups
15+
16+
The profile selection tabs are modeled as a radio control group, and each selection
17+
has `role="radio"`. Because `react-md` represents the icons for radio buttons using
18+
their internal `AccessibleFakeInkedButton` component, they come with an inappropriate
19+
`aria` attribute: `aria-pressed`.
20+
21+
Proposed solution: write our own control group widget and/or switch to a new
22+
component kit.
23+
24+
### Slider thumbs have no labels, are announced as "button" on screen readers
25+
26+
There is no way to add a label to slider thumbs due to how they are implemented in
27+
`react-md`. As they have `role="button"`, they get announced as "button", which is
28+
useless for someone using a screen reader.
29+
30+
### Keyboard navigation of profiles is awkward, lacks feedback, doesn't meet ARIA
31+
32+
Tab navigation should highlight the profiles group and moving left/right with the
33+
keyboard should change profiles, same as a radio button group. It doesn't. Instead, it
34+
shows no feedback whatsoever, and the user is expected to hit 'space' to select a
35+
profile. This is part of `react-md`'s core behavior.
36+
37+
Proposed solution: write our own control group and/or switch to a new component kit.

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:10-alpine
2+
3+
RUN apk add --no-cache sqlite-dev
4+
5+
WORKDIR /www/
6+
7+
COPY . /www/
8+
9+
RUN if [ -d node_modules ]; then rm -r node_modules; fi
10+
11+
RUN npm ci

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# accessmap-webapp
2+
3+
## Installation
4+
5+
## Configuration
6+
7+
Set the environment variables found in `set_envs.sample`.
8+
9+
#### Important: if running the development server, prefix all `SERVER`
10+
11+
variables with http://. The proxy won't work otherwise and all the servers will
12+
break
13+
14+
## Sponsors / Supporters of Open Source
15+
16+
Continued development of AccessMap is sponsored by the Taskar Center for Accessible
17+
Technology.
18+
19+
Hosting of AccessMap is sponsored by Microsoft Azure.
20+
21+
Cross-browser testing is supported by
22+
[![BrowserStack](assets/logos/browserstack.png)](https://www.browserstack.com) (BrowserStack).

0 commit comments

Comments
 (0)