@humandialog/forms.svelte 1.8.13 → 1.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/console.svelte +12 -2
- package/package.json +1 -1
- package/stores.js +3 -3
package/console.svelte
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { reef, session } from "@humandialog/auth.svelte";
|
|
3
3
|
import { afterUpdate } from "svelte";
|
|
4
|
-
import { contextTypesStore, contextItemsStore} from './stores.js'
|
|
4
|
+
import { contextTypesStore, contextItemsStore, bottom_bar_visible_store} from './stores.js'
|
|
5
|
+
import Ricon from './components/r.icon.svelte'
|
|
5
6
|
|
|
6
7
|
let prevLines = [];
|
|
7
8
|
let prompt = '>'
|
|
@@ -169,15 +170,24 @@
|
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
|
|
173
|
+
function closeConsole()
|
|
174
|
+
{
|
|
175
|
+
$bottom_bar_visible_store = false
|
|
176
|
+
}
|
|
177
|
+
|
|
172
178
|
</script>
|
|
173
179
|
|
|
174
180
|
<div class="h-full overflow-y-auto overscroll-contain">
|
|
175
|
-
|
|
181
|
+
<!--button class="fixed right-0 m-2 w-6 h-6 text-stone-200 {protoButtonBorderClass}" on:click={protoChange}>
|
|
176
182
|
<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
177
183
|
<path d="M16 4C14 4 11 5 11 9C11 13 11 15 11 18C11 21 6 23 6 23C6 23 11 25 11 28C11 31 11 35 11 39C11 43 14 44 16 44"/>
|
|
178
184
|
<path d="M32 4C34 4 37 5 37 9C37 13 37 15 37 18C37 21 42 23 42 23C42 23 37 25 37 28C37 31 37 35 37 39C37 43 34 44 32 44"/>
|
|
179
185
|
</svg>
|
|
186
|
+
</button-->
|
|
187
|
+
<button class="fixed right-0 m-2 w-6 h-6 text-stone-200 {protoButtonBorderClass}" on:click={closeConsole}>
|
|
188
|
+
<Ricon icon='x' />
|
|
180
189
|
</button>
|
|
190
|
+
|
|
181
191
|
|
|
182
192
|
<div class="p-2 w-full min-h-full
|
|
183
193
|
bg-stone-800 border-l border-t border-black font-mono text-stone-200">
|
package/package.json
CHANGED
package/stores.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import {writable, get, derived} from 'svelte/store';
|
|
3
3
|
import {SCREEN_SIZES, randomString} from './utils.js'
|
|
4
|
-
import {navGetKey, localStorageSave, localStorageRead, hasLocalStorage} from './utils.js'
|
|
4
|
+
import {navGetKey, localStorageSave, localStorageRead, hasLocalStorage, sessionStorageSave, sessionStorageRead} from './utils.js'
|
|
5
5
|
import { location } from 'svelte-spa-router';
|
|
6
6
|
|
|
7
7
|
export const data_tick_store = writable(1);
|
|
@@ -146,8 +146,8 @@ export function set_default_tools_visible(value, force)
|
|
|
146
146
|
tools_visible_store.set(value)
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export const bottom_bar_visible_store = writable(
|
|
150
|
-
bottom_bar_visible_store.subscribe( (value) => {
|
|
149
|
+
export const bottom_bar_visible_store = writable( sessionStorageRead('bottom_bar_visible_store') == 'true');
|
|
150
|
+
bottom_bar_visible_store.subscribe( (value) => { sessionStorageSave('bottom_bar_visible_store', (value ? 'true' : '')) } );
|
|
151
151
|
|
|
152
152
|
export const right_sidebar_visible_store = writable(false)
|
|
153
153
|
export const visible_property_tab_store = writable('');
|