Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a2524f

Browse files
authored
fix: add remix snippets (rafamadriz#489)
1 parentff09e07 commit6a2524f

File tree

2 files changed

+83
-26
lines changed

2 files changed

+83
-26
lines changed

‎package.json‎

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
"javascriptreact",
234234
"htmldjango",
235235
"astro",
236-
"blade"
236+
"blade"
237237
],
238238
"path":"./snippets/html.json"
239239
},
@@ -257,14 +257,6 @@
257257
"language": ["typescript","typescriptreact"],
258258
"path":"./snippets/javascript/typescript.json"
259259
},
260-
{
261-
"language":"javascriptreact",
262-
"path":"./snippets/javascript/react.json"
263-
},
264-
{
265-
"language":"javascriptreact",
266-
"path":"./snippets/javascript/react-native.json"
267-
},
268260
{
269261
"language":"javascriptreact",
270262
"path":"./snippets/javascript/next.json"
@@ -277,6 +269,14 @@
277269
"language":"typescriptreact",
278270
"path":"./snippets/javascript/next-ts.json"
279271
},
272+
{
273+
"language":"javascriptreact",
274+
"path":"./snippets/javascript/react.json"
275+
},
276+
{
277+
"language":"javascriptreact",
278+
"path":"./snippets/javascript/react-native.json"
279+
},
280280
{
281281
"language":"typescriptreact",
282282
"path":"./snippets/javascript/react-native-ts.json"
@@ -285,6 +285,10 @@
285285
"language": ["javascriptreact","typescriptreact"],
286286
"path":"./snippets/javascript/react-es7.json"
287287
},
288+
{
289+
"language":"remix",
290+
"path":"./snippets/frameworks/remix-ts.json"
291+
},
288292
{
289293
"language":"terraform",
290294
"path":"./snippets/terraform.json"
@@ -430,25 +434,25 @@
430434
"path":"./snippets/latex/bibtex.json"
431435
},
432436
{
433-
"language":"twig",
437+
"language":"twig",
434438
"path":"./snippets/frameworks/twig.json"
435439
},
436-
{
437-
"language":"blade",
438-
"path":"./snippets/frameworks/blade/blade.json"
439-
},
440-
{
441-
"language":"blade",
442-
"path":"./snippets/frameworks/blade/helpers.json"
443-
},
444-
{
445-
"language":"blade",
446-
"path":"./snippets/frameworks/blade/livewire.json"
447-
},
448-
{
449-
"language":"blade",
450-
"path":"./snippets/frameworks/blade/snippets.json"
451-
},
440+
{
441+
"language":"blade",
442+
"path":"./snippets/frameworks/blade/blade.json"
443+
},
444+
{
445+
"language":"blade",
446+
"path":"./snippets/frameworks/blade/helpers.json"
447+
},
448+
{
449+
"language":"blade",
450+
"path":"./snippets/frameworks/blade/livewire.json"
451+
},
452+
{
453+
"language":"blade",
454+
"path":"./snippets/frameworks/blade/snippets.json"
455+
},
452456
{
453457
"language": ["r","rmd"],
454458
"path":"./snippets/r.json"

‎snippets/frameworks/remix-ts.json‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"Remix loader function": {
3+
"prefix":"rxl",
4+
"body": [
5+
"import { type LoaderFunction, json } from '@remix-run/node'",
6+
"import { useLoaderData } from '@remix-run/react'",
7+
"",
8+
"export const loader: LoaderFunction = async () => {",
9+
"\treturn json({ ok: true })",
10+
"}"
11+
],
12+
"description":"Remix loader function"
13+
},
14+
"Remix action function": {
15+
"prefix":"rxa",
16+
"body": [
17+
"import { type ActionFunction, json } from '@remix-run/node'",
18+
"",
19+
"export const action: ActionFunction = async ({ request }) => {",
20+
"\treturn json({ ok: true })",
21+
"}"
22+
],
23+
"description":"Remix action function"
24+
},
25+
"Remix meta function": {
26+
"prefix":"rxm",
27+
"body": [
28+
"import { type MetaFunction } from '@remix-run/node'",
29+
"",
30+
"export const meta: MetaFunction = () => {",
31+
"\treturn [",
32+
"\t\t{ title: ''},",
33+
"\t\t{ name: 'description', content: ''}",
34+
"\t]",
35+
"}"
36+
],
37+
"description":"Remix meta function"
38+
},
39+
"Remix links function": {
40+
"prefix":"rxi",
41+
"body": [
42+
"import { type LinksFunction } from '@remix-run/node'",
43+
"",
44+
"export const links: LinksFunction = () => {",
45+
"\treturn [",
46+
"\t\t{",
47+
"\t\t}",
48+
"\t]",
49+
"}"
50+
],
51+
"description":"Remix links function"
52+
}
53+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp