ajout des elements
This commit is contained in:
+37
-18
@@ -12,27 +12,46 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/riot@9/riot+compiler.min.js"></script>
|
||||
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<app></app>
|
||||
<body>
|
||||
<app></app>
|
||||
|
||||
<script src="./components/search-bar.riot" type="riot"></script>
|
||||
<script src="./components/result-list.riot" type="riot"></script>
|
||||
<script src="./components/detail-view.riot" type="riot"></script>
|
||||
<script src="./components/map-view.riot" type="riot"></script>
|
||||
<script src="./app.riot" type="riot"></script>
|
||||
<script src="./components/search-bar.riot" type="riot"></script>
|
||||
<script src="./components/result-list.riot" type="riot"></script>
|
||||
<script src="./components/detail-view.riot" type="riot"></script>
|
||||
<script src="./components/map-view.riot" type="riot"></script>
|
||||
<script src="./app.riot" type="riot"></script>
|
||||
|
||||
<script type="module">
|
||||
import { fetchFormations } from './api.js'
|
||||
import { createFormation } from './formation.js'
|
||||
<script type="module">
|
||||
import { fetchFormations, fetchFormationHistory } from './api.js'
|
||||
import { createFormation } from './formation.js'
|
||||
import {
|
||||
auth,
|
||||
db,
|
||||
createAccount,
|
||||
login,
|
||||
logout,
|
||||
onUserChanged,
|
||||
saveUserData,
|
||||
loadUserData
|
||||
} from './firebase.js'
|
||||
|
||||
window.fetchFormations = fetchFormations
|
||||
window.createFormation = createFormation
|
||||
</script>
|
||||
window.fetchFormations = fetchFormations
|
||||
window.createFormation = createFormation
|
||||
window.fetchFormationHistory = fetchFormationHistory
|
||||
|
||||
<script>
|
||||
riot.compile().then(() => {
|
||||
window.firebaseServices = {
|
||||
auth,
|
||||
db,
|
||||
createAccount,
|
||||
login,
|
||||
logout,
|
||||
onUserChanged,
|
||||
saveUserData,
|
||||
loadUserData
|
||||
}
|
||||
|
||||
await riot.compile()
|
||||
riot.mount('app')
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user