create-isotope-app 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,71 +1,97 @@
|
|
|
1
|
-
export const extensionPackageJson = () =>
|
|
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
|
-
|
|
1
|
+
export const extensionPackageJson = () => {
|
|
2
|
+
return JSON.stringify(
|
|
3
|
+
{
|
|
4
|
+
name: "isotope-support",
|
|
5
|
+
displayName: "Isotope Support",
|
|
6
|
+
description:
|
|
7
|
+
"Premium syntax highlighting for Isotope (.isx) hybrid components.",
|
|
8
|
+
version: "0.1.0",
|
|
9
|
+
publisher: "ATOMS GAMING",
|
|
10
|
+
icon: "icon.png",
|
|
11
|
+
engines: {
|
|
12
|
+
vscode: "^1.60.0",
|
|
13
|
+
},
|
|
14
|
+
categories: ["Programming Languages"],
|
|
15
|
+
keywords: ["isotope", "php", "react", "tsx", "hybrid"],
|
|
16
|
+
repository: {
|
|
17
|
+
type: "git",
|
|
18
|
+
url: "https://github.com/atoms-gaming/isotope",
|
|
19
|
+
},
|
|
20
|
+
contributes: {
|
|
21
|
+
grammars: [
|
|
22
|
+
{
|
|
23
|
+
scopeName: "inline.php.proton",
|
|
24
|
+
path: "./syntaxes/isx.tmLanguage.json",
|
|
25
|
+
injectTo: ["source.ts.jsx", "source.tsx"],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
null,
|
|
31
|
+
2,
|
|
32
|
+
);
|
|
33
|
+
};
|
|
29
34
|
|
|
30
|
-
export const extensionGrammarJson = () =>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
35
|
+
export const extensionGrammarJson = () => {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
{
|
|
38
|
+
$schema:
|
|
39
|
+
"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
40
|
+
scopeName: "inline.php.proton",
|
|
41
|
+
injectionSelector:
|
|
42
|
+
"L:source.ts.jsx -comment -string, L:source.tsx -comment -string",
|
|
43
|
+
patterns: [
|
|
44
|
+
{
|
|
45
|
+
name: "meta.embedded.block.php",
|
|
46
|
+
begin: "(proton)\\s*(`)",
|
|
47
|
+
beginCaptures: {
|
|
48
|
+
1: { name: "entity.name.function.tagged-template" },
|
|
49
|
+
2: { name: "punctuation.definition.string.template.begin" },
|
|
50
|
+
},
|
|
51
|
+
end: "(`)",
|
|
52
|
+
endCaptures: {
|
|
53
|
+
1: { name: "punctuation.definition.string.template.end" },
|
|
54
|
+
},
|
|
55
|
+
patterns: [
|
|
56
|
+
{
|
|
57
|
+
include: "source.php",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
null,
|
|
64
|
+
2,
|
|
65
|
+
);
|
|
66
|
+
};
|
|
54
67
|
|
|
55
|
-
export const extensionReadmeMd = () =>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
export const extensionReadmeMd = () => {
|
|
69
|
+
return `# Isotope Support for VS Code
|
|
70
|
+
|
|
71
|
+
Isotope framework (.isx) において、\`proton\` タグ内の PHP コードのシンタックスハイライトを提供します。
|
|
72
|
+
|
|
73
|
+
## 特長
|
|
74
|
+
|
|
75
|
+
- **Proton Highlighting**: \`proton\`\\\`...\`\\\` ブロック内を PHP として認識し、色を付けます。
|
|
76
|
+
- **Non-destructive**: 標準の TypeScript React (TSX) の文法に介入(Injection)するため、React 側のハイライトを壊いません。
|
|
77
|
+
|
|
78
|
+
## インストール(手動セットアップ)
|
|
79
|
+
|
|
80
|
+
このディレクトリを VS Code の拡張機能フォルダに配置してください。
|
|
81
|
+
|
|
82
|
+
\`\`\`bash
|
|
83
|
+
cp -r .vscode/extensions/isotope-support-v0.1 ~/.vscode/extensions/
|
|
84
|
+
\`\`\`
|
|
85
|
+
|
|
86
|
+
その後、VS Code を再起動(または \`Developer: Reload Window\`)すると有効になります。
|
|
87
|
+
|
|
88
|
+
## 制限事項
|
|
89
|
+
|
|
90
|
+
- **シンタックスハイライトのみ**: 現在のバージョンは色の表示のみをサポートしています。
|
|
91
|
+
- **Intellisense (Hover/F12)**: テンプレートリテラル内の PHP に対する「定義へ移動」や「ホバー説明」は、標準的な PHP Language Server の制限により機能しません。将来的なアップデートで仮想ドキュメント方式によるサポートを検討しています。
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
Produced by **ATOMS GAMING**
|
|
96
|
+
`;
|
|
97
|
+
};
|
|
@@ -6,7 +6,7 @@ export const nucleus = proton\`
|
|
|
6
6
|
// DATABASE CRUD EXAMPLE
|
|
7
7
|
try {
|
|
8
8
|
// In a real setup, you would have a 'posts' table
|
|
9
|
-
// $posts =
|
|
9
|
+
// $posts = \\Isotope\\Database::query("SELECT * FROM posts ORDER BY created_at DESC")->fetchAll();
|
|
10
10
|
|
|
11
11
|
// Mock data for demonstration if DB is not connected
|
|
12
12
|
$posts = [
|
|
@@ -18,7 +18,7 @@ try {
|
|
|
18
18
|
$action = $_POST['action'] ?? '';
|
|
19
19
|
if ($action === 'create') {
|
|
20
20
|
$title = $_POST['title'] ?? 'New Post';
|
|
21
|
-
//
|
|
21
|
+
// \\Isotope\\Database::query("INSERT INTO posts (title) VALUES (?)", [$title]);
|
|
22
22
|
header("Location: /posts");
|
|
23
23
|
exit;
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@ try {
|
|
|
28
28
|
'posts' => $posts,
|
|
29
29
|
'db_config' => $_ENV['DB_NAME'] ?? 'Not Configured'
|
|
30
30
|
];
|
|
31
|
-
} catch (
|
|
31
|
+
} catch (\\Exception $e) {
|
|
32
32
|
return ['error' => $e->getMessage(), 'posts' => []];
|
|
33
33
|
}
|
|
34
34
|
\`;
|