-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): add app version workflow2
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
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,34 @@ | ||
import { createApp } from 'vue'; | ||
import App from './App.vue'; | ||
// import './main.css' | ||
|
||
// // 适配器 | ||
// import { nfSetting } from "../../NodeFlow/index" | ||
// // @env [环境] md渲染, mdit版本 | ||
// import MarkdownIt from "markdown-it"; | ||
// const md = MarkdownIt() | ||
// nfSetting.fn_renderMarkdown = ((markdown: string, el: HTMLElement, ctx?: any): void => { | ||
// el.classList.add("markdown-rendered") | ||
|
||
// const result: string = (md as MarkdownIt).render(markdown) | ||
// const el_child = document.createElement("div"); el.appendChild(el_child); el_child.innerHTML = result; | ||
|
||
// // 好像在Client端没办法获取到vuepress的md对象…… | ||
// // if (!nfSetting.md) { | ||
// // console.warn("无法渲染markdown", nfSetting) | ||
// // el.innerHTML = markdown | ||
// // } | ||
// // else {} | ||
// }) | ||
// // @env [环境] http接口,其他环境版本。需要注意ob requestUrl和fetch的返回值不一样,前者还有一层status和json | ||
// nfSetting.fn_request = async ( | ||
// url: string, | ||
// method: string | undefined, | ||
// headers: Record<string, string> | undefined, | ||
// body: string | ArrayBuffer | undefined | ||
// ) => { | ||
// const responseData = await fetch(url, {method, headers, body}); | ||
// return responseData | ||
// } | ||
|
||
createApp(App).mount('#app'); |