Skip to content

Commit

Permalink
Merge pull request #1868 from kujirahand/add_gyousoroe
Browse files Browse the repository at this point in the history
plugin_browserで「DOM和スタイル」に「行揃え」のエイリアス「行揃」を追加 #1859
  • Loading branch information
kujirahand authored Dec 19, 2024
2 parents 02250f6 + 427971d commit 8bcad69
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/plugin_browser_dom_basic.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (22.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (20.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Type 'string[]' cannot be used as an index type.

Check failure on line 1 in src/plugin_browser_dom_basic.mts

View workflow job for this annotation

GitHub Actions / build (18.x)

Type 'string[]' cannot be used as an index type.
// @ts-nocheck
import { NakoSystem } from '../core/src/plugin_api.mjs'
export default {
// @DOM操作
'DOCUMENT': { type: 'const', value: '' }, // @DOCUMENT
Expand Down Expand Up @@ -32,11 +32,11 @@ export default {
type: 'func',
josi: [['の', 'を']],
pure: true,
fn: function (q: any) {
fn: function (q: any, sys: NakoSystem) {
const domList = Array.from(document.querySelectorAll(q))
if (!domList) { return [] }
for (const dom of domList) {
sys.__addPropMethod(dom)
(sys as any).__addPropMethod(dom)
}
return domList
}
Expand Down Expand Up @@ -264,7 +264,8 @@ export default {
'マージン': 'margin',
'余白': 'padding',
'文字サイズ': 'font-size',
'行揃え': 'text-align',
'行揃え': 'text-align', // 送り仮名の省略により、うまくアクセスできない #1859
'行揃': 'text-align',
'上': 'top',
'左': 'left',
'右': 'right',
Expand Down

0 comments on commit 8bcad69

Please sign in to comment.