This is the code that runs https://bandolier.learnjsthehardway.com/ for you to review. It uses the https://git.learnjsthehardway.com/learn-javascript-the-hard-way/bandolier-template to create the documentation for the project.
https://bandolier.learnjsthehardway.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
746 B
25 lines
746 B
2 years ago
|
<script>
|
||
|
import { onMount } from 'svelte';
|
||
|
import Spinner from "$/client/components/Spinner.svelte";
|
||
|
|
||
|
let tos_list = [];
|
||
|
|
||
|
onMount(async () => {
|
||
|
let res = await fetch(`/tos.json`, {credentials: 'same-origin'});
|
||
|
tos_list = await res.json();
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
{#each tos_list as section (section.metadata.id)}
|
||
|
<callout>
|
||
|
<b>TLDR:</b> "{@html section.metadata.summary}"
|
||
|
</callout>
|
||
|
<div>
|
||
|
{@html section.content}
|
||
|
</div>
|
||
|
{:else}
|
||
|
<Spinner />
|
||
|
{/each}
|
||
|
|
||
|
<p style="font-size: 0.8em">These Terms of Service modified from <a href="https://tldrlegal.com/license/tldrlegal-terms-of-service#fulltext">TLDRLegal's TOS</a>, with permission and are licensed <a href="http://creativecommons.org/licenses/by/3.0/legalcode">CC-BY</a>.</p>
|