Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b00180a

Browse files
committed
Add new runtimes in stores to Header and add a variable to show envs
1 parent 944b3fe commit b00180a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pyscriptjs/src/Header.svelte

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import Fa from 'svelte-fa'
33
import { faCog } from '@fortawesome/free-solid-svg-icons'
4+
import { loadedEnvironments } from './stores';
45
56
export let name = "PyScript";
67
export let editMode = true;
@@ -21,6 +22,13 @@
2122
function addInterpreter(evt){
2223
console.log("add interpreter");
2324
}
25+
26+
function showSettings(evt){
27+
console.log($loadedEnvironments);
28+
}
29+
30+
31+
let open = true;
2432
2533
</script>
2634

@@ -55,11 +63,12 @@
5563

5664
<!-- Profile dropdown -->
5765
<div class="ml-3 relative">
58-
<button type="button" class="bg-gray-800 p-1 rounded-full text-gray-400 hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
66+
<button type="button" on:click={showSettings} class="bg-gray-800 p-1 rounded-full text-gray-400 hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
5967
<span class="sr-only">View notifications</span>
6068
<!-- Settings Icon -->
6169
<Fa icon={faCog} />
6270
</button>
71+
6372
<!-- <div>
6473
<button type="button" class="max-w-xs bg-gray-800 rounded-full flex items-center text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white" id="user-menu-button" aria-expanded="false" aria-haspopup="true">
6574
<span class="sr-only">Open user menu</span>

0 commit comments

Comments
 (0)