refactor: rename to chain:studio-plugin WIT + provider chain
Tracks the platform's fai->chain rename: provider chain, WIT ABI chain:studio-plugin / chain:platform (binding paths/accessors), SDK pin. Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
021beaa962
commit
b1a20f0eaf
3 changed files with 7 additions and 7 deletions
12
src/lib.rs
12
src/lib.rs
|
|
@ -9,9 +9,9 @@
|
|||
|
||||
use fai_plugin_sdk::{bindings, export_plugin};
|
||||
|
||||
type ColorScheme = bindings::fai::studio_plugin::plugin_types::ColorScheme;
|
||||
type PluginError = bindings::fai::studio_plugin::plugin_types::PluginError;
|
||||
type RenderedOutput = bindings::fai::studio_plugin::plugin_types::RenderedOutput;
|
||||
type ColorScheme = bindings::chain::studio_plugin::plugin_types::ColorScheme;
|
||||
type PluginError = bindings::chain::studio_plugin::plugin_types::PluginError;
|
||||
type RenderedOutput = bindings::chain::studio_plugin::plugin_types::RenderedOutput;
|
||||
|
||||
const SPACE_LIGHT: [u32; 14] = [
|
||||
0xFF5E35B1, // primary — deep purple 600
|
||||
|
|
@ -49,7 +49,7 @@ const SPACE_DARK: [u32; 14] = [
|
|||
|
||||
struct SpacePlugin;
|
||||
|
||||
impl bindings::exports::fai::studio_plugin::theme::Guest for SpacePlugin {
|
||||
impl bindings::exports::chain::studio_plugin::theme::Guest for SpacePlugin {
|
||||
fn theme_for(brightness: String) -> Result<ColorScheme, PluginError> {
|
||||
let tokens = match brightness.as_str() {
|
||||
"light" => SPACE_LIGHT.to_vec(),
|
||||
|
|
@ -65,7 +65,7 @@ impl bindings::exports::fai::studio_plugin::theme::Guest for SpacePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
impl bindings::exports::fai::studio_plugin::translate::Guest for SpacePlugin {
|
||||
impl bindings::exports::chain::studio_plugin::translate::Guest for SpacePlugin {
|
||||
fn translate(
|
||||
_text: String,
|
||||
_from_locale: String,
|
||||
|
|
@ -77,7 +77,7 @@ impl bindings::exports::fai::studio_plugin::translate::Guest for SpacePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
impl bindings::exports::fai::studio_plugin::output_view::Guest for SpacePlugin {
|
||||
impl bindings::exports::chain::studio_plugin::output_view::Guest for SpacePlugin {
|
||||
fn render(
|
||||
_mime_type: String,
|
||||
_data: Vec<u8>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue