Skip to content

Commit

Permalink
Merge pull request #4 from liuzhihang/dev
Browse files Browse the repository at this point in the history
移除代码高亮 js,对部分 js 进行调整格式化
  • Loading branch information
liuzhihang authored Oct 28, 2022
2 parents 1d71490 + 2c53bf3 commit 95178d8
Show file tree
Hide file tree
Showing 347 changed files with 729 additions and 17,585 deletions.
302 changes: 13 additions & 289 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ spec:
- $formkit: select
name: cols
label: 文章列表布局
value: col1
value: col2
options:
- label: 单列
value: col1
Expand All @@ -88,7 +88,7 @@ spec:
value: col3
- label: 四列
value: col4
help: "选择单列时,文章卡片的图片将位于左侧"
help: "建议单列时,将图片放在左右"
- $formkit: select
name: post_location
label: 封面位置
Expand Down Expand Up @@ -136,6 +136,15 @@ spec:
name: profile_desc
placeholder: 请填写个人卡片描述信息
help: "支持使用 HTML 标签"
- $formkit: url
name: wechat_img_face
placeholder: 微信正面图
validation: "url"
- $formkit: url
name: wechat_img_back
placeholder: 微信背面图
validation: "url"
help: 图片可以从公众号后台下载物料或者自制
- group: footer
label: 页脚
formSchema:
Expand Down Expand Up @@ -171,292 +180,12 @@ spec:
value: true
- label: 关闭
value: false
- group: content
label: 内容设置
formSchema:
- $formkit: radio
name: enable_code_highlight
label: 代码块高亮
value: true
options:
- label: 开启
value: true
- label: 关闭
value: false
- $formkit: radio
name: enable_code_lineNumber
label: 代码块显示行号
value: true
options:
- label: 开启
value: true
- label: 关闭
value: false
- $formkit: select
name: switch_highlight
label: 代码块高亮工具
value: "prism.js"
options:
- value: "prism"
label: "prism.js"
- value: "highlight"
label: "highlight.js"
- $formkit: url
name: custom_prism_css
validation: "url"
label: 自定义 prism 主题
placeholder: 请输入自定义 prism.css 地址
- $formkit: select
name: prism_css
label: prism 代码块高亮主题
value: "prism-default.css"
help: "prism 支持自定义主题 css,当配置自定义主题时,内置主题将不会生效"
options:
- value: "prism-default.css"
label: "prism-default.css"
- value: "prism-a11y-dark.css"
label: "prism-a11y-dark.css"
- value: "prism-atom-dark.css"
label: "prism-atom-dark.css"
- value: "prism-base16-ateliersulphurpool.light.css"
label: "prism-base16-ateliersulphurpool.light.css"
- value: "prism-cb.css"
label: "prism-cb.css"
- value: "prism-coldark-cold.css"
label: "prism-coldark-cold.css"
- value: "prism-coldark-dark.css"
label: "prism-coldark-dark.css"
- value: "prism-coy.css"
label: "prism-coy.css"
- value: "prism-coy-without-shadows.css"
label: "prism-coy-without-shadows.css"
- value: "prism-dark.css"
label: "prism-dark.css"
- value: "prism-darcula.css"
label: "prism-darcula.css"
- value: "prism-dracula.css"
label: "prism-dracula.css"
- value: "prism-duotone-dark.css"
label: "prism-duotone-dark.css"
- value: "prism-duotone-earth.css"
label: "prism-duotone-earth.css"
- value: "prism-duotone-forest.css"
label: "prism-duotone-forest.css"
- value: "prism-duotone-light.css"
label: "prism-duotone-light.css"
- value: "prism-duotone-sea.css"
label: "prism-duotone-sea.css"
- value: "prism-duotone-space.css"
label: "prism-duotone-space.css"
- value: "prism-funcky.css"
label: "prism-funcky.css"
- value: "prism-ghcolors.css"
label: "prism-ghcolors.css"
- value: "prism-gruvbox-dark.css"
label: "prism-gruvbox-dark.css"
- value: "prism-gruvbox-light.css"
label: "prism-gruvbox-light.css"
- value: "prism-holi-theme.css"
label: "prism-holi-theme.css"
- value: "prism-hopscotch.css"
label: "prism-hopscotch.css"
- value: "prism-laserwave.css"
label: "prism-laserwave.css"
- value: "prism-lucario.css"
label: "prism-lucario.css"
- value: "prism-material-dark.css"
label: "prism-material-dark.css"
- value: "prism-material-light.css"
label: "prism-material-light.css"
- value: "prism-material-oceanic.css"
label: "prism-material-oceanic.css"
- value: "prism-night-owl.css"
label: "prism-night-owl.css"
- value: "prism-nord.css"
label: "prism-nord.css"
- value: "prism-one-dark.css"
label: "prism-one-dark.css"
- value: "prism-one-light.css"
label: "prism-one-light.css"
- value: "prism-okaidia.css"
label: "prism-okaidia.css"
- value: "prism-pojoaque.css"
label: "prism-pojoaque.css"
- value: "prism-shades-of-purple.css"
label: "prism-shades-of-purple.css"
- value: "prism-solarized-light.css"
label: "prism-solarized-light.css"
- value: "prism-solarized-dark-atom.css"
label: "prism-solarized-dark-atom.css"
- value: "prism-synthwave84.css"
label: "prism-synthwave84.css"
- value: "prism-tomorrow-night.css"
label: "prism-tomorrow-night.css"
- value: "prism-twilight.css"
label: "prism-twilight.css"
- value: "prism-vs.css"
label: "prism-vs.css"
- value: "prism-vsc-dark-plus.css"
label: "prism-vsc-dark-plus.css"
- value: "prism-xonokai.css"
label: "prism-xonokai.css"
- value: "prism-z-touch.css"
label: "prism-z-touch.css"
- $formkit: textarea
name: code_highlight_extra_languages
label: highlight 代码块额外高亮语言
help: "默认已经包含:php,diff,java,css,bash,json,perl,swift,plaintext,ruby,yaml,sql,vbnet,ini,scss,less,cpp,typescript,csharp,rust,python,python-repl,objectivec,r,shell,makefile,go,xml,markdown,lua,javascript,php-template,kotlin,c 如果需要添加其他语言,请按照相同格式添加。"
- $formkit: select
name: code_highlight_style
label: highlight 代码块高亮主题
value: "default.min.css"
options:
- value: "a11y-dark.min.css"
label: "a11y-dark.min.css"
- value: "a11y-light.min.css"
label: "a11y-light.min.css"
- value: "agate.min.css"
label: "agate.min.css"
- value: "an-old-hope.min.css"
label: "an-old-hope.min.css"
- value: "androidstudio.min.css"
label: "androidstudio.min.css"
- value: "arduino-light.min.css"
label: "arduino-light.min.css"
- value: "arta.min.css"
label: "arta.min.css"
- value: "ascetic.min.css"
label: "ascetic.min.css"
- value: "atom-one-dark-reasonable.min.css"
label: "atom-one-dark-reasonable.min.css"
- value: "atom-one-dark.min.css"
label: "atom-one-dark.min.css"
- value: "atom-one-light.min.css"
label: "atom-one-light.min.css"
- value: "brown-paper.min.css"
label: "brown-paper.min.css"
- value: "codepen-embed.min.css"
label: "codepen-embed.min.css"
- value: "color-brewer.min.css"
label: "color-brewer.min.css"
- value: "dark.min.css"
label: "dark.min.css"
- value: "default.min.css"
label: "default.min.css"
- value: "devibeans.min.css"
label: "devibeans.min.css"
- value: "docco.min.css"
label: "docco.min.css"
- value: "far.min.css"
label: "far.min.css"
- value: "felipec.min.css"
label: "felipec.min.css"
- value: "foundation.min.css"
label: "foundation.min.css"
- value: "github-dark-dimmed.min.css"
label: "github-dark-dimmed.min.css"
- value: "github-dark.min.css"
label: "github-dark.min.css"
- value: "github.min.css"
label: "github.min.css"
- value: "gml.min.css"
label: "gml.min.css"
- value: "googlecode.min.css"
label: "googlecode.min.css"
- value: "gradient-dark.min.css"
label: "gradient-dark.min.css"
- value: "gradient-light.min.css"
label: "gradient-light.min.css"
- value: "grayscale.min.css"
label: "grayscale.min.css"
- value: "hybrid.min.css"
label: "hybrid.min.css"
- value: "idea.min.css"
label: "idea.min.css"
- value: "intellij-light.min.css"
label: "intellij-light.min.css"
- value: "ir-black.min.css"
label: "ir-black.min.css"
- value: "isbl-editor-dark.min.css"
label: "isbl-editor-dark.min.css"
- value: "isbl-editor-light.min.css"
label: "isbl-editor-light.min.css"
- value: "kimbie-dark.min.css"
label: "kimbie-dark.min.css"
- value: "kimbie-light.min.css"
label: "kimbie-light.min.css"
- value: "lightfair.min.css"
label: "lightfair.min.css"
- value: "lioshi.min.css"
label: "lioshi.min.css"
- value: "magula.min.css"
label: "magula.min.css"
- value: "mono-blue.min.css"
label: "mono-blue.min.css"
- value: "monokai-sublime.min.css"
label: "monokai-sublime.min.css"
- value: "monokai.min.css"
label: "monokai.min.css"
- value: "night-owl.min.css"
label: "night-owl.min.css"
- value: "nnfx-dark.min.css"
label: "nnfx-dark.min.css"
- value: "nnfx-light.min.css"
label: "nnfx-light.min.css"
- value: "nord.min.css"
label: "nord.min.css"
- value: "obsidian.min.css"
label: "obsidian.min.css"
- value: "paraiso-dark.min.css"
label: "paraiso-dark.min.css"
- value: "paraiso-light.min.css"
label: "paraiso-light.min.css"
- value: "pojoaque.min.css"
label: "pojoaque.min.css"
- value: "purebasic.min.css"
label: "purebasic.min.css"
- value: "qtcreator-dark.min.css"
label: "qtcreator-dark.min.css"
- value: "qtcreator-light.min.css"
label: "qtcreator-light.min.css"
- value: "rainbow.min.css"
label: "rainbow.min.css"
- value: "routeros.min.css"
label: "routeros.min.css"
- value: "school-book.min.css"
label: "school-book.min.css"
- value: "shades-of-purple.min.css"
label: "shades-of-purple.min.css"
- value: "srcery.min.css"
label: "srcery.min.css"
- value: "stackoverflow-dark.min.css"
label: "stackoverflow-dark.min.css"
- value: "stackoverflow-light.min.css"
label: "stackoverflow-light.min.css"
- value: "sunburst.min.css"
label: "sunburst.min.css"
- value: "tokyo-night-dark.min.css"
label: "tokyo-night-dark.min.css"
- value: "tokyo-night-light.min.css"
label: "tokyo-night-light.min.css"
- value: "tomorrow-night-blue.min.css"
label: "tomorrow-night-blue.min.css"
- value: "tomorrow-night-bright.min.css"
label: "tomorrow-night-bright.min.css"
- value: "vs.min.css"
label: "vs.min.css"
- value: "vs2015.min.css"
label: "vs2015.min.css"
- value: "xcode.min.css"
label: "xcode.min.css"
- value: "xt256.min.css"
label: "xt256.min.css"
- group: other
label: 其他设置
formSchema:
- $formkit: radio
name: loading_box
label: 开关
label: 加载页
value: true
options:
- label: 打开
Expand All @@ -477,9 +206,4 @@ spec:
- label: 开启
value: true
- label: 关闭
value: false
- $formkit: url
name: img_error
label: 图片加载失败图
help: 图片加载失败时显示的图片
placeholder: 请输入图片 url
value: false
Binary file added templates/assets/images/wechat/wechat1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/assets/images/wechat/wechat2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 95178d8

Please sign in to comment.