File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import Fa from ' svelte-fa'
3
3
import { faCog } from ' @fortawesome/free-solid-svg-icons'
4
+ import { loadedEnvironments } from ' ./stores' ;
4
5
5
6
export let name = " PyScript" ;
6
7
export let editMode = true ;
21
22
function addInterpreter(evt ){
22
23
console .log (" add interpreter" );
23
24
}
25
+
26
+ function showSettings(evt ){
27
+ console .log ($loadedEnvironments );
28
+ }
29
+
30
+
31
+ let open = true ;
24
32
25
33
</script >
26
34
55
63
56
64
<!-- Profile dropdown -->
57
65
<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" >
59
67
<span class =" sr-only" >View notifications</span >
60
68
<!-- Settings Icon -->
61
69
<Fa icon ={faCog } />
62
70
</button >
71
+
63
72
<!-- <div>
64
73
<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">
65
74
<span class="sr-only">Open user menu</span>
You can’t perform that action at this time.
0 commit comments