Update: Python Online板卡下支持挂载本地文件夹到pyodide

This commit is contained in:
王立帮
2024-11-26 23:09:41 +08:00
parent 5411a188f7
commit b984af1998
18 changed files with 660 additions and 84 deletions

View File

@@ -0,0 +1,26 @@
<style>
div[m-id="{{d.mId}}"] {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
div[m-id="{{d.mId}}"] > div {
width: 150px;
height: 150px;
}
html[data-bs-theme=light] div[m-id="{{d.mId}}"] > div {
background: url('../common/css/svg/empty/empty-light.svg');
background-size: 100% auto;
}
html[data-bs-theme=dark] div[m-id="{{d.mId}}"] > div {
background: url('../common/css/svg/empty/empty-dark.svg');
background-size: 100% auto;
}
</style>
<div m-id="{{d.mId}}" class="page-item">
<div></div>
</div>

View File

@@ -0,0 +1,25 @@
<style>
div[m-id="{{d.mId}}"] {
width: 100%;
height: 100%;
position: relative;
display: flex;
flex-direction: row;
justify-content: center;
}
div[m-id="{{d.mId}}"] > button {
margin: 15px;
max-width: 200px;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #fff !important;
height: 25px;
border-radius: 3px;
}
</style>
<div m-id="{{d.mId}}">
<button class="layui-btn layui-btn-xs m-btn self-adaption-btn">{{ d.msg.loadFS }}</button>
</div>

View File

@@ -0,0 +1,31 @@
<style>
div[m-id="{{d.mId}}"] {
display: flex;
flex-direction: row;
align-items: center;
}
div[m-id="{{d.mId}}"] > .file-tree {
width: 15%;
height: 100%;
border-right-width: 1px;
border-right-style: solid;
}
html[data-bs-theme=light] div[m-id="{{d.mId}}"] > .file-tree {
border-right-color: #c9c9c9;
}
html[data-bs-theme=dark] div[m-id="{{d.mId}}"] > .file-tree {
border-right-color: rgba(128, 128, 128, 0.35);
}
div[m-id="{{d.mId}}"] > .editor {
width: 85%;
height: 100%;
}
</style>
<div m-id="{{d.mId}}" class="page-item">
<div class="file-tree"></div>
<div class="editor"></div>
</div>