Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charlotte
Sharkey
Commits
24a3a0bb
Commit
24a3a0bb
authored
2 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
fix(client): An error occurs when you press the Play button of Misskey Play
Fix #10381
parent
78a3d78a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/frontend/src/scripts/aiscript/ui.ts
+16
-16
16 additions, 16 deletions
packages/frontend/src/scripts/aiscript/ui.ts
with
16 additions
and
16 deletions
packages/frontend/src/scripts/aiscript/ui.ts
+
16
−
16
View file @
24a3a0bb
...
...
@@ -471,7 +471,7 @@ export function registerAsUiLib(components: Ref<AsUiComponent>[], done: (root: R
components
.
push
(
component
);
const
instance
=
values
.
OBJ
(
new
Map
([
[
'
id
'
,
values
.
STR
(
_id
)],
[
'
update
'
,
values
.
FN_NATIVE
(
async
([
def
],
opts
)
=>
{
[
'
update
'
,
values
.
FN_NATIVE
(([
def
],
opts
)
=>
{
utils
.
assertObject
(
def
);
const
updates
=
getOptions
(
def
,
call
);
for
(
const
update
of
def
.
value
.
keys
())
{
...
...
@@ -491,13 +491,13 @@ export function registerAsUiLib(components: Ref<AsUiComponent>[], done: (root: R
return
{
'
Ui:root
'
:
rootInstance
,
'
Ui:patch
'
:
values
.
FN_NATIVE
(
async
([
id
,
val
],
opts
)
=>
{
'
Ui:patch
'
:
values
.
FN_NATIVE
(([
id
,
val
],
opts
)
=>
{
utils
.
assertString
(
id
);
utils
.
assertArray
(
val
);
patch
(
id
.
value
,
val
.
value
,
opts
.
call
);
}),
'
Ui:get
'
:
values
.
FN_NATIVE
(
async
([
id
],
opts
)
=>
{
'
Ui:get
'
:
values
.
FN_NATIVE
(([
id
],
opts
)
=>
{
utils
.
assertString
(
id
);
const
instance
=
instances
[
id
.
value
];
if
(
instance
)
{
...
...
@@ -508,7 +508,7 @@ export function registerAsUiLib(components: Ref<AsUiComponent>[], done: (root: R
}),
// Ui:root.update({ children: [...] }) の糖衣構文
'
Ui:render
'
:
values
.
FN_NATIVE
(
async
([
children
],
opts
)
=>
{
'
Ui:render
'
:
values
.
FN_NATIVE
(([
children
],
opts
)
=>
{
utils
.
assertArray
(
children
);
rootComponent
.
value
.
children
=
children
.
value
.
map
(
v
=>
{
...
...
@@ -517,51 +517,51 @@ export function registerAsUiLib(components: Ref<AsUiComponent>[], done: (root: R
});
}),
'
Ui:C:container
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:container
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
container
'
,
def
,
id
,
getContainerOptions
,
opts
.
call
);
}),
'
Ui:C:text
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:text
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
text
'
,
def
,
id
,
getTextOptions
,
opts
.
call
);
}),
'
Ui:C:mfm
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:mfm
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
mfm
'
,
def
,
id
,
getMfmOptions
,
opts
.
call
);
}),
'
Ui:C:textarea
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:textarea
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
textarea
'
,
def
,
id
,
getTextareaOptions
,
opts
.
call
);
}),
'
Ui:C:textInput
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:textInput
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
textInput
'
,
def
,
id
,
getTextInputOptions
,
opts
.
call
);
}),
'
Ui:C:numberInput
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:numberInput
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
numberInput
'
,
def
,
id
,
getNumberInputOptions
,
opts
.
call
);
}),
'
Ui:C:button
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:button
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
button
'
,
def
,
id
,
getButtonOptions
,
opts
.
call
);
}),
'
Ui:C:buttons
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:buttons
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
buttons
'
,
def
,
id
,
getButtonsOptions
,
opts
.
call
);
}),
'
Ui:C:switch
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:switch
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
switch
'
,
def
,
id
,
getSwitchOptions
,
opts
.
call
);
}),
'
Ui:C:select
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:select
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
select
'
,
def
,
id
,
getSelectOptions
,
opts
.
call
);
}),
'
Ui:C:folder
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:folder
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
folder
'
,
def
,
id
,
getFolderOptions
,
opts
.
call
);
}),
'
Ui:C:postFormButton
'
:
values
.
FN_NATIVE
(
async
([
def
,
id
],
opts
)
=>
{
'
Ui:C:postFormButton
'
:
values
.
FN_NATIVE
(([
def
,
id
],
opts
)
=>
{
return
createComponentInstance
(
'
postFormButton
'
,
def
,
id
,
getPostFormButtonOptions
,
opts
.
call
);
}),
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment