Premier commit déjà bien avancé
This commit is contained in:
16
frontend/node_modules/@codemirror/theme-one-dark/.github/workflows/dispatch.yml
generated
vendored
Normal file
16
frontend/node_modules/@codemirror/theme-one-dark/.github/workflows/dispatch.yml
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
name: Trigger CI
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Dispatch to main repo
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Emit repository_dispatch
|
||||
uses: mvasigh/dispatch-action@main
|
||||
with:
|
||||
# You should create a personal access token and store it in your repository
|
||||
token: ${{ secrets.DISPATCH_AUTH }}
|
||||
repo: dev
|
||||
owner: codemirror
|
||||
event_type: push
|
||||
97
frontend/node_modules/@codemirror/theme-one-dark/CHANGELOG.md
generated
vendored
Normal file
97
frontend/node_modules/@codemirror/theme-one-dark/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
## 6.1.3 (2025-06-19)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Add a .d.cts file to make TypeScript happy.
|
||||
## 6.1.2 (2023-04-17)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Make sure the selection background styling overrides the base style rules.
|
||||
|
||||
## 6.1.1 (2023-02-17)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Remove the outline on matching brackets, because that could cover the native cursor on Chrome.
|
||||
|
||||
## 6.1.0 (2022-09-12)
|
||||
|
||||
### New features
|
||||
|
||||
Export a `color` object holding the colors used in the theme.
|
||||
|
||||
## 6.0.0 (2022-06-08)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Update dependencies to 6.0.0
|
||||
|
||||
## 0.20.0 (2022-04-20)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Update dependencies to 0.20.0
|
||||
|
||||
## 0.19.1 (2021-11-06)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Give tooltips a somewhat lighter background so that they don't blend into the editor background.
|
||||
|
||||
## 0.19.0 (2021-08-11)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Update dependencies to 0.19.0
|
||||
|
||||
## 0.18.1 (2021-05-15)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Include styling for the active line gutter.
|
||||
|
||||
## 0.18.0 (2021-03-03)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Update dependencies to 0.18.
|
||||
|
||||
## 0.17.5 (2021-02-10)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Increase contrast on the color used for comments and links.
|
||||
|
||||
## 0.17.4 (2021-01-18)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Fix the background color for the fold placeholder.
|
||||
|
||||
Improve background colors, make autocompletion dropdown more readable.
|
||||
|
||||
## 0.17.3 (2021-01-14)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Make the selection background grey, rather than dark green.
|
||||
|
||||
## 0.17.2 (2021-01-06)
|
||||
|
||||
### New features
|
||||
|
||||
The package now also exports a CommonJS module.
|
||||
|
||||
## 0.17.1 (2021-01-03)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Fix an issue where the active completion isn't readable on Chrome.
|
||||
|
||||
## 0.17.0 (2020-12-29)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
First numbered release.
|
||||
|
||||
21
frontend/node_modules/@codemirror/theme-one-dark/LICENSE
generated
vendored
Normal file
21
frontend/node_modules/@codemirror/theme-one-dark/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
46
frontend/node_modules/@codemirror/theme-one-dark/README.md
generated
vendored
Normal file
46
frontend/node_modules/@codemirror/theme-one-dark/README.md
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
<!-- NOTE: README.md is generated from src/README.md -->
|
||||
|
||||
# @codemirror/theme-one-dark [](https://www.npmjs.org/package/@codemirror/theme-one-dark)
|
||||
|
||||
[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/theme-one-dark/blob/main/CHANGELOG.md) ]
|
||||
|
||||
This package implements the One Dark theme for the
|
||||
[CodeMirror](https://codemirror.net/) code editor.
|
||||
|
||||
The [project page](https://codemirror.net/) has more information, a
|
||||
number of [examples](https://codemirror.net/examples/) and the
|
||||
[documentation](https://codemirror.net/docs/).
|
||||
|
||||
This code is released under an
|
||||
[MIT license](https://github.com/codemirror/theme-one-dark/tree/main/LICENSE).
|
||||
|
||||
We aim to be an inclusive, welcoming community. To make that explicit,
|
||||
we have a [code of
|
||||
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
||||
to communication around the project.
|
||||
|
||||
## API Reference
|
||||
|
||||
<dl>
|
||||
<dt id="user-content-onedark">
|
||||
<code><strong><a href="#user-content-onedark">oneDark</a></strong>: <a href="https://codemirror.net/docs/ref#state.Extension">Extension</a></code></dt>
|
||||
|
||||
<dd><p>Extension to enable the One Dark theme (both the editor theme and
|
||||
the highlight style).</p>
|
||||
</dd>
|
||||
<dt id="user-content-onedarktheme">
|
||||
<code><strong><a href="#user-content-onedarktheme">oneDarkTheme</a></strong>: <a href="https://codemirror.net/docs/ref#state.Extension">Extension</a></code></dt>
|
||||
|
||||
<dd><p>The editor theme styles for One Dark.</p>
|
||||
</dd>
|
||||
<dt id="user-content-onedarkhighlightstyle">
|
||||
<code><strong><a href="#user-content-onedarkhighlightstyle">oneDarkHighlightStyle</a></strong>: <a href="https://codemirror.net/docs/ref#language.HighlightStyle">HighlightStyle</a></code></dt>
|
||||
|
||||
<dd><p>The highlighting style for code in the One Dark theme.</p>
|
||||
</dd>
|
||||
<dt id="user-content-color">
|
||||
<code><strong><a href="#user-content-color">color</a></strong>: {chalky: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, coral: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, cyan: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, invalid: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, ivory: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, stone: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, malibu: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, sage: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, whiskey: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, violet: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, darkBackground: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, highlightBackground: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, background: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, tooltipBackground: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, selection: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, cursor: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>}</code></dt>
|
||||
|
||||
<dd><p>The colors used in the theme, as CSS color strings.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
139
frontend/node_modules/@codemirror/theme-one-dark/dist/index.cjs
generated
vendored
Normal file
139
frontend/node_modules/@codemirror/theme-one-dark/dist/index.cjs
generated
vendored
Normal file
@ -0,0 +1,139 @@
|
||||
'use strict';
|
||||
|
||||
var view = require('@codemirror/view');
|
||||
var language = require('@codemirror/language');
|
||||
var highlight = require('@lezer/highlight');
|
||||
|
||||
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
||||
const chalky = "#e5c07b", coral = "#e06c75", cyan = "#56b6c2", invalid = "#ffffff", ivory = "#abb2bf", stone = "#7d8799", // Brightened compared to original to increase contrast
|
||||
malibu = "#61afef", sage = "#98c379", whiskey = "#d19a66", violet = "#c678dd", darkBackground = "#21252b", highlightBackground = "#2c313a", background = "#282c34", tooltipBackground = "#353a42", selection = "#3E4451", cursor = "#528bff";
|
||||
/**
|
||||
The colors used in the theme, as CSS color strings.
|
||||
*/
|
||||
const color = {
|
||||
chalky,
|
||||
coral,
|
||||
cyan,
|
||||
invalid,
|
||||
ivory,
|
||||
stone,
|
||||
malibu,
|
||||
sage,
|
||||
whiskey,
|
||||
violet,
|
||||
darkBackground,
|
||||
highlightBackground,
|
||||
background,
|
||||
tooltipBackground,
|
||||
selection,
|
||||
cursor
|
||||
};
|
||||
/**
|
||||
The editor theme styles for One Dark.
|
||||
*/
|
||||
const oneDarkTheme = view.EditorView.theme({
|
||||
"&": {
|
||||
color: ivory,
|
||||
backgroundColor: background
|
||||
},
|
||||
".cm-content": {
|
||||
caretColor: cursor
|
||||
},
|
||||
".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
|
||||
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection },
|
||||
".cm-panels": { backgroundColor: darkBackground, color: ivory },
|
||||
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
||||
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
||||
".cm-searchMatch": {
|
||||
backgroundColor: "#72a1ff59",
|
||||
outline: "1px solid #457dff"
|
||||
},
|
||||
".cm-searchMatch.cm-searchMatch-selected": {
|
||||
backgroundColor: "#6199ff2f"
|
||||
},
|
||||
".cm-activeLine": { backgroundColor: "#6699ff0b" },
|
||||
".cm-selectionMatch": { backgroundColor: "#aafe661a" },
|
||||
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
|
||||
backgroundColor: "#bad0f847"
|
||||
},
|
||||
".cm-gutters": {
|
||||
backgroundColor: background,
|
||||
color: stone,
|
||||
border: "none"
|
||||
},
|
||||
".cm-activeLineGutter": {
|
||||
backgroundColor: highlightBackground
|
||||
},
|
||||
".cm-foldPlaceholder": {
|
||||
backgroundColor: "transparent",
|
||||
border: "none",
|
||||
color: "#ddd"
|
||||
},
|
||||
".cm-tooltip": {
|
||||
border: "none",
|
||||
backgroundColor: tooltipBackground
|
||||
},
|
||||
".cm-tooltip .cm-tooltip-arrow:before": {
|
||||
borderTopColor: "transparent",
|
||||
borderBottomColor: "transparent"
|
||||
},
|
||||
".cm-tooltip .cm-tooltip-arrow:after": {
|
||||
borderTopColor: tooltipBackground,
|
||||
borderBottomColor: tooltipBackground
|
||||
},
|
||||
".cm-tooltip-autocomplete": {
|
||||
"& > ul > li[aria-selected]": {
|
||||
backgroundColor: highlightBackground,
|
||||
color: ivory
|
||||
}
|
||||
}
|
||||
}, { dark: true });
|
||||
/**
|
||||
The highlighting style for code in the One Dark theme.
|
||||
*/
|
||||
const oneDarkHighlightStyle = language.HighlightStyle.define([
|
||||
{ tag: highlight.tags.keyword,
|
||||
color: violet },
|
||||
{ tag: [highlight.tags.name, highlight.tags.deleted, highlight.tags.character, highlight.tags.propertyName, highlight.tags.macroName],
|
||||
color: coral },
|
||||
{ tag: [highlight.tags.function(highlight.tags.variableName), highlight.tags.labelName],
|
||||
color: malibu },
|
||||
{ tag: [highlight.tags.color, highlight.tags.constant(highlight.tags.name), highlight.tags.standard(highlight.tags.name)],
|
||||
color: whiskey },
|
||||
{ tag: [highlight.tags.definition(highlight.tags.name), highlight.tags.separator],
|
||||
color: ivory },
|
||||
{ tag: [highlight.tags.typeName, highlight.tags.className, highlight.tags.number, highlight.tags.changed, highlight.tags.annotation, highlight.tags.modifier, highlight.tags.self, highlight.tags.namespace],
|
||||
color: chalky },
|
||||
{ tag: [highlight.tags.operator, highlight.tags.operatorKeyword, highlight.tags.url, highlight.tags.escape, highlight.tags.regexp, highlight.tags.link, highlight.tags.special(highlight.tags.string)],
|
||||
color: cyan },
|
||||
{ tag: [highlight.tags.meta, highlight.tags.comment],
|
||||
color: stone },
|
||||
{ tag: highlight.tags.strong,
|
||||
fontWeight: "bold" },
|
||||
{ tag: highlight.tags.emphasis,
|
||||
fontStyle: "italic" },
|
||||
{ tag: highlight.tags.strikethrough,
|
||||
textDecoration: "line-through" },
|
||||
{ tag: highlight.tags.link,
|
||||
color: stone,
|
||||
textDecoration: "underline" },
|
||||
{ tag: highlight.tags.heading,
|
||||
fontWeight: "bold",
|
||||
color: coral },
|
||||
{ tag: [highlight.tags.atom, highlight.tags.bool, highlight.tags.special(highlight.tags.variableName)],
|
||||
color: whiskey },
|
||||
{ tag: [highlight.tags.processingInstruction, highlight.tags.string, highlight.tags.inserted],
|
||||
color: sage },
|
||||
{ tag: highlight.tags.invalid,
|
||||
color: invalid },
|
||||
]);
|
||||
/**
|
||||
Extension to enable the One Dark theme (both the editor theme and
|
||||
the highlight style).
|
||||
*/
|
||||
const oneDark = [oneDarkTheme, language.syntaxHighlighting(oneDarkHighlightStyle)];
|
||||
|
||||
exports.color = color;
|
||||
exports.oneDark = oneDark;
|
||||
exports.oneDarkHighlightStyle = oneDarkHighlightStyle;
|
||||
exports.oneDarkTheme = oneDarkTheme;
|
||||
39
frontend/node_modules/@codemirror/theme-one-dark/dist/index.d.cts
generated
vendored
Normal file
39
frontend/node_modules/@codemirror/theme-one-dark/dist/index.d.cts
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
import { Extension } from '@codemirror/state';
|
||||
import { HighlightStyle } from '@codemirror/language';
|
||||
|
||||
/**
|
||||
The colors used in the theme, as CSS color strings.
|
||||
*/
|
||||
declare const color: {
|
||||
chalky: string;
|
||||
coral: string;
|
||||
cyan: string;
|
||||
invalid: string;
|
||||
ivory: string;
|
||||
stone: string;
|
||||
malibu: string;
|
||||
sage: string;
|
||||
whiskey: string;
|
||||
violet: string;
|
||||
darkBackground: string;
|
||||
highlightBackground: string;
|
||||
background: string;
|
||||
tooltipBackground: string;
|
||||
selection: string;
|
||||
cursor: string;
|
||||
};
|
||||
/**
|
||||
The editor theme styles for One Dark.
|
||||
*/
|
||||
declare const oneDarkTheme: Extension;
|
||||
/**
|
||||
The highlighting style for code in the One Dark theme.
|
||||
*/
|
||||
declare const oneDarkHighlightStyle: HighlightStyle;
|
||||
/**
|
||||
Extension to enable the One Dark theme (both the editor theme and
|
||||
the highlight style).
|
||||
*/
|
||||
declare const oneDark: Extension;
|
||||
|
||||
export { color, oneDark, oneDarkHighlightStyle, oneDarkTheme };
|
||||
39
frontend/node_modules/@codemirror/theme-one-dark/dist/index.d.ts
generated
vendored
Normal file
39
frontend/node_modules/@codemirror/theme-one-dark/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
import { Extension } from '@codemirror/state';
|
||||
import { HighlightStyle } from '@codemirror/language';
|
||||
|
||||
/**
|
||||
The colors used in the theme, as CSS color strings.
|
||||
*/
|
||||
declare const color: {
|
||||
chalky: string;
|
||||
coral: string;
|
||||
cyan: string;
|
||||
invalid: string;
|
||||
ivory: string;
|
||||
stone: string;
|
||||
malibu: string;
|
||||
sage: string;
|
||||
whiskey: string;
|
||||
violet: string;
|
||||
darkBackground: string;
|
||||
highlightBackground: string;
|
||||
background: string;
|
||||
tooltipBackground: string;
|
||||
selection: string;
|
||||
cursor: string;
|
||||
};
|
||||
/**
|
||||
The editor theme styles for One Dark.
|
||||
*/
|
||||
declare const oneDarkTheme: Extension;
|
||||
/**
|
||||
The highlighting style for code in the One Dark theme.
|
||||
*/
|
||||
declare const oneDarkHighlightStyle: HighlightStyle;
|
||||
/**
|
||||
Extension to enable the One Dark theme (both the editor theme and
|
||||
the highlight style).
|
||||
*/
|
||||
declare const oneDark: Extension;
|
||||
|
||||
export { color, oneDark, oneDarkHighlightStyle, oneDarkTheme };
|
||||
134
frontend/node_modules/@codemirror/theme-one-dark/dist/index.js
generated
vendored
Normal file
134
frontend/node_modules/@codemirror/theme-one-dark/dist/index.js
generated
vendored
Normal file
@ -0,0 +1,134 @@
|
||||
import { EditorView } from '@codemirror/view';
|
||||
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
||||
import { tags } from '@lezer/highlight';
|
||||
|
||||
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
||||
const chalky = "#e5c07b", coral = "#e06c75", cyan = "#56b6c2", invalid = "#ffffff", ivory = "#abb2bf", stone = "#7d8799", // Brightened compared to original to increase contrast
|
||||
malibu = "#61afef", sage = "#98c379", whiskey = "#d19a66", violet = "#c678dd", darkBackground = "#21252b", highlightBackground = "#2c313a", background = "#282c34", tooltipBackground = "#353a42", selection = "#3E4451", cursor = "#528bff";
|
||||
/**
|
||||
The colors used in the theme, as CSS color strings.
|
||||
*/
|
||||
const color = {
|
||||
chalky,
|
||||
coral,
|
||||
cyan,
|
||||
invalid,
|
||||
ivory,
|
||||
stone,
|
||||
malibu,
|
||||
sage,
|
||||
whiskey,
|
||||
violet,
|
||||
darkBackground,
|
||||
highlightBackground,
|
||||
background,
|
||||
tooltipBackground,
|
||||
selection,
|
||||
cursor
|
||||
};
|
||||
/**
|
||||
The editor theme styles for One Dark.
|
||||
*/
|
||||
const oneDarkTheme = /*@__PURE__*/EditorView.theme({
|
||||
"&": {
|
||||
color: ivory,
|
||||
backgroundColor: background
|
||||
},
|
||||
".cm-content": {
|
||||
caretColor: cursor
|
||||
},
|
||||
".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
|
||||
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection },
|
||||
".cm-panels": { backgroundColor: darkBackground, color: ivory },
|
||||
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
||||
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
||||
".cm-searchMatch": {
|
||||
backgroundColor: "#72a1ff59",
|
||||
outline: "1px solid #457dff"
|
||||
},
|
||||
".cm-searchMatch.cm-searchMatch-selected": {
|
||||
backgroundColor: "#6199ff2f"
|
||||
},
|
||||
".cm-activeLine": { backgroundColor: "#6699ff0b" },
|
||||
".cm-selectionMatch": { backgroundColor: "#aafe661a" },
|
||||
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
|
||||
backgroundColor: "#bad0f847"
|
||||
},
|
||||
".cm-gutters": {
|
||||
backgroundColor: background,
|
||||
color: stone,
|
||||
border: "none"
|
||||
},
|
||||
".cm-activeLineGutter": {
|
||||
backgroundColor: highlightBackground
|
||||
},
|
||||
".cm-foldPlaceholder": {
|
||||
backgroundColor: "transparent",
|
||||
border: "none",
|
||||
color: "#ddd"
|
||||
},
|
||||
".cm-tooltip": {
|
||||
border: "none",
|
||||
backgroundColor: tooltipBackground
|
||||
},
|
||||
".cm-tooltip .cm-tooltip-arrow:before": {
|
||||
borderTopColor: "transparent",
|
||||
borderBottomColor: "transparent"
|
||||
},
|
||||
".cm-tooltip .cm-tooltip-arrow:after": {
|
||||
borderTopColor: tooltipBackground,
|
||||
borderBottomColor: tooltipBackground
|
||||
},
|
||||
".cm-tooltip-autocomplete": {
|
||||
"& > ul > li[aria-selected]": {
|
||||
backgroundColor: highlightBackground,
|
||||
color: ivory
|
||||
}
|
||||
}
|
||||
}, { dark: true });
|
||||
/**
|
||||
The highlighting style for code in the One Dark theme.
|
||||
*/
|
||||
const oneDarkHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
||||
{ tag: tags.keyword,
|
||||
color: violet },
|
||||
{ tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
|
||||
color: coral },
|
||||
{ tag: [/*@__PURE__*/tags.function(tags.variableName), tags.labelName],
|
||||
color: malibu },
|
||||
{ tag: [tags.color, /*@__PURE__*/tags.constant(tags.name), /*@__PURE__*/tags.standard(tags.name)],
|
||||
color: whiskey },
|
||||
{ tag: [/*@__PURE__*/tags.definition(tags.name), tags.separator],
|
||||
color: ivory },
|
||||
{ tag: [tags.typeName, tags.className, tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
|
||||
color: chalky },
|
||||
{ tag: [tags.operator, tags.operatorKeyword, tags.url, tags.escape, tags.regexp, tags.link, /*@__PURE__*/tags.special(tags.string)],
|
||||
color: cyan },
|
||||
{ tag: [tags.meta, tags.comment],
|
||||
color: stone },
|
||||
{ tag: tags.strong,
|
||||
fontWeight: "bold" },
|
||||
{ tag: tags.emphasis,
|
||||
fontStyle: "italic" },
|
||||
{ tag: tags.strikethrough,
|
||||
textDecoration: "line-through" },
|
||||
{ tag: tags.link,
|
||||
color: stone,
|
||||
textDecoration: "underline" },
|
||||
{ tag: tags.heading,
|
||||
fontWeight: "bold",
|
||||
color: coral },
|
||||
{ tag: [tags.atom, tags.bool, /*@__PURE__*/tags.special(tags.variableName)],
|
||||
color: whiskey },
|
||||
{ tag: [tags.processingInstruction, tags.string, tags.inserted],
|
||||
color: sage },
|
||||
{ tag: tags.invalid,
|
||||
color: invalid },
|
||||
]);
|
||||
/**
|
||||
Extension to enable the One Dark theme (both the editor theme and
|
||||
the highlight style).
|
||||
*/
|
||||
const oneDark = [oneDarkTheme, /*@__PURE__*/syntaxHighlighting(oneDarkHighlightStyle)];
|
||||
|
||||
export { color, oneDark, oneDarkHighlightStyle, oneDarkTheme };
|
||||
41
frontend/node_modules/@codemirror/theme-one-dark/package.json
generated
vendored
Normal file
41
frontend/node_modules/@codemirror/theme-one-dark/package.json
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "@codemirror/theme-one-dark",
|
||||
"version": "6.1.3",
|
||||
"description": "One Dark theme for the CodeMirror code editor",
|
||||
"scripts": {
|
||||
"test": "cm-runtests",
|
||||
"prepare": "cm-buildhelper src/one-dark.ts"
|
||||
},
|
||||
"keywords": [
|
||||
"editor",
|
||||
"code"
|
||||
],
|
||||
"author": {
|
||||
"name": "Marijn Haverbeke",
|
||||
"email": "marijn@haverbeke.berlin",
|
||||
"url": "http://marijnhaverbeke.nl"
|
||||
},
|
||||
"type": "module",
|
||||
"main": "dist/index.cjs",
|
||||
"exports": {
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.cjs"
|
||||
},
|
||||
"types": "dist/index.d.ts",
|
||||
"module": "dist/index.js",
|
||||
"sideEffects": false,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@lezer/highlight": "^1.0.0",
|
||||
"@codemirror/language": "^6.0.0",
|
||||
"@codemirror/state": "^6.0.0",
|
||||
"@codemirror/view": "^6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@codemirror/buildhelper": "^1.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/codemirror/theme-one-dark.git"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user