-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
852 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## TDP-FT | ||
|
||
本页面内容不保证时效性, 请自行斟酌. | ||
|
||
部分链接为推测而得或无法访问, 已在页面中作出标记. | ||
|
||
请勿将此项目用于迫害目的. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare module '*.md'; | ||
declare module '*.vue'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/// <reference types="vite/client" /> | ||
|
||
/* eslint-disable */ | ||
|
||
declare module '*.vue' { | ||
import type { DefineComponent } from 'vue'; | ||
const component: DefineComponent<{}, {}, any>; | ||
export default component; | ||
} | ||
|
||
declare module '*.md' { | ||
const html: string; | ||
export default html; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@import "./mocha.sass"; | ||
|
||
.markdown { | ||
color: $text; | ||
|
||
.head { | ||
color: $rosewater; | ||
border-bottom: 1px solid $rosewater; | ||
} | ||
|
||
h1 { | ||
@extend .head; | ||
|
||
font-size: 2.5rem; | ||
} | ||
|
||
h2 { | ||
@extend .head; | ||
|
||
font-size: 2rem; | ||
} | ||
|
||
h3, h4, h5, h6 { | ||
color: $rosewater; | ||
font-size: 1.5rem; | ||
} | ||
|
||
a { | ||
color: $teal; | ||
|
||
&:active { | ||
color: $lavender; | ||
} | ||
} | ||
|
||
blockquote { | ||
background-color: $yellow-opacity; | ||
border-left: 2px solid $yellow; | ||
border-radius: 1em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Plugin } from "vite"; | ||
|
||
import * as marked from "marked"; | ||
|
||
export default function vitePluginMarkdown(): Plugin { | ||
return { | ||
name: "vite-plugin-markdown", | ||
transform(code, id) { | ||
if (!id.endsWith(".md")) return; | ||
|
||
const html = marked.marked(code); | ||
return `export default ${JSON.stringify(html)}`; | ||
} | ||
} | ||
} |
Oops, something went wrong.