-
Notifications
You must be signed in to change notification settings - Fork 86
New architecture
Stéphane Brunner edited this page Mar 25, 2023
·
15 revisions
Lib | Remarque |
---|---|
node | |
npm |
Lib | Remarque |
---|---|
TypeScrypt | Typing Checking. Real useful for library upgrade (if the library (like OpenLayers) supports it), can ve consider as minimal documentation. |
OpenLayers | geo |
Lit | web components |
RxJS | Store |
i18next | Internationalization |
Transifex | Localization |
Lib | Remarque |
---|---|
Vite | Build, … |
Storybook | example, base of UI test |
Cypress | unit + e2e tests |
GitHub | Code, CI, ... hosting |
Lib | Remarque |
---|---|
Font awesome | icons (investigate integration) css ot js |
sanitize-html | secure query result before displaying it |
simptip | tooltip |
ESLint | lint |
Chromatic | UI test (screenshot of the examples) |
nvm | select node version |
make | if needed |
Prettier | code format |
pre-commit | Format, check (simple) code on commit |
What about projection and Cesium (3d) (who work only on EPSG:3857)
No more bootstrap, we currently use: tooltip, dropdown, modal, alert, popover and collapse.
- tooltip => simptip ?
- drop down, alert, collapse: not complicated
- no more popover
Use shadowdom. Customization with:
- CSS variable
- part and exportparts
=> standard way to customize the web components with shadow dom.
See: https://www.youtube.com/watch?v=Xt7blcyuw5s
Webpack replaced by Vite, will me relay simpler
Not so complicated r.g.
function greet(person, date) {
console.log(`Hello ${person}, today is ${date.toDateString()}!`);
}
=>
function greet(person: string, date: Date) {
console.log(`Hello ${person}, today is ${date.toDateString()}!`);
}
Used it in js:
import {library, icon} from '@fortawesome/fontawesome-svg-core';
import {faSolid} from '@fortawesome/free-solid-svg-icons';
import {html} from 'lit';;
library.add(faSolid);
html(icon({prefix: 'fas', iconName: 'camera'}).html[0]);