mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 03:23:09 +03:00
kiln: update %kiln-bump poke and mark
This commit is contained in:
parent
6332a8c4e2
commit
53531eaf10
@ -1,23 +1,13 @@
|
||||
|%
|
||||
+$ bump [except=(set desk) force=_|]
|
||||
--
|
||||
|_ b=bump
|
||||
|_ ~
|
||||
++ grad %noun
|
||||
++ grab
|
||||
|%
|
||||
++ noun bump
|
||||
++ json
|
||||
^- $-(^json bump)
|
||||
=, dejs:format
|
||||
%- ot
|
||||
:~ except+(as so)
|
||||
force+bo
|
||||
==
|
||||
++ noun ,~
|
||||
++ json ul:dejs:format
|
||||
--
|
||||
++ grow
|
||||
|%
|
||||
++ noun b
|
||||
++ noun ~
|
||||
++ json ~
|
||||
--
|
||||
--
|
||||
|
||||
|
||||
--
|
@ -88,8 +88,8 @@ export const BasicNotification = ({ notification, lid }: BasicNotificationProps)
|
||||
</header>
|
||||
{contents.length > 0 ? (
|
||||
<div className="leading-tight note-grid-body sm:leading-normal space-y-2">
|
||||
{take(contents, MAX_CONTENTS).map((content) => (
|
||||
<p className="">
|
||||
{take(contents, MAX_CONTENTS).map((content, i) => (
|
||||
<p className="" key={i}>
|
||||
<NotificationText contents={content} />
|
||||
</p>
|
||||
))}
|
||||
|
@ -45,7 +45,7 @@ export const BaseBlockedNotification = () => {
|
||||
const basePike = usePike('base');
|
||||
const { push } = useHistory();
|
||||
// TODO: assert weft.name === 'zuse'??
|
||||
const newKelvin = basePike?.wefts[0]?.kelvin ?? 418;
|
||||
const newKelvin = basePike?.wefts[0]?.kelvin ?? 417;
|
||||
const charges = useCharges();
|
||||
const [blocked] = useKilnState((s) => {
|
||||
const [b, u] = partition(Object.entries(s.pikes), ([, pike]) => pikeIsBlocked(newKelvin, pike));
|
||||
|
@ -26,8 +26,8 @@ export const Grid: FunctionComponent = () => {
|
||||
window.location.reload();
|
||||
}
|
||||
const start = performance.now();
|
||||
await useKilnState.getState().fetchVats();
|
||||
await useKilnState.getState().fetchVats();
|
||||
await useKilnState.getState().fetchPikes();
|
||||
await useKilnState.getState().fetchPikes();
|
||||
if (performance.now() - start > 5000) {
|
||||
attempt(count + 1);
|
||||
} else {
|
||||
|
@ -96,11 +96,11 @@ export function kilnRevive(
|
||||
};
|
||||
}
|
||||
|
||||
export function kilnBump() {
|
||||
export function kilnBump(): Poke<any> {
|
||||
return {
|
||||
app: 'hood',
|
||||
mark: 'kiln-bump',
|
||||
json: {}
|
||||
json: null,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user