" @kirakira@furry.engineer
does anyone have a good primer on making activitypub enabled apps? i have an idea that i wanna get working but i don’t feel like reading 7,000 pages of activity pub spec
@kasdeya @desea yeah, you can overwrite any variables from bulma at :root and it will take effect through the whole library
https://bulma.io/documentation/customize/with-css-variables/
@kasdeya i’m trying to make a custom ui element which accepts a list of arbitrary data, then binds that data to templates at runtime
its kinda like this (sorry if this is fucked up or doesnt make sense)
# a protocol defining some thing which can be bound to some property
class Bindable(Protocol):
def bind(value):
raise NotImplementedError
# data that can be bound to a bindable object
class Property(Protocol):
@property
def value(self):
raise NotImplementedError
def has_updated() -> bool:
return True
# some ui element which can be cloned/instantiated to make copies
class Template(Protocol):
def instantiate() -> Bindable:
raise NotImplementedError
class ListUi:
_data_source: list[Property]
_template: Template
_ui_elements: list[Bindable]
_capacity: int
_index: int
@property
def data_source(self):
return self._data_source
@property.setter
def data_source(self, value):
this._data_source = value
self.rebind_items()
def bind_items(self):
visible = self._data_source[index:self._capacity]
iter = zip(self._ui_elements, visible)
for element, item in iter:
element.bind(item.value)
basically i just want to have a list of properties that will update their respective bound template when they change. unity has a pretty featureful system for handling this but Got Damb its complicated
i think one of the worst casualties of modern browsers / web stuff is the ctrl-f search
no more than half of the time when i press ctrl-f, it doesn’t do anything until i click around to find a spot that isn’t eating my inputs
and half of the times that it does open, it won’t find text that is clearly on the page
as far as i can tell there’s only two things that get named after people and it’s the two things that nobody wants: diseases and math
girl you must be very positive and have two bytes because ushort
What would you do if a fox cooked you dinner for some reason?
@catgirl_so @tempest @erin @kasdeya are we allowed to bring up quirks mode in addition to this?