mirror of
https://github.com/ritz078/transform.git
synced 2026-11-22 00:54:01 +03:00
upgrade dependencies (#184)
* upgrade dependencies * upgrade dependencies * format code * update nextjs * fixes * chore: update graphql generator * fixes * fixes * fixes
This commit is contained in:
1 parent
b69461b66e
commit
618bd8d5bc
88 files changed
+3427
-3350
No files matched your search
+2
-2
@@ -4,7 +4,7 @@ export const prettierParsers = {
|
||||
jsx: "babel",
|
||||
svg: "html",
|
||||
xml: "html",
|
||||
typescript: "typescript"
|
||||
typescript: "typescript",
|
||||
};
|
||||
|
||||
export const supportedLanguages = [
|
||||
@@ -17,5 +17,5 @@ export const supportedLanguages = [
|
||||
"yaml",
|
||||
"typescript",
|
||||
"flow",
|
||||
...Object.keys(prettierParsers)
|
||||
...Object.keys(prettierParsers),
|
||||
];
|
||||
+2
-2
@@ -9,7 +9,7 @@ const plugins = [
|
||||
require("prettier/parser-markdown"),
|
||||
require("prettier/parser-yaml"),
|
||||
require("prettier/parser-flow"),
|
||||
require("prettier/parser-typescript")
|
||||
require("prettier/parser-typescript"),
|
||||
];
|
||||
|
||||
export async function prettify(language: string, value: string) {
|
||||
@@ -22,7 +22,7 @@ export async function prettify(language: string, value: string) {
|
||||
} else {
|
||||
result = prettier.format(value, {
|
||||
parser: prettierParsers[language] || language,
|
||||
plugins
|
||||
plugins,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
export default async function request(url: string, data: any) {
|
||||
const res = await fetch(url, {
|
||||
method: "POST",
|
||||
body: typeof data === "object" ? JSON.stringify(data) : data
|
||||
body: typeof data === "object" ? JSON.stringify(data) : data,
|
||||
});
|
||||
|
||||
return await res.text();
|
||||
|
||||
+81
-81
@@ -11,30 +11,30 @@ export const categorizedRoutes = [
|
||||
path: "/",
|
||||
packageName: "@svgr/core",
|
||||
packageUrl: "https://github.com/smooth-code/svgr",
|
||||
title: "Transform | A polyglot web converter."
|
||||
title: "Transform | A polyglot web converter.",
|
||||
},
|
||||
{
|
||||
label: "to React Native",
|
||||
path: "/svg-to-react-native",
|
||||
packageName: "@svgr/core",
|
||||
packageUrl: "https://github.com/smooth-code/svgr"
|
||||
}
|
||||
]
|
||||
packageUrl: "https://github.com/smooth-code/svgr",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: "HTML",
|
||||
content: [
|
||||
{
|
||||
label: "to JSX",
|
||||
path: "/html-to-jsx"
|
||||
path: "/html-to-jsx",
|
||||
},
|
||||
{
|
||||
label: "to Pug",
|
||||
path: "/html-to-pug",
|
||||
packageName: "html2pug",
|
||||
packageUrl: "https://github.com/izolate/html2pug"
|
||||
}
|
||||
]
|
||||
packageUrl: "https://github.com/izolate/html2pug",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: "JSON",
|
||||
@@ -42,101 +42,101 @@ export const categorizedRoutes = [
|
||||
{
|
||||
label: "to React PropTypes",
|
||||
path: "/json-to-proptypes",
|
||||
title: "Transform | All important transforms at one place."
|
||||
title: "Transform | All important transforms at one place.",
|
||||
},
|
||||
{
|
||||
label: "to Flow",
|
||||
path: "/json-to-flow"
|
||||
path: "/json-to-flow",
|
||||
},
|
||||
{
|
||||
label: "to GraphQL",
|
||||
path: "/json-to-graphql",
|
||||
packageName: "@walmartlabs/json-to-simple-graphql-schema",
|
||||
packageUrl:
|
||||
"https://github.com/walmartlabs/json-to-simple-graphql-schema"
|
||||
"https://github.com/walmartlabs/json-to-simple-graphql-schema",
|
||||
},
|
||||
{
|
||||
label: "to TypeScript",
|
||||
path: "/json-to-typescript",
|
||||
packageUrl: "https://www.npmjs.com/package/json_typegen_wasm",
|
||||
packageName: "json_typegen_wasm"
|
||||
packageName: "json_typegen_wasm",
|
||||
},
|
||||
{
|
||||
label: "to MobX-State-Tree Model",
|
||||
path: "/json-to-mobx-state-tree"
|
||||
path: "/json-to-mobx-state-tree",
|
||||
},
|
||||
{
|
||||
label: "to Sarcastic",
|
||||
path: "/json-to-sarcastic",
|
||||
packageName: "transform-json-types",
|
||||
packageUrl: "https://github.com/transform-it/transform-json-types"
|
||||
packageUrl: "https://github.com/transform-it/transform-json-types",
|
||||
},
|
||||
{
|
||||
label: "to io-ts",
|
||||
path: "/json-to-io-ts",
|
||||
packageName: "transform-json-types",
|
||||
packageUrl: "https://github.com/transform-it/transform-json-types"
|
||||
packageUrl: "https://github.com/transform-it/transform-json-types",
|
||||
},
|
||||
{
|
||||
label: "to Rust Serde",
|
||||
path: "/json-to-rust-serde",
|
||||
desc: "An online REPL for converting JSON to Rust Serde Structs."
|
||||
desc: "An online REPL for converting JSON to Rust Serde Structs.",
|
||||
},
|
||||
{
|
||||
label: "to Mongoose Schema",
|
||||
path: "/json-to-mongoose",
|
||||
packageName: "generate-schema",
|
||||
packageUrl: "https://github.com/nijikokun/generate-schema"
|
||||
packageUrl: "https://github.com/nijikokun/generate-schema",
|
||||
},
|
||||
{
|
||||
label: "to Big Query Schema",
|
||||
path: "/json-to-big-query",
|
||||
packageName: "generate-schema",
|
||||
packageUrl: "https://github.com/nijikokun/generate-schema"
|
||||
packageUrl: "https://github.com/nijikokun/generate-schema",
|
||||
},
|
||||
{
|
||||
label: "to MySQL",
|
||||
path: "/json-to-mysql",
|
||||
packageName: "generate-schema",
|
||||
packageUrl: "https://github.com/nijikokun/generate-schema"
|
||||
packageUrl: "https://github.com/nijikokun/generate-schema",
|
||||
},
|
||||
{
|
||||
label: "to Scala Case Class",
|
||||
path: "/json-to-scala-case-class"
|
||||
path: "/json-to-scala-case-class",
|
||||
},
|
||||
{
|
||||
label: "to Go Struct",
|
||||
path: "/json-to-go",
|
||||
packageName: "json-to-go",
|
||||
packageUrl: "https://github.com/mholt/json-to-go"
|
||||
packageUrl: "https://github.com/mholt/json-to-go",
|
||||
},
|
||||
{
|
||||
label: "to Go Bson",
|
||||
path: "/json-to-go-bson"
|
||||
path: "/json-to-go-bson",
|
||||
},
|
||||
{
|
||||
label: "to YAML",
|
||||
path: "/json-to-yaml",
|
||||
packageName: "json2yaml",
|
||||
packageUrl: "https://github.com/jeffsu/json2yaml"
|
||||
packageUrl: "https://github.com/jeffsu/json2yaml",
|
||||
},
|
||||
{
|
||||
label: "to JSDoc",
|
||||
path: "/json-to-jsdoc"
|
||||
path: "/json-to-jsdoc",
|
||||
},
|
||||
{
|
||||
label: "to Kotlin",
|
||||
path: "/json-to-kotlin",
|
||||
packageUrl: "https://www.npmjs.com/package/json_typegen_wasm",
|
||||
packageName: "json_typegen_wasm"
|
||||
packageName: "json_typegen_wasm",
|
||||
},
|
||||
{
|
||||
label: "to JSON Schema",
|
||||
path: "/json-to-json-schema",
|
||||
packageUrl: "https://www.npmjs.com/package/json_typegen_wasm",
|
||||
packageName: "json_typegen_wasm"
|
||||
}
|
||||
]
|
||||
packageName: "json_typegen_wasm",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: "JSON Schema",
|
||||
@@ -145,15 +145,15 @@ export const categorizedRoutes = [
|
||||
label: "to TypeScript",
|
||||
path: "/json-schema-to-typescript",
|
||||
packageName: "json-schema-to-typescript",
|
||||
packageUrl: "https://github.com/bcherny/json-schema-to-typescript"
|
||||
packageUrl: "https://github.com/bcherny/json-schema-to-typescript",
|
||||
},
|
||||
{
|
||||
label: "to OpenAPI Schema",
|
||||
path: "json-schema-to-openapi-schema",
|
||||
packageName: "json-schema-to-openapi-schema",
|
||||
packageUrl: "https://github.com/wework/json-schema-to-openapi-schema"
|
||||
}
|
||||
]
|
||||
packageUrl: "https://github.com/wework/json-schema-to-openapi-schema",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: "CSS",
|
||||
@@ -162,16 +162,16 @@ export const categorizedRoutes = [
|
||||
label: "to JS Objects",
|
||||
path: "/css-to-js",
|
||||
packageName: "transform-css-to-js",
|
||||
packageUrl: "https://github.com/transform-it/transform-css-to-js"
|
||||
packageUrl: "https://github.com/transform-it/transform-css-to-js",
|
||||
},
|
||||
{
|
||||
label: "to template literal",
|
||||
path: "/object-styles-to-template-literal",
|
||||
packageUrl:
|
||||
"https://github.com/satya164/babel-plugin-object-styles-to-template",
|
||||
packageName: "babel-plugin-object-styles-to-template"
|
||||
}
|
||||
]
|
||||
packageName: "babel-plugin-object-styles-to-template",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: "JavaScript",
|
||||
@@ -179,89 +179,89 @@ export const categorizedRoutes = [
|
||||
{
|
||||
label: "to JSON",
|
||||
path: "/js-object-to-json",
|
||||
desc: "An online REPL for converting JS Object to JSON."
|
||||
}
|
||||
]
|
||||
desc: "An online REPL for converting JS Object to JSON.",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: "GraphQL",
|
||||
content: [
|
||||
{
|
||||
label: "to TypeScript",
|
||||
path: "/graphql-to-typescript"
|
||||
path: "/graphql-to-typescript",
|
||||
},
|
||||
{
|
||||
label: "to Flow",
|
||||
path: "/graphql-to-flow"
|
||||
path: "/graphql-to-flow",
|
||||
},
|
||||
{
|
||||
label: "to JAVA",
|
||||
path: "/graphql-to-java"
|
||||
path: "/graphql-to-java",
|
||||
},
|
||||
{
|
||||
label: "to Resolvers Signature",
|
||||
path: "/graphql-to-resolvers-signature"
|
||||
path: "/graphql-to-resolvers-signature",
|
||||
},
|
||||
|
||||
{
|
||||
label: "to Introspection JSON",
|
||||
path: "/graphql-to-introspection-json"
|
||||
path: "/graphql-to-introspection-json",
|
||||
},
|
||||
|
||||
{
|
||||
label: "to Schema AST",
|
||||
path: "/graphql-to-schema-ast"
|
||||
path: "/graphql-to-schema-ast",
|
||||
},
|
||||
{
|
||||
label: "to Fragment Matcher",
|
||||
path: "/graphql-to-fragment-matcher"
|
||||
path: "/graphql-to-fragment-matcher",
|
||||
},
|
||||
{
|
||||
label: "to Components",
|
||||
path: "/graphql-to-components"
|
||||
path: "/graphql-to-components",
|
||||
},
|
||||
{
|
||||
label: "to TypeScript MongoDB",
|
||||
path: "/graphql-to-typescript-mongodb"
|
||||
}
|
||||
].map(x => ({
|
||||
path: "/graphql-to-typescript-mongodb",
|
||||
},
|
||||
].map((x) => ({
|
||||
...x,
|
||||
packageUrl: "https://github.com/dotansimha/graphql-code-generator",
|
||||
packageName: "graphql-code-generator"
|
||||
}))
|
||||
packageName: "graphql-code-generator",
|
||||
})),
|
||||
},
|
||||
{
|
||||
category: "JSON-LD",
|
||||
content: [
|
||||
{
|
||||
label: "to N-Quads",
|
||||
path: "/jsonld-to-nquads"
|
||||
path: "/jsonld-to-nquads",
|
||||
},
|
||||
{
|
||||
label: "to Expanded",
|
||||
path: "/jsonld-to-expanded"
|
||||
path: "/jsonld-to-expanded",
|
||||
},
|
||||
{
|
||||
label: "to Compacted",
|
||||
path: "/jsonld-to-compacted"
|
||||
path: "/jsonld-to-compacted",
|
||||
},
|
||||
{
|
||||
label: "to Flattened",
|
||||
path: "/jsonld-to-flattened"
|
||||
path: "/jsonld-to-flattened",
|
||||
},
|
||||
{
|
||||
label: "to Framed",
|
||||
path: "/jsonld-to-framed"
|
||||
path: "/jsonld-to-framed",
|
||||
},
|
||||
{
|
||||
label: "to Normalized",
|
||||
path: "jsonld-to-normalized"
|
||||
}
|
||||
].map(x => ({
|
||||
path: "jsonld-to-normalized",
|
||||
},
|
||||
].map((x) => ({
|
||||
...x,
|
||||
packageName: "jsonld",
|
||||
packageUrl: "https://github.com/digitalbazaar/jsonld.js"
|
||||
}))
|
||||
packageUrl: "https://github.com/digitalbazaar/jsonld.js",
|
||||
})),
|
||||
},
|
||||
{
|
||||
category: "TypeScript",
|
||||
@@ -270,19 +270,19 @@ export const categorizedRoutes = [
|
||||
label: "to Flow",
|
||||
path: "/typescript-to-flow",
|
||||
packageName: "flowgen",
|
||||
packageUrl: "https://github.com/joarwilk/flowgen"
|
||||
packageUrl: "https://github.com/joarwilk/flowgen",
|
||||
},
|
||||
{
|
||||
label: "to TypeScript Declaration",
|
||||
path: "/typescript-to-typescript-declaration"
|
||||
path: "/typescript-to-typescript-declaration",
|
||||
},
|
||||
{
|
||||
label: "to JSON Schema",
|
||||
path: "/typescript-to-json-schema",
|
||||
packageName: "ts-json-schema-generator",
|
||||
packageUrl: "https://github.com/vega/ts-json-schema-generator"
|
||||
}
|
||||
]
|
||||
packageUrl: "https://github.com/vega/ts-json-schema-generator",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: "Flow",
|
||||
@@ -290,13 +290,13 @@ export const categorizedRoutes = [
|
||||
content: [
|
||||
{
|
||||
label: "to TypeScript",
|
||||
path: "/flow-to-typescript"
|
||||
path: "/flow-to-typescript",
|
||||
},
|
||||
{
|
||||
label: "to TypeScript Declaration",
|
||||
path: "/flow-to-typescript-declaration"
|
||||
}
|
||||
]
|
||||
path: "/flow-to-typescript-declaration",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: "Others",
|
||||
@@ -306,23 +306,23 @@ export const categorizedRoutes = [
|
||||
label: "XML to JSON",
|
||||
path: "/xml-to-json",
|
||||
packageName: "xml-js",
|
||||
packageUrl: "https://github.com/nashwaan/xml-js"
|
||||
packageUrl: "https://github.com/nashwaan/xml-js",
|
||||
},
|
||||
|
||||
{
|
||||
label: "YAML to JSON",
|
||||
path: "/yaml-to-json",
|
||||
packageName: "yaml",
|
||||
packageUrl: "https://github.com/tj/js-yaml"
|
||||
packageUrl: "https://github.com/tj/js-yaml",
|
||||
},
|
||||
{
|
||||
label: "Markdown to HTML",
|
||||
path: "/markdown-to-html",
|
||||
packageName: "markdown",
|
||||
packageUrl: "https://github.com/evilstreak/markdown-js"
|
||||
}
|
||||
]
|
||||
}
|
||||
packageUrl: "https://github.com/evilstreak/markdown-js",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export interface Route {
|
||||
@@ -332,9 +332,9 @@ export interface Route {
|
||||
}
|
||||
|
||||
export const routes = flatten(
|
||||
categorizedRoutes.map(a =>
|
||||
categorizedRoutes.map((a) =>
|
||||
// @ts-ignore
|
||||
a.content.map(x => {
|
||||
a.content.map((x) => {
|
||||
const _label =
|
||||
a.category.toLowerCase() !== "others"
|
||||
? `${a.category} ${x.label}`
|
||||
@@ -343,12 +343,12 @@ export const routes = flatten(
|
||||
...x,
|
||||
category: a.category,
|
||||
searchTerm: _label,
|
||||
desc: x.desc || `An online Repl to convert ${_label}`
|
||||
desc: x.desc || `An online Repl to convert ${_label}`,
|
||||
};
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
export function activeRouteData(pathname) {
|
||||
return find(routes, o => o.path === pathname);
|
||||
return find(routes, (o) => o.path === pathname);
|
||||
}
|
||||
+65
-65
@@ -3,7 +3,7 @@ import { editor } from "monaco-editor";
|
||||
|
||||
export const ThemeContext = React.createContext({
|
||||
theme: "light",
|
||||
toggleTheme: () => {}
|
||||
toggleTheme: () => {},
|
||||
});
|
||||
|
||||
export const lightEditor: editor.IStandaloneThemeData = {
|
||||
@@ -13,154 +13,154 @@ export const lightEditor: editor.IStandaloneThemeData = {
|
||||
{
|
||||
foreground: "940494",
|
||||
background: "444494",
|
||||
token: "punctuation.definition.list"
|
||||
token: "punctuation.definition.list",
|
||||
},
|
||||
{
|
||||
foreground: "404f50",
|
||||
background: "5f0fff",
|
||||
fontStyle: "italic",
|
||||
token: "comment"
|
||||
token: "comment",
|
||||
},
|
||||
{
|
||||
foreground: "5a5f9b",
|
||||
background: "aaafdb",
|
||||
token: "string"
|
||||
token: "string",
|
||||
},
|
||||
{
|
||||
foreground: "4f827b",
|
||||
background: "77c2bb",
|
||||
token: "constant.numeric"
|
||||
token: "constant.numeric",
|
||||
},
|
||||
{
|
||||
foreground: "025f69",
|
||||
background: "7f2299",
|
||||
token: "constant.character"
|
||||
token: "constant.character",
|
||||
},
|
||||
{
|
||||
foreground: "025f69",
|
||||
background: "7f2299",
|
||||
token: "constant.other"
|
||||
token: "constant.other",
|
||||
},
|
||||
{
|
||||
foreground: "7d7e52",
|
||||
background: "bdbe82",
|
||||
token: "constant.language"
|
||||
token: "constant.language",
|
||||
},
|
||||
{
|
||||
foreground: "7b5d8f",
|
||||
background: "9b9ffd",
|
||||
fontStyle: "bold",
|
||||
token: "storage.modifier"
|
||||
token: "storage.modifier",
|
||||
},
|
||||
{
|
||||
foreground: "7b5cbf",
|
||||
background: "8b5ddf",
|
||||
fontStyle: "bold",
|
||||
token: "storage"
|
||||
token: "storage",
|
||||
},
|
||||
{
|
||||
foreground: "025f49",
|
||||
background: "22ff49",
|
||||
token: "entity.name.function"
|
||||
token: "entity.name.function",
|
||||
},
|
||||
{
|
||||
foreground: "9d7e62",
|
||||
background: "bdbe82",
|
||||
token: "support.function"
|
||||
token: "support.function",
|
||||
},
|
||||
{
|
||||
foreground: "939469",
|
||||
background: "e3e4a9",
|
||||
token: "entity.name.function.misc"
|
||||
token: "entity.name.function.misc",
|
||||
},
|
||||
{
|
||||
foreground: "856f63",
|
||||
background: "a5df93",
|
||||
token: "entity.name.function.predicate"
|
||||
token: "entity.name.function.predicate",
|
||||
},
|
||||
{
|
||||
foreground: "af938c",
|
||||
background: "dfb3ac",
|
||||
token: "entity.name.function.io"
|
||||
token: "entity.name.function.io",
|
||||
},
|
||||
{
|
||||
foreground: "7bafad",
|
||||
background: "bbdfdd",
|
||||
token: "variable.other.external-symbol"
|
||||
token: "variable.other.external-symbol",
|
||||
},
|
||||
{
|
||||
foreground: "316fcf",
|
||||
background: "3aafff",
|
||||
token: "variable.language"
|
||||
token: "variable.language",
|
||||
},
|
||||
{
|
||||
foreground: "316fcf",
|
||||
background: "3aafff",
|
||||
token: "variable.other"
|
||||
token: "variable.other",
|
||||
},
|
||||
{
|
||||
foreground: "33969f",
|
||||
background: "05d6f9",
|
||||
fontStyle: "italic",
|
||||
token: "variable.parameter"
|
||||
token: "variable.parameter",
|
||||
},
|
||||
{
|
||||
foreground: "674aa8",
|
||||
background: "a3aad8",
|
||||
token: "keyword"
|
||||
token: "keyword",
|
||||
},
|
||||
{
|
||||
foreground: "b9986f",
|
||||
background: "b998df",
|
||||
fontStyle: "bold",
|
||||
token: "entity.name.class"
|
||||
token: "entity.name.class",
|
||||
},
|
||||
{
|
||||
foreground: "22af9d",
|
||||
background: "b998df",
|
||||
token: "entity.name.structure"
|
||||
token: "entity.name.structure",
|
||||
},
|
||||
{
|
||||
foreground: "af47a9",
|
||||
background: "af77a9",
|
||||
token: "entity.name.type"
|
||||
token: "entity.name.type",
|
||||
},
|
||||
{
|
||||
foreground: "cc4357",
|
||||
background: "ffddff",
|
||||
token: "entity.name.class"
|
||||
token: "entity.name.class",
|
||||
},
|
||||
{
|
||||
foreground: "cc4357",
|
||||
background: "ffddff",
|
||||
token: "entity.name.type.class"
|
||||
token: "entity.name.type.class",
|
||||
},
|
||||
{
|
||||
foreground: "ef6aa7",
|
||||
background: "ef6aa7",
|
||||
token: "support.class"
|
||||
token: "support.class",
|
||||
},
|
||||
{
|
||||
foreground: "dfdfd5",
|
||||
background: "cc1b27",
|
||||
token: "invalid"
|
||||
token: "invalid",
|
||||
},
|
||||
{
|
||||
foreground: "13499f",
|
||||
background: "0099ff",
|
||||
fontStyle: "italic",
|
||||
token: "string source"
|
||||
token: "string source",
|
||||
},
|
||||
{
|
||||
foreground: "3976a2",
|
||||
background: "49a6d2",
|
||||
token: "entity.name.tag"
|
||||
token: "entity.name.tag",
|
||||
},
|
||||
{
|
||||
foreground: "4946c2",
|
||||
background: "4986c2",
|
||||
token: "entity.other.attribute-name"
|
||||
}
|
||||
token: "entity.other.attribute-name",
|
||||
},
|
||||
],
|
||||
colors: {
|
||||
"editor.foreground": "#0f0009",
|
||||
@@ -169,8 +169,8 @@ export const lightEditor: editor.IStandaloneThemeData = {
|
||||
"editor.lineHighlightBackground": "#ffffff",
|
||||
"editorCursor.foreground": "#100011",
|
||||
"editorWhitespace.foreground": "#000000",
|
||||
"editor.selectionHighlightBorder": "#B3B3B3"
|
||||
}
|
||||
"editor.selectionHighlightBorder": "#B3B3B3",
|
||||
},
|
||||
};
|
||||
|
||||
export const darkEditor: editor.IStandaloneThemeData = {
|
||||
@@ -179,128 +179,128 @@ export const darkEditor: editor.IStandaloneThemeData = {
|
||||
rules: [
|
||||
{
|
||||
foreground: "75715e",
|
||||
token: "comment"
|
||||
token: "comment",
|
||||
},
|
||||
{
|
||||
foreground: "e6db74",
|
||||
token: "string"
|
||||
token: "string",
|
||||
},
|
||||
{
|
||||
foreground: "ae81ff",
|
||||
token: "constant.numeric"
|
||||
token: "constant.numeric",
|
||||
},
|
||||
{
|
||||
foreground: "ae81ff",
|
||||
token: "constant.language"
|
||||
token: "constant.language",
|
||||
},
|
||||
{
|
||||
foreground: "ae81ff",
|
||||
token: "constant.character"
|
||||
token: "constant.character",
|
||||
},
|
||||
{
|
||||
foreground: "ae81ff",
|
||||
token: "constant.other"
|
||||
token: "constant.other",
|
||||
},
|
||||
{
|
||||
foreground: "f92672",
|
||||
token: "keyword"
|
||||
token: "keyword",
|
||||
},
|
||||
{
|
||||
foreground: "f92672",
|
||||
token: "storage"
|
||||
token: "storage",
|
||||
},
|
||||
{
|
||||
foreground: "66d9ef",
|
||||
fontStyle: "italic",
|
||||
token: "storage.type"
|
||||
token: "storage.type",
|
||||
},
|
||||
{
|
||||
foreground: "a6e22e",
|
||||
fontStyle: "underline",
|
||||
token: "entity.name.class"
|
||||
token: "entity.name.class",
|
||||
},
|
||||
{
|
||||
foreground: "a6e22e",
|
||||
fontStyle: "italic underline",
|
||||
token: "entity.other.inherited-class"
|
||||
token: "entity.other.inherited-class",
|
||||
},
|
||||
{
|
||||
foreground: "a6e22e",
|
||||
token: "entity.name.function"
|
||||
token: "entity.name.function",
|
||||
},
|
||||
{
|
||||
foreground: "fd971f",
|
||||
fontStyle: "italic",
|
||||
token: "variable.parameter"
|
||||
token: "variable.parameter",
|
||||
},
|
||||
{
|
||||
foreground: "f92672",
|
||||
token: "entity.name.tag"
|
||||
token: "entity.name.tag",
|
||||
},
|
||||
{
|
||||
foreground: "a6e22e",
|
||||
token: "entity.other.attribute-name"
|
||||
token: "entity.other.attribute-name",
|
||||
},
|
||||
{
|
||||
foreground: "66d9ef",
|
||||
token: "support.function"
|
||||
token: "support.function",
|
||||
},
|
||||
{
|
||||
foreground: "66d9ef",
|
||||
token: "support.constant"
|
||||
token: "support.constant",
|
||||
},
|
||||
{
|
||||
foreground: "66d9ef",
|
||||
fontStyle: "italic",
|
||||
token: "support.type"
|
||||
token: "support.type",
|
||||
},
|
||||
{
|
||||
foreground: "66d9ef",
|
||||
fontStyle: "italic",
|
||||
token: "support.class"
|
||||
token: "support.class",
|
||||
},
|
||||
{
|
||||
foreground: "f8f8f0",
|
||||
background: "f92672",
|
||||
token: "invalid"
|
||||
token: "invalid",
|
||||
},
|
||||
{
|
||||
foreground: "f8f8f0",
|
||||
background: "ae81ff",
|
||||
token: "invalid.deprecated"
|
||||
token: "invalid.deprecated",
|
||||
},
|
||||
{
|
||||
foreground: "cfcfc2",
|
||||
token: "meta.structure.dictionary.json string.quoted.double.json"
|
||||
token: "meta.structure.dictionary.json string.quoted.double.json",
|
||||
},
|
||||
{
|
||||
foreground: "75715e",
|
||||
token: "meta.diff"
|
||||
token: "meta.diff",
|
||||
},
|
||||
{
|
||||
foreground: "75715e",
|
||||
token: "meta.diff.header"
|
||||
token: "meta.diff.header",
|
||||
},
|
||||
{
|
||||
foreground: "f92672",
|
||||
token: "markup.deleted"
|
||||
token: "markup.deleted",
|
||||
},
|
||||
{
|
||||
foreground: "a6e22e",
|
||||
token: "markup.inserted"
|
||||
token: "markup.inserted",
|
||||
},
|
||||
{
|
||||
foreground: "e6db74",
|
||||
token: "markup.changed"
|
||||
token: "markup.changed",
|
||||
},
|
||||
{
|
||||
foreground: "ae81ff",
|
||||
token: "constant.numeric.line-number.find-in-files - match"
|
||||
token: "constant.numeric.line-number.find-in-files - match",
|
||||
},
|
||||
{
|
||||
foreground: "e6db74",
|
||||
token: "entity.name.filename.find-in-files"
|
||||
}
|
||||
token: "entity.name.filename.find-in-files",
|
||||
},
|
||||
],
|
||||
colors: {
|
||||
"editor.foreground": "#F8F8F2",
|
||||
@@ -310,6 +310,6 @@ export const darkEditor: editor.IStandaloneThemeData = {
|
||||
"editorCursor.foreground": "#F8F8F0",
|
||||
"editorWhitespace.foreground": "#3B3A32",
|
||||
"editorIndentGuide.activeBackground": "#9D550F",
|
||||
"editor.selectionHighlightBorder": "#222218"
|
||||
}
|
||||
"editor.selectionHighlightBorder": "#222218",
|
||||
},
|
||||
};
|
||||
@@ -9,9 +9,9 @@ function sendMsg(payload, worker: Worker) {
|
||||
const msgId = globalMsgId++;
|
||||
const msg = {
|
||||
id: msgId,
|
||||
payload
|
||||
payload,
|
||||
};
|
||||
return new Promise(function(resolve, reject) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
// save callbacks for later
|
||||
resolves[msgId] = resolve;
|
||||
rejects[msgId] = reject;
|
||||
|
||||
Reference in new issue
Block a user