-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-plugin-version.html
More file actions
41 lines (36 loc) · 1.56 KB
/
test-plugin-version.html
File metadata and controls
41 lines (36 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<title>Plugin Version Test</title>
</head>
<body>
<h1>Plugin Version Test</h1>
<div id="result"></div>
<script type="module">
// PluginRegistryをインポート
import { PluginRegistry } from './charmflow_v3/js/plugin-registry.js'
async function testPluginLoading() {
const registry = new PluginRegistry()
const resultDiv = document.getElementById('result')
try {
// HTTPリクエストプラグインのマニフェストを読み込み
const manifest = await registry.loadPluginManifest('network', 'http-request')
if (manifest) {
resultDiv.innerHTML = `
<h2>✅ HTTPリクエストプラグイン読み込み成功</h2>
<pre>${JSON.stringify(manifest, null, 2)}</pre>
<p>nyacoreVersion: ${manifest.nyacoreVersion}</p>
<p>v14互換: ${registry.isNyacoreV14Compatible(manifest)}</p>
<p>v15互換: ${registry.isNyacoreV15Compatible(manifest)}</p>
`
} else {
resultDiv.innerHTML = '<h2>❌ プラグインが読み込めませんでした</h2>'
}
} catch (error) {
resultDiv.innerHTML = `<h2>❌ エラー: ${error.message}</h2>`
}
}
testPluginLoading()
</script>
</body>
</html>