mdts 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/frontend/bundle.js +5976 -0
- package/package.json +5 -5
- package/public/favicon.ico +0 -0
- package/public/index.html +14 -0
- package/public/logo.svg +32 -0
- package/public/markdown.css +106 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "A markdown preview server.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"mdts": "./bin/mdts"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"public"
|
|
12
13
|
],
|
|
13
14
|
"scripts": {
|
|
14
15
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
15
16
|
"build": "tsc",
|
|
16
|
-
"
|
|
17
|
-
"start": "npm run build:frontend && npm run build && node dist/index.js"
|
|
18
|
-
"build:frontend": "webpack --config webpack.config.js"
|
|
17
|
+
"build:frontend": "webpack --config webpack.config.js",
|
|
18
|
+
"start": "npm run build:frontend && npm run build && node dist/index.js"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" href="/favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<link rel="stylesheet" href="/markdown.css" />
|
|
8
|
+
<title>mdts - Markdown file viewer</title>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="root"></div>
|
|
12
|
+
<script defer src="/bundle.js"></script>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
package/public/logo.svg
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<svg width="300" height="100" viewBox="0 0 180 100" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="grad" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
+
<stop offset="0%" stop-color="#1b294a"/>
|
|
5
|
+
<stop offset="100%" stop-color="#1f43ab"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
<style>
|
|
8
|
+
.text {
|
|
9
|
+
font-family: 'Segoe UI', 'Arial', sans-serif;
|
|
10
|
+
font-size: 42px;
|
|
11
|
+
font-weight: 700;
|
|
12
|
+
fill: url(#grad);
|
|
13
|
+
letter-spacing: 2px;
|
|
14
|
+
}
|
|
15
|
+
.icon {
|
|
16
|
+
fill: url(#grad);
|
|
17
|
+
}
|
|
18
|
+
</style>
|
|
19
|
+
</defs>
|
|
20
|
+
|
|
21
|
+
<!-- Icon (Abstract Folder Tree) -->
|
|
22
|
+
<g class="icon" transform="translate(10, 20)">
|
|
23
|
+
<path d="M5 25 L15 45" stroke="url(#grad)" stroke-width="2"/>
|
|
24
|
+
<path d="M25 25 L15 45" stroke="url(#grad)" stroke-width="2"/>
|
|
25
|
+
<rect x="0" y="20" width="10" height="10" rx="2"/>
|
|
26
|
+
<rect x="20" y="20" width="10" height="10" rx="2"/>
|
|
27
|
+
<rect x="10" y="40" width="10" height="10" rx="2"/>
|
|
28
|
+
</g>
|
|
29
|
+
|
|
30
|
+
<!-- Logotype -->
|
|
31
|
+
<text x="60" y="70" class="text">mdts</text>
|
|
32
|
+
</svg>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
.markdown-body {
|
|
2
|
+
h1 {
|
|
3
|
+
margin: 48px 0 24px;
|
|
4
|
+
padding-bottom: 16px;
|
|
5
|
+
font-weight: 500;
|
|
6
|
+
font-size: 26px;
|
|
7
|
+
border-bottom: 1px solid rgba(0, 0, 0, .12);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
h2 {
|
|
11
|
+
margin: 48px 0 24px;
|
|
12
|
+
padding-bottom: 10px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
font-size: 22px;
|
|
15
|
+
border-bottom: 1px solid rgba(0, 0, 0, .12);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
h3 {
|
|
19
|
+
margin: 48px 0 24px;
|
|
20
|
+
padding-bottom: 10px;
|
|
21
|
+
font-size: 18px;
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
h4 {
|
|
26
|
+
margin: 48px 0 24px;
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h5 {
|
|
32
|
+
margin: 48px 0 24px;
|
|
33
|
+
font-size: 16px;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
p, ul, ol {
|
|
38
|
+
margin: 24px 0 24px;
|
|
39
|
+
line-height: 1.8;
|
|
40
|
+
|
|
41
|
+
li {
|
|
42
|
+
ul, ol {
|
|
43
|
+
margin: 8px 0 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
ul, ol {
|
|
49
|
+
padding-left: 20px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
li {
|
|
53
|
+
margin: 0 0 8px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
hr {
|
|
57
|
+
color: rgba(0, 0, 0, .12);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
img {
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
pre {
|
|
65
|
+
padding: 16px;
|
|
66
|
+
overflow: auto;
|
|
67
|
+
background-color: #f4f5f7;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
blockquote {
|
|
71
|
+
padding: 5px 16px;
|
|
72
|
+
font-size: 14px;
|
|
73
|
+
|
|
74
|
+
p {
|
|
75
|
+
margin: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
a {
|
|
80
|
+
color: #1976d2;
|
|
81
|
+
transition: color 0.1s ease-in-out;
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
opacity: 0.8;
|
|
85
|
+
text-decoration: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.markdown-body.dark {
|
|
91
|
+
h1 {
|
|
92
|
+
border-bottom: 1px solid rgba(255, 255, 255, .12);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
h2 {
|
|
96
|
+
border-bottom: 1px solid rgba(255, 255, 255, .12);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
pre {
|
|
100
|
+
background-color: #20252c;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
hr {
|
|
104
|
+
color: rgba(255, 255, 255, .12);
|
|
105
|
+
}
|
|
106
|
+
}
|