Externalize assets (#3515)

This commit is contained in:
Laurenz 2024-02-28 11:06:54 +01:00 committed by GitHub
parent 5036c5aceb
commit e16d3f5a67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
166 changed files with 208 additions and 1599 deletions

18
Cargo.lock generated
View File

@ -2613,6 +2613,7 @@ dependencies = [
"ttf-parser",
"two-face",
"typed-arena",
"typst-assets",
"typst-macros",
"typst-syntax",
"typst-timing",
@ -2624,6 +2625,11 @@ dependencies = [
"wasmi",
]
[[package]]
name = "typst-assets"
version = "0.10.0"
source = "git+https://github.com/typst/typst-assets?rev=79e1c84#79e1c84788fb23f34755b8ebb300dcd9bc4af77f"
[[package]]
name = "typst-cli"
version = "0.10.0"
@ -2658,6 +2664,7 @@ dependencies = [
"tar",
"tempfile",
"typst",
"typst-assets",
"typst-macros",
"typst-pdf",
"typst-render",
@ -2668,6 +2675,11 @@ dependencies = [
"zip",
]
[[package]]
name = "typst-dev-assets"
version = "0.10.0"
source = "git+https://github.com/typst/typst-dev-assets?rev=1dba4be#1dba4bea22e5e19597fbf5f321b047ff7626e2d0"
[[package]]
name = "typst-docs"
version = "0.10.0"
@ -2685,6 +2697,8 @@ dependencies = [
"syntect",
"typed-arena",
"typst",
"typst-assets",
"typst-dev-assets",
"typst-render",
"unicode_names2",
"unscanny",
@ -2698,6 +2712,7 @@ dependencies = [
"comemo",
"libfuzzer-sys",
"typst",
"typst-assets",
"typst-render",
"typst-syntax",
]
@ -2741,6 +2756,7 @@ dependencies = [
"svg2pdf",
"ttf-parser",
"typst",
"typst-assets",
"typst-macros",
"typst-timing",
"unicode-properties",
@ -2812,6 +2828,8 @@ dependencies = [
"tiny-skia",
"ttf-parser",
"typst",
"typst-assets",
"typst-dev-assets",
"typst-ide",
"typst-pdf",
"typst-render",

View File

@ -26,6 +26,8 @@ typst-render = { path = "crates/typst-render" }
typst-svg = { path = "crates/typst-svg" }
typst-syntax = { path = "crates/typst-syntax" }
typst-timing = { path = "crates/typst-timing" }
typst-assets = { git = "https://github.com/typst/typst-assets", rev = "79e1c84" }
typst-dev-assets = { git = "https://github.com/typst/typst-dev-assets", rev = "1dba4be" }
az = "1.2"
base64 = "0.21.2"
bitflags = { version = "2", features = ["serde"] }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 600 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 790 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 655 KiB

View File

@ -1,73 +0,0 @@
%YAML 1.2
---
name: S Expressions
file_extensions: ["sexp"]
scope: source.sexpr
contexts:
main:
- match: '(;+).*$'
scope: comment.line.sexpr
captures:
1: punctuation.definition.comment.sexpr
- match: '#;'
scope: punctuation.definition.comment.sexpr
push: comment
- match: '#\|'
scope: punctuation.definition.comment.sexpr
push: block_comment
- match: '"'
scope: punctuation.definition.string.begin.sexpr
push: string_unquote
- match: '\d+\.\d+'
scope: constant.numeric.float.sexpr
- match: '\d+'
scope: constant.numeric.integer.sexpr
- match: '\w+'
scope: constant.other.sexpr
- match: '\('
scope: punctuation.section.parens.begin.sexpr
push: main_rparen
- match: '\)'
scope: invalid.illegal.stray-paren-end
string_unquote:
- meta_scope: string.quoted.double.sexpr
- match: '""'
scope: constant.character.escape.sexpr
- match: '"'
scope: punctuation.definition.string.end.sexpr
pop: true
main_rparen:
- match: '\)'
scope: punctuation.section.parens.end.sexpr
pop: true
- include: main
comment:
- meta_scope: comment.block.sexpr
- match: '\('
set: comment_rparen
comment_lparen:
- meta_scope: comment.block.sexpr
- match: '\('
push: comment_rparen
- match: '\)'
scope: invalid.illegal.stray-paren-end
comment_rparen:
- meta_scope: comment.block.sexpr
- match: '\)'
pop: true
- include: comment
block_comment:
- meta_scope: comment.block.sexpr
- match: '#\|'
push: block_comment
- match: '\|#'
scope: punctuation.definition.comment.sexpr
pop: true

View File

@ -1,6 +0,0 @@
@article{arrgh,
title = {Anarrghchy: The Law and Economics of Pirate Organization},
author = {Leeson, Peter T.},
crossref = {polecon},
date = {19XXX-XX-XX},
}

View File

@ -1,4 +0,0 @@
A,B
1,2
3,4,5
6,7
1 A,B
2 1,2
3 3,4,5
4 6,7

View File

@ -1,4 +0,0 @@
{
"valid": true,
"invalid": True
}

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<style>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 118 B

View File

@ -1 +0,0 @@
"only a string"

Binary file not shown.

View File

@ -1,3 +0,0 @@
<data>
<hello name="hi">1
</data>

View File

@ -1 +0,0 @@
this_will_break: [)

View File

@ -1,4 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="24" viewBox="0 0 250 22">
<text x="0" y="10" font-size="10">此文本为中文。</text>
<text x="0" y="22" font-size="10">The text above is in Chinese.</text>
</svg>

Before

Width:  |  Height:  |  Size: 231 B

View File

@ -1,26 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="uuid-687246ef-c282-44c1-b632-089ccaaded98" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32">
<defs>
<style>
.uuid-b242de72-c4d3-4028-9f50-e25a891b77c6 {
fill: #a3a7b7;
}
.uuid-b242de72-c4d3-4028-9f50-e25a891b77c6, .uuid-0c7f9eba-fb5c-4f1c-9149-e06b72f4e892 {
stroke: #000;
stroke-miterlimit: 10;
stroke-width: .5px;
}
.uuid-0c7f9eba-fb5c-4f1c-9149-e06b72f4e892 {
fill: url(#uuid-216aa58e-14ce-460d-a686-ba949a4e197d);
}
</style>
<linearGradient id="uuid-216aa58e-14ce-460d-a686-ba949a4e197d" data-name="Unbenannter Verlauf 15" x1="8.321" y1="16.001" x2="23.679" y2="16.001" gradientUnits="userSpaceOnUse">
<stop offset=".699" stop-color="#fff"/>
<stop offset="1" stop-color="#caccd6"/>
</linearGradient>
</defs>
<path class="uuid-0c7f9eba-fb5c-4f1c-9149-e06b72f4e892" d="m23.679,7.031v17.941c0,1.407-3.435,2.56-7.679,2.56s-7.679-1.152-7.679-2.56V7.031c0-1.418,3.435-2.56,7.679-2.56s7.679,1.141,7.679,2.56Z"/>
<ellipse class="uuid-b242de72-c4d3-4028-9f50-e25a891b77c6" cx="16" cy="7.029" rx="7.681" ry="2.56"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,3 +0,0 @@
0..2,small
3..5,medium
6..,big
1 0..2 small
2 3..5 medium
3 6.. big

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Example document</title>
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>

View File

@ -1,7 +0,0 @@
<data>
<hello name="hi">1</hello>
<data>
<hello>World</hello>
<hello>World</hello>
</data>
</data>

View File

@ -1,3 +0,0 @@
title = "Secret project"
version = 2
authors = ["Mr Robert", "Miss Enola"]

View File

@ -1,14 +0,0 @@
<svg width="550" height="356" viewBox="0 0 550 356" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="550" height="356" fill="white"/>
<path d="M19.7071 18.2929C19.3166 17.9024 18.6834 17.9024 18.2929 18.2929L11.9289 24.6569C11.5384 25.0474 11.5384 25.6805 11.9289 26.0711C12.3194 26.4616 12.9526 26.4616 13.3431 26.0711L19 20.4142L24.6568 26.0711C25.0474 26.4616 25.6805 26.4616 26.0711 26.0711C26.4616 25.6805 26.4616 25.0474 26.0711 24.6569L19.7071 18.2929ZM20 336L20 19L18 19L18 336L20 336Z" fill="black"/>
<path d="M525.707 336.707C526.098 336.317 526.098 335.683 525.707 335.293L519.343 328.929C518.953 328.538 518.319 328.538 517.929 328.929C517.538 329.319 517.538 329.953 517.929 330.343L523.586 336L517.929 341.657C517.538 342.047 517.538 342.681 517.929 343.071C518.319 343.462 518.953 343.462 519.343 343.071L525.707 336.707ZM19 337H525V335H19V337Z" fill="black"/>
<text fill="black" font-family="Stupid, Inria Serif" font-size="24" letter-spacing="0em"><tspan x="34.0469" y="43.9274">Height</tspan></text>
<text fill="black" font-family="Stupid, Inria Serif" font-size="24" font-style="italic" letter-spacing="0em"><tspan x="34.0469" y="72.9274">Height</tspan></text>
<text fill="black" font-family="Stupid, Inria Serif" font-size="24" font-weight="bold" letter-spacing="0em"><tspan x="34.0469" y="101.927">Height</tspan></text>
<text fill="black" font-family="Stupid, Inria Serif" font-size="24" font-style="italic" font-weight="bold" letter-spacing="0em"><tspan x="34.0469" y="130.927">Height</tspan></text>
<text fill="black" font-size="22" font-weight="bold" letter-spacing="0em"><tspan x="99.0469" y="278.783">Without family</tspan></text>
<text fill="black" font-family="Inter" font-size="22" font-style="italic" letter-spacing="0em"><tspan x="58.0469" y="315">With non-existing family</tspan></text>
<text fill="black" font-family="Roboto" font-size="24" letter-spacing="0em" text-decoration="underline"><tspan x="466" y="310.703">Time</tspan></text>
<path d="M20 335C20 335 59.8833 265.479 102 241C143.386 216.945 162.368 211.763 210 207C270 201 321.161 208.851 374 178C398.284 163.821 431 134 431 134L518 65" stroke="#2B80FF" stroke-width="2"/>
<text transform="translate(428.859 89.5114) rotate(-38.8045)" fill="#2B80FF" xml:space="preserve" style="white-space: pre" font-family="DejaVu Sans Mono" font-size="24" font-weight="bold" letter-spacing="0em"><tspan x="0" y="22.3086">Curve</tspan></text>
</svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 27.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;filter:url(#Adobe_OpacityMaskFilter);}
.st1{mask:url(#path-1-inside-1_1588_6259_00000173119138975477980210000007733088185808470454_);}
.st2{fill:none;stroke:#000000;stroke-width:1.25;}
.st3{fill:none;stroke:#000000;}
</style>
<defs>
<filter id="Adobe_OpacityMaskFilter" filterUnits="userSpaceOnUse" x="-1.6" y="-2" width="18.5" height="20">
<feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/>
</filter>
</defs>
<mask maskUnits="userSpaceOnUse" x="-1.6" y="-2" width="18.5" height="20" id="path-1-inside-1_1588_6259_00000173119138975477980210000007733088185808470454_">
<path class="st0" d="M0.9,3.3c0-1.8,1.5-3.3,3.3-3.3h10.7v15.9H4.1c-1.8,0-3.3-1.5-3.3-3.3V3.3z"/>
</mask>
<path class="st1" d="M-1.6,3.3C-1.6,0.4,0.8-2,3.7-2h13.2l-4.1,4.1H4.1c-0.5,0-0.8,0.5-0.8,1.2H-1.6z M16.9,18H3.7
c-2.9,0-5.3-2.4-5.3-5.3h4.9c0,0.7,0.4,1.2,0.8,1.2h8.7L16.9,18z M3.7,18c-2.9,0-5.3-2.4-5.3-5.3V3.3C-1.6,0.4,0.8-2,3.7-2l0.4,4.1
c-0.5,0-0.8,0.5-0.8,1.2v9.4c0,0.7,0.4,1.2,0.8,1.2L3.7,18z M16.9-2v20l-4.1-4.1V2.1L16.9-2z"/>
<line class="st2" x1="5" y1="5.3" x2="9.9" y2="5.3"/>
<line class="st3" x1="5" y1="8.8" x2="7.8" y2="8.8"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1,22 +0,0 @@
<?xml version="1.0"?>
<news>
<article>
<title>2022 Budget approved</title>
<author>John Doe</author>
<date>2022-12-19</date>
<content>
<p>The 2022 budget has been approved by the Senate.</p>
<p>The budget is $1.2 trillion.</p>
<p>It is expected to be signed by the President next week.</p>
</content>
</article>
<article>
<title>Tigers win the World Series</title>
<author>Jane Doe</author>
<date>2022-12-20</date>
<content>
<p>The Tigers have won the World Series.</p>
<p>They beat the Giants 4 to 3.</p>
</content>
</article>
</news>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

View File

@ -1,865 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Brittany Chiang</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>name</key>
<string>ayu</string>
<key>semanticClass</key>
<string>halcyon</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>background</key>
<string>#1d2433</string>
<key>foreground</key>
<string>#a2aabc</string>
<key>caret</key>
<string>#FFCC66</string>
<key>findHighlight</key>
<string>#8695b7</string>
<key>findHighlightForeground</key>
<string>#d7dce2</string>
<key>guide</key>
<string>#2f3b54</string>
<key>activeGuide</key>
<string>#2f3b54</string>
<key>stackGuide</key>
<string>#2f3b54</string>
<key>gutter</key>
<string>#1d2433</string>
<key>gutterForeground</key>
<string>#8695b755</string>
<key>inactiveBackground</key>
<string>#1d2433</string>
<key>inactiveSelection</key>
<string>#2f3b54</string>
<key>invisibles</key>
<string>#6679a4</string>
<key>lineHighlight</key>
<string>#2f3b54</string>
<key>popupCss</key>
<string>
html, body {
background-color: #1d2433;
font-size: 12px;
color: #a2aabc;
padding: 0;
}
body {
padding: 5px;
}
div {
padding-bottom: -3px;
}
b, strong {
font-weight: normal;
}
a {
color: rgba(92, 207, 230, .7);
line-height: 16px;
}
.type {
color: #ef6b73;
}
.name {
color: #ffd580;
}
.param {
color: #FFD580;
}
.current {
text-decoration: underline;
}
</string>
<key>selection</key>
<string>#2f3b54</string>
<key>selectionBorder</key>
<string>#a2aabc35</string>
<key>shadow</key>
<string>#00000010</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Comments</string>
<key>scope</key>
<string>comment, punctuation.definition.comment</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#8695b799</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Variable</string>
<key>scope</key>
<string>variable</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#a2aabc</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Keyword</string>
<key>scope</key>
<string>keyword, keyword.operator</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFAE57</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Storage</string>
<key>scope</key>
<string>storage.type, storage.modifier</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#c3a6ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Operator, Misc</string>
<key>scope</key>
<string>constant.other.color, meta.tag, punctuation.separator.inheritance.php, punctuation.section.embedded, keyword.other.substitution</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tag</string>
<key>scope</key>
<string>entity.name.tag, meta.tag.sgml</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Git Gutter Deleted</string>
<key>scope</key>
<string>markup.deleted.git_gutter</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ef6b73</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function, Special Method, Block Level</string>
<key>scope</key>
<string>entity.name, entity.name.class, entity.other.inherited-class, variable.function, support.function, keyword.other.special-method, meta.block-level</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFD580</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Other Variable, String Link</string>
<key>scope</key>
<string>support.other.variable, string.other.link</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ef6b73</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Number, Constant, Function Argument, Tag Attribute, Embedded</string>
<key>scope</key>
<string>constant.numeric, constant.language, constant.character, keyword.other.unit</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#c3a6ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Number, Constant, Function Argument, Tag Attribute, Embedded</string>
<key>scope</key>
<string>support.constant, meta.jsx.js, punctuation.section, string.unquoted.label</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#a2aabc</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>String, Symbols, Inherited Class, Markup Heading</string>
<key>scope</key>
<string>string, keyword.other.template, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>normal</string>
<key>foreground</key>
<string>#bae67e</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Class, Support</string>
<key>scope</key>
<string>entity.name.type.class, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Sub-methods</string>
<key>scope</key>
<string>entity.name.module.js, variable.import.parameter.js, variable.other.class.js</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Language methods</string>
<key>scope</key>
<string>variable.language</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Invalid</string>
<key>scope</key>
<string>invalid, invalid.illegal</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ef6b73</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Deprecated</string>
<key>scope</key>
<string>invalid.deprecated</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#FFAE57</string>
<key>foreground</key>
<string>#d7dce2</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Html punctuations tags</string>
<key>scope</key>
<string>punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag, meta.group.braces.curly.js, meta.property-value, meta.jsx.js</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#a2aabc</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Attributes</string>
<key>scope</key>
<string>entity.other.attribute-name, meta.attribute-with-value.style, constant.other.color.rgb-value, meta.at-rule.media, support.constant.mathematical-symbols,
punctuation.separator.key-value</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFAE57</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Inserted</string>
<key>scope</key>
<string>markup.inserted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#bae67e</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Changed</string>
<key>scope</key>
<string>markup.changed</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFAE57</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Regular Expressions and Escape Characters</string>
<key>scope</key>
<string>string.regexp, constant.character.escape</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#95E6CB</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>URL</string>
<key>scope</key>
<string>*url*, *link*, *uri*</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>underline</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Search Results Nums</string>
<key>scope</key>
<string>constant.numeric.line-number.find-in-files - match</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8695b7</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Search Results Lines</string>
<key>scope</key>
<string>entity.name.filename.find-in-files</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#bae67e</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Decorators</string>
<key>scope</key>
<string>tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#ffd580</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>ES7 Bind Operator</string>
<key>scope</key>
<string>constant.other.object.key</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>entity.name.method</string>
<key>scope</key>
<string>entity.name.method</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#ffd580</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>meta.method.js</string>
<key>scope</key>
<string>entity.name.function, variable.function.constructor</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffd580</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markup - Italic</string>
<key>scope</key>
<string>markup.italic</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#ef6b73</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markup - Bold</string>
<key>scope</key>
<string>markup.bold</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>bold</string>
<key>foreground</key>
<string>#ef6b73</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markup - Underline</string>
<key>scope</key>
<string>markup.underline</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>underline</string>
<key>foreground</key>
<string>#c3a6ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markup - Strike</string>
<key>scope</key>
<string>markup.strike</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>strike</string>
<key>foreground</key>
<string>#ffd580</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markup - Quote</string>
<key>scope</key>
<string>markup.quote</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#80D4FF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markup - Raw Block</string>
<key>scope</key>
<string>markup.raw.block</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFAE57</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markup - Table</string>
<key>scope</key>
<string>markup.table</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#1d2433aa</string>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Plain</string>
<key>scope</key>
<string>text.html.markdown, punctuation.definition.list_item.markdown</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#a2aabc</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Markup Raw Inline</string>
<key>scope</key>
<string>text.html.markdown markup.raw.inline</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Line Break</string>
<key>scope</key>
<string>text.html.markdown meta.dummy.line-break</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8695b7</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Heading</string>
<key>scope</key>
<string>markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#bae67e</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Blockquote</string>
<key>scope</key>
<string>markup.quote, punctuation.definition.blockquote.markdown</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#80D4FF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Link</string>
<key>scope</key>
<string>string.other.link.title.markdown</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>underline</string>
<key>foreground</key>
<string>#ffd580</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Raw Block Fenced</string>
<key>scope</key>
<string>markup.raw.block.fenced.markdown</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#d7dce210</string>
<key>foreground</key>
<string>#a2aabc</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Fenced Bode Block</string>
<key>scope</key>
<string>punctuation.definition.fenced.markdown, variable.language.fenced.markdown</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#d7dce210</string>
<key>foreground</key>
<string>#8695b7</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Fenced Language</string>
<key>scope</key>
<string>variable.language.fenced.markdown</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#8695b7</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markdown - Separator</string>
<key>scope</key>
<string>meta.separator</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#d7dce210</string>
<key>fontStyle</key>
<string>bold</string>
<key>foreground</key>
<string>#8695b7</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON Key - Level 0</string>
<key>scope</key>
<string>source.json meta.structure.dictionary.json string.quoted.double.json - meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta.structure.dictionary.json punctuation.definition.string - meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON Key - Level 1</string>
<key>scope</key>
<string>source.json meta meta.structure.dictionary.json string.quoted.double.json - meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta.structure.dictionary.json punctuation.definition.string - meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON Key - Level 2</string>
<key>scope</key>
<string>source.json meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffae57</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON Key - Level 3</string>
<key>scope</key>
<string>source.json meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON Key - Level 4</string>
<key>scope</key>
<string>source.json meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffae57</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON Key - Level 5</string>
<key>scope</key>
<string>source.json meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON Key - Level 6</string>
<key>scope</key>
<string>source.json meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffae57</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON Key - Level 7</string>
<key>scope</key>
<string>source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON Key - Level 8</string>
<key>scope</key>
<string>source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffae57</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>AceJump Label - Blue</string>
<key>scope</key>
<string>acejump.label.blue</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#5ccfe6</string>
<key>foreground</key>
<string>#d7dce2</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>AceJump Label - Green</string>
<key>scope</key>
<string>acejump.label.green</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#bae67e</string>
<key>foreground</key>
<string>#d7dce2</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>AceJump Label - Orange</string>
<key>scope</key>
<string>acejump.label.orange</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#FFAE57</string>
<key>foreground</key>
<string>#d7dce2</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>AceJump Label - Purple</string>
<key>scope</key>
<string>acejump.label.purple</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#ef6b73</string>
<key>foreground</key>
<string>#d7dce2</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>SublimeLinter Warning</string>
<key>scope</key>
<string>sublimelinter.mark.warning</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ccfe6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>SublimeLinter Gutter Mark</string>
<key>scope</key>
<string>sublimelinter.gutter-mark</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#d7dce2</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>SublimeLinter Error</string>
<key>scope</key>
<string>sublimelinter.mark.error</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ef6b73</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>GitGutter Ignored</string>
<key>scope</key>
<string>markup.ignored.git_gutter</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8695b7</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>GitGutter Untracked</string>
<key>scope</key>
<string>markup.untracked.git_gutter</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8695b7</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>GutterColor</string>
<key>scope</key>
<string>gutter_color</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#d7dce2</string>
</dict>
</dict>
</array>
<key>uuid</key>
<string>0e709986-46a0-40a0-b3bf-c8dfe525c455</string>
</dict>
</plist>

View File

@ -1 +0,0 @@
Hello, world!

Binary file not shown.

View File

@ -1,5 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2.90387 2.23401C2.91909 4.55853 3.351 8.1331 5.64329 10.2912C8.24577 12.7414 11.8071 12.7414 14.6835 12.7414" stroke="#001666" stroke-width="1.25"/>
<path d="M1.4903 8.35903C1.50283 10.6836 1.4903 14.3902 4.49755 14.3902C8.65229 14.3902 6.67331 7.41699 14.8248 7.41699" stroke="#001666" stroke-width="1.25"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5745 10.7414L12.0165 11.1834L13.5745 12.7414L12.0165 14.2995L11.5745 14.7414L12.4584 15.6253L12.9003 15.1834L14.9003 13.1834L15.3423 12.7414L14.9003 12.2995L12.9003 10.2995L12.4584 9.85754L11.5745 10.7414Z" fill="#001666"/>
</svg>

Before

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -1,5 +0,0 @@
{
"temperature": 18.5,
"unit": "C",
"weather": "sunny"
}

View File

@ -1,57 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Monkey emoji by Vincent Le Moign of the Streamline Emoji Project. Sourced
from [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:440-monkey.svg)
on 2021-06-12 and partially minified using SVGO. Used under the Creative
Commons Attribution 4.0 International license -->
<!--Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)-->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" viewBox="0 0 48 48" style="enable-background:new 0 0 48 48" xml:space="preserve">
<style>
.st3 {
fill: none;
stroke: #45413c;
stroke-linecap: round;
stroke-linejoin: round;
stroke-miterlimit: 10
}
.st8 {
fill: #fff48c
}
.st34 {
fill: #bf8256
}
.st35 {
fill: #dea47a
}
.st84 {
fill: #45413c
}
</style>
<g>
<ellipse cx="20.5" cy="44.5" rx="18" ry="1.5" style="opacity:.15;fill:#45413c"/>
<path d="M8.7 28.8 8 27.1c-.3-.7-.9-1.1-1.6-1-.9.1-1.6.9-1.5 1.9.7 5-.6 6.6-3 9.4-.5.5-.5 1.3-.1 1.9.4.6 1 .8 1.9.6 4.5-1.6 6.9-6.6 5-11.1z" style="fill:#ffe500"/>
<g>
<path class="st8" d="M5 29.6c.2-.6.8-1 1.4-1 .7-.1 1.4.4 1.6 1l.7 1.8c.3.6.5 1.1.6 1.7.2-1.4 0-2.9-.6-4.3L8 27.1c-.3-.7-.9-1.1-1.6-1-.9.1-1.6.9-1.5 1.9 0 .5.1 1.1.1 1.6zM2.1 39.6c2.1-2.5 3.2-4.1 2.8-8.3-.2 2.6-1.3 4-3.1 6-.5.5-.5 1.3-.1 1.9l.4.4z"/>
</g>
<path class="st3" d="M8.7 28.8 8 27.1c-.3-.7-.9-1.1-1.6-1-.9.1-1.6.9-1.5 1.9.7 5-.6 6.6-3 9.4-.5.5-.5 1.3-.1 1.9.4.6 1 .8 1.9.6 4.5-1.6 6.9-6.6 5-11.1z"/>
<path class="st3" d="m6.1 26.1-.7-1.8"/>
<path class="st3" d="m7.1 23.6-3.5 1.5"/>
<path class="st34" d="M30.7 19.4c-.5.9-.2 2.1.7 2.6.9.5 2.1.2 2.6-.7.9-1.7 3-2.3 4.7-1.6 3.5 1.5 5.4 5.4 4.4 9.1-1.7 6.7-7.7 11.3-14.6 11.3h-8l-.6 3.9h8.8c8.7 0 16.4-5.9 18.5-14.4 1.3-5.4-1.3-10.9-6.3-13.3-3.7-1.8-8.1-.5-10.2 3.1z"/>
<g>
<path class="st35" d="M43.4 27.9c0 .3-.1.6-.2.8C41.5 35.4 35.5 40 28.6 40h-8l-.4 2.2h8.4c6.9 0 12.9-4.6 14.6-11.3.3-1 .3-2 .2-3zM30.7 19.4c-.4.7-.3 1.5.1 2.1 2.1-3.4 6.5-4.7 10.1-3 3.8 1.8 6.2 5.4 6.6 9.4.4-4.8-2.1-9.4-6.6-11.6-3.7-1.8-8.1-.5-10.2 3.1z"/>
</g>
<path class="st3" d="M30.7 19.4c-.5.9-.2 2.1.7 2.6.9.5 2.1.2 2.6-.7.9-1.7 3-2.3 4.7-1.6 3.5 1.5 5.4 5.4 4.4 9.1-1.7 6.7-7.7 11.3-14.6 11.3h-8l-.6 3.9h8.8c8.7 0 16.4-5.9 18.5-14.4 1.3-5.4-1.3-10.9-6.3-13.3-3.7-1.8-8.1-.5-10.2 3.1z"/>
<path class="st34" d="M31.2 30.6c-1.6-8.2-8.8-14.2-17.2-14.2v12l-4.3-.8c-1.6-.3-2.9 1.2-2.4 2.7.2.8.9 1.4 1.7 1.5l5 .8V35c-1 1-1.6 2.5-1.5 4.1l.1 1h-.8c-1.7 0-3 1.6-2.7 3.2.1.5.5.8 1 .8h14.1c4.2 0 7.6-3.4 7.6-7.6-.1-2-.3-4-.6-5.9z"/>
<path d="M14 26.3c4.5 0 8.4-2.7 10.2-6.5-2.9-2.1-6.4-3.3-10.2-3.3v9.8z" style="fill:#915e3a"/>
<path class="st3" d="M31.2 30.6c-1.6-8.2-8.8-14.2-17.2-14.2v12l-4.3-.8c-1.6-.3-2.9 1.2-2.4 2.7.2.8.9 1.4 1.7 1.5l5 .8V35c-1 1-1.6 2.5-1.5 4.1l.1 1h-.8c-1.7 0-3 1.6-2.7 3.2.1.5.5.8 1 .8h14.1c4.2 0 7.6-3.4 7.6-7.6-.1-2-.3-4-.6-5.9z"/>
<path class="st34" d="M22.5 9.2h-.2C21.4 5.4 18 2.6 14 2.6S6.5 5.4 5.7 9.2h-.2c-1.8 0-3.3 1.5-3.3 3.3v.7c0 1.8 1.5 3.3 3.3 3.3h.2C6.5 20.2 9.9 23 14 23s7.4-2.8 8.3-6.6h.2c1.8 0 3.3-1.5 3.3-3.3v-.7c0-1.8-1.5-3.2-3.3-3.2z"/>
<path class="st35" d="M22.5 9.2h-.2C21.4 5.4 18 2.6 14 2.6c-4 0-7.4 2.8-8.3 6.6h-.2c-1.8 0-3.3 1.5-3.3 3.3v.7c0 .4.1.7.2 1 .4-1.3 1.7-2.3 3.1-2.3h.2c.8-3.8 4.2-6.6 8.3-6.6 4 0 7.4 2.8 8.3 6.6h.2c1.5 0 2.7 1 3.1 2.3.1-.3.2-.7.2-1v-.7c0-1.9-1.5-3.3-3.3-3.3z"/>
<path class="st3" d="M22.5 9.2h-.2C21.4 5.4 18 2.6 14 2.6S6.5 5.4 5.7 9.2h-.2c-1.8 0-3.3 1.5-3.3 3.3v.7c0 1.8 1.5 3.3 3.3 3.3h.2C6.5 20.2 9.9 23 14 23s7.4-2.8 8.3-6.6h.2c1.8 0 3.3-1.5 3.3-3.3v-.7c0-1.8-1.5-3.2-3.3-3.2z"/>
<path d="M18.6 15.1c1.1 1 1.7 2.4 1.7 4 0 .5-.1.9-.2 1.3C18.5 22 16.4 23 14 23c-2.8 0-5.2-1.3-6.8-3.3 0 0 0 0 0 0 0-.2-.1-.4-.1-.6 0-1.5.7-2.9 1.7-4-1-.7-1.7-1.9-1.7-3.3 0-2.2 1.8-3.9 3.9-3.9 1 0 1.9.4 2.6 1 .7-.6 1.6-1 2.6-1 2.2 0 3.9 1.8 3.9 3.9.2 1.4-.5 2.6-1.5 3.3z" style="fill:#ffdcd1;stroke:#45413c;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10"/>
<circle transform="matrix(.05447 -.9985 .9985 .05447 4.528 28.393)" class="st84" cx="17.3" cy="11.8" r="1.3"/>
<circle transform="matrix(.05447 -.9985 .9985 .05447 -1.682 21.835)" class="st84" cx="10.7" cy="11.8" r="1.3"/>
<path class="st3" d="M11.3 18.4s1.1 1.3 2.6 1.3c1.6 0 2.6-1.3 2.6-1.3"/>
<path class="st3" d="m14 28.4 3.5.6"/>
<path class="st3" d="m21.4 25 1.6 4.4c.8 2.2-1.1 4.4-3.3 4l-5.7-.8"/>
<path class="st3" d="M22.9 39.3c.2-3.2-2.4-5.9-5.7-5.8-1.3.1-2.4.6-3.2 1.5"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Adapted from
https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Patterns under
CC0 / Public Domain Licensing -->
<svg width="200" height="150" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="Gradient1">
<stop offset="5%" stop-color="white"/>
<stop offset="95%" stop-color="blue"/>
</linearGradient>
<linearGradient id="Gradient2" x1="0" x2="0" y1="0" y2="1">
<stop offset="5%" stop-color="red"/>
<stop offset="95%" stop-color="orange"/>
</linearGradient>
<pattern id="Pattern" x="40" y="10" width="50" height="50" patternUnits="userSpaceOnUse">
<rect x="0" y="0" width="50" height="50" fill="skyblue"/>
<rect x="0" y="0" width="25" height="25" fill="url(#Gradient2)"/>
<circle cx="25" cy="25" r="20" fill="url(#Gradient1)" fill-opacity="0.5"/>
</pattern>
</defs>
<rect fill="url(#Pattern)" stroke="black" width="200" height="150"/>
</svg>

Before

Width:  |  Height:  |  Size: 983 B

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

View File

@ -1,11 +0,0 @@
"Arthur C. Clarke":
- title: Against the Fall of Night
published: "1978"
- title: The songs of distant earth
published: "1986"
"Isaac Asimov":
- title: Quasar, Quasar, Burning Bright
published: "1977"
- title: Far as Human Eye Could See
published: 1987

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="uuid-22146e6c-a168-4821-bd5a-dea57c5059e7" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<defs>
<style>
.uuid-2456d980-f63b-4fa8-8dc4-6bc7ec43cb9d {
fill: #a3a7b7;
}
.uuid-603863eb-1f17-44fc-809f-235048ac00d5 {
fill: none;
stroke: #000;
stroke-miterlimit: 10;
stroke-width: .5px;
}
</style>
</defs>
<polygon class="uuid-2456d980-f63b-4fa8-8dc4-6bc7ec43cb9d" points="29.689 20.18 15.999 26.07 15.999 5.93 29.689 20.18"/>
<polygon class="uuid-603863eb-1f17-44fc-809f-235048ac00d5" points="29.686 20.177 15.999 26.067 2.311 20.177 15.999 5.933 29.686 20.177"/>
<line class="uuid-603863eb-1f17-44fc-809f-235048ac00d5" x1="15.999" y1="5.933" x2="15.999" y2="26.067"/>
</svg>

Before

Width:  |  Height:  |  Size: 831 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

View File

@ -1,14 +0,0 @@
string = "wonderful"
integer = 42
float = 3.14
boolean = true
date_time = 2023-02-01T15:38:57Z
date_time2 = 2023-02-01T15:38:57
date = 2023-02-01
time = 15:38:57
array = [1, "string", 3.0, false]
inline_table = { first = "amazing", second = "greater" }
[table]
element = 5
others = [false, "indeed", 7]

View File

@ -1,5 +0,0 @@
{
"temperature": 14.5,
"unit": "C",
"weather": "windy"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 510 KiB

View File

@ -1,105 +0,0 @@
@article{netwok,
title={At-scale impact of the {Net Wok}: A culinarically holistic investigation of distributed dumplings},
author={Astley, Rick and Morris, Linda},
journal={Armenian Journal of Proceedings},
volume={61},
pages={192--219},
year={2020},
publisher={Automattic Inc.}
}
@www{issue201,
title={Use of ids field creates unstable references},
author={{cfr42}},
url={https://github.com/plk/biblatex/issues/201},
date={2014-02-02/2014-02-07},
ids={unstable, github}
}
@article{arrgh,
title={The Pirate Organization},
author={Leeson, Peter T.},
}
@article{quark,
title={The Quark Organization},
author={Leeson, Peter T.},
}
@misc{distress,
title={An Insight into Bibliographical Distress},
author={Aldrin, Buzz}
}
@article{glacier-melt,
author = {Regine Hock},
title ={Glacier melt: a review of processes and their modelling},
journal = {Progress in Physical Geography: Earth and Environment},
volume = {29},
number = {3},
pages = {362-391},
year = {2005},
doi = {10.1191/0309133305pp453ra},
}
@book{tolkien54,
maintitle = {The Lord of the Rings},
title = {The Fellowship of the Ring},
author = {J. R. R. Tolkien},
date = {1954-07-29},
publisher = {Allen & Unwin},
location = {London},
volume = {1},
}
@book{DBLP:books/lib/Knuth86a,
author = {Donald Ervin Knuth},
title = {Computer modern typefaces},
publisher = {Addison-Wesley},
year = {1986},
url = {https://www.worldcat.org/oclc/13157596},
isbn = {0201134462},
timestamp = {Fri, 17 Jul 2020 16:12:40 +0200},
biburl = {https://dblp.org/rec/books/lib/Knuth86a.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
@article{sharing,
title = {Do sharing people behave differently? An empirical evaluation of the distinctive mobility patterns of free-floating car-sharing members},
volume = {42},
pages = {449--469},
number = {3},
journal = {Transportation},
author = {Kopp, Johanna and Gerike, Regine and Axhausen, Kay W.},
year = {2015}
}
@book{restful,
location = {Sebastopol, {CA}, {USA}},
edition = {1},
title = {{RESTful} Web Services},
pagetotal = {448},
publisher = {O'Reilly Media},
author = {Richardson, Leonard and Ruby, Sam},
year = {2008}
}
@article{mcintosh_anxiety,
title = {Anxiety and Health Problems Related to Air Travel},
volume = {5},
issn = {1195-1982},
pages = {198--204},
number = {4},
journal = {Journal of Travel Medicine},
author = {{McIntosh}, Iain B. and Swanson, Vivien and Power, Kevin G. and Raeside, Fiona and Dempster, Craig},
year = {2006}
}
@book{psychology25,
location = {New York, {NY}, {USA}},
edition = {1},
title = {The psychology of selling and advertising},
publisher = {{McGraw}-Hill Book Co.},
author = {Strong, Edward},
year = {1925}
}

View File

@ -1,17 +0,0 @@
@article{keshav2007read,
title = {How to read a paper},
author = {Keshav, Srinivasan},
journal = {ACM SIGCOMM Computer Communication Review},
volume = {37},
number = {3},
pages = {83--84},
year = {2007},
publisher = {ACM New York, NY, USA}
}
@Article{Zee04,
author = {Zee, Jay},
journal = {The Black Album},
title = {I've got $99$ problems, I am {S}toked to say},
year = {2004},
}

View File

@ -1,9 +0,0 @@
null_key: [null, ~]
"string": text
integer: 5
float: 1.12
mapping: { '1': "one", '2': "two"}
seq: [1, 2, 3, 4]
bool: false
true: bool
1: ok

View File

@ -1,4 +0,0 @@
Name,Species,Weight,Length
Debby,Rhinoceros,1900kg,390cm
Fluffy,Tiger,115kg,310cm
Sleepy,Dolphin,150kg,180cm
1 Name Species Weight Length
2 Debby Rhinoceros 1900kg 390cm
3 Fluffy Tiger 115kg 310cm
4 Sleepy Dolphin 150kg 180cm

View File

@ -1,20 +0,0 @@
[
{
"name": "Debby",
"species": "Rhinoceros",
"weight": 1900,
"length": 390
},
{
"name": "Fluffy",
"species": "Tiger",
"weight": 115,
"length": 310
},
{
"name": "Sleepy",
"species": "Dolphin",
"weight": 150,
"length": 180
}
]

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -21,6 +21,7 @@ doc = false
[dependencies]
typst = { workspace = true }
typst-assets = { workspace = true, features = ["fonts"] }
typst-macros = { workspace = true }
typst-pdf = { workspace = true }
typst-render = { workspace = true }

View File

@ -107,8 +107,8 @@ impl FontSearcher {
/// Add fonts that are embedded in the binary.
#[cfg(feature = "embed-fonts")]
fn add_embedded(&mut self) {
let mut process = |bytes: &'static [u8]| {
let buffer = typst::foundations::Bytes::from_static(bytes);
for data in typst_assets::fonts() {
let buffer = typst::foundations::Bytes::from_static(data);
for (i, font) in Font::iter(buffer).enumerate() {
self.book.push(font.info().clone());
self.fonts.push(FontSlot {
@ -117,28 +117,6 @@ impl FontSearcher {
font: OnceLock::from(Some(font)),
});
}
};
macro_rules! add {
($filename:literal) => {
process(include_bytes!(concat!("../../../assets/fonts/", $filename)));
};
}
// Embed default fonts.
add!("LinLibertine_R.ttf");
add!("LinLibertine_RB.ttf");
add!("LinLibertine_RBI.ttf");
add!("LinLibertine_RI.ttf");
add!("NewCMMath-Book.otf");
add!("NewCMMath-Regular.otf");
add!("NewCM10-Regular.otf");
add!("NewCM10-Bold.otf");
add!("NewCM10-Italic.otf");
add!("NewCM10-BoldItalic.otf");
add!("DejaVuSansMono.ttf");
add!("DejaVuSansMono-Bold.ttf");
add!("DejaVuSansMono-Oblique.ttf");
add!("DejaVuSansMono-BoldOblique.ttf");
}
}

View File

@ -19,6 +19,8 @@ cli = ["clap", "typst-render", "serde_json"]
[dependencies]
typst = { workspace = true }
typst-assets = { workspace = true, features = ["fonts"] }
typst-dev-assets = { workspace = true }
comemo = { workspace = true }
ecow = { workspace = true }
heck = { workspace = true }

View File

@ -17,7 +17,7 @@ use typst::{Library, World};
use unscanny::Scanner;
use yaml_front_matter::YamlFrontMatter;
use crate::{contributors, OutlineItem, Resolver, FILE_DIR, FONTS, LIBRARY};
use crate::{contributors, OutlineItem, Resolver, FONTS, LIBRARY};
/// HTML documentation.
#[derive(Serialize)]
@ -250,8 +250,8 @@ impl<'a> Handler<'a> {
}
fn handle_image(&self, link: &str) -> String {
if let Some(file) = FILE_DIR.get_file(link) {
self.resolver.image(link, file.contents())
if let Some(data) = typst_dev_assets::get(link) {
self.resolver.image(link, data)
} else if let Some(url) = self.resolver.link(link) {
url
} else {
@ -451,11 +451,12 @@ impl World for DocWorld {
fn file(&self, id: FileId) -> FileResult<Bytes> {
assert!(id.package().is_none());
Ok(FILE_DIR
.get_file(id.vpath().as_rootless_path())
.unwrap_or_else(|| panic!("failed to load {:?}", id.vpath()))
.contents()
.into())
Ok(Bytes::from_static(
typst_dev_assets::get_by_name(
&id.vpath().as_rootless_path().to_string_lossy(),
)
.unwrap_or_else(|| panic!("failed to load {:?}", id.vpath())),
))
}
fn font(&self, index: usize) -> Option<Font> {

View File

@ -20,6 +20,7 @@ use serde::de::DeserializeOwned;
use serde::Deserialize;
use serde_yaml as yaml;
use typst::diag::{bail, StrResult};
use typst::foundations::Bytes;
use typst::foundations::{
CastInfo, Category, Func, Module, ParamInfo, Repr, Scope, Smart, Type, Value,
FOUNDATIONS,
@ -36,8 +37,6 @@ use typst::visualize::VISUALIZE;
use typst::Library;
static DOCS_DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/../../docs");
static FILE_DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/../../assets/files");
static FONT_DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/../../assets/fonts");
static GROUPS: Lazy<Vec<GroupData>> = Lazy::new(|| {
let mut groups: Vec<GroupData> = yaml("reference/groups.yml");
@ -67,9 +66,9 @@ static LIBRARY: Lazy<Prehashed<Library>> = Lazy::new(|| {
});
static FONTS: Lazy<(Prehashed<FontBook>, Vec<Font>)> = Lazy::new(|| {
let fonts: Vec<_> = FONT_DIR
.files()
.flat_map(|file| Font::iter(file.contents().into()))
let fonts: Vec<_> = typst_assets::fonts()
.chain(typst_dev_assets::fonts())
.flat_map(|data| Font::iter(Bytes::from_static(data)))
.collect();
let book = FontBook::from_fonts(&fonts);
(Prehashed::new(book), fonts)

View File

@ -17,6 +17,7 @@ bench = false
[dependencies]
typst = { workspace = true }
typst-assets = { workspace = true }
typst-macros = { workspace = true }
typst-timing = { workspace = true }
base64 = { workspace = true }

View File

@ -19,13 +19,13 @@ const OKLAB_B: Name<'static> = Name(b"B");
// The ICC profiles.
static SRGB_ICC_DEFLATED: Lazy<Vec<u8>> =
Lazy::new(|| deflate(include_bytes!("icc/sRGB-v4.icc")));
Lazy::new(|| deflate(typst_assets::icc::S_RGB_V4));
static GRAY_ICC_DEFLATED: Lazy<Vec<u8>> =
Lazy::new(|| deflate(include_bytes!("icc/sGrey-v4.icc")));
Lazy::new(|| deflate(typst_assets::icc::S_GREY_V4));
// The PostScript functions for color spaces.
static OKLAB_DEFLATED: Lazy<Vec<u8>> =
Lazy::new(|| deflate(minify(include_str!("postscript/oklab.ps")).as_bytes()));
Lazy::new(|| deflate(minify(include_str!("oklab.ps")).as_bytes()));
/// The color spaces present in the PDF document
#[derive(Default)]

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More