Skip to content

Commit 3672068

Browse files
committed
added a footer with Copyright and inspired by
1 parent 83cd8d6 commit 3672068

File tree

3 files changed

+46
-46
lines changed

3 files changed

+46
-46
lines changed

index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="vite.svg" />
5+
<link rel="icon" type="image/x-icon" href="pheno-ranker-favicon-2x.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/muonw/powertable/package/dist/power-table.css">
8-
<title>sql.js-httpvfs Playground</title>
7+
<link
8+
rel="stylesheet"
9+
href="https://cdn.jsdelivr.net/gh/muonw/powertable/package/dist/power-table.css"
10+
/>
11+
<title>Pheno-Ranker Use Cases Playground</title>
912
</head>
1013
<body class="bg-white">
11-
<div id="app">
12-
</div>
14+
<div id="app"></div>
1315
<script type="module" src="./src/main.js"></script>
1416
</body>
1517
</html>

public/pheno-ranker-favicon-2x.png

14.4 KB
Loading

src/App.svelte

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,44 @@
11
<script>
2-
import { Button, ButtonGroup } from "flowbite-svelte";
3-
import { Spinner, Alert } from "flowbite-svelte";
4-
import { Heading, P, A } from "flowbite-svelte";
5-
import { Select, Input, Label, Helper } from "flowbite-svelte";
2+
import {
3+
A,
4+
Alert,
5+
Button,
6+
ButtonGroup,
7+
Heading,
8+
Input,
9+
Label,
10+
P,
11+
Spinner,
12+
} from "flowbite-svelte";
613
import { onMount } from "svelte";
14+
import { Sheet, FileJson2 } from "lucide-svelte";
15+
import { CodeJar } from "@novacbn/svelte-codejar";
716
817
import { createDbWorker } from "sql.js-httpvfs";
9-
import { PowerTable } from "@muonw/powertable";
10-
import { Sheet, FileJson2 } from "lucide-svelte";
1118
1219
import pTime from "p-time";
1320
import saveAs from "file-saver";
21+
1422
// @ts-ignore
1523
import PapaParse from "papaparse";
1624
import prettyBytes from "pretty-bytes";
1725
import pluralize from "pluralize";
1826
19-
import { CodeJar } from "@novacbn/svelte-codejar";
27+
import Prism from "prismjs";
28+
import "prismjs/components/prism-sql";
2029
30+
import { PowerTable } from "@muonw/powertable";
2131
import "@muonw/powertable/styles/power-table.scss";
2232
// import "@muonw/powertable/styles/power-table-mascara.scss";
2333
24-
let pageSize = "1024";
25-
let pageSizes = [
26-
{ value: "512", name: "512" },
27-
{ value: "1024", name: "1024" },
28-
{ value: "2048", name: "2048" },
29-
{ value: "4096", name: "4096" },
30-
{ value: "8192", name: "8192" },
31-
{ value: "16384", name: "16384" },
32-
{ value: "32768", name: "32768" },
33-
];
34+
let pageSize = "1024"; // Default page size for the database worker
3435
let sqlQuery = `SELECT * FROM tcga_table LIMIT 20;`;
3536
let activeTable = "";
3637
let selectedColumn = "";
3738
let searchValue = "";
38-
// let dbUrl = "https://nishad.github.io/sql.js-httpvfs-playground/db/imdb-titles-100000_1024_indexed.db";
39-
// let dbUrl =
40-
// "https://cnag-biomedical-informatics.github.io/sql.js-httpvfs-playground/db/tcga.db";
4139
let dbUrl =
4240
"https://raw.githubusercontent.com/CNAG-Biomedical-Informatics/cbi-datahub/refs/heads/main/sqlite/tcga.db";
4341
44-
import Prism from "prismjs";
45-
import "prismjs/components/prism-sql";
46-
4742
const highlight = (code, syntax) =>
4843
Prism.highlight(code, Prism.languages[syntax], syntax);
4944
@@ -244,25 +239,8 @@
244239
<div class=" px-4 mx-auto max-w-screen-xl">
245240
<div class="p-8">
246241
<Heading tag="h2" customeSize="text-4xl font-extrabold "
247-
>sql.js-httpvfs Playground</Heading
242+
>Pheno-Ranker Use Cases Playground</Heading
248243
>
249-
<P class="my-4 text-gray-500">
250-
This is a fork of nishad's sql.js-httpvfs playground
251-
</P>
252-
<A href="https://github.com/nishad/sql.js-httpvfs-playground"
253-
>Check it out here:
254-
<svg
255-
class="ml-1 w-6 h-6"
256-
fill="currentColor"
257-
viewBox="0 0 20 20"
258-
xmlns="http://www.w3.org/2000/svg"
259-
><path
260-
fill-rule="evenodd"
261-
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
262-
clip-rule="evenodd"
263-
/></svg
264-
>
265-
</A>
266244
</div>
267245
268246
{#if sqliteFiles.length}
@@ -404,3 +382,23 @@
404382
rel="stylesheet"
405383
/>
406384
</svelte:head>
385+
386+
<footer class="bg-gray-100 text-center py-4 mt-8">
387+
<span class="text-sm text-gray-600">
388+
Copyright &copy; 2025
389+
<A
390+
href="https://github.com/CNAG-Biomedical-Informatics"
391+
target="_blank"
392+
rel="noopener noreferrer"
393+
>
394+
CNAG-Biomedical-Informatics
395+
</A>
396+
inspired by
397+
<A
398+
href="https://github.com/nishad/sql.js-httpvfs-playground"
399+
target="_blank"
400+
rel="noopener noreferrer"
401+
>nishad's sql.js-httpvfs-playground
402+
</A>
403+
</span>
404+
</footer>

0 commit comments

Comments
 (0)