把当前版本的前端项目打包为dist的文件加入了项目中,完善了README.md文件
This commit is contained in:
parent
b3f555c4e5
commit
9e83d273b6
74
README.md
74
README.md
@ -1,71 +1,27 @@
|
||||
# theend README
|
||||
# theend 扩展说明
|
||||
|
||||
This is the README for your extension "theend". After writing up a brief description, we recommend including the following sections.
|
||||
该扩展的 vscode 版本是 1.96.4
|
||||
|
||||
## Features
|
||||
## 是什么?
|
||||
|
||||
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
|
||||
当前扩展主要是为了把前端页面嵌入到 vscode 之中。
|
||||
|
||||
For example if there is an image subfolder under your extension project workspace:
|
||||
主要是 webview 的扩展,将 vue 项目打包出来的 dist 文件利用 webview 加载展示
|
||||
|
||||
\!\[feature X\]\(images/feature-x.png\)
|
||||
## 怎么运行?
|
||||
|
||||
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
|
||||
F5 运行:如果 F5 调试运行没有效果,请检查当前 vscode 的版本
|
||||
|
||||
## Requirements
|
||||
## 运行结果
|
||||
|
||||
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
|
||||

|
||||
|
||||
## Extension Settings
|
||||
## 说明
|
||||
|
||||
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
|
||||
当扩展运行时,打开的页面是下面这样的:
|
||||

|
||||
侧边栏是无法通过代码关闭(已经尝试了各种方法,才发现是官方就给出了说明)
|
||||
|
||||
For example:
|
||||
vscode 的扩展局限性太多,很多地方都被限制了,想要进一步开发还是得从源码上进行开发。
|
||||
|
||||
This extension contributes the following settings:
|
||||
|
||||
* `myExtension.enable`: Enable/disable this extension.
|
||||
* `myExtension.thing`: Set to `blah` to do something.
|
||||
|
||||
## Known Issues
|
||||
|
||||
Calling out known issues can help limit users opening duplicate issues against your extension.
|
||||
|
||||
## Release Notes
|
||||
|
||||
Users appreciate release notes as you update your extension.
|
||||
|
||||
### 1.0.0
|
||||
|
||||
Initial release of ...
|
||||
|
||||
### 1.0.1
|
||||
|
||||
Fixed issue #.
|
||||
|
||||
### 1.1.0
|
||||
|
||||
Added features X, Y, and Z.
|
||||
|
||||
---
|
||||
|
||||
## Following extension guidelines
|
||||
|
||||
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
|
||||
|
||||
* [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines)
|
||||
|
||||
## Working with Markdown
|
||||
|
||||
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
|
||||
|
||||
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
|
||||
* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
|
||||
* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.
|
||||
|
||||
## For more information
|
||||
|
||||
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
|
||||
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
|
||||
|
||||
**Enjoy!**
|
||||
在公司的 gitea 上有 vscode 源码开发的 demo,有兴趣得可以去看看。
|
||||
|
@ -1 +0,0 @@
|
||||
.box[data-v-1c409f96]{width:100%;height:100%;display:flex;flex-direction:column;background-color:var(--my-common-bgc-2)!important}.chartsinfo[data-v-1c409f96]{min-height:calc(100vh - 52px);box-sizing:border-box}.typelist[data-v-1c409f96]{margin-top:auto;position:relative;z-index:99;width:100%;background-color:var(--my-common-bgc-2)!important;color:var(--my-common-fc-1);font-size:12px;display:flex;list-style:none;padding:0}.typelist>li[data-v-1c409f96]{padding:2px 8px;cursor:pointer}.typelist>li[data-v-1c409f96]:hover{color:gold}.active[data-v-1c409f96]{color:#2d98b9}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
.box[data-v-9bf0c95e]{width:100%;height:100%;display:flex;flex-direction:column;background-color:var(--my-common-bgc-2)!important}.chartsinfo[data-v-9bf0c95e]{height:100%;min-height:calc(100vh - 52px);box-sizing:border-box;display:flex;flex-direction:column}.newk[data-v-9bf0c95e]{flex:2;border-bottom:1px solid rgb(190,187,187)}.newd[data-v-9bf0c95e]{flex:2;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.typelist[data-v-9bf0c95e]{margin-top:auto;position:relative;z-index:99;width:100%;background-color:var(--my-common-bgc-2)!important;color:var(--my-common-fc-1);font-size:12px;display:flex;list-style:none;padding:0}.typelist>li[data-v-9bf0c95e]{padding:2px 8px;cursor:pointer}.typelist>li[data-v-9bf0c95e]:hover{color:gold}.active[data-v-9bf0c95e]{color:#2d98b9}
|
@ -1 +0,0 @@
|
||||
import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as o,d as s,b as a}from"./index-BO9WyeNZ.js";const c={},d={class:"con"};function r(n,e){return a(),o("div",d,e[0]||(e[0]=[s("div",{class:"nodata"},[s("div",{class:"text"},"当前股票没有数据!")],-1)]))}const f=t(c,[["render",r],["__scopeId","data-v-c4240df7"]]);export{f as default};
|
@ -1 +0,0 @@
|
||||
.con[data-v-c4240df7]{width:100%;height:100%;background-color:var(--my-common-bgc-2)}.nodata[data-v-c4240df7]{min-height:calc(100vh - 50px);display:flex;flex-direction:column;justify-content:center;align-items:center}.text[data-v-c4240df7]{font-size:30px;font-weight:700;-webkit-text-stroke:1px var(--my-common-fc-1);-webkit-text-fill-color:transparent}
|
@ -1 +0,0 @@
|
||||
.content[data-v-0d3f4bd5]{height:100vh;display:flex;flex-direction:column;box-sizing:border-box}.timelist[data-v-0d3f4bd5]{background-color:var(--my-common-bgc-2)!important;color:var(--my-common-fc-1);font-size:13px;display:flex;list-style:none;border-bottom:1px solid rgb(175,173,173);box-sizing:border-box;margin:0;padding:2px 0}.timelist>li[data-v-0d3f4bd5]{padding:0 8px;cursor:pointer}.timelist>li[data-v-0d3f4bd5]:nth-child(6){margin-left:auto}.active[data-v-0d3f4bd5]{color:#2d98b9}.view[data-v-0d3f4bd5]{height:calc(100vh - 27px)}[data-v-0d3f4bd5]::-webkit-scrollbar{width:0}.container[data-v-afa4aec4]{width:100vw;height:100vh;display:flex}.box[data-v-afa4aec4]{width:300px;height:100vh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;background-color:var(--my-common-bgc-2);position:relative;border-right:1px solid var(--my-light-br-1)}.shape[data-v-afa4aec4]{flex:1;height:100vh}iframe[data-v-afa4aec4]{width:100%;height:100%}.head[data-v-afa4aec4]{background-color:var(--my-common-bgc-2);color:var(--my-common-bgc-1);display:flex;justify-content:space-around;align-items:center;padding:2px 0 0 12px;position:sticky;top:0;z-index:999}.item[data-v-afa4aec4]{font-size:13px;width:52px;text-align:center;cursor:pointer}.all[data-v-afa4aec4]{display:flex;align-items:center;font-size:13px;padding:10px 12px;box-sizing:border-box;position:sticky;top:17px;z-index:99;color:var(--my-common-bgc-1);background-color:var(--my-common-bgc-2)}.showchange[data-v-afa4aec4]{flex:1;cursor:pointer}.onedialog[data-v-afa4aec4]{display:flex;height:376px;padding:10px;overflow:auto}.onecontitle[data-v-afa4aec4]{font-size:13px;font-weight:550;position:sticky;top:0;z-index:999;background-color:#fff}.onestocks[data-v-afa4aec4]{margin-top:10px;font-size:12px;background-color:#ececec;border-radius:5px;cursor:pointer}.oneadd[data-v-afa4aec4]{display:flex;justify-content:center;padding:10px 0}.one-item-name[data-v-afa4aec4]{padding:5px 10px;background-color:#e7ebf3}.one-item[data-v-afa4aec4]{padding:5px 10px;display:flex;align-items:center}.one-items[data-v-afa4aec4]{height:277px;overflow:auto}.oneconleft[data-v-afa4aec4]{flex:2;min-width:158px;box-sizing:border-box;padding-right:10px;height:376px;overflow:auto;position:relative}.oneconcenter[data-v-afa4aec4]{flex:3;max-width:320px;padding:0 10px;border-left:2px solid #ececec;box-sizing:border-box;height:376px;overflow:hidden;position:relative}.onetable[data-v-afa4aec4]{font-size:12px;margin-top:10px;box-sizing:border-box}.oneconright[data-v-afa4aec4]{flex:2;box-sizing:border-box;padding-left:10px;position:relative}.add[data-v-afa4aec4]{margin-top:10px;width:100%;max-width:300px;box-sizing:border-box}.addtext[data-v-afa4aec4]{padding:10px 20px}.addtext>div[data-v-afa4aec4]{margin-bottom:20px}.listedit[data-v-afa4aec4]{font-size:13px;font-weight:550;margin-top:10px}.listedit>div[data-v-afa4aec4]{margin-bottom:10px}.stock[data-v-afa4aec4]{flex:1;display:flex;justify-content:space-around;align-items:center;margin-bottom:5px;cursor:pointer}[data-v-afa4aec4] .el-collapse-item__header{background-color:var(--my-common-bgc-2)!important;color:var(--my-common-bgc-1)}.stock1[data-v-afa4aec4]{flex:1;display:flex;align-items:center;margin-bottom:5px;cursor:pointer}.stock2[data-v-afa4aec4]{flex:1;display:flex;justify-content:left;align-items:center;margin-bottom:5px;cursor:pointer}.stockname[data-v-afa4aec4]{width:52px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upcolor[data-v-afa4aec4]{color:#cc2a2a}.stockchangeup[data-v-afa4aec4]{color:#cc2a2a;background-color:#ff00001f;border-radius:4px;width:50px;text-align:center}.downcolor[data-v-afa4aec4]{color:#50a548}.stockchangedown[data-v-afa4aec4]{color:#50a548;background-color:#3cff001f;border-radius:4px;width:50px;text-align:center}[data-v-afa4aec4] .el-collapse-item__content{padding-bottom:0;max-height:250px;overflow-y:auto;background-color:var(--my-common-bgc-2)!important;color:var(--my-common-fc-1)}[data-v-afa4aec4] .el-collapse-item__content::-webkit-scrollbar{width:0!important}[data-v-afa4aec4] .demo-collapse{padding-left:12px}.fixed[data-v-afa4aec4]{outline:none;border:none;background-color:transparent;font-size:12px;color:#585757;cursor:pointer}.isfixed[data-v-afa4aec4]{border:none;outline:1px solid rgb(131,200,218);font-size:12px}[data-v-afa4aec4]::-webkit-scrollbar{width:0}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _};
|
@ -1 +0,0 @@
|
||||
function x(a,o){if(a.length<o)return null;let i=[];for(let u=0;u<=a.length-o;u++){let l=0;for(let t=0;t<o;t++)l+=a[u+t];i.push(l/o)}return i=i.map(u=>parseFloat(u.toFixed(2))),i}function M(a){if(a.length===0)throw new Error("价格数组不能为空");const o=a.reduce((t,h)=>t+h,0)/a.length,u=a.reduce((t,h)=>t+Math.pow(h-o,2),0)/(a.length-1);return parseFloat(Math.sqrt(u).toFixed(2))}function j(a,o=12,i=26,u=9){function l(s,r){let c=[],m=2/(r+1),g=0;for(let p=0;p<r;p++)g+=s[p];let F=g/r;c.push(F);for(let p=r;p<s.length;p++){let d=(s[p]-F)*m+F;c.push(d),F=d}return c}let t=l(a,o),h=l(a,i),n=[];for(let s=0;s<Math.min(t.length,h.length);s++)n.push(t[s]-h[s]);let e=l(n,u),f=[];for(let s=0;s<Math.min(n.length,e.length);s++)f.push((n[s]-e[s])*2);return n=n.map(s=>parseFloat(s.toFixed(2))),e=e.map(s=>parseFloat(s.toFixed(2))),f=f.map(s=>parseFloat(s.toFixed(2))),{dif:n,dea:e,macd:f}}function v(a){let o=[];const i=Object.keys(a.date);for(let u of i){const l=parseInt(u,10),t=[a.date[l],a.low[l],a.high[l],a.close[l]];o.push(t)}return o}function w(a){a=v(a);let o=[],i=[],u=[];a.forEach(e=>{o.push(e[1]),i.push(e[2]),u.push(e[3])});let l=[],t=[],h=[],n=9;for(let e=0;e<u.length;e++){if(e<n-1){l.push(10),t.push(10),h.push(10);continue}let f=Math.min(...o.slice(e-n+1,e+1)),s=Math.max(...i.slice(e-n+1,e+1)),r=(u[e]-f)/(s-f)*100;if(e===n-1)l.push(r),t.push(r);else{let m=.6666666666666666*l[e-1]+.3333333333333333*r;l.push(m);let g=2/3*t[e-1]+1/3*m;t.push(g)}let c=3*l[e]-2*t[e];h.push(c)}return l=l.map(e=>parseFloat(e.toFixed(2))),t=t.map(e=>parseFloat(e.toFixed(2))),h=h.map(e=>parseFloat(e.toFixed(2))),{kValues:l,dValues:t,jValues:h}}function A(a,o=6){let i=[],u=[],l=[];for(let t=0;t<a.length;t++){if(t===0)i.push(0),u.push(0);else{let h=a[t]-a[t-1];h>0?(i.push(h),u.push(0)):(i.push(0),u.push(Math.abs(h)))}if(t>=o-1){let h=0,n=0;for(let r=t-(o-1);r<=t;r++)h+=i[r],n+=u[r];let e=h/o,f=n/o,s=e/f;l.push(100-100/(1+s))}}return l=l.map(t=>parseFloat(t.toFixed(2))),l}function E(a,o,i){let u=[],l=Object.values(a),t=Object.values(o),h=Object.values(i);for(let n=0;n<l.length;n++){let e=(t[n]+h[n])/2;u.push({value:l[n],itemStyle:{color:l[n]>=e?"#FF0000":"#00FF00"}})}return u}export{M as a,j as b,x as c,E as d,w as e,A as f};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB |
@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="./favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vite App</title>
|
||||
<style>
|
||||
body{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
background-color: var(--my-common-bgc-2);
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="./assets/index-BO9WyeNZ.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-Cj3DiBUD.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
BIN
images/README/1739762848553.png
Normal file
BIN
images/README/1739762848553.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 572 KiB |
BIN
images/README/1739763091081.png
Normal file
BIN
images/README/1739763091081.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 445 KiB |
8
package-lock.json
generated
8
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "theend",
|
||||
"version": "0.0.1",
|
||||
"name": "my-extension",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "theend",
|
||||
"version": "0.0.1",
|
||||
"name": "my-extension",
|
||||
"version": "1.0.0",
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^10.0.10",
|
||||
"@types/node": "20.x",
|
||||
|
@ -33,10 +33,10 @@ function openFullScreenWebview(context: vscode.ExtensionContext) {
|
||||
);
|
||||
|
||||
const scriptUri = panel.webview.asWebviewUri(
|
||||
vscode.Uri.joinPath(context.extensionUri, 'dist8', 'assets', 'index-BO9WyeNZ.js')
|
||||
vscode.Uri.joinPath(context.extensionUri, 'dist', 'assets', 'index-DuJWMSzN.js')
|
||||
);
|
||||
const styleUri = panel.webview.asWebviewUri(
|
||||
vscode.Uri.joinPath(context.extensionUri, 'dist8', 'assets', 'index-Cj3DiBUD.css')
|
||||
vscode.Uri.joinPath(context.extensionUri, 'dist', 'assets', 'index-Cj3DiBUD.css')
|
||||
);
|
||||
// 设置 Webview 的内容
|
||||
panel.webview.html = `
|
||||
|
Loading…
Reference in New Issue
Block a user